@mobilerun/sdk 5.2.0 → 5.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/README.md +15 -12
- package/client.d.mts +33 -15
- package/client.d.mts.map +1 -1
- package/client.d.ts +33 -15
- package/client.d.ts.map +1 -1
- package/client.js +21 -3
- package/client.js.map +1 -1
- package/client.mjs +21 -3
- package/client.mjs.map +1 -1
- package/package.json +2 -2
- package/resources/agents.d.mts +27 -0
- package/resources/agents.d.mts.map +1 -0
- package/resources/agents.d.ts +27 -0
- package/resources/agents.d.ts.map +1 -0
- package/resources/agents.js +15 -0
- package/resources/agents.js.map +1 -0
- package/resources/agents.mjs +11 -0
- package/resources/agents.mjs.map +1 -0
- package/resources/app-events/app-events.d.mts +81 -0
- package/resources/app-events/app-events.d.mts.map +1 -0
- package/resources/app-events/app-events.d.ts +81 -0
- package/resources/app-events/app-events.d.ts.map +1 -0
- package/resources/app-events/app-events.js +33 -0
- package/resources/app-events/app-events.js.map +1 -0
- package/resources/app-events/app-events.mjs +28 -0
- package/resources/app-events/app-events.mjs.map +1 -0
- package/resources/app-events/catalog.d.mts +64 -0
- package/resources/app-events/catalog.d.mts.map +1 -0
- package/resources/app-events/catalog.d.ts +64 -0
- package/resources/app-events/catalog.d.ts.map +1 -0
- package/resources/app-events/catalog.js +25 -0
- package/resources/app-events/catalog.js.map +1 -0
- package/resources/app-events/catalog.mjs +21 -0
- package/resources/app-events/catalog.mjs.map +1 -0
- package/resources/app-events/index.d.mts +3 -0
- package/resources/app-events/index.d.mts.map +1 -0
- package/resources/app-events/index.d.ts +3 -0
- package/resources/app-events/index.d.ts.map +1 -0
- package/resources/{workflows/events → app-events}/index.js +3 -3
- package/resources/app-events/index.js.map +1 -0
- package/resources/{workflows/events → app-events}/index.mjs +1 -1
- package/resources/app-events/index.mjs.map +1 -0
- package/resources/app-events.d.mts +2 -0
- package/resources/app-events.d.mts.map +1 -0
- package/resources/app-events.d.ts +2 -0
- package/resources/app-events.d.ts.map +1 -0
- package/resources/app-events.js +6 -0
- package/resources/app-events.js.map +1 -0
- package/resources/app-events.mjs +3 -0
- package/resources/app-events.mjs.map +1 -0
- package/resources/apps.d.mts +32 -1
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +32 -1
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +12 -0
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +12 -0
- package/resources/apps.mjs.map +1 -1
- package/resources/credentials/credentials.d.mts +24 -4
- package/resources/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/credentials.d.ts +24 -4
- package/resources/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/credentials.js.map +1 -1
- package/resources/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/index.d.mts +1 -1
- package/resources/credentials/index.d.mts.map +1 -1
- package/resources/credentials/index.d.ts +1 -1
- package/resources/credentials/index.d.ts.map +1 -1
- package/resources/credentials/index.js.map +1 -1
- package/resources/credentials/index.mjs.map +1 -1
- package/resources/credentials/packages/credentials/credentials.d.mts +67 -23
- package/resources/credentials/packages/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.d.ts +67 -23
- package/resources/credentials/packages/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.js.map +1 -1
- package/resources/credentials/packages/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.mts +66 -4
- package/resources/credentials/packages/credentials/fields.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.ts +66 -4
- package/resources/credentials/packages/credentials/fields.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/fields.js.map +1 -1
- package/resources/credentials/packages/credentials/fields.mjs.map +1 -1
- package/resources/credentials/packages/credentials/index.d.mts +1 -1
- package/resources/credentials/packages/credentials/index.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/index.d.ts +1 -1
- package/resources/credentials/packages/credentials/index.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/index.js.map +1 -1
- package/resources/credentials/packages/credentials/index.mjs.map +1 -1
- package/resources/credentials/packages/index.d.mts +2 -2
- package/resources/credentials/packages/index.d.mts.map +1 -1
- package/resources/credentials/packages/index.d.ts +2 -2
- package/resources/credentials/packages/index.d.ts.map +1 -1
- package/resources/credentials/packages/index.js.map +1 -1
- package/resources/credentials/packages/index.mjs.map +1 -1
- package/resources/credentials/packages/packages.d.mts +39 -4
- package/resources/credentials/packages/packages.d.mts.map +1 -1
- package/resources/credentials/packages/packages.d.ts +39 -4
- package/resources/credentials/packages/packages.d.ts.map +1 -1
- package/resources/credentials/packages/packages.js +8 -0
- package/resources/credentials/packages/packages.js.map +1 -1
- package/resources/credentials/packages/packages.mjs +8 -0
- package/resources/credentials/packages/packages.mjs.map +1 -1
- package/resources/devices/apps.d.mts +81 -1
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +81 -1
- package/resources/devices/apps.d.ts.map +1 -1
- package/resources/devices/apps.js +59 -0
- package/resources/devices/apps.js.map +1 -1
- package/resources/devices/apps.mjs +59 -0
- package/resources/devices/apps.mjs.map +1 -1
- package/resources/devices/browser.d.mts +41 -0
- package/resources/devices/browser.d.mts.map +1 -0
- package/resources/devices/browser.d.ts +41 -0
- package/resources/devices/browser.d.ts.map +1 -0
- package/resources/devices/browser.js +31 -0
- package/resources/devices/browser.js.map +1 -0
- package/resources/devices/browser.mjs +27 -0
- package/resources/devices/browser.mjs.map +1 -0
- package/resources/devices/deep-link.d.mts +41 -0
- package/resources/devices/deep-link.d.mts.map +1 -0
- package/resources/devices/deep-link.d.ts +41 -0
- package/resources/devices/deep-link.d.ts.map +1 -0
- package/resources/devices/deep-link.js +33 -0
- package/resources/devices/deep-link.js.map +1 -0
- package/resources/devices/deep-link.mjs +29 -0
- package/resources/devices/deep-link.mjs.map +1 -0
- package/resources/devices/devices.d.mts +209 -19
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +209 -19
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +55 -2
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +55 -2
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/esim/apn.d.mts +95 -0
- package/resources/devices/esim/apn.d.mts.map +1 -0
- package/resources/devices/esim/apn.d.ts +95 -0
- package/resources/devices/esim/apn.d.ts.map +1 -0
- package/resources/devices/esim/apn.js +70 -0
- package/resources/devices/esim/apn.js.map +1 -0
- package/resources/devices/esim/apn.mjs +66 -0
- package/resources/devices/esim/apn.mjs.map +1 -0
- package/resources/devices/esim/esim.d.mts +144 -0
- package/resources/devices/esim/esim.d.mts.map +1 -0
- package/resources/devices/esim/esim.d.ts +144 -0
- package/resources/devices/esim/esim.d.ts.map +1 -0
- package/resources/devices/esim/esim.js +131 -0
- package/resources/devices/esim/esim.js.map +1 -0
- package/resources/devices/esim/esim.mjs +126 -0
- package/resources/devices/esim/esim.mjs.map +1 -0
- package/resources/devices/esim/index.d.mts +3 -0
- package/resources/devices/esim/index.d.mts.map +1 -0
- package/resources/devices/esim/index.d.ts +3 -0
- package/resources/devices/esim/index.d.ts.map +1 -0
- package/resources/devices/esim/index.js +9 -0
- package/resources/devices/esim/index.js.map +1 -0
- package/resources/devices/esim/index.mjs +4 -0
- package/resources/devices/esim/index.mjs.map +1 -0
- package/resources/devices/esim.d.mts +1 -102
- package/resources/devices/esim.d.mts.map +1 -1
- package/resources/devices/esim.d.ts +1 -102
- package/resources/devices/esim.d.ts.map +1 -1
- package/resources/devices/esim.js +2 -82
- package/resources/devices/esim.js.map +1 -1
- package/resources/devices/esim.mjs +1 -80
- package/resources/devices/esim.mjs.map +1 -1
- package/resources/devices/files.d.mts +31 -29
- package/resources/devices/files.d.mts.map +1 -1
- package/resources/devices/files.d.ts +31 -29
- package/resources/devices/files.d.ts.map +1 -1
- package/resources/devices/index.d.mts +11 -6
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +11 -6
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +13 -3
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +7 -2
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/kiosk.d.mts +32 -0
- package/resources/devices/kiosk.d.mts.map +1 -0
- package/resources/devices/kiosk.d.ts +32 -0
- package/resources/devices/kiosk.d.ts.map +1 -0
- package/resources/devices/kiosk.js +50 -0
- package/resources/devices/kiosk.js.map +1 -0
- package/resources/devices/kiosk.mjs +46 -0
- package/resources/devices/kiosk.mjs.map +1 -0
- package/resources/devices/location.d.mts +9 -1
- package/resources/devices/location.d.mts.map +1 -1
- package/resources/devices/location.d.ts +9 -1
- package/resources/devices/location.d.ts.map +1 -1
- package/resources/devices/location.js +19 -0
- package/resources/devices/location.js.map +1 -1
- package/resources/devices/location.mjs +19 -0
- package/resources/devices/location.mjs.map +1 -1
- package/resources/devices/media-sessions.d.mts +96 -0
- package/resources/devices/media-sessions.d.mts.map +1 -0
- package/resources/devices/media-sessions.d.ts +96 -0
- package/resources/devices/media-sessions.d.ts.map +1 -0
- package/resources/devices/media-sessions.js +50 -0
- package/resources/devices/media-sessions.js.map +1 -0
- package/resources/devices/media-sessions.mjs +46 -0
- package/resources/devices/media-sessions.mjs.map +1 -0
- package/resources/devices/recordings.d.mts +192 -0
- package/resources/devices/recordings.d.mts.map +1 -0
- package/resources/devices/recordings.d.ts +192 -0
- package/resources/devices/recordings.d.ts.map +1 -0
- package/resources/devices/recordings.js +67 -0
- package/resources/devices/recordings.js.map +1 -0
- package/resources/devices/recordings.mjs +63 -0
- package/resources/devices/recordings.mjs.map +1 -0
- package/resources/devices/state.d.mts +6 -7
- package/resources/devices/state.d.mts.map +1 -1
- package/resources/devices/state.d.ts +6 -7
- package/resources/devices/state.d.ts.map +1 -1
- package/resources/devices/state.js.map +1 -1
- package/resources/devices/state.mjs.map +1 -1
- package/resources/devices/tasks.d.mts +8 -2
- package/resources/devices/tasks.d.mts.map +1 -1
- package/resources/devices/tasks.d.ts +8 -2
- package/resources/devices/tasks.d.ts.map +1 -1
- package/resources/devices/tasks.js.map +1 -1
- package/resources/devices/tasks.mjs.map +1 -1
- package/resources/esims/esims.d.mts +566 -0
- package/resources/esims/esims.d.mts.map +1 -0
- package/resources/esims/esims.d.ts +566 -0
- package/resources/esims/esims.d.ts.map +1 -0
- package/resources/esims/esims.js +205 -0
- package/resources/esims/esims.js.map +1 -0
- package/resources/esims/esims.mjs +200 -0
- package/resources/esims/esims.mjs.map +1 -0
- package/resources/esims/index.d.mts +3 -0
- package/resources/esims/index.d.mts.map +1 -0
- package/resources/esims/index.d.ts +3 -0
- package/resources/esims/index.d.ts.map +1 -0
- package/resources/esims/index.js +9 -0
- package/resources/esims/index.js.map +1 -0
- package/resources/esims/index.mjs +4 -0
- package/resources/esims/index.mjs.map +1 -0
- package/resources/esims/messages.d.mts +111 -0
- package/resources/esims/messages.d.mts.map +1 -0
- package/resources/esims/messages.d.ts +111 -0
- package/resources/esims/messages.d.ts.map +1 -0
- package/resources/esims/messages.js +37 -0
- package/resources/esims/messages.js.map +1 -0
- package/resources/esims/messages.mjs +33 -0
- package/resources/esims/messages.mjs.map +1 -0
- package/resources/esims.d.mts +2 -0
- package/resources/esims.d.mts.map +1 -0
- package/resources/esims.d.ts +2 -0
- package/resources/esims.d.ts.map +1 -0
- package/resources/esims.js +6 -0
- package/resources/esims.js.map +1 -0
- package/resources/esims.mjs +3 -0
- package/resources/esims.mjs.map +1 -0
- package/resources/index.d.mts +12 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +12 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +15 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +7 -1
- package/resources/index.mjs.map +1 -1
- package/resources/messages/conversations.d.mts +87 -0
- package/resources/messages/conversations.d.mts.map +1 -0
- package/resources/messages/conversations.d.ts +87 -0
- package/resources/messages/conversations.d.ts.map +1 -0
- package/resources/messages/conversations.js +34 -0
- package/resources/messages/conversations.js.map +1 -0
- package/resources/messages/conversations.mjs +30 -0
- package/resources/messages/conversations.mjs.map +1 -0
- package/resources/messages/index.d.mts +3 -0
- package/resources/messages/index.d.mts.map +1 -0
- package/resources/messages/index.d.ts +3 -0
- package/resources/messages/index.d.ts.map +1 -0
- package/resources/messages/index.js +9 -0
- package/resources/messages/index.js.map +1 -0
- package/resources/messages/index.mjs +4 -0
- package/resources/messages/index.mjs.map +1 -0
- package/resources/messages/messages.d.mts +56 -0
- package/resources/messages/messages.d.mts.map +1 -0
- package/resources/messages/messages.d.ts +56 -0
- package/resources/messages/messages.d.ts.map +1 -0
- package/resources/messages/messages.js +26 -0
- package/resources/messages/messages.js.map +1 -0
- package/resources/messages/messages.mjs +21 -0
- package/resources/messages/messages.mjs.map +1 -0
- package/resources/messages.d.mts +2 -0
- package/resources/messages.d.mts.map +1 -0
- package/resources/messages.d.ts +2 -0
- package/resources/messages.d.ts.map +1 -0
- package/resources/messages.js +6 -0
- package/resources/messages.js.map +1 -0
- package/resources/messages.mjs +3 -0
- package/resources/messages.mjs.map +1 -0
- package/resources/notifications.d.mts +86 -0
- package/resources/notifications.d.mts.map +1 -0
- package/resources/notifications.d.ts +86 -0
- package/resources/notifications.d.ts.map +1 -0
- package/resources/notifications.js +55 -0
- package/resources/notifications.js.map +1 -0
- package/resources/notifications.mjs +51 -0
- package/resources/notifications.mjs.map +1 -0
- package/resources/numbers/index.d.mts +3 -0
- package/resources/numbers/index.d.mts.map +1 -0
- package/resources/numbers/index.d.ts +3 -0
- package/resources/numbers/index.d.ts.map +1 -0
- package/resources/numbers/index.js +9 -0
- package/resources/numbers/index.js.map +1 -0
- package/resources/numbers/index.mjs +4 -0
- package/resources/numbers/index.mjs.map +1 -0
- package/resources/numbers/messages.d.mts +60 -0
- package/resources/numbers/messages.d.mts.map +1 -0
- package/resources/numbers/messages.d.ts +60 -0
- package/resources/numbers/messages.d.ts.map +1 -0
- package/resources/numbers/messages.js +25 -0
- package/resources/numbers/messages.js.map +1 -0
- package/resources/numbers/messages.mjs +21 -0
- package/resources/numbers/messages.mjs.map +1 -0
- package/resources/numbers/numbers.d.mts +222 -0
- package/resources/numbers/numbers.d.mts.map +1 -0
- package/resources/numbers/numbers.d.ts +222 -0
- package/resources/numbers/numbers.d.ts.map +1 -0
- package/resources/numbers/numbers.js +117 -0
- package/resources/numbers/numbers.js.map +1 -0
- package/resources/numbers/numbers.mjs +112 -0
- package/resources/numbers/numbers.mjs.map +1 -0
- package/resources/numbers.d.mts +2 -0
- package/resources/numbers.d.mts.map +1 -0
- package/resources/numbers.d.ts +2 -0
- package/resources/numbers.d.ts.map +1 -0
- package/resources/numbers.js +6 -0
- package/resources/numbers.js.map +1 -0
- package/resources/numbers.mjs +3 -0
- package/resources/numbers.mjs.map +1 -0
- package/resources/proxies.d.mts +43 -20
- package/resources/proxies.d.mts.map +1 -1
- package/resources/proxies.d.ts +43 -20
- package/resources/proxies.d.ts.map +1 -1
- package/resources/proxies.js.map +1 -1
- package/resources/proxies.mjs.map +1 -1
- package/resources/shared.d.mts +11 -3
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +11 -3
- package/resources/shared.d.ts.map +1 -1
- package/resources/store/apps.d.mts +119 -0
- package/resources/store/apps.d.mts.map +1 -0
- package/resources/store/apps.d.ts +119 -0
- package/resources/store/apps.d.ts.map +1 -0
- package/resources/store/apps.js +31 -0
- package/resources/store/apps.js.map +1 -0
- package/resources/store/apps.mjs +27 -0
- package/resources/store/apps.mjs.map +1 -0
- package/resources/store/index.d.mts +3 -0
- package/resources/store/index.d.mts.map +1 -0
- package/resources/store/index.d.ts +3 -0
- package/resources/store/index.d.ts.map +1 -0
- package/resources/store/index.js +9 -0
- package/resources/store/index.js.map +1 -0
- package/resources/store/index.mjs +4 -0
- package/resources/store/index.mjs.map +1 -0
- package/resources/store/store.d.mts +20 -0
- package/resources/store/store.d.mts.map +1 -0
- package/resources/store/store.d.ts +20 -0
- package/resources/store/store.d.ts.map +1 -0
- package/resources/store/store.js +23 -0
- package/resources/store/store.js.map +1 -0
- package/resources/store/store.mjs +18 -0
- package/resources/store/store.mjs.map +1 -0
- package/resources/store.d.mts +2 -0
- package/resources/store.d.mts.map +1 -0
- package/resources/store.d.ts +2 -0
- package/resources/store.d.ts.map +1 -0
- package/resources/store.js +6 -0
- package/resources/store.js.map +1 -0
- package/resources/store.mjs +3 -0
- package/resources/store.mjs.map +1 -0
- package/resources/tasks/index.d.mts +3 -3
- package/resources/tasks/index.d.mts.map +1 -1
- package/resources/tasks/index.d.ts +3 -3
- package/resources/tasks/index.d.ts.map +1 -1
- package/resources/tasks/index.js.map +1 -1
- package/resources/tasks/index.mjs +1 -1
- package/resources/tasks/index.mjs.map +1 -1
- package/resources/tasks/screenshots.d.mts +3 -3
- package/resources/tasks/screenshots.d.mts.map +1 -1
- package/resources/tasks/screenshots.d.ts +3 -3
- package/resources/tasks/screenshots.d.ts.map +1 -1
- package/resources/tasks/tasks.d.mts +65 -34
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +65 -34
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs +1 -1
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/tasks/ui-states.d.mts +8 -3
- package/resources/tasks/ui-states.d.mts.map +1 -1
- package/resources/tasks/ui-states.d.ts +8 -3
- package/resources/tasks/ui-states.d.ts.map +1 -1
- package/resources/tasks/ui-states.js.map +1 -1
- package/resources/tasks/ui-states.mjs.map +1 -1
- package/resources/workflows/action-catalog.d.mts +27 -13
- package/resources/workflows/action-catalog.d.mts.map +1 -1
- package/resources/workflows/action-catalog.d.ts +27 -13
- package/resources/workflows/action-catalog.d.ts.map +1 -1
- package/resources/workflows/actions/actions.d.mts +85 -23
- package/resources/workflows/actions/actions.d.mts.map +1 -1
- package/resources/workflows/actions/actions.d.ts +85 -23
- package/resources/workflows/actions/actions.d.ts.map +1 -1
- package/resources/workflows/actions/actions.js.map +1 -1
- package/resources/workflows/actions/actions.mjs.map +1 -1
- package/resources/workflows/actions/index.d.mts +1 -1
- package/resources/workflows/actions/index.d.mts.map +1 -1
- package/resources/workflows/actions/index.d.ts +1 -1
- package/resources/workflows/actions/index.d.ts.map +1 -1
- package/resources/workflows/actions/index.js.map +1 -1
- package/resources/workflows/actions/index.mjs.map +1 -1
- package/resources/workflows/events.d.mts +144 -1
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +144 -1
- package/resources/workflows/events.d.ts.map +1 -1
- package/resources/workflows/events.js +18 -2
- package/resources/workflows/events.js.map +1 -1
- package/resources/workflows/events.mjs +16 -1
- package/resources/workflows/events.mjs.map +1 -1
- package/resources/workflows/executions.d.mts +75 -26
- package/resources/workflows/executions.d.mts.map +1 -1
- package/resources/workflows/executions.d.ts +75 -26
- package/resources/workflows/executions.d.ts.map +1 -1
- package/resources/workflows/executions.js +7 -0
- package/resources/workflows/executions.js.map +1 -1
- package/resources/workflows/executions.mjs +7 -0
- package/resources/workflows/executions.mjs.map +1 -1
- package/resources/workflows/flows/actions.d.mts +109 -26
- package/resources/workflows/flows/actions.d.mts.map +1 -1
- package/resources/workflows/flows/actions.d.ts +109 -26
- package/resources/workflows/flows/actions.d.ts.map +1 -1
- package/resources/workflows/flows/actions.js.map +1 -1
- package/resources/workflows/flows/actions.mjs.map +1 -1
- package/resources/workflows/flows/flows.d.mts +373 -25
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +373 -25
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +25 -0
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +25 -0
- package/resources/workflows/flows/flows.mjs.map +1 -1
- package/resources/workflows/flows/index.d.mts +2 -2
- package/resources/workflows/flows/index.d.mts.map +1 -1
- package/resources/workflows/flows/index.d.ts +2 -2
- 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 +6 -6
- package/resources/workflows/index.d.mts.map +1 -1
- package/resources/workflows/index.d.ts +6 -6
- 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 +6 -3
- package/resources/workflows/triggers.d.mts.map +1 -1
- package/resources/workflows/triggers.d.ts +6 -3
- package/resources/workflows/triggers.d.ts.map +1 -1
- package/resources/workflows/workflows.d.mts +10 -48
- package/resources/workflows/workflows.d.mts.map +1 -1
- package/resources/workflows/workflows.d.ts +10 -48
- 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 +131 -21
- package/src/resources/agents.ts +42 -0
- package/src/resources/app-events/app-events.ts +133 -0
- package/src/resources/app-events/catalog.ts +100 -0
- package/src/resources/app-events/index.ts +9 -0
- package/src/resources/app-events.ts +3 -0
- package/src/resources/apps.ts +39 -0
- package/src/resources/credentials/credentials.ts +40 -2
- package/src/resources/credentials/index.ts +1 -0
- package/src/resources/credentials/packages/credentials/credentials.ts +108 -33
- package/src/resources/credentials/packages/credentials/fields.ts +114 -4
- package/src/resources/credentials/packages/credentials/index.ts +0 -1
- package/src/resources/credentials/packages/index.ts +1 -1
- package/src/resources/credentials/packages/packages.ts +58 -3
- package/src/resources/devices/apps.ts +155 -0
- package/src/resources/devices/browser.ts +71 -0
- package/src/resources/devices/deep-link.ts +70 -0
- package/src/resources/devices/devices.ts +414 -23
- package/src/resources/devices/esim/apn.ts +178 -0
- package/src/resources/devices/esim/esim.ts +312 -0
- package/src/resources/devices/esim/index.ts +21 -0
- package/src/resources/devices/esim.ts +1 -208
- package/src/resources/devices/files.ts +36 -35
- package/src/resources/devices/index.ts +45 -5
- package/src/resources/devices/kiosk.ts +74 -0
- package/src/resources/devices/location.ts +33 -1
- package/src/resources/devices/media-sessions.ts +168 -0
- package/src/resources/devices/recordings.ts +358 -0
- package/src/resources/devices/state.ts +7 -9
- package/src/resources/devices/tasks.ts +11 -2
- package/src/resources/esims/esims.ts +1013 -0
- package/src/resources/esims/index.ts +27 -0
- package/src/resources/esims/messages.ts +193 -0
- package/src/resources/esims.ts +3 -0
- package/src/resources/index.ts +52 -8
- package/src/resources/messages/conversations.ts +138 -0
- package/src/resources/messages/index.ts +10 -0
- package/src/resources/messages/messages.ts +120 -0
- package/src/resources/messages.ts +3 -0
- package/src/resources/notifications.ts +118 -0
- package/src/resources/numbers/index.ts +14 -0
- package/src/resources/numbers/messages.ts +102 -0
- package/src/resources/numbers/numbers.ts +339 -0
- package/src/resources/numbers.ts +3 -0
- package/src/resources/proxies.ts +52 -22
- package/src/resources/shared.ts +18 -4
- package/src/resources/store/apps.ts +704 -0
- package/src/resources/store/index.ts +10 -0
- package/src/resources/store/store.ts +36 -0
- package/src/resources/store.ts +3 -0
- package/src/resources/tasks/index.ts +7 -6
- package/src/resources/tasks/screenshots.ts +3 -3
- package/src/resources/tasks/tasks.ts +89 -53
- package/src/resources/tasks/ui-states.ts +9 -2
- package/src/resources/workflows/action-catalog.ts +35 -14
- package/src/resources/workflows/actions/actions.ts +124 -24
- package/src/resources/workflows/actions/index.ts +0 -1
- package/src/resources/workflows/events.ts +226 -1
- package/src/resources/workflows/executions.ts +112 -35
- package/src/resources/workflows/flows/actions.ts +129 -25
- package/src/resources/workflows/flows/flows.ts +622 -24
- package/src/resources/workflows/flows/index.ts +3 -3
- package/src/resources/workflows/index.ts +6 -7
- package/src/resources/workflows/triggers.ts +6 -3
- package/src/resources/workflows/workflows.ts +16 -90
- 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/hooks.d.mts +0 -4
- package/resources/hooks.d.mts.map +0 -1
- package/resources/hooks.d.ts +0 -4
- package/resources/hooks.d.ts.map +0 -1
- package/resources/hooks.js +0 -9
- package/resources/hooks.js.map +0 -1
- package/resources/hooks.mjs +0 -5
- package/resources/hooks.mjs.map +0 -1
- package/resources/workflows/events/catalog.d.mts +0 -4
- package/resources/workflows/events/catalog.d.mts.map +0 -1
- package/resources/workflows/events/catalog.d.ts +0 -4
- package/resources/workflows/events/catalog.d.ts.map +0 -1
- package/resources/workflows/events/catalog.js +0 -9
- package/resources/workflows/events/catalog.js.map +0 -1
- package/resources/workflows/events/catalog.mjs +0 -5
- package/resources/workflows/events/catalog.mjs.map +0 -1
- package/resources/workflows/events/events.d.mts +0 -113
- package/resources/workflows/events/events.d.mts.map +0 -1
- package/resources/workflows/events/events.d.ts +0 -113
- package/resources/workflows/events/events.d.ts.map +0 -1
- package/resources/workflows/events/events.js +0 -30
- package/resources/workflows/events/events.js.map +0 -1
- package/resources/workflows/events/events.mjs +0 -25
- package/resources/workflows/events/events.mjs.map +0 -1
- package/resources/workflows/events/index.d.mts +0 -3
- package/resources/workflows/events/index.d.mts.map +0 -1
- package/resources/workflows/events/index.d.ts +0 -3
- package/resources/workflows/events/index.d.ts.map +0 -1
- package/resources/workflows/events/index.js.map +0 -1
- package/resources/workflows/events/index.mjs.map +0 -1
- package/src/resources/hooks.ts +0 -5
- package/src/resources/workflows/events/catalog.ts +0 -5
- package/src/resources/workflows/events/events.ts +0 -167
- package/src/resources/workflows/events/index.ts +0 -10
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
|
|
7
|
+
export class Notifications extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Returns the catalog of notifiable event types grouped by source category. Each
|
|
10
|
+
* event lists its type identifier, label, and description, which can be referenced
|
|
11
|
+
* when muting event types in notification preferences.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const response = await client.notifications.catalog();
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
catalog(options?: RequestOptions): APIPromise<NotificationCatalogResponse> {
|
|
19
|
+
return this._client.get('/notifications/catalog', options);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Returns your current notification preferences, expressed as the list of event
|
|
24
|
+
* types you have muted. An empty list means notifications are enabled for all
|
|
25
|
+
* notifiable event types.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const response =
|
|
30
|
+
* await client.notifications.getPreferences();
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
getPreferences(options?: RequestOptions): APIPromise<NotificationGetPreferencesResponse> {
|
|
34
|
+
return this._client.get('/notifications/preferences', options);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Replaces your set of muted event types with the supplied list. Any unknown or
|
|
39
|
+
* non-notifiable types are dropped, and the response returns the muted types that
|
|
40
|
+
* were actually stored.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const response =
|
|
45
|
+
* await client.notifications.updatePreferences({
|
|
46
|
+
* mutedTypes: [
|
|
47
|
+
* 'workflow.run.running',
|
|
48
|
+
* 'task.run.running',
|
|
49
|
+
* ],
|
|
50
|
+
* });
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
updatePreferences(
|
|
54
|
+
body: NotificationUpdatePreferencesParams,
|
|
55
|
+
options?: RequestOptions,
|
|
56
|
+
): APIPromise<NotificationUpdatePreferencesResponse> {
|
|
57
|
+
return this._client.patch('/notifications/preferences', { body, ...options });
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface NotificationCatalogResponse {
|
|
62
|
+
data: Array<NotificationCatalogResponse.Data>;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export namespace NotificationCatalogResponse {
|
|
66
|
+
export interface Data {
|
|
67
|
+
events: Array<Data.Event>;
|
|
68
|
+
|
|
69
|
+
label: string;
|
|
70
|
+
|
|
71
|
+
source: string;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export namespace Data {
|
|
75
|
+
export interface Event {
|
|
76
|
+
description: string;
|
|
77
|
+
|
|
78
|
+
label: string;
|
|
79
|
+
|
|
80
|
+
type: string;
|
|
81
|
+
|
|
82
|
+
toast?: boolean;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export interface NotificationGetPreferencesResponse {
|
|
88
|
+
data: NotificationGetPreferencesResponse.Data;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export namespace NotificationGetPreferencesResponse {
|
|
92
|
+
export interface Data {
|
|
93
|
+
mutedTypes: Array<string>;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export interface NotificationUpdatePreferencesResponse {
|
|
98
|
+
data: NotificationUpdatePreferencesResponse.Data;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export namespace NotificationUpdatePreferencesResponse {
|
|
102
|
+
export interface Data {
|
|
103
|
+
mutedTypes: Array<string>;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export interface NotificationUpdatePreferencesParams {
|
|
108
|
+
mutedTypes: Array<string>;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export declare namespace Notifications {
|
|
112
|
+
export {
|
|
113
|
+
type NotificationCatalogResponse as NotificationCatalogResponse,
|
|
114
|
+
type NotificationGetPreferencesResponse as NotificationGetPreferencesResponse,
|
|
115
|
+
type NotificationUpdatePreferencesResponse as NotificationUpdatePreferencesResponse,
|
|
116
|
+
type NotificationUpdatePreferencesParams as NotificationUpdatePreferencesParams,
|
|
117
|
+
};
|
|
118
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export { Messages, type MessageListResponse, type MessageListParams } from './messages';
|
|
4
|
+
export {
|
|
5
|
+
Numbers,
|
|
6
|
+
type NumberCreateResponse,
|
|
7
|
+
type NumberRetrieveResponse,
|
|
8
|
+
type NumberListResponse,
|
|
9
|
+
type NumberDeleteResponse,
|
|
10
|
+
type NumberCountriesResponse,
|
|
11
|
+
type NumberPurposesResponse,
|
|
12
|
+
type NumberCreateParams,
|
|
13
|
+
type NumberListParams,
|
|
14
|
+
} from './numbers';
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
import { path } from '../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class Messages extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns SMS messages on the number, inbound and outbound, scoped to the
|
|
11
|
+
* authenticated user. Newest first. Messages stay with the number across device
|
|
12
|
+
* switches.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const messages = await client.numbers.messages.list(
|
|
17
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
18
|
+
* );
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
list(
|
|
22
|
+
id: string,
|
|
23
|
+
query: MessageListParams | null | undefined = {},
|
|
24
|
+
options?: RequestOptions,
|
|
25
|
+
): APIPromise<MessageListResponse> {
|
|
26
|
+
return this._client.get(path`/numbers/phones/${id}/messages`, { query, ...options });
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface MessageListResponse {
|
|
31
|
+
data: MessageListResponse.Data;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export namespace MessageListResponse {
|
|
35
|
+
export interface Data {
|
|
36
|
+
items: Array<Data.Item>;
|
|
37
|
+
|
|
38
|
+
pagination: Data.Pagination;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export namespace Data {
|
|
42
|
+
export interface Item {
|
|
43
|
+
id: string;
|
|
44
|
+
|
|
45
|
+
body: string | null;
|
|
46
|
+
|
|
47
|
+
createdAt: string;
|
|
48
|
+
|
|
49
|
+
deliveryStatus: string | null;
|
|
50
|
+
|
|
51
|
+
detectedSender: string | null;
|
|
52
|
+
|
|
53
|
+
direction: 'inbound' | 'outbound';
|
|
54
|
+
|
|
55
|
+
esimId: string | null;
|
|
56
|
+
|
|
57
|
+
occurredAt: string;
|
|
58
|
+
|
|
59
|
+
peerKey: string | null;
|
|
60
|
+
|
|
61
|
+
peerNumber: string | null;
|
|
62
|
+
|
|
63
|
+
status:
|
|
64
|
+
| 'received'
|
|
65
|
+
| 'queued'
|
|
66
|
+
| 'claimed'
|
|
67
|
+
| 'sending'
|
|
68
|
+
| 'sent'
|
|
69
|
+
| 'sent_unconfirmed'
|
|
70
|
+
| 'delivered'
|
|
71
|
+
| 'failed';
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface Pagination {
|
|
75
|
+
hasNext: boolean;
|
|
76
|
+
|
|
77
|
+
hasPrev: boolean;
|
|
78
|
+
|
|
79
|
+
page: number;
|
|
80
|
+
|
|
81
|
+
pages: number;
|
|
82
|
+
|
|
83
|
+
pageSize: number;
|
|
84
|
+
|
|
85
|
+
total: number;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface MessageListParams {
|
|
91
|
+
direction?: 'all' | 'inbound' | 'outbound';
|
|
92
|
+
|
|
93
|
+
page?: number;
|
|
94
|
+
|
|
95
|
+
pageSize?: number;
|
|
96
|
+
|
|
97
|
+
since?: string;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export declare namespace Messages {
|
|
101
|
+
export { type MessageListResponse as MessageListResponse, type MessageListParams as MessageListParams };
|
|
102
|
+
}
|
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as Shared from '../shared';
|
|
5
|
+
import * as MessagesAPI from './messages';
|
|
6
|
+
import { MessageListParams, MessageListResponse, Messages } from './messages';
|
|
7
|
+
import { APIPromise } from '../../core/api-promise';
|
|
8
|
+
import { buildHeaders } from '../../internal/headers';
|
|
9
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
10
|
+
import { path } from '../../internal/utils/path';
|
|
11
|
+
|
|
12
|
+
export class Numbers extends APIResource {
|
|
13
|
+
messages: MessagesAPI.Messages = new MessagesAPI.Messages(this._client);
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Starts a Mobilerun Phone purchase for the authenticated owner. Accepted requests
|
|
17
|
+
* always return the same asynchronous envelope; poll GET /numbers/phones/{id} for
|
|
18
|
+
* its business state. `purpose` and `country` are mutually exclusive.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const number = await client.numbers.create();
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
create(
|
|
26
|
+
params: NumberCreateParams | null | undefined = {},
|
|
27
|
+
options?: RequestOptions,
|
|
28
|
+
): APIPromise<NumberCreateResponse> {
|
|
29
|
+
const { 'Idempotency-Key': idempotencyKey, ...body } = params ?? {};
|
|
30
|
+
return this._client.post('/numbers/phones', {
|
|
31
|
+
body,
|
|
32
|
+
...options,
|
|
33
|
+
headers: buildHeaders([
|
|
34
|
+
{ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
35
|
+
options?.headers,
|
|
36
|
+
]),
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Retrieves a single phone number.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* const number = await client.numbers.retrieve(
|
|
46
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
47
|
+
* );
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<NumberRetrieveResponse> {
|
|
51
|
+
return this._client.get(path`/numbers/phones/${id}`, options);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Lists phone numbers owned by the authenticated user — both BYO (`user`) and
|
|
56
|
+
* provisioned (`mobilerun`) numbers.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* const numbers = await client.numbers.list();
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
list(
|
|
64
|
+
query: NumberListParams | null | undefined = {},
|
|
65
|
+
options?: RequestOptions,
|
|
66
|
+
): APIPromise<NumberListResponse> {
|
|
67
|
+
return this._client.get('/numbers/phones', { query, ...options });
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Cancels a Mobilerun Phone. The outcome depends on the number's current state:
|
|
72
|
+
*
|
|
73
|
+
* - If the number is still awaiting payment and no payment for it is currently
|
|
74
|
+
* being processed, the checkout is closed immediately and the number is retired.
|
|
75
|
+
* - If the number is on the standard paid plan and already paid and in service,
|
|
76
|
+
* cancellation is scheduled for the end of the current billing period rather
|
|
77
|
+
* than taking effect immediately. The number stays usable through the period
|
|
78
|
+
* already paid for, with no partial refund. Calling this again while a
|
|
79
|
+
* cancellation is already scheduled is a no-op that returns the same result. The
|
|
80
|
+
* response's `state` reflects this as `cancel_scheduled` with
|
|
81
|
+
* `cancelAtPeriodEnd: true`; `currentPeriodEnd` is populated once billing
|
|
82
|
+
* confirms the cancellation.
|
|
83
|
+
*
|
|
84
|
+
* Any other state (already refunding, a permanent billing failure, a payment
|
|
85
|
+
* currently being processed, an included-plan number, or a non-hosted/BYO number)
|
|
86
|
+
* returns 409 `not_cancellable`. Returns 404 if the number doesn't exist or isn't
|
|
87
|
+
* owned by the caller.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* ```ts
|
|
91
|
+
* const number = await client.numbers.delete(
|
|
92
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
93
|
+
* );
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
96
|
+
delete(id: string, options?: RequestOptions): APIPromise<NumberDeleteResponse> {
|
|
97
|
+
return this._client.delete(path`/numbers/phones/${id}`, options);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Lists the countries currently offered for a dedicated Mobilerun Phone, with live
|
|
102
|
+
* stock status. Pass `country` as the `country` field on POST /numbers/phones.
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* ```ts
|
|
106
|
+
* const response = await client.numbers.countries();
|
|
107
|
+
* ```
|
|
108
|
+
*/
|
|
109
|
+
countries(options?: RequestOptions): APIPromise<NumberCountriesResponse> {
|
|
110
|
+
return this._client.get('/numbers/phones/countries', options);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Lists the optional purposes currently available for a Mobilerun Phone.
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* ```ts
|
|
118
|
+
* const response = await client.numbers.purposes();
|
|
119
|
+
* ```
|
|
120
|
+
*/
|
|
121
|
+
purposes(options?: RequestOptions): APIPromise<NumberPurposesResponse> {
|
|
122
|
+
return this._client.get('/numbers/phones/purposes', options);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export interface NumberCreateResponse {
|
|
127
|
+
data: NumberCreateResponse.Data;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export namespace NumberCreateResponse {
|
|
131
|
+
export interface Data {
|
|
132
|
+
checkoutUrl: string | null;
|
|
133
|
+
|
|
134
|
+
numberId: string;
|
|
135
|
+
|
|
136
|
+
state: 'awaiting_payment' | 'provisioning';
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export interface NumberRetrieveResponse {
|
|
141
|
+
data: NumberRetrieveResponse.Data;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export namespace NumberRetrieveResponse {
|
|
145
|
+
export interface Data {
|
|
146
|
+
id: string;
|
|
147
|
+
|
|
148
|
+
cancelAtPeriodEnd: boolean;
|
|
149
|
+
|
|
150
|
+
cancellable: boolean;
|
|
151
|
+
|
|
152
|
+
canSend: boolean;
|
|
153
|
+
|
|
154
|
+
capabilities: Array<'sms' | 'voice'> | null;
|
|
155
|
+
|
|
156
|
+
checkoutUrl: string | null;
|
|
157
|
+
|
|
158
|
+
countryCode: string | null;
|
|
159
|
+
|
|
160
|
+
createdAt: string | null;
|
|
161
|
+
|
|
162
|
+
currentPeriodEnd: string | null;
|
|
163
|
+
|
|
164
|
+
phoneNumber: string | null;
|
|
165
|
+
|
|
166
|
+
purpose: string | null;
|
|
167
|
+
|
|
168
|
+
state: 'awaiting_payment' | 'provisioning' | 'active' | 'cancel_scheduled' | 'expired' | 'failed';
|
|
169
|
+
|
|
170
|
+
updatedAt: string | null;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export interface NumberListResponse {
|
|
175
|
+
data: NumberListResponse.Data;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export namespace NumberListResponse {
|
|
179
|
+
export interface Data {
|
|
180
|
+
items: Array<Data.Item>;
|
|
181
|
+
|
|
182
|
+
pagination: Shared.Pagination;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export namespace Data {
|
|
186
|
+
export interface Item {
|
|
187
|
+
id: string;
|
|
188
|
+
|
|
189
|
+
cancelAtPeriodEnd: boolean;
|
|
190
|
+
|
|
191
|
+
cancellable: boolean;
|
|
192
|
+
|
|
193
|
+
canSend: boolean;
|
|
194
|
+
|
|
195
|
+
capabilities: Array<'sms' | 'voice'> | null;
|
|
196
|
+
|
|
197
|
+
checkoutUrl: string | null;
|
|
198
|
+
|
|
199
|
+
countryCode: string | null;
|
|
200
|
+
|
|
201
|
+
createdAt: string | null;
|
|
202
|
+
|
|
203
|
+
currentPeriodEnd: string | null;
|
|
204
|
+
|
|
205
|
+
phoneNumber: string | null;
|
|
206
|
+
|
|
207
|
+
purpose: string | null;
|
|
208
|
+
|
|
209
|
+
state: 'awaiting_payment' | 'provisioning' | 'active' | 'cancel_scheduled' | 'expired' | 'failed';
|
|
210
|
+
|
|
211
|
+
updatedAt: string | null;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export interface NumberDeleteResponse {
|
|
217
|
+
data: NumberDeleteResponse.Data;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export namespace NumberDeleteResponse {
|
|
221
|
+
export interface Data {
|
|
222
|
+
id: string;
|
|
223
|
+
|
|
224
|
+
cancelAtPeriodEnd: boolean;
|
|
225
|
+
|
|
226
|
+
cancellable: boolean;
|
|
227
|
+
|
|
228
|
+
canSend: boolean;
|
|
229
|
+
|
|
230
|
+
capabilities: Array<'sms' | 'voice'> | null;
|
|
231
|
+
|
|
232
|
+
checkoutUrl: string | null;
|
|
233
|
+
|
|
234
|
+
countryCode: string | null;
|
|
235
|
+
|
|
236
|
+
createdAt: string | null;
|
|
237
|
+
|
|
238
|
+
currentPeriodEnd: string | null;
|
|
239
|
+
|
|
240
|
+
phoneNumber: string | null;
|
|
241
|
+
|
|
242
|
+
purpose: string | null;
|
|
243
|
+
|
|
244
|
+
state: 'awaiting_payment' | 'provisioning' | 'active' | 'cancel_scheduled' | 'expired' | 'failed';
|
|
245
|
+
|
|
246
|
+
updatedAt: string | null;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export interface NumberCountriesResponse {
|
|
251
|
+
data: NumberCountriesResponse.Data;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export namespace NumberCountriesResponse {
|
|
255
|
+
export interface Data {
|
|
256
|
+
items: Array<Data.Item>;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export namespace Data {
|
|
260
|
+
export interface Item {
|
|
261
|
+
country: string;
|
|
262
|
+
|
|
263
|
+
inStock: boolean;
|
|
264
|
+
|
|
265
|
+
name: string;
|
|
266
|
+
|
|
267
|
+
planId: string;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export interface NumberPurposesResponse {
|
|
273
|
+
data: NumberPurposesResponse.Data;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export namespace NumberPurposesResponse {
|
|
277
|
+
export interface Data {
|
|
278
|
+
items: Array<Data.Item>;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export namespace Data {
|
|
282
|
+
export interface Item {
|
|
283
|
+
label: string;
|
|
284
|
+
|
|
285
|
+
slug: string;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
export interface NumberCreateParams {
|
|
291
|
+
/**
|
|
292
|
+
* Body param: Prefer a free package seat ('included', default) or force the paid
|
|
293
|
+
* checkout ('rent')
|
|
294
|
+
*/
|
|
295
|
+
billingPreference?: 'included' | 'rent';
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Body param: Optional ISO 3166-1 alpha-2 country code from GET
|
|
299
|
+
* /numbers/countries. Cannot be combined with `purpose`.
|
|
300
|
+
*/
|
|
301
|
+
country?: string;
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Body param: Optional Mobilerun Phone purpose slug from GET /numbers/purposes.
|
|
305
|
+
*/
|
|
306
|
+
purpose?: string;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Header param: Optional request idempotency key.
|
|
310
|
+
*/
|
|
311
|
+
'Idempotency-Key'?: string;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
export interface NumberListParams {
|
|
315
|
+
page?: number;
|
|
316
|
+
|
|
317
|
+
pageSize?: number;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
Numbers.Messages = Messages;
|
|
321
|
+
|
|
322
|
+
export declare namespace Numbers {
|
|
323
|
+
export {
|
|
324
|
+
type NumberCreateResponse as NumberCreateResponse,
|
|
325
|
+
type NumberRetrieveResponse as NumberRetrieveResponse,
|
|
326
|
+
type NumberListResponse as NumberListResponse,
|
|
327
|
+
type NumberDeleteResponse as NumberDeleteResponse,
|
|
328
|
+
type NumberCountriesResponse as NumberCountriesResponse,
|
|
329
|
+
type NumberPurposesResponse as NumberPurposesResponse,
|
|
330
|
+
type NumberCreateParams as NumberCreateParams,
|
|
331
|
+
type NumberListParams as NumberListParams,
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
export {
|
|
335
|
+
Messages as Messages,
|
|
336
|
+
type MessageListResponse as MessageListResponse,
|
|
337
|
+
type MessageListParams as MessageListParams,
|
|
338
|
+
};
|
|
339
|
+
}
|
package/src/resources/proxies.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as Shared from './shared';
|
|
4
5
|
import { APIPromise } from '../core/api-promise';
|
|
5
6
|
import { RequestOptions } from '../internal/request-options';
|
|
6
7
|
import { path } from '../internal/utils/path';
|
|
@@ -65,25 +66,31 @@ export class Proxies extends APIResource {
|
|
|
65
66
|
}
|
|
66
67
|
}
|
|
67
68
|
|
|
68
|
-
export
|
|
69
|
+
export interface ProxyCreateResponse {
|
|
70
|
+
data: Shared.Socks5ProxyConfig | ProxyCreateResponse.WireguardProxyConfig;
|
|
69
71
|
|
|
70
|
-
|
|
71
|
-
export interface Socks5ProxyConfig {
|
|
72
|
-
host: string;
|
|
72
|
+
message: string;
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
success: true;
|
|
75
|
+
}
|
|
75
76
|
|
|
76
|
-
|
|
77
|
+
export namespace ProxyCreateResponse {
|
|
78
|
+
export interface WireguardProxyConfig {
|
|
79
|
+
config: string;
|
|
77
80
|
|
|
78
|
-
|
|
81
|
+
name: string;
|
|
79
82
|
|
|
80
|
-
protocol: '
|
|
83
|
+
protocol: 'wireguard';
|
|
81
84
|
|
|
82
85
|
proxyId: string;
|
|
83
|
-
|
|
84
|
-
user: string;
|
|
85
86
|
}
|
|
87
|
+
}
|
|
86
88
|
|
|
89
|
+
export interface ProxyRetrieveResponse {
|
|
90
|
+
data: Shared.Socks5ProxyConfig | ProxyRetrieveResponse.WireguardProxyConfig;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export namespace ProxyRetrieveResponse {
|
|
87
94
|
export interface WireguardProxyConfig {
|
|
88
95
|
config: string;
|
|
89
96
|
|
|
@@ -95,38 +102,62 @@ export namespace ProxyConfig {
|
|
|
95
102
|
}
|
|
96
103
|
}
|
|
97
104
|
|
|
98
|
-
export interface
|
|
99
|
-
data:
|
|
105
|
+
export interface ProxyUpdateResponse {
|
|
106
|
+
data: Shared.Socks5ProxyConfig | ProxyUpdateResponse.WireguardProxyConfig;
|
|
100
107
|
|
|
101
108
|
message: string;
|
|
102
109
|
|
|
103
110
|
success: true;
|
|
104
111
|
}
|
|
105
112
|
|
|
106
|
-
export
|
|
107
|
-
|
|
108
|
-
|
|
113
|
+
export namespace ProxyUpdateResponse {
|
|
114
|
+
export interface WireguardProxyConfig {
|
|
115
|
+
config: string;
|
|
109
116
|
|
|
110
|
-
|
|
111
|
-
data: ProxyConfig;
|
|
117
|
+
name: string;
|
|
112
118
|
|
|
113
|
-
|
|
119
|
+
protocol: 'wireguard';
|
|
114
120
|
|
|
115
|
-
|
|
121
|
+
proxyId: string;
|
|
122
|
+
}
|
|
116
123
|
}
|
|
117
124
|
|
|
118
125
|
export interface ProxyListResponse {
|
|
119
|
-
data: Array<
|
|
126
|
+
data: Array<Shared.Socks5ProxyConfig | ProxyListResponse.WireguardProxyConfig>;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export namespace ProxyListResponse {
|
|
130
|
+
export interface WireguardProxyConfig {
|
|
131
|
+
config: string;
|
|
132
|
+
|
|
133
|
+
name: string;
|
|
134
|
+
|
|
135
|
+
protocol: 'wireguard';
|
|
136
|
+
|
|
137
|
+
proxyId: string;
|
|
138
|
+
}
|
|
120
139
|
}
|
|
121
140
|
|
|
122
141
|
export interface ProxyDeleteResponse {
|
|
123
|
-
data:
|
|
142
|
+
data: Shared.Socks5ProxyConfig | ProxyDeleteResponse.WireguardProxyConfig;
|
|
124
143
|
|
|
125
144
|
message: string;
|
|
126
145
|
|
|
127
146
|
success: true;
|
|
128
147
|
}
|
|
129
148
|
|
|
149
|
+
export namespace ProxyDeleteResponse {
|
|
150
|
+
export interface WireguardProxyConfig {
|
|
151
|
+
config: string;
|
|
152
|
+
|
|
153
|
+
name: string;
|
|
154
|
+
|
|
155
|
+
protocol: 'wireguard';
|
|
156
|
+
|
|
157
|
+
proxyId: string;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
130
161
|
export interface ProxyLookupResponse {
|
|
131
162
|
/**
|
|
132
163
|
* IP address of the proxy.
|
|
@@ -286,7 +317,6 @@ export namespace ProxyLookupParams {
|
|
|
286
317
|
|
|
287
318
|
export declare namespace Proxies {
|
|
288
319
|
export {
|
|
289
|
-
type ProxyConfig as ProxyConfig,
|
|
290
320
|
type ProxyCreateResponse as ProxyCreateResponse,
|
|
291
321
|
type ProxyRetrieveResponse as ProxyRetrieveResponse,
|
|
292
322
|
type ProxyUpdateResponse as ProxyUpdateResponse,
|