activitysmith 1.0.0 → 1.2.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. 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,7 @@ export interface ContentStateEnd {
132
170
  export declare const ContentStateEndTypeEnum: {
133
171
  readonly SegmentedProgress: "segmented_progress";
134
172
  readonly Progress: "progress";
173
+ readonly Metrics: "metrics";
135
174
  };
136
175
  export type ContentStateEndTypeEnum = typeof ContentStateEndTypeEnum[keyof typeof ContentStateEndTypeEnum];
137
176
  /**
@@ -165,7 +204,22 @@ export declare const ContentStateEndStepColorEnum: {
165
204
  };
166
205
  export type ContentStateEndStepColorEnum = typeof ContentStateEndStepColorEnum[keyof typeof ContentStateEndStepColorEnum];
167
206
  /**
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.
207
+ * @export
208
+ */
209
+ export declare const ContentStateEndStepColorsEnum: {
210
+ readonly Lime: "lime";
211
+ readonly Green: "green";
212
+ readonly Cyan: "cyan";
213
+ readonly Blue: "blue";
214
+ readonly Purple: "purple";
215
+ readonly Magenta: "magenta";
216
+ readonly Red: "red";
217
+ readonly Orange: "orange";
218
+ readonly Yellow: "yellow";
219
+ };
220
+ export type ContentStateEndStepColorsEnum = typeof ContentStateEndStepColorsEnum[keyof typeof ContentStateEndStepColorsEnum];
221
+ /**
222
+ * 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. For segmented_progress, number_of_steps is not locked and can be changed in later update or end calls.
169
223
  * @export
170
224
  * @interface ContentStateStart
171
225
  */
@@ -213,6 +267,12 @@ export interface ContentStateStart {
213
267
  * @memberof ContentStateStart
214
268
  */
215
269
  upper_limit?: number;
270
+ /**
271
+ * Use for type=metrics.
272
+ * @type {Array<ActivityMetric>}
273
+ * @memberof ContentStateStart
274
+ */
275
+ metrics?: Array<ActivityMetric>;
216
276
  /**
217
277
  *
218
278
  * @type {string}
@@ -231,6 +291,12 @@ export interface ContentStateStart {
231
291
  * @memberof ContentStateStart
232
292
  */
233
293
  step_color?: ContentStateStartStepColorEnum;
294
+ /**
295
+ * Optional. Colors for completed steps. When used with segmented_progress, the array length should match current_step.
296
+ * @type {Array<string>}
297
+ * @memberof ContentStateStart
298
+ */
299
+ step_colors?: Array<ContentStateStartStepColorsEnum>;
234
300
  }
235
301
  /**
236
302
  * @export
@@ -238,6 +304,7 @@ export interface ContentStateStart {
238
304
  export declare const ContentStateStartTypeEnum: {
239
305
  readonly SegmentedProgress: "segmented_progress";
240
306
  readonly Progress: "progress";
307
+ readonly Metrics: "metrics";
241
308
  };
242
309
  export type ContentStateStartTypeEnum = typeof ContentStateStartTypeEnum[keyof typeof ContentStateStartTypeEnum];
243
310
  /**
@@ -271,7 +338,22 @@ export declare const ContentStateStartStepColorEnum: {
271
338
  };
272
339
  export type ContentStateStartStepColorEnum = typeof ContentStateStartStepColorEnum[keyof typeof ContentStateStartStepColorEnum];
273
340
  /**
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.
341
+ * @export
342
+ */
343
+ export declare const ContentStateStartStepColorsEnum: {
344
+ readonly Lime: "lime";
345
+ readonly Green: "green";
346
+ readonly Cyan: "cyan";
347
+ readonly Blue: "blue";
348
+ readonly Purple: "purple";
349
+ readonly Magenta: "magenta";
350
+ readonly Red: "red";
351
+ readonly Orange: "orange";
352
+ readonly Yellow: "yellow";
353
+ };
354
+ export type ContentStateStartStepColorsEnum = typeof ContentStateStartStepColorsEnum[keyof typeof ContentStateStartStepColorsEnum];
355
+ /**
356
+ * 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. Type is optional when updating an existing activity. You can increase or decrease number_of_steps during updates.
275
357
  * @export
276
358
  * @interface ContentStateUpdate
277
359
  */
@@ -319,6 +401,12 @@ export interface ContentStateUpdate {
319
401
  * @memberof ContentStateUpdate
320
402
  */
321
403
  upper_limit?: number;
404
+ /**
405
+ * Use for type=metrics.
406
+ * @type {Array<ActivityMetric>}
407
+ * @memberof ContentStateUpdate
408
+ */
409
+ metrics?: Array<ActivityMetric>;
322
410
  /**
323
411
  * Optional. When omitted, the API uses the existing Live Activity type.
324
412
  * @type {string}
@@ -337,6 +425,12 @@ export interface ContentStateUpdate {
337
425
  * @memberof ContentStateUpdate
338
426
  */
339
427
  step_color?: ContentStateUpdateStepColorEnum;
428
+ /**
429
+ * Optional. Colors for completed steps. When used with segmented_progress, the array length should match current_step.
430
+ * @type {Array<string>}
431
+ * @memberof ContentStateUpdate
432
+ */
433
+ step_colors?: Array<ContentStateUpdateStepColorsEnum>;
340
434
  }
341
435
  /**
342
436
  * @export
@@ -344,6 +438,7 @@ export interface ContentStateUpdate {
344
438
  export declare const ContentStateUpdateTypeEnum: {
345
439
  readonly SegmentedProgress: "segmented_progress";
346
440
  readonly Progress: "progress";
441
+ readonly Metrics: "metrics";
347
442
  };
348
443
  export type ContentStateUpdateTypeEnum = typeof ContentStateUpdateTypeEnum[keyof typeof ContentStateUpdateTypeEnum];
349
444
  /**
@@ -376,6 +471,21 @@ export declare const ContentStateUpdateStepColorEnum: {
376
471
  readonly Yellow: "yellow";
377
472
  };
378
473
  export type ContentStateUpdateStepColorEnum = typeof ContentStateUpdateStepColorEnum[keyof typeof ContentStateUpdateStepColorEnum];
474
+ /**
475
+ * @export
476
+ */
477
+ export declare const ContentStateUpdateStepColorsEnum: {
478
+ readonly Lime: "lime";
479
+ readonly Green: "green";
480
+ readonly Cyan: "cyan";
481
+ readonly Blue: "blue";
482
+ readonly Purple: "purple";
483
+ readonly Magenta: "magenta";
484
+ readonly Red: "red";
485
+ readonly Orange: "orange";
486
+ readonly Yellow: "yellow";
487
+ };
488
+ export type ContentStateUpdateStepColorsEnum = typeof ContentStateUpdateStepColorsEnum[keyof typeof ContentStateUpdateStepColorsEnum];
379
489
  /**
380
490
  *
381
491
  * @export
@@ -617,6 +727,206 @@ export interface LiveActivityStartResponse {
617
727
  */
618
728
  timestamp: string;
619
729
  }
730
+ /**
731
+ * Optional payload for ending a managed stream. When omitted, ActivitySmith ends the stream using the latest known state when possible.
732
+ * @export
733
+ * @interface LiveActivityStreamDeleteRequest
734
+ */
735
+ export interface LiveActivityStreamDeleteRequest {
736
+ [key: string]: any | any;
737
+ /**
738
+ *
739
+ * @type {StreamContentState}
740
+ * @memberof LiveActivityStreamDeleteRequest
741
+ */
742
+ content_state?: StreamContentState;
743
+ /**
744
+ *
745
+ * @type {LiveActivityAction}
746
+ * @memberof LiveActivityStreamDeleteRequest
747
+ */
748
+ action?: LiveActivityAction;
749
+ /**
750
+ *
751
+ * @type {AlertPayload}
752
+ * @memberof LiveActivityStreamDeleteRequest
753
+ */
754
+ alert?: AlertPayload;
755
+ }
756
+ /**
757
+ * Returned after a managed stream is ended and removed.
758
+ * @export
759
+ * @interface LiveActivityStreamDeleteResponse
760
+ */
761
+ export interface LiveActivityStreamDeleteResponse {
762
+ [key: string]: any | any;
763
+ /**
764
+ *
765
+ * @type {boolean}
766
+ * @memberof LiveActivityStreamDeleteResponse
767
+ */
768
+ success: boolean;
769
+ /**
770
+ *
771
+ * @type {string}
772
+ * @memberof LiveActivityStreamDeleteResponse
773
+ */
774
+ operation: LiveActivityStreamDeleteResponseOperationEnum;
775
+ /**
776
+ *
777
+ * @type {string}
778
+ * @memberof LiveActivityStreamDeleteResponse
779
+ */
780
+ stream_key: string;
781
+ /**
782
+ *
783
+ * @type {string}
784
+ * @memberof LiveActivityStreamDeleteResponse
785
+ */
786
+ activity_id?: string | null;
787
+ /**
788
+ *
789
+ * @type {number}
790
+ * @memberof LiveActivityStreamDeleteResponse
791
+ */
792
+ devices_queued?: number;
793
+ /**
794
+ *
795
+ * @type {number}
796
+ * @memberof LiveActivityStreamDeleteResponse
797
+ */
798
+ devices_notified?: number;
799
+ /**
800
+ *
801
+ * @type {string}
802
+ * @memberof LiveActivityStreamDeleteResponse
803
+ */
804
+ timestamp: string;
805
+ }
806
+ /**
807
+ * @export
808
+ */
809
+ export declare const LiveActivityStreamDeleteResponseOperationEnum: {
810
+ readonly Ended: "ended";
811
+ };
812
+ export type LiveActivityStreamDeleteResponseOperationEnum = typeof LiveActivityStreamDeleteResponseOperationEnum[keyof typeof LiveActivityStreamDeleteResponseOperationEnum];
813
+ /**
814
+ * Returned after a managed stream request is reconciled.
815
+ * @export
816
+ * @interface LiveActivityStreamPutResponse
817
+ */
818
+ export interface LiveActivityStreamPutResponse {
819
+ [key: string]: any | any;
820
+ /**
821
+ *
822
+ * @type {boolean}
823
+ * @memberof LiveActivityStreamPutResponse
824
+ */
825
+ success: boolean;
826
+ /**
827
+ *
828
+ * @type {string}
829
+ * @memberof LiveActivityStreamPutResponse
830
+ */
831
+ operation: LiveActivityStreamPutResponseOperationEnum;
832
+ /**
833
+ *
834
+ * @type {string}
835
+ * @memberof LiveActivityStreamPutResponse
836
+ */
837
+ stream_key: string;
838
+ /**
839
+ *
840
+ * @type {string}
841
+ * @memberof LiveActivityStreamPutResponse
842
+ */
843
+ activity_id?: string | null;
844
+ /**
845
+ *
846
+ * @type {string}
847
+ * @memberof LiveActivityStreamPutResponse
848
+ */
849
+ previous_activity_id?: string;
850
+ /**
851
+ *
852
+ * @type {number}
853
+ * @memberof LiveActivityStreamPutResponse
854
+ */
855
+ devices_notified?: number;
856
+ /**
857
+ *
858
+ * @type {number}
859
+ * @memberof LiveActivityStreamPutResponse
860
+ */
861
+ devices_queued?: number;
862
+ /**
863
+ *
864
+ * @type {number}
865
+ * @memberof LiveActivityStreamPutResponse
866
+ */
867
+ users_notified?: number;
868
+ /**
869
+ *
870
+ * @type {Array<string>}
871
+ * @memberof LiveActivityStreamPutResponse
872
+ */
873
+ effective_channel_slugs?: Array<string>;
874
+ /**
875
+ *
876
+ * @type {string}
877
+ * @memberof LiveActivityStreamPutResponse
878
+ */
879
+ timestamp: string;
880
+ }
881
+ /**
882
+ * @export
883
+ */
884
+ export declare const LiveActivityStreamPutResponseOperationEnum: {
885
+ readonly Started: "started";
886
+ readonly Updated: "updated";
887
+ readonly Rotated: "rotated";
888
+ readonly Noop: "noop";
889
+ readonly Paused: "paused";
890
+ };
891
+ export type LiveActivityStreamPutResponseOperationEnum = typeof LiveActivityStreamPutResponseOperationEnum[keyof typeof LiveActivityStreamPutResponseOperationEnum];
892
+ /**
893
+ * 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.
894
+ * @export
895
+ * @interface LiveActivityStreamRequest
896
+ */
897
+ export interface LiveActivityStreamRequest {
898
+ [key: string]: any | any;
899
+ /**
900
+ *
901
+ * @type {StreamContentState}
902
+ * @memberof LiveActivityStreamRequest
903
+ */
904
+ content_state: StreamContentState;
905
+ /**
906
+ *
907
+ * @type {LiveActivityAction}
908
+ * @memberof LiveActivityStreamRequest
909
+ */
910
+ action?: LiveActivityAction;
911
+ /**
912
+ *
913
+ * @type {AlertPayload}
914
+ * @memberof LiveActivityStreamRequest
915
+ */
916
+ alert?: AlertPayload;
917
+ /**
918
+ * Channel slugs. When omitted, API key scope determines recipients.
919
+ * @type {Array<string>}
920
+ * @memberof LiveActivityStreamRequest
921
+ */
922
+ channels?: Array<string>;
923
+ /**
924
+ *
925
+ * @type {ChannelTarget}
926
+ * @memberof LiveActivityStreamRequest
927
+ */
928
+ target?: ChannelTarget;
929
+ }
620
930
  /**
621
931
  * Update an existing Live Activity by activity_id.
622
932
  * @export
@@ -690,6 +1000,87 @@ export declare const LiveActivityWebhookMethod: {
690
1000
  readonly Post: "POST";
691
1001
  };
692
1002
  export type LiveActivityWebhookMethod = typeof LiveActivityWebhookMethod[keyof typeof LiveActivityWebhookMethod];
1003
+ /**
1004
+ *
1005
+ * @export
1006
+ * @interface MetricError
1007
+ */
1008
+ export interface MetricError {
1009
+ [key: string]: any | any;
1010
+ /**
1011
+ *
1012
+ * @type {string}
1013
+ * @memberof MetricError
1014
+ */
1015
+ error: string;
1016
+ /**
1017
+ *
1018
+ * @type {string}
1019
+ * @memberof MetricError
1020
+ */
1021
+ message?: string;
1022
+ }
1023
+ /**
1024
+ *
1025
+ * @export
1026
+ */
1027
+ export declare const MetricFormat: {
1028
+ readonly Number: "number";
1029
+ readonly Currency: "currency";
1030
+ readonly Percent: "percent";
1031
+ readonly Unit: "unit";
1032
+ readonly String: "string";
1033
+ };
1034
+ export type MetricFormat = typeof MetricFormat[keyof typeof MetricFormat];
1035
+ /**
1036
+ *
1037
+ * @export
1038
+ */
1039
+ export declare const MetricUnitSpacing: {
1040
+ readonly None: "none";
1041
+ readonly Space: "space";
1042
+ };
1043
+ export type MetricUnitSpacing = typeof MetricUnitSpacing[keyof typeof MetricUnitSpacing];
1044
+ /**
1045
+ * Latest metric value to display in widgets.
1046
+ * @export
1047
+ * @interface MetricValueUpdateRequest
1048
+ */
1049
+ export interface MetricValueUpdateRequest {
1050
+ [key: string]: any | any;
1051
+ /**
1052
+ *
1053
+ * @type {MetricValueUpdateRequestValue}
1054
+ * @memberof MetricValueUpdateRequest
1055
+ */
1056
+ value: MetricValueUpdateRequestValue;
1057
+ /**
1058
+ * Optional ISO timestamp for when the metric value was measured. Defaults to the server receive time.
1059
+ * @type {string}
1060
+ * @memberof MetricValueUpdateRequest
1061
+ */
1062
+ timestamp?: string;
1063
+ }
1064
+ /**
1065
+ * @type MetricValueUpdateRequestValue
1066
+ *
1067
+ * @export
1068
+ */
1069
+ export type MetricValueUpdateRequestValue = number | string;
1070
+ /**
1071
+ *
1072
+ * @export
1073
+ * @interface MetricValueUpdateResponse
1074
+ */
1075
+ export interface MetricValueUpdateResponse {
1076
+ [key: string]: any | any;
1077
+ /**
1078
+ *
1079
+ * @type {WidgetMetric}
1080
+ * @memberof MetricValueUpdateResponse
1081
+ */
1082
+ metric: WidgetMetric;
1083
+ }
693
1084
  /**
694
1085
  *
695
1086
  * @export
@@ -716,6 +1107,26 @@ export interface NoRecipientsError {
716
1107
  */
717
1108
  effective_channel_slugs?: Array<string>;
718
1109
  }
1110
+ /**
1111
+ *
1112
+ * @export
1113
+ * @interface NotFoundError
1114
+ */
1115
+ export interface NotFoundError {
1116
+ [key: string]: any | any;
1117
+ /**
1118
+ *
1119
+ * @type {string}
1120
+ * @memberof NotFoundError
1121
+ */
1122
+ error: string;
1123
+ /**
1124
+ *
1125
+ * @type {string}
1126
+ * @memberof NotFoundError
1127
+ */
1128
+ message: string;
1129
+ }
719
1130
  /**
720
1131
  *
721
1132
  * @export
@@ -908,3 +1319,230 @@ export interface RateLimitError {
908
1319
  * @export
909
1320
  */
910
1321
  export type SendPushNotification429Response = LiveActivityLimitError | RateLimitError;
1322
+ /**
1323
+ * 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, and metrics types.
1324
+ * @export
1325
+ * @interface StreamContentState
1326
+ */
1327
+ export interface StreamContentState {
1328
+ [key: string]: any | any;
1329
+ /**
1330
+ *
1331
+ * @type {string}
1332
+ * @memberof StreamContentState
1333
+ */
1334
+ title: string;
1335
+ /**
1336
+ *
1337
+ * @type {string}
1338
+ * @memberof StreamContentState
1339
+ */
1340
+ subtitle?: string;
1341
+ /**
1342
+ * Use for segmented_progress.
1343
+ * @type {number}
1344
+ * @memberof StreamContentState
1345
+ */
1346
+ number_of_steps?: number;
1347
+ /**
1348
+ * Use for segmented_progress.
1349
+ * @type {number}
1350
+ * @memberof StreamContentState
1351
+ */
1352
+ current_step?: number;
1353
+ /**
1354
+ * Use for progress. Takes precedence over value/upper_limit if both are provided.
1355
+ * @type {number}
1356
+ * @memberof StreamContentState
1357
+ */
1358
+ percentage?: number;
1359
+ /**
1360
+ * Current progress value. Use with upper_limit for progress.
1361
+ * @type {number}
1362
+ * @memberof StreamContentState
1363
+ */
1364
+ value?: number;
1365
+ /**
1366
+ * Maximum progress value. Use with value for progress.
1367
+ * @type {number}
1368
+ * @memberof StreamContentState
1369
+ */
1370
+ upper_limit?: number;
1371
+ /**
1372
+ * Required on the first PUT or whenever the stream cannot infer the current activity type.
1373
+ * @type {string}
1374
+ * @memberof StreamContentState
1375
+ */
1376
+ type?: StreamContentStateTypeEnum;
1377
+ /**
1378
+ * Optional. Accent color for the Live Activity. Defaults to blue.
1379
+ * @type {string}
1380
+ * @memberof StreamContentState
1381
+ */
1382
+ color?: StreamContentStateColorEnum;
1383
+ /**
1384
+ * Optional. Overrides color for the current step. Only applies to segmented_progress.
1385
+ * @type {string}
1386
+ * @memberof StreamContentState
1387
+ */
1388
+ step_color?: StreamContentStateStepColorEnum;
1389
+ /**
1390
+ * Optional. Colors for completed steps. When used with segmented_progress, the array length should match current_step.
1391
+ * @type {Array<string>}
1392
+ * @memberof StreamContentState
1393
+ */
1394
+ step_colors?: Array<StreamContentStateStepColorsEnum>;
1395
+ /**
1396
+ * Use for metrics activities.
1397
+ * @type {Array<ActivityMetric>}
1398
+ * @memberof StreamContentState
1399
+ */
1400
+ metrics?: Array<ActivityMetric>;
1401
+ /**
1402
+ * Optional. Seconds before the ended Live Activity is dismissed.
1403
+ * @type {number}
1404
+ * @memberof StreamContentState
1405
+ */
1406
+ auto_dismiss_seconds?: number;
1407
+ /**
1408
+ * Optional. Minutes before the ended Live Activity is dismissed.
1409
+ * @type {number}
1410
+ * @memberof StreamContentState
1411
+ */
1412
+ auto_dismiss_minutes?: number;
1413
+ }
1414
+ /**
1415
+ * @export
1416
+ */
1417
+ export declare const StreamContentStateTypeEnum: {
1418
+ readonly SegmentedProgress: "segmented_progress";
1419
+ readonly Progress: "progress";
1420
+ readonly Metrics: "metrics";
1421
+ };
1422
+ export type StreamContentStateTypeEnum = typeof StreamContentStateTypeEnum[keyof typeof StreamContentStateTypeEnum];
1423
+ /**
1424
+ * @export
1425
+ */
1426
+ export declare const StreamContentStateColorEnum: {
1427
+ readonly Lime: "lime";
1428
+ readonly Green: "green";
1429
+ readonly Cyan: "cyan";
1430
+ readonly Blue: "blue";
1431
+ readonly Purple: "purple";
1432
+ readonly Magenta: "magenta";
1433
+ readonly Red: "red";
1434
+ readonly Orange: "orange";
1435
+ readonly Yellow: "yellow";
1436
+ };
1437
+ export type StreamContentStateColorEnum = typeof StreamContentStateColorEnum[keyof typeof StreamContentStateColorEnum];
1438
+ /**
1439
+ * @export
1440
+ */
1441
+ export declare const StreamContentStateStepColorEnum: {
1442
+ readonly Lime: "lime";
1443
+ readonly Green: "green";
1444
+ readonly Cyan: "cyan";
1445
+ readonly Blue: "blue";
1446
+ readonly Purple: "purple";
1447
+ readonly Magenta: "magenta";
1448
+ readonly Red: "red";
1449
+ readonly Orange: "orange";
1450
+ readonly Yellow: "yellow";
1451
+ };
1452
+ export type StreamContentStateStepColorEnum = typeof StreamContentStateStepColorEnum[keyof typeof StreamContentStateStepColorEnum];
1453
+ /**
1454
+ * @export
1455
+ */
1456
+ export declare const StreamContentStateStepColorsEnum: {
1457
+ readonly Lime: "lime";
1458
+ readonly Green: "green";
1459
+ readonly Cyan: "cyan";
1460
+ readonly Blue: "blue";
1461
+ readonly Purple: "purple";
1462
+ readonly Magenta: "magenta";
1463
+ readonly Red: "red";
1464
+ readonly Orange: "orange";
1465
+ readonly Yellow: "yellow";
1466
+ };
1467
+ export type StreamContentStateStepColorsEnum = typeof StreamContentStateStepColorsEnum[keyof typeof StreamContentStateStepColorsEnum];
1468
+ /**
1469
+ * A metric configured for ActivitySmith widgets.
1470
+ * @export
1471
+ * @interface WidgetMetric
1472
+ */
1473
+ export interface WidgetMetric {
1474
+ [key: string]: any | any;
1475
+ /**
1476
+ *
1477
+ * @type {string}
1478
+ * @memberof WidgetMetric
1479
+ */
1480
+ public_id: string;
1481
+ /**
1482
+ *
1483
+ * @type {string}
1484
+ * @memberof WidgetMetric
1485
+ */
1486
+ key: string;
1487
+ /**
1488
+ *
1489
+ * @type {string}
1490
+ * @memberof WidgetMetric
1491
+ */
1492
+ label: string;
1493
+ /**
1494
+ * Present when format is currency.
1495
+ * @type {string}
1496
+ * @memberof WidgetMetric
1497
+ */
1498
+ currency_code: string | null;
1499
+ /**
1500
+ * Present when format is unit.
1501
+ * @type {string}
1502
+ * @memberof WidgetMetric
1503
+ */
1504
+ unit: string | null;
1505
+ /**
1506
+ *
1507
+ * @type {MetricUnitSpacing}
1508
+ * @memberof WidgetMetric
1509
+ */
1510
+ unit_spacing: MetricUnitSpacing;
1511
+ /**
1512
+ *
1513
+ * @type {MetricFormat}
1514
+ * @memberof WidgetMetric
1515
+ */
1516
+ format: MetricFormat;
1517
+ /**
1518
+ *
1519
+ * @type {WidgetMetricLatestValue}
1520
+ * @memberof WidgetMetric
1521
+ */
1522
+ latest_value: WidgetMetricLatestValue | null;
1523
+ /**
1524
+ *
1525
+ * @type {string}
1526
+ * @memberof WidgetMetric
1527
+ */
1528
+ latest_value_at: string | null;
1529
+ /**
1530
+ *
1531
+ * @type {string}
1532
+ * @memberof WidgetMetric
1533
+ */
1534
+ created_at: string;
1535
+ /**
1536
+ *
1537
+ * @type {string}
1538
+ * @memberof WidgetMetric
1539
+ */
1540
+ updated_at: string;
1541
+ }
1542
+ /**
1543
+ * Latest metric value. Numeric formats return a number. String metrics return text.
1544
+ * @export
1545
+ * @interface WidgetMetricLatestValue
1546
+ */
1547
+ export interface WidgetMetricLatestValue {
1548
+ }