activitysmith 1.14.0 → 1.16.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.
- package/README.md +119 -12
- package/dist/generated/apis/AppIconBadgesApi.d.ts +4 -4
- package/dist/generated/apis/AppIconBadgesApi.js +4 -4
- package/dist/generated/apis/DevicesApi.d.ts +33 -0
- package/dist/generated/apis/DevicesApi.js +62 -0
- package/dist/generated/apis/LiveActivitiesApi.d.ts +4 -4
- package/dist/generated/apis/LiveActivitiesApi.js +4 -4
- package/dist/generated/apis/MetricsApi.d.ts +17 -3
- package/dist/generated/apis/MetricsApi.js +37 -2
- package/dist/generated/apis/PushNotificationsApi.d.ts +14 -1
- package/dist/generated/apis/PushNotificationsApi.js +33 -0
- package/dist/generated/apis/index.d.ts +1 -0
- package/dist/generated/apis/index.js +1 -0
- package/dist/generated/models/index.d.ts +427 -14
- package/dist/generated/models/index.js +35 -1
- package/dist/src/ActivitySmith.d.ts +42 -2
- package/dist/src/ActivitySmith.js +51 -2
- package/package.json +1 -1
|
@@ -1,3 +1,140 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An iPhone or iPad paired to the account, one entry per device and owner.
|
|
3
|
+
* @export
|
|
4
|
+
* @interface AccountDevice
|
|
5
|
+
*/
|
|
6
|
+
export interface AccountDevice {
|
|
7
|
+
/**
|
|
8
|
+
* Email of the account member who paired the device.
|
|
9
|
+
* @type {string}
|
|
10
|
+
* @memberof AccountDevice
|
|
11
|
+
*/
|
|
12
|
+
user_email: string;
|
|
13
|
+
/**
|
|
14
|
+
* Device ID. Use it to assign the device to Channels.
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof AccountDevice
|
|
17
|
+
*/
|
|
18
|
+
device_id: string;
|
|
19
|
+
/**
|
|
20
|
+
* Device platform, such as ios. iPhones and iPads both report ios; use system_name to tell them apart.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AccountDevice
|
|
23
|
+
*/
|
|
24
|
+
device_type: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* True when the device can receive Push Notifications or Live Activities.
|
|
27
|
+
* @type {boolean}
|
|
28
|
+
* @memberof AccountDevice
|
|
29
|
+
*/
|
|
30
|
+
is_active: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Whether each delivery token is active, keyed by token type (push, start_live_activity).
|
|
33
|
+
* @type {{ [key: string]: boolean; }}
|
|
34
|
+
* @memberof AccountDevice
|
|
35
|
+
*/
|
|
36
|
+
token_status: {
|
|
37
|
+
[key: string]: boolean;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* ActivitySmith app version on the device.
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof AccountDevice
|
|
43
|
+
*/
|
|
44
|
+
app_version: string | null;
|
|
45
|
+
/**
|
|
46
|
+
* Device name set on the device.
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof AccountDevice
|
|
49
|
+
*/
|
|
50
|
+
device_name: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* Operating system name, such as iOS or iPadOS.
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof AccountDevice
|
|
55
|
+
*/
|
|
56
|
+
system_name: string | null;
|
|
57
|
+
/**
|
|
58
|
+
* Operating system version.
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof AccountDevice
|
|
61
|
+
*/
|
|
62
|
+
system_version: string | null;
|
|
63
|
+
/**
|
|
64
|
+
* When the device was first paired.
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof AccountDevice
|
|
67
|
+
*/
|
|
68
|
+
created_at: string | null;
|
|
69
|
+
/**
|
|
70
|
+
* When the device last updated its pairing.
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof AccountDevice
|
|
73
|
+
*/
|
|
74
|
+
updated_at: string | null;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @export
|
|
79
|
+
* @interface AccountDeviceListResponse
|
|
80
|
+
*/
|
|
81
|
+
export interface AccountDeviceListResponse {
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {Array<AccountDevice>}
|
|
85
|
+
* @memberof AccountDeviceListResponse
|
|
86
|
+
*/
|
|
87
|
+
devices: Array<AccountDevice>;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {AccountDeviceListResponseMeta}
|
|
91
|
+
* @memberof AccountDeviceListResponse
|
|
92
|
+
*/
|
|
93
|
+
meta: AccountDeviceListResponseMeta;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @export
|
|
98
|
+
* @interface AccountDeviceListResponseMeta
|
|
99
|
+
*/
|
|
100
|
+
export interface AccountDeviceListResponseMeta {
|
|
101
|
+
/**
|
|
102
|
+
* Devices matching the filter.
|
|
103
|
+
* @type {number}
|
|
104
|
+
* @memberof AccountDeviceListResponseMeta
|
|
105
|
+
*/
|
|
106
|
+
total: number;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @type {number}
|
|
110
|
+
* @memberof AccountDeviceListResponseMeta
|
|
111
|
+
*/
|
|
112
|
+
limit: number;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @type {number}
|
|
116
|
+
* @memberof AccountDeviceListResponseMeta
|
|
117
|
+
*/
|
|
118
|
+
offset: number;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @type {boolean}
|
|
122
|
+
* @memberof AccountDeviceListResponseMeta
|
|
123
|
+
*/
|
|
124
|
+
has_more: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Offset for the next page, or null on the last page.
|
|
127
|
+
* @type {number}
|
|
128
|
+
* @memberof AccountDeviceListResponseMeta
|
|
129
|
+
*/
|
|
130
|
+
next_offset: number | null;
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
* @type {boolean}
|
|
134
|
+
* @memberof AccountDeviceListResponseMeta
|
|
135
|
+
*/
|
|
136
|
+
include_inactive: boolean;
|
|
137
|
+
}
|
|
1
138
|
/**
|
|
2
139
|
*
|
|
3
140
|
* @export
|
|
@@ -178,7 +315,7 @@ export interface AppIconBadgeCountUpdateResponse {
|
|
|
178
315
|
*/
|
|
179
316
|
badge: number;
|
|
180
317
|
/**
|
|
181
|
-
* Number of devices whose App Icon Badge
|
|
318
|
+
* Number of devices whose App Icon Badge was updated.
|
|
182
319
|
* @type {number}
|
|
183
320
|
* @memberof AppIconBadgeCountUpdateResponse
|
|
184
321
|
*/
|
|
@@ -508,13 +645,13 @@ export declare const ContentStateEndStepColorsEnum: {
|
|
|
508
645
|
};
|
|
509
646
|
export type ContentStateEndStepColorsEnum = typeof ContentStateEndStepColorsEnum[keyof typeof ContentStateEndStepColorsEnum];
|
|
510
647
|
/**
|
|
511
|
-
* 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
|
|
648
|
+
* 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 or timer_end_at for countdowns, or set counts_down false without them for an open-ended elapsed timer. Add timer_start_at for a timer that started earlier. 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.
|
|
512
649
|
* @export
|
|
513
650
|
* @interface ContentStateStart
|
|
514
651
|
*/
|
|
515
652
|
export interface ContentStateStart {
|
|
516
653
|
/**
|
|
517
|
-
*
|
|
654
|
+
* Title shown on the Live Activity. Send an empty string to show no title.
|
|
518
655
|
* @type {string}
|
|
519
656
|
* @memberof ContentStateStart
|
|
520
657
|
*/
|
|
@@ -556,11 +693,23 @@ export interface ContentStateStart {
|
|
|
556
693
|
*/
|
|
557
694
|
upper_limit?: number;
|
|
558
695
|
/**
|
|
559
|
-
* Timer duration in seconds. For type=timer countdowns, required on start when counts_down is true or omitted.
|
|
696
|
+
* Timer duration in seconds. For type=timer countdowns, required on start when counts_down is true or omitted, unless you send timer_end_at. Counts from timer_start_at when you send it.
|
|
560
697
|
* @type {number}
|
|
561
698
|
* @memberof ContentStateStart
|
|
562
699
|
*/
|
|
563
700
|
duration_seconds?: number;
|
|
701
|
+
/**
|
|
702
|
+
* Use with type=timer. ISO 8601 date and time when the timer started. It can be in the past, so a countdown that started earlier shows the time already gone in its progress bar. Defaults to the request time. Must not be in the future.
|
|
703
|
+
* @type {string}
|
|
704
|
+
* @memberof ContentStateStart
|
|
705
|
+
*/
|
|
706
|
+
timer_start_at?: string;
|
|
707
|
+
/**
|
|
708
|
+
* Use with type=timer. ISO 8601 date and time when the countdown ends. Must be after timer_start_at, or in the future when timer_start_at is omitted. Send duration_seconds or timer_end_at, not both.
|
|
709
|
+
* @type {string}
|
|
710
|
+
* @memberof ContentStateStart
|
|
711
|
+
*/
|
|
712
|
+
timer_end_at?: string;
|
|
564
713
|
/**
|
|
565
714
|
* Use with type=timer. When true or omitted, the timer counts down from duration_seconds. Set false for an elapsed timer; omit duration_seconds for an open-ended elapsed timer.
|
|
566
715
|
* @type {boolean}
|
|
@@ -690,7 +839,7 @@ export type ContentStateStartStepColorsEnum = typeof ContentStateStartStepColors
|
|
|
690
839
|
*/
|
|
691
840
|
export interface ContentStateUpdate {
|
|
692
841
|
/**
|
|
693
|
-
*
|
|
842
|
+
* Title shown on the Live Activity. Send an empty string to show no title.
|
|
694
843
|
* @type {string}
|
|
695
844
|
* @memberof ContentStateUpdate
|
|
696
845
|
*/
|
|
@@ -732,11 +881,23 @@ export interface ContentStateUpdate {
|
|
|
732
881
|
*/
|
|
733
882
|
upper_limit?: number;
|
|
734
883
|
/**
|
|
735
|
-
* Timer duration in seconds. For type=timer, sending duration_seconds resets the timer window from the update request time
|
|
884
|
+
* Timer duration in seconds. For type=timer, sending duration_seconds resets the timer window from the update request time, or from timer_start_at when you send it. Omit it to preserve the existing timer window.
|
|
736
885
|
* @type {number}
|
|
737
886
|
* @memberof ContentStateUpdate
|
|
738
887
|
*/
|
|
739
888
|
duration_seconds?: number;
|
|
889
|
+
/**
|
|
890
|
+
* Use with type=timer. ISO 8601 date and time when the timer started. It can be in the past, so a countdown that started earlier shows the time already gone in its progress bar. Defaults to the request time. Must not be in the future.
|
|
891
|
+
* @type {string}
|
|
892
|
+
* @memberof ContentStateUpdate
|
|
893
|
+
*/
|
|
894
|
+
timer_start_at?: string;
|
|
895
|
+
/**
|
|
896
|
+
* Use with type=timer. ISO 8601 date and time when the countdown ends. Must be after timer_start_at, or in the future when timer_start_at is omitted. Send duration_seconds or timer_end_at, not both. Send timer_end_at alone to move the end and keep the current start.
|
|
897
|
+
* @type {string}
|
|
898
|
+
* @memberof ContentStateUpdate
|
|
899
|
+
*/
|
|
900
|
+
timer_end_at?: string;
|
|
740
901
|
/**
|
|
741
902
|
* Use with type=timer. When true or omitted, the timer counts down from duration_seconds. Set false for an elapsed timer; omit duration_seconds for an open-ended elapsed timer.
|
|
742
903
|
* @type {boolean}
|
|
@@ -1024,6 +1185,12 @@ export interface LiveActivityEndRequest {
|
|
|
1024
1185
|
* @memberof LiveActivityEndRequest
|
|
1025
1186
|
*/
|
|
1026
1187
|
secondary_action?: LiveActivityAction;
|
|
1188
|
+
/**
|
|
1189
|
+
* Optional sound for the end. Ends are silent unless you set one. A sound also expands the Live Activity on the Lock Screen. Sounds bundled with the ActivitySmith app: `arrive`, `bell`, `bells`, `bitflip`, `bloom`, `callout`, `chime`, `coin`, `corrupt`, `crest`, `cue`, `ding`, `drop`, `ember`, `emblem`, `flourish`, `glimmer`, `glint`, `glitch`, `lantern`, `nightfall`, `nudge`, `pixel`, `pop`, `signal`, `streak`, `tally`, `wand`, `whoosh`, `zip`. Use `default` for the sound picked on the device, or `none` for no sound.
|
|
1190
|
+
* @type {string}
|
|
1191
|
+
* @memberof LiveActivityEndRequest
|
|
1192
|
+
*/
|
|
1193
|
+
sound?: string;
|
|
1027
1194
|
}
|
|
1028
1195
|
/**
|
|
1029
1196
|
* Returned after a Live Activity end event is sent or queued.
|
|
@@ -1191,6 +1358,12 @@ export interface LiveActivityStartRequest {
|
|
|
1191
1358
|
* @memberof LiveActivityStartRequest
|
|
1192
1359
|
*/
|
|
1193
1360
|
tags?: Array<string>;
|
|
1361
|
+
/**
|
|
1362
|
+
* Optional sound for the start. Omit it to play the Live Activities sound picked on the device. Sounds bundled with the ActivitySmith app: `arrive`, `bell`, `bells`, `bitflip`, `bloom`, `callout`, `chime`, `coin`, `corrupt`, `crest`, `cue`, `ding`, `drop`, `ember`, `emblem`, `flourish`, `glimmer`, `glint`, `glitch`, `lantern`, `nightfall`, `nudge`, `pixel`, `pop`, `signal`, `streak`, `tally`, `wand`, `whoosh`, `zip`. Use `default` for the sound picked on the device, or `none` for no sound.
|
|
1363
|
+
* @type {string}
|
|
1364
|
+
* @memberof LiveActivityStartRequest
|
|
1365
|
+
*/
|
|
1366
|
+
sound?: string;
|
|
1194
1367
|
}
|
|
1195
1368
|
/**
|
|
1196
1369
|
* Returned after a Live Activity starts. Save activity_id and use it for all later updates and for the final end call.
|
|
@@ -1303,6 +1476,12 @@ export interface LiveActivityStreamDeleteRequest {
|
|
|
1303
1476
|
* @memberof LiveActivityStreamDeleteRequest
|
|
1304
1477
|
*/
|
|
1305
1478
|
alert?: AlertPayload;
|
|
1479
|
+
/**
|
|
1480
|
+
* Optional sound for the end. Ends are silent unless you set one. A sound also expands the Live Activity on the Lock Screen. Sounds bundled with the ActivitySmith app: `arrive`, `bell`, `bells`, `bitflip`, `bloom`, `callout`, `chime`, `coin`, `corrupt`, `crest`, `cue`, `ding`, `drop`, `ember`, `emblem`, `flourish`, `glimmer`, `glint`, `glitch`, `lantern`, `nightfall`, `nudge`, `pixel`, `pop`, `signal`, `streak`, `tally`, `wand`, `whoosh`, `zip`. Use `default` for the sound picked on the device, or `none` for no sound.
|
|
1481
|
+
* @type {string}
|
|
1482
|
+
* @memberof LiveActivityStreamDeleteRequest
|
|
1483
|
+
*/
|
|
1484
|
+
sound?: string;
|
|
1306
1485
|
}
|
|
1307
1486
|
/**
|
|
1308
1487
|
* Returned after a managed stream is ended and removed.
|
|
@@ -1371,7 +1550,13 @@ export interface LiveActivityStreamDeleteResponse {
|
|
|
1371
1550
|
*/
|
|
1372
1551
|
forced_completion?: boolean;
|
|
1373
1552
|
/**
|
|
1374
|
-
*
|
|
1553
|
+
* Present when the stream had a current Live Activity. True when the end was sent to at least one device, or queued for a device that has not registered yet. False when no device received it, so the Live Activity may stay on the Lock Screen until iOS removes it or someone dismisses it.
|
|
1554
|
+
* @type {boolean}
|
|
1555
|
+
* @memberof LiveActivityStreamDeleteResponse
|
|
1556
|
+
*/
|
|
1557
|
+
delivered?: boolean;
|
|
1558
|
+
/**
|
|
1559
|
+
* Explains why the end may not have removed the Live Activity, for example because iOS had already ended a Live Activity that started more than 8 hours ago.
|
|
1375
1560
|
* @type {string}
|
|
1376
1561
|
* @memberof LiveActivityStreamDeleteResponse
|
|
1377
1562
|
*/
|
|
@@ -1560,6 +1745,12 @@ export interface LiveActivityStreamRequest {
|
|
|
1560
1745
|
* @memberof LiveActivityStreamRequest
|
|
1561
1746
|
*/
|
|
1562
1747
|
tags?: Array<string>;
|
|
1748
|
+
/**
|
|
1749
|
+
* Optional sound for this call. A call that starts a Live Activity plays the Live Activities sound picked on the device unless you set one. Updates are silent unless you set one. A sound on an update also expands the Live Activity on the Lock Screen. Sounds bundled with the ActivitySmith app: `arrive`, `bell`, `bells`, `bitflip`, `bloom`, `callout`, `chime`, `coin`, `corrupt`, `crest`, `cue`, `ding`, `drop`, `ember`, `emblem`, `flourish`, `glimmer`, `glint`, `glitch`, `lantern`, `nightfall`, `nudge`, `pixel`, `pop`, `signal`, `streak`, `tally`, `wand`, `whoosh`, `zip`. Use `default` for the sound picked on the device, or `none` for no sound.
|
|
1750
|
+
* @type {string}
|
|
1751
|
+
* @memberof LiveActivityStreamRequest
|
|
1752
|
+
*/
|
|
1753
|
+
sound?: string;
|
|
1563
1754
|
}
|
|
1564
1755
|
/**
|
|
1565
1756
|
* Update an existing Live Activity by activity_id.
|
|
@@ -1605,6 +1796,12 @@ export interface LiveActivityUpdateRequest {
|
|
|
1605
1796
|
* @memberof LiveActivityUpdateRequest
|
|
1606
1797
|
*/
|
|
1607
1798
|
secondary_action?: LiveActivityAction;
|
|
1799
|
+
/**
|
|
1800
|
+
* Optional sound for this update. Updates are silent unless you set one. A sound also expands the Live Activity on the Lock Screen. Sounds bundled with the ActivitySmith app: `arrive`, `bell`, `bells`, `bitflip`, `bloom`, `callout`, `chime`, `coin`, `corrupt`, `crest`, `cue`, `ding`, `drop`, `ember`, `emblem`, `flourish`, `glimmer`, `glint`, `glitch`, `lantern`, `nightfall`, `nudge`, `pixel`, `pop`, `signal`, `streak`, `tally`, `wand`, `whoosh`, `zip`. Use `default` for the sound picked on the device, or `none` for no sound.
|
|
1801
|
+
* @type {string}
|
|
1802
|
+
* @memberof LiveActivityUpdateRequest
|
|
1803
|
+
*/
|
|
1804
|
+
sound?: string;
|
|
1608
1805
|
}
|
|
1609
1806
|
/**
|
|
1610
1807
|
* Returned after a Live Activity update is sent or queued.
|
|
@@ -1706,6 +1903,98 @@ export type LiveActivityWebhookMethod = typeof LiveActivityWebhookMethod[keyof t
|
|
|
1706
1903
|
* @export
|
|
1707
1904
|
*/
|
|
1708
1905
|
export type MetadataValue = boolean | number | string;
|
|
1906
|
+
/**
|
|
1907
|
+
*
|
|
1908
|
+
* @export
|
|
1909
|
+
* @interface Metric
|
|
1910
|
+
*/
|
|
1911
|
+
export interface Metric {
|
|
1912
|
+
/**
|
|
1913
|
+
*
|
|
1914
|
+
* @type {string}
|
|
1915
|
+
* @memberof Metric
|
|
1916
|
+
*/
|
|
1917
|
+
public_id: string;
|
|
1918
|
+
/**
|
|
1919
|
+
*
|
|
1920
|
+
* @type {string}
|
|
1921
|
+
* @memberof Metric
|
|
1922
|
+
*/
|
|
1923
|
+
key: string;
|
|
1924
|
+
/**
|
|
1925
|
+
*
|
|
1926
|
+
* @type {string}
|
|
1927
|
+
* @memberof Metric
|
|
1928
|
+
*/
|
|
1929
|
+
label: string;
|
|
1930
|
+
/**
|
|
1931
|
+
*
|
|
1932
|
+
* @type {string}
|
|
1933
|
+
* @memberof Metric
|
|
1934
|
+
*/
|
|
1935
|
+
format: MetricFormatEnum;
|
|
1936
|
+
/**
|
|
1937
|
+
*
|
|
1938
|
+
* @type {string}
|
|
1939
|
+
* @memberof Metric
|
|
1940
|
+
*/
|
|
1941
|
+
currency_code: string | null;
|
|
1942
|
+
/**
|
|
1943
|
+
*
|
|
1944
|
+
* @type {string}
|
|
1945
|
+
* @memberof Metric
|
|
1946
|
+
*/
|
|
1947
|
+
unit: string | null;
|
|
1948
|
+
/**
|
|
1949
|
+
*
|
|
1950
|
+
* @type {string}
|
|
1951
|
+
* @memberof Metric
|
|
1952
|
+
*/
|
|
1953
|
+
unit_spacing: MetricUnitSpacingEnum;
|
|
1954
|
+
/**
|
|
1955
|
+
*
|
|
1956
|
+
* @type {any}
|
|
1957
|
+
* @memberof Metric
|
|
1958
|
+
*/
|
|
1959
|
+
latest_value: any | null;
|
|
1960
|
+
/**
|
|
1961
|
+
*
|
|
1962
|
+
* @type {string}
|
|
1963
|
+
* @memberof Metric
|
|
1964
|
+
*/
|
|
1965
|
+
latest_value_at: string | null;
|
|
1966
|
+
/**
|
|
1967
|
+
*
|
|
1968
|
+
* @type {string}
|
|
1969
|
+
* @memberof Metric
|
|
1970
|
+
*/
|
|
1971
|
+
created_at: string;
|
|
1972
|
+
/**
|
|
1973
|
+
*
|
|
1974
|
+
* @type {string}
|
|
1975
|
+
* @memberof Metric
|
|
1976
|
+
*/
|
|
1977
|
+
updated_at: string;
|
|
1978
|
+
}
|
|
1979
|
+
/**
|
|
1980
|
+
* @export
|
|
1981
|
+
*/
|
|
1982
|
+
export declare const MetricFormatEnum: {
|
|
1983
|
+
readonly Number: "number";
|
|
1984
|
+
readonly Currency: "currency";
|
|
1985
|
+
readonly Percent: "percent";
|
|
1986
|
+
readonly Unit: "unit";
|
|
1987
|
+
readonly String: "string";
|
|
1988
|
+
};
|
|
1989
|
+
export type MetricFormatEnum = typeof MetricFormatEnum[keyof typeof MetricFormatEnum];
|
|
1990
|
+
/**
|
|
1991
|
+
* @export
|
|
1992
|
+
*/
|
|
1993
|
+
export declare const MetricUnitSpacingEnum: {
|
|
1994
|
+
readonly None: "none";
|
|
1995
|
+
readonly Space: "space";
|
|
1996
|
+
};
|
|
1997
|
+
export type MetricUnitSpacingEnum = typeof MetricUnitSpacingEnum[keyof typeof MetricUnitSpacingEnum];
|
|
1709
1998
|
/**
|
|
1710
1999
|
*
|
|
1711
2000
|
* @export
|
|
@@ -1725,6 +2014,75 @@ export interface MetricError {
|
|
|
1725
2014
|
*/
|
|
1726
2015
|
message?: string;
|
|
1727
2016
|
}
|
|
2017
|
+
/**
|
|
2018
|
+
*
|
|
2019
|
+
* @export
|
|
2020
|
+
* @interface MetricResponse
|
|
2021
|
+
*/
|
|
2022
|
+
export interface MetricResponse {
|
|
2023
|
+
/**
|
|
2024
|
+
*
|
|
2025
|
+
* @type {Metric}
|
|
2026
|
+
* @memberof MetricResponse
|
|
2027
|
+
*/
|
|
2028
|
+
metric: Metric;
|
|
2029
|
+
}
|
|
2030
|
+
/**
|
|
2031
|
+
* Metric definition. Omitted fields keep their current values, or use defaults for a new metric: a label made from the key and the number format.
|
|
2032
|
+
* @export
|
|
2033
|
+
* @interface MetricUpsertRequest
|
|
2034
|
+
*/
|
|
2035
|
+
export interface MetricUpsertRequest {
|
|
2036
|
+
/**
|
|
2037
|
+
* Name shown on the widget.
|
|
2038
|
+
* @type {string}
|
|
2039
|
+
* @memberof MetricUpsertRequest
|
|
2040
|
+
*/
|
|
2041
|
+
label?: string;
|
|
2042
|
+
/**
|
|
2043
|
+
* How widgets display the value: number (1,234), currency (requires currency_code), percent (send 99.9 to show 99.9%), unit (a number with a unit suffix, such as 120 ms), or string (text up to 64 characters). Defaults to number for a new metric.
|
|
2044
|
+
* @type {string}
|
|
2045
|
+
* @memberof MetricUpsertRequest
|
|
2046
|
+
*/
|
|
2047
|
+
format?: MetricUpsertRequestFormatEnum;
|
|
2048
|
+
/**
|
|
2049
|
+
* 3-letter ISO 4217 currency code, such as USD. Required for the currency format.
|
|
2050
|
+
* @type {string}
|
|
2051
|
+
* @memberof MetricUpsertRequest
|
|
2052
|
+
*/
|
|
2053
|
+
currency_code?: string;
|
|
2054
|
+
/**
|
|
2055
|
+
* Unit suffix for the unit format, such as ms or GB.
|
|
2056
|
+
* @type {string}
|
|
2057
|
+
* @memberof MetricUpsertRequest
|
|
2058
|
+
*/
|
|
2059
|
+
unit?: string;
|
|
2060
|
+
/**
|
|
2061
|
+
* For the unit format: none shows 120ms, space shows 120 ms.
|
|
2062
|
+
* @type {string}
|
|
2063
|
+
* @memberof MetricUpsertRequest
|
|
2064
|
+
*/
|
|
2065
|
+
unit_spacing?: MetricUpsertRequestUnitSpacingEnum;
|
|
2066
|
+
}
|
|
2067
|
+
/**
|
|
2068
|
+
* @export
|
|
2069
|
+
*/
|
|
2070
|
+
export declare const MetricUpsertRequestFormatEnum: {
|
|
2071
|
+
readonly Number: "number";
|
|
2072
|
+
readonly Currency: "currency";
|
|
2073
|
+
readonly Percent: "percent";
|
|
2074
|
+
readonly Unit: "unit";
|
|
2075
|
+
readonly String: "string";
|
|
2076
|
+
};
|
|
2077
|
+
export type MetricUpsertRequestFormatEnum = typeof MetricUpsertRequestFormatEnum[keyof typeof MetricUpsertRequestFormatEnum];
|
|
2078
|
+
/**
|
|
2079
|
+
* @export
|
|
2080
|
+
*/
|
|
2081
|
+
export declare const MetricUpsertRequestUnitSpacingEnum: {
|
|
2082
|
+
readonly None: "none";
|
|
2083
|
+
readonly Space: "space";
|
|
2084
|
+
};
|
|
2085
|
+
export type MetricUpsertRequestUnitSpacingEnum = typeof MetricUpsertRequestUnitSpacingEnum[keyof typeof MetricUpsertRequestUnitSpacingEnum];
|
|
1728
2086
|
/**
|
|
1729
2087
|
* Latest metric value to display in widgets.
|
|
1730
2088
|
* @export
|
|
@@ -1762,6 +2120,12 @@ export interface MetricValueUpdateResponse {
|
|
|
1762
2120
|
* @memberof MetricValueUpdateResponse
|
|
1763
2121
|
*/
|
|
1764
2122
|
success: boolean;
|
|
2123
|
+
/**
|
|
2124
|
+
* true when this request created the metric because no metric used the key yet.
|
|
2125
|
+
* @type {boolean}
|
|
2126
|
+
* @memberof MetricValueUpdateResponse
|
|
2127
|
+
*/
|
|
2128
|
+
created?: boolean;
|
|
1765
2129
|
}
|
|
1766
2130
|
/**
|
|
1767
2131
|
*
|
|
@@ -1775,12 +2139,24 @@ export interface NoRecipientsError {
|
|
|
1775
2139
|
* @memberof NoRecipientsError
|
|
1776
2140
|
*/
|
|
1777
2141
|
error: string;
|
|
2142
|
+
/**
|
|
2143
|
+
* Machine-readable reason. no_paired_devices: the account has no active paired iOS devices; pair an iPhone with the ActivitySmith app. no_recipients_found: devices are paired, but none matched the targeted channels. Treat unknown values as a generic no-delivery error.
|
|
2144
|
+
* @type {string}
|
|
2145
|
+
* @memberof NoRecipientsError
|
|
2146
|
+
*/
|
|
2147
|
+
code?: string;
|
|
1778
2148
|
/**
|
|
1779
2149
|
*
|
|
1780
2150
|
* @type {string}
|
|
1781
2151
|
* @memberof NoRecipientsError
|
|
1782
2152
|
*/
|
|
1783
2153
|
message: string;
|
|
2154
|
+
/**
|
|
2155
|
+
* ActivitySmith App Store link. Present when code is no_paired_devices.
|
|
2156
|
+
* @type {string}
|
|
2157
|
+
* @memberof NoRecipientsError
|
|
2158
|
+
*/
|
|
2159
|
+
app_store_url?: string;
|
|
1784
2160
|
/**
|
|
1785
2161
|
*
|
|
1786
2162
|
* @type {Array<string>}
|
|
@@ -1837,7 +2213,7 @@ export interface PushNotificationAction {
|
|
|
1837
2213
|
*/
|
|
1838
2214
|
type: PushNotificationActionType;
|
|
1839
2215
|
/**
|
|
1840
|
-
* 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
|
|
2216
|
+
* 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 have no web fallback. Internal and executable schemes are blocked. For webhook, use an HTTPS URL called by the ActivitySmith backend.
|
|
1841
2217
|
* @type {string}
|
|
1842
2218
|
* @memberof PushNotificationAction
|
|
1843
2219
|
*/
|
|
@@ -1864,6 +2240,31 @@ export declare const PushNotificationActionType: {
|
|
|
1864
2240
|
readonly Webhook: "webhook";
|
|
1865
2241
|
};
|
|
1866
2242
|
export type PushNotificationActionType = typeof PushNotificationActionType[keyof typeof PushNotificationActionType];
|
|
2243
|
+
/**
|
|
2244
|
+
* Dismissal result. Devices clear the notification after this response, so it does not confirm that any device has cleared it.
|
|
2245
|
+
* @export
|
|
2246
|
+
* @interface PushNotificationDismissResponse
|
|
2247
|
+
*/
|
|
2248
|
+
export interface PushNotificationDismissResponse {
|
|
2249
|
+
/**
|
|
2250
|
+
* True when the dismissal is recorded.
|
|
2251
|
+
* @type {boolean}
|
|
2252
|
+
* @memberof PushNotificationDismissResponse
|
|
2253
|
+
*/
|
|
2254
|
+
success: boolean;
|
|
2255
|
+
/**
|
|
2256
|
+
* ID of the dismissed Push Notification.
|
|
2257
|
+
* @type {string}
|
|
2258
|
+
* @memberof PushNotificationDismissResponse
|
|
2259
|
+
*/
|
|
2260
|
+
notification_id: string;
|
|
2261
|
+
/**
|
|
2262
|
+
* When the notification was first dismissed. Repeat calls return the same time.
|
|
2263
|
+
* @type {string}
|
|
2264
|
+
* @memberof PushNotificationDismissResponse
|
|
2265
|
+
*/
|
|
2266
|
+
dismissed_at: string;
|
|
2267
|
+
}
|
|
1867
2268
|
/**
|
|
1868
2269
|
* Replacement content. title, subtitle, message, redirection, media, icon, actions, and payload fully replace the original values. Omit metadata or tags to keep the stored values; send {} or [] to clear them.
|
|
1869
2270
|
* @export
|
|
@@ -1910,7 +2311,7 @@ export interface PushNotificationReplaceRequest {
|
|
|
1910
2311
|
*/
|
|
1911
2312
|
media?: string;
|
|
1912
2313
|
/**
|
|
1913
|
-
* 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
|
|
2314
|
+
* 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 an installed handler; no web fallback is provided. Internal and executable schemes are blocked. Overrides the default tap target from media.
|
|
1914
2315
|
* @type {string}
|
|
1915
2316
|
* @memberof PushNotificationReplaceRequest
|
|
1916
2317
|
*/
|
|
@@ -2041,7 +2442,7 @@ export interface PushNotificationRequest {
|
|
|
2041
2442
|
*/
|
|
2042
2443
|
media?: string;
|
|
2043
2444
|
/**
|
|
2044
|
-
* 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
|
|
2445
|
+
* 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 an installed handler; no web fallback is provided. Internal and executable schemes are blocked. Overrides the default tap target from media.
|
|
2045
2446
|
* @type {string}
|
|
2046
2447
|
* @memberof PushNotificationRequest
|
|
2047
2448
|
*/
|
|
@@ -2065,7 +2466,7 @@ export interface PushNotificationRequest {
|
|
|
2065
2466
|
*/
|
|
2066
2467
|
badge?: number;
|
|
2067
2468
|
/**
|
|
2068
|
-
*
|
|
2469
|
+
* Optional sound for this Push Notification. Omit it to play the Push Notifications sound picked on the device. Passive Push Notifications play no sound. Sounds bundled with the ActivitySmith app: `arrive`, `bell`, `bells`, `bitflip`, `bloom`, `callout`, `chime`, `coin`, `corrupt`, `crest`, `cue`, `ding`, `drop`, `ember`, `emblem`, `flourish`, `glimmer`, `glint`, `glitch`, `lantern`, `nightfall`, `nudge`, `pixel`, `pop`, `signal`, `streak`, `tally`, `wand`, `whoosh`, `zip`. Use `default` for the sound picked on the device, or `none` for no sound.
|
|
2069
2470
|
* @type {string}
|
|
2070
2471
|
* @memberof PushNotificationRequest
|
|
2071
2472
|
*/
|
|
@@ -2210,13 +2611,13 @@ export type RateLimitErrorCodeEnum = typeof RateLimitErrorCodeEnum[keyof typeof
|
|
|
2210
2611
|
*/
|
|
2211
2612
|
export type SendPushNotification429Response = LiveActivityLimitError | RateLimitError;
|
|
2212
2613
|
/**
|
|
2213
|
-
* 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
|
|
2614
|
+
* 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 or timer_end_at to start or reset a bounded timer, and timer_start_at for a timer that started earlier. Omit them on later updates to preserve the existing timer window.
|
|
2214
2615
|
* @export
|
|
2215
2616
|
* @interface StreamContentState
|
|
2216
2617
|
*/
|
|
2217
2618
|
export interface StreamContentState {
|
|
2218
2619
|
/**
|
|
2219
|
-
*
|
|
2620
|
+
* Title shown on the Live Activity. Send an empty string to show no title.
|
|
2220
2621
|
* @type {string}
|
|
2221
2622
|
* @memberof StreamContentState
|
|
2222
2623
|
*/
|
|
@@ -2258,11 +2659,23 @@ export interface StreamContentState {
|
|
|
2258
2659
|
*/
|
|
2259
2660
|
upper_limit?: number;
|
|
2260
2661
|
/**
|
|
2261
|
-
* Timer duration in seconds. For type=timer, send duration_seconds to start or reset the timer window
|
|
2662
|
+
* Timer duration in seconds. For type=timer, send duration_seconds to start or reset the timer window, counted from timer_start_at when you send it. Omit it on later stream updates to preserve the existing timer window.
|
|
2262
2663
|
* @type {number}
|
|
2263
2664
|
* @memberof StreamContentState
|
|
2264
2665
|
*/
|
|
2265
2666
|
duration_seconds?: number;
|
|
2667
|
+
/**
|
|
2668
|
+
* Use with type=timer. ISO 8601 date and time when the timer started. It can be in the past, so a countdown that started earlier shows the time already gone in its progress bar. Defaults to the request time. Must not be in the future.
|
|
2669
|
+
* @type {string}
|
|
2670
|
+
* @memberof StreamContentState
|
|
2671
|
+
*/
|
|
2672
|
+
timer_start_at?: string;
|
|
2673
|
+
/**
|
|
2674
|
+
* Use with type=timer. ISO 8601 date and time when the countdown ends. Must be after timer_start_at, or in the future when timer_start_at is omitted. Send duration_seconds or timer_end_at, not both. On later stream updates, send timer_end_at alone to move the end and keep the current start.
|
|
2675
|
+
* @type {string}
|
|
2676
|
+
* @memberof StreamContentState
|
|
2677
|
+
*/
|
|
2678
|
+
timer_end_at?: string;
|
|
2266
2679
|
/**
|
|
2267
2680
|
* Use with type=timer. When true or omitted, the timer counts down from duration_seconds. Set false for an elapsed timer; omit duration_seconds for an open-ended elapsed timer.
|
|
2268
2681
|
* @type {boolean}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StreamContentStateStepColorsEnum = exports.StreamContentStateStepColorEnum = exports.StreamContentStateColorEnum = exports.StreamContentStateTypeEnum = exports.RateLimitErrorCodeEnum = exports.PushNotificationWebhookMethod = exports.PushNotificationActionType = exports.PushInterruptionLevel = exports.LiveActivityWebhookMethod = exports.LiveActivityStreamPutResponseOperationEnum = exports.LiveActivityStreamDeleteResponseOperationEnum = exports.LiveActivityColor = exports.LiveActivityActionType = exports.ContentStateUpdateStepColorsEnum = exports.ContentStateUpdateStepColorEnum = exports.ContentStateUpdateColorEnum = exports.ContentStateUpdateTypeEnum = exports.ContentStateStartStepColorsEnum = exports.ContentStateStartStepColorEnum = exports.ContentStateStartColorEnum = exports.ContentStateStartTypeEnum = exports.ContentStateEndStepColorsEnum = exports.ContentStateEndStepColorEnum = exports.ContentStateEndColorEnum = exports.ContentStateEndTypeEnum = exports.BillingBlockedErrorErrorEnum = exports.AppIconBadgeCountUpdateErrorCodeEnum = exports.ActivityMetricColorEnum = void 0;
|
|
3
|
+
exports.StreamContentStateStepColorsEnum = exports.StreamContentStateStepColorEnum = exports.StreamContentStateColorEnum = exports.StreamContentStateTypeEnum = exports.RateLimitErrorCodeEnum = exports.PushNotificationWebhookMethod = exports.PushNotificationActionType = exports.PushInterruptionLevel = exports.MetricUpsertRequestUnitSpacingEnum = exports.MetricUpsertRequestFormatEnum = exports.MetricUnitSpacingEnum = exports.MetricFormatEnum = exports.LiveActivityWebhookMethod = exports.LiveActivityStreamPutResponseOperationEnum = exports.LiveActivityStreamDeleteResponseOperationEnum = exports.LiveActivityColor = exports.LiveActivityActionType = exports.ContentStateUpdateStepColorsEnum = exports.ContentStateUpdateStepColorEnum = exports.ContentStateUpdateColorEnum = exports.ContentStateUpdateTypeEnum = exports.ContentStateStartStepColorsEnum = exports.ContentStateStartStepColorEnum = exports.ContentStateStartColorEnum = exports.ContentStateStartTypeEnum = exports.ContentStateEndStepColorsEnum = exports.ContentStateEndStepColorEnum = exports.ContentStateEndColorEnum = exports.ContentStateEndTypeEnum = exports.BillingBlockedErrorErrorEnum = exports.AppIconBadgeCountUpdateErrorCodeEnum = exports.ActivityMetricColorEnum = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* @export
|
|
6
6
|
*/
|
|
@@ -250,6 +250,40 @@ exports.LiveActivityWebhookMethod = {
|
|
|
250
250
|
Get: 'GET',
|
|
251
251
|
Post: 'POST'
|
|
252
252
|
};
|
|
253
|
+
/**
|
|
254
|
+
* @export
|
|
255
|
+
*/
|
|
256
|
+
exports.MetricFormatEnum = {
|
|
257
|
+
Number: 'number',
|
|
258
|
+
Currency: 'currency',
|
|
259
|
+
Percent: 'percent',
|
|
260
|
+
Unit: 'unit',
|
|
261
|
+
String: 'string'
|
|
262
|
+
};
|
|
263
|
+
/**
|
|
264
|
+
* @export
|
|
265
|
+
*/
|
|
266
|
+
exports.MetricUnitSpacingEnum = {
|
|
267
|
+
None: 'none',
|
|
268
|
+
Space: 'space'
|
|
269
|
+
};
|
|
270
|
+
/**
|
|
271
|
+
* @export
|
|
272
|
+
*/
|
|
273
|
+
exports.MetricUpsertRequestFormatEnum = {
|
|
274
|
+
Number: 'number',
|
|
275
|
+
Currency: 'currency',
|
|
276
|
+
Percent: 'percent',
|
|
277
|
+
Unit: 'unit',
|
|
278
|
+
String: 'string'
|
|
279
|
+
};
|
|
280
|
+
/**
|
|
281
|
+
* @export
|
|
282
|
+
*/
|
|
283
|
+
exports.MetricUpsertRequestUnitSpacingEnum = {
|
|
284
|
+
None: 'none',
|
|
285
|
+
Space: 'space'
|
|
286
|
+
};
|
|
253
287
|
/**
|
|
254
288
|
* How urgently iOS presents the notification. `passive` arrives quietly in the notification list without sound or lighting up the screen. `active` is normal delivery and the default when omitted. `time-sensitive` can break through Focus and Scheduled Summary when the user allows Time Sensitive Notifications for ActivitySmith.
|
|
255
289
|
* @export
|