@mobilerun/sdk 5.6.0 → 6.0.1
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 +33 -0
- package/README.md +0 -9
- package/client.d.mts +8 -26
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -26
- package/client.d.ts.map +1 -1
- package/client.js +0 -18
- package/client.js.map +1 -1
- package/client.mjs +0 -18
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +30 -20
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +30 -20
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +20 -10
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +20 -10
- package/resources/apps.mjs.map +1 -1
- package/resources/assistant/conversations.d.mts +19 -0
- package/resources/assistant/conversations.d.mts.map +1 -1
- package/resources/assistant/conversations.d.ts +19 -0
- package/resources/assistant/conversations.d.ts.map +1 -1
- package/resources/connect/proxies.d.mts +8 -6
- package/resources/connect/proxies.d.mts.map +1 -1
- package/resources/connect/proxies.d.ts +8 -6
- package/resources/connect/proxies.d.ts.map +1 -1
- package/resources/connect/proxies.js +6 -4
- package/resources/connect/proxies.js.map +1 -1
- package/resources/connect/proxies.mjs +6 -4
- package/resources/connect/proxies.mjs.map +1 -1
- package/resources/connect/users.d.mts +4 -4
- package/resources/connect/users.d.ts +4 -4
- package/resources/connect/users.js +2 -2
- package/resources/connect/users.mjs +2 -2
- package/resources/devices/actions.d.mts +25 -5
- package/resources/devices/actions.d.mts.map +1 -1
- package/resources/devices/actions.d.ts +25 -5
- package/resources/devices/actions.d.ts.map +1 -1
- package/resources/devices/actions.js +5 -3
- package/resources/devices/actions.js.map +1 -1
- package/resources/devices/actions.mjs +5 -3
- package/resources/devices/actions.mjs.map +1 -1
- package/resources/devices/apps.d.mts +25 -10
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +25 -10
- package/resources/devices/apps.d.ts.map +1 -1
- package/resources/devices/apps.js +12 -10
- package/resources/devices/apps.js.map +1 -1
- package/resources/devices/apps.mjs +12 -10
- package/resources/devices/apps.mjs.map +1 -1
- package/resources/devices/devices.d.mts +60 -22
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +60 -22
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +25 -16
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +25 -16
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/index.d.mts +3 -3
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +3 -3
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +3 -3
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +1 -1
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/keyboard.d.mts +8 -2
- package/resources/devices/keyboard.d.mts.map +1 -1
- package/resources/devices/keyboard.d.ts +8 -2
- package/resources/devices/keyboard.d.ts.map +1 -1
- package/resources/devices/recordings.d.mts +28 -7
- package/resources/devices/recordings.d.mts.map +1 -1
- package/resources/devices/recordings.d.ts +28 -7
- package/resources/devices/recordings.d.ts.map +1 -1
- package/resources/devices/recordings.js +9 -0
- package/resources/devices/recordings.js.map +1 -1
- package/resources/devices/recordings.mjs +9 -0
- package/resources/devices/recordings.mjs.map +1 -1
- package/resources/devices/screenshots.d.mts +72 -0
- package/resources/devices/screenshots.d.mts.map +1 -0
- package/resources/devices/screenshots.d.ts +72 -0
- package/resources/devices/screenshots.d.ts.map +1 -0
- package/resources/devices/screenshots.js +57 -0
- package/resources/devices/screenshots.js.map +1 -0
- package/resources/devices/screenshots.mjs +53 -0
- package/resources/devices/screenshots.mjs.map +1 -0
- package/resources/devices/state.d.mts +11 -2
- package/resources/devices/state.d.mts.map +1 -1
- package/resources/devices/state.d.ts +11 -2
- package/resources/devices/state.d.ts.map +1 -1
- package/resources/devices/state.js +5 -2
- package/resources/devices/state.js.map +1 -1
- package/resources/devices/state.mjs +5 -2
- package/resources/devices/state.mjs.map +1 -1
- package/resources/files.d.mts +3 -3
- package/resources/files.d.ts +3 -3
- package/resources/files.js +3 -3
- package/resources/files.mjs +3 -3
- package/resources/index.d.mts +4 -9
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -9
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -11
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -5
- package/resources/index.mjs.map +1 -1
- package/resources/mailboxes/connections.d.mts +4 -10
- package/resources/mailboxes/connections.d.mts.map +1 -1
- package/resources/mailboxes/connections.d.ts +4 -10
- package/resources/mailboxes/connections.d.ts.map +1 -1
- package/resources/mailboxes/connections.js +3 -4
- package/resources/mailboxes/connections.js.map +1 -1
- package/resources/mailboxes/connections.mjs +3 -4
- package/resources/mailboxes/connections.mjs.map +1 -1
- package/resources/mailboxes/mailboxes.d.mts +5 -4
- package/resources/mailboxes/mailboxes.d.mts.map +1 -1
- package/resources/mailboxes/mailboxes.d.ts +5 -4
- package/resources/mailboxes/mailboxes.d.ts.map +1 -1
- package/resources/mailboxes/mailboxes.js +5 -4
- package/resources/mailboxes/mailboxes.js.map +1 -1
- package/resources/mailboxes/mailboxes.mjs +5 -4
- package/resources/mailboxes/mailboxes.mjs.map +1 -1
- package/resources/messages/messages.d.mts +12 -0
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +12 -0
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/models.d.mts +12 -23
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +12 -23
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +3 -4
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +3 -4
- package/resources/models.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/messages.d.mts +23 -14
- package/resources/numbers/messages.d.mts.map +1 -1
- package/resources/numbers/messages.d.ts +23 -14
- package/resources/numbers/messages.d.ts.map +1 -1
- package/resources/numbers/messages.js +9 -7
- package/resources/numbers/messages.js.map +1 -1
- package/resources/numbers/messages.mjs +9 -7
- package/resources/numbers/messages.mjs.map +1 -1
- package/resources/numbers/numbers.d.mts +136 -32
- package/resources/numbers/numbers.d.mts.map +1 -1
- package/resources/numbers/numbers.d.ts +136 -32
- package/resources/numbers/numbers.d.ts.map +1 -1
- package/resources/numbers/numbers.js +1 -12
- package/resources/numbers/numbers.js.map +1 -1
- package/resources/numbers/numbers.mjs +1 -12
- package/resources/numbers/numbers.mjs.map +1 -1
- package/resources/proxies.d.mts +1 -87
- package/resources/proxies.d.mts.map +1 -1
- package/resources/proxies.d.ts +1 -87
- package/resources/proxies.d.ts.map +1 -1
- package/resources/proxies.js +0 -6
- package/resources/proxies.js.map +1 -1
- package/resources/proxies.mjs +0 -6
- package/resources/proxies.mjs.map +1 -1
- package/resources/tasks/tasks.d.mts +42 -138
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +42 -138
- 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/index.d.mts +1 -1
- package/resources/webhooks/index.d.mts.map +1 -1
- package/resources/webhooks/index.d.ts +1 -1
- package/resources/webhooks/index.d.ts.map +1 -1
- package/resources/webhooks/index.js.map +1 -1
- package/resources/webhooks/index.mjs.map +1 -1
- package/resources/webhooks/webhooks.d.mts +7 -43
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +7 -43
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js +6 -9
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +6 -9
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/resources/workflows/events.d.mts +6 -2
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +6 -2
- package/resources/workflows/events.d.ts.map +1 -1
- package/resources/workflows/executions/executions.d.mts +37 -31
- package/resources/workflows/executions/executions.d.mts.map +1 -1
- package/resources/workflows/executions/executions.d.ts +37 -31
- package/resources/workflows/executions/executions.d.ts.map +1 -1
- package/resources/workflows/executions/executions.js +2 -2
- package/resources/workflows/executions/executions.js.map +1 -1
- package/resources/workflows/executions/executions.mjs +2 -2
- package/resources/workflows/executions/executions.mjs.map +1 -1
- package/resources/workflows/flows/flows.d.mts +90 -34
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +90 -34
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +15 -14
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +15 -14
- 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 +10 -13
- package/resources/workflows/triggers.d.mts.map +1 -1
- package/resources/workflows/triggers.d.ts +10 -13
- package/resources/workflows/triggers.d.ts.map +1 -1
- package/resources/workflows/triggers.js +6 -8
- package/resources/workflows/triggers.js.map +1 -1
- package/resources/workflows/triggers.mjs +6 -8
- package/resources/workflows/triggers.mjs.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 +2 -106
- package/src/resources/apps.ts +30 -20
- package/src/resources/assistant/conversations.ts +26 -0
- package/src/resources/connect/proxies.ts +8 -6
- package/src/resources/connect/users.ts +4 -4
- package/src/resources/devices/actions.ts +28 -5
- package/src/resources/devices/apps.ts +30 -10
- package/src/resources/devices/devices.ts +92 -37
- package/src/resources/devices/index.ts +12 -9
- package/src/resources/devices/keyboard.ts +9 -2
- package/src/resources/devices/recordings.ts +44 -6
- package/src/resources/devices/screenshots.ts +140 -0
- package/src/resources/devices/state.ts +12 -2
- package/src/resources/files.ts +3 -3
- package/src/resources/index.ts +1 -44
- package/src/resources/mailboxes/connections.ts +4 -11
- package/src/resources/mailboxes/mailboxes.ts +5 -4
- package/src/resources/messages/messages.ts +16 -0
- package/src/resources/models.ts +16 -23
- package/src/resources/numbers/index.ts +0 -1
- package/src/resources/numbers/messages.ts +27 -15
- package/src/resources/numbers/numbers.ts +155 -40
- package/src/resources/proxies.ts +0 -110
- package/src/resources/tasks/tasks.ts +46 -138
- package/src/resources/webhooks/index.ts +0 -1
- package/src/resources/webhooks/webhooks.ts +6 -60
- package/src/resources/workflows/events.ts +7 -2
- package/src/resources/workflows/executions/executions.ts +39 -31
- package/src/resources/workflows/flows/flows.ts +104 -34
- package/src/resources/workflows/flows/index.ts +1 -0
- package/src/resources/workflows/index.ts +1 -0
- package/src/resources/workflows/triggers.ts +10 -13
- 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/app-events/app-events.d.mts +0 -81
- package/resources/app-events/app-events.d.mts.map +0 -1
- package/resources/app-events/app-events.d.ts +0 -81
- package/resources/app-events/app-events.d.ts.map +0 -1
- package/resources/app-events/app-events.js +0 -33
- package/resources/app-events/app-events.js.map +0 -1
- package/resources/app-events/app-events.mjs +0 -28
- package/resources/app-events/app-events.mjs.map +0 -1
- package/resources/app-events/catalog.d.mts +0 -64
- package/resources/app-events/catalog.d.mts.map +0 -1
- package/resources/app-events/catalog.d.ts +0 -64
- package/resources/app-events/catalog.d.ts.map +0 -1
- package/resources/app-events/catalog.js +0 -25
- package/resources/app-events/catalog.js.map +0 -1
- package/resources/app-events/catalog.mjs +0 -21
- package/resources/app-events/catalog.mjs.map +0 -1
- package/resources/app-events/index.d.mts +0 -3
- package/resources/app-events/index.d.mts.map +0 -1
- package/resources/app-events/index.d.ts +0 -3
- package/resources/app-events/index.d.ts.map +0 -1
- package/resources/app-events/index.js +0 -9
- package/resources/app-events/index.js.map +0 -1
- package/resources/app-events/index.mjs +0 -4
- package/resources/app-events/index.mjs.map +0 -1
- package/resources/app-events.d.mts +0 -2
- package/resources/app-events.d.mts.map +0 -1
- package/resources/app-events.d.ts +0 -2
- package/resources/app-events.d.ts.map +0 -1
- package/resources/app-events.js +0 -6
- package/resources/app-events.js.map +0 -1
- package/resources/app-events.mjs +0 -3
- package/resources/app-events.mjs.map +0 -1
- package/resources/carriers.d.mts +0 -331
- package/resources/carriers.d.mts.map +0 -1
- package/resources/carriers.d.ts +0 -331
- package/resources/carriers.d.ts.map +0 -1
- package/resources/carriers.js +0 -46
- package/resources/carriers.js.map +0 -1
- package/resources/carriers.mjs +0 -42
- package/resources/carriers.mjs.map +0 -1
- package/resources/devices/media-sessions.d.mts +0 -96
- package/resources/devices/media-sessions.d.mts.map +0 -1
- package/resources/devices/media-sessions.d.ts +0 -96
- package/resources/devices/media-sessions.d.ts.map +0 -1
- package/resources/devices/media-sessions.js +0 -50
- package/resources/devices/media-sessions.js.map +0 -1
- package/resources/devices/media-sessions.mjs +0 -46
- package/resources/devices/media-sessions.mjs.map +0 -1
- package/resources/notifications.d.mts +0 -112
- package/resources/notifications.d.mts.map +0 -1
- package/resources/notifications.d.ts +0 -112
- package/resources/notifications.d.ts.map +0 -1
- package/resources/notifications.js +0 -72
- package/resources/notifications.js.map +0 -1
- package/resources/notifications.mjs +0 -68
- package/resources/notifications.mjs.map +0 -1
- package/resources/profiles.d.mts +0 -147
- package/resources/profiles.d.mts.map +0 -1
- package/resources/profiles.d.ts +0 -147
- package/resources/profiles.d.ts.map +0 -1
- package/resources/profiles.js +0 -40
- package/resources/profiles.js.map +0 -1
- package/resources/profiles.mjs +0 -36
- package/resources/profiles.mjs.map +0 -1
- package/resources/store/apps.d.mts +0 -140
- package/resources/store/apps.d.mts.map +0 -1
- package/resources/store/apps.d.ts +0 -140
- package/resources/store/apps.d.ts.map +0 -1
- package/resources/store/apps.js +0 -31
- package/resources/store/apps.js.map +0 -1
- package/resources/store/apps.mjs +0 -27
- package/resources/store/apps.mjs.map +0 -1
- package/resources/store/index.d.mts +0 -3
- package/resources/store/index.d.mts.map +0 -1
- package/resources/store/index.d.ts +0 -3
- package/resources/store/index.d.ts.map +0 -1
- package/resources/store/index.js +0 -9
- package/resources/store/index.js.map +0 -1
- package/resources/store/index.mjs +0 -4
- package/resources/store/index.mjs.map +0 -1
- package/resources/store/store.d.mts +0 -20
- package/resources/store/store.d.mts.map +0 -1
- package/resources/store/store.d.ts +0 -20
- package/resources/store/store.d.ts.map +0 -1
- package/resources/store/store.js +0 -23
- package/resources/store/store.js.map +0 -1
- package/resources/store/store.mjs +0 -18
- package/resources/store/store.mjs.map +0 -1
- package/resources/store.d.mts +0 -2
- package/resources/store.d.mts.map +0 -1
- package/resources/store.d.ts +0 -2
- package/resources/store.d.ts.map +0 -1
- package/resources/store.js +0 -6
- package/resources/store.js.map +0 -1
- package/resources/store.mjs +0 -3
- package/resources/store.mjs.map +0 -1
- package/src/resources/app-events/app-events.ts +0 -133
- package/src/resources/app-events/catalog.ts +0 -100
- package/src/resources/app-events/index.ts +0 -9
- package/src/resources/app-events.ts +0 -3
- package/src/resources/carriers.ts +0 -508
- package/src/resources/devices/media-sessions.ts +0 -168
- package/src/resources/notifications.ts +0 -155
- package/src/resources/profiles.ts +0 -232
- package/src/resources/store/apps.ts +0 -993
- package/src/resources/store/index.ts +0 -10
- package/src/resources/store/store.ts +0 -36
- package/src/resources/store.ts +0 -3
package/src/resources/files.ts
CHANGED
|
@@ -37,9 +37,9 @@ export class Files extends APIResource {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
|
-
* Soft-cancels an in-flight upload before confirm. Only acts on `pending`
|
|
41
|
-
* refuses to touch `ready`
|
|
42
|
-
* `{ cancelled: false }` if the
|
|
40
|
+
* Soft-cancels an in-flight upload before confirm. Only acts on `pending` uploads
|
|
41
|
+
* — refuses to touch `ready` files, so confirmed files are never removed.
|
|
42
|
+
* Idempotent: `{ cancelled: false }` if the file exists but is no longer pending.
|
|
43
43
|
*/
|
|
44
44
|
cancelPending(fileID: string, options?: RequestOptions): APIPromise<FileCancelPendingResponse> {
|
|
45
45
|
return this._client.delete(path`/agents/files/${fileID}/pending`, options);
|
package/src/resources/index.ts
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export * from './shared';
|
|
4
|
-
export {
|
|
5
|
-
AppEvents,
|
|
6
|
-
type AppEventRetrieveResponse,
|
|
7
|
-
type AppEventListResponse,
|
|
8
|
-
type AppEventListParams,
|
|
9
|
-
} from './app-events/app-events';
|
|
10
4
|
export {
|
|
11
5
|
Apps,
|
|
12
6
|
type AppRetrieveResponse,
|
|
@@ -21,19 +15,6 @@ export {
|
|
|
21
15
|
type AppCreateSignedUploadURLParams,
|
|
22
16
|
} from './apps';
|
|
23
17
|
export { Assistant } from './assistant/assistant';
|
|
24
|
-
export {
|
|
25
|
-
Carriers,
|
|
26
|
-
type CarrierCreateResponse,
|
|
27
|
-
type CarrierRetrieveResponse,
|
|
28
|
-
type CarrierUpdateResponse,
|
|
29
|
-
type CarrierListResponse,
|
|
30
|
-
type CarrierDeleteResponse,
|
|
31
|
-
type CarrierLookupResponse,
|
|
32
|
-
type CarrierCreateParams,
|
|
33
|
-
type CarrierUpdateParams,
|
|
34
|
-
type CarrierListParams,
|
|
35
|
-
type CarrierLookupParams,
|
|
36
|
-
} from './carriers';
|
|
37
18
|
export { Connect } from './connect/connect';
|
|
38
19
|
export {
|
|
39
20
|
Credentials,
|
|
@@ -54,6 +35,7 @@ export {
|
|
|
54
35
|
type DeviceCreateParams,
|
|
55
36
|
type DeviceListParams,
|
|
56
37
|
type DeviceFingerprintParams,
|
|
38
|
+
type DeviceResetParams,
|
|
57
39
|
type DeviceSetNameParams,
|
|
58
40
|
type DeviceSummaryParams,
|
|
59
41
|
type DeviceTerminateParams,
|
|
@@ -95,15 +77,6 @@ export {
|
|
|
95
77
|
type MessageListParams,
|
|
96
78
|
} from './messages/messages';
|
|
97
79
|
export { Models, type ModelListResponse } from './models';
|
|
98
|
-
export {
|
|
99
|
-
Notifications,
|
|
100
|
-
type NotificationApplyPreferencesPresetResponse,
|
|
101
|
-
type NotificationCatalogResponse,
|
|
102
|
-
type NotificationGetPreferencesResponse,
|
|
103
|
-
type NotificationUpdatePreferencesResponse,
|
|
104
|
-
type NotificationApplyPreferencesPresetParams,
|
|
105
|
-
type NotificationUpdatePreferencesParams,
|
|
106
|
-
} from './notifications';
|
|
107
80
|
export {
|
|
108
81
|
Numbers,
|
|
109
82
|
type NumberCreateResponse,
|
|
@@ -113,23 +86,11 @@ export {
|
|
|
113
86
|
type NumberDeleteResponse,
|
|
114
87
|
type NumberCapacityResponse,
|
|
115
88
|
type NumberCountriesResponse,
|
|
116
|
-
type NumberPurposesResponse,
|
|
117
89
|
type NumberCreateParams,
|
|
118
90
|
type NumberUpdateParams,
|
|
119
91
|
type NumberListParams,
|
|
120
92
|
type NumberCapacityParams,
|
|
121
93
|
} from './numbers/numbers';
|
|
122
|
-
export {
|
|
123
|
-
Profiles,
|
|
124
|
-
type ProfileCreateResponse,
|
|
125
|
-
type ProfileRetrieveResponse,
|
|
126
|
-
type ProfileUpdateResponse,
|
|
127
|
-
type ProfileListResponse,
|
|
128
|
-
type ProfileDeleteResponse,
|
|
129
|
-
type ProfileCreateParams,
|
|
130
|
-
type ProfileUpdateParams,
|
|
131
|
-
type ProfileListParams,
|
|
132
|
-
} from './profiles';
|
|
133
94
|
export {
|
|
134
95
|
Proxies,
|
|
135
96
|
type ProxyCreateResponse,
|
|
@@ -137,13 +98,10 @@ export {
|
|
|
137
98
|
type ProxyUpdateResponse,
|
|
138
99
|
type ProxyListResponse,
|
|
139
100
|
type ProxyDeleteResponse,
|
|
140
|
-
type ProxyLookupResponse,
|
|
141
101
|
type ProxyCreateParams,
|
|
142
102
|
type ProxyUpdateParams,
|
|
143
103
|
type ProxyListParams,
|
|
144
|
-
type ProxyLookupParams,
|
|
145
104
|
} from './proxies';
|
|
146
|
-
export { Store, type StoreCategoriesResponse } from './store/store';
|
|
147
105
|
export {
|
|
148
106
|
Tasks,
|
|
149
107
|
type TaskRetrieveResponse,
|
|
@@ -165,7 +123,6 @@ export {
|
|
|
165
123
|
type WebhookRetrieveResponse,
|
|
166
124
|
type WebhookUpdateResponse,
|
|
167
125
|
type WebhookListResponse,
|
|
168
|
-
type WebhookEventTypesResponse,
|
|
169
126
|
type WebhookRotateSecretResponse,
|
|
170
127
|
type WebhookTestDeliveryResponse,
|
|
171
128
|
type WebhookCreateParams,
|
|
@@ -7,10 +7,9 @@ import { path } from '../../internal/utils/path';
|
|
|
7
7
|
|
|
8
8
|
export class Connections extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
* Links the caller’s Gmail account
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* active, redirectUrl is null and the mailbox is usable immediately.
|
|
10
|
+
* Links the caller’s Gmail account. Replaying the same Idempotency-Key returns the
|
|
11
|
+
* same mailbox. When Gmail is already active, redirectUrl is null and the mailbox
|
|
12
|
+
* is usable immediately.
|
|
14
13
|
*
|
|
15
14
|
* @example
|
|
16
15
|
* ```ts
|
|
@@ -69,16 +68,10 @@ export interface ConnectionCreateParams {
|
|
|
69
68
|
provider: 'gmail';
|
|
70
69
|
|
|
71
70
|
/**
|
|
72
|
-
* sha256 hex of the browser-held connect binding secret
|
|
73
|
-
* connect
|
|
71
|
+
* sha256 hex of the browser-held connect binding secret.
|
|
74
72
|
*/
|
|
75
73
|
bindingHash?: string;
|
|
76
74
|
|
|
77
|
-
/**
|
|
78
|
-
* @deprecated Use the Idempotency-Key header.
|
|
79
|
-
*/
|
|
80
|
-
clientRequestId?: string;
|
|
81
|
-
|
|
82
75
|
label?: string;
|
|
83
76
|
}
|
|
84
77
|
|
|
@@ -27,9 +27,9 @@ export class Mailboxes extends APIResource {
|
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* Creates a mailbox on the default domain or a connected custom domain. An
|
|
30
|
-
* optional `localPart` selects the address. Replaying the same Idempotency-Key
|
|
31
|
-
*
|
|
32
|
-
*
|
|
30
|
+
* optional `localPart` selects the address. Replaying the same Idempotency-Key and
|
|
31
|
+
* payload returns the original mailbox. Fresh requests and replays return 202 with
|
|
32
|
+
* the current mailbox state. Poll the mailbox when the response does not yet
|
|
33
33
|
* include a checkout URL.
|
|
34
34
|
*
|
|
35
35
|
* @example
|
|
@@ -121,7 +121,8 @@ export class Mailboxes extends APIResource {
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
/**
|
|
124
|
-
* Removes only this mailbox link. The
|
|
124
|
+
* Removes only this mailbox link. The Gmail connection used by your agents stays
|
|
125
|
+
* in place.
|
|
125
126
|
*
|
|
126
127
|
* @example
|
|
127
128
|
* ```ts
|
|
@@ -48,6 +48,8 @@ export namespace MessageRetrieveResponse {
|
|
|
48
48
|
|
|
49
49
|
body: string | null;
|
|
50
50
|
|
|
51
|
+
classification: Data.Classification | null;
|
|
52
|
+
|
|
51
53
|
createdAt: string;
|
|
52
54
|
|
|
53
55
|
deliveryStatus: string | null;
|
|
@@ -76,6 +78,12 @@ export namespace MessageRetrieveResponse {
|
|
|
76
78
|
| 'delivered'
|
|
77
79
|
| 'failed';
|
|
78
80
|
}
|
|
81
|
+
|
|
82
|
+
export namespace Data {
|
|
83
|
+
export interface Classification {
|
|
84
|
+
spam: boolean;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
79
87
|
}
|
|
80
88
|
|
|
81
89
|
export interface MessageListResponse {
|
|
@@ -90,6 +98,8 @@ export namespace MessageListResponse {
|
|
|
90
98
|
|
|
91
99
|
body: string | null;
|
|
92
100
|
|
|
101
|
+
classification: Item.Classification | null;
|
|
102
|
+
|
|
93
103
|
createdAt: string;
|
|
94
104
|
|
|
95
105
|
deliveryStatus: string | null;
|
|
@@ -118,6 +128,12 @@ export namespace MessageListResponse {
|
|
|
118
128
|
| 'delivered'
|
|
119
129
|
| 'failed';
|
|
120
130
|
}
|
|
131
|
+
|
|
132
|
+
export namespace Item {
|
|
133
|
+
export interface Classification {
|
|
134
|
+
spam: boolean;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
121
137
|
}
|
|
122
138
|
|
|
123
139
|
export interface MessageListParams {
|
package/src/resources/models.ts
CHANGED
|
@@ -4,12 +4,11 @@ import { APIResource } from '../core/resource';
|
|
|
4
4
|
import { APIPromise } from '../core/api-promise';
|
|
5
5
|
import { RequestOptions } from '../internal/request-options';
|
|
6
6
|
|
|
7
|
-
/**
|
|
8
|
-
* LLM Models
|
|
9
|
-
*/
|
|
10
7
|
export class Models extends APIResource {
|
|
11
8
|
/**
|
|
12
|
-
*
|
|
9
|
+
* Returns the available LLM models with their identifiers, providers, and optional
|
|
10
|
+
* display metadata. Requires only your normal API authentication. Token prices are
|
|
11
|
+
* not included.
|
|
13
12
|
*/
|
|
14
13
|
list(options?: RequestOptions): APIPromise<ModelListResponse> {
|
|
15
14
|
return this._client.get('/models', options);
|
|
@@ -17,38 +16,32 @@ export class Models extends APIResource {
|
|
|
17
16
|
}
|
|
18
17
|
|
|
19
18
|
export interface ModelListResponse {
|
|
20
|
-
/**
|
|
21
|
-
* Available models
|
|
22
|
-
*/
|
|
23
19
|
data: Array<ModelListResponse.Data>;
|
|
24
20
|
|
|
25
|
-
|
|
26
|
-
* Object type
|
|
27
|
-
*/
|
|
28
|
-
object?: string;
|
|
21
|
+
object: 'list';
|
|
29
22
|
}
|
|
30
23
|
|
|
31
24
|
export namespace ModelListResponse {
|
|
32
25
|
export interface Data {
|
|
33
|
-
/**
|
|
34
|
-
* Model identifier
|
|
35
|
-
*/
|
|
36
26
|
id: string;
|
|
37
27
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
28
|
+
created: number;
|
|
29
|
+
|
|
30
|
+
object: 'model';
|
|
31
|
+
|
|
41
32
|
owned_by: string;
|
|
42
33
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
34
|
+
group?: 'recommended' | 'fast' | 'more';
|
|
35
|
+
|
|
36
|
+
label?: string;
|
|
37
|
+
|
|
38
|
+
order?: number;
|
|
47
39
|
|
|
48
40
|
/**
|
|
49
|
-
*
|
|
41
|
+
* Model pickers in which this model is available. When omitted, the model is
|
|
42
|
+
* available in every picker.
|
|
50
43
|
*/
|
|
51
|
-
|
|
44
|
+
surfaces?: Array<'assistant' | 'tasks'>;
|
|
52
45
|
}
|
|
53
46
|
}
|
|
54
47
|
|
|
@@ -28,13 +28,15 @@ export class Messages extends APIResource {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* Queues an SMS from one of the caller's numbers that can send.
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
31
|
+
* Queues an SMS from one of the caller's numbers that can send. Replaying an
|
|
32
|
+
* Idempotency-Key with the same payload returns the original message, reusing it
|
|
33
|
+
* with a different payload returns 422. 409 capability_unavailable: this number
|
|
34
|
+
* cannot send right now. 422 invalid_recipient / unsupported_destination /
|
|
35
|
+
* body_too_long: the recipient or text does not fit the number. 429
|
|
36
|
+
* daily_limit_reached: the rolling 24 h limit for the account is used up; 429
|
|
37
|
+
* rate_limited: too many sends by the owner in a short window; 429
|
|
38
|
+
* number_rate_limited: too many outbound sends from this number in the configured
|
|
39
|
+
* window (all sends from this number count, including those made on your behalf).
|
|
38
40
|
* 403 send_disabled: self-service SMS send is switched off.
|
|
39
41
|
*
|
|
40
42
|
* @example
|
|
@@ -62,6 +64,8 @@ export namespace MessageListResponse {
|
|
|
62
64
|
|
|
63
65
|
body: string | null;
|
|
64
66
|
|
|
67
|
+
classification: Item.Classification | null;
|
|
68
|
+
|
|
65
69
|
createdAt: string;
|
|
66
70
|
|
|
67
71
|
deliveryStatus: string | null;
|
|
@@ -88,6 +92,12 @@ export namespace MessageListResponse {
|
|
|
88
92
|
| 'delivered'
|
|
89
93
|
| 'failed';
|
|
90
94
|
}
|
|
95
|
+
|
|
96
|
+
export namespace Item {
|
|
97
|
+
export interface Classification {
|
|
98
|
+
spam: boolean;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
91
101
|
}
|
|
92
102
|
|
|
93
103
|
export interface MessageSendResponse {
|
|
@@ -100,6 +110,8 @@ export namespace MessageSendResponse {
|
|
|
100
110
|
|
|
101
111
|
body: string | null;
|
|
102
112
|
|
|
113
|
+
classification: Data.Classification | null;
|
|
114
|
+
|
|
103
115
|
createdAt: string;
|
|
104
116
|
|
|
105
117
|
deliveryStatus: string | null;
|
|
@@ -126,6 +138,12 @@ export namespace MessageSendResponse {
|
|
|
126
138
|
| 'delivered'
|
|
127
139
|
| 'failed';
|
|
128
140
|
}
|
|
141
|
+
|
|
142
|
+
export namespace Data {
|
|
143
|
+
export interface Classification {
|
|
144
|
+
spam: boolean;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
129
147
|
}
|
|
130
148
|
|
|
131
149
|
export interface MessageListParams {
|
|
@@ -140,8 +158,8 @@ export interface MessageListParams {
|
|
|
140
158
|
|
|
141
159
|
export interface MessageSendParams {
|
|
142
160
|
/**
|
|
143
|
-
* SMS body text, up to 1600 characters (rejected with 400
|
|
144
|
-
*
|
|
161
|
+
* SMS body text, up to 1600 characters (longer bodies are rejected with 400). A
|
|
162
|
+
* number's own limit may be lower and is answered 422 body_too_long.
|
|
145
163
|
*/
|
|
146
164
|
body: string;
|
|
147
165
|
|
|
@@ -152,12 +170,6 @@ export interface MessageSendParams {
|
|
|
152
170
|
*/
|
|
153
171
|
to: string;
|
|
154
172
|
|
|
155
|
-
/**
|
|
156
|
-
* @deprecated Deprecated: use the Idempotency-Key header instead. Optional
|
|
157
|
-
* idempotency key. Replaying the same key and payload returns the original send.
|
|
158
|
-
*/
|
|
159
|
-
clientRequestId?: string;
|
|
160
|
-
|
|
161
173
|
/**
|
|
162
174
|
* Request a delivery report. Defaults to false.
|
|
163
175
|
*/
|