@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
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
4
|
+
export class TrafficSessions extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Starts one live-only decoded HTTP/1.1, HTTP/2, HTTP/3 and WebSocket traffic
|
|
7
|
+
* session.
|
|
8
|
+
*/
|
|
9
|
+
create(deviceID, body, options) {
|
|
10
|
+
return this._client.post(path `/devices/${deviceID}/traffic/sessions`, { body, ...options });
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Returns status and the device stream credential for a live session.
|
|
14
|
+
*/
|
|
15
|
+
retrieve(sessionID, params, options) {
|
|
16
|
+
const { deviceId } = params;
|
|
17
|
+
return this._client.get(path `/devices/${deviceId}/traffic/sessions/${sessionID}`, options);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* List device traffic sessions
|
|
21
|
+
*/
|
|
22
|
+
list(deviceID, query = {}, options) {
|
|
23
|
+
return this._client.get(path `/devices/${deviceID}/traffic/sessions`, { query, ...options });
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Stop device traffic inspection
|
|
27
|
+
*/
|
|
28
|
+
delete(sessionID, params, options) {
|
|
29
|
+
const { deviceId } = params;
|
|
30
|
+
return this._client.delete(path `/devices/${deviceId}/traffic/sessions/${sessionID}`, options);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=traffic-sessions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"traffic-sessions.mjs","sourceRoot":"","sources":["../../src/resources/devices/traffic-sessions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C;;;OAGG;IACH,MAAM,CACJ,QAAgB,EAChB,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,YAAY,QAAQ,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,SAAiB,EACjB,MAAoC,EACpC,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,QAAQ,qBAAqB,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7F,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAAgB,EAChB,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,QAAQ,mBAAmB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,SAAiB,EACjB,MAAkC,EAClC,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,YAAY,QAAQ,qBAAqB,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IAChG,CAAC;CACF"}
|
package/resources/files.d.mts
CHANGED
|
@@ -33,7 +33,7 @@ export declare class Files extends APIResource {
|
|
|
33
33
|
/**
|
|
34
34
|
* Mint a presigned PUT URL for a user file upload
|
|
35
35
|
*/
|
|
36
|
-
uploadURL(
|
|
36
|
+
uploadURL(body: FileUploadURLParams, options?: RequestOptions): APIPromise<FileUploadURLResponse>;
|
|
37
37
|
}
|
|
38
38
|
export interface FileUpdateResponse {
|
|
39
39
|
createdAt: string;
|
|
@@ -45,6 +45,30 @@ export interface FileUpdateResponse {
|
|
|
45
45
|
mimeType: string;
|
|
46
46
|
sizeBytes: number;
|
|
47
47
|
zone: 'user' | 'agent' | 'workflow' | 'skills';
|
|
48
|
+
collectionStatus?: FileUpdateResponse.UnionMember0 | FileUpdateResponse.UnionMember1;
|
|
49
|
+
}
|
|
50
|
+
export declare namespace FileUpdateResponse {
|
|
51
|
+
interface UnionMember0 {
|
|
52
|
+
completeness: 'complete' | 'partial' | 'none' | 'unknown';
|
|
53
|
+
coverage: 'exhaustive' | 'bounded' | 'unknown';
|
|
54
|
+
endReached: boolean;
|
|
55
|
+
records: UnionMember0.Records;
|
|
56
|
+
resumable: boolean;
|
|
57
|
+
version: 1;
|
|
58
|
+
}
|
|
59
|
+
namespace UnionMember0 {
|
|
60
|
+
interface Records {
|
|
61
|
+
reported: number;
|
|
62
|
+
unit: string;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
interface UnionMember1 {
|
|
66
|
+
completeness: 'unknown';
|
|
67
|
+
coverage: 'unknown';
|
|
68
|
+
endReached: false;
|
|
69
|
+
resumable: false;
|
|
70
|
+
version: 1;
|
|
71
|
+
}
|
|
48
72
|
}
|
|
49
73
|
export interface FileListResponse {
|
|
50
74
|
files: Array<FileListResponse.File>;
|
|
@@ -61,10 +85,36 @@ export declare namespace FileListResponse {
|
|
|
61
85
|
mimeType: string;
|
|
62
86
|
sizeBytes: number;
|
|
63
87
|
zone: 'user' | 'agent' | 'workflow' | 'skills';
|
|
88
|
+
collectionStatus?: File.UnionMember0 | File.UnionMember1;
|
|
89
|
+
}
|
|
90
|
+
namespace File {
|
|
91
|
+
interface UnionMember0 {
|
|
92
|
+
completeness: 'complete' | 'partial' | 'none' | 'unknown';
|
|
93
|
+
coverage: 'exhaustive' | 'bounded' | 'unknown';
|
|
94
|
+
endReached: boolean;
|
|
95
|
+
records: UnionMember0.Records;
|
|
96
|
+
resumable: boolean;
|
|
97
|
+
version: 1;
|
|
98
|
+
}
|
|
99
|
+
namespace UnionMember0 {
|
|
100
|
+
interface Records {
|
|
101
|
+
reported: number;
|
|
102
|
+
unit: string;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
interface UnionMember1 {
|
|
106
|
+
completeness: 'unknown';
|
|
107
|
+
coverage: 'unknown';
|
|
108
|
+
endReached: false;
|
|
109
|
+
resumable: false;
|
|
110
|
+
version: 1;
|
|
111
|
+
}
|
|
64
112
|
}
|
|
65
113
|
interface Quota {
|
|
66
|
-
|
|
67
|
-
|
|
114
|
+
includedBytes: number | null;
|
|
115
|
+
maxBytes: number | null;
|
|
116
|
+
overageAllowed: boolean;
|
|
117
|
+
usedBytes: number;
|
|
68
118
|
}
|
|
69
119
|
}
|
|
70
120
|
export interface FileDeleteResponse {
|
|
@@ -85,6 +135,30 @@ export interface FileConfirmResponse {
|
|
|
85
135
|
sizeBytes: number;
|
|
86
136
|
state: 'ready';
|
|
87
137
|
zone: 'user' | 'agent' | 'workflow' | 'skills';
|
|
138
|
+
collectionStatus?: FileConfirmResponse.UnionMember0 | FileConfirmResponse.UnionMember1;
|
|
139
|
+
}
|
|
140
|
+
export declare namespace FileConfirmResponse {
|
|
141
|
+
interface UnionMember0 {
|
|
142
|
+
completeness: 'complete' | 'partial' | 'none' | 'unknown';
|
|
143
|
+
coverage: 'exhaustive' | 'bounded' | 'unknown';
|
|
144
|
+
endReached: boolean;
|
|
145
|
+
records: UnionMember0.Records;
|
|
146
|
+
resumable: boolean;
|
|
147
|
+
version: 1;
|
|
148
|
+
}
|
|
149
|
+
namespace UnionMember0 {
|
|
150
|
+
interface Records {
|
|
151
|
+
reported: number;
|
|
152
|
+
unit: string;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
interface UnionMember1 {
|
|
156
|
+
completeness: 'unknown';
|
|
157
|
+
coverage: 'unknown';
|
|
158
|
+
endReached: false;
|
|
159
|
+
resumable: false;
|
|
160
|
+
version: 1;
|
|
161
|
+
}
|
|
88
162
|
}
|
|
89
163
|
export interface FileUploadURLResponse {
|
|
90
164
|
expiresAt: string;
|
|
@@ -99,26 +173,10 @@ export interface FileListParams {
|
|
|
99
173
|
zone?: 'user' | 'agent' | 'workflow' | 'skills';
|
|
100
174
|
}
|
|
101
175
|
export interface FileUploadURLParams {
|
|
102
|
-
/**
|
|
103
|
-
* Body param
|
|
104
|
-
*/
|
|
105
176
|
filename: string;
|
|
106
|
-
/**
|
|
107
|
-
* Body param
|
|
108
|
-
*/
|
|
109
177
|
mimeType: string;
|
|
110
|
-
/**
|
|
111
|
-
* Body param
|
|
112
|
-
*/
|
|
113
178
|
sizeBytes: number;
|
|
114
|
-
/**
|
|
115
|
-
* Body param
|
|
116
|
-
*/
|
|
117
179
|
zone?: 'user' | 'skills';
|
|
118
|
-
/**
|
|
119
|
-
* Header param
|
|
120
|
-
*/
|
|
121
|
-
'Idempotency-Key'?: string;
|
|
122
180
|
}
|
|
123
181
|
export declare namespace Files {
|
|
124
182
|
export { type FileUpdateResponse as FileUpdateResponse, type FileListResponse as FileListResponse, type FileDeleteResponse as FileDeleteResponse, type FileCancelPendingResponse as FileCancelPendingResponse, type FileConfirmResponse as FileConfirmResponse, type FileUploadURLResponse as FileUploadURLResponse, type FileUpdateParams as FileUpdateParams, type FileListParams as FileListParams, type FileUploadURLParams as FileUploadURLParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.mts","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,MAAM,CACJ,MAAM,EAAE,MAAM,EACd,IAAI,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IAIjC;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gBAAgB,CAAC;IAI/B;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAIhF;;;;OAIG;IACH,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;IAI9F;;OAEG;IACH,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAIlF;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOpE;;OAEG;IACH,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"files.d.mts","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CAAC;CAChB;AAED,MAAM,WAAW,gBAAgB;IAC/B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;CACjD;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;IAEjB,QAAQ,EAAE,MAAM,CAAC;IAEjB,SAAS,EAAE,MAAM,CAAC;IAElB,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
package/resources/files.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export declare class Files extends APIResource {
|
|
|
33
33
|
/**
|
|
34
34
|
* Mint a presigned PUT URL for a user file upload
|
|
35
35
|
*/
|
|
36
|
-
uploadURL(
|
|
36
|
+
uploadURL(body: FileUploadURLParams, options?: RequestOptions): APIPromise<FileUploadURLResponse>;
|
|
37
37
|
}
|
|
38
38
|
export interface FileUpdateResponse {
|
|
39
39
|
createdAt: string;
|
|
@@ -45,6 +45,30 @@ export interface FileUpdateResponse {
|
|
|
45
45
|
mimeType: string;
|
|
46
46
|
sizeBytes: number;
|
|
47
47
|
zone: 'user' | 'agent' | 'workflow' | 'skills';
|
|
48
|
+
collectionStatus?: FileUpdateResponse.UnionMember0 | FileUpdateResponse.UnionMember1;
|
|
49
|
+
}
|
|
50
|
+
export declare namespace FileUpdateResponse {
|
|
51
|
+
interface UnionMember0 {
|
|
52
|
+
completeness: 'complete' | 'partial' | 'none' | 'unknown';
|
|
53
|
+
coverage: 'exhaustive' | 'bounded' | 'unknown';
|
|
54
|
+
endReached: boolean;
|
|
55
|
+
records: UnionMember0.Records;
|
|
56
|
+
resumable: boolean;
|
|
57
|
+
version: 1;
|
|
58
|
+
}
|
|
59
|
+
namespace UnionMember0 {
|
|
60
|
+
interface Records {
|
|
61
|
+
reported: number;
|
|
62
|
+
unit: string;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
interface UnionMember1 {
|
|
66
|
+
completeness: 'unknown';
|
|
67
|
+
coverage: 'unknown';
|
|
68
|
+
endReached: false;
|
|
69
|
+
resumable: false;
|
|
70
|
+
version: 1;
|
|
71
|
+
}
|
|
48
72
|
}
|
|
49
73
|
export interface FileListResponse {
|
|
50
74
|
files: Array<FileListResponse.File>;
|
|
@@ -61,10 +85,36 @@ export declare namespace FileListResponse {
|
|
|
61
85
|
mimeType: string;
|
|
62
86
|
sizeBytes: number;
|
|
63
87
|
zone: 'user' | 'agent' | 'workflow' | 'skills';
|
|
88
|
+
collectionStatus?: File.UnionMember0 | File.UnionMember1;
|
|
89
|
+
}
|
|
90
|
+
namespace File {
|
|
91
|
+
interface UnionMember0 {
|
|
92
|
+
completeness: 'complete' | 'partial' | 'none' | 'unknown';
|
|
93
|
+
coverage: 'exhaustive' | 'bounded' | 'unknown';
|
|
94
|
+
endReached: boolean;
|
|
95
|
+
records: UnionMember0.Records;
|
|
96
|
+
resumable: boolean;
|
|
97
|
+
version: 1;
|
|
98
|
+
}
|
|
99
|
+
namespace UnionMember0 {
|
|
100
|
+
interface Records {
|
|
101
|
+
reported: number;
|
|
102
|
+
unit: string;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
interface UnionMember1 {
|
|
106
|
+
completeness: 'unknown';
|
|
107
|
+
coverage: 'unknown';
|
|
108
|
+
endReached: false;
|
|
109
|
+
resumable: false;
|
|
110
|
+
version: 1;
|
|
111
|
+
}
|
|
64
112
|
}
|
|
65
113
|
interface Quota {
|
|
66
|
-
|
|
67
|
-
|
|
114
|
+
includedBytes: number | null;
|
|
115
|
+
maxBytes: number | null;
|
|
116
|
+
overageAllowed: boolean;
|
|
117
|
+
usedBytes: number;
|
|
68
118
|
}
|
|
69
119
|
}
|
|
70
120
|
export interface FileDeleteResponse {
|
|
@@ -85,6 +135,30 @@ export interface FileConfirmResponse {
|
|
|
85
135
|
sizeBytes: number;
|
|
86
136
|
state: 'ready';
|
|
87
137
|
zone: 'user' | 'agent' | 'workflow' | 'skills';
|
|
138
|
+
collectionStatus?: FileConfirmResponse.UnionMember0 | FileConfirmResponse.UnionMember1;
|
|
139
|
+
}
|
|
140
|
+
export declare namespace FileConfirmResponse {
|
|
141
|
+
interface UnionMember0 {
|
|
142
|
+
completeness: 'complete' | 'partial' | 'none' | 'unknown';
|
|
143
|
+
coverage: 'exhaustive' | 'bounded' | 'unknown';
|
|
144
|
+
endReached: boolean;
|
|
145
|
+
records: UnionMember0.Records;
|
|
146
|
+
resumable: boolean;
|
|
147
|
+
version: 1;
|
|
148
|
+
}
|
|
149
|
+
namespace UnionMember0 {
|
|
150
|
+
interface Records {
|
|
151
|
+
reported: number;
|
|
152
|
+
unit: string;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
interface UnionMember1 {
|
|
156
|
+
completeness: 'unknown';
|
|
157
|
+
coverage: 'unknown';
|
|
158
|
+
endReached: false;
|
|
159
|
+
resumable: false;
|
|
160
|
+
version: 1;
|
|
161
|
+
}
|
|
88
162
|
}
|
|
89
163
|
export interface FileUploadURLResponse {
|
|
90
164
|
expiresAt: string;
|
|
@@ -99,26 +173,10 @@ export interface FileListParams {
|
|
|
99
173
|
zone?: 'user' | 'agent' | 'workflow' | 'skills';
|
|
100
174
|
}
|
|
101
175
|
export interface FileUploadURLParams {
|
|
102
|
-
/**
|
|
103
|
-
* Body param
|
|
104
|
-
*/
|
|
105
176
|
filename: string;
|
|
106
|
-
/**
|
|
107
|
-
* Body param
|
|
108
|
-
*/
|
|
109
177
|
mimeType: string;
|
|
110
|
-
/**
|
|
111
|
-
* Body param
|
|
112
|
-
*/
|
|
113
178
|
sizeBytes: number;
|
|
114
|
-
/**
|
|
115
|
-
* Body param
|
|
116
|
-
*/
|
|
117
179
|
zone?: 'user' | 'skills';
|
|
118
|
-
/**
|
|
119
|
-
* Header param
|
|
120
|
-
*/
|
|
121
|
-
'Idempotency-Key'?: string;
|
|
122
180
|
}
|
|
123
181
|
export declare namespace Files {
|
|
124
182
|
export { type FileUpdateResponse as FileUpdateResponse, type FileListResponse as FileListResponse, type FileDeleteResponse as FileDeleteResponse, type FileCancelPendingResponse as FileCancelPendingResponse, type FileConfirmResponse as FileConfirmResponse, type FileUploadURLResponse as FileUploadURLResponse, type FileUpdateParams as FileUpdateParams, type FileListParams as FileListParams, type FileUploadURLParams as FileUploadURLParams, };
|
package/resources/files.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,MAAM,CACJ,MAAM,EAAE,MAAM,EACd,IAAI,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IAIjC;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,g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gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
package/resources/files.js
CHANGED
|
@@ -52,16 +52,8 @@ class Files extends resource_1.APIResource {
|
|
|
52
52
|
/**
|
|
53
53
|
* Mint a presigned PUT URL for a user file upload
|
|
54
54
|
*/
|
|
55
|
-
uploadURL(
|
|
56
|
-
|
|
57
|
-
return this._client.post('/agents/files/upload-url', {
|
|
58
|
-
body,
|
|
59
|
-
...options,
|
|
60
|
-
headers: (0, headers_1.buildHeaders)([
|
|
61
|
-
{ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
62
|
-
options?.headers,
|
|
63
|
-
]),
|
|
64
|
-
});
|
|
55
|
+
uploadURL(body, options) {
|
|
56
|
+
return this._client.post('/agents/files/upload-url', { body, ...options });
|
|
65
57
|
}
|
|
66
58
|
}
|
|
67
59
|
exports.Files = Files;
|
package/resources/files.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.js","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;OAGG;IACH,MAAM,CACJ,MAAc,EACd,OAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,iBAAiB,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAED;;OAEG;IACH,MAAM,C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extends APIResource {
|
|
|
49
49
|
/**
|
|
50
50
|
* Mint a presigned PUT URL for a user file upload
|
|
51
51
|
*/
|
|
52
|
-
uploadURL(
|
|
53
|
-
|
|
54
|
-
return this._client.post('/agents/files/upload-url', {
|
|
55
|
-
body,
|
|
56
|
-
...options,
|
|
57
|
-
headers: buildHeaders([
|
|
58
|
-
{ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
59
|
-
options?.headers,
|
|
60
|
-
]),
|
|
61
|
-
});
|
|
52
|
+
uploadURL(body, options) {
|
|
53
|
+
return this._client.post('/agents/files/upload-url', { body, ...options });
|
|
62
54
|
}
|
|
63
55
|
}
|
|
64
56
|
//# sourceMappingURL=files.mjs.map
|
package/resources/files.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,MAAM,CACJ,MAAc,EACd,OAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,iBAAiB,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAA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C7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,iBAAiB,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;;;OAIG;IACH,aAAa,CAAC,MAAc,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,iBAAiB,MAAM,UAAU,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,MAAc,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,iBAAiB,MAAM,UAAU,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,iBAAiB,MAAM,WAAW,EAAE;YAC9D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,SAAS,CAAC,IAAyB,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF"}
|
package/resources/index.d.mts
CHANGED
|
@@ -5,14 +5,13 @@ export { Assistant } from "./assistant/assistant.mjs";
|
|
|
5
5
|
export { Carriers, type CarrierCreateResponse, type CarrierRetrieveResponse, type CarrierUpdateResponse, type CarrierListResponse, type CarrierDeleteResponse, type CarrierLookupResponse, type CarrierCreateParams, type CarrierUpdateParams, type CarrierListParams, type CarrierLookupParams, } from "./carriers.mjs";
|
|
6
6
|
export { Connect } from "./connect/connect.mjs";
|
|
7
7
|
export { Credentials, type CredentialListResponse, type CredentialListParams, } from "./credentials/credentials.mjs";
|
|
8
|
-
export { Devices, type DeviceCreateResponse, type DeviceRetrieveResponse, type DeviceListResponse, type DeviceCountResponse, type DeviceFingerprintResponse, type DeviceRetrieveCapabilitiesResponse, type DeviceSetNameResponse, type DeviceWaitReadyResponse, type DeviceCreateParams, type DeviceListParams, type DeviceFingerprintParams, type DeviceSetNameParams, type DeviceTerminateParams, } from "./devices/devices.mjs";
|
|
9
|
-
export { Esims, type EsimCreateResponse, type EsimRetrieveResponse, type EsimUpdateResponse, type EsimListResponse, type EsimCapacityResponse, type EsimConfirmPaymentResponse, type EsimImportResponse, type EsimInstallResponse, type EsimInstallStatusResponse, type EsimSelectorResponse, type EsimCreateParams, type EsimUpdateParams, type EsimListParams, type EsimImportParams, type EsimInstallParams, type EsimSelectorParams, } from "./esims/esims.mjs";
|
|
8
|
+
export { Devices, type DeviceCreateResponse, type DeviceRetrieveResponse, type DeviceListResponse, type DeviceCountResponse, type DeviceFingerprintResponse, type DeviceRetrieveCapabilitiesResponse, type DeviceSetNameResponse, type DeviceSummaryResponse, type DeviceWaitReadyResponse, type DeviceCreateParams, type DeviceListParams, type DeviceFingerprintParams, type DeviceSetNameParams, type DeviceSummaryParams, type DeviceTerminateParams, } from "./devices/devices.mjs";
|
|
10
9
|
export { Files, type FileUpdateResponse, type FileListResponse, type FileDeleteResponse, type FileCancelPendingResponse, type FileConfirmResponse, type FileUploadURLResponse, type FileUpdateParams, type FileListParams, type FileUploadURLParams, } from "./files.mjs";
|
|
11
|
-
export { Mailboxes, type MailboxCreateResponse, type MailboxRetrieveResponse, type MailboxUpdateResponse, type MailboxListResponse, type MailboxDeleteResponse, type MailboxCapacityResponse, type MailboxOtpResponse, type MailboxRestartResponse, type MailboxUncancelResponse, type MailboxCreateParams, type MailboxUpdateParams, type MailboxListParams, type MailboxOtpParams, type MailboxRestartParams, } from "./mailboxes/mailboxes.mjs";
|
|
12
|
-
export { Messages, type MessageListResponse, type MessageListParams } from "./messages/messages.mjs";
|
|
10
|
+
export { Mailboxes, type MailboxCreateResponse, type MailboxRetrieveResponse, type MailboxUpdateResponse, type MailboxListResponse, type MailboxDeleteResponse, type MailboxCapacityResponse, type MailboxDisconnectResponse, type MailboxOtpResponse, type MailboxRestartResponse, type MailboxUncancelResponse, type MailboxCreateParams, type MailboxUpdateParams, type MailboxListParams, type MailboxOtpParams, type MailboxRestartParams, } from "./mailboxes/mailboxes.mjs";
|
|
11
|
+
export { Messages, type MessageRetrieveResponse, type MessageListResponse, type MessageListParams, } from "./messages/messages.mjs";
|
|
13
12
|
export { Models, type ModelListResponse } from "./models.mjs";
|
|
14
|
-
export { Notifications, type NotificationCatalogResponse, type NotificationGetPreferencesResponse, type NotificationUpdatePreferencesResponse, type NotificationUpdatePreferencesParams, } from "./notifications.mjs";
|
|
15
|
-
export { Numbers, type NumberCreateResponse, type NumberRetrieveResponse, type NumberUpdateResponse, type NumberListResponse, type NumberDeleteResponse, type NumberCountriesResponse, type NumberPurposesResponse, type NumberCreateParams, type NumberUpdateParams, type NumberListParams, } from "./numbers/numbers.mjs";
|
|
13
|
+
export { Notifications, type NotificationApplyPreferencesPresetResponse, type NotificationCatalogResponse, type NotificationGetPreferencesResponse, type NotificationUpdatePreferencesResponse, type NotificationApplyPreferencesPresetParams, type NotificationUpdatePreferencesParams, } from "./notifications.mjs";
|
|
14
|
+
export { Numbers, type NumberCreateResponse, type NumberRetrieveResponse, type NumberUpdateResponse, type NumberListResponse, type NumberDeleteResponse, type NumberCapacityResponse, type NumberCountriesResponse, type NumberPurposesResponse, type NumberCreateParams, type NumberUpdateParams, type NumberListParams, type NumberCapacityParams, } from "./numbers/numbers.mjs";
|
|
16
15
|
export { Profiles, type ProfileCreateResponse, type ProfileRetrieveResponse, type ProfileUpdateResponse, type ProfileListResponse, type ProfileDeleteResponse, type ProfileCreateParams, type ProfileUpdateParams, type ProfileListParams, } from "./profiles.mjs";
|
|
17
16
|
export { Proxies, type ProxyCreateResponse, type ProxyRetrieveResponse, type ProxyUpdateResponse, type ProxyListResponse, type ProxyDeleteResponse, type ProxyLookupResponse, type ProxyCreateParams, type ProxyUpdateParams, type ProxyListParams, type ProxyLookupParams, } from "./proxies.mjs";
|
|
18
17
|
export { Store, type StoreCategoriesResponse } from "./store/store.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,6BAAyB;AACzB,OAAO,EACL,SAAS,EACT,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GACxB,oCAAgC;AACjC,OAAO,EACL,IAAI,EACJ,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACrC,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EAClB,KAAK,8BAA8B,GACpC,mBAAe;AAChB,OAAO,EAAE,SAAS,EAAE,kCAA8B;AAClD,OAAO,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,GACzB,uBAAmB;AACpB,OAAO,EAAE,OAAO,EAAE,8BAA0B;AAC5C,OAAO,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B,sCAAkC;AACnC,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AAO,EAAE,SAAS,EAAE,kCAA8B"}
|
package/resources/index.d.ts
CHANGED
|
@@ -5,14 +5,13 @@ export { Assistant } from "./assistant/assistant.js";
|
|
|
5
5
|
export { Carriers, type CarrierCreateResponse, type CarrierRetrieveResponse, type CarrierUpdateResponse, type CarrierListResponse, type CarrierDeleteResponse, type CarrierLookupResponse, type CarrierCreateParams, type CarrierUpdateParams, type CarrierListParams, type CarrierLookupParams, } from "./carriers.js";
|
|
6
6
|
export { Connect } from "./connect/connect.js";
|
|
7
7
|
export { Credentials, type CredentialListResponse, type CredentialListParams, } from "./credentials/credentials.js";
|
|
8
|
-
export { Devices, type DeviceCreateResponse, type DeviceRetrieveResponse, type DeviceListResponse, type DeviceCountResponse, type DeviceFingerprintResponse, type DeviceRetrieveCapabilitiesResponse, type DeviceSetNameResponse, type DeviceWaitReadyResponse, type DeviceCreateParams, type DeviceListParams, type DeviceFingerprintParams, type DeviceSetNameParams, type DeviceTerminateParams, } from "./devices/devices.js";
|
|
9
|
-
export { Esims, type EsimCreateResponse, type EsimRetrieveResponse, type EsimUpdateResponse, type EsimListResponse, type EsimCapacityResponse, type EsimConfirmPaymentResponse, type EsimImportResponse, type EsimInstallResponse, type EsimInstallStatusResponse, type EsimSelectorResponse, type EsimCreateParams, type EsimUpdateParams, type EsimListParams, type EsimImportParams, type EsimInstallParams, type EsimSelectorParams, } from "./esims/esims.js";
|
|
8
|
+
export { Devices, type DeviceCreateResponse, type DeviceRetrieveResponse, type DeviceListResponse, type DeviceCountResponse, type DeviceFingerprintResponse, type DeviceRetrieveCapabilitiesResponse, type DeviceSetNameResponse, type DeviceSummaryResponse, type DeviceWaitReadyResponse, type DeviceCreateParams, type DeviceListParams, type DeviceFingerprintParams, type DeviceSetNameParams, type DeviceSummaryParams, type DeviceTerminateParams, } from "./devices/devices.js";
|
|
10
9
|
export { Files, type FileUpdateResponse, type FileListResponse, type FileDeleteResponse, type FileCancelPendingResponse, type FileConfirmResponse, type FileUploadURLResponse, type FileUpdateParams, type FileListParams, type FileUploadURLParams, } from "./files.js";
|
|
11
|
-
export { Mailboxes, type MailboxCreateResponse, type MailboxRetrieveResponse, type MailboxUpdateResponse, type MailboxListResponse, type MailboxDeleteResponse, type MailboxCapacityResponse, type MailboxOtpResponse, type MailboxRestartResponse, type MailboxUncancelResponse, type MailboxCreateParams, type MailboxUpdateParams, type MailboxListParams, type MailboxOtpParams, type MailboxRestartParams, } from "./mailboxes/mailboxes.js";
|
|
12
|
-
export { Messages, type MessageListResponse, type MessageListParams } from "./messages/messages.js";
|
|
10
|
+
export { Mailboxes, type MailboxCreateResponse, type MailboxRetrieveResponse, type MailboxUpdateResponse, type MailboxListResponse, type MailboxDeleteResponse, type MailboxCapacityResponse, type MailboxDisconnectResponse, type MailboxOtpResponse, type MailboxRestartResponse, type MailboxUncancelResponse, type MailboxCreateParams, type MailboxUpdateParams, type MailboxListParams, type MailboxOtpParams, type MailboxRestartParams, } from "./mailboxes/mailboxes.js";
|
|
11
|
+
export { Messages, type MessageRetrieveResponse, type MessageListResponse, type MessageListParams, } from "./messages/messages.js";
|
|
13
12
|
export { Models, type ModelListResponse } from "./models.js";
|
|
14
|
-
export { Notifications, type NotificationCatalogResponse, type NotificationGetPreferencesResponse, type NotificationUpdatePreferencesResponse, type NotificationUpdatePreferencesParams, } from "./notifications.js";
|
|
15
|
-
export { Numbers, type NumberCreateResponse, type NumberRetrieveResponse, type NumberUpdateResponse, type NumberListResponse, type NumberDeleteResponse, type NumberCountriesResponse, type NumberPurposesResponse, type NumberCreateParams, type NumberUpdateParams, type NumberListParams, } from "./numbers/numbers.js";
|
|
13
|
+
export { Notifications, type NotificationApplyPreferencesPresetResponse, type NotificationCatalogResponse, type NotificationGetPreferencesResponse, type NotificationUpdatePreferencesResponse, type NotificationApplyPreferencesPresetParams, type NotificationUpdatePreferencesParams, } from "./notifications.js";
|
|
14
|
+
export { Numbers, type NumberCreateResponse, type NumberRetrieveResponse, type NumberUpdateResponse, type NumberListResponse, type NumberDeleteResponse, type NumberCapacityResponse, type NumberCountriesResponse, type NumberPurposesResponse, type NumberCreateParams, type NumberUpdateParams, type NumberListParams, type NumberCapacityParams, } from "./numbers/numbers.js";
|
|
16
15
|
export { Profiles, type ProfileCreateResponse, type ProfileRetrieveResponse, type ProfileUpdateResponse, type ProfileListResponse, type ProfileDeleteResponse, type ProfileCreateParams, type ProfileUpdateParams, type ProfileListParams, } from "./profiles.js";
|
|
17
16
|
export { Proxies, type ProxyCreateResponse, type ProxyRetrieveResponse, type ProxyUpdateResponse, type ProxyListResponse, type ProxyDeleteResponse, type ProxyLookupResponse, type ProxyCreateParams, type ProxyUpdateParams, type ProxyListParams, type ProxyLookupParams, } from "./proxies.js";
|
|
18
17
|
export { Store, type StoreCategoriesResponse } from "./store/store.js";
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,4BAAyB;AACzB,OAAO,EACL,SAAS,EACT,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GACxB,mCAAgC;AACjC,OAAO,EACL,IAAI,EACJ,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACrC,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EAClB,KAAK,8BAA8B,GACpC,kBAAe;AAChB,OAAO,EAAE,SAAS,EAAE,iCAA8B;AAClD,OAAO,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,GAC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K,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,+BAA4B;AAC7B,OAAO,EAAE,SAAS,EAAE,iCAA8B"}
|
package/resources/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Workflows = exports.Webhooks = exports.Tasks = exports.Store = exports.Proxies = exports.Profiles = exports.Numbers = exports.Notifications = exports.Models = exports.Messages = exports.Mailboxes = exports.Files = exports.
|
|
4
|
+
exports.Workflows = exports.Webhooks = exports.Tasks = exports.Store = exports.Proxies = exports.Profiles = exports.Numbers = exports.Notifications = exports.Models = exports.Messages = exports.Mailboxes = exports.Files = exports.Devices = exports.Credentials = exports.Connect = exports.Carriers = exports.Assistant = exports.Apps = exports.AppEvents = void 0;
|
|
5
5
|
const tslib_1 = require("../internal/tslib.js");
|
|
6
6
|
tslib_1.__exportStar(require("./shared.js"), exports);
|
|
7
7
|
var app_events_1 = require("./app-events/app-events.js");
|
|
@@ -18,8 +18,6 @@ var credentials_1 = require("./credentials/credentials.js");
|
|
|
18
18
|
Object.defineProperty(exports, "Credentials", { enumerable: true, get: function () { return credentials_1.Credentials; } });
|
|
19
19
|
var devices_1 = require("./devices/devices.js");
|
|
20
20
|
Object.defineProperty(exports, "Devices", { enumerable: true, get: function () { return devices_1.Devices; } });
|
|
21
|
-
var esims_1 = require("./esims/esims.js");
|
|
22
|
-
Object.defineProperty(exports, "Esims", { enumerable: true, get: function () { return esims_1.Esims; } });
|
|
23
21
|
var files_1 = require("./files.js");
|
|
24
22
|
Object.defineProperty(exports, "Files", { enumerable: true, get: function () { return files_1.Files; } });
|
|
25
23
|
var mailboxes_1 = require("./mailboxes/mailboxes.js");
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,yDAKiC;AAJ/B,uGAAA,SAAS,OAAA;AAKX,kCAYgB;AAXd,4FAAA,IAAI,OAAA;AAYN,sDAAkD;AAAzC,sGAAA,SAAS,OAAA;AAClB,0CAYoB;AAXlB,oGAAA,QAAQ,OAAA;AAYV,gDAA4C;AAAnC,kGAAA,OAAO,OAAA;AAChB,4DAImC;AAHjC,0GAAA,WAAW,OAAA;AAIb,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,yDAKiC;AAJ/B,uGAAA,SAAS,OAAA;AAKX,kCAYgB;AAXd,4FAAA,IAAI,OAAA;AAYN,sDAAkD;AAAzC,sGAAA,SAAS,OAAA;AAClB,0CAYoB;AAXlB,oGAAA,QAAQ,OAAA;AAYV,gDAA4C;AAAnC,kGAAA,OAAO,OAAA;AAChB,4DAImC;AAHjC,0GAAA,WAAW,OAAA;AAIb,gDAiB2B;AAhBzB,kGAAA,OAAO,OAAA;AAiBT,oCAWiB;AAVf,8FAAA,KAAK,OAAA;AAWP,sDAiB+B;AAhB7B,sGAAA,SAAS,OAAA;AAiBX,mDAK6B;AAJ3B,oGAAA,QAAQ,OAAA;AAKV,sCAA0D;AAAjD,gGAAA,MAAM,OAAA;AACf,oDAQyB;AAPvB,8GAAA,aAAa,OAAA;AAQf,gDAc2B;AAbzB,kGAAA,OAAO,OAAA;AAcT,0CAUoB;AATlB,oGAAA,QAAQ,OAAA;AAUV,wCAYmB;AAXjB,kGAAA,OAAO,OAAA;AAYT,0CAAoE;AAA3D,8FAAA,KAAK,OAAA;AACd,0CAcuB;AAbrB,8FAAA,KAAK,OAAA;AAcP,mDAY6B;AAX3B,oGAAA,QAAQ,OAAA;AAYV,sDAAkD;AAAzC,sGAAA,SAAS,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -7,10 +7,9 @@ export { Carriers, } from "./carriers.mjs";
|
|
|
7
7
|
export { Connect } from "./connect/connect.mjs";
|
|
8
8
|
export { Credentials, } from "./credentials/credentials.mjs";
|
|
9
9
|
export { Devices, } from "./devices/devices.mjs";
|
|
10
|
-
export { Esims, } from "./esims/esims.mjs";
|
|
11
10
|
export { Files, } from "./files.mjs";
|
|
12
11
|
export { Mailboxes, } from "./mailboxes/mailboxes.mjs";
|
|
13
|
-
export { Messages } from "./messages/messages.mjs";
|
|
12
|
+
export { Messages, } from "./messages/messages.mjs";
|
|
14
13
|
export { Models } from "./models.mjs";
|
|
15
14
|
export { Notifications, } from "./notifications.mjs";
|
|
16
15
|
export { Numbers, } from "./numbers/numbers.mjs";
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,6BAAyB;AACzB,OAAO,EACL,SAAS,GAIV,oCAAgC;AACjC,OAAO,EACL,IAAI,GAWL,mBAAe;AAChB,OAAO,EAAE,SAAS,EAAE,kCAA8B;AAClD,OAAO,EACL,QAAQ,GAWT,uBAAmB;AACpB,OAAO,EAAE,OAAO,EAAE,8BAA0B;AAC5C,OAAO,EACL,WAAW,GAGZ,sCAAkC;AACnC,OAAO,EACL,OAAO,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,6BAAyB;AACzB,OAAO,EACL,SAAS,GAIV,oCAAgC;AACjC,OAAO,EACL,IAAI,GAWL,mBAAe;AAChB,OAAO,EAAE,SAAS,EAAE,kCAA8B;AAClD,OAAO,EACL,QAAQ,GAWT,uBAAmB;AACpB,OAAO,EAAE,OAAO,EAAE,8BAA0B;AAC5C,OAAO,EACL,WAAW,GAGZ,sCAAkC;AACnC,OAAO,EACL,OAAO,GAgBR,8BAA0B;AAC3B,OAAO,EACL,KAAK,GAUN,oBAAgB;AACjB,OAAO,EACL,SAAS,GAgBV,kCAA8B;AAC/B,OAAO,EACL,QAAQ,GAIT,gCAA4B;AAC7B,OAAO,EAAE,MAAM,EAA0B,qBAAiB;AAC1D,OAAO,EACL,aAAa,GAOd,4BAAwB;AACzB,OAAO,EACL,OAAO,GAaR,8BAA0B;AAC3B,OAAO,EACL,QAAQ,GAST,uBAAmB;AACpB,OAAO,EACL,OAAO,GAWR,sBAAkB;AACnB,OAAO,EAAE,KAAK,EAAgC,0BAAsB;AACpE,OAAO,EACL,KAAK,GAaN,0BAAsB;AACvB,OAAO,EACL,QAAQ,GAWT,gCAA4B;AAC7B,OAAO,EAAE,SAAS,EAAE,kCAA8B"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
export declare class Connections extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Links the caller’s Gmail account through the shared integrations connect.
|
|
7
|
+
* Replaying the same Idempotency-Key (or, during migration, the deprecated
|
|
8
|
+
* `clientRequestId` body field) returns the same mailbox. When Gmail is already
|
|
9
|
+
* active, redirectUrl is null and the mailbox is usable immediately.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const connection =
|
|
14
|
+
* await client.mailboxes.connections.create({
|
|
15
|
+
* provider: 'gmail',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
create(body: ConnectionCreateParams, options?: RequestOptions): APIPromise<ConnectionCreateResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Reports pending, active (with the Gmail address), expired, or removed.
|
|
22
|
+
* connectionId is the mailbox id.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const connection =
|
|
27
|
+
* await client.mailboxes.connections.retrieve(
|
|
28
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
29
|
+
* );
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
retrieve(connectionID: string, options?: RequestOptions): APIPromise<ConnectionRetrieveResponse>;
|
|
33
|
+
}
|
|
34
|
+
export interface ConnectionCreateResponse {
|
|
35
|
+
address: string | null;
|
|
36
|
+
connectionId: string;
|
|
37
|
+
mailboxId: string;
|
|
38
|
+
redirectUrl: string | null;
|
|
39
|
+
status: 'pending' | 'active' | 'expired' | 'removed';
|
|
40
|
+
}
|
|
41
|
+
export interface ConnectionRetrieveResponse {
|
|
42
|
+
address: string | null;
|
|
43
|
+
connectionId: string;
|
|
44
|
+
mailboxId: string;
|
|
45
|
+
redirectUrl: string | null;
|
|
46
|
+
status: 'pending' | 'active' | 'expired' | 'removed';
|
|
47
|
+
}
|
|
48
|
+
export interface ConnectionCreateParams {
|
|
49
|
+
provider: 'gmail';
|
|
50
|
+
/**
|
|
51
|
+
* sha256 hex of the browser-held connect binding secret; forwarded to integrations
|
|
52
|
+
* connect
|
|
53
|
+
*/
|
|
54
|
+
bindingHash?: string;
|
|
55
|
+
/**
|
|
56
|
+
* @deprecated Use the Idempotency-Key header.
|
|
57
|
+
*/
|
|
58
|
+
clientRequestId?: string;
|
|
59
|
+
label?: string;
|
|
60
|
+
}
|
|
61
|
+
export declare namespace Connections {
|
|
62
|
+
export { type ConnectionCreateResponse as ConnectionCreateResponse, type ConnectionRetrieveResponse as ConnectionRetrieveResponse, type ConnectionCreateParams as ConnectionCreateParams, };
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=connections.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connections.d.mts","sourceRoot":"","sources":["../../src/resources/mailboxes/connections.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