activitysmith 0.1.8 → 1.1.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.
@@ -1,3 +1,29 @@
1
+ /**
2
+ *
3
+ * @export
4
+ * @interface ActivityMetric
5
+ */
6
+ export interface ActivityMetric {
7
+ [key: string]: any | any;
8
+ /**
9
+ *
10
+ * @type {string}
11
+ * @memberof ActivityMetric
12
+ */
13
+ label: string;
14
+ /**
15
+ *
16
+ * @type {number}
17
+ * @memberof ActivityMetric
18
+ */
19
+ value: number;
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof ActivityMetric
24
+ */
25
+ unit?: string;
26
+ }
1
27
  /**
2
28
  *
3
29
  * @export
@@ -53,7 +79,7 @@ export interface ChannelTarget {
53
79
  channels: Array<string>;
54
80
  }
55
81
  /**
56
- * End payload requires title. For segmented_progress include current_step and optionally number_of_steps. For progress include percentage or value with upper_limit. Type is optional when ending an existing activity. You can send an updated number_of_steps here if the workflow changed after start.
82
+ * 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 include a non-empty metrics array. Legacy counter/timer/countdown types also use current_step and number_of_steps. Type is optional when ending an existing activity. You can send an updated number_of_steps here if the workflow changed after start.
57
83
  * @export
58
84
  * @interface ContentStateEnd
59
85
  */
@@ -101,6 +127,12 @@ export interface ContentStateEnd {
101
127
  * @memberof ContentStateEnd
102
128
  */
103
129
  upper_limit?: number;
130
+ /**
131
+ * Use for type=metrics.
132
+ * @type {Array<ActivityMetric>}
133
+ * @memberof ContentStateEnd
134
+ */
135
+ metrics?: Array<ActivityMetric>;
104
136
  /**
105
137
  * Optional. When omitted, the API uses the existing Live Activity type.
106
138
  * @type {string}
@@ -119,6 +151,12 @@ export interface ContentStateEnd {
119
151
  * @memberof ContentStateEnd
120
152
  */
121
153
  step_color?: ContentStateEndStepColorEnum;
154
+ /**
155
+ * Optional. Colors for completed steps. When used with segmented_progress, the array length should match current_step.
156
+ * @type {Array<string>}
157
+ * @memberof ContentStateEnd
158
+ */
159
+ step_colors?: Array<ContentStateEndStepColorsEnum>;
122
160
  /**
123
161
  * Optional. Minutes before the ended Live Activity is dismissed. Default 3. Set 0 for immediate dismissal. iOS will dismiss ended Live Activities after ~4 hours max.
124
162
  * @type {number}
@@ -132,6 +170,10 @@ export interface ContentStateEnd {
132
170
  export declare const ContentStateEndTypeEnum: {
133
171
  readonly SegmentedProgress: "segmented_progress";
134
172
  readonly Progress: "progress";
173
+ readonly Metrics: "metrics";
174
+ readonly Counter: "counter";
175
+ readonly Timer: "timer";
176
+ readonly Countdown: "countdown";
135
177
  };
136
178
  export type ContentStateEndTypeEnum = typeof ContentStateEndTypeEnum[keyof typeof ContentStateEndTypeEnum];
137
179
  /**
@@ -165,7 +207,22 @@ export declare const ContentStateEndStepColorEnum: {
165
207
  };
166
208
  export type ContentStateEndStepColorEnum = typeof ContentStateEndStepColorEnum[keyof typeof ContentStateEndStepColorEnum];
167
209
  /**
168
- * 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 segmented_progress, number_of_steps is not locked and can be changed in later update or end calls.
210
+ * @export
211
+ */
212
+ export declare const ContentStateEndStepColorsEnum: {
213
+ readonly Lime: "lime";
214
+ readonly Green: "green";
215
+ readonly Cyan: "cyan";
216
+ readonly Blue: "blue";
217
+ readonly Purple: "purple";
218
+ readonly Magenta: "magenta";
219
+ readonly Red: "red";
220
+ readonly Orange: "orange";
221
+ readonly Yellow: "yellow";
222
+ };
223
+ export type ContentStateEndStepColorsEnum = typeof ContentStateEndStepColorsEnum[keyof typeof ContentStateEndStepColorsEnum];
224
+ /**
225
+ * 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 include a non-empty metrics array. Legacy counter/timer/countdown types also use current_step and number_of_steps. For segmented_progress, number_of_steps is not locked and can be changed in later update or end calls.
169
226
  * @export
170
227
  * @interface ContentStateStart
171
228
  */
@@ -213,6 +270,12 @@ export interface ContentStateStart {
213
270
  * @memberof ContentStateStart
214
271
  */
215
272
  upper_limit?: number;
273
+ /**
274
+ * Use for type=metrics.
275
+ * @type {Array<ActivityMetric>}
276
+ * @memberof ContentStateStart
277
+ */
278
+ metrics?: Array<ActivityMetric>;
216
279
  /**
217
280
  *
218
281
  * @type {string}
@@ -231,6 +294,12 @@ export interface ContentStateStart {
231
294
  * @memberof ContentStateStart
232
295
  */
233
296
  step_color?: ContentStateStartStepColorEnum;
297
+ /**
298
+ * Optional. Colors for completed steps. When used with segmented_progress, the array length should match current_step.
299
+ * @type {Array<string>}
300
+ * @memberof ContentStateStart
301
+ */
302
+ step_colors?: Array<ContentStateStartStepColorsEnum>;
234
303
  }
235
304
  /**
236
305
  * @export
@@ -238,6 +307,10 @@ export interface ContentStateStart {
238
307
  export declare const ContentStateStartTypeEnum: {
239
308
  readonly SegmentedProgress: "segmented_progress";
240
309
  readonly Progress: "progress";
310
+ readonly Metrics: "metrics";
311
+ readonly Counter: "counter";
312
+ readonly Timer: "timer";
313
+ readonly Countdown: "countdown";
241
314
  };
242
315
  export type ContentStateStartTypeEnum = typeof ContentStateStartTypeEnum[keyof typeof ContentStateStartTypeEnum];
243
316
  /**
@@ -271,7 +344,22 @@ export declare const ContentStateStartStepColorEnum: {
271
344
  };
272
345
  export type ContentStateStartStepColorEnum = typeof ContentStateStartStepColorEnum[keyof typeof ContentStateStartStepColorEnum];
273
346
  /**
274
- * Update payload requires title. For segmented_progress include current_step and optionally number_of_steps. For progress include percentage or value with upper_limit. Type is optional when updating an existing activity. You can increase or decrease number_of_steps during updates.
347
+ * @export
348
+ */
349
+ export declare const ContentStateStartStepColorsEnum: {
350
+ readonly Lime: "lime";
351
+ readonly Green: "green";
352
+ readonly Cyan: "cyan";
353
+ readonly Blue: "blue";
354
+ readonly Purple: "purple";
355
+ readonly Magenta: "magenta";
356
+ readonly Red: "red";
357
+ readonly Orange: "orange";
358
+ readonly Yellow: "yellow";
359
+ };
360
+ export type ContentStateStartStepColorsEnum = typeof ContentStateStartStepColorsEnum[keyof typeof ContentStateStartStepColorsEnum];
361
+ /**
362
+ * 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 include a non-empty metrics array. Legacy counter/timer/countdown types also use current_step and number_of_steps. Type is optional when updating an existing activity. You can increase or decrease number_of_steps during updates.
275
363
  * @export
276
364
  * @interface ContentStateUpdate
277
365
  */
@@ -319,6 +407,12 @@ export interface ContentStateUpdate {
319
407
  * @memberof ContentStateUpdate
320
408
  */
321
409
  upper_limit?: number;
410
+ /**
411
+ * Use for type=metrics.
412
+ * @type {Array<ActivityMetric>}
413
+ * @memberof ContentStateUpdate
414
+ */
415
+ metrics?: Array<ActivityMetric>;
322
416
  /**
323
417
  * Optional. When omitted, the API uses the existing Live Activity type.
324
418
  * @type {string}
@@ -337,6 +431,12 @@ export interface ContentStateUpdate {
337
431
  * @memberof ContentStateUpdate
338
432
  */
339
433
  step_color?: ContentStateUpdateStepColorEnum;
434
+ /**
435
+ * Optional. Colors for completed steps. When used with segmented_progress, the array length should match current_step.
436
+ * @type {Array<string>}
437
+ * @memberof ContentStateUpdate
438
+ */
439
+ step_colors?: Array<ContentStateUpdateStepColorsEnum>;
340
440
  }
341
441
  /**
342
442
  * @export
@@ -344,6 +444,10 @@ export interface ContentStateUpdate {
344
444
  export declare const ContentStateUpdateTypeEnum: {
345
445
  readonly SegmentedProgress: "segmented_progress";
346
446
  readonly Progress: "progress";
447
+ readonly Metrics: "metrics";
448
+ readonly Counter: "counter";
449
+ readonly Timer: "timer";
450
+ readonly Countdown: "countdown";
347
451
  };
348
452
  export type ContentStateUpdateTypeEnum = typeof ContentStateUpdateTypeEnum[keyof typeof ContentStateUpdateTypeEnum];
349
453
  /**
@@ -376,6 +480,21 @@ export declare const ContentStateUpdateStepColorEnum: {
376
480
  readonly Yellow: "yellow";
377
481
  };
378
482
  export type ContentStateUpdateStepColorEnum = typeof ContentStateUpdateStepColorEnum[keyof typeof ContentStateUpdateStepColorEnum];
483
+ /**
484
+ * @export
485
+ */
486
+ export declare const ContentStateUpdateStepColorsEnum: {
487
+ readonly Lime: "lime";
488
+ readonly Green: "green";
489
+ readonly Cyan: "cyan";
490
+ readonly Blue: "blue";
491
+ readonly Purple: "purple";
492
+ readonly Magenta: "magenta";
493
+ readonly Red: "red";
494
+ readonly Orange: "orange";
495
+ readonly Yellow: "yellow";
496
+ };
497
+ export type ContentStateUpdateStepColorsEnum = typeof ContentStateUpdateStepColorsEnum[keyof typeof ContentStateUpdateStepColorsEnum];
379
498
  /**
380
499
  *
381
500
  * @export
@@ -396,6 +515,55 @@ export interface ForbiddenError {
396
515
  */
397
516
  message: string;
398
517
  }
518
+ /**
519
+ * Optional single action button shown in the Live Activity UI.
520
+ * @export
521
+ * @interface LiveActivityAction
522
+ */
523
+ export interface LiveActivityAction {
524
+ [key: string]: any | any;
525
+ /**
526
+ * Button title displayed in the Live Activity UI.
527
+ * @type {string}
528
+ * @memberof LiveActivityAction
529
+ */
530
+ title: string;
531
+ /**
532
+ *
533
+ * @type {LiveActivityActionType}
534
+ * @memberof LiveActivityAction
535
+ */
536
+ type: LiveActivityActionType;
537
+ /**
538
+ * HTTPS URL. For open_url it is opened in browser. For webhook it is called by ActivitySmith backend.
539
+ * @type {string}
540
+ * @memberof LiveActivityAction
541
+ */
542
+ url: string;
543
+ /**
544
+ * Webhook HTTP method. Used only when type=webhook.
545
+ * @type {LiveActivityWebhookMethod}
546
+ * @memberof LiveActivityAction
547
+ */
548
+ method?: LiveActivityWebhookMethod;
549
+ /**
550
+ * Optional webhook payload body. Used only when type=webhook.
551
+ * @type {{ [key: string]: any; }}
552
+ * @memberof LiveActivityAction
553
+ */
554
+ body?: {
555
+ [key: string]: any;
556
+ };
557
+ }
558
+ /**
559
+ *
560
+ * @export
561
+ */
562
+ export declare const LiveActivityActionType: {
563
+ readonly OpenUrl: "open_url";
564
+ readonly Webhook: "webhook";
565
+ };
566
+ export type LiveActivityActionType = typeof LiveActivityActionType[keyof typeof LiveActivityActionType];
399
567
  /**
400
568
  * End an existing Live Activity by activity_id.
401
569
  * @export
@@ -415,6 +583,12 @@ export interface LiveActivityEndRequest {
415
583
  * @memberof LiveActivityEndRequest
416
584
  */
417
585
  content_state: ContentStateEnd;
586
+ /**
587
+ *
588
+ * @type {LiveActivityAction}
589
+ * @memberof LiveActivityEndRequest
590
+ */
591
+ action?: LiveActivityAction;
418
592
  }
419
593
  /**
420
594
  * Returned after a Live Activity end event is sent or queued.
@@ -499,6 +673,12 @@ export interface LiveActivityStartRequest {
499
673
  * @memberof LiveActivityStartRequest
500
674
  */
501
675
  content_state: ContentStateStart;
676
+ /**
677
+ *
678
+ * @type {LiveActivityAction}
679
+ * @memberof LiveActivityStartRequest
680
+ */
681
+ action?: LiveActivityAction;
502
682
  /**
503
683
  *
504
684
  * @type {AlertPayload}
@@ -556,6 +736,206 @@ export interface LiveActivityStartResponse {
556
736
  */
557
737
  timestamp: string;
558
738
  }
739
+ /**
740
+ * Optional payload for ending a managed stream. When omitted, ActivitySmith ends the stream using the latest known state when possible.
741
+ * @export
742
+ * @interface LiveActivityStreamDeleteRequest
743
+ */
744
+ export interface LiveActivityStreamDeleteRequest {
745
+ [key: string]: any | any;
746
+ /**
747
+ *
748
+ * @type {StreamContentState}
749
+ * @memberof LiveActivityStreamDeleteRequest
750
+ */
751
+ content_state?: StreamContentState;
752
+ /**
753
+ *
754
+ * @type {LiveActivityAction}
755
+ * @memberof LiveActivityStreamDeleteRequest
756
+ */
757
+ action?: LiveActivityAction;
758
+ /**
759
+ *
760
+ * @type {AlertPayload}
761
+ * @memberof LiveActivityStreamDeleteRequest
762
+ */
763
+ alert?: AlertPayload;
764
+ }
765
+ /**
766
+ * Returned after a managed stream is ended and removed.
767
+ * @export
768
+ * @interface LiveActivityStreamDeleteResponse
769
+ */
770
+ export interface LiveActivityStreamDeleteResponse {
771
+ [key: string]: any | any;
772
+ /**
773
+ *
774
+ * @type {boolean}
775
+ * @memberof LiveActivityStreamDeleteResponse
776
+ */
777
+ success: boolean;
778
+ /**
779
+ *
780
+ * @type {string}
781
+ * @memberof LiveActivityStreamDeleteResponse
782
+ */
783
+ operation: LiveActivityStreamDeleteResponseOperationEnum;
784
+ /**
785
+ *
786
+ * @type {string}
787
+ * @memberof LiveActivityStreamDeleteResponse
788
+ */
789
+ stream_key: string;
790
+ /**
791
+ *
792
+ * @type {string}
793
+ * @memberof LiveActivityStreamDeleteResponse
794
+ */
795
+ activity_id?: string | null;
796
+ /**
797
+ *
798
+ * @type {number}
799
+ * @memberof LiveActivityStreamDeleteResponse
800
+ */
801
+ devices_queued?: number;
802
+ /**
803
+ *
804
+ * @type {number}
805
+ * @memberof LiveActivityStreamDeleteResponse
806
+ */
807
+ devices_notified?: number;
808
+ /**
809
+ *
810
+ * @type {string}
811
+ * @memberof LiveActivityStreamDeleteResponse
812
+ */
813
+ timestamp: string;
814
+ }
815
+ /**
816
+ * @export
817
+ */
818
+ export declare const LiveActivityStreamDeleteResponseOperationEnum: {
819
+ readonly Ended: "ended";
820
+ };
821
+ export type LiveActivityStreamDeleteResponseOperationEnum = typeof LiveActivityStreamDeleteResponseOperationEnum[keyof typeof LiveActivityStreamDeleteResponseOperationEnum];
822
+ /**
823
+ * Returned after a managed stream request is reconciled.
824
+ * @export
825
+ * @interface LiveActivityStreamPutResponse
826
+ */
827
+ export interface LiveActivityStreamPutResponse {
828
+ [key: string]: any | any;
829
+ /**
830
+ *
831
+ * @type {boolean}
832
+ * @memberof LiveActivityStreamPutResponse
833
+ */
834
+ success: boolean;
835
+ /**
836
+ *
837
+ * @type {string}
838
+ * @memberof LiveActivityStreamPutResponse
839
+ */
840
+ operation: LiveActivityStreamPutResponseOperationEnum;
841
+ /**
842
+ *
843
+ * @type {string}
844
+ * @memberof LiveActivityStreamPutResponse
845
+ */
846
+ stream_key: string;
847
+ /**
848
+ *
849
+ * @type {string}
850
+ * @memberof LiveActivityStreamPutResponse
851
+ */
852
+ activity_id?: string | null;
853
+ /**
854
+ *
855
+ * @type {string}
856
+ * @memberof LiveActivityStreamPutResponse
857
+ */
858
+ previous_activity_id?: string;
859
+ /**
860
+ *
861
+ * @type {number}
862
+ * @memberof LiveActivityStreamPutResponse
863
+ */
864
+ devices_notified?: number;
865
+ /**
866
+ *
867
+ * @type {number}
868
+ * @memberof LiveActivityStreamPutResponse
869
+ */
870
+ devices_queued?: number;
871
+ /**
872
+ *
873
+ * @type {number}
874
+ * @memberof LiveActivityStreamPutResponse
875
+ */
876
+ users_notified?: number;
877
+ /**
878
+ *
879
+ * @type {Array<string>}
880
+ * @memberof LiveActivityStreamPutResponse
881
+ */
882
+ effective_channel_slugs?: Array<string>;
883
+ /**
884
+ *
885
+ * @type {string}
886
+ * @memberof LiveActivityStreamPutResponse
887
+ */
888
+ timestamp: string;
889
+ }
890
+ /**
891
+ * @export
892
+ */
893
+ export declare const LiveActivityStreamPutResponseOperationEnum: {
894
+ readonly Started: "started";
895
+ readonly Updated: "updated";
896
+ readonly Rotated: "rotated";
897
+ readonly Noop: "noop";
898
+ readonly Paused: "paused";
899
+ };
900
+ export type LiveActivityStreamPutResponseOperationEnum = typeof LiveActivityStreamPutResponseOperationEnum[keyof typeof LiveActivityStreamPutResponseOperationEnum];
901
+ /**
902
+ * Send the latest state for a managed Live Activity stream. channels is the streamlined form for stream targeting. target.channels is also accepted for compatibility. If both are provided, they must match.
903
+ * @export
904
+ * @interface LiveActivityStreamRequest
905
+ */
906
+ export interface LiveActivityStreamRequest {
907
+ [key: string]: any | any;
908
+ /**
909
+ *
910
+ * @type {StreamContentState}
911
+ * @memberof LiveActivityStreamRequest
912
+ */
913
+ content_state: StreamContentState;
914
+ /**
915
+ *
916
+ * @type {LiveActivityAction}
917
+ * @memberof LiveActivityStreamRequest
918
+ */
919
+ action?: LiveActivityAction;
920
+ /**
921
+ *
922
+ * @type {AlertPayload}
923
+ * @memberof LiveActivityStreamRequest
924
+ */
925
+ alert?: AlertPayload;
926
+ /**
927
+ * Channel slugs. When omitted, API key scope determines recipients.
928
+ * @type {Array<string>}
929
+ * @memberof LiveActivityStreamRequest
930
+ */
931
+ channels?: Array<string>;
932
+ /**
933
+ *
934
+ * @type {ChannelTarget}
935
+ * @memberof LiveActivityStreamRequest
936
+ */
937
+ target?: ChannelTarget;
938
+ }
559
939
  /**
560
940
  * Update an existing Live Activity by activity_id.
561
941
  * @export
@@ -575,6 +955,12 @@ export interface LiveActivityUpdateRequest {
575
955
  * @memberof LiveActivityUpdateRequest
576
956
  */
577
957
  content_state: ContentStateUpdate;
958
+ /**
959
+ *
960
+ * @type {LiveActivityAction}
961
+ * @memberof LiveActivityUpdateRequest
962
+ */
963
+ action?: LiveActivityAction;
578
964
  }
579
965
  /**
580
966
  * Returned after a Live Activity update is sent or queued.
@@ -614,6 +1000,15 @@ export interface LiveActivityUpdateResponse {
614
1000
  */
615
1001
  timestamp: string;
616
1002
  }
1003
+ /**
1004
+ *
1005
+ * @export
1006
+ */
1007
+ export declare const LiveActivityWebhookMethod: {
1008
+ readonly Get: "GET";
1009
+ readonly Post: "POST";
1010
+ };
1011
+ export type LiveActivityWebhookMethod = typeof LiveActivityWebhookMethod[keyof typeof LiveActivityWebhookMethod];
617
1012
  /**
618
1013
  *
619
1014
  * @export
@@ -640,6 +1035,26 @@ export interface NoRecipientsError {
640
1035
  */
641
1036
  effective_channel_slugs?: Array<string>;
642
1037
  }
1038
+ /**
1039
+ *
1040
+ * @export
1041
+ * @interface NotFoundError
1042
+ */
1043
+ export interface NotFoundError {
1044
+ [key: string]: any | any;
1045
+ /**
1046
+ *
1047
+ * @type {string}
1048
+ * @memberof NotFoundError
1049
+ */
1050
+ error: string;
1051
+ /**
1052
+ *
1053
+ * @type {string}
1054
+ * @memberof NotFoundError
1055
+ */
1056
+ message: string;
1057
+ }
643
1058
  /**
644
1059
  *
645
1060
  * @export
@@ -832,3 +1247,152 @@ export interface RateLimitError {
832
1247
  * @export
833
1248
  */
834
1249
  export type SendPushNotification429Response = LiveActivityLimitError | RateLimitError;
1250
+ /**
1251
+ * 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, and the legacy counter/timer/countdown step-based types.
1252
+ * @export
1253
+ * @interface StreamContentState
1254
+ */
1255
+ export interface StreamContentState {
1256
+ [key: string]: any | any;
1257
+ /**
1258
+ *
1259
+ * @type {string}
1260
+ * @memberof StreamContentState
1261
+ */
1262
+ title: string;
1263
+ /**
1264
+ *
1265
+ * @type {string}
1266
+ * @memberof StreamContentState
1267
+ */
1268
+ subtitle?: string;
1269
+ /**
1270
+ * Use for segmented_progress, counter, timer, and countdown.
1271
+ * @type {number}
1272
+ * @memberof StreamContentState
1273
+ */
1274
+ number_of_steps?: number;
1275
+ /**
1276
+ * Use for segmented_progress, counter, timer, and countdown.
1277
+ * @type {number}
1278
+ * @memberof StreamContentState
1279
+ */
1280
+ current_step?: number;
1281
+ /**
1282
+ * Use for progress. Takes precedence over value/upper_limit if both are provided.
1283
+ * @type {number}
1284
+ * @memberof StreamContentState
1285
+ */
1286
+ percentage?: number;
1287
+ /**
1288
+ * Current progress value. Use with upper_limit for progress.
1289
+ * @type {number}
1290
+ * @memberof StreamContentState
1291
+ */
1292
+ value?: number;
1293
+ /**
1294
+ * Maximum progress value. Use with value for progress.
1295
+ * @type {number}
1296
+ * @memberof StreamContentState
1297
+ */
1298
+ upper_limit?: number;
1299
+ /**
1300
+ * Required on the first PUT or whenever the stream cannot infer the current activity type.
1301
+ * @type {string}
1302
+ * @memberof StreamContentState
1303
+ */
1304
+ type?: StreamContentStateTypeEnum;
1305
+ /**
1306
+ * Optional. Accent color for the Live Activity. Defaults to blue.
1307
+ * @type {string}
1308
+ * @memberof StreamContentState
1309
+ */
1310
+ color?: StreamContentStateColorEnum;
1311
+ /**
1312
+ * Optional. Overrides color for the current step. Only applies to segmented_progress.
1313
+ * @type {string}
1314
+ * @memberof StreamContentState
1315
+ */
1316
+ step_color?: StreamContentStateStepColorEnum;
1317
+ /**
1318
+ * Optional. Colors for completed steps. When used with segmented_progress, the array length should match current_step.
1319
+ * @type {Array<string>}
1320
+ * @memberof StreamContentState
1321
+ */
1322
+ step_colors?: Array<StreamContentStateStepColorsEnum>;
1323
+ /**
1324
+ * Use for metrics activities.
1325
+ * @type {Array<ActivityMetric>}
1326
+ * @memberof StreamContentState
1327
+ */
1328
+ metrics?: Array<ActivityMetric>;
1329
+ /**
1330
+ * Optional. Seconds before the ended Live Activity is dismissed.
1331
+ * @type {number}
1332
+ * @memberof StreamContentState
1333
+ */
1334
+ auto_dismiss_seconds?: number;
1335
+ /**
1336
+ * Optional. Minutes before the ended Live Activity is dismissed.
1337
+ * @type {number}
1338
+ * @memberof StreamContentState
1339
+ */
1340
+ auto_dismiss_minutes?: number;
1341
+ }
1342
+ /**
1343
+ * @export
1344
+ */
1345
+ export declare const StreamContentStateTypeEnum: {
1346
+ readonly SegmentedProgress: "segmented_progress";
1347
+ readonly Progress: "progress";
1348
+ readonly Metrics: "metrics";
1349
+ readonly Counter: "counter";
1350
+ readonly Timer: "timer";
1351
+ readonly Countdown: "countdown";
1352
+ };
1353
+ export type StreamContentStateTypeEnum = typeof StreamContentStateTypeEnum[keyof typeof StreamContentStateTypeEnum];
1354
+ /**
1355
+ * @export
1356
+ */
1357
+ export declare const StreamContentStateColorEnum: {
1358
+ readonly Lime: "lime";
1359
+ readonly Green: "green";
1360
+ readonly Cyan: "cyan";
1361
+ readonly Blue: "blue";
1362
+ readonly Purple: "purple";
1363
+ readonly Magenta: "magenta";
1364
+ readonly Red: "red";
1365
+ readonly Orange: "orange";
1366
+ readonly Yellow: "yellow";
1367
+ };
1368
+ export type StreamContentStateColorEnum = typeof StreamContentStateColorEnum[keyof typeof StreamContentStateColorEnum];
1369
+ /**
1370
+ * @export
1371
+ */
1372
+ export declare const StreamContentStateStepColorEnum: {
1373
+ readonly Lime: "lime";
1374
+ readonly Green: "green";
1375
+ readonly Cyan: "cyan";
1376
+ readonly Blue: "blue";
1377
+ readonly Purple: "purple";
1378
+ readonly Magenta: "magenta";
1379
+ readonly Red: "red";
1380
+ readonly Orange: "orange";
1381
+ readonly Yellow: "yellow";
1382
+ };
1383
+ export type StreamContentStateStepColorEnum = typeof StreamContentStateStepColorEnum[keyof typeof StreamContentStateStepColorEnum];
1384
+ /**
1385
+ * @export
1386
+ */
1387
+ export declare const StreamContentStateStepColorsEnum: {
1388
+ readonly Lime: "lime";
1389
+ readonly Green: "green";
1390
+ readonly Cyan: "cyan";
1391
+ readonly Blue: "blue";
1392
+ readonly Purple: "purple";
1393
+ readonly Magenta: "magenta";
1394
+ readonly Red: "red";
1395
+ readonly Orange: "orange";
1396
+ readonly Yellow: "yellow";
1397
+ };
1398
+ export type StreamContentStateStepColorsEnum = typeof StreamContentStateStepColorsEnum[keyof typeof StreamContentStateStepColorsEnum];