@mobilerun/sdk 5.4.0 → 5.6.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 +17 -0
- package/client.d.mts +10 -13
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -13
- package/client.d.ts.map +1 -1
- package/client.js +1 -3
- package/client.js.map +1 -1
- package/client.mjs +2 -4
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +23 -12
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +23 -12
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +8 -3
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +8 -3
- package/resources/apps.mjs.map +1 -1
- package/resources/assistant/conversations.d.mts +33 -21
- package/resources/assistant/conversations.d.mts.map +1 -1
- package/resources/assistant/conversations.d.ts +33 -21
- package/resources/assistant/conversations.d.ts.map +1 -1
- package/resources/assistant/conversations.js +16 -15
- package/resources/assistant/conversations.js.map +1 -1
- package/resources/assistant/conversations.mjs +16 -15
- package/resources/assistant/conversations.mjs.map +1 -1
- package/resources/connect/connect.d.mts +2 -2
- package/resources/connect/connect.d.mts.map +1 -1
- package/resources/connect/connect.d.ts +2 -2
- package/resources/connect/connect.d.ts.map +1 -1
- package/resources/connect/connect.js.map +1 -1
- package/resources/connect/connect.mjs.map +1 -1
- package/resources/connect/index.d.mts +1 -1
- package/resources/connect/index.d.mts.map +1 -1
- package/resources/connect/index.d.ts +1 -1
- package/resources/connect/index.d.ts.map +1 -1
- package/resources/connect/index.js.map +1 -1
- package/resources/connect/index.mjs.map +1 -1
- package/resources/connect/proxies.d.mts +118 -19
- package/resources/connect/proxies.d.mts.map +1 -1
- package/resources/connect/proxies.d.ts +118 -19
- package/resources/connect/proxies.d.ts.map +1 -1
- package/resources/connect/proxies.js +19 -0
- package/resources/connect/proxies.js.map +1 -1
- package/resources/connect/proxies.mjs +19 -0
- 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/browser.d.mts +9 -3
- package/resources/devices/browser.d.mts.map +1 -1
- package/resources/devices/browser.d.ts +9 -3
- package/resources/devices/browser.d.ts.map +1 -1
- package/resources/devices/browser.js +9 -3
- package/resources/devices/browser.js.map +1 -1
- package/resources/devices/browser.mjs +9 -3
- package/resources/devices/browser.mjs.map +1 -1
- package/resources/devices/devices.d.mts +81 -27
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +81 -27
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +24 -11
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +24 -11
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/index.d.mts +2 -1
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +2 -1
- 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 +13 -0
- package/resources/devices/recordings.d.mts.map +1 -1
- package/resources/devices/recordings.d.ts +13 -0
- package/resources/devices/recordings.d.ts.map +1 -1
- package/resources/devices/traffic-sessions.d.mts +163 -0
- package/resources/devices/traffic-sessions.d.mts.map +1 -0
- package/resources/devices/traffic-sessions.d.ts +163 -0
- package/resources/devices/traffic-sessions.d.ts.map +1 -0
- package/resources/devices/traffic-sessions.js +37 -0
- package/resources/devices/traffic-sessions.js.map +1 -0
- package/resources/devices/traffic-sessions.mjs +33 -0
- package/resources/devices/traffic-sessions.mjs.map +1 -0
- package/resources/files.d.mts +77 -19
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +77 -19
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +2 -10
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +2 -10
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts +5 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -6
- 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 +1 -2
- package/resources/index.mjs.map +1 -1
- package/resources/mailboxes/connections.d.mts +64 -0
- package/resources/mailboxes/connections.d.mts.map +1 -0
- package/resources/mailboxes/connections.d.ts +64 -0
- package/resources/mailboxes/connections.d.ts.map +1 -0
- package/resources/mailboxes/connections.js +42 -0
- package/resources/mailboxes/connections.js.map +1 -0
- package/resources/mailboxes/connections.mjs +38 -0
- package/resources/mailboxes/connections.mjs.map +1 -0
- package/resources/mailboxes/index.d.mts +2 -1
- package/resources/mailboxes/index.d.mts.map +1 -1
- package/resources/mailboxes/index.d.ts +2 -1
- package/resources/mailboxes/index.d.ts.map +1 -1
- package/resources/mailboxes/index.js +3 -1
- package/resources/mailboxes/index.js.map +1 -1
- package/resources/mailboxes/index.mjs +1 -0
- package/resources/mailboxes/index.mjs.map +1 -1
- package/resources/mailboxes/mailboxes.d.mts +107 -50
- package/resources/mailboxes/mailboxes.d.mts.map +1 -1
- package/resources/mailboxes/mailboxes.d.ts +107 -50
- package/resources/mailboxes/mailboxes.d.ts.map +1 -1
- package/resources/mailboxes/mailboxes.js +34 -24
- package/resources/mailboxes/mailboxes.js.map +1 -1
- package/resources/mailboxes/mailboxes.mjs +34 -24
- 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/index.d.mts +1 -1
- package/resources/messages/index.d.mts.map +1 -1
- package/resources/messages/index.d.ts +1 -1
- package/resources/messages/index.d.ts.map +1 -1
- package/resources/messages/index.js.map +1 -1
- package/resources/messages/index.mjs +1 -1
- package/resources/messages/index.mjs.map +1 -1
- package/resources/messages/messages.d.mts +28 -5
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +28 -5
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +11 -4
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +11 -4
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/notifications.d.mts +27 -1
- package/resources/notifications.d.mts.map +1 -1
- package/resources/notifications.d.ts +27 -1
- package/resources/notifications.d.ts.map +1 -1
- package/resources/notifications.js +17 -0
- package/resources/notifications.js.map +1 -1
- package/resources/notifications.mjs +17 -0
- package/resources/notifications.mjs.map +1 -1
- package/resources/numbers/index.d.mts +2 -2
- package/resources/numbers/index.d.mts.map +1 -1
- package/resources/numbers/index.d.ts +2 -2
- package/resources/numbers/index.d.ts.map +1 -1
- package/resources/numbers/index.js.map +1 -1
- package/resources/numbers/index.mjs +1 -1
- package/resources/numbers/index.mjs.map +1 -1
- package/resources/numbers/messages.d.mts +60 -1
- package/resources/numbers/messages.d.mts.map +1 -1
- package/resources/numbers/messages.d.ts +60 -1
- package/resources/numbers/messages.d.ts.map +1 -1
- package/resources/numbers/messages.js +21 -0
- package/resources/numbers/messages.js.map +1 -1
- package/resources/numbers/messages.mjs +21 -0
- package/resources/numbers/messages.mjs.map +1 -1
- package/resources/numbers/numbers.d.mts +167 -46
- package/resources/numbers/numbers.d.mts.map +1 -1
- package/resources/numbers/numbers.d.ts +167 -46
- package/resources/numbers/numbers.d.ts.map +1 -1
- package/resources/numbers/numbers.js +25 -40
- package/resources/numbers/numbers.js.map +1 -1
- package/resources/numbers/numbers.mjs +26 -41
- package/resources/numbers/numbers.mjs.map +1 -1
- package/resources/store/apps.d.mts +23 -2
- package/resources/store/apps.d.mts.map +1 -1
- package/resources/store/apps.d.ts +23 -2
- package/resources/store/apps.d.ts.map +1 -1
- package/resources/tasks/tasks.d.mts +84 -75
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +84 -75
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js +2 -10
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs +2 -10
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/webhooks/deliveries.d.mts +22 -31
- package/resources/webhooks/deliveries.d.mts.map +1 -1
- package/resources/webhooks/deliveries.d.ts +22 -31
- package/resources/webhooks/deliveries.d.ts.map +1 -1
- package/resources/webhooks/deliveries.js +4 -30
- package/resources/webhooks/deliveries.js.map +1 -1
- package/resources/webhooks/deliveries.mjs +4 -30
- package/resources/webhooks/deliveries.mjs.map +1 -1
- package/resources/webhooks/index.d.mts +1 -0
- package/resources/webhooks/index.d.mts.map +1 -1
- package/resources/webhooks/index.d.ts +1 -0
- package/resources/webhooks/index.d.ts.map +1 -1
- package/resources/webhooks/index.js +3 -1
- package/resources/webhooks/index.js.map +1 -1
- package/resources/webhooks/index.mjs +1 -0
- package/resources/webhooks/index.mjs.map +1 -1
- package/resources/webhooks/integrations.d.mts +77 -0
- package/resources/webhooks/integrations.d.mts.map +1 -0
- package/resources/webhooks/integrations.d.ts +77 -0
- package/resources/webhooks/integrations.d.ts.map +1 -0
- package/resources/webhooks/integrations.js +26 -0
- package/resources/webhooks/integrations.js.map +1 -0
- package/resources/webhooks/integrations.mjs +22 -0
- package/resources/webhooks/integrations.mjs.map +1 -0
- package/resources/webhooks/webhooks.d.mts +280 -71
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +280 -71
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js +27 -60
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +27 -60
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/resources/workflows/action-catalog.d.mts +7 -3
- package/resources/workflows/action-catalog.d.mts.map +1 -1
- package/resources/workflows/action-catalog.d.ts +7 -3
- package/resources/workflows/action-catalog.d.ts.map +1 -1
- package/resources/workflows/actions/actions.d.mts +9 -5
- package/resources/workflows/actions/actions.d.mts.map +1 -1
- package/resources/workflows/actions/actions.d.ts +9 -5
- package/resources/workflows/actions/actions.d.ts.map +1 -1
- package/resources/workflows/actions/actions.js +4 -0
- package/resources/workflows/actions/actions.js.map +1 -1
- package/resources/workflows/actions/actions.mjs +4 -0
- package/resources/workflows/actions/actions.mjs.map +1 -1
- package/resources/workflows/events.d.mts +66 -4
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +66 -4
- package/resources/workflows/events.d.ts.map +1 -1
- package/resources/workflows/executions/executions.d.mts +334 -0
- package/resources/workflows/executions/executions.d.mts.map +1 -0
- package/resources/workflows/executions/executions.d.ts +334 -0
- package/resources/workflows/executions/executions.d.ts.map +1 -0
- package/resources/workflows/executions/executions.js +49 -0
- package/resources/workflows/executions/executions.js.map +1 -0
- package/resources/workflows/executions/executions.mjs +44 -0
- package/resources/workflows/executions/executions.mjs.map +1 -0
- package/resources/workflows/executions/index.d.mts +3 -0
- package/resources/workflows/executions/index.d.mts.map +1 -0
- package/resources/workflows/executions/index.d.ts +3 -0
- package/resources/workflows/executions/index.d.ts.map +1 -0
- package/resources/workflows/executions/index.js +9 -0
- package/resources/workflows/executions/index.js.map +1 -0
- package/resources/workflows/executions/index.mjs +4 -0
- package/resources/workflows/executions/index.mjs.map +1 -0
- package/resources/workflows/executions/screenshots.d.mts +18 -0
- package/resources/workflows/executions/screenshots.d.mts.map +1 -0
- package/resources/workflows/executions/screenshots.d.ts +18 -0
- package/resources/workflows/executions/screenshots.d.ts.map +1 -0
- package/resources/workflows/executions/screenshots.js +23 -0
- package/resources/workflows/executions/screenshots.js.map +1 -0
- package/resources/workflows/executions/screenshots.mjs +19 -0
- package/resources/workflows/executions/screenshots.mjs.map +1 -0
- package/resources/workflows/executions.d.mts +1 -190
- package/resources/workflows/executions.d.mts.map +1 -1
- package/resources/workflows/executions.d.ts +1 -190
- package/resources/workflows/executions.d.ts.map +1 -1
- package/resources/workflows/executions.js +2 -36
- package/resources/workflows/executions.js.map +1 -1
- package/resources/workflows/executions.mjs +1 -34
- package/resources/workflows/executions.mjs.map +1 -1
- package/resources/workflows/flows/actions.d.mts +58 -0
- package/resources/workflows/flows/actions.d.mts.map +1 -1
- package/resources/workflows/flows/actions.d.ts +58 -0
- package/resources/workflows/flows/actions.d.ts.map +1 -1
- package/resources/workflows/flows/actions.js +4 -0
- package/resources/workflows/flows/actions.js.map +1 -1
- package/resources/workflows/flows/actions.mjs +4 -0
- package/resources/workflows/flows/actions.mjs.map +1 -1
- package/resources/workflows/flows/flows.d.mts +666 -15
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +666 -15
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +86 -1
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +86 -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 +2 -2
- package/resources/workflows/index.d.mts.map +1 -1
- package/resources/workflows/index.d.ts +2 -2
- package/resources/workflows/index.d.ts.map +1 -1
- package/resources/workflows/index.js +4 -4
- package/resources/workflows/index.js.map +1 -1
- package/resources/workflows/index.mjs +1 -1
- package/resources/workflows/index.mjs.map +1 -1
- package/resources/workflows/triggers.d.mts +118 -6
- package/resources/workflows/triggers.d.mts.map +1 -1
- package/resources/workflows/triggers.d.ts +118 -6
- package/resources/workflows/triggers.d.ts.map +1 -1
- package/resources/workflows/triggers.js +14 -0
- package/resources/workflows/triggers.js.map +1 -1
- package/resources/workflows/triggers.mjs +14 -0
- package/resources/workflows/triggers.mjs.map +1 -1
- package/resources/workflows/workflows.d.mts +4 -4
- package/resources/workflows/workflows.d.mts.map +1 -1
- package/resources/workflows/workflows.d.ts +4 -4
- package/resources/workflows/workflows.d.ts.map +1 -1
- package/resources/workflows/workflows.js +2 -2
- package/resources/workflows/workflows.js.map +1 -1
- package/resources/workflows/workflows.mjs +2 -2
- package/resources/workflows/workflows.mjs.map +1 -1
- package/src/client.ts +22 -42
- package/src/resources/apps.ts +24 -12
- package/src/resources/assistant/conversations.ts +50 -31
- package/src/resources/connect/connect.ts +6 -0
- package/src/resources/connect/index.ts +3 -0
- package/src/resources/connect/proxies.ts +146 -18
- package/src/resources/devices/apps.ts +41 -17
- package/src/resources/devices/browser.ts +9 -3
- package/src/resources/devices/devices.ts +138 -34
- package/src/resources/devices/index.ts +13 -0
- package/src/resources/devices/keyboard.ts +10 -3
- package/src/resources/devices/recordings.ts +14 -0
- package/src/resources/devices/traffic-sessions.ts +282 -0
- package/src/resources/files.ts +122 -29
- package/src/resources/index.ts +13 -20
- package/src/resources/mailboxes/connections.ts +91 -0
- package/src/resources/mailboxes/index.ts +7 -0
- package/src/resources/mailboxes/mailboxes.ts +190 -49
- package/src/resources/mailboxes/messages.ts +2 -2
- package/src/resources/messages/conversations.ts +4 -15
- package/src/resources/messages/index.ts +6 -1
- package/src/resources/messages/messages.ts +57 -5
- package/src/resources/notifications.ts +37 -0
- package/src/resources/numbers/index.ts +9 -1
- package/src/resources/numbers/messages.ts +92 -1
- package/src/resources/numbers/numbers.ts +197 -55
- package/src/resources/store/apps.ts +291 -2
- package/src/resources/tasks/tasks.ts +126 -93
- package/src/resources/webhooks/deliveries.ts +26 -31
- package/src/resources/webhooks/index.ts +6 -0
- package/src/resources/webhooks/integrations.ts +107 -0
- package/src/resources/webhooks/webhooks.ts +328 -71
- package/src/resources/workflows/action-catalog.ts +11 -3
- package/src/resources/workflows/actions/actions.ts +9 -5
- package/src/resources/workflows/events.ts +86 -4
- package/src/resources/workflows/executions/executions.ts +514 -0
- package/src/resources/workflows/executions/index.ts +12 -0
- package/src/resources/workflows/executions/screenshots.ts +34 -0
- package/src/resources/workflows/executions.ts +1 -296
- package/src/resources/workflows/flows/actions.ts +72 -0
- package/src/resources/workflows/flows/flows.ts +1058 -129
- package/src/resources/workflows/flows/index.ts +12 -0
- package/src/resources/workflows/index.ts +13 -1
- package/src/resources/workflows/triggers.ts +140 -6
- package/src/resources/workflows/workflows.ts +34 -10
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/esims/esims.d.mts +0 -566
- package/resources/esims/esims.d.mts.map +0 -1
- package/resources/esims/esims.d.ts +0 -566
- package/resources/esims/esims.d.ts.map +0 -1
- package/resources/esims/esims.js +0 -205
- package/resources/esims/esims.js.map +0 -1
- package/resources/esims/esims.mjs +0 -200
- package/resources/esims/esims.mjs.map +0 -1
- package/resources/esims/index.d.mts +0 -3
- package/resources/esims/index.d.mts.map +0 -1
- package/resources/esims/index.d.ts +0 -3
- package/resources/esims/index.d.ts.map +0 -1
- package/resources/esims/index.js +0 -9
- package/resources/esims/index.js.map +0 -1
- package/resources/esims/index.mjs +0 -4
- package/resources/esims/index.mjs.map +0 -1
- package/resources/esims/messages.d.mts +0 -106
- package/resources/esims/messages.d.mts.map +0 -1
- package/resources/esims/messages.d.ts +0 -106
- package/resources/esims/messages.d.ts.map +0 -1
- package/resources/esims/messages.js +0 -37
- package/resources/esims/messages.js.map +0 -1
- package/resources/esims/messages.mjs +0 -33
- package/resources/esims/messages.mjs.map +0 -1
- package/resources/esims.d.mts +0 -2
- package/resources/esims.d.mts.map +0 -1
- package/resources/esims.d.ts +0 -2
- package/resources/esims.d.ts.map +0 -1
- package/resources/esims.js +0 -6
- package/resources/esims.js.map +0 -1
- package/resources/esims.mjs +0 -3
- package/resources/esims.mjs.map +0 -1
- package/src/resources/esims/esims.ts +0 -1019
- package/src/resources/esims/index.ts +0 -28
- package/src/resources/esims/messages.ts +0 -187
- package/src/resources/esims.ts +0 -3
package/src/resources/files.ts
CHANGED
|
@@ -66,16 +66,8 @@ export class Files extends APIResource {
|
|
|
66
66
|
/**
|
|
67
67
|
* Mint a presigned PUT URL for a user file upload
|
|
68
68
|
*/
|
|
69
|
-
uploadURL(
|
|
70
|
-
|
|
71
|
-
return this._client.post('/agents/files/upload-url', {
|
|
72
|
-
body,
|
|
73
|
-
...options,
|
|
74
|
-
headers: buildHeaders([
|
|
75
|
-
{ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
76
|
-
options?.headers,
|
|
77
|
-
]),
|
|
78
|
-
});
|
|
69
|
+
uploadURL(body: FileUploadURLParams, options?: RequestOptions): APIPromise<FileUploadURLResponse> {
|
|
70
|
+
return this._client.post('/agents/files/upload-url', { body, ...options });
|
|
79
71
|
}
|
|
80
72
|
}
|
|
81
73
|
|
|
@@ -97,6 +89,44 @@ export interface FileUpdateResponse {
|
|
|
97
89
|
sizeBytes: number;
|
|
98
90
|
|
|
99
91
|
zone: 'user' | 'agent' | 'workflow' | 'skills';
|
|
92
|
+
|
|
93
|
+
collectionStatus?: FileUpdateResponse.UnionMember0 | FileUpdateResponse.UnionMember1;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export namespace FileUpdateResponse {
|
|
97
|
+
export interface UnionMember0 {
|
|
98
|
+
completeness: 'complete' | 'partial' | 'none' | 'unknown';
|
|
99
|
+
|
|
100
|
+
coverage: 'exhaustive' | 'bounded' | 'unknown';
|
|
101
|
+
|
|
102
|
+
endReached: boolean;
|
|
103
|
+
|
|
104
|
+
records: UnionMember0.Records;
|
|
105
|
+
|
|
106
|
+
resumable: boolean;
|
|
107
|
+
|
|
108
|
+
version: 1;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export namespace UnionMember0 {
|
|
112
|
+
export interface Records {
|
|
113
|
+
reported: number;
|
|
114
|
+
|
|
115
|
+
unit: string;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export interface UnionMember1 {
|
|
120
|
+
completeness: 'unknown';
|
|
121
|
+
|
|
122
|
+
coverage: 'unknown';
|
|
123
|
+
|
|
124
|
+
endReached: false;
|
|
125
|
+
|
|
126
|
+
resumable: false;
|
|
127
|
+
|
|
128
|
+
version: 1;
|
|
129
|
+
}
|
|
100
130
|
}
|
|
101
131
|
|
|
102
132
|
export interface FileListResponse {
|
|
@@ -124,12 +154,54 @@ export namespace FileListResponse {
|
|
|
124
154
|
sizeBytes: number;
|
|
125
155
|
|
|
126
156
|
zone: 'user' | 'agent' | 'workflow' | 'skills';
|
|
157
|
+
|
|
158
|
+
collectionStatus?: File.UnionMember0 | File.UnionMember1;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export namespace File {
|
|
162
|
+
export interface UnionMember0 {
|
|
163
|
+
completeness: 'complete' | 'partial' | 'none' | 'unknown';
|
|
164
|
+
|
|
165
|
+
coverage: 'exhaustive' | 'bounded' | 'unknown';
|
|
166
|
+
|
|
167
|
+
endReached: boolean;
|
|
168
|
+
|
|
169
|
+
records: UnionMember0.Records;
|
|
170
|
+
|
|
171
|
+
resumable: boolean;
|
|
172
|
+
|
|
173
|
+
version: 1;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export namespace UnionMember0 {
|
|
177
|
+
export interface Records {
|
|
178
|
+
reported: number;
|
|
179
|
+
|
|
180
|
+
unit: string;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export interface UnionMember1 {
|
|
185
|
+
completeness: 'unknown';
|
|
186
|
+
|
|
187
|
+
coverage: 'unknown';
|
|
188
|
+
|
|
189
|
+
endReached: false;
|
|
190
|
+
|
|
191
|
+
resumable: false;
|
|
192
|
+
|
|
193
|
+
version: 1;
|
|
194
|
+
}
|
|
127
195
|
}
|
|
128
196
|
|
|
129
197
|
export interface Quota {
|
|
130
|
-
|
|
198
|
+
includedBytes: number | null;
|
|
199
|
+
|
|
200
|
+
maxBytes: number | null;
|
|
131
201
|
|
|
132
|
-
|
|
202
|
+
overageAllowed: boolean;
|
|
203
|
+
|
|
204
|
+
usedBytes: number;
|
|
133
205
|
}
|
|
134
206
|
}
|
|
135
207
|
|
|
@@ -163,6 +235,44 @@ export interface FileConfirmResponse {
|
|
|
163
235
|
state: 'ready';
|
|
164
236
|
|
|
165
237
|
zone: 'user' | 'agent' | 'workflow' | 'skills';
|
|
238
|
+
|
|
239
|
+
collectionStatus?: FileConfirmResponse.UnionMember0 | FileConfirmResponse.UnionMember1;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export namespace FileConfirmResponse {
|
|
243
|
+
export interface UnionMember0 {
|
|
244
|
+
completeness: 'complete' | 'partial' | 'none' | 'unknown';
|
|
245
|
+
|
|
246
|
+
coverage: 'exhaustive' | 'bounded' | 'unknown';
|
|
247
|
+
|
|
248
|
+
endReached: boolean;
|
|
249
|
+
|
|
250
|
+
records: UnionMember0.Records;
|
|
251
|
+
|
|
252
|
+
resumable: boolean;
|
|
253
|
+
|
|
254
|
+
version: 1;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export namespace UnionMember0 {
|
|
258
|
+
export interface Records {
|
|
259
|
+
reported: number;
|
|
260
|
+
|
|
261
|
+
unit: string;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export interface UnionMember1 {
|
|
266
|
+
completeness: 'unknown';
|
|
267
|
+
|
|
268
|
+
coverage: 'unknown';
|
|
269
|
+
|
|
270
|
+
endReached: false;
|
|
271
|
+
|
|
272
|
+
resumable: false;
|
|
273
|
+
|
|
274
|
+
version: 1;
|
|
275
|
+
}
|
|
166
276
|
}
|
|
167
277
|
|
|
168
278
|
export interface FileUploadURLResponse {
|
|
@@ -184,30 +294,13 @@ export interface FileListParams {
|
|
|
184
294
|
}
|
|
185
295
|
|
|
186
296
|
export interface FileUploadURLParams {
|
|
187
|
-
/**
|
|
188
|
-
* Body param
|
|
189
|
-
*/
|
|
190
297
|
filename: string;
|
|
191
298
|
|
|
192
|
-
/**
|
|
193
|
-
* Body param
|
|
194
|
-
*/
|
|
195
299
|
mimeType: string;
|
|
196
300
|
|
|
197
|
-
/**
|
|
198
|
-
* Body param
|
|
199
|
-
*/
|
|
200
301
|
sizeBytes: number;
|
|
201
302
|
|
|
202
|
-
/**
|
|
203
|
-
* Body param
|
|
204
|
-
*/
|
|
205
303
|
zone?: 'user' | 'skills';
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* Header param
|
|
209
|
-
*/
|
|
210
|
-
'Idempotency-Key'?: string;
|
|
211
304
|
}
|
|
212
305
|
|
|
213
306
|
export declare namespace Files {
|
package/src/resources/index.ts
CHANGED
|
@@ -49,32 +49,15 @@ export {
|
|
|
49
49
|
type DeviceFingerprintResponse,
|
|
50
50
|
type DeviceRetrieveCapabilitiesResponse,
|
|
51
51
|
type DeviceSetNameResponse,
|
|
52
|
+
type DeviceSummaryResponse,
|
|
52
53
|
type DeviceWaitReadyResponse,
|
|
53
54
|
type DeviceCreateParams,
|
|
54
55
|
type DeviceListParams,
|
|
55
56
|
type DeviceFingerprintParams,
|
|
56
57
|
type DeviceSetNameParams,
|
|
58
|
+
type DeviceSummaryParams,
|
|
57
59
|
type DeviceTerminateParams,
|
|
58
60
|
} from './devices/devices';
|
|
59
|
-
export {
|
|
60
|
-
Esims,
|
|
61
|
-
type EsimCreateResponse,
|
|
62
|
-
type EsimRetrieveResponse,
|
|
63
|
-
type EsimUpdateResponse,
|
|
64
|
-
type EsimListResponse,
|
|
65
|
-
type EsimCapacityResponse,
|
|
66
|
-
type EsimConfirmPaymentResponse,
|
|
67
|
-
type EsimImportResponse,
|
|
68
|
-
type EsimInstallResponse,
|
|
69
|
-
type EsimInstallStatusResponse,
|
|
70
|
-
type EsimSelectorResponse,
|
|
71
|
-
type EsimCreateParams,
|
|
72
|
-
type EsimUpdateParams,
|
|
73
|
-
type EsimListParams,
|
|
74
|
-
type EsimImportParams,
|
|
75
|
-
type EsimInstallParams,
|
|
76
|
-
type EsimSelectorParams,
|
|
77
|
-
} from './esims/esims';
|
|
78
61
|
export {
|
|
79
62
|
Files,
|
|
80
63
|
type FileUpdateResponse,
|
|
@@ -95,6 +78,7 @@ export {
|
|
|
95
78
|
type MailboxListResponse,
|
|
96
79
|
type MailboxDeleteResponse,
|
|
97
80
|
type MailboxCapacityResponse,
|
|
81
|
+
type MailboxDisconnectResponse,
|
|
98
82
|
type MailboxOtpResponse,
|
|
99
83
|
type MailboxRestartResponse,
|
|
100
84
|
type MailboxUncancelResponse,
|
|
@@ -104,13 +88,20 @@ export {
|
|
|
104
88
|
type MailboxOtpParams,
|
|
105
89
|
type MailboxRestartParams,
|
|
106
90
|
} from './mailboxes/mailboxes';
|
|
107
|
-
export {
|
|
91
|
+
export {
|
|
92
|
+
Messages,
|
|
93
|
+
type MessageRetrieveResponse,
|
|
94
|
+
type MessageListResponse,
|
|
95
|
+
type MessageListParams,
|
|
96
|
+
} from './messages/messages';
|
|
108
97
|
export { Models, type ModelListResponse } from './models';
|
|
109
98
|
export {
|
|
110
99
|
Notifications,
|
|
100
|
+
type NotificationApplyPreferencesPresetResponse,
|
|
111
101
|
type NotificationCatalogResponse,
|
|
112
102
|
type NotificationGetPreferencesResponse,
|
|
113
103
|
type NotificationUpdatePreferencesResponse,
|
|
104
|
+
type NotificationApplyPreferencesPresetParams,
|
|
114
105
|
type NotificationUpdatePreferencesParams,
|
|
115
106
|
} from './notifications';
|
|
116
107
|
export {
|
|
@@ -120,11 +111,13 @@ export {
|
|
|
120
111
|
type NumberUpdateResponse,
|
|
121
112
|
type NumberListResponse,
|
|
122
113
|
type NumberDeleteResponse,
|
|
114
|
+
type NumberCapacityResponse,
|
|
123
115
|
type NumberCountriesResponse,
|
|
124
116
|
type NumberPurposesResponse,
|
|
125
117
|
type NumberCreateParams,
|
|
126
118
|
type NumberUpdateParams,
|
|
127
119
|
type NumberListParams,
|
|
120
|
+
type NumberCapacityParams,
|
|
128
121
|
} from './numbers/numbers';
|
|
129
122
|
export {
|
|
130
123
|
Profiles,
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
import { path } from '../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class Connections extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Links the caller’s Gmail account through the shared integrations connect.
|
|
11
|
+
* Replaying the same Idempotency-Key (or, during migration, the deprecated
|
|
12
|
+
* `clientRequestId` body field) returns the same mailbox. When Gmail is already
|
|
13
|
+
* active, redirectUrl is null and the mailbox is usable immediately.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const connection =
|
|
18
|
+
* await client.mailboxes.connections.create({
|
|
19
|
+
* provider: 'gmail',
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
create(body: ConnectionCreateParams, options?: RequestOptions): APIPromise<ConnectionCreateResponse> {
|
|
24
|
+
return this._client.post('/mailboxes/connections', { body, ...options });
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Reports pending, active (with the Gmail address), expired, or removed.
|
|
29
|
+
* connectionId is the mailbox id.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const connection =
|
|
34
|
+
* await client.mailboxes.connections.retrieve(
|
|
35
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
36
|
+
* );
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
retrieve(connectionID: string, options?: RequestOptions): APIPromise<ConnectionRetrieveResponse> {
|
|
40
|
+
return this._client.get(path`/mailboxes/connections/${connectionID}`, options);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface ConnectionCreateResponse {
|
|
45
|
+
address: string | null;
|
|
46
|
+
|
|
47
|
+
connectionId: string;
|
|
48
|
+
|
|
49
|
+
mailboxId: string;
|
|
50
|
+
|
|
51
|
+
redirectUrl: string | null;
|
|
52
|
+
|
|
53
|
+
status: 'pending' | 'active' | 'expired' | 'removed';
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface ConnectionRetrieveResponse {
|
|
57
|
+
address: string | null;
|
|
58
|
+
|
|
59
|
+
connectionId: string;
|
|
60
|
+
|
|
61
|
+
mailboxId: string;
|
|
62
|
+
|
|
63
|
+
redirectUrl: string | null;
|
|
64
|
+
|
|
65
|
+
status: 'pending' | 'active' | 'expired' | 'removed';
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface ConnectionCreateParams {
|
|
69
|
+
provider: 'gmail';
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* sha256 hex of the browser-held connect binding secret; forwarded to integrations
|
|
73
|
+
* connect
|
|
74
|
+
*/
|
|
75
|
+
bindingHash?: string;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @deprecated Use the Idempotency-Key header.
|
|
79
|
+
*/
|
|
80
|
+
clientRequestId?: string;
|
|
81
|
+
|
|
82
|
+
label?: string;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export declare namespace Connections {
|
|
86
|
+
export {
|
|
87
|
+
type ConnectionCreateResponse as ConnectionCreateResponse,
|
|
88
|
+
type ConnectionRetrieveResponse as ConnectionRetrieveResponse,
|
|
89
|
+
type ConnectionCreateParams as ConnectionCreateParams,
|
|
90
|
+
};
|
|
91
|
+
}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
export {
|
|
4
|
+
Connections,
|
|
5
|
+
type ConnectionCreateResponse,
|
|
6
|
+
type ConnectionRetrieveResponse,
|
|
7
|
+
type ConnectionCreateParams,
|
|
8
|
+
} from './connections';
|
|
3
9
|
export {
|
|
4
10
|
Mailboxes,
|
|
5
11
|
type MailboxCreateResponse,
|
|
@@ -8,6 +14,7 @@ export {
|
|
|
8
14
|
type MailboxListResponse,
|
|
9
15
|
type MailboxDeleteResponse,
|
|
10
16
|
type MailboxCapacityResponse,
|
|
17
|
+
type MailboxDisconnectResponse,
|
|
11
18
|
type MailboxOtpResponse,
|
|
12
19
|
type MailboxRestartResponse,
|
|
13
20
|
type MailboxUncancelResponse,
|