activitysmith 1.10.0 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -70,6 +70,76 @@ export interface AlertPayload {
70
70
  */
71
71
  body?: string;
72
72
  }
73
+ /**
74
+ *
75
+ * @export
76
+ * @interface AppIconBadgeCountUpdateError
77
+ */
78
+ export interface AppIconBadgeCountUpdateError {
79
+ /**
80
+ *
81
+ * @type {string}
82
+ * @memberof AppIconBadgeCountUpdateError
83
+ */
84
+ error: string;
85
+ /**
86
+ *
87
+ * @type {string}
88
+ * @memberof AppIconBadgeCountUpdateError
89
+ */
90
+ code: AppIconBadgeCountUpdateErrorCodeEnum;
91
+ /**
92
+ *
93
+ * @type {string}
94
+ * @memberof AppIconBadgeCountUpdateError
95
+ */
96
+ message: string;
97
+ /**
98
+ *
99
+ * @type {number}
100
+ * @memberof AppIconBadgeCountUpdateError
101
+ */
102
+ badge: number;
103
+ /**
104
+ *
105
+ * @type {number}
106
+ * @memberof AppIconBadgeCountUpdateError
107
+ */
108
+ devices_targeted?: number;
109
+ /**
110
+ *
111
+ * @type {number}
112
+ * @memberof AppIconBadgeCountUpdateError
113
+ */
114
+ devices_updated: number;
115
+ /**
116
+ *
117
+ * @type {number}
118
+ * @memberof AppIconBadgeCountUpdateError
119
+ */
120
+ users_updated?: number;
121
+ /**
122
+ * Deprecated compatibility alias for devices_updated.
123
+ * @type {number}
124
+ * @memberof AppIconBadgeCountUpdateError
125
+ * @deprecated
126
+ */
127
+ devices_notified?: number;
128
+ /**
129
+ *
130
+ * @type {Array<string>}
131
+ * @memberof AppIconBadgeCountUpdateError
132
+ */
133
+ effective_channel_slugs?: Array<string>;
134
+ }
135
+ /**
136
+ * @export
137
+ */
138
+ export declare const AppIconBadgeCountUpdateErrorCodeEnum: {
139
+ readonly DeviceDisconnected: "badge_device_disconnected";
140
+ readonly UpdateFailed: "badge_update_failed";
141
+ };
142
+ export type AppIconBadgeCountUpdateErrorCodeEnum = typeof AppIconBadgeCountUpdateErrorCodeEnum[keyof typeof AppIconBadgeCountUpdateErrorCodeEnum];
73
143
  /**
74
144
  *
75
145
  * @export
@@ -108,17 +178,31 @@ export interface AppIconBadgeCountUpdateResponse {
108
178
  */
109
179
  badge: number;
110
180
  /**
111
- *
181
+ * Number of devices whose App Icon Badge Count was updated.
112
182
  * @type {number}
113
183
  * @memberof AppIconBadgeCountUpdateResponse
114
184
  */
115
- devices_notified: number;
185
+ devices_updated: number;
116
186
  /**
117
- *
187
+ * Number of account users with at least one updated device.
188
+ * @type {number}
189
+ * @memberof AppIconBadgeCountUpdateResponse
190
+ */
191
+ users_updated: number;
192
+ /**
193
+ * Deprecated compatibility alias for devices_updated.
194
+ * @type {number}
195
+ * @memberof AppIconBadgeCountUpdateResponse
196
+ * @deprecated
197
+ */
198
+ devices_notified?: number;
199
+ /**
200
+ * Deprecated compatibility alias for users_updated.
118
201
  * @type {number}
119
202
  * @memberof AppIconBadgeCountUpdateResponse
203
+ * @deprecated
120
204
  */
121
- users_notified: number;
205
+ users_notified?: number;
122
206
  /**
123
207
  *
124
208
  * @type {Array<string>}
@@ -165,7 +249,7 @@ export interface ChannelTarget {
165
249
  channels: Array<string>;
166
250
  }
167
251
  /**
168
- * End payload requires title. For segmented_progress include current_step and optionally number_of_steps. For progress include percentage or value with upper_limit. For metrics and stats include a non-empty metrics array. For alert include message. For timer, omit duration_seconds to preserve and freeze the latest timer state. Optional icon is supported by all Live Activity types. Optional badge is supported by alert, progress, and segmented_progress. Type is optional when ending an existing activity. You can send an updated number_of_steps here if the workflow changed after start.
252
+ * End payload requires title. For segmented_progress include current_step and optionally number_of_steps. For progress include percentage or value with upper_limit. For metrics and stats include a non-empty metrics array. For value include a string or number in value; strings preserve currency, units, and other formatting. For alert include message. For timer, omit duration_seconds to preserve and freeze the latest timer state. Optional icon is supported by all Live Activity types. Optional badge is supported by alert, progress, segmented_progress, and value. Type is optional when ending an existing activity. You can send an updated number_of_steps here if the workflow changed after start.
169
253
  * @export
170
254
  * @interface ContentStateEnd
171
255
  */
@@ -201,11 +285,11 @@ export interface ContentStateEnd {
201
285
  */
202
286
  percentage?: number;
203
287
  /**
204
- * Current progress value. Use with upper_limit for type=progress.
205
- * @type {number}
288
+ * For type=value, the required prominent readout (string or finite number); strings preserve exact formatting. For type=progress, a numeric progress value used with upper_limit.
289
+ * @type {LiveActivityValue}
206
290
  * @memberof ContentStateEnd
207
291
  */
208
- value?: number;
292
+ value?: LiveActivityValue;
209
293
  /**
210
294
  * Maximum progress value. Use with value for type=progress.
211
295
  * @type {number}
@@ -243,13 +327,13 @@ export interface ContentStateEnd {
243
327
  */
244
328
  message?: string;
245
329
  /**
246
- * Optional SF Symbol icon. Supported by alert, progress, segmented_progress, metrics, stats, and timer.
330
+ * Optional SF Symbol icon. Supported by alert, progress, segmented_progress, metrics, stats, timer, and value.
247
331
  * @type {LiveActivityAlertIcon}
248
332
  * @memberof ContentStateEnd
249
333
  */
250
334
  icon?: LiveActivityAlertIcon;
251
335
  /**
252
- * Optional badge. Supported by alert, progress, and segmented_progress.
336
+ * Optional badge. Supported by alert, progress, segmented_progress, and value.
253
337
  * @type {LiveActivityAlertBadge}
254
338
  * @memberof ContentStateEnd
255
339
  */
@@ -261,7 +345,7 @@ export interface ContentStateEnd {
261
345
  */
262
346
  type?: ContentStateEndTypeEnum;
263
347
  /**
264
- * Optional. Accent color for progress, segmented_progress, metrics, and timer Live Activities. For Alert Live Activities, this tints action and secondary_action buttons when included.
348
+ * Optional. Accent color for progress, segmented_progress, metrics, timer, and value Live Activities. For Alert Live Activities, this tints action and secondary_action buttons when included.
265
349
  * @type {string}
266
350
  * @memberof ContentStateEnd
267
351
  */
@@ -295,6 +379,7 @@ export declare const ContentStateEndTypeEnum: {
295
379
  readonly Stats: "stats";
296
380
  readonly Alert: "alert";
297
381
  readonly Timer: "timer";
382
+ readonly Value: "value";
298
383
  };
299
384
  export type ContentStateEndTypeEnum = typeof ContentStateEndTypeEnum[keyof typeof ContentStateEndTypeEnum];
300
385
  /**
@@ -346,7 +431,7 @@ export declare const ContentStateEndStepColorsEnum: {
346
431
  };
347
432
  export type ContentStateEndStepColorsEnum = typeof ContentStateEndStepColorsEnum[keyof typeof ContentStateEndStepColorsEnum];
348
433
  /**
349
- * Start payload requires title and type. For segmented_progress include number_of_steps and current_step. For progress include percentage or value with upper_limit. For metrics and stats include a non-empty metrics array. For alert include message. For timer include duration_seconds for countdowns, or set counts_down false without duration_seconds for an open-ended elapsed timer. Optional icon is supported by all Live Activity types. Optional badge is supported by alert, progress, and segmented_progress. For segmented_progress, number_of_steps is not locked and can be changed in later update or end calls.
434
+ * Start payload requires title and type. For segmented_progress include number_of_steps and current_step. For progress include percentage or value with upper_limit. For metrics and stats include a non-empty metrics array. For value include a string or number in value; strings preserve currency, units, and other formatting. For alert include message. For timer include duration_seconds for countdowns, or set counts_down false without duration_seconds for an open-ended elapsed timer. Optional icon is supported by all Live Activity types. Optional badge is supported by alert, progress, segmented_progress, and value. For segmented_progress, number_of_steps is not locked and can be changed in later update or end calls.
350
435
  * @export
351
436
  * @interface ContentStateStart
352
437
  */
@@ -382,11 +467,11 @@ export interface ContentStateStart {
382
467
  */
383
468
  percentage?: number;
384
469
  /**
385
- * Current progress value. Use with upper_limit for type=progress.
386
- * @type {number}
470
+ * For type=value, the required prominent readout (string or finite number); strings preserve exact formatting. For type=progress, a numeric progress value used with upper_limit.
471
+ * @type {LiveActivityValue}
387
472
  * @memberof ContentStateStart
388
473
  */
389
- value?: number;
474
+ value?: LiveActivityValue;
390
475
  /**
391
476
  * Maximum progress value. Use with value for type=progress.
392
477
  * @type {number}
@@ -424,13 +509,13 @@ export interface ContentStateStart {
424
509
  */
425
510
  message?: string;
426
511
  /**
427
- * Optional SF Symbol icon. Supported by alert, progress, segmented_progress, metrics, stats, and timer.
512
+ * Optional SF Symbol icon. Supported by alert, progress, segmented_progress, metrics, stats, timer, and value.
428
513
  * @type {LiveActivityAlertIcon}
429
514
  * @memberof ContentStateStart
430
515
  */
431
516
  icon?: LiveActivityAlertIcon;
432
517
  /**
433
- * Optional badge. Supported by alert, progress, and segmented_progress.
518
+ * Optional badge. Supported by alert, progress, segmented_progress, and value.
434
519
  * @type {LiveActivityAlertBadge}
435
520
  * @memberof ContentStateStart
436
521
  */
@@ -442,7 +527,7 @@ export interface ContentStateStart {
442
527
  */
443
528
  type: ContentStateStartTypeEnum;
444
529
  /**
445
- * Optional. Accent color for progress, segmented_progress, metrics, and timer Live Activities. For Alert Live Activities, this tints action and secondary_action buttons when included.
530
+ * Optional. Accent color for progress, segmented_progress, metrics, timer, and value Live Activities. For Alert Live Activities, this tints action and secondary_action buttons when included.
446
531
  * @type {string}
447
532
  * @memberof ContentStateStart
448
533
  */
@@ -470,6 +555,7 @@ export declare const ContentStateStartTypeEnum: {
470
555
  readonly Stats: "stats";
471
556
  readonly Alert: "alert";
472
557
  readonly Timer: "timer";
558
+ readonly Value: "value";
473
559
  };
474
560
  export type ContentStateStartTypeEnum = typeof ContentStateStartTypeEnum[keyof typeof ContentStateStartTypeEnum];
475
561
  /**
@@ -521,7 +607,7 @@ export declare const ContentStateStartStepColorsEnum: {
521
607
  };
522
608
  export type ContentStateStartStepColorsEnum = typeof ContentStateStartStepColorsEnum[keyof typeof ContentStateStartStepColorsEnum];
523
609
  /**
524
- * Update payload requires title. For segmented_progress include current_step and optionally number_of_steps. For progress include percentage or value with upper_limit. For metrics and stats include a non-empty metrics array. For alert include message. For timer, omit duration_seconds to preserve the current timer window or send duration_seconds to reset the timer from the update request time. Optional icon is supported by all Live Activity types. Optional badge is supported by alert, progress, and segmented_progress. Type is optional when updating an existing activity. You can increase or decrease number_of_steps during updates.
610
+ * Update payload requires title. For segmented_progress include current_step and optionally number_of_steps. For progress include percentage or value with upper_limit. For metrics and stats include a non-empty metrics array. For value include a string or number in value; strings preserve currency, units, and other formatting. For alert include message. For timer, omit duration_seconds to preserve the current timer window or send duration_seconds to reset the timer from the update request time. Optional icon is supported by all Live Activity types. Optional badge is supported by alert, progress, segmented_progress, and value. Type is optional when updating an existing activity. You can increase or decrease number_of_steps during updates.
525
611
  * @export
526
612
  * @interface ContentStateUpdate
527
613
  */
@@ -557,11 +643,11 @@ export interface ContentStateUpdate {
557
643
  */
558
644
  percentage?: number;
559
645
  /**
560
- * Current progress value. Use with upper_limit for type=progress.
561
- * @type {number}
646
+ * For type=value, the required prominent readout (string or finite number); strings preserve exact formatting. For type=progress, a numeric progress value used with upper_limit.
647
+ * @type {LiveActivityValue}
562
648
  * @memberof ContentStateUpdate
563
649
  */
564
- value?: number;
650
+ value?: LiveActivityValue;
565
651
  /**
566
652
  * Maximum progress value. Use with value for type=progress.
567
653
  * @type {number}
@@ -599,13 +685,13 @@ export interface ContentStateUpdate {
599
685
  */
600
686
  message?: string;
601
687
  /**
602
- * Optional SF Symbol icon. Supported by alert, progress, segmented_progress, metrics, stats, and timer.
688
+ * Optional SF Symbol icon. Supported by alert, progress, segmented_progress, metrics, stats, timer, and value.
603
689
  * @type {LiveActivityAlertIcon}
604
690
  * @memberof ContentStateUpdate
605
691
  */
606
692
  icon?: LiveActivityAlertIcon;
607
693
  /**
608
- * Optional badge. Supported by alert, progress, and segmented_progress.
694
+ * Optional badge. Supported by alert, progress, segmented_progress, and value.
609
695
  * @type {LiveActivityAlertBadge}
610
696
  * @memberof ContentStateUpdate
611
697
  */
@@ -617,7 +703,7 @@ export interface ContentStateUpdate {
617
703
  */
618
704
  type?: ContentStateUpdateTypeEnum;
619
705
  /**
620
- * Optional. Accent color for progress, segmented_progress, metrics, and timer Live Activities. For Alert Live Activities, this tints action and secondary_action buttons when included.
706
+ * Optional. Accent color for progress, segmented_progress, metrics, timer, and value Live Activities. For Alert Live Activities, this tints action and secondary_action buttons when included.
621
707
  * @type {string}
622
708
  * @memberof ContentStateUpdate
623
709
  */
@@ -645,6 +731,7 @@ export declare const ContentStateUpdateTypeEnum: {
645
731
  readonly Stats: "stats";
646
732
  readonly Alert: "alert";
647
733
  readonly Timer: "timer";
734
+ readonly Value: "value";
648
735
  };
649
736
  export type ContentStateUpdateTypeEnum = typeof ContentStateUpdateTypeEnum[keyof typeof ContentStateUpdateTypeEnum];
650
737
  /**
@@ -715,7 +802,7 @@ export interface ForbiddenError {
715
802
  message: string;
716
803
  }
717
804
  /**
718
- * Optional action button shown in the Live Activity UI. Use action for the primary button, or secondary_action for a secondary button on alert, progress, and segmented_progress Live Activities.
805
+ * Optional action button shown in the Live Activity UI. Use action for the primary button, or secondary_action for a secondary button on alert, progress, segmented_progress, and value Live Activities.
719
806
  * @export
720
807
  * @interface LiveActivityAction
721
808
  */
@@ -822,12 +909,26 @@ export type LiveActivityColor = typeof LiveActivityColor[keyof typeof LiveActivi
822
909
  * @interface LiveActivityEndRequest
823
910
  */
824
911
  export interface LiveActivityEndRequest {
912
+ /**
913
+ * Additional information shown in notification and Live Activity details in ActivitySmith. Not displayed in the Push Notification or Live Activity on the device. Values must be strings, finite numbers, or booleans. At most 50 entries and 16 KB of serialized UTF-8 JSON. Omit on updates to preserve existing Metadata; send {} to clear it.
914
+ * @type {{ [key: string]: MetadataValue; }}
915
+ * @memberof LiveActivityEndRequest
916
+ */
917
+ metadata?: {
918
+ [key: string]: MetadataValue;
919
+ };
825
920
  /**
826
921
  *
827
922
  * @type {string}
828
923
  * @memberof LiveActivityEndRequest
829
924
  */
830
925
  activity_id: string;
926
+ /**
927
+ * Tags for notification history. Omit to keep existing Tags, supply an array to replace them, or send an empty array to clear them.
928
+ * @type {Array<string>}
929
+ * @memberof LiveActivityEndRequest
930
+ */
931
+ tags?: Array<string>;
831
932
  /**
832
933
  *
833
934
  * @type {ContentStateEnd}
@@ -841,7 +942,7 @@ export interface LiveActivityEndRequest {
841
942
  */
842
943
  action?: LiveActivityAction;
843
944
  /**
844
- * Optional secondary action button. Supported for alert, progress, and segmented_progress Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.
945
+ * Optional secondary action button. Supported for alert, progress, segmented_progress, and value Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.
845
946
  * @type {LiveActivityAction}
846
947
  * @memberof LiveActivityEndRequest
847
948
  */
@@ -909,11 +1010,23 @@ export interface LiveActivityLimitError {
909
1010
  */
910
1011
  limit: number;
911
1012
  /**
912
- * Current number of active Live Activities.
1013
+ * Highest number of active Live Activities among the targeted devices.
913
1014
  * @type {number}
914
1015
  * @memberof LiveActivityLimitError
915
1016
  */
916
1017
  active: number;
1018
+ /**
1019
+ * Number of targeted devices that have reached the enforced iOS Live Activity concurrency threshold. Included only when targeted devices have mixed capacity.
1020
+ * @type {number}
1021
+ * @memberof LiveActivityLimitError
1022
+ */
1023
+ blocked_devices?: number;
1024
+ /**
1025
+ * Total number of targeted devices. Included only when targeted devices have mixed capacity.
1026
+ * @type {number}
1027
+ * @memberof LiveActivityLimitError
1028
+ */
1029
+ targeted_devices?: number;
917
1030
  }
918
1031
  /**
919
1032
  * Start a new Live Activity. The response includes activity_id for later update and end calls.
@@ -921,6 +1034,14 @@ export interface LiveActivityLimitError {
921
1034
  * @interface LiveActivityStartRequest
922
1035
  */
923
1036
  export interface LiveActivityStartRequest {
1037
+ /**
1038
+ * Additional information shown in notification and Live Activity details in ActivitySmith. Not displayed in the Push Notification or Live Activity on the device. Values must be strings, finite numbers, or booleans. At most 50 entries and 16 KB of serialized UTF-8 JSON. Omit on updates to preserve existing Metadata; send {} to clear it.
1039
+ * @type {{ [key: string]: MetadataValue; }}
1040
+ * @memberof LiveActivityStartRequest
1041
+ */
1042
+ metadata?: {
1043
+ [key: string]: MetadataValue;
1044
+ };
924
1045
  /**
925
1046
  *
926
1047
  * @type {ContentStateStart}
@@ -934,7 +1055,7 @@ export interface LiveActivityStartRequest {
934
1055
  */
935
1056
  action?: LiveActivityAction;
936
1057
  /**
937
- * Optional secondary action button. Supported for alert, progress, and segmented_progress Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.
1058
+ * Optional secondary action button. Supported for alert, progress, segmented_progress, and value Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.
938
1059
  * @type {LiveActivityAction}
939
1060
  * @memberof LiveActivityStartRequest
940
1061
  */
@@ -1013,6 +1134,20 @@ export interface LiveActivityStartResponse {
1013
1134
  * @interface LiveActivityStreamDeleteRequest
1014
1135
  */
1015
1136
  export interface LiveActivityStreamDeleteRequest {
1137
+ /**
1138
+ * Additional information shown in notification and Live Activity details in ActivitySmith. Not displayed in the Push Notification or Live Activity on the device. Values must be strings, finite numbers, or booleans. At most 50 entries and 16 KB of serialized UTF-8 JSON. Omit on updates to preserve existing Metadata; send {} to clear it.
1139
+ * @type {{ [key: string]: MetadataValue; }}
1140
+ * @memberof LiveActivityStreamDeleteRequest
1141
+ */
1142
+ metadata?: {
1143
+ [key: string]: MetadataValue;
1144
+ };
1145
+ /**
1146
+ * Optional tags to organize and filter notification history.
1147
+ * @type {Array<string>}
1148
+ * @memberof LiveActivityStreamDeleteRequest
1149
+ */
1150
+ tags?: Array<string>;
1016
1151
  /**
1017
1152
  *
1018
1153
  * @type {StreamContentState}
@@ -1026,7 +1161,7 @@ export interface LiveActivityStreamDeleteRequest {
1026
1161
  */
1027
1162
  action?: LiveActivityAction;
1028
1163
  /**
1029
- * Optional secondary action button. Supported for alert, progress, and segmented_progress Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.
1164
+ * Optional secondary action button. Supported for alert, progress, segmented_progress, and value Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.
1030
1165
  * @type {LiveActivityAction}
1031
1166
  * @memberof LiveActivityStreamDeleteRequest
1032
1167
  */
@@ -1184,6 +1319,14 @@ export type LiveActivityStreamPutResponseOperationEnum = typeof LiveActivityStre
1184
1319
  * @interface LiveActivityStreamRequest
1185
1320
  */
1186
1321
  export interface LiveActivityStreamRequest {
1322
+ /**
1323
+ * Additional information shown in notification and Live Activity details in ActivitySmith. Not displayed in the Push Notification or Live Activity on the device. Values must be strings, finite numbers, or booleans. At most 50 entries and 16 KB of serialized UTF-8 JSON. Omit on updates to preserve existing Metadata; send {} to clear it.
1324
+ * @type {{ [key: string]: MetadataValue; }}
1325
+ * @memberof LiveActivityStreamRequest
1326
+ */
1327
+ metadata?: {
1328
+ [key: string]: MetadataValue;
1329
+ };
1187
1330
  /**
1188
1331
  *
1189
1332
  * @type {StreamContentState}
@@ -1197,7 +1340,7 @@ export interface LiveActivityStreamRequest {
1197
1340
  */
1198
1341
  action?: LiveActivityAction;
1199
1342
  /**
1200
- * Optional secondary action button. Supported for alert, progress, and segmented_progress Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.
1343
+ * Optional secondary action button. Supported for alert, progress, segmented_progress, and value Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.
1201
1344
  * @type {LiveActivityAction}
1202
1345
  * @memberof LiveActivityStreamRequest
1203
1346
  */
@@ -1233,12 +1376,26 @@ export interface LiveActivityStreamRequest {
1233
1376
  * @interface LiveActivityUpdateRequest
1234
1377
  */
1235
1378
  export interface LiveActivityUpdateRequest {
1379
+ /**
1380
+ * Additional information shown in notification and Live Activity details in ActivitySmith. Not displayed in the Push Notification or Live Activity on the device. Values must be strings, finite numbers, or booleans. At most 50 entries and 16 KB of serialized UTF-8 JSON. Omit on updates to preserve existing Metadata; send {} to clear it.
1381
+ * @type {{ [key: string]: MetadataValue; }}
1382
+ * @memberof LiveActivityUpdateRequest
1383
+ */
1384
+ metadata?: {
1385
+ [key: string]: MetadataValue;
1386
+ };
1236
1387
  /**
1237
1388
  *
1238
1389
  * @type {string}
1239
1390
  * @memberof LiveActivityUpdateRequest
1240
1391
  */
1241
1392
  activity_id: string;
1393
+ /**
1394
+ * Tags for notification history. Omit to keep existing Tags, supply an array to replace them, or send an empty array to clear them.
1395
+ * @type {Array<string>}
1396
+ * @memberof LiveActivityUpdateRequest
1397
+ */
1398
+ tags?: Array<string>;
1242
1399
  /**
1243
1400
  *
1244
1401
  * @type {ContentStateUpdate}
@@ -1252,7 +1409,7 @@ export interface LiveActivityUpdateRequest {
1252
1409
  */
1253
1410
  action?: LiveActivityAction;
1254
1411
  /**
1255
- * Optional secondary action button. Supported for alert, progress, and segmented_progress Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.
1412
+ * Optional secondary action button. Supported for alert, progress, segmented_progress, and value Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.
1256
1413
  * @type {LiveActivityAction}
1257
1414
  * @memberof LiveActivityUpdateRequest
1258
1415
  */
@@ -1295,6 +1452,12 @@ export interface LiveActivityUpdateResponse {
1295
1452
  */
1296
1453
  timestamp: string;
1297
1454
  }
1455
+ /**
1456
+ * @type LiveActivityValue
1457
+ * A formatted string or finite numeric Live Activity value. String formatting is preserved.
1458
+ * @export
1459
+ */
1460
+ export type LiveActivityValue = number | string;
1298
1461
  /**
1299
1462
  *
1300
1463
  * @export
@@ -1304,6 +1467,12 @@ export declare const LiveActivityWebhookMethod: {
1304
1467
  readonly Post: "POST";
1305
1468
  };
1306
1469
  export type LiveActivityWebhookMethod = typeof LiveActivityWebhookMethod[keyof typeof LiveActivityWebhookMethod];
1470
+ /**
1471
+ * @type MetadataValue
1472
+ *
1473
+ * @export
1474
+ */
1475
+ export type MetadataValue = boolean | number | string;
1307
1476
  /**
1308
1477
  *
1309
1478
  * @export
@@ -1425,7 +1594,7 @@ export interface PushNotificationAction {
1425
1594
  */
1426
1595
  type: PushNotificationActionType;
1427
1596
  /**
1428
- * Action URL. For open_url, use an HTTP or HTTPS URL or a shortcuts://run-shortcut?name=... URL that runs a specific iPhone Shortcut. For webhook, use an HTTPS URL called by the ActivitySmith backend.
1597
+ * Action URL. For open_url, use HTTP, HTTPS, Shortcuts, or an installed app’s custom URL scheme, such as spotify:// or spotify:track:123. Custom app schemes require iOS 1.13.4 build 2 or later; no web fallback is provided. Internal and executable schemes are blocked. For webhook, use an HTTPS URL called by the ActivitySmith backend.
1429
1598
  * @type {string}
1430
1599
  * @memberof PushNotificationAction
1431
1600
  */
@@ -1459,6 +1628,14 @@ export type PushNotificationActionType = typeof PushNotificationActionType[keyof
1459
1628
  */
1460
1629
  export interface PushNotificationRequest {
1461
1630
  [key: string]: any | any;
1631
+ /**
1632
+ * Additional information shown in notification and Live Activity details in ActivitySmith. Not displayed in the Push Notification or Live Activity on the device. Values must be strings, finite numbers, or booleans. At most 50 entries and 16 KB of serialized UTF-8 JSON. Omit on updates to preserve existing Metadata; send {} to clear it.
1633
+ * @type {{ [key: string]: MetadataValue; }}
1634
+ * @memberof PushNotificationRequest
1635
+ */
1636
+ metadata?: {
1637
+ [key: string]: MetadataValue;
1638
+ };
1462
1639
  /**
1463
1640
  *
1464
1641
  * @type {string}
@@ -1484,7 +1661,7 @@ export interface PushNotificationRequest {
1484
1661
  */
1485
1662
  media?: string;
1486
1663
  /**
1487
- * Optional HTTP URL, HTTPS URL, or shortcuts://run-shortcut?name=... URL opened when the user taps the notification body. Use shortcuts://run-shortcut?name=... to run a specific iPhone Shortcut that already exists on the user's device. Overrides the default tap target from `media` when both are provided.
1664
+ * Optional HTTP, HTTPS, Shortcuts, or installed app URL opened when the user taps the notification body. Custom schemes such as spotify:// and spotify:track:123 require iOS 1.13.4 build 2 or later and an installed handler; no web fallback is provided. Internal and executable schemes are blocked. Overrides the default tap target from media.
1488
1665
  * @type {string}
1489
1666
  * @memberof PushNotificationRequest
1490
1667
  */
@@ -1584,6 +1761,12 @@ export type PushNotificationWebhookMethod = typeof PushNotificationWebhookMethod
1584
1761
  * @interface RateLimitError
1585
1762
  */
1586
1763
  export interface RateLimitError {
1764
+ /**
1765
+ *
1766
+ * @type {string}
1767
+ * @memberof RateLimitError
1768
+ */
1769
+ code?: RateLimitErrorCodeEnum;
1587
1770
  /**
1588
1771
  *
1589
1772
  * @type {string}
@@ -1597,6 +1780,13 @@ export interface RateLimitError {
1597
1780
  */
1598
1781
  message: string;
1599
1782
  }
1783
+ /**
1784
+ * @export
1785
+ */
1786
+ export declare const RateLimitErrorCodeEnum: {
1787
+ readonly RateLimited: "rate_limited";
1788
+ };
1789
+ export type RateLimitErrorCodeEnum = typeof RateLimitErrorCodeEnum[keyof typeof RateLimitErrorCodeEnum];
1600
1790
  /**
1601
1791
  * @type SendPushNotification429Response
1602
1792
  *
@@ -1604,7 +1794,7 @@ export interface RateLimitError {
1604
1794
  */
1605
1795
  export type SendPushNotification429Response = LiveActivityLimitError | RateLimitError;
1606
1796
  /**
1607
- * Current state for a managed Live Activity stream. Include type on the first PUT, and whenever the stream may need to start a fresh activity. Supports segmented_progress, progress, metrics, stats, alert, and timer types. For timer, send duration_seconds to start or reset a bounded timer; omit duration_seconds on later updates to preserve the existing timer window.
1797
+ * Current state for a managed Live Activity stream. Include type on the first PUT, and whenever the stream may need to start a fresh activity. Supports segmented_progress, progress, metrics, stats, alert, timer, and value types. For timer, send duration_seconds to start or reset a bounded timer; omit duration_seconds on later updates to preserve the existing timer window.
1608
1798
  * @export
1609
1799
  * @interface StreamContentState
1610
1800
  */
@@ -1640,11 +1830,11 @@ export interface StreamContentState {
1640
1830
  */
1641
1831
  percentage?: number;
1642
1832
  /**
1643
- * Current progress value. Use with upper_limit for progress.
1644
- * @type {number}
1833
+ * For type=value, the required prominent readout (string or finite number); strings preserve exact formatting. For progress, a numeric progress value used with upper_limit.
1834
+ * @type {LiveActivityValue}
1645
1835
  * @memberof StreamContentState
1646
1836
  */
1647
- value?: number;
1837
+ value?: LiveActivityValue;
1648
1838
  /**
1649
1839
  * Maximum progress value. Use with value for progress.
1650
1840
  * @type {number}
@@ -1676,7 +1866,7 @@ export interface StreamContentState {
1676
1866
  */
1677
1867
  type?: StreamContentStateTypeEnum;
1678
1868
  /**
1679
- * Optional. Accent color for progress, segmented_progress, metrics, and timer Live Activities. For Alert Live Activities, this tints action and secondary_action buttons when included.
1869
+ * Optional. Accent color for progress, segmented_progress, metrics, timer, and value Live Activities. For Alert Live Activities, this tints action and secondary_action buttons when included.
1680
1870
  * @type {string}
1681
1871
  * @memberof StreamContentState
1682
1872
  */
@@ -1706,13 +1896,13 @@ export interface StreamContentState {
1706
1896
  */
1707
1897
  message?: string;
1708
1898
  /**
1709
- * Optional SF Symbol icon. Supported by alert, progress, segmented_progress, metrics, stats, and timer.
1899
+ * Optional SF Symbol icon. Supported by alert, progress, segmented_progress, metrics, stats, timer, and value.
1710
1900
  * @type {LiveActivityAlertIcon}
1711
1901
  * @memberof StreamContentState
1712
1902
  */
1713
1903
  icon?: LiveActivityAlertIcon;
1714
1904
  /**
1715
- * Optional badge. Supported by alert, progress, and segmented_progress.
1905
+ * Optional badge. Supported by alert, progress, segmented_progress, and value.
1716
1906
  * @type {LiveActivityAlertBadge}
1717
1907
  * @memberof StreamContentState
1718
1908
  */
@@ -1740,6 +1930,7 @@ export declare const StreamContentStateTypeEnum: {
1740
1930
  readonly Stats: "stats";
1741
1931
  readonly Alert: "alert";
1742
1932
  readonly Timer: "timer";
1933
+ readonly Value: "value";
1743
1934
  };
1744
1935
  export type StreamContentStateTypeEnum = typeof StreamContentStateTypeEnum[keyof typeof StreamContentStateTypeEnum];
1745
1936
  /**
@@ -1790,3 +1981,9 @@ export declare const StreamContentStateStepColorsEnum: {
1790
1981
  readonly Gray: "gray";
1791
1982
  };
1792
1983
  export type StreamContentStateStepColorsEnum = typeof StreamContentStateStepColorsEnum[keyof typeof StreamContentStateStepColorsEnum];
1984
+ /**
1985
+ * @type UpdateAppIconBadgeCount422Response
1986
+ *
1987
+ * @export
1988
+ */
1989
+ export type UpdateAppIconBadgeCount422Response = AppIconBadgeCountUpdateError | NoRecipientsError;