@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
|
@@ -102,6 +102,18 @@ import * as TasksAPI from './tasks';
|
|
|
102
102
|
import { TaskListParams, TaskListResponse, Tasks } from './tasks';
|
|
103
103
|
import * as TimezoneAPI from './timezone';
|
|
104
104
|
import { Timezone, TimezoneGetParams, TimezoneGetResponse, TimezoneSetParams } from './timezone';
|
|
105
|
+
import * as TrafficSessionsAPI from './traffic-sessions';
|
|
106
|
+
import {
|
|
107
|
+
TrafficSessionCreateParams,
|
|
108
|
+
TrafficSessionCreateResponse,
|
|
109
|
+
TrafficSessionDeleteParams,
|
|
110
|
+
TrafficSessionDeleteResponse,
|
|
111
|
+
TrafficSessionListParams,
|
|
112
|
+
TrafficSessionListResponse,
|
|
113
|
+
TrafficSessionRetrieveParams,
|
|
114
|
+
TrafficSessionRetrieveResponse,
|
|
115
|
+
TrafficSessions,
|
|
116
|
+
} from './traffic-sessions';
|
|
105
117
|
import * as EsimAPI from './esim/esim';
|
|
106
118
|
import {
|
|
107
119
|
Esim,
|
|
@@ -140,13 +152,13 @@ export class Devices extends APIResource {
|
|
|
140
152
|
kiosk: KioskAPI.Kiosk = new KioskAPI.Kiosk(this._client);
|
|
141
153
|
mediaSessions: MediaSessionsAPI.MediaSessions = new MediaSessionsAPI.MediaSessions(this._client);
|
|
142
154
|
recordings: RecordingsAPI.Recordings = new RecordingsAPI.Recordings(this._client);
|
|
155
|
+
trafficSessions: TrafficSessionsAPI.TrafficSessions = new TrafficSessionsAPI.TrafficSessions(this._client);
|
|
143
156
|
|
|
144
157
|
/**
|
|
145
|
-
* Requests a new device
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
* grace period. The response returns the device and its stream token.
|
|
158
|
+
* Requests a new device from the specification in the request body. Optional query
|
|
159
|
+
* parameters select the canonical device type, country, billing mode, and base
|
|
160
|
+
* profile. Returns the device, its resolved billing strategy, and its stream
|
|
161
|
+
* token.
|
|
150
162
|
*/
|
|
151
163
|
create(params: DeviceCreateParams, options?: RequestOptions): APIPromise<DeviceCreateResponse> {
|
|
152
164
|
const { billing, query_country, deviceType, profileId, ...body } = params;
|
|
@@ -177,7 +189,11 @@ export class Devices extends APIResource {
|
|
|
177
189
|
}
|
|
178
190
|
|
|
179
191
|
/**
|
|
180
|
-
*
|
|
192
|
+
* Deprecated: use GET /devices/summary instead. Returns the number of active
|
|
193
|
+
* claimed devices for the user, broken down by device type, in the legacy response
|
|
194
|
+
* shape.
|
|
195
|
+
*
|
|
196
|
+
* @deprecated
|
|
181
197
|
*/
|
|
182
198
|
count(options?: RequestOptions): APIPromise<DeviceCountResponse> {
|
|
183
199
|
return this._client.get('/devices/count', options);
|
|
@@ -231,10 +247,9 @@ export class Devices extends APIResource {
|
|
|
231
247
|
}
|
|
232
248
|
|
|
233
249
|
/**
|
|
234
|
-
* Wakes a parked device:
|
|
235
|
-
*
|
|
236
|
-
*
|
|
237
|
-
* no-op ready transition.
|
|
250
|
+
* Wakes a parked device: backend readiness and any required capacity are
|
|
251
|
+
* preflighted, the same device starts running again, and per-minute billing
|
|
252
|
+
* resumes. On a device that is not parked this is a no-op ready transition.
|
|
238
253
|
*/
|
|
239
254
|
resume(deviceID: string, options?: RequestOptions): APIPromise<void> {
|
|
240
255
|
return this._client.post(path`/devices/${deviceID}/resume`, {
|
|
@@ -281,12 +296,27 @@ export class Devices extends APIResource {
|
|
|
281
296
|
});
|
|
282
297
|
}
|
|
283
298
|
|
|
299
|
+
/**
|
|
300
|
+
* Returns the total number of the user's devices and counts grouped by current
|
|
301
|
+
* state and device type.
|
|
302
|
+
*/
|
|
303
|
+
summary(
|
|
304
|
+
query: DeviceSummaryParams | null | undefined = {},
|
|
305
|
+
options?: RequestOptions,
|
|
306
|
+
): APIPromise<DeviceSummaryResponse> {
|
|
307
|
+
return this._client.get('/devices/summary', { query, ...options });
|
|
308
|
+
}
|
|
309
|
+
|
|
284
310
|
/**
|
|
285
311
|
* Terminates the device and releases its resources. Termination can be scheduled
|
|
286
312
|
* for a future time or chained from a previous device via the request body, in
|
|
287
313
|
* which case a service key is required.
|
|
288
314
|
*/
|
|
289
|
-
terminate(
|
|
315
|
+
terminate(
|
|
316
|
+
deviceID: string,
|
|
317
|
+
body: DeviceTerminateParams | null | undefined = {},
|
|
318
|
+
options?: RequestOptions,
|
|
319
|
+
): APIPromise<void> {
|
|
290
320
|
return this._client.delete(path`/devices/${deviceID}`, {
|
|
291
321
|
body,
|
|
292
322
|
...options,
|
|
@@ -315,6 +345,11 @@ export interface DeviceCreateResponse {
|
|
|
315
345
|
|
|
316
346
|
name: string;
|
|
317
347
|
|
|
348
|
+
/**
|
|
349
|
+
* Operating system the device runs.
|
|
350
|
+
*/
|
|
351
|
+
platform: 'android' | 'ios';
|
|
352
|
+
|
|
318
353
|
state: string;
|
|
319
354
|
|
|
320
355
|
stateMessage: string;
|
|
@@ -361,6 +396,11 @@ export interface DeviceRetrieveResponse {
|
|
|
361
396
|
|
|
362
397
|
name: string;
|
|
363
398
|
|
|
399
|
+
/**
|
|
400
|
+
* Operating system the device runs.
|
|
401
|
+
*/
|
|
402
|
+
platform: 'android' | 'ios';
|
|
403
|
+
|
|
364
404
|
state: string;
|
|
365
405
|
|
|
366
406
|
stateMessage: string;
|
|
@@ -419,6 +459,11 @@ export namespace DeviceListResponse {
|
|
|
419
459
|
|
|
420
460
|
name: string;
|
|
421
461
|
|
|
462
|
+
/**
|
|
463
|
+
* Operating system the device runs.
|
|
464
|
+
*/
|
|
465
|
+
platform: 'android' | 'ios';
|
|
466
|
+
|
|
422
467
|
state: string;
|
|
423
468
|
|
|
424
469
|
stateMessage: string;
|
|
@@ -543,6 +588,8 @@ export namespace DeviceRetrieveCapabilitiesResponse {
|
|
|
543
588
|
|
|
544
589
|
proxy: boolean;
|
|
545
590
|
|
|
591
|
+
recording: boolean;
|
|
592
|
+
|
|
546
593
|
reset: boolean;
|
|
547
594
|
|
|
548
595
|
shell: boolean;
|
|
@@ -554,6 +601,8 @@ export namespace DeviceRetrieveCapabilitiesResponse {
|
|
|
554
601
|
stream: boolean;
|
|
555
602
|
|
|
556
603
|
time: boolean;
|
|
604
|
+
|
|
605
|
+
trafficInspection: boolean;
|
|
557
606
|
}
|
|
558
607
|
}
|
|
559
608
|
|
|
@@ -568,6 +617,11 @@ export interface DeviceSetNameResponse {
|
|
|
568
617
|
|
|
569
618
|
name: string;
|
|
570
619
|
|
|
620
|
+
/**
|
|
621
|
+
* Operating system the device runs.
|
|
622
|
+
*/
|
|
623
|
+
platform: 'android' | 'ios';
|
|
624
|
+
|
|
571
625
|
state: string;
|
|
572
626
|
|
|
573
627
|
stateMessage: string;
|
|
@@ -603,6 +657,19 @@ export interface DeviceSetNameResponse {
|
|
|
603
657
|
userId?: string;
|
|
604
658
|
}
|
|
605
659
|
|
|
660
|
+
export interface DeviceSummaryResponse {
|
|
661
|
+
byState: { [key: string]: number };
|
|
662
|
+
|
|
663
|
+
byType: { [key: string]: number };
|
|
664
|
+
|
|
665
|
+
total: number;
|
|
666
|
+
|
|
667
|
+
/**
|
|
668
|
+
* A URL to the JSON Schema for this object.
|
|
669
|
+
*/
|
|
670
|
+
$schema?: string;
|
|
671
|
+
}
|
|
672
|
+
|
|
606
673
|
export interface DeviceWaitReadyResponse {
|
|
607
674
|
id: string;
|
|
608
675
|
|
|
@@ -614,6 +681,11 @@ export interface DeviceWaitReadyResponse {
|
|
|
614
681
|
|
|
615
682
|
name: string;
|
|
616
683
|
|
|
684
|
+
/**
|
|
685
|
+
* Operating system the device runs.
|
|
686
|
+
*/
|
|
687
|
+
platform: 'android' | 'ios';
|
|
688
|
+
|
|
617
689
|
state: string;
|
|
618
690
|
|
|
619
691
|
stateMessage: string;
|
|
@@ -651,10 +723,13 @@ export interface DeviceWaitReadyResponse {
|
|
|
651
723
|
|
|
652
724
|
export interface DeviceCreateParams {
|
|
653
725
|
/**
|
|
654
|
-
* Query param: Billing mode. 'auto'
|
|
655
|
-
*
|
|
656
|
-
*
|
|
657
|
-
*
|
|
726
|
+
* Query param: Billing mode. 'auto' tries subscription first, then minute billing
|
|
727
|
+
* if no subscription entitlement exists or all subscription slots are in use,
|
|
728
|
+
* provided minute billing is enabled. When subscription billing is disabled, auto
|
|
729
|
+
* uses minutes directly. Billing-service failures never trigger fallback.
|
|
730
|
+
* 'subscription' requires an available subscription slot and never falls back.
|
|
731
|
+
* 'minute' uses minute billing only, subject to balance and concurrency checks.
|
|
732
|
+
* Modes depend on the device type's billing configuration.
|
|
658
733
|
*/
|
|
659
734
|
billing?: 'auto' | 'subscription' | 'minute';
|
|
660
735
|
|
|
@@ -665,18 +740,12 @@ export interface DeviceCreateParams {
|
|
|
665
740
|
query_country?: string;
|
|
666
741
|
|
|
667
742
|
/**
|
|
668
|
-
* Query param:
|
|
669
|
-
*
|
|
670
|
-
*
|
|
671
|
-
*
|
|
672
|
-
* android_emulator.
|
|
743
|
+
* Query param: Use android*cloud_phone for a cloud Android phone. Only canonical
|
|
744
|
+
* identifiers are accepted. Other backends are deployment-specific; recognized but
|
|
745
|
+
* unavailable types return DEVICE_TYPE_UNAVAILABLE (422). Retired dedicated*\*
|
|
746
|
+
* aliases are rejected with a canonical replacement.
|
|
673
747
|
*/
|
|
674
|
-
deviceType?:
|
|
675
|
-
| 'android_cloud_phone'
|
|
676
|
-
| 'dedicated_premium_device'
|
|
677
|
-
| 'dedicated_physical_device'
|
|
678
|
-
| 'dedicated_ios_device'
|
|
679
|
-
| 'dedicated_emulated_device';
|
|
748
|
+
deviceType?: string;
|
|
680
749
|
|
|
681
750
|
/**
|
|
682
751
|
* Query param: Profile ID to use as device spec
|
|
@@ -800,6 +869,12 @@ export interface DeviceListParams {
|
|
|
800
869
|
|
|
801
870
|
pageSize?: number;
|
|
802
871
|
|
|
872
|
+
/**
|
|
873
|
+
* Filter by the device's platform as served in the platform field (runtime,
|
|
874
|
+
* announced, else type-derived).
|
|
875
|
+
*/
|
|
876
|
+
platform?: 'android' | 'ios';
|
|
877
|
+
|
|
803
878
|
providerId?: string;
|
|
804
879
|
|
|
805
880
|
state?: Array<
|
|
@@ -816,17 +891,16 @@ export interface DeviceListParams {
|
|
|
816
891
|
> | null;
|
|
817
892
|
|
|
818
893
|
/**
|
|
819
|
-
*
|
|
820
|
-
*
|
|
821
|
-
* maps to android_physical_phone, dedicated_ios_device maps to ios_stealth_phone,
|
|
822
|
-
* and dedicated_emulated_device maps to android_emulator.
|
|
894
|
+
* Canonical device type. Retired dedicated\_\* aliases are no longer accepted.
|
|
895
|
+
* Availability depends on the deployment.
|
|
823
896
|
*/
|
|
824
897
|
type?:
|
|
825
898
|
| 'android_cloud_phone'
|
|
826
|
-
| '
|
|
827
|
-
| '
|
|
828
|
-
| '
|
|
829
|
-
| '
|
|
899
|
+
| 'android_physical_phone'
|
|
900
|
+
| 'ios_stealth_phone'
|
|
901
|
+
| 'android_emulator'
|
|
902
|
+
| 'ios_simulator'
|
|
903
|
+
| 'device_slot';
|
|
830
904
|
}
|
|
831
905
|
|
|
832
906
|
export interface DeviceFingerprintParams {
|
|
@@ -837,6 +911,21 @@ export interface DeviceSetNameParams {
|
|
|
837
911
|
name: string;
|
|
838
912
|
}
|
|
839
913
|
|
|
914
|
+
export interface DeviceSummaryParams {
|
|
915
|
+
state?: Array<
|
|
916
|
+
| 'creating'
|
|
917
|
+
| 'assigned'
|
|
918
|
+
| 'ready'
|
|
919
|
+
| 'rebooting'
|
|
920
|
+
| 'migrating'
|
|
921
|
+
| 'resetting'
|
|
922
|
+
| 'terminated'
|
|
923
|
+
| 'maintenance'
|
|
924
|
+
| 'stopped'
|
|
925
|
+
| 'unknown'
|
|
926
|
+
> | null;
|
|
927
|
+
}
|
|
928
|
+
|
|
840
929
|
export interface DeviceTerminateParams {
|
|
841
930
|
previousDeviceId?: string;
|
|
842
931
|
|
|
@@ -862,6 +951,7 @@ Devices.Browser = Browser;
|
|
|
862
951
|
Devices.Kiosk = Kiosk;
|
|
863
952
|
Devices.MediaSessions = MediaSessions;
|
|
864
953
|
Devices.Recordings = Recordings;
|
|
954
|
+
Devices.TrafficSessions = TrafficSessions;
|
|
865
955
|
|
|
866
956
|
export declare namespace Devices {
|
|
867
957
|
export {
|
|
@@ -872,11 +962,13 @@ export declare namespace Devices {
|
|
|
872
962
|
type DeviceFingerprintResponse as DeviceFingerprintResponse,
|
|
873
963
|
type DeviceRetrieveCapabilitiesResponse as DeviceRetrieveCapabilitiesResponse,
|
|
874
964
|
type DeviceSetNameResponse as DeviceSetNameResponse,
|
|
965
|
+
type DeviceSummaryResponse as DeviceSummaryResponse,
|
|
875
966
|
type DeviceWaitReadyResponse as DeviceWaitReadyResponse,
|
|
876
967
|
type DeviceCreateParams as DeviceCreateParams,
|
|
877
968
|
type DeviceListParams as DeviceListParams,
|
|
878
969
|
type DeviceFingerprintParams as DeviceFingerprintParams,
|
|
879
970
|
type DeviceSetNameParams as DeviceSetNameParams,
|
|
971
|
+
type DeviceSummaryParams as DeviceSummaryParams,
|
|
880
972
|
type DeviceTerminateParams as DeviceTerminateParams,
|
|
881
973
|
};
|
|
882
974
|
|
|
@@ -1029,4 +1121,16 @@ export declare namespace Devices {
|
|
|
1029
1121
|
type RecordingTrajectoryParams as RecordingTrajectoryParams,
|
|
1030
1122
|
type RecordingVideoParams as RecordingVideoParams,
|
|
1031
1123
|
};
|
|
1124
|
+
|
|
1125
|
+
export {
|
|
1126
|
+
TrafficSessions as TrafficSessions,
|
|
1127
|
+
type TrafficSessionCreateResponse as TrafficSessionCreateResponse,
|
|
1128
|
+
type TrafficSessionRetrieveResponse as TrafficSessionRetrieveResponse,
|
|
1129
|
+
type TrafficSessionListResponse as TrafficSessionListResponse,
|
|
1130
|
+
type TrafficSessionDeleteResponse as TrafficSessionDeleteResponse,
|
|
1131
|
+
type TrafficSessionCreateParams as TrafficSessionCreateParams,
|
|
1132
|
+
type TrafficSessionRetrieveParams as TrafficSessionRetrieveParams,
|
|
1133
|
+
type TrafficSessionListParams as TrafficSessionListParams,
|
|
1134
|
+
type TrafficSessionDeleteParams as TrafficSessionDeleteParams,
|
|
1135
|
+
};
|
|
1032
1136
|
}
|
|
@@ -39,11 +39,13 @@ export {
|
|
|
39
39
|
type DeviceFingerprintResponse,
|
|
40
40
|
type DeviceRetrieveCapabilitiesResponse,
|
|
41
41
|
type DeviceSetNameResponse,
|
|
42
|
+
type DeviceSummaryResponse,
|
|
42
43
|
type DeviceWaitReadyResponse,
|
|
43
44
|
type DeviceCreateParams,
|
|
44
45
|
type DeviceListParams,
|
|
45
46
|
type DeviceFingerprintParams,
|
|
46
47
|
type DeviceSetNameParams,
|
|
48
|
+
type DeviceSummaryParams,
|
|
47
49
|
type DeviceTerminateParams,
|
|
48
50
|
} from './devices';
|
|
49
51
|
export {
|
|
@@ -135,3 +137,14 @@ export {
|
|
|
135
137
|
type TimezoneGetParams,
|
|
136
138
|
type TimezoneSetParams,
|
|
137
139
|
} from './timezone';
|
|
140
|
+
export {
|
|
141
|
+
TrafficSessions,
|
|
142
|
+
type TrafficSessionCreateResponse,
|
|
143
|
+
type TrafficSessionRetrieveResponse,
|
|
144
|
+
type TrafficSessionListResponse,
|
|
145
|
+
type TrafficSessionDeleteResponse,
|
|
146
|
+
type TrafficSessionCreateParams,
|
|
147
|
+
type TrafficSessionRetrieveParams,
|
|
148
|
+
type TrafficSessionListParams,
|
|
149
|
+
type TrafficSessionDeleteParams,
|
|
150
|
+
} from './traffic-sessions';
|
|
@@ -51,9 +51,9 @@ export class Keyboard extends APIResource {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
|
-
* Types
|
|
55
|
-
*
|
|
56
|
-
*
|
|
54
|
+
* Types text into the focused input field. The optional completionMode defaults to
|
|
55
|
+
* accepted for backwards-compatible low latency; committed additionally waits for
|
|
56
|
+
* the complete text or a quiescent UI state.
|
|
57
57
|
*/
|
|
58
58
|
write(deviceID: string, params: KeyboardWriteParams, options?: RequestOptions): APIPromise<void> {
|
|
59
59
|
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
@@ -100,6 +100,13 @@ export interface KeyboardWriteParams {
|
|
|
100
100
|
*/
|
|
101
101
|
clear?: boolean;
|
|
102
102
|
|
|
103
|
+
/**
|
|
104
|
+
* Body param: Completion guarantee. accepted returns after the input provider
|
|
105
|
+
* accepts the operation; committed additionally waits for the focused UI state to
|
|
106
|
+
* contain the complete text or become quiescent.
|
|
107
|
+
*/
|
|
108
|
+
completionMode?: 'accepted' | 'committed';
|
|
109
|
+
|
|
103
110
|
/**
|
|
104
111
|
* Body param: Per-character mistake rate for humantouch typing. -1 uses server
|
|
105
112
|
* default.
|
|
@@ -320,8 +320,22 @@ export interface RecordingDeleteParams {
|
|
|
320
320
|
export interface RecordingStartParams {
|
|
321
321
|
name?: string;
|
|
322
322
|
|
|
323
|
+
/**
|
|
324
|
+
* Capture quality from 1 (lowest) to 10 (full stream quality). Defaults to the
|
|
325
|
+
* device's full quality. Honored by devices recording through the portal stream
|
|
326
|
+
* bridge.
|
|
327
|
+
*/
|
|
328
|
+
quality?: number;
|
|
329
|
+
|
|
323
330
|
retentionDays?: number;
|
|
324
331
|
|
|
332
|
+
/**
|
|
333
|
+
* Artifacts to capture: trajectory (input actions; on portal stream-bridge devices
|
|
334
|
+
* only when the handset announces trajectory capture), video, and audio (captured
|
|
335
|
+
* into the video artifact, so it requires video; honored by portal stream-bridge
|
|
336
|
+
* recorders). Defaults to trajectory and video, narrowed to what the device
|
|
337
|
+
* produces.
|
|
338
|
+
*/
|
|
325
339
|
types?: Array<string> | null;
|
|
326
340
|
}
|
|
327
341
|
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as Shared from '../shared';
|
|
5
|
+
import { APIPromise } from '../../core/api-promise';
|
|
6
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
7
|
+
import { path } from '../../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class TrafficSessions extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Starts one live-only decoded HTTP/1.1, HTTP/2, HTTP/3 and WebSocket traffic
|
|
12
|
+
* session.
|
|
13
|
+
*/
|
|
14
|
+
create(
|
|
15
|
+
deviceID: string,
|
|
16
|
+
body: TrafficSessionCreateParams,
|
|
17
|
+
options?: RequestOptions,
|
|
18
|
+
): APIPromise<TrafficSessionCreateResponse> {
|
|
19
|
+
return this._client.post(path`/devices/${deviceID}/traffic/sessions`, { body, ...options });
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Returns status and the device stream credential for a live session.
|
|
24
|
+
*/
|
|
25
|
+
retrieve(
|
|
26
|
+
sessionID: string,
|
|
27
|
+
params: TrafficSessionRetrieveParams,
|
|
28
|
+
options?: RequestOptions,
|
|
29
|
+
): APIPromise<TrafficSessionRetrieveResponse> {
|
|
30
|
+
const { deviceId } = params;
|
|
31
|
+
return this._client.get(path`/devices/${deviceId}/traffic/sessions/${sessionID}`, options);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* List device traffic sessions
|
|
36
|
+
*/
|
|
37
|
+
list(
|
|
38
|
+
deviceID: string,
|
|
39
|
+
query: TrafficSessionListParams | null | undefined = {},
|
|
40
|
+
options?: RequestOptions,
|
|
41
|
+
): APIPromise<TrafficSessionListResponse> {
|
|
42
|
+
return this._client.get(path`/devices/${deviceID}/traffic/sessions`, { query, ...options });
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Stop device traffic inspection
|
|
47
|
+
*/
|
|
48
|
+
delete(
|
|
49
|
+
sessionID: string,
|
|
50
|
+
params: TrafficSessionDeleteParams,
|
|
51
|
+
options?: RequestOptions,
|
|
52
|
+
): APIPromise<TrafficSessionDeleteResponse> {
|
|
53
|
+
const { deviceId } = params;
|
|
54
|
+
return this._client.delete(path`/devices/${deviceId}/traffic/sessions/${sessionID}`, options);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface TrafficSessionCreateResponse {
|
|
59
|
+
id: string;
|
|
60
|
+
|
|
61
|
+
createdAt: string;
|
|
62
|
+
|
|
63
|
+
deviceId: string;
|
|
64
|
+
|
|
65
|
+
expiresAt: string;
|
|
66
|
+
|
|
67
|
+
maxBodyBytes: number;
|
|
68
|
+
|
|
69
|
+
retention: 'none';
|
|
70
|
+
|
|
71
|
+
state: 'starting' | 'active' | 'stopping' | 'stopped' | 'failed' | 'expired';
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* A URL to the JSON Schema for this object.
|
|
75
|
+
*/
|
|
76
|
+
$schema?: string;
|
|
77
|
+
|
|
78
|
+
error?: TrafficSessionCreateResponse.Error;
|
|
79
|
+
|
|
80
|
+
startedAt?: string;
|
|
81
|
+
|
|
82
|
+
stoppedAt?: string;
|
|
83
|
+
|
|
84
|
+
stream?: TrafficSessionCreateResponse.Stream;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export namespace TrafficSessionCreateResponse {
|
|
88
|
+
export interface Error {
|
|
89
|
+
code: string;
|
|
90
|
+
|
|
91
|
+
message: string;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export interface Stream {
|
|
95
|
+
token: string;
|
|
96
|
+
|
|
97
|
+
protocol: string;
|
|
98
|
+
|
|
99
|
+
url: string;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export interface TrafficSessionRetrieveResponse {
|
|
104
|
+
id: string;
|
|
105
|
+
|
|
106
|
+
createdAt: string;
|
|
107
|
+
|
|
108
|
+
deviceId: string;
|
|
109
|
+
|
|
110
|
+
expiresAt: string;
|
|
111
|
+
|
|
112
|
+
maxBodyBytes: number;
|
|
113
|
+
|
|
114
|
+
retention: 'none';
|
|
115
|
+
|
|
116
|
+
state: 'starting' | 'active' | 'stopping' | 'stopped' | 'failed' | 'expired';
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* A URL to the JSON Schema for this object.
|
|
120
|
+
*/
|
|
121
|
+
$schema?: string;
|
|
122
|
+
|
|
123
|
+
error?: TrafficSessionRetrieveResponse.Error;
|
|
124
|
+
|
|
125
|
+
startedAt?: string;
|
|
126
|
+
|
|
127
|
+
stoppedAt?: string;
|
|
128
|
+
|
|
129
|
+
stream?: TrafficSessionRetrieveResponse.Stream;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export namespace TrafficSessionRetrieveResponse {
|
|
133
|
+
export interface Error {
|
|
134
|
+
code: string;
|
|
135
|
+
|
|
136
|
+
message: string;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export interface Stream {
|
|
140
|
+
token: string;
|
|
141
|
+
|
|
142
|
+
protocol: string;
|
|
143
|
+
|
|
144
|
+
url: string;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export interface TrafficSessionListResponse {
|
|
149
|
+
items: Array<TrafficSessionListResponse.Item> | null;
|
|
150
|
+
|
|
151
|
+
pagination: Shared.Meta;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* A URL to the JSON Schema for this object.
|
|
155
|
+
*/
|
|
156
|
+
$schema?: string;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export namespace TrafficSessionListResponse {
|
|
160
|
+
export interface Item {
|
|
161
|
+
id: string;
|
|
162
|
+
|
|
163
|
+
createdAt: string;
|
|
164
|
+
|
|
165
|
+
deviceId: string;
|
|
166
|
+
|
|
167
|
+
expiresAt: string;
|
|
168
|
+
|
|
169
|
+
maxBodyBytes: number;
|
|
170
|
+
|
|
171
|
+
retention: 'none';
|
|
172
|
+
|
|
173
|
+
state: 'starting' | 'active' | 'stopping' | 'stopped' | 'failed' | 'expired';
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* A URL to the JSON Schema for this object.
|
|
177
|
+
*/
|
|
178
|
+
$schema?: string;
|
|
179
|
+
|
|
180
|
+
error?: Item.Error;
|
|
181
|
+
|
|
182
|
+
startedAt?: string;
|
|
183
|
+
|
|
184
|
+
stoppedAt?: string;
|
|
185
|
+
|
|
186
|
+
stream?: Item.Stream;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export namespace Item {
|
|
190
|
+
export interface Error {
|
|
191
|
+
code: string;
|
|
192
|
+
|
|
193
|
+
message: string;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export interface Stream {
|
|
197
|
+
token: string;
|
|
198
|
+
|
|
199
|
+
protocol: string;
|
|
200
|
+
|
|
201
|
+
url: string;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export interface TrafficSessionDeleteResponse {
|
|
207
|
+
id: string;
|
|
208
|
+
|
|
209
|
+
createdAt: string;
|
|
210
|
+
|
|
211
|
+
deviceId: string;
|
|
212
|
+
|
|
213
|
+
expiresAt: string;
|
|
214
|
+
|
|
215
|
+
maxBodyBytes: number;
|
|
216
|
+
|
|
217
|
+
retention: 'none';
|
|
218
|
+
|
|
219
|
+
state: 'starting' | 'active' | 'stopping' | 'stopped' | 'failed' | 'expired';
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* A URL to the JSON Schema for this object.
|
|
223
|
+
*/
|
|
224
|
+
$schema?: string;
|
|
225
|
+
|
|
226
|
+
error?: TrafficSessionDeleteResponse.Error;
|
|
227
|
+
|
|
228
|
+
startedAt?: string;
|
|
229
|
+
|
|
230
|
+
stoppedAt?: string;
|
|
231
|
+
|
|
232
|
+
stream?: TrafficSessionDeleteResponse.Stream;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export namespace TrafficSessionDeleteResponse {
|
|
236
|
+
export interface Error {
|
|
237
|
+
code: string;
|
|
238
|
+
|
|
239
|
+
message: string;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export interface Stream {
|
|
243
|
+
token: string;
|
|
244
|
+
|
|
245
|
+
protocol: string;
|
|
246
|
+
|
|
247
|
+
url: string;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export interface TrafficSessionCreateParams {
|
|
252
|
+
expiresInSeconds?: number;
|
|
253
|
+
|
|
254
|
+
maxBodyBytes?: number;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export interface TrafficSessionRetrieveParams {
|
|
258
|
+
deviceId: string;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export interface TrafficSessionListParams {
|
|
262
|
+
page?: number;
|
|
263
|
+
|
|
264
|
+
pageSize?: number;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export interface TrafficSessionDeleteParams {
|
|
268
|
+
deviceId: string;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export declare namespace TrafficSessions {
|
|
272
|
+
export {
|
|
273
|
+
type TrafficSessionCreateResponse as TrafficSessionCreateResponse,
|
|
274
|
+
type TrafficSessionRetrieveResponse as TrafficSessionRetrieveResponse,
|
|
275
|
+
type TrafficSessionListResponse as TrafficSessionListResponse,
|
|
276
|
+
type TrafficSessionDeleteResponse as TrafficSessionDeleteResponse,
|
|
277
|
+
type TrafficSessionCreateParams as TrafficSessionCreateParams,
|
|
278
|
+
type TrafficSessionRetrieveParams as TrafficSessionRetrieveParams,
|
|
279
|
+
type TrafficSessionListParams as TrafficSessionListParams,
|
|
280
|
+
type TrafficSessionDeleteParams as TrafficSessionDeleteParams,
|
|
281
|
+
};
|
|
282
|
+
}
|