@mobilerun/sdk 5.4.0 → 5.5.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/CHANGELOG.md +8 -0
- package/client.d.mts +2 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -5
- package/client.d.ts.map +1 -1
- package/client.js +0 -3
- package/client.js.map +1 -1
- package/client.mjs +0 -3
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +10 -2
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +10 -2
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +3 -1
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +3 -1
- package/resources/apps.mjs.map +1 -1
- package/resources/assistant/conversations.d.mts +26 -4
- package/resources/assistant/conversations.d.mts.map +1 -1
- package/resources/assistant/conversations.d.ts +26 -4
- package/resources/assistant/conversations.d.ts.map +1 -1
- package/resources/assistant/conversations.js +12 -4
- package/resources/assistant/conversations.js.map +1 -1
- package/resources/assistant/conversations.mjs +12 -4
- package/resources/assistant/conversations.mjs.map +1 -1
- package/resources/connect/proxies.d.mts +36 -20
- package/resources/connect/proxies.d.mts.map +1 -1
- package/resources/connect/proxies.d.ts +36 -20
- package/resources/connect/proxies.d.ts.map +1 -1
- package/resources/connect/proxies.js +10 -2
- package/resources/connect/proxies.js.map +1 -1
- package/resources/connect/proxies.mjs +10 -2
- package/resources/connect/proxies.mjs.map +1 -1
- package/resources/devices/apps.d.mts +37 -17
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +37 -17
- package/resources/devices/apps.d.ts.map +1 -1
- package/resources/devices/apps.js +15 -14
- package/resources/devices/apps.js.map +1 -1
- package/resources/devices/apps.mjs +15 -14
- package/resources/devices/apps.mjs.map +1 -1
- package/resources/devices/devices.d.mts +29 -4
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +29 -4
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +7 -4
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +7 -4
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/index.d.mts +1 -0
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +1 -0
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +3 -1
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +1 -0
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/keyboard.d.mts +9 -3
- package/resources/devices/keyboard.d.mts.map +1 -1
- package/resources/devices/keyboard.d.ts +9 -3
- package/resources/devices/keyboard.d.ts.map +1 -1
- package/resources/devices/keyboard.js +3 -3
- package/resources/devices/keyboard.mjs +3 -3
- package/resources/devices/recordings.d.mts +11 -0
- package/resources/devices/recordings.d.mts.map +1 -1
- package/resources/devices/recordings.d.ts +11 -0
- package/resources/devices/recordings.d.ts.map +1 -1
- package/resources/devices/traffic-sessions.d.mts +173 -0
- package/resources/devices/traffic-sessions.d.mts.map +1 -0
- package/resources/devices/traffic-sessions.d.ts +173 -0
- package/resources/devices/traffic-sessions.d.ts.map +1 -0
- package/resources/devices/traffic-sessions.js +43 -0
- package/resources/devices/traffic-sessions.js.map +1 -0
- package/resources/devices/traffic-sessions.mjs +39 -0
- package/resources/devices/traffic-sessions.mjs.map +1 -0
- package/resources/files.d.mts +72 -0
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +72 -0
- package/resources/files.d.ts.map +1 -1
- package/resources/index.d.mts +1 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mailboxes/mailboxes.d.mts +45 -37
- package/resources/mailboxes/mailboxes.d.mts.map +1 -1
- package/resources/mailboxes/mailboxes.d.ts +45 -37
- package/resources/mailboxes/mailboxes.d.ts.map +1 -1
- package/resources/mailboxes/mailboxes.js +13 -20
- package/resources/mailboxes/mailboxes.js.map +1 -1
- package/resources/mailboxes/mailboxes.mjs +13 -20
- package/resources/mailboxes/mailboxes.mjs.map +1 -1
- package/resources/mailboxes/messages.d.mts +2 -2
- package/resources/mailboxes/messages.d.ts +2 -2
- package/resources/mailboxes/messages.js +2 -2
- package/resources/mailboxes/messages.mjs +2 -2
- package/resources/messages/conversations.d.mts +4 -15
- package/resources/messages/conversations.d.mts.map +1 -1
- package/resources/messages/conversations.d.ts +4 -15
- package/resources/messages/conversations.d.ts.map +1 -1
- package/resources/messages/conversations.js +4 -15
- package/resources/messages/conversations.js.map +1 -1
- package/resources/messages/conversations.mjs +4 -15
- package/resources/messages/conversations.mjs.map +1 -1
- package/resources/messages/messages.d.mts +2 -4
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +2 -4
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +2 -4
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +2 -4
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/numbers/index.d.mts +1 -1
- package/resources/numbers/index.d.mts.map +1 -1
- package/resources/numbers/index.d.ts +1 -1
- package/resources/numbers/index.d.ts.map +1 -1
- package/resources/numbers/index.js.map +1 -1
- package/resources/numbers/index.mjs.map +1 -1
- package/resources/numbers/numbers.d.mts +48 -35
- package/resources/numbers/numbers.d.mts.map +1 -1
- package/resources/numbers/numbers.d.ts +48 -35
- package/resources/numbers/numbers.d.ts.map +1 -1
- package/resources/numbers/numbers.js +23 -29
- package/resources/numbers/numbers.js.map +1 -1
- package/resources/numbers/numbers.mjs +23 -29
- package/resources/numbers/numbers.mjs.map +1 -1
- package/resources/tasks/tasks.d.mts +80 -32
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +80 -32
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/webhooks/webhooks.d.mts +1 -0
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +1 -0
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/resources/workflows/events.d.mts +18 -0
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +18 -0
- package/resources/workflows/events.d.ts.map +1 -1
- package/resources/workflows/executions.d.mts +84 -5
- package/resources/workflows/executions.d.mts.map +1 -1
- package/resources/workflows/executions.d.ts +84 -5
- package/resources/workflows/executions.d.ts.map +1 -1
- package/resources/workflows/executions.js +3 -2
- package/resources/workflows/executions.js.map +1 -1
- package/resources/workflows/executions.mjs +3 -2
- package/resources/workflows/executions.mjs.map +1 -1
- package/resources/workflows/flows/actions.d.mts +19 -0
- package/resources/workflows/flows/actions.d.mts.map +1 -1
- package/resources/workflows/flows/actions.d.ts +19 -0
- package/resources/workflows/flows/actions.d.ts.map +1 -1
- package/resources/workflows/flows/flows.d.mts +142 -2
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +142 -2
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +11 -1
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +11 -1
- package/resources/workflows/flows/flows.mjs.map +1 -1
- package/resources/workflows/flows/index.d.mts +1 -1
- package/resources/workflows/flows/index.d.mts.map +1 -1
- package/resources/workflows/flows/index.d.ts +1 -1
- package/resources/workflows/flows/index.d.ts.map +1 -1
- package/resources/workflows/flows/index.js.map +1 -1
- package/resources/workflows/flows/index.mjs.map +1 -1
- package/resources/workflows/index.d.mts +1 -1
- package/resources/workflows/index.d.mts.map +1 -1
- package/resources/workflows/index.d.ts +1 -1
- package/resources/workflows/index.d.ts.map +1 -1
- package/resources/workflows/index.js.map +1 -1
- package/resources/workflows/index.mjs.map +1 -1
- package/resources/workflows/triggers.d.mts +17 -3
- package/resources/workflows/triggers.d.mts.map +1 -1
- package/resources/workflows/triggers.d.ts +17 -3
- package/resources/workflows/triggers.d.ts.map +1 -1
- package/resources/workflows/workflows.d.mts +2 -2
- package/resources/workflows/workflows.d.mts.map +1 -1
- package/resources/workflows/workflows.d.ts +2 -2
- package/resources/workflows/workflows.d.ts.map +1 -1
- package/resources/workflows/workflows.js.map +1 -1
- package/resources/workflows/workflows.mjs.map +1 -1
- package/src/client.ts +4 -41
- package/src/resources/apps.ts +11 -2
- package/src/resources/assistant/conversations.ts +38 -4
- package/src/resources/connect/proxies.ts +49 -21
- package/src/resources/devices/apps.ts +41 -17
- package/src/resources/devices/devices.ts +58 -4
- package/src/resources/devices/index.ts +11 -0
- package/src/resources/devices/keyboard.ts +10 -3
- package/src/resources/devices/recordings.ts +12 -0
- package/src/resources/devices/traffic-sessions.ts +299 -0
- package/src/resources/files.ts +114 -0
- package/src/resources/index.ts +2 -19
- package/src/resources/mailboxes/mailboxes.ts +56 -37
- package/src/resources/mailboxes/messages.ts +2 -2
- package/src/resources/messages/conversations.ts +4 -15
- package/src/resources/messages/messages.ts +2 -4
- package/src/resources/numbers/index.ts +2 -0
- package/src/resources/numbers/numbers.ts +58 -34
- package/src/resources/tasks/tasks.ts +120 -40
- package/src/resources/webhooks/webhooks.ts +2 -0
- package/src/resources/workflows/events.ts +24 -0
- package/src/resources/workflows/executions.ts +121 -5
- package/src/resources/workflows/flows/actions.ts +26 -0
- package/src/resources/workflows/flows/flows.ts +182 -1
- package/src/resources/workflows/flows/index.ts +1 -0
- package/src/resources/workflows/index.ts +1 -0
- package/src/resources/workflows/triggers.ts +19 -3
- package/src/resources/workflows/workflows.ts +2 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/esims/esims.d.mts +0 -566
- package/resources/esims/esims.d.mts.map +0 -1
- package/resources/esims/esims.d.ts +0 -566
- package/resources/esims/esims.d.ts.map +0 -1
- package/resources/esims/esims.js +0 -205
- package/resources/esims/esims.js.map +0 -1
- package/resources/esims/esims.mjs +0 -200
- package/resources/esims/esims.mjs.map +0 -1
- package/resources/esims/index.d.mts +0 -3
- package/resources/esims/index.d.mts.map +0 -1
- package/resources/esims/index.d.ts +0 -3
- package/resources/esims/index.d.ts.map +0 -1
- package/resources/esims/index.js +0 -9
- package/resources/esims/index.js.map +0 -1
- package/resources/esims/index.mjs +0 -4
- package/resources/esims/index.mjs.map +0 -1
- package/resources/esims/messages.d.mts +0 -106
- package/resources/esims/messages.d.mts.map +0 -1
- package/resources/esims/messages.d.ts +0 -106
- package/resources/esims/messages.d.ts.map +0 -1
- package/resources/esims/messages.js +0 -37
- package/resources/esims/messages.js.map +0 -1
- package/resources/esims/messages.mjs +0 -33
- package/resources/esims/messages.mjs.map +0 -1
- package/resources/esims.d.mts +0 -2
- package/resources/esims.d.mts.map +0 -1
- package/resources/esims.d.ts +0 -2
- package/resources/esims.d.ts.map +0 -1
- package/resources/esims.js +0 -6
- package/resources/esims.js.map +0 -1
- package/resources/esims.mjs +0 -3
- package/resources/esims.mjs.map +0 -1
- package/src/resources/esims/esims.ts +0 -1019
- package/src/resources/esims/index.ts +0 -28
- package/src/resources/esims/messages.ts +0 -187
- package/src/resources/esims.ts +0 -3
package/src/resources/files.ts
CHANGED
|
@@ -97,6 +97,44 @@ export interface FileUpdateResponse {
|
|
|
97
97
|
sizeBytes: number;
|
|
98
98
|
|
|
99
99
|
zone: 'user' | 'agent' | 'workflow' | 'skills';
|
|
100
|
+
|
|
101
|
+
collectionStatus?: FileUpdateResponse.UnionMember0 | FileUpdateResponse.UnionMember1;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export namespace FileUpdateResponse {
|
|
105
|
+
export interface UnionMember0 {
|
|
106
|
+
completeness: 'complete' | 'partial' | 'none' | 'unknown';
|
|
107
|
+
|
|
108
|
+
coverage: 'exhaustive' | 'bounded' | 'unknown';
|
|
109
|
+
|
|
110
|
+
endReached: boolean;
|
|
111
|
+
|
|
112
|
+
records: UnionMember0.Records;
|
|
113
|
+
|
|
114
|
+
resumable: boolean;
|
|
115
|
+
|
|
116
|
+
version: 1;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export namespace UnionMember0 {
|
|
120
|
+
export interface Records {
|
|
121
|
+
reported: number;
|
|
122
|
+
|
|
123
|
+
unit: string;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export interface UnionMember1 {
|
|
128
|
+
completeness: 'unknown';
|
|
129
|
+
|
|
130
|
+
coverage: 'unknown';
|
|
131
|
+
|
|
132
|
+
endReached: false;
|
|
133
|
+
|
|
134
|
+
resumable: false;
|
|
135
|
+
|
|
136
|
+
version: 1;
|
|
137
|
+
}
|
|
100
138
|
}
|
|
101
139
|
|
|
102
140
|
export interface FileListResponse {
|
|
@@ -124,6 +162,44 @@ export namespace FileListResponse {
|
|
|
124
162
|
sizeBytes: number;
|
|
125
163
|
|
|
126
164
|
zone: 'user' | 'agent' | 'workflow' | 'skills';
|
|
165
|
+
|
|
166
|
+
collectionStatus?: File.UnionMember0 | File.UnionMember1;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export namespace File {
|
|
170
|
+
export interface UnionMember0 {
|
|
171
|
+
completeness: 'complete' | 'partial' | 'none' | 'unknown';
|
|
172
|
+
|
|
173
|
+
coverage: 'exhaustive' | 'bounded' | 'unknown';
|
|
174
|
+
|
|
175
|
+
endReached: boolean;
|
|
176
|
+
|
|
177
|
+
records: UnionMember0.Records;
|
|
178
|
+
|
|
179
|
+
resumable: boolean;
|
|
180
|
+
|
|
181
|
+
version: 1;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export namespace UnionMember0 {
|
|
185
|
+
export interface Records {
|
|
186
|
+
reported: number;
|
|
187
|
+
|
|
188
|
+
unit: string;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export interface UnionMember1 {
|
|
193
|
+
completeness: 'unknown';
|
|
194
|
+
|
|
195
|
+
coverage: 'unknown';
|
|
196
|
+
|
|
197
|
+
endReached: false;
|
|
198
|
+
|
|
199
|
+
resumable: false;
|
|
200
|
+
|
|
201
|
+
version: 1;
|
|
202
|
+
}
|
|
127
203
|
}
|
|
128
204
|
|
|
129
205
|
export interface Quota {
|
|
@@ -163,6 +239,44 @@ export interface FileConfirmResponse {
|
|
|
163
239
|
state: 'ready';
|
|
164
240
|
|
|
165
241
|
zone: 'user' | 'agent' | 'workflow' | 'skills';
|
|
242
|
+
|
|
243
|
+
collectionStatus?: FileConfirmResponse.UnionMember0 | FileConfirmResponse.UnionMember1;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export namespace FileConfirmResponse {
|
|
247
|
+
export interface UnionMember0 {
|
|
248
|
+
completeness: 'complete' | 'partial' | 'none' | 'unknown';
|
|
249
|
+
|
|
250
|
+
coverage: 'exhaustive' | 'bounded' | 'unknown';
|
|
251
|
+
|
|
252
|
+
endReached: boolean;
|
|
253
|
+
|
|
254
|
+
records: UnionMember0.Records;
|
|
255
|
+
|
|
256
|
+
resumable: boolean;
|
|
257
|
+
|
|
258
|
+
version: 1;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export namespace UnionMember0 {
|
|
262
|
+
export interface Records {
|
|
263
|
+
reported: number;
|
|
264
|
+
|
|
265
|
+
unit: string;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
export interface UnionMember1 {
|
|
270
|
+
completeness: 'unknown';
|
|
271
|
+
|
|
272
|
+
coverage: 'unknown';
|
|
273
|
+
|
|
274
|
+
endReached: false;
|
|
275
|
+
|
|
276
|
+
resumable: false;
|
|
277
|
+
|
|
278
|
+
version: 1;
|
|
279
|
+
}
|
|
166
280
|
}
|
|
167
281
|
|
|
168
282
|
export interface FileUploadURLResponse {
|
package/src/resources/index.ts
CHANGED
|
@@ -56,25 +56,6 @@ export {
|
|
|
56
56
|
type DeviceSetNameParams,
|
|
57
57
|
type DeviceTerminateParams,
|
|
58
58
|
} from './devices/devices';
|
|
59
|
-
export {
|
|
60
|
-
Esims,
|
|
61
|
-
type EsimCreateResponse,
|
|
62
|
-
type EsimRetrieveResponse,
|
|
63
|
-
type EsimUpdateResponse,
|
|
64
|
-
type EsimListResponse,
|
|
65
|
-
type EsimCapacityResponse,
|
|
66
|
-
type EsimConfirmPaymentResponse,
|
|
67
|
-
type EsimImportResponse,
|
|
68
|
-
type EsimInstallResponse,
|
|
69
|
-
type EsimInstallStatusResponse,
|
|
70
|
-
type EsimSelectorResponse,
|
|
71
|
-
type EsimCreateParams,
|
|
72
|
-
type EsimUpdateParams,
|
|
73
|
-
type EsimListParams,
|
|
74
|
-
type EsimImportParams,
|
|
75
|
-
type EsimInstallParams,
|
|
76
|
-
type EsimSelectorParams,
|
|
77
|
-
} from './esims/esims';
|
|
78
59
|
export {
|
|
79
60
|
Files,
|
|
80
61
|
type FileUpdateResponse,
|
|
@@ -120,11 +101,13 @@ export {
|
|
|
120
101
|
type NumberUpdateResponse,
|
|
121
102
|
type NumberListResponse,
|
|
122
103
|
type NumberDeleteResponse,
|
|
104
|
+
type NumberCapacityResponse,
|
|
123
105
|
type NumberCountriesResponse,
|
|
124
106
|
type NumberPurposesResponse,
|
|
125
107
|
type NumberCreateParams,
|
|
126
108
|
type NumberUpdateParams,
|
|
127
109
|
type NumberListParams,
|
|
110
|
+
type NumberCapacityParams,
|
|
128
111
|
} from './numbers/numbers';
|
|
129
112
|
export {
|
|
130
113
|
Profiles,
|
|
@@ -18,13 +18,10 @@ export class Mailboxes extends APIResource {
|
|
|
18
18
|
messages: MessagesAPI.Messages = new MessagesAPI.Messages(this._client);
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* (owner, clientRequestId): same key + payload replays (200); a conflicting or
|
|
26
|
-
* already-held local part returns 409. 201 when the checkout URL is already
|
|
27
|
-
* persisted, otherwise 202 (poll GET for the URL).
|
|
21
|
+
* Creates a mailbox on the default domain or a connected custom domain. An
|
|
22
|
+
* optional `localPart` selects the address. Replaying the same `clientRequestId`
|
|
23
|
+
* and payload returns the original mailbox. Poll the mailbox when a 202 response
|
|
24
|
+
* does not yet include a checkout URL.
|
|
28
25
|
*
|
|
29
26
|
* @example
|
|
30
27
|
* ```ts
|
|
@@ -86,10 +83,8 @@ export class Mailboxes extends APIResource {
|
|
|
86
83
|
}
|
|
87
84
|
|
|
88
85
|
/**
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
* mailbox, its address, or its messages — the address is permanently reserved.
|
|
92
|
-
* Idempotent.
|
|
86
|
+
* Cancels a pending mailbox or schedules an active paid mailbox for cancellation.
|
|
87
|
+
* Existing addresses and messages are retained. Repeating the request is safe.
|
|
93
88
|
*
|
|
94
89
|
* @example
|
|
95
90
|
* ```ts
|
|
@@ -103,8 +98,7 @@ export class Mailboxes extends APIResource {
|
|
|
103
98
|
}
|
|
104
99
|
|
|
105
100
|
/**
|
|
106
|
-
* Returns the
|
|
107
|
-
* available after local reservations.
|
|
101
|
+
* Returns the number of mailboxes currently available through included capacity.
|
|
108
102
|
*
|
|
109
103
|
* @example
|
|
110
104
|
* ```ts
|
|
@@ -116,9 +110,8 @@ export class Mailboxes extends APIResource {
|
|
|
116
110
|
}
|
|
117
111
|
|
|
118
112
|
/**
|
|
119
|
-
* Returns the
|
|
120
|
-
*
|
|
121
|
-
* poll). 200 with the best code, 204 when none matches.
|
|
113
|
+
* Returns the most likely recent OTP for the mailbox. Returns 204 when no matching
|
|
114
|
+
* code is available.
|
|
122
115
|
*
|
|
123
116
|
* @example
|
|
124
117
|
* ```ts
|
|
@@ -136,8 +129,8 @@ export class Mailboxes extends APIResource {
|
|
|
136
129
|
}
|
|
137
130
|
|
|
138
131
|
/**
|
|
139
|
-
*
|
|
140
|
-
*
|
|
132
|
+
* Restarts an archived mailbox with the same address. Uses included capacity when
|
|
133
|
+
* available unless paid service is requested.
|
|
141
134
|
*
|
|
142
135
|
* @example
|
|
143
136
|
* ```ts
|
|
@@ -155,8 +148,8 @@ export class Mailboxes extends APIResource {
|
|
|
155
148
|
}
|
|
156
149
|
|
|
157
150
|
/**
|
|
158
|
-
*
|
|
159
|
-
*
|
|
151
|
+
* Withdraws a scheduled cancellation. Only available while cancellation is
|
|
152
|
+
* pending.
|
|
160
153
|
*
|
|
161
154
|
* @example
|
|
162
155
|
* ```ts
|
|
@@ -180,7 +173,7 @@ export namespace MailboxCreateResponse {
|
|
|
180
173
|
|
|
181
174
|
address: string | null;
|
|
182
175
|
|
|
183
|
-
billingMode: 'rent' | 'included';
|
|
176
|
+
billingMode: 'rent' | 'included' | 'domain';
|
|
184
177
|
|
|
185
178
|
cancelAtPeriodEnd: boolean;
|
|
186
179
|
|
|
@@ -192,6 +185,8 @@ export namespace MailboxCreateResponse {
|
|
|
192
185
|
|
|
193
186
|
currentPeriodEnd: string | null;
|
|
194
187
|
|
|
188
|
+
domainId: string | null;
|
|
189
|
+
|
|
195
190
|
inboundMessages: Data.InboundMessages;
|
|
196
191
|
|
|
197
192
|
label: string | null;
|
|
@@ -228,7 +223,7 @@ export namespace MailboxRetrieveResponse {
|
|
|
228
223
|
|
|
229
224
|
address: string | null;
|
|
230
225
|
|
|
231
|
-
billingMode: 'rent' | 'included';
|
|
226
|
+
billingMode: 'rent' | 'included' | 'domain';
|
|
232
227
|
|
|
233
228
|
cancelAtPeriodEnd: boolean;
|
|
234
229
|
|
|
@@ -240,6 +235,8 @@ export namespace MailboxRetrieveResponse {
|
|
|
240
235
|
|
|
241
236
|
currentPeriodEnd: string | null;
|
|
242
237
|
|
|
238
|
+
domainId: string | null;
|
|
239
|
+
|
|
243
240
|
inboundMessages: Data.InboundMessages;
|
|
244
241
|
|
|
245
242
|
label: string | null;
|
|
@@ -276,7 +273,7 @@ export namespace MailboxUpdateResponse {
|
|
|
276
273
|
|
|
277
274
|
address: string | null;
|
|
278
275
|
|
|
279
|
-
billingMode: 'rent' | 'included';
|
|
276
|
+
billingMode: 'rent' | 'included' | 'domain';
|
|
280
277
|
|
|
281
278
|
cancelAtPeriodEnd: boolean;
|
|
282
279
|
|
|
@@ -288,6 +285,8 @@ export namespace MailboxUpdateResponse {
|
|
|
288
285
|
|
|
289
286
|
currentPeriodEnd: string | null;
|
|
290
287
|
|
|
288
|
+
domainId: string | null;
|
|
289
|
+
|
|
291
290
|
inboundMessages: Data.InboundMessages;
|
|
292
291
|
|
|
293
292
|
label: string | null;
|
|
@@ -326,7 +325,7 @@ export namespace MailboxListResponse {
|
|
|
326
325
|
|
|
327
326
|
address: string | null;
|
|
328
327
|
|
|
329
|
-
billingMode: 'rent' | 'included';
|
|
328
|
+
billingMode: 'rent' | 'included' | 'domain';
|
|
330
329
|
|
|
331
330
|
cancelAtPeriodEnd: boolean;
|
|
332
331
|
|
|
@@ -338,6 +337,8 @@ export namespace MailboxListResponse {
|
|
|
338
337
|
|
|
339
338
|
currentPeriodEnd: string | null;
|
|
340
339
|
|
|
340
|
+
domainId: string | null;
|
|
341
|
+
|
|
341
342
|
inboundMessages: Item.InboundMessages;
|
|
342
343
|
|
|
343
344
|
label: string | null;
|
|
@@ -374,7 +375,7 @@ export namespace MailboxDeleteResponse {
|
|
|
374
375
|
|
|
375
376
|
address: string | null;
|
|
376
377
|
|
|
377
|
-
billingMode: 'rent' | 'included';
|
|
378
|
+
billingMode: 'rent' | 'included' | 'domain';
|
|
378
379
|
|
|
379
380
|
cancelAtPeriodEnd: boolean;
|
|
380
381
|
|
|
@@ -386,6 +387,8 @@ export namespace MailboxDeleteResponse {
|
|
|
386
387
|
|
|
387
388
|
currentPeriodEnd: string | null;
|
|
388
389
|
|
|
390
|
+
domainId: string | null;
|
|
391
|
+
|
|
389
392
|
inboundMessages: Data.InboundMessages;
|
|
390
393
|
|
|
391
394
|
label: string | null;
|
|
@@ -418,7 +421,13 @@ export interface MailboxCapacityResponse {
|
|
|
418
421
|
|
|
419
422
|
export namespace MailboxCapacityResponse {
|
|
420
423
|
export interface Data {
|
|
424
|
+
included: number;
|
|
425
|
+
|
|
421
426
|
includedRemaining: number;
|
|
427
|
+
|
|
428
|
+
remaining: number;
|
|
429
|
+
|
|
430
|
+
status: 'available' | 'exhausted' | 'not_included';
|
|
422
431
|
}
|
|
423
432
|
}
|
|
424
433
|
|
|
@@ -429,7 +438,7 @@ export interface MailboxOtpResponse {
|
|
|
429
438
|
export namespace MailboxOtpResponse {
|
|
430
439
|
export interface Data {
|
|
431
440
|
/**
|
|
432
|
-
*
|
|
441
|
+
* OTP code as text to preserve leading zeros.
|
|
433
442
|
*/
|
|
434
443
|
code: string;
|
|
435
444
|
|
|
@@ -455,7 +464,7 @@ export namespace MailboxRestartResponse {
|
|
|
455
464
|
|
|
456
465
|
address: string | null;
|
|
457
466
|
|
|
458
|
-
billingMode: 'rent' | 'included';
|
|
467
|
+
billingMode: 'rent' | 'included' | 'domain';
|
|
459
468
|
|
|
460
469
|
cancelAtPeriodEnd: boolean;
|
|
461
470
|
|
|
@@ -467,6 +476,8 @@ export namespace MailboxRestartResponse {
|
|
|
467
476
|
|
|
468
477
|
currentPeriodEnd: string | null;
|
|
469
478
|
|
|
479
|
+
domainId: string | null;
|
|
480
|
+
|
|
470
481
|
inboundMessages: Data.InboundMessages;
|
|
471
482
|
|
|
472
483
|
label: string | null;
|
|
@@ -503,7 +514,7 @@ export namespace MailboxUncancelResponse {
|
|
|
503
514
|
|
|
504
515
|
address: string | null;
|
|
505
516
|
|
|
506
|
-
billingMode: 'rent' | 'included';
|
|
517
|
+
billingMode: 'rent' | 'included' | 'domain';
|
|
507
518
|
|
|
508
519
|
cancelAtPeriodEnd: boolean;
|
|
509
520
|
|
|
@@ -515,6 +526,8 @@ export namespace MailboxUncancelResponse {
|
|
|
515
526
|
|
|
516
527
|
currentPeriodEnd: string | null;
|
|
517
528
|
|
|
529
|
+
domainId: string | null;
|
|
530
|
+
|
|
518
531
|
inboundMessages: Data.InboundMessages;
|
|
519
532
|
|
|
520
533
|
label: string | null;
|
|
@@ -545,17 +558,22 @@ export interface MailboxCreateParams {
|
|
|
545
558
|
clientRequestId: string;
|
|
546
559
|
|
|
547
560
|
/**
|
|
548
|
-
*
|
|
549
|
-
*
|
|
561
|
+
* included uses package capacity when available and otherwise starts paid
|
|
562
|
+
* checkout; included_only fails without creating a paid reservation when no
|
|
563
|
+
* included slot remains; rent always starts paid checkout.
|
|
564
|
+
*/
|
|
565
|
+
billingPreference?: 'included' | 'included_only' | 'rent';
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* Optional active custom mailbox domain owned by the caller. Omit to use the
|
|
569
|
+
* system domain.
|
|
550
570
|
*/
|
|
551
|
-
|
|
571
|
+
domainId?: string;
|
|
552
572
|
|
|
553
573
|
label?: string;
|
|
554
574
|
|
|
555
575
|
/**
|
|
556
|
-
* Optional
|
|
557
|
-
* lowercased before validation. Omit for a random, non-guessable mx\_-prefixed
|
|
558
|
-
* address.
|
|
576
|
+
* Optional mailbox name before the "@". Omit to generate a random address.
|
|
559
577
|
*/
|
|
560
578
|
localPart?: string;
|
|
561
579
|
}
|
|
@@ -582,10 +600,11 @@ export interface MailboxOtpParams {
|
|
|
582
600
|
|
|
583
601
|
export interface MailboxRestartParams {
|
|
584
602
|
/**
|
|
585
|
-
*
|
|
586
|
-
*
|
|
603
|
+
* included uses package capacity when available and otherwise starts paid
|
|
604
|
+
* checkout; included_only fails without creating a paid reservation when no
|
|
605
|
+
* included slot remains; rent always starts paid checkout.
|
|
587
606
|
*/
|
|
588
|
-
billingPreference?: 'included' | 'rent';
|
|
607
|
+
billingPreference?: 'included' | 'included_only' | 'rent';
|
|
589
608
|
}
|
|
590
609
|
|
|
591
610
|
Mailboxes.Messages = Messages;
|
|
@@ -27,8 +27,8 @@ export class Messages extends APIResource {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* Lists messages
|
|
31
|
-
* filters
|
|
30
|
+
* Lists mailbox messages with cursor pagination and optional time, sender, and OTP
|
|
31
|
+
* filters.
|
|
32
32
|
*
|
|
33
33
|
* @example
|
|
34
34
|
* ```ts
|
|
@@ -6,17 +6,8 @@ import { RequestOptions } from '../../internal/request-options';
|
|
|
6
6
|
|
|
7
7
|
export class Conversations extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
* Lists
|
|
10
|
-
*
|
|
11
|
-
* it was seen through. Optional `esimId` or `numberId` narrows to threads on one
|
|
12
|
-
* eSIM or number.
|
|
13
|
-
*
|
|
14
|
-
* Cursor-paginated via `limit` (default 20, max 100) and
|
|
15
|
-
* `cursorLastOccurredAt`/`cursorLastMessageId` (both required together, taken from
|
|
16
|
-
* a previous page's `nextCursor`). Pagination follows each thread's most recent
|
|
17
|
-
* activity rather than a fixed snapshot, so a thread with new activity can move
|
|
18
|
-
* ahead of an in-progress page fetch. Clients that need a stable ordering should
|
|
19
|
-
* snapshot their own view.
|
|
9
|
+
* Lists SMS conversations by recent activity. Use both cursor fields from
|
|
10
|
+
* `nextCursor` to fetch the next page.
|
|
20
11
|
*/
|
|
21
12
|
list(
|
|
22
13
|
query: ConversationListParams | null | undefined = {},
|
|
@@ -26,10 +17,8 @@ export class Conversations extends APIResource {
|
|
|
26
17
|
}
|
|
27
18
|
|
|
28
19
|
/**
|
|
29
|
-
* Marks
|
|
30
|
-
*
|
|
31
|
-
* conversation row's `lastMessage`. Idempotent: repeating the call with the same
|
|
32
|
-
* cursor updates 0 rows. Returns the number of rows updated.
|
|
20
|
+
* Marks inbound messages in a conversation as read through the supplied cursor.
|
|
21
|
+
* Repeating the request is safe.
|
|
33
22
|
*/
|
|
34
23
|
markRead(
|
|
35
24
|
body: ConversationMarkReadParams,
|
|
@@ -17,10 +17,8 @@ export class Messages extends APIResource {
|
|
|
17
17
|
conversations: ConversationsAPI.Conversations = new ConversationsAPI.Conversations(this._client);
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* Lists
|
|
21
|
-
*
|
|
22
|
-
* characters), and peerKey (exact thread match). Each row includes its canonical
|
|
23
|
-
* thread key (`peerKey`).
|
|
20
|
+
* Lists SMS messages newest first, with filters for direction, eSIM, phone number,
|
|
21
|
+
* status, and conversation.
|
|
24
22
|
*/
|
|
25
23
|
list(
|
|
26
24
|
query: MessageListParams | null | undefined = {},
|
|
@@ -8,9 +8,11 @@ export {
|
|
|
8
8
|
type NumberUpdateResponse,
|
|
9
9
|
type NumberListResponse,
|
|
10
10
|
type NumberDeleteResponse,
|
|
11
|
+
type NumberCapacityResponse,
|
|
11
12
|
type NumberCountriesResponse,
|
|
12
13
|
type NumberPurposesResponse,
|
|
13
14
|
type NumberCreateParams,
|
|
14
15
|
type NumberUpdateParams,
|
|
15
16
|
type NumberListParams,
|
|
17
|
+
type NumberCapacityParams,
|
|
16
18
|
} from './numbers';
|
|
@@ -13,9 +13,8 @@ export class Numbers extends APIResource {
|
|
|
13
13
|
messages: MessagesAPI.Messages = new MessagesAPI.Messages(this._client);
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
* Starts a
|
|
17
|
-
*
|
|
18
|
-
* its business state. `purpose` and `country` are mutually exclusive.
|
|
16
|
+
* Starts a phone-number purchase. Poll the returned phone number for status
|
|
17
|
+
* updates. `purpose` and `country` cannot be combined.
|
|
19
18
|
*
|
|
20
19
|
* @example
|
|
21
20
|
* ```ts
|
|
@@ -52,11 +51,8 @@ export class Numbers extends APIResource {
|
|
|
52
51
|
}
|
|
53
52
|
|
|
54
53
|
/**
|
|
55
|
-
* Updates the
|
|
56
|
-
*
|
|
57
|
-
* capped at 100 characters, is display-only, and never affects routing. It also
|
|
58
|
-
* seeds the billing entity name when set at purchase time; a later change here
|
|
59
|
-
* does not rename the already-created billing entity.
|
|
54
|
+
* Updates the display label. Omitting `label` leaves it unchanged; null or an
|
|
55
|
+
* empty string clears it.
|
|
60
56
|
*
|
|
61
57
|
* @example
|
|
62
58
|
* ```ts
|
|
@@ -74,8 +70,7 @@ export class Numbers extends APIResource {
|
|
|
74
70
|
}
|
|
75
71
|
|
|
76
72
|
/**
|
|
77
|
-
* Lists
|
|
78
|
-
* provisioned (`mobilerun`) numbers.
|
|
73
|
+
* Lists the caller's phone numbers.
|
|
79
74
|
*
|
|
80
75
|
* @example
|
|
81
76
|
* ```ts
|
|
@@ -90,23 +85,9 @@ export class Numbers extends APIResource {
|
|
|
90
85
|
}
|
|
91
86
|
|
|
92
87
|
/**
|
|
93
|
-
* Cancels a
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
* being processed, the checkout is closed immediately and the number is retired.
|
|
97
|
-
* - If the number is on the standard paid plan and already paid and in service,
|
|
98
|
-
* cancellation is scheduled for the end of the current billing period rather
|
|
99
|
-
* than taking effect immediately. The number stays usable through the period
|
|
100
|
-
* already paid for, with no partial refund. Calling this again while a
|
|
101
|
-
* cancellation is already scheduled is a no-op that returns the same result. The
|
|
102
|
-
* response's `state` reflects this as `cancel_scheduled` with
|
|
103
|
-
* `cancelAtPeriodEnd: true`; `currentPeriodEnd` is populated once billing
|
|
104
|
-
* confirms the cancellation.
|
|
105
|
-
*
|
|
106
|
-
* Any other state (already refunding, a permanent billing failure, a payment
|
|
107
|
-
* currently being processed, an included-plan number, or a non-hosted/BYO number)
|
|
108
|
-
* returns 409 `not_cancellable`. Returns 404 if the number doesn't exist or isn't
|
|
109
|
-
* owned by the caller.
|
|
88
|
+
* Cancels a pending purchase or schedules cancellation of an active paid phone
|
|
89
|
+
* number. Repeating a scheduled cancellation is safe. Returns 409 when
|
|
90
|
+
* cancellation is not available.
|
|
110
91
|
*
|
|
111
92
|
* @example
|
|
112
93
|
* ```ts
|
|
@@ -120,8 +101,22 @@ export class Numbers extends APIResource {
|
|
|
120
101
|
}
|
|
121
102
|
|
|
122
103
|
/**
|
|
123
|
-
*
|
|
124
|
-
*
|
|
104
|
+
* Returns included phone capacity for a country. Creating a phone is
|
|
105
|
+
* authoritative.
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* ```ts
|
|
109
|
+
* const response = await client.numbers.capacity({
|
|
110
|
+
* country: 'de',
|
|
111
|
+
* });
|
|
112
|
+
* ```
|
|
113
|
+
*/
|
|
114
|
+
capacity(query: NumberCapacityParams, options?: RequestOptions): APIPromise<NumberCapacityResponse> {
|
|
115
|
+
return this._client.get('/numbers/phones/capacity', { query, ...options });
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Lists available countries and current phone-number availability.
|
|
125
120
|
*
|
|
126
121
|
* @example
|
|
127
122
|
* ```ts
|
|
@@ -305,6 +300,26 @@ export namespace NumberDeleteResponse {
|
|
|
305
300
|
}
|
|
306
301
|
}
|
|
307
302
|
|
|
303
|
+
export interface NumberCapacityResponse {
|
|
304
|
+
data: NumberCapacityResponse.Data;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
export namespace NumberCapacityResponse {
|
|
308
|
+
export interface Data {
|
|
309
|
+
included: number;
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* @deprecated Deprecated — always equal to `remaining`. Migrate to `remaining`;
|
|
313
|
+
* this field will be removed in a future revision.
|
|
314
|
+
*/
|
|
315
|
+
includedRemaining: number;
|
|
316
|
+
|
|
317
|
+
remaining: number;
|
|
318
|
+
|
|
319
|
+
status: 'available' | 'exhausted' | 'not_included';
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
308
323
|
export interface NumberCountriesResponse {
|
|
309
324
|
data: NumberCountriesResponse.Data;
|
|
310
325
|
}
|
|
@@ -347,14 +362,14 @@ export namespace NumberPurposesResponse {
|
|
|
347
362
|
|
|
348
363
|
export interface NumberCreateParams {
|
|
349
364
|
/**
|
|
350
|
-
* Body param:
|
|
351
|
-
* checkout (
|
|
365
|
+
* Body param: Use included capacity when available, require included capacity
|
|
366
|
+
* without paid fallback (included_only), or start a paid checkout (rent).
|
|
352
367
|
*/
|
|
353
|
-
billingPreference?: 'included' | 'rent';
|
|
368
|
+
billingPreference?: 'included' | 'included_only' | 'rent';
|
|
354
369
|
|
|
355
370
|
/**
|
|
356
371
|
* Body param: Optional ISO 3166-1 alpha-2 country code from GET
|
|
357
|
-
* /numbers/countries. Cannot be combined with `purpose`.
|
|
372
|
+
* /numbers/phones/countries. Cannot be combined with `purpose`.
|
|
358
373
|
*/
|
|
359
374
|
country?: string;
|
|
360
375
|
|
|
@@ -366,7 +381,7 @@ export interface NumberCreateParams {
|
|
|
366
381
|
label?: string | null;
|
|
367
382
|
|
|
368
383
|
/**
|
|
369
|
-
* Body param: Optional
|
|
384
|
+
* Body param: Optional purpose from GET /numbers/phones/purposes.
|
|
370
385
|
*/
|
|
371
386
|
purpose?: string;
|
|
372
387
|
|
|
@@ -391,6 +406,13 @@ export interface NumberListParams {
|
|
|
391
406
|
pageSize?: number;
|
|
392
407
|
}
|
|
393
408
|
|
|
409
|
+
export interface NumberCapacityParams {
|
|
410
|
+
/**
|
|
411
|
+
* ISO 3166-1 alpha-2 country code from GET /numbers/phones/countries.
|
|
412
|
+
*/
|
|
413
|
+
country: string;
|
|
414
|
+
}
|
|
415
|
+
|
|
394
416
|
Numbers.Messages = Messages;
|
|
395
417
|
|
|
396
418
|
export declare namespace Numbers {
|
|
@@ -400,11 +422,13 @@ export declare namespace Numbers {
|
|
|
400
422
|
type NumberUpdateResponse as NumberUpdateResponse,
|
|
401
423
|
type NumberListResponse as NumberListResponse,
|
|
402
424
|
type NumberDeleteResponse as NumberDeleteResponse,
|
|
425
|
+
type NumberCapacityResponse as NumberCapacityResponse,
|
|
403
426
|
type NumberCountriesResponse as NumberCountriesResponse,
|
|
404
427
|
type NumberPurposesResponse as NumberPurposesResponse,
|
|
405
428
|
type NumberCreateParams as NumberCreateParams,
|
|
406
429
|
type NumberUpdateParams as NumberUpdateParams,
|
|
407
430
|
type NumberListParams as NumberListParams,
|
|
431
|
+
type NumberCapacityParams as NumberCapacityParams,
|
|
408
432
|
};
|
|
409
433
|
|
|
410
434
|
export {
|