@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
|
@@ -7,13 +7,10 @@ import { RequestOptions } from "../../internal/request-options.js";
|
|
|
7
7
|
export declare class Mailboxes extends APIResource {
|
|
8
8
|
messages: MessagesAPI.Messages;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* (owner, clientRequestId): same key + payload replays (200); a conflicting or
|
|
15
|
-
* already-held local part returns 409. 201 when the checkout URL is already
|
|
16
|
-
* persisted, otherwise 202 (poll GET for the URL).
|
|
10
|
+
* Creates a mailbox on the default domain or a connected custom domain. An
|
|
11
|
+
* optional `localPart` selects the address. Replaying the same `clientRequestId`
|
|
12
|
+
* and payload returns the original mailbox. Poll the mailbox when a 202 response
|
|
13
|
+
* does not yet include a checkout URL.
|
|
17
14
|
*
|
|
18
15
|
* @example
|
|
19
16
|
* ```ts
|
|
@@ -56,10 +53,8 @@ export declare class Mailboxes extends APIResource {
|
|
|
56
53
|
*/
|
|
57
54
|
list(query?: MailboxListParams | null | undefined, options?: RequestOptions): APIPromise<MailboxListResponse>;
|
|
58
55
|
/**
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
* mailbox, its address, or its messages — the address is permanently reserved.
|
|
62
|
-
* Idempotent.
|
|
56
|
+
* Cancels a pending mailbox or schedules an active paid mailbox for cancellation.
|
|
57
|
+
* Existing addresses and messages are retained. Repeating the request is safe.
|
|
63
58
|
*
|
|
64
59
|
* @example
|
|
65
60
|
* ```ts
|
|
@@ -70,8 +65,7 @@ export declare class Mailboxes extends APIResource {
|
|
|
70
65
|
*/
|
|
71
66
|
delete(mailboxID: string, options?: RequestOptions): APIPromise<MailboxDeleteResponse>;
|
|
72
67
|
/**
|
|
73
|
-
* Returns the
|
|
74
|
-
* available after local reservations.
|
|
68
|
+
* Returns the number of mailboxes currently available through included capacity.
|
|
75
69
|
*
|
|
76
70
|
* @example
|
|
77
71
|
* ```ts
|
|
@@ -80,9 +74,8 @@ export declare class Mailboxes extends APIResource {
|
|
|
80
74
|
*/
|
|
81
75
|
capacity(options?: RequestOptions): APIPromise<MailboxCapacityResponse>;
|
|
82
76
|
/**
|
|
83
|
-
* Returns the
|
|
84
|
-
*
|
|
85
|
-
* poll). 200 with the best code, 204 when none matches.
|
|
77
|
+
* Returns the most likely recent OTP for the mailbox. Returns 204 when no matching
|
|
78
|
+
* code is available.
|
|
86
79
|
*
|
|
87
80
|
* @example
|
|
88
81
|
* ```ts
|
|
@@ -93,8 +86,8 @@ export declare class Mailboxes extends APIResource {
|
|
|
93
86
|
*/
|
|
94
87
|
otp(mailboxID: string, query?: MailboxOtpParams | null | undefined, options?: RequestOptions): APIPromise<MailboxOtpResponse>;
|
|
95
88
|
/**
|
|
96
|
-
*
|
|
97
|
-
*
|
|
89
|
+
* Restarts an archived mailbox with the same address. Uses included capacity when
|
|
90
|
+
* available unless paid service is requested.
|
|
98
91
|
*
|
|
99
92
|
* @example
|
|
100
93
|
* ```ts
|
|
@@ -105,8 +98,8 @@ export declare class Mailboxes extends APIResource {
|
|
|
105
98
|
*/
|
|
106
99
|
restart(mailboxID: string, body?: MailboxRestartParams | null | undefined, options?: RequestOptions): APIPromise<MailboxRestartResponse>;
|
|
107
100
|
/**
|
|
108
|
-
*
|
|
109
|
-
*
|
|
101
|
+
* Withdraws a scheduled cancellation. Only available while cancellation is
|
|
102
|
+
* pending.
|
|
110
103
|
*
|
|
111
104
|
* @example
|
|
112
105
|
* ```ts
|
|
@@ -124,12 +117,13 @@ export declare namespace MailboxCreateResponse {
|
|
|
124
117
|
interface Data {
|
|
125
118
|
id: string;
|
|
126
119
|
address: string | null;
|
|
127
|
-
billingMode: 'rent' | 'included';
|
|
120
|
+
billingMode: 'rent' | 'included' | 'domain';
|
|
128
121
|
cancelAtPeriodEnd: boolean;
|
|
129
122
|
checkoutExpiresAt: string | null;
|
|
130
123
|
checkoutUrl: string | null;
|
|
131
124
|
createdAt: string;
|
|
132
125
|
currentPeriodEnd: string | null;
|
|
126
|
+
domainId: string | null;
|
|
133
127
|
inboundMessages: Data.InboundMessages;
|
|
134
128
|
label: string | null;
|
|
135
129
|
status: 'provisioning' | 'awaiting_payment' | 'active' | 'cancel_scheduled' | 'archived' | 'billing_error';
|
|
@@ -150,12 +144,13 @@ export declare namespace MailboxRetrieveResponse {
|
|
|
150
144
|
interface Data {
|
|
151
145
|
id: string;
|
|
152
146
|
address: string | null;
|
|
153
|
-
billingMode: 'rent' | 'included';
|
|
147
|
+
billingMode: 'rent' | 'included' | 'domain';
|
|
154
148
|
cancelAtPeriodEnd: boolean;
|
|
155
149
|
checkoutExpiresAt: string | null;
|
|
156
150
|
checkoutUrl: string | null;
|
|
157
151
|
createdAt: string;
|
|
158
152
|
currentPeriodEnd: string | null;
|
|
153
|
+
domainId: string | null;
|
|
159
154
|
inboundMessages: Data.InboundMessages;
|
|
160
155
|
label: string | null;
|
|
161
156
|
status: 'provisioning' | 'awaiting_payment' | 'active' | 'cancel_scheduled' | 'archived' | 'billing_error';
|
|
@@ -176,12 +171,13 @@ export declare namespace MailboxUpdateResponse {
|
|
|
176
171
|
interface Data {
|
|
177
172
|
id: string;
|
|
178
173
|
address: string | null;
|
|
179
|
-
billingMode: 'rent' | 'included';
|
|
174
|
+
billingMode: 'rent' | 'included' | 'domain';
|
|
180
175
|
cancelAtPeriodEnd: boolean;
|
|
181
176
|
checkoutExpiresAt: string | null;
|
|
182
177
|
checkoutUrl: string | null;
|
|
183
178
|
createdAt: string;
|
|
184
179
|
currentPeriodEnd: string | null;
|
|
180
|
+
domainId: string | null;
|
|
185
181
|
inboundMessages: Data.InboundMessages;
|
|
186
182
|
label: string | null;
|
|
187
183
|
status: 'provisioning' | 'awaiting_payment' | 'active' | 'cancel_scheduled' | 'archived' | 'billing_error';
|
|
@@ -203,12 +199,13 @@ export declare namespace MailboxListResponse {
|
|
|
203
199
|
interface Item {
|
|
204
200
|
id: string;
|
|
205
201
|
address: string | null;
|
|
206
|
-
billingMode: 'rent' | 'included';
|
|
202
|
+
billingMode: 'rent' | 'included' | 'domain';
|
|
207
203
|
cancelAtPeriodEnd: boolean;
|
|
208
204
|
checkoutExpiresAt: string | null;
|
|
209
205
|
checkoutUrl: string | null;
|
|
210
206
|
createdAt: string;
|
|
211
207
|
currentPeriodEnd: string | null;
|
|
208
|
+
domainId: string | null;
|
|
212
209
|
inboundMessages: Item.InboundMessages;
|
|
213
210
|
label: string | null;
|
|
214
211
|
status: 'provisioning' | 'awaiting_payment' | 'active' | 'cancel_scheduled' | 'archived' | 'billing_error';
|
|
@@ -229,12 +226,13 @@ export declare namespace MailboxDeleteResponse {
|
|
|
229
226
|
interface Data {
|
|
230
227
|
id: string;
|
|
231
228
|
address: string | null;
|
|
232
|
-
billingMode: 'rent' | 'included';
|
|
229
|
+
billingMode: 'rent' | 'included' | 'domain';
|
|
233
230
|
cancelAtPeriodEnd: boolean;
|
|
234
231
|
checkoutExpiresAt: string | null;
|
|
235
232
|
checkoutUrl: string | null;
|
|
236
233
|
createdAt: string;
|
|
237
234
|
currentPeriodEnd: string | null;
|
|
235
|
+
domainId: string | null;
|
|
238
236
|
inboundMessages: Data.InboundMessages;
|
|
239
237
|
label: string | null;
|
|
240
238
|
status: 'provisioning' | 'awaiting_payment' | 'active' | 'cancel_scheduled' | 'archived' | 'billing_error';
|
|
@@ -253,7 +251,10 @@ export interface MailboxCapacityResponse {
|
|
|
253
251
|
}
|
|
254
252
|
export declare namespace MailboxCapacityResponse {
|
|
255
253
|
interface Data {
|
|
254
|
+
included: number;
|
|
256
255
|
includedRemaining: number;
|
|
256
|
+
remaining: number;
|
|
257
|
+
status: 'available' | 'exhausted' | 'not_included';
|
|
257
258
|
}
|
|
258
259
|
}
|
|
259
260
|
export interface MailboxOtpResponse {
|
|
@@ -262,7 +263,7 @@ export interface MailboxOtpResponse {
|
|
|
262
263
|
export declare namespace MailboxOtpResponse {
|
|
263
264
|
interface Data {
|
|
264
265
|
/**
|
|
265
|
-
*
|
|
266
|
+
* OTP code as text to preserve leading zeros.
|
|
266
267
|
*/
|
|
267
268
|
code: string;
|
|
268
269
|
confidence: 'high' | 'medium' | 'low';
|
|
@@ -279,12 +280,13 @@ export declare namespace MailboxRestartResponse {
|
|
|
279
280
|
interface Data {
|
|
280
281
|
id: string;
|
|
281
282
|
address: string | null;
|
|
282
|
-
billingMode: 'rent' | 'included';
|
|
283
|
+
billingMode: 'rent' | 'included' | 'domain';
|
|
283
284
|
cancelAtPeriodEnd: boolean;
|
|
284
285
|
checkoutExpiresAt: string | null;
|
|
285
286
|
checkoutUrl: string | null;
|
|
286
287
|
createdAt: string;
|
|
287
288
|
currentPeriodEnd: string | null;
|
|
289
|
+
domainId: string | null;
|
|
288
290
|
inboundMessages: Data.InboundMessages;
|
|
289
291
|
label: string | null;
|
|
290
292
|
status: 'provisioning' | 'awaiting_payment' | 'active' | 'cancel_scheduled' | 'archived' | 'billing_error';
|
|
@@ -305,12 +307,13 @@ export declare namespace MailboxUncancelResponse {
|
|
|
305
307
|
interface Data {
|
|
306
308
|
id: string;
|
|
307
309
|
address: string | null;
|
|
308
|
-
billingMode: 'rent' | 'included';
|
|
310
|
+
billingMode: 'rent' | 'included' | 'domain';
|
|
309
311
|
cancelAtPeriodEnd: boolean;
|
|
310
312
|
checkoutExpiresAt: string | null;
|
|
311
313
|
checkoutUrl: string | null;
|
|
312
314
|
createdAt: string;
|
|
313
315
|
currentPeriodEnd: string | null;
|
|
316
|
+
domainId: string | null;
|
|
314
317
|
inboundMessages: Data.InboundMessages;
|
|
315
318
|
label: string | null;
|
|
316
319
|
status: 'provisioning' | 'awaiting_payment' | 'active' | 'cancel_scheduled' | 'archived' | 'billing_error';
|
|
@@ -327,15 +330,19 @@ export declare namespace MailboxUncancelResponse {
|
|
|
327
330
|
export interface MailboxCreateParams {
|
|
328
331
|
clientRequestId: string;
|
|
329
332
|
/**
|
|
330
|
-
*
|
|
331
|
-
*
|
|
333
|
+
* included uses package capacity when available and otherwise starts paid
|
|
334
|
+
* checkout; included_only fails without creating a paid reservation when no
|
|
335
|
+
* included slot remains; rent always starts paid checkout.
|
|
332
336
|
*/
|
|
333
|
-
billingPreference?: 'included' | 'rent';
|
|
337
|
+
billingPreference?: 'included' | 'included_only' | 'rent';
|
|
338
|
+
/**
|
|
339
|
+
* Optional active custom mailbox domain owned by the caller. Omit to use the
|
|
340
|
+
* system domain.
|
|
341
|
+
*/
|
|
342
|
+
domainId?: string;
|
|
334
343
|
label?: string;
|
|
335
344
|
/**
|
|
336
|
-
* Optional
|
|
337
|
-
* lowercased before validation. Omit for a random, non-guessable mx\_-prefixed
|
|
338
|
-
* address.
|
|
345
|
+
* Optional mailbox name before the "@". Omit to generate a random address.
|
|
339
346
|
*/
|
|
340
347
|
localPart?: string;
|
|
341
348
|
}
|
|
@@ -354,10 +361,11 @@ export interface MailboxOtpParams {
|
|
|
354
361
|
}
|
|
355
362
|
export interface MailboxRestartParams {
|
|
356
363
|
/**
|
|
357
|
-
*
|
|
358
|
-
*
|
|
364
|
+
* included uses package capacity when available and otherwise starts paid
|
|
365
|
+
* checkout; included_only fails without creating a paid reservation when no
|
|
366
|
+
* included slot remains; rent always starts paid checkout.
|
|
359
367
|
*/
|
|
360
|
-
billingPreference?: 'included' | 'rent';
|
|
368
|
+
billingPreference?: 'included' | 'included_only' | 'rent';
|
|
361
369
|
}
|
|
362
370
|
export declare namespace Mailboxes {
|
|
363
371
|
export { type MailboxCreateResponse as MailboxCreateResponse, type MailboxRetrieveResponse as MailboxRetrieveResponse, type MailboxUpdateResponse as MailboxUpdateResponse, type MailboxListResponse as MailboxListResponse, type MailboxDeleteResponse as MailboxDeleteResponse, type MailboxCapacityResponse as MailboxCapacityResponse, type MailboxOtpResponse as MailboxOtpResponse, type MailboxRestartResponse as MailboxRestartResponse, type MailboxUncancelResponse as MailboxUncancelResponse, type MailboxCreateParams as MailboxCreateParams, type MailboxUpdateParams as MailboxUpdateParams, type MailboxListParams as MailboxListParams, type MailboxOtpParams as MailboxOtpParams, type MailboxRestartParams as MailboxRestartParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mailboxes.d.ts","sourceRoot":"","sources":["../../src/resources/mailboxes/mailboxes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,QAAQ,EACT,sBAAmB;AACpB,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/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -13,13 +13,10 @@ class Mailboxes extends resource_1.APIResource {
|
|
|
13
13
|
this.messages = new MessagesAPI.Messages(this._client);
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* (owner, clientRequestId): same key + payload replays (200); a conflicting or
|
|
21
|
-
* already-held local part returns 409. 201 when the checkout URL is already
|
|
22
|
-
* persisted, otherwise 202 (poll GET for the URL).
|
|
16
|
+
* Creates a mailbox on the default domain or a connected custom domain. An
|
|
17
|
+
* optional `localPart` selects the address. Replaying the same `clientRequestId`
|
|
18
|
+
* and payload returns the original mailbox. Poll the mailbox when a 202 response
|
|
19
|
+
* does not yet include a checkout URL.
|
|
23
20
|
*
|
|
24
21
|
* @example
|
|
25
22
|
* ```ts
|
|
@@ -70,10 +67,8 @@ class Mailboxes extends resource_1.APIResource {
|
|
|
70
67
|
return this._client.get('/mailboxes', { query, ...options });
|
|
71
68
|
}
|
|
72
69
|
/**
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
* mailbox, its address, or its messages — the address is permanently reserved.
|
|
76
|
-
* Idempotent.
|
|
70
|
+
* Cancels a pending mailbox or schedules an active paid mailbox for cancellation.
|
|
71
|
+
* Existing addresses and messages are retained. Repeating the request is safe.
|
|
77
72
|
*
|
|
78
73
|
* @example
|
|
79
74
|
* ```ts
|
|
@@ -86,8 +81,7 @@ class Mailboxes extends resource_1.APIResource {
|
|
|
86
81
|
return this._client.delete((0, path_1.path) `/mailboxes/${mailboxID}`, options);
|
|
87
82
|
}
|
|
88
83
|
/**
|
|
89
|
-
* Returns the
|
|
90
|
-
* available after local reservations.
|
|
84
|
+
* Returns the number of mailboxes currently available through included capacity.
|
|
91
85
|
*
|
|
92
86
|
* @example
|
|
93
87
|
* ```ts
|
|
@@ -98,9 +92,8 @@ class Mailboxes extends resource_1.APIResource {
|
|
|
98
92
|
return this._client.get('/mailboxes/capacity', options);
|
|
99
93
|
}
|
|
100
94
|
/**
|
|
101
|
-
* Returns the
|
|
102
|
-
*
|
|
103
|
-
* poll). 200 with the best code, 204 when none matches.
|
|
95
|
+
* Returns the most likely recent OTP for the mailbox. Returns 204 when no matching
|
|
96
|
+
* code is available.
|
|
104
97
|
*
|
|
105
98
|
* @example
|
|
106
99
|
* ```ts
|
|
@@ -113,8 +106,8 @@ class Mailboxes extends resource_1.APIResource {
|
|
|
113
106
|
return this._client.get((0, path_1.path) `/mailboxes/${mailboxID}/otp`, { query, ...options });
|
|
114
107
|
}
|
|
115
108
|
/**
|
|
116
|
-
*
|
|
117
|
-
*
|
|
109
|
+
* Restarts an archived mailbox with the same address. Uses included capacity when
|
|
110
|
+
* available unless paid service is requested.
|
|
118
111
|
*
|
|
119
112
|
* @example
|
|
120
113
|
* ```ts
|
|
@@ -127,8 +120,8 @@ class Mailboxes extends resource_1.APIResource {
|
|
|
127
120
|
return this._client.post((0, path_1.path) `/mailboxes/${mailboxID}/restart`, { body, ...options });
|
|
128
121
|
}
|
|
129
122
|
/**
|
|
130
|
-
*
|
|
131
|
-
*
|
|
123
|
+
* Withdraws a scheduled cancellation. Only available while cancellation is
|
|
124
|
+
* pending.
|
|
132
125
|
*
|
|
133
126
|
* @example
|
|
134
127
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mailboxes.js","sourceRoot":"","sources":["../../src/resources/mailboxes/mailboxes.ts"],"names":[],"mappings":";AAAA,sFAAs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
|
|
16
|
-
* (owner, clientRequestId): same key + payload replays (200); a conflicting or
|
|
17
|
-
* already-held local part returns 409. 201 when the checkout URL is already
|
|
18
|
-
* persisted, otherwise 202 (poll GET for the URL).
|
|
12
|
+
* Creates a mailbox on the default domain or a connected custom domain. An
|
|
13
|
+
* optional `localPart` selects the address. Replaying the same `clientRequestId`
|
|
14
|
+
* and payload returns the original mailbox. Poll the mailbox when a 202 response
|
|
15
|
+
* does not yet include a checkout URL.
|
|
19
16
|
*
|
|
20
17
|
* @example
|
|
21
18
|
* ```ts
|
|
@@ -66,10 +63,8 @@ export class Mailboxes extends APIResource {
|
|
|
66
63
|
return this._client.get('/mailboxes', { query, ...options });
|
|
67
64
|
}
|
|
68
65
|
/**
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
* mailbox, its address, or its messages — the address is permanently reserved.
|
|
72
|
-
* Idempotent.
|
|
66
|
+
* Cancels a pending mailbox or schedules an active paid mailbox for cancellation.
|
|
67
|
+
* Existing addresses and messages are retained. Repeating the request is safe.
|
|
73
68
|
*
|
|
74
69
|
* @example
|
|
75
70
|
* ```ts
|
|
@@ -82,8 +77,7 @@ export class Mailboxes extends APIResource {
|
|
|
82
77
|
return this._client.delete(path `/mailboxes/${mailboxID}`, options);
|
|
83
78
|
}
|
|
84
79
|
/**
|
|
85
|
-
* Returns the
|
|
86
|
-
* available after local reservations.
|
|
80
|
+
* Returns the number of mailboxes currently available through included capacity.
|
|
87
81
|
*
|
|
88
82
|
* @example
|
|
89
83
|
* ```ts
|
|
@@ -94,9 +88,8 @@ export class Mailboxes extends APIResource {
|
|
|
94
88
|
return this._client.get('/mailboxes/capacity', options);
|
|
95
89
|
}
|
|
96
90
|
/**
|
|
97
|
-
* Returns the
|
|
98
|
-
*
|
|
99
|
-
* poll). 200 with the best code, 204 when none matches.
|
|
91
|
+
* Returns the most likely recent OTP for the mailbox. Returns 204 when no matching
|
|
92
|
+
* code is available.
|
|
100
93
|
*
|
|
101
94
|
* @example
|
|
102
95
|
* ```ts
|
|
@@ -109,8 +102,8 @@ export class Mailboxes extends APIResource {
|
|
|
109
102
|
return this._client.get(path `/mailboxes/${mailboxID}/otp`, { query, ...options });
|
|
110
103
|
}
|
|
111
104
|
/**
|
|
112
|
-
*
|
|
113
|
-
*
|
|
105
|
+
* Restarts an archived mailbox with the same address. Uses included capacity when
|
|
106
|
+
* available unless paid service is requested.
|
|
114
107
|
*
|
|
115
108
|
* @example
|
|
116
109
|
* ```ts
|
|
@@ -123,8 +116,8 @@ export class Mailboxes extends APIResource {
|
|
|
123
116
|
return this._client.post(path `/mailboxes/${mailboxID}/restart`, { body, ...options });
|
|
124
117
|
}
|
|
125
118
|
/**
|
|
126
|
-
*
|
|
127
|
-
*
|
|
119
|
+
* Withdraws a scheduled cancellation. Only available while cancellation is
|
|
120
|
+
* pending.
|
|
128
121
|
*
|
|
129
122
|
* @example
|
|
130
123
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mailboxes.mjs","sourceRoot":"","sources":["../../src/resources/mailboxes/mailboxes.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAKL,QAAQ,GACT,uBAAmB;AAGpB,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,SAAU,SAAQ,WAAW;IAA1C;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"mailboxes.mjs","sourceRoot":"","sources":["../../src/resources/mailboxes/mailboxes.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAKL,QAAQ,GACT,uBAAmB;AAGpB,OAAO,EAAE,IAAI,EAAE,sCAA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UG;IACH,GAAG,CACD,SAAiB,EACjB,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,cAAc,SAAS,MAAM,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;;;;OAUG;IACH,OAAO,CACL,SAAiB,EACjB,OAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,cAAc,SAAS,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,cAAc,SAAS,WAAW,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;CACF;AA8bD,SAAS,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
|
|
@@ -15,8 +15,8 @@ export declare class Messages extends APIResource {
|
|
|
15
15
|
*/
|
|
16
16
|
retrieve(messageID: string, params: MessageRetrieveParams, options?: RequestOptions): APIPromise<MessageRetrieveResponse>;
|
|
17
17
|
/**
|
|
18
|
-
* Lists messages
|
|
19
|
-
* filters
|
|
18
|
+
* Lists mailbox messages with cursor pagination and optional time, sender, and OTP
|
|
19
|
+
* filters.
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
22
|
* ```ts
|
|
@@ -15,8 +15,8 @@ export declare class Messages extends APIResource {
|
|
|
15
15
|
*/
|
|
16
16
|
retrieve(messageID: string, params: MessageRetrieveParams, options?: RequestOptions): APIPromise<MessageRetrieveResponse>;
|
|
17
17
|
/**
|
|
18
|
-
* Lists messages
|
|
19
|
-
* filters
|
|
18
|
+
* Lists mailbox messages with cursor pagination and optional time, sender, and OTP
|
|
19
|
+
* filters.
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
22
|
* ```ts
|
|
@@ -21,8 +21,8 @@ class Messages extends resource_1.APIResource {
|
|
|
21
21
|
return this._client.get((0, path_1.path) `/mailboxes/${mailboxId}/messages/${messageID}`, options);
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* Lists messages
|
|
25
|
-
* filters
|
|
24
|
+
* Lists mailbox messages with cursor pagination and optional time, sender, and OTP
|
|
25
|
+
* filters.
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* ```ts
|
|
@@ -18,8 +18,8 @@ export class Messages extends APIResource {
|
|
|
18
18
|
return this._client.get(path `/mailboxes/${mailboxId}/messages/${messageID}`, options);
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
-
* Lists messages
|
|
22
|
-
* filters
|
|
21
|
+
* Lists mailbox messages with cursor pagination and optional time, sender, and OTP
|
|
22
|
+
* filters.
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
25
|
* ```ts
|
|
@@ -3,24 +3,13 @@ import { APIPromise } from "../../core/api-promise.mjs";
|
|
|
3
3
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
4
|
export declare class Conversations extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* Lists
|
|
7
|
-
*
|
|
8
|
-
* it was seen through. Optional `esimId` or `numberId` narrows to threads on one
|
|
9
|
-
* eSIM or number.
|
|
10
|
-
*
|
|
11
|
-
* Cursor-paginated via `limit` (default 20, max 100) and
|
|
12
|
-
* `cursorLastOccurredAt`/`cursorLastMessageId` (both required together, taken from
|
|
13
|
-
* a previous page's `nextCursor`). Pagination follows each thread's most recent
|
|
14
|
-
* activity rather than a fixed snapshot, so a thread with new activity can move
|
|
15
|
-
* ahead of an in-progress page fetch. Clients that need a stable ordering should
|
|
16
|
-
* snapshot their own view.
|
|
6
|
+
* Lists SMS conversations by recent activity. Use both cursor fields from
|
|
7
|
+
* `nextCursor` to fetch the next page.
|
|
17
8
|
*/
|
|
18
9
|
list(query?: ConversationListParams | null | undefined, options?: RequestOptions): APIPromise<ConversationListResponse>;
|
|
19
10
|
/**
|
|
20
|
-
* Marks
|
|
21
|
-
*
|
|
22
|
-
* conversation row's `lastMessage`. Idempotent: repeating the call with the same
|
|
23
|
-
* cursor updates 0 rows. Returns the number of rows updated.
|
|
11
|
+
* Marks inbound messages in a conversation as read through the supplied cursor.
|
|
12
|
+
* Repeating the request is safe.
|
|
24
13
|
*/
|
|
25
14
|
markRead(body: ConversationMarkReadParams, options?: RequestOptions): APIPromise<ConversationMarkReadResponse>;
|
|
26
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversations.d.mts","sourceRoot":"","sources":["../../src/resources/messages/conversations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"conversations.d.mts","sourceRoot":"","sources":["../../src/resources/messages/conversations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;OAGG;IACH,IAAI,CACF,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAIvC;;;OAGG;IACH,QAAQ,CACN,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;CAG5C;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,KAAK,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAE5C,UAAU,EAAE,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ACrC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -3,24 +3,13 @@ import { APIPromise } from "../../core/api-promise.js";
|
|
|
3
3
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
4
|
export declare class Conversations extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* Lists
|
|
7
|
-
*
|
|
8
|
-
* it was seen through. Optional `esimId` or `numberId` narrows to threads on one
|
|
9
|
-
* eSIM or number.
|
|
10
|
-
*
|
|
11
|
-
* Cursor-paginated via `limit` (default 20, max 100) and
|
|
12
|
-
* `cursorLastOccurredAt`/`cursorLastMessageId` (both required together, taken from
|
|
13
|
-
* a previous page's `nextCursor`). Pagination follows each thread's most recent
|
|
14
|
-
* activity rather than a fixed snapshot, so a thread with new activity can move
|
|
15
|
-
* ahead of an in-progress page fetch. Clients that need a stable ordering should
|
|
16
|
-
* snapshot their own view.
|
|
6
|
+
* Lists SMS conversations by recent activity. Use both cursor fields from
|
|
7
|
+
* `nextCursor` to fetch the next page.
|
|
17
8
|
*/
|
|
18
9
|
list(query?: ConversationListParams | null | undefined, options?: RequestOptions): APIPromise<ConversationListResponse>;
|
|
19
10
|
/**
|
|
20
|
-
* Marks
|
|
21
|
-
*
|
|
22
|
-
* conversation row's `lastMessage`. Idempotent: repeating the call with the same
|
|
23
|
-
* cursor updates 0 rows. Returns the number of rows updated.
|
|
11
|
+
* Marks inbound messages in a conversation as read through the supplied cursor.
|
|
12
|
+
* Repeating the request is safe.
|
|
24
13
|
*/
|
|
25
14
|
markRead(body: ConversationMarkReadParams, options?: RequestOptions): APIPromise<ConversationMarkReadResponse>;
|
|
26
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversations.d.ts","sourceRoot":"","sources":["../../src/resources/messages/conversations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAEhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"conversations.d.ts","sourceRoot":"","sources":["../../src/resources/messages/conversations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAEhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;OAGG;IACH,IAAI,CACF,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAIvC;;;OAGG;IACH,QAAQ,CACN,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;CAG5C;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,KAAK,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAE5C,UAAU,EAAE,wBAAwB,CAAC,UAAU,GAAG,IAAI,CAAC;CACxD;AAED,yBAAiB,wBAAwB,CAAC;IACxC,UAAiB,IAAI;QACnB,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAEvB,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;QAE9B,OAAO,EAAE,MAAM,CAAC;QAEhB,WAAW,EAAE,MAAM,CAAC;KACrB;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,WAAW;YAC1B,EAAE,EAAE,MAAM,CAAC;YAEX,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;YAEpB,SAAS,EAAE,SAAS,GAAG,UAAU,CAAC;YAElC,UAAU,EAAE,MAAM,CAAC;YAEnB,MAAM,EACF,UAAU,GACV,QAAQ,GACR,SAAS,GACT,SAAS,GACT,MAAM,GACN,kBAAkB,GAClB,WAAW,GACX,QAAQ,CAAC;SACd;KACF;IAED,UAAiB,UAAU;QACzB,aAAa,EAAE,MAAM,CAAC;QAEtB,cAAc,EAAE,MAAM,CAAC;KACxB;CACF;AAED,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,4BAA4B,CAAC,IAAI,CAAC;CACzC;AAED,yBAAiB,4BAA4B,CAAC;IAC5C,UAAiB,IAAI;QACnB,OAAO,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB,aAAa,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -5,26 +5,15 @@ exports.Conversations = void 0;
|
|
|
5
5
|
const resource_1 = require("../../core/resource.js");
|
|
6
6
|
class Conversations extends resource_1.APIResource {
|
|
7
7
|
/**
|
|
8
|
-
* Lists
|
|
9
|
-
*
|
|
10
|
-
* it was seen through. Optional `esimId` or `numberId` narrows to threads on one
|
|
11
|
-
* eSIM or number.
|
|
12
|
-
*
|
|
13
|
-
* Cursor-paginated via `limit` (default 20, max 100) and
|
|
14
|
-
* `cursorLastOccurredAt`/`cursorLastMessageId` (both required together, taken from
|
|
15
|
-
* a previous page's `nextCursor`). Pagination follows each thread's most recent
|
|
16
|
-
* activity rather than a fixed snapshot, so a thread with new activity can move
|
|
17
|
-
* ahead of an in-progress page fetch. Clients that need a stable ordering should
|
|
18
|
-
* snapshot their own view.
|
|
8
|
+
* Lists SMS conversations by recent activity. Use both cursor fields from
|
|
9
|
+
* `nextCursor` to fetch the next page.
|
|
19
10
|
*/
|
|
20
11
|
list(query = {}, options) {
|
|
21
12
|
return this._client.get('/numbers/messages/conversations', { query, ...options });
|
|
22
13
|
}
|
|
23
14
|
/**
|
|
24
|
-
* Marks
|
|
25
|
-
*
|
|
26
|
-
* conversation row's `lastMessage`. Idempotent: repeating the call with the same
|
|
27
|
-
* cursor updates 0 rows. Returns the number of rows updated.
|
|
15
|
+
* Marks inbound messages in a conversation as read through the supplied cursor.
|
|
16
|
+
* Repeating the request is safe.
|
|
28
17
|
*/
|
|
29
18
|
markRead(body, options) {
|
|
30
19
|
return this._client.post('/numbers/messages/conversations/read', { body, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversations.js","sourceRoot":"","sources":["../../src/resources/messages/conversations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,MAAa,aAAc,SAAQ,sBAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"conversations.js","sourceRoot":"","sources":["../../src/resources/messages/conversations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;OAGG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iCAAiC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;;OAGG;IACH,QAAQ,CACN,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sCAAsC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;CACF;AAtBD,sCAsBC"}
|