activitysmith 1.13.0 → 1.15.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 +28 -9
- 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 +2 -2
- package/dist/generated/apis/LiveActivitiesApi.js +2 -2
- package/dist/generated/apis/MetricsApi.d.ts +17 -3
- package/dist/generated/apis/MetricsApi.js +37 -2
- package/dist/generated/apis/PushNotificationsApi.d.ts +30 -3
- package/dist/generated/apis/PushNotificationsApi.js +73 -2
- package/dist/generated/apis/index.d.ts +1 -0
- package/dist/generated/apis/index.js +1 -0
- package/dist/generated/models/index.d.ts +683 -1
- package/dist/generated/models/index.js +35 -1
- package/dist/src/ActivitySmith.d.ts +47 -1
- package/dist/src/ActivitySmith.js +64 -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
|
*/
|
|
@@ -215,6 +352,24 @@ export interface AppIconBadgeCountUpdateResponse {
|
|
|
215
352
|
* @memberof AppIconBadgeCountUpdateResponse
|
|
216
353
|
*/
|
|
217
354
|
timestamp: string;
|
|
355
|
+
/**
|
|
356
|
+
* Number of device tokens targeted.
|
|
357
|
+
* @type {number}
|
|
358
|
+
* @memberof AppIconBadgeCountUpdateResponse
|
|
359
|
+
*/
|
|
360
|
+
devices_targeted?: number;
|
|
361
|
+
/**
|
|
362
|
+
* Number of device tokens deactivated because APNs reported them unregistered.
|
|
363
|
+
* @type {number}
|
|
364
|
+
* @memberof AppIconBadgeCountUpdateResponse
|
|
365
|
+
*/
|
|
366
|
+
devices_deactivated?: number;
|
|
367
|
+
/**
|
|
368
|
+
* Number of targeted device tokens APNs reported as unregistered.
|
|
369
|
+
* @type {number}
|
|
370
|
+
* @memberof AppIconBadgeCountUpdateResponse
|
|
371
|
+
*/
|
|
372
|
+
devices_unregistered?: number;
|
|
218
373
|
}
|
|
219
374
|
/**
|
|
220
375
|
*
|
|
@@ -1043,6 +1198,42 @@ export interface LiveActivityEndResponse {
|
|
|
1043
1198
|
* @memberof LiveActivityEndResponse
|
|
1044
1199
|
*/
|
|
1045
1200
|
timestamp: string;
|
|
1201
|
+
/**
|
|
1202
|
+
* True when the Live Activity had already ended and the request had no effect.
|
|
1203
|
+
* @type {boolean}
|
|
1204
|
+
* @memberof LiveActivityEndResponse
|
|
1205
|
+
*/
|
|
1206
|
+
ignored?: boolean;
|
|
1207
|
+
/**
|
|
1208
|
+
*
|
|
1209
|
+
* @type {string}
|
|
1210
|
+
* @memberof LiveActivityEndResponse
|
|
1211
|
+
*/
|
|
1212
|
+
message?: string;
|
|
1213
|
+
/**
|
|
1214
|
+
*
|
|
1215
|
+
* @type {string}
|
|
1216
|
+
* @memberof LiveActivityEndResponse
|
|
1217
|
+
*/
|
|
1218
|
+
end_reason?: string | null;
|
|
1219
|
+
/**
|
|
1220
|
+
* True when the Live Activity was marked complete without a confirmed APNs end delivery.
|
|
1221
|
+
* @type {boolean}
|
|
1222
|
+
* @memberof LiveActivityEndResponse
|
|
1223
|
+
*/
|
|
1224
|
+
forced_completion?: boolean;
|
|
1225
|
+
/**
|
|
1226
|
+
*
|
|
1227
|
+
* @type {string}
|
|
1228
|
+
* @memberof LiveActivityEndResponse
|
|
1229
|
+
*/
|
|
1230
|
+
warning?: string;
|
|
1231
|
+
/**
|
|
1232
|
+
* Per-device delivery errors when some devices could not be reached.
|
|
1233
|
+
* @type {Array<string>}
|
|
1234
|
+
* @memberof LiveActivityEndResponse
|
|
1235
|
+
*/
|
|
1236
|
+
errors?: Array<string>;
|
|
1046
1237
|
}
|
|
1047
1238
|
/**
|
|
1048
1239
|
*
|
|
@@ -1186,6 +1377,24 @@ export interface LiveActivityStartResponse {
|
|
|
1186
1377
|
* @memberof LiveActivityStartResponse
|
|
1187
1378
|
*/
|
|
1188
1379
|
timestamp: string;
|
|
1380
|
+
/**
|
|
1381
|
+
* Present when starting this Live Activity ended an older one to stay within the device limit.
|
|
1382
|
+
* @type {string}
|
|
1383
|
+
* @memberof LiveActivityStartResponse
|
|
1384
|
+
*/
|
|
1385
|
+
ended_activity_id?: string;
|
|
1386
|
+
/**
|
|
1387
|
+
*
|
|
1388
|
+
* @type {string}
|
|
1389
|
+
* @memberof LiveActivityStartResponse
|
|
1390
|
+
*/
|
|
1391
|
+
message?: string;
|
|
1392
|
+
/**
|
|
1393
|
+
* Per-device delivery errors when some devices could not be reached.
|
|
1394
|
+
* @type {Array<string>}
|
|
1395
|
+
* @memberof LiveActivityStartResponse
|
|
1396
|
+
*/
|
|
1397
|
+
errors?: Array<string>;
|
|
1189
1398
|
}
|
|
1190
1399
|
/**
|
|
1191
1400
|
* Optional payload for ending a managed stream. When omitted, ActivitySmith ends the stream using the latest known state when possible.
|
|
@@ -1280,6 +1489,42 @@ export interface LiveActivityStreamDeleteResponse {
|
|
|
1280
1489
|
* @memberof LiveActivityStreamDeleteResponse
|
|
1281
1490
|
*/
|
|
1282
1491
|
timestamp: string;
|
|
1492
|
+
/**
|
|
1493
|
+
* True when the stream was already ended and the request had no effect.
|
|
1494
|
+
* @type {boolean}
|
|
1495
|
+
* @memberof LiveActivityStreamDeleteResponse
|
|
1496
|
+
*/
|
|
1497
|
+
ignored?: boolean;
|
|
1498
|
+
/**
|
|
1499
|
+
*
|
|
1500
|
+
* @type {string}
|
|
1501
|
+
* @memberof LiveActivityStreamDeleteResponse
|
|
1502
|
+
*/
|
|
1503
|
+
message?: string;
|
|
1504
|
+
/**
|
|
1505
|
+
*
|
|
1506
|
+
* @type {boolean}
|
|
1507
|
+
* @memberof LiveActivityStreamDeleteResponse
|
|
1508
|
+
*/
|
|
1509
|
+
forced_completion?: boolean;
|
|
1510
|
+
/**
|
|
1511
|
+
* 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.
|
|
1512
|
+
* @type {boolean}
|
|
1513
|
+
* @memberof LiveActivityStreamDeleteResponse
|
|
1514
|
+
*/
|
|
1515
|
+
delivered?: boolean;
|
|
1516
|
+
/**
|
|
1517
|
+
* 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.
|
|
1518
|
+
* @type {string}
|
|
1519
|
+
* @memberof LiveActivityStreamDeleteResponse
|
|
1520
|
+
*/
|
|
1521
|
+
warning?: string;
|
|
1522
|
+
/**
|
|
1523
|
+
* Per-device delivery errors when some devices could not be reached.
|
|
1524
|
+
* @type {Array<string>}
|
|
1525
|
+
* @memberof LiveActivityStreamDeleteResponse
|
|
1526
|
+
*/
|
|
1527
|
+
errors?: Array<string>;
|
|
1283
1528
|
}
|
|
1284
1529
|
/**
|
|
1285
1530
|
* @export
|
|
@@ -1354,12 +1599,42 @@ export interface LiveActivityStreamPutResponse {
|
|
|
1354
1599
|
* @memberof LiveActivityStreamPutResponse
|
|
1355
1600
|
*/
|
|
1356
1601
|
tags?: Array<string>;
|
|
1602
|
+
/**
|
|
1603
|
+
* Present on `updated` responses when the current Live Activity has received more than 12 updates and has averaged more than one update every 2 minutes since it started. The update is still sent, but iOS may throttle Live Activities that update this often.
|
|
1604
|
+
* @type {string}
|
|
1605
|
+
* @memberof LiveActivityStreamPutResponse
|
|
1606
|
+
*/
|
|
1607
|
+
warning?: string;
|
|
1357
1608
|
/**
|
|
1358
1609
|
*
|
|
1359
1610
|
* @type {string}
|
|
1360
1611
|
* @memberof LiveActivityStreamPutResponse
|
|
1361
1612
|
*/
|
|
1362
1613
|
timestamp: string;
|
|
1614
|
+
/**
|
|
1615
|
+
* True when the request had no effect.
|
|
1616
|
+
* @type {boolean}
|
|
1617
|
+
* @memberof LiveActivityStreamPutResponse
|
|
1618
|
+
*/
|
|
1619
|
+
ignored?: boolean;
|
|
1620
|
+
/**
|
|
1621
|
+
*
|
|
1622
|
+
* @type {boolean}
|
|
1623
|
+
* @memberof LiveActivityStreamPutResponse
|
|
1624
|
+
*/
|
|
1625
|
+
remote_push_sent?: boolean;
|
|
1626
|
+
/**
|
|
1627
|
+
*
|
|
1628
|
+
* @type {string}
|
|
1629
|
+
* @memberof LiveActivityStreamPutResponse
|
|
1630
|
+
*/
|
|
1631
|
+
message?: string;
|
|
1632
|
+
/**
|
|
1633
|
+
* Per-device delivery errors when some devices could not be reached.
|
|
1634
|
+
* @type {Array<string>}
|
|
1635
|
+
* @memberof LiveActivityStreamPutResponse
|
|
1636
|
+
*/
|
|
1637
|
+
errors?: Array<string>;
|
|
1363
1638
|
}
|
|
1364
1639
|
/**
|
|
1365
1640
|
* @export
|
|
@@ -1510,6 +1785,48 @@ export interface LiveActivityUpdateResponse {
|
|
|
1510
1785
|
* @memberof LiveActivityUpdateResponse
|
|
1511
1786
|
*/
|
|
1512
1787
|
timestamp: string;
|
|
1788
|
+
/**
|
|
1789
|
+
*
|
|
1790
|
+
* @type {number}
|
|
1791
|
+
* @memberof LiveActivityUpdateResponse
|
|
1792
|
+
*/
|
|
1793
|
+
users_notified?: number;
|
|
1794
|
+
/**
|
|
1795
|
+
*
|
|
1796
|
+
* @type {Array<string>}
|
|
1797
|
+
* @memberof LiveActivityUpdateResponse
|
|
1798
|
+
*/
|
|
1799
|
+
effective_channel_slugs?: Array<string>;
|
|
1800
|
+
/**
|
|
1801
|
+
* Optional tags to organize and filter notification history.
|
|
1802
|
+
* @type {Array<string>}
|
|
1803
|
+
* @memberof LiveActivityUpdateResponse
|
|
1804
|
+
*/
|
|
1805
|
+
tags?: Array<string>;
|
|
1806
|
+
/**
|
|
1807
|
+
* Present when the update started a new Live Activity for a managed stream.
|
|
1808
|
+
* @type {string}
|
|
1809
|
+
* @memberof LiveActivityUpdateResponse
|
|
1810
|
+
*/
|
|
1811
|
+
operation?: string;
|
|
1812
|
+
/**
|
|
1813
|
+
*
|
|
1814
|
+
* @type {string}
|
|
1815
|
+
* @memberof LiveActivityUpdateResponse
|
|
1816
|
+
*/
|
|
1817
|
+
stream_key?: string;
|
|
1818
|
+
/**
|
|
1819
|
+
*
|
|
1820
|
+
* @type {string}
|
|
1821
|
+
* @memberof LiveActivityUpdateResponse
|
|
1822
|
+
*/
|
|
1823
|
+
previous_activity_id?: string;
|
|
1824
|
+
/**
|
|
1825
|
+
* Per-device delivery errors when some devices could not be reached.
|
|
1826
|
+
* @type {Array<string>}
|
|
1827
|
+
* @memberof LiveActivityUpdateResponse
|
|
1828
|
+
*/
|
|
1829
|
+
errors?: Array<string>;
|
|
1513
1830
|
}
|
|
1514
1831
|
/**
|
|
1515
1832
|
* @type LiveActivityValue
|
|
@@ -1532,6 +1849,98 @@ export type LiveActivityWebhookMethod = typeof LiveActivityWebhookMethod[keyof t
|
|
|
1532
1849
|
* @export
|
|
1533
1850
|
*/
|
|
1534
1851
|
export type MetadataValue = boolean | number | string;
|
|
1852
|
+
/**
|
|
1853
|
+
*
|
|
1854
|
+
* @export
|
|
1855
|
+
* @interface Metric
|
|
1856
|
+
*/
|
|
1857
|
+
export interface Metric {
|
|
1858
|
+
/**
|
|
1859
|
+
*
|
|
1860
|
+
* @type {string}
|
|
1861
|
+
* @memberof Metric
|
|
1862
|
+
*/
|
|
1863
|
+
public_id: string;
|
|
1864
|
+
/**
|
|
1865
|
+
*
|
|
1866
|
+
* @type {string}
|
|
1867
|
+
* @memberof Metric
|
|
1868
|
+
*/
|
|
1869
|
+
key: string;
|
|
1870
|
+
/**
|
|
1871
|
+
*
|
|
1872
|
+
* @type {string}
|
|
1873
|
+
* @memberof Metric
|
|
1874
|
+
*/
|
|
1875
|
+
label: string;
|
|
1876
|
+
/**
|
|
1877
|
+
*
|
|
1878
|
+
* @type {string}
|
|
1879
|
+
* @memberof Metric
|
|
1880
|
+
*/
|
|
1881
|
+
format: MetricFormatEnum;
|
|
1882
|
+
/**
|
|
1883
|
+
*
|
|
1884
|
+
* @type {string}
|
|
1885
|
+
* @memberof Metric
|
|
1886
|
+
*/
|
|
1887
|
+
currency_code: string | null;
|
|
1888
|
+
/**
|
|
1889
|
+
*
|
|
1890
|
+
* @type {string}
|
|
1891
|
+
* @memberof Metric
|
|
1892
|
+
*/
|
|
1893
|
+
unit: string | null;
|
|
1894
|
+
/**
|
|
1895
|
+
*
|
|
1896
|
+
* @type {string}
|
|
1897
|
+
* @memberof Metric
|
|
1898
|
+
*/
|
|
1899
|
+
unit_spacing: MetricUnitSpacingEnum;
|
|
1900
|
+
/**
|
|
1901
|
+
*
|
|
1902
|
+
* @type {any}
|
|
1903
|
+
* @memberof Metric
|
|
1904
|
+
*/
|
|
1905
|
+
latest_value: any | null;
|
|
1906
|
+
/**
|
|
1907
|
+
*
|
|
1908
|
+
* @type {string}
|
|
1909
|
+
* @memberof Metric
|
|
1910
|
+
*/
|
|
1911
|
+
latest_value_at: string | null;
|
|
1912
|
+
/**
|
|
1913
|
+
*
|
|
1914
|
+
* @type {string}
|
|
1915
|
+
* @memberof Metric
|
|
1916
|
+
*/
|
|
1917
|
+
created_at: string;
|
|
1918
|
+
/**
|
|
1919
|
+
*
|
|
1920
|
+
* @type {string}
|
|
1921
|
+
* @memberof Metric
|
|
1922
|
+
*/
|
|
1923
|
+
updated_at: string;
|
|
1924
|
+
}
|
|
1925
|
+
/**
|
|
1926
|
+
* @export
|
|
1927
|
+
*/
|
|
1928
|
+
export declare const MetricFormatEnum: {
|
|
1929
|
+
readonly Number: "number";
|
|
1930
|
+
readonly Currency: "currency";
|
|
1931
|
+
readonly Percent: "percent";
|
|
1932
|
+
readonly Unit: "unit";
|
|
1933
|
+
readonly String: "string";
|
|
1934
|
+
};
|
|
1935
|
+
export type MetricFormatEnum = typeof MetricFormatEnum[keyof typeof MetricFormatEnum];
|
|
1936
|
+
/**
|
|
1937
|
+
* @export
|
|
1938
|
+
*/
|
|
1939
|
+
export declare const MetricUnitSpacingEnum: {
|
|
1940
|
+
readonly None: "none";
|
|
1941
|
+
readonly Space: "space";
|
|
1942
|
+
};
|
|
1943
|
+
export type MetricUnitSpacingEnum = typeof MetricUnitSpacingEnum[keyof typeof MetricUnitSpacingEnum];
|
|
1535
1944
|
/**
|
|
1536
1945
|
*
|
|
1537
1946
|
* @export
|
|
@@ -1551,6 +1960,75 @@ export interface MetricError {
|
|
|
1551
1960
|
*/
|
|
1552
1961
|
message?: string;
|
|
1553
1962
|
}
|
|
1963
|
+
/**
|
|
1964
|
+
*
|
|
1965
|
+
* @export
|
|
1966
|
+
* @interface MetricResponse
|
|
1967
|
+
*/
|
|
1968
|
+
export interface MetricResponse {
|
|
1969
|
+
/**
|
|
1970
|
+
*
|
|
1971
|
+
* @type {Metric}
|
|
1972
|
+
* @memberof MetricResponse
|
|
1973
|
+
*/
|
|
1974
|
+
metric: Metric;
|
|
1975
|
+
}
|
|
1976
|
+
/**
|
|
1977
|
+
* 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.
|
|
1978
|
+
* @export
|
|
1979
|
+
* @interface MetricUpsertRequest
|
|
1980
|
+
*/
|
|
1981
|
+
export interface MetricUpsertRequest {
|
|
1982
|
+
/**
|
|
1983
|
+
* Name shown on the widget.
|
|
1984
|
+
* @type {string}
|
|
1985
|
+
* @memberof MetricUpsertRequest
|
|
1986
|
+
*/
|
|
1987
|
+
label?: string;
|
|
1988
|
+
/**
|
|
1989
|
+
* 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.
|
|
1990
|
+
* @type {string}
|
|
1991
|
+
* @memberof MetricUpsertRequest
|
|
1992
|
+
*/
|
|
1993
|
+
format?: MetricUpsertRequestFormatEnum;
|
|
1994
|
+
/**
|
|
1995
|
+
* 3-letter ISO 4217 currency code, such as USD. Required for the currency format.
|
|
1996
|
+
* @type {string}
|
|
1997
|
+
* @memberof MetricUpsertRequest
|
|
1998
|
+
*/
|
|
1999
|
+
currency_code?: string;
|
|
2000
|
+
/**
|
|
2001
|
+
* Unit suffix for the unit format, such as ms or GB.
|
|
2002
|
+
* @type {string}
|
|
2003
|
+
* @memberof MetricUpsertRequest
|
|
2004
|
+
*/
|
|
2005
|
+
unit?: string;
|
|
2006
|
+
/**
|
|
2007
|
+
* For the unit format: none shows 120ms, space shows 120 ms.
|
|
2008
|
+
* @type {string}
|
|
2009
|
+
* @memberof MetricUpsertRequest
|
|
2010
|
+
*/
|
|
2011
|
+
unit_spacing?: MetricUpsertRequestUnitSpacingEnum;
|
|
2012
|
+
}
|
|
2013
|
+
/**
|
|
2014
|
+
* @export
|
|
2015
|
+
*/
|
|
2016
|
+
export declare const MetricUpsertRequestFormatEnum: {
|
|
2017
|
+
readonly Number: "number";
|
|
2018
|
+
readonly Currency: "currency";
|
|
2019
|
+
readonly Percent: "percent";
|
|
2020
|
+
readonly Unit: "unit";
|
|
2021
|
+
readonly String: "string";
|
|
2022
|
+
};
|
|
2023
|
+
export type MetricUpsertRequestFormatEnum = typeof MetricUpsertRequestFormatEnum[keyof typeof MetricUpsertRequestFormatEnum];
|
|
2024
|
+
/**
|
|
2025
|
+
* @export
|
|
2026
|
+
*/
|
|
2027
|
+
export declare const MetricUpsertRequestUnitSpacingEnum: {
|
|
2028
|
+
readonly None: "none";
|
|
2029
|
+
readonly Space: "space";
|
|
2030
|
+
};
|
|
2031
|
+
export type MetricUpsertRequestUnitSpacingEnum = typeof MetricUpsertRequestUnitSpacingEnum[keyof typeof MetricUpsertRequestUnitSpacingEnum];
|
|
1554
2032
|
/**
|
|
1555
2033
|
* Latest metric value to display in widgets.
|
|
1556
2034
|
* @export
|
|
@@ -1588,6 +2066,12 @@ export interface MetricValueUpdateResponse {
|
|
|
1588
2066
|
* @memberof MetricValueUpdateResponse
|
|
1589
2067
|
*/
|
|
1590
2068
|
success: boolean;
|
|
2069
|
+
/**
|
|
2070
|
+
* true when this request created the metric because no metric used the key yet.
|
|
2071
|
+
* @type {boolean}
|
|
2072
|
+
* @memberof MetricValueUpdateResponse
|
|
2073
|
+
*/
|
|
2074
|
+
created?: boolean;
|
|
1591
2075
|
}
|
|
1592
2076
|
/**
|
|
1593
2077
|
*
|
|
@@ -1601,12 +2085,24 @@ export interface NoRecipientsError {
|
|
|
1601
2085
|
* @memberof NoRecipientsError
|
|
1602
2086
|
*/
|
|
1603
2087
|
error: string;
|
|
2088
|
+
/**
|
|
2089
|
+
* 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.
|
|
2090
|
+
* @type {string}
|
|
2091
|
+
* @memberof NoRecipientsError
|
|
2092
|
+
*/
|
|
2093
|
+
code?: string;
|
|
1604
2094
|
/**
|
|
1605
2095
|
*
|
|
1606
2096
|
* @type {string}
|
|
1607
2097
|
* @memberof NoRecipientsError
|
|
1608
2098
|
*/
|
|
1609
2099
|
message: string;
|
|
2100
|
+
/**
|
|
2101
|
+
* ActivitySmith App Store link. Present when code is no_paired_devices.
|
|
2102
|
+
* @type {string}
|
|
2103
|
+
* @memberof NoRecipientsError
|
|
2104
|
+
*/
|
|
2105
|
+
app_store_url?: string;
|
|
1610
2106
|
/**
|
|
1611
2107
|
*
|
|
1612
2108
|
* @type {Array<string>}
|
|
@@ -1690,6 +2186,156 @@ export declare const PushNotificationActionType: {
|
|
|
1690
2186
|
readonly Webhook: "webhook";
|
|
1691
2187
|
};
|
|
1692
2188
|
export type PushNotificationActionType = typeof PushNotificationActionType[keyof typeof PushNotificationActionType];
|
|
2189
|
+
/**
|
|
2190
|
+
* Dismissal result. Devices clear the notification after this response, so it does not confirm that any device has cleared it.
|
|
2191
|
+
* @export
|
|
2192
|
+
* @interface PushNotificationDismissResponse
|
|
2193
|
+
*/
|
|
2194
|
+
export interface PushNotificationDismissResponse {
|
|
2195
|
+
/**
|
|
2196
|
+
* True when the dismissal is recorded.
|
|
2197
|
+
* @type {boolean}
|
|
2198
|
+
* @memberof PushNotificationDismissResponse
|
|
2199
|
+
*/
|
|
2200
|
+
success: boolean;
|
|
2201
|
+
/**
|
|
2202
|
+
* ID of the dismissed Push Notification.
|
|
2203
|
+
* @type {string}
|
|
2204
|
+
* @memberof PushNotificationDismissResponse
|
|
2205
|
+
*/
|
|
2206
|
+
notification_id: string;
|
|
2207
|
+
/**
|
|
2208
|
+
* When the notification was first dismissed. Repeat calls return the same time.
|
|
2209
|
+
* @type {string}
|
|
2210
|
+
* @memberof PushNotificationDismissResponse
|
|
2211
|
+
*/
|
|
2212
|
+
dismissed_at: string;
|
|
2213
|
+
}
|
|
2214
|
+
/**
|
|
2215
|
+
* 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.
|
|
2216
|
+
* @export
|
|
2217
|
+
* @interface PushNotificationReplaceRequest
|
|
2218
|
+
*/
|
|
2219
|
+
export interface PushNotificationReplaceRequest {
|
|
2220
|
+
[key: string]: any | any;
|
|
2221
|
+
/**
|
|
2222
|
+
* 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.
|
|
2223
|
+
* @type {{ [key: string]: MetadataValue; }}
|
|
2224
|
+
* @memberof PushNotificationReplaceRequest
|
|
2225
|
+
*/
|
|
2226
|
+
metadata?: {
|
|
2227
|
+
[key: string]: MetadataValue;
|
|
2228
|
+
};
|
|
2229
|
+
/**
|
|
2230
|
+
*
|
|
2231
|
+
* @type {string}
|
|
2232
|
+
* @memberof PushNotificationReplaceRequest
|
|
2233
|
+
*/
|
|
2234
|
+
title: string;
|
|
2235
|
+
/**
|
|
2236
|
+
*
|
|
2237
|
+
* @type {string}
|
|
2238
|
+
* @memberof PushNotificationReplaceRequest
|
|
2239
|
+
*/
|
|
2240
|
+
message?: string;
|
|
2241
|
+
/**
|
|
2242
|
+
*
|
|
2243
|
+
* @type {string}
|
|
2244
|
+
* @memberof PushNotificationReplaceRequest
|
|
2245
|
+
*/
|
|
2246
|
+
subtitle?: string;
|
|
2247
|
+
/**
|
|
2248
|
+
* Optional HTTPS image URL without credentials for a custom notification icon. If the image cannot be loaded, the app icon is used. iOS may omit subtitle when displaying a custom icon.
|
|
2249
|
+
* @type {string}
|
|
2250
|
+
* @memberof PushNotificationReplaceRequest
|
|
2251
|
+
*/
|
|
2252
|
+
icon?: string;
|
|
2253
|
+
/**
|
|
2254
|
+
* Optional HTTPS URL for an image, audio file, or video that users can preview or play when they expand the notification. If `redirection` is omitted, tapping the notification opens this URL. Cannot be combined with `actions`.
|
|
2255
|
+
* @type {string}
|
|
2256
|
+
* @memberof PushNotificationReplaceRequest
|
|
2257
|
+
*/
|
|
2258
|
+
media?: string;
|
|
2259
|
+
/**
|
|
2260
|
+
* 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.
|
|
2261
|
+
* @type {string}
|
|
2262
|
+
* @memberof PushNotificationReplaceRequest
|
|
2263
|
+
*/
|
|
2264
|
+
redirection?: string;
|
|
2265
|
+
/**
|
|
2266
|
+
* Optional interactive actions shown when users expand the notification. Cannot be combined with `media`.
|
|
2267
|
+
* @type {Array<PushNotificationAction>}
|
|
2268
|
+
* @memberof PushNotificationReplaceRequest
|
|
2269
|
+
*/
|
|
2270
|
+
actions?: Array<PushNotificationAction>;
|
|
2271
|
+
/**
|
|
2272
|
+
*
|
|
2273
|
+
* @type {object}
|
|
2274
|
+
* @memberof PushNotificationReplaceRequest
|
|
2275
|
+
*/
|
|
2276
|
+
payload?: object;
|
|
2277
|
+
/**
|
|
2278
|
+
*
|
|
2279
|
+
* @type {number}
|
|
2280
|
+
* @memberof PushNotificationReplaceRequest
|
|
2281
|
+
*/
|
|
2282
|
+
badge?: number;
|
|
2283
|
+
/**
|
|
2284
|
+
* Optional tags to organize and filter notification history.
|
|
2285
|
+
* @type {Array<string>}
|
|
2286
|
+
* @memberof PushNotificationReplaceRequest
|
|
2287
|
+
*/
|
|
2288
|
+
tags?: Array<string>;
|
|
2289
|
+
}
|
|
2290
|
+
/**
|
|
2291
|
+
* Apple APNs acceptance result for the replacement. Acceptance does not confirm device delivery or presentation.
|
|
2292
|
+
* @export
|
|
2293
|
+
* @interface PushNotificationReplaceResponse
|
|
2294
|
+
*/
|
|
2295
|
+
export interface PushNotificationReplaceResponse {
|
|
2296
|
+
/**
|
|
2297
|
+
* True when APNs accepts the replacement for at least one device.
|
|
2298
|
+
* @type {boolean}
|
|
2299
|
+
* @memberof PushNotificationReplaceResponse
|
|
2300
|
+
*/
|
|
2301
|
+
success: boolean;
|
|
2302
|
+
/**
|
|
2303
|
+
* ID of the replaced Push Notification. It stays the same, so you can replace it again.
|
|
2304
|
+
* @type {string}
|
|
2305
|
+
* @memberof PushNotificationReplaceResponse
|
|
2306
|
+
*/
|
|
2307
|
+
notification_id: string;
|
|
2308
|
+
/**
|
|
2309
|
+
* Number of device tokens for which APNs accepted the notification, without confirming on-device delivery.
|
|
2310
|
+
* @type {number}
|
|
2311
|
+
* @memberof PushNotificationReplaceResponse
|
|
2312
|
+
*/
|
|
2313
|
+
devices_notified?: number;
|
|
2314
|
+
/**
|
|
2315
|
+
*
|
|
2316
|
+
* @type {number}
|
|
2317
|
+
* @memberof PushNotificationReplaceResponse
|
|
2318
|
+
*/
|
|
2319
|
+
users_notified?: number;
|
|
2320
|
+
/**
|
|
2321
|
+
*
|
|
2322
|
+
* @type {Array<string>}
|
|
2323
|
+
* @memberof PushNotificationReplaceResponse
|
|
2324
|
+
*/
|
|
2325
|
+
effective_channel_slugs?: Array<string>;
|
|
2326
|
+
/**
|
|
2327
|
+
* Optional tags to organize and filter notification history.
|
|
2328
|
+
* @type {Array<string>}
|
|
2329
|
+
* @memberof PushNotificationReplaceResponse
|
|
2330
|
+
*/
|
|
2331
|
+
tags?: Array<string>;
|
|
2332
|
+
/**
|
|
2333
|
+
*
|
|
2334
|
+
* @type {string}
|
|
2335
|
+
* @memberof PushNotificationReplaceResponse
|
|
2336
|
+
*/
|
|
2337
|
+
timestamp: string;
|
|
2338
|
+
}
|
|
1693
2339
|
/**
|
|
1694
2340
|
*
|
|
1695
2341
|
* @export
|
|
@@ -1796,6 +2442,12 @@ export interface PushNotificationResponse {
|
|
|
1796
2442
|
* @memberof PushNotificationResponse
|
|
1797
2443
|
*/
|
|
1798
2444
|
success: boolean;
|
|
2445
|
+
/**
|
|
2446
|
+
* ID of this Push Notification. Pass it to `PUT /push-notification/{notification_id}` to replace the notification later.
|
|
2447
|
+
* @type {string}
|
|
2448
|
+
* @memberof PushNotificationResponse
|
|
2449
|
+
*/
|
|
2450
|
+
notification_id?: string;
|
|
1799
2451
|
/**
|
|
1800
2452
|
* Number of device tokens for which APNs accepted the notification, without confirming on-device delivery.
|
|
1801
2453
|
* @type {number}
|
|
@@ -1826,6 +2478,36 @@ export interface PushNotificationResponse {
|
|
|
1826
2478
|
* @memberof PushNotificationResponse
|
|
1827
2479
|
*/
|
|
1828
2480
|
timestamp: string;
|
|
2481
|
+
/**
|
|
2482
|
+
* Number of device tokens targeted.
|
|
2483
|
+
* @type {number}
|
|
2484
|
+
* @memberof PushNotificationResponse
|
|
2485
|
+
*/
|
|
2486
|
+
devices_targeted?: number;
|
|
2487
|
+
/**
|
|
2488
|
+
* Number of device tokens deactivated because APNs reported them unregistered.
|
|
2489
|
+
* @type {number}
|
|
2490
|
+
* @memberof PushNotificationResponse
|
|
2491
|
+
*/
|
|
2492
|
+
devices_deactivated?: number;
|
|
2493
|
+
/**
|
|
2494
|
+
* Number of targeted device tokens APNs reported as unregistered.
|
|
2495
|
+
* @type {number}
|
|
2496
|
+
* @memberof PushNotificationResponse
|
|
2497
|
+
*/
|
|
2498
|
+
devices_unregistered?: number;
|
|
2499
|
+
/**
|
|
2500
|
+
* True when the request was an integration connection test and no paired devices were available.
|
|
2501
|
+
* @type {boolean}
|
|
2502
|
+
* @memberof PushNotificationResponse
|
|
2503
|
+
*/
|
|
2504
|
+
credential_test?: boolean;
|
|
2505
|
+
/**
|
|
2506
|
+
*
|
|
2507
|
+
* @type {string}
|
|
2508
|
+
* @memberof PushNotificationResponse
|
|
2509
|
+
*/
|
|
2510
|
+
message?: string;
|
|
1829
2511
|
}
|
|
1830
2512
|
/**
|
|
1831
2513
|
*
|