Skip to content

Commit 2e42883

Browse files
yoshi-automationsofisl
authored andcommitted
feat(fcm): update the API
#### fcm:v1 The following keys were added: - schemas.ApnsConfig.properties.liveActivityToken.description - schemas.ApnsConfig.properties.liveActivityToken.type
1 parent 28e11ff commit 2e42883

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

‎discovery/fcm-v1.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
}
147147
}
148148
},
149-
"revision": "20240528",
149+
"revision": "20241112",
150150
"rootUrl": "https://fcm.googleapis.com/",
151151
"schemas": {
152152
"AndroidConfig": {
@@ -394,6 +394,10 @@
394394
"description": "HTTP request headers defined in Apple Push Notification Service. Refer to [APNs request headers](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns) for supported headers such as `apns-expiration` and `apns-priority`. The backend sets a default value for `apns-expiration` of 30 days and a default value for `apns-priority` of 10 if not explicitly set.",
395395
"type": "object"
396396
},
397+
"liveActivityToken": {
398+
"description": "Optional. [Apple Live Activity](https://developer.apple.com/design/human-interface-guidelines/live-activities) token to send updates to. This token can either be a push token or [push-to-start](https://developer.apple.com/documentation/activitykit/activity/pushtostarttoken) token from Apple. To start, update, or end a live activity remotely using FCM, construct an [`aps payload`](https://developer.apple.com/documentation/activitykit/starting-and-updating-live-activities-with-activitykit-push-notifications#Construct-the-payload-that-starts-a-Live-Activity) and put it in the [`apns.payload`](https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#ApnsConfig) field.",
399+
"type": "string"
400+
},
397401
"payload": {
398402
"additionalProperties": {
399403
"description": "Properties of the object.",

‎src/apis/fcm/v1.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,10 @@ export namespace fcm_v1 {
295295
* HTTP request headers defined in Apple Push Notification Service. Refer to [APNs request headers](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns) for supported headers such as `apns-expiration` and `apns-priority`. The backend sets a default value for `apns-expiration` of 30 days and a default value for `apns-priority` of 10 if not explicitly set.
296296
*/
297297
headers?: {[key: string]: string} | null;
298+
/**
299+
* Optional. [Apple Live Activity](https://developer.apple.com/design/human-interface-guidelines/live-activities) token to send updates to. This token can either be a push token or [push-to-start](https://developer.apple.com/documentation/activitykit/activity/pushtostarttoken) token from Apple. To start, update, or end a live activity remotely using FCM, construct an [`aps payload`](https://developer.apple.com/documentation/activitykit/starting-and-updating-live-activities-with-activitykit-push-notifications#Construct-the-payload-that-starts-a-Live-Activity) and put it in the [`apns.payload`](https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#ApnsConfig) field.
300+
*/
301+
liveActivityToken?: string | null;
298302
/**
299303
* APNs payload as a JSON object, including both `aps` dictionary and custom payload. See [Payload Key Reference](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/generating_a_remote_notification). If present, it overrides google.firebase.fcm.v1.Notification.title and google.firebase.fcm.v1.Notification.body.
300304
*/

0 commit comments

Comments
 (0)