@mobilerun/sdk 5.3.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 +16 -0
- package/client.d.mts +5 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -5
- package/client.d.ts.map +1 -1
- package/client.js +3 -3
- package/client.js.map +1 -1
- package/client.mjs +3 -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 +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mailboxes/index.d.mts +3 -0
- package/resources/mailboxes/index.d.mts.map +1 -0
- package/resources/mailboxes/index.d.ts +3 -0
- package/resources/mailboxes/index.d.ts.map +1 -0
- package/resources/{esims → mailboxes}/index.js +3 -3
- package/resources/mailboxes/index.js.map +1 -0
- package/resources/{esims → mailboxes}/index.mjs +1 -1
- package/resources/mailboxes/index.mjs.map +1 -0
- package/resources/mailboxes/mailboxes.d.mts +374 -0
- package/resources/mailboxes/mailboxes.d.mts.map +1 -0
- package/resources/mailboxes/mailboxes.d.ts +374 -0
- package/resources/mailboxes/mailboxes.d.ts.map +1 -0
- package/resources/mailboxes/mailboxes.js +139 -0
- package/resources/mailboxes/mailboxes.js.map +1 -0
- package/resources/mailboxes/mailboxes.mjs +134 -0
- package/resources/mailboxes/mailboxes.mjs.map +1 -0
- package/resources/mailboxes/messages.d.mts +82 -0
- package/resources/mailboxes/messages.d.mts.map +1 -0
- package/resources/mailboxes/messages.d.ts +82 -0
- package/resources/mailboxes/messages.d.ts.map +1 -0
- package/resources/mailboxes/messages.js +39 -0
- package/resources/mailboxes/messages.js.map +1 -0
- package/resources/mailboxes/messages.mjs +35 -0
- package/resources/mailboxes/messages.mjs.map +1 -0
- package/resources/mailboxes.d.mts +2 -0
- package/resources/mailboxes.d.mts.map +1 -0
- package/resources/mailboxes.d.ts +2 -0
- package/resources/mailboxes.d.ts.map +1 -0
- package/resources/{esims.js → mailboxes.js} +2 -2
- package/resources/mailboxes.js.map +1 -0
- package/resources/{esims.mjs → mailboxes.mjs} +2 -2
- package/resources/mailboxes.mjs.map +1 -0
- 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 +40 -40
- 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 +19 -19
- package/src/resources/mailboxes/index.ts +26 -0
- package/src/resources/mailboxes/mailboxes.ts +637 -0
- package/src/resources/mailboxes/messages.ts +134 -0
- package/src/resources/{esims.ts → mailboxes.ts} +1 -1
- 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.map +0 -1
- 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.map +0 -1
- 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
|
@@ -0,0 +1,637 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as Shared from '../shared';
|
|
5
|
+
import * as MessagesAPI from './messages';
|
|
6
|
+
import {
|
|
7
|
+
MessageListParams,
|
|
8
|
+
MessageListResponse,
|
|
9
|
+
MessageRetrieveParams,
|
|
10
|
+
MessageRetrieveResponse,
|
|
11
|
+
Messages,
|
|
12
|
+
} from './messages';
|
|
13
|
+
import { APIPromise } from '../../core/api-promise';
|
|
14
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
15
|
+
import { path } from '../../internal/utils/path';
|
|
16
|
+
|
|
17
|
+
export class Mailboxes extends APIResource {
|
|
18
|
+
messages: MessagesAPI.Messages = new MessagesAPI.Messages(this._client);
|
|
19
|
+
|
|
20
|
+
/**
|
|
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.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const mailbox = await client.mailboxes.create({
|
|
29
|
+
* clientRequestId: 'x',
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
create(body: MailboxCreateParams, options?: RequestOptions): APIPromise<MailboxCreateResponse> {
|
|
34
|
+
return this._client.post('/mailboxes', { body, ...options });
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Get a mailbox
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const mailbox = await client.mailboxes.retrieve(
|
|
43
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
44
|
+
* );
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
retrieve(mailboxID: string, options?: RequestOptions): APIPromise<MailboxRetrieveResponse> {
|
|
48
|
+
return this._client.get(path`/mailboxes/${mailboxID}`, options);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Updates the label of a mailbox.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* const mailbox = await client.mailboxes.update(
|
|
57
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
58
|
+
* { label: 'label' },
|
|
59
|
+
* );
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
update(
|
|
63
|
+
mailboxID: string,
|
|
64
|
+
body: MailboxUpdateParams,
|
|
65
|
+
options?: RequestOptions,
|
|
66
|
+
): APIPromise<MailboxUpdateResponse> {
|
|
67
|
+
return this._client.patch(path`/mailboxes/${mailboxID}`, { body, ...options });
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Lists the caller-owned mailboxes with page-based pagination.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```ts
|
|
75
|
+
* const mailboxes = await client.mailboxes.list();
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
78
|
+
list(
|
|
79
|
+
query: MailboxListParams | null | undefined = {},
|
|
80
|
+
options?: RequestOptions,
|
|
81
|
+
): APIPromise<MailboxListResponse> {
|
|
82
|
+
return this._client.get('/mailboxes', { query, ...options });
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
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.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* ```ts
|
|
91
|
+
* const mailbox = await client.mailboxes.delete(
|
|
92
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
93
|
+
* );
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
96
|
+
delete(mailboxID: string, options?: RequestOptions): APIPromise<MailboxDeleteResponse> {
|
|
97
|
+
return this._client.delete(path`/mailboxes/${mailboxID}`, options);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Returns the number of mailboxes currently available through included capacity.
|
|
102
|
+
*
|
|
103
|
+
* @example
|
|
104
|
+
* ```ts
|
|
105
|
+
* const response = await client.mailboxes.capacity();
|
|
106
|
+
* ```
|
|
107
|
+
*/
|
|
108
|
+
capacity(options?: RequestOptions): APIPromise<MailboxCapacityResponse> {
|
|
109
|
+
return this._client.get('/mailboxes/capacity', options);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Returns the most likely recent OTP for the mailbox. Returns 204 when no matching
|
|
114
|
+
* code is available.
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* ```ts
|
|
118
|
+
* const response = await client.mailboxes.otp(
|
|
119
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
120
|
+
* );
|
|
121
|
+
* ```
|
|
122
|
+
*/
|
|
123
|
+
otp(
|
|
124
|
+
mailboxID: string,
|
|
125
|
+
query: MailboxOtpParams | null | undefined = {},
|
|
126
|
+
options?: RequestOptions,
|
|
127
|
+
): APIPromise<MailboxOtpResponse> {
|
|
128
|
+
return this._client.get(path`/mailboxes/${mailboxID}/otp`, { query, ...options });
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Restarts an archived mailbox with the same address. Uses included capacity when
|
|
133
|
+
* available unless paid service is requested.
|
|
134
|
+
*
|
|
135
|
+
* @example
|
|
136
|
+
* ```ts
|
|
137
|
+
* const response = await client.mailboxes.restart(
|
|
138
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
139
|
+
* );
|
|
140
|
+
* ```
|
|
141
|
+
*/
|
|
142
|
+
restart(
|
|
143
|
+
mailboxID: string,
|
|
144
|
+
body: MailboxRestartParams | null | undefined = {},
|
|
145
|
+
options?: RequestOptions,
|
|
146
|
+
): APIPromise<MailboxRestartResponse> {
|
|
147
|
+
return this._client.post(path`/mailboxes/${mailboxID}/restart`, { body, ...options });
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Withdraws a scheduled cancellation. Only available while cancellation is
|
|
152
|
+
* pending.
|
|
153
|
+
*
|
|
154
|
+
* @example
|
|
155
|
+
* ```ts
|
|
156
|
+
* const response = await client.mailboxes.uncancel(
|
|
157
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
158
|
+
* );
|
|
159
|
+
* ```
|
|
160
|
+
*/
|
|
161
|
+
uncancel(mailboxID: string, options?: RequestOptions): APIPromise<MailboxUncancelResponse> {
|
|
162
|
+
return this._client.post(path`/mailboxes/${mailboxID}/uncancel`, options);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export interface MailboxCreateResponse {
|
|
167
|
+
data: MailboxCreateResponse.Data;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export namespace MailboxCreateResponse {
|
|
171
|
+
export interface Data {
|
|
172
|
+
id: string;
|
|
173
|
+
|
|
174
|
+
address: string | null;
|
|
175
|
+
|
|
176
|
+
billingMode: 'rent' | 'included' | 'domain';
|
|
177
|
+
|
|
178
|
+
cancelAtPeriodEnd: boolean;
|
|
179
|
+
|
|
180
|
+
checkoutExpiresAt: string | null;
|
|
181
|
+
|
|
182
|
+
checkoutUrl: string | null;
|
|
183
|
+
|
|
184
|
+
createdAt: string;
|
|
185
|
+
|
|
186
|
+
currentPeriodEnd: string | null;
|
|
187
|
+
|
|
188
|
+
domainId: string | null;
|
|
189
|
+
|
|
190
|
+
inboundMessages: Data.InboundMessages;
|
|
191
|
+
|
|
192
|
+
label: string | null;
|
|
193
|
+
|
|
194
|
+
status:
|
|
195
|
+
| 'provisioning'
|
|
196
|
+
| 'awaiting_payment'
|
|
197
|
+
| 'active'
|
|
198
|
+
| 'cancel_scheduled'
|
|
199
|
+
| 'archived'
|
|
200
|
+
| 'billing_error';
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export namespace Data {
|
|
204
|
+
export interface InboundMessages {
|
|
205
|
+
exhausted: boolean;
|
|
206
|
+
|
|
207
|
+
included: number;
|
|
208
|
+
|
|
209
|
+
resetsAt: string | null;
|
|
210
|
+
|
|
211
|
+
used: number;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export interface MailboxRetrieveResponse {
|
|
217
|
+
data: MailboxRetrieveResponse.Data;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export namespace MailboxRetrieveResponse {
|
|
221
|
+
export interface Data {
|
|
222
|
+
id: string;
|
|
223
|
+
|
|
224
|
+
address: string | null;
|
|
225
|
+
|
|
226
|
+
billingMode: 'rent' | 'included' | 'domain';
|
|
227
|
+
|
|
228
|
+
cancelAtPeriodEnd: boolean;
|
|
229
|
+
|
|
230
|
+
checkoutExpiresAt: string | null;
|
|
231
|
+
|
|
232
|
+
checkoutUrl: string | null;
|
|
233
|
+
|
|
234
|
+
createdAt: string;
|
|
235
|
+
|
|
236
|
+
currentPeriodEnd: string | null;
|
|
237
|
+
|
|
238
|
+
domainId: string | null;
|
|
239
|
+
|
|
240
|
+
inboundMessages: Data.InboundMessages;
|
|
241
|
+
|
|
242
|
+
label: string | null;
|
|
243
|
+
|
|
244
|
+
status:
|
|
245
|
+
| 'provisioning'
|
|
246
|
+
| 'awaiting_payment'
|
|
247
|
+
| 'active'
|
|
248
|
+
| 'cancel_scheduled'
|
|
249
|
+
| 'archived'
|
|
250
|
+
| 'billing_error';
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export namespace Data {
|
|
254
|
+
export interface InboundMessages {
|
|
255
|
+
exhausted: boolean;
|
|
256
|
+
|
|
257
|
+
included: number;
|
|
258
|
+
|
|
259
|
+
resetsAt: string | null;
|
|
260
|
+
|
|
261
|
+
used: number;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
export interface MailboxUpdateResponse {
|
|
267
|
+
data: MailboxUpdateResponse.Data;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export namespace MailboxUpdateResponse {
|
|
271
|
+
export interface Data {
|
|
272
|
+
id: string;
|
|
273
|
+
|
|
274
|
+
address: string | null;
|
|
275
|
+
|
|
276
|
+
billingMode: 'rent' | 'included' | 'domain';
|
|
277
|
+
|
|
278
|
+
cancelAtPeriodEnd: boolean;
|
|
279
|
+
|
|
280
|
+
checkoutExpiresAt: string | null;
|
|
281
|
+
|
|
282
|
+
checkoutUrl: string | null;
|
|
283
|
+
|
|
284
|
+
createdAt: string;
|
|
285
|
+
|
|
286
|
+
currentPeriodEnd: string | null;
|
|
287
|
+
|
|
288
|
+
domainId: string | null;
|
|
289
|
+
|
|
290
|
+
inboundMessages: Data.InboundMessages;
|
|
291
|
+
|
|
292
|
+
label: string | null;
|
|
293
|
+
|
|
294
|
+
status:
|
|
295
|
+
| 'provisioning'
|
|
296
|
+
| 'awaiting_payment'
|
|
297
|
+
| 'active'
|
|
298
|
+
| 'cancel_scheduled'
|
|
299
|
+
| 'archived'
|
|
300
|
+
| 'billing_error';
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
export namespace Data {
|
|
304
|
+
export interface InboundMessages {
|
|
305
|
+
exhausted: boolean;
|
|
306
|
+
|
|
307
|
+
included: number;
|
|
308
|
+
|
|
309
|
+
resetsAt: string | null;
|
|
310
|
+
|
|
311
|
+
used: number;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
export interface MailboxListResponse {
|
|
317
|
+
items: Array<MailboxListResponse.Item>;
|
|
318
|
+
|
|
319
|
+
pagination: Shared.Pagination;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
export namespace MailboxListResponse {
|
|
323
|
+
export interface Item {
|
|
324
|
+
id: string;
|
|
325
|
+
|
|
326
|
+
address: string | null;
|
|
327
|
+
|
|
328
|
+
billingMode: 'rent' | 'included' | 'domain';
|
|
329
|
+
|
|
330
|
+
cancelAtPeriodEnd: boolean;
|
|
331
|
+
|
|
332
|
+
checkoutExpiresAt: string | null;
|
|
333
|
+
|
|
334
|
+
checkoutUrl: string | null;
|
|
335
|
+
|
|
336
|
+
createdAt: string;
|
|
337
|
+
|
|
338
|
+
currentPeriodEnd: string | null;
|
|
339
|
+
|
|
340
|
+
domainId: string | null;
|
|
341
|
+
|
|
342
|
+
inboundMessages: Item.InboundMessages;
|
|
343
|
+
|
|
344
|
+
label: string | null;
|
|
345
|
+
|
|
346
|
+
status:
|
|
347
|
+
| 'provisioning'
|
|
348
|
+
| 'awaiting_payment'
|
|
349
|
+
| 'active'
|
|
350
|
+
| 'cancel_scheduled'
|
|
351
|
+
| 'archived'
|
|
352
|
+
| 'billing_error';
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
export namespace Item {
|
|
356
|
+
export interface InboundMessages {
|
|
357
|
+
exhausted: boolean;
|
|
358
|
+
|
|
359
|
+
included: number;
|
|
360
|
+
|
|
361
|
+
resetsAt: string | null;
|
|
362
|
+
|
|
363
|
+
used: number;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
export interface MailboxDeleteResponse {
|
|
369
|
+
data: MailboxDeleteResponse.Data;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
export namespace MailboxDeleteResponse {
|
|
373
|
+
export interface Data {
|
|
374
|
+
id: string;
|
|
375
|
+
|
|
376
|
+
address: string | null;
|
|
377
|
+
|
|
378
|
+
billingMode: 'rent' | 'included' | 'domain';
|
|
379
|
+
|
|
380
|
+
cancelAtPeriodEnd: boolean;
|
|
381
|
+
|
|
382
|
+
checkoutExpiresAt: string | null;
|
|
383
|
+
|
|
384
|
+
checkoutUrl: string | null;
|
|
385
|
+
|
|
386
|
+
createdAt: string;
|
|
387
|
+
|
|
388
|
+
currentPeriodEnd: string | null;
|
|
389
|
+
|
|
390
|
+
domainId: string | null;
|
|
391
|
+
|
|
392
|
+
inboundMessages: Data.InboundMessages;
|
|
393
|
+
|
|
394
|
+
label: string | null;
|
|
395
|
+
|
|
396
|
+
status:
|
|
397
|
+
| 'provisioning'
|
|
398
|
+
| 'awaiting_payment'
|
|
399
|
+
| 'active'
|
|
400
|
+
| 'cancel_scheduled'
|
|
401
|
+
| 'archived'
|
|
402
|
+
| 'billing_error';
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
export namespace Data {
|
|
406
|
+
export interface InboundMessages {
|
|
407
|
+
exhausted: boolean;
|
|
408
|
+
|
|
409
|
+
included: number;
|
|
410
|
+
|
|
411
|
+
resetsAt: string | null;
|
|
412
|
+
|
|
413
|
+
used: number;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
export interface MailboxCapacityResponse {
|
|
419
|
+
data: MailboxCapacityResponse.Data;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
export namespace MailboxCapacityResponse {
|
|
423
|
+
export interface Data {
|
|
424
|
+
included: number;
|
|
425
|
+
|
|
426
|
+
includedRemaining: number;
|
|
427
|
+
|
|
428
|
+
remaining: number;
|
|
429
|
+
|
|
430
|
+
status: 'available' | 'exhausted' | 'not_included';
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
export interface MailboxOtpResponse {
|
|
435
|
+
data: MailboxOtpResponse.Data;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
export namespace MailboxOtpResponse {
|
|
439
|
+
export interface Data {
|
|
440
|
+
/**
|
|
441
|
+
* OTP code as text to preserve leading zeros.
|
|
442
|
+
*/
|
|
443
|
+
code: string;
|
|
444
|
+
|
|
445
|
+
confidence: 'high' | 'medium' | 'low';
|
|
446
|
+
|
|
447
|
+
messageId: string;
|
|
448
|
+
|
|
449
|
+
receivedAt: string;
|
|
450
|
+
|
|
451
|
+
sender: string | null;
|
|
452
|
+
|
|
453
|
+
subject: string | null;
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
export interface MailboxRestartResponse {
|
|
458
|
+
data: MailboxRestartResponse.Data;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
export namespace MailboxRestartResponse {
|
|
462
|
+
export interface Data {
|
|
463
|
+
id: string;
|
|
464
|
+
|
|
465
|
+
address: string | null;
|
|
466
|
+
|
|
467
|
+
billingMode: 'rent' | 'included' | 'domain';
|
|
468
|
+
|
|
469
|
+
cancelAtPeriodEnd: boolean;
|
|
470
|
+
|
|
471
|
+
checkoutExpiresAt: string | null;
|
|
472
|
+
|
|
473
|
+
checkoutUrl: string | null;
|
|
474
|
+
|
|
475
|
+
createdAt: string;
|
|
476
|
+
|
|
477
|
+
currentPeriodEnd: string | null;
|
|
478
|
+
|
|
479
|
+
domainId: string | null;
|
|
480
|
+
|
|
481
|
+
inboundMessages: Data.InboundMessages;
|
|
482
|
+
|
|
483
|
+
label: string | null;
|
|
484
|
+
|
|
485
|
+
status:
|
|
486
|
+
| 'provisioning'
|
|
487
|
+
| 'awaiting_payment'
|
|
488
|
+
| 'active'
|
|
489
|
+
| 'cancel_scheduled'
|
|
490
|
+
| 'archived'
|
|
491
|
+
| 'billing_error';
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
export namespace Data {
|
|
495
|
+
export interface InboundMessages {
|
|
496
|
+
exhausted: boolean;
|
|
497
|
+
|
|
498
|
+
included: number;
|
|
499
|
+
|
|
500
|
+
resetsAt: string | null;
|
|
501
|
+
|
|
502
|
+
used: number;
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
export interface MailboxUncancelResponse {
|
|
508
|
+
data: MailboxUncancelResponse.Data;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
export namespace MailboxUncancelResponse {
|
|
512
|
+
export interface Data {
|
|
513
|
+
id: string;
|
|
514
|
+
|
|
515
|
+
address: string | null;
|
|
516
|
+
|
|
517
|
+
billingMode: 'rent' | 'included' | 'domain';
|
|
518
|
+
|
|
519
|
+
cancelAtPeriodEnd: boolean;
|
|
520
|
+
|
|
521
|
+
checkoutExpiresAt: string | null;
|
|
522
|
+
|
|
523
|
+
checkoutUrl: string | null;
|
|
524
|
+
|
|
525
|
+
createdAt: string;
|
|
526
|
+
|
|
527
|
+
currentPeriodEnd: string | null;
|
|
528
|
+
|
|
529
|
+
domainId: string | null;
|
|
530
|
+
|
|
531
|
+
inboundMessages: Data.InboundMessages;
|
|
532
|
+
|
|
533
|
+
label: string | null;
|
|
534
|
+
|
|
535
|
+
status:
|
|
536
|
+
| 'provisioning'
|
|
537
|
+
| 'awaiting_payment'
|
|
538
|
+
| 'active'
|
|
539
|
+
| 'cancel_scheduled'
|
|
540
|
+
| 'archived'
|
|
541
|
+
| 'billing_error';
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
export namespace Data {
|
|
545
|
+
export interface InboundMessages {
|
|
546
|
+
exhausted: boolean;
|
|
547
|
+
|
|
548
|
+
included: number;
|
|
549
|
+
|
|
550
|
+
resetsAt: string | null;
|
|
551
|
+
|
|
552
|
+
used: number;
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
export interface MailboxCreateParams {
|
|
558
|
+
clientRequestId: string;
|
|
559
|
+
|
|
560
|
+
/**
|
|
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.
|
|
570
|
+
*/
|
|
571
|
+
domainId?: string;
|
|
572
|
+
|
|
573
|
+
label?: string;
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* Optional mailbox name before the "@". Omit to generate a random address.
|
|
577
|
+
*/
|
|
578
|
+
localPart?: string;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
export interface MailboxUpdateParams {
|
|
582
|
+
label: string | null;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
export interface MailboxListParams {
|
|
586
|
+
page?: number;
|
|
587
|
+
|
|
588
|
+
pageSize?: number;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
export interface MailboxOtpParams {
|
|
592
|
+
after?: string;
|
|
593
|
+
|
|
594
|
+
maxLength?: number;
|
|
595
|
+
|
|
596
|
+
minLength?: number;
|
|
597
|
+
|
|
598
|
+
sender?: string;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
export interface MailboxRestartParams {
|
|
602
|
+
/**
|
|
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.
|
|
606
|
+
*/
|
|
607
|
+
billingPreference?: 'included' | 'included_only' | 'rent';
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
Mailboxes.Messages = Messages;
|
|
611
|
+
|
|
612
|
+
export declare namespace Mailboxes {
|
|
613
|
+
export {
|
|
614
|
+
type MailboxCreateResponse as MailboxCreateResponse,
|
|
615
|
+
type MailboxRetrieveResponse as MailboxRetrieveResponse,
|
|
616
|
+
type MailboxUpdateResponse as MailboxUpdateResponse,
|
|
617
|
+
type MailboxListResponse as MailboxListResponse,
|
|
618
|
+
type MailboxDeleteResponse as MailboxDeleteResponse,
|
|
619
|
+
type MailboxCapacityResponse as MailboxCapacityResponse,
|
|
620
|
+
type MailboxOtpResponse as MailboxOtpResponse,
|
|
621
|
+
type MailboxRestartResponse as MailboxRestartResponse,
|
|
622
|
+
type MailboxUncancelResponse as MailboxUncancelResponse,
|
|
623
|
+
type MailboxCreateParams as MailboxCreateParams,
|
|
624
|
+
type MailboxUpdateParams as MailboxUpdateParams,
|
|
625
|
+
type MailboxListParams as MailboxListParams,
|
|
626
|
+
type MailboxOtpParams as MailboxOtpParams,
|
|
627
|
+
type MailboxRestartParams as MailboxRestartParams,
|
|
628
|
+
};
|
|
629
|
+
|
|
630
|
+
export {
|
|
631
|
+
Messages as Messages,
|
|
632
|
+
type MessageRetrieveResponse as MessageRetrieveResponse,
|
|
633
|
+
type MessageListResponse as MessageListResponse,
|
|
634
|
+
type MessageRetrieveParams as MessageRetrieveParams,
|
|
635
|
+
type MessageListParams as MessageListParams,
|
|
636
|
+
};
|
|
637
|
+
}
|