@mobilerun/sdk 5.2.0 → 5.3.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 +29 -0
- package/README.md +15 -12
- package/client.d.mts +36 -15
- package/client.d.mts.map +1 -1
- package/client.d.ts +36 -15
- package/client.d.ts.map +1 -1
- package/client.js +24 -3
- package/client.js.map +1 -1
- package/client.mjs +24 -3
- package/client.mjs.map +1 -1
- package/core/streaming.d.mts +33 -0
- package/core/streaming.d.mts.map +1 -0
- package/core/streaming.d.ts +33 -0
- package/core/streaming.d.ts.map +1 -0
- package/core/streaming.js +263 -0
- package/core/streaming.js.map +1 -0
- package/core/streaming.mjs +258 -0
- package/core/streaming.mjs.map +1 -0
- package/internal/decoders/line.d.mts +17 -0
- package/internal/decoders/line.d.mts.map +1 -0
- package/internal/decoders/line.d.ts +17 -0
- package/internal/decoders/line.d.ts.map +1 -0
- package/internal/decoders/line.js +113 -0
- package/internal/decoders/line.js.map +1 -0
- package/internal/decoders/line.mjs +108 -0
- package/internal/decoders/line.mjs.map +1 -0
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +10 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +10 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/request-options.d.mts +2 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +2 -0
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/tslib.js +18 -18
- package/package.json +12 -2
- 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 +34 -3
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +34 -3
- 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/assistant/assistant.d.mts +10 -0
- package/resources/assistant/assistant.d.mts.map +1 -0
- package/resources/assistant/assistant.d.ts +10 -0
- package/resources/assistant/assistant.d.ts.map +1 -0
- package/resources/assistant/assistant.js +17 -0
- package/resources/assistant/assistant.js.map +1 -0
- package/resources/assistant/assistant.mjs +12 -0
- package/resources/assistant/assistant.mjs.map +1 -0
- package/resources/assistant/conversations.d.mts +295 -0
- package/resources/assistant/conversations.d.mts.map +1 -0
- package/resources/assistant/conversations.d.ts +295 -0
- package/resources/assistant/conversations.d.ts.map +1 -0
- package/resources/assistant/conversations.js +109 -0
- package/resources/assistant/conversations.js.map +1 -0
- package/resources/assistant/conversations.mjs +105 -0
- package/resources/assistant/conversations.mjs.map +1 -0
- package/resources/assistant/index.d.mts +3 -0
- package/resources/assistant/index.d.mts.map +1 -0
- package/resources/assistant/index.d.ts +3 -0
- package/resources/assistant/index.d.ts.map +1 -0
- package/resources/assistant/index.js +9 -0
- package/resources/assistant/index.js.map +1 -0
- package/resources/assistant/index.mjs +4 -0
- package/resources/assistant/index.mjs.map +1 -0
- package/resources/assistant.d.mts +2 -0
- package/resources/assistant.d.mts.map +1 -0
- package/resources/assistant.d.ts +2 -0
- package/resources/assistant.d.ts.map +1 -0
- package/resources/assistant.js +6 -0
- package/resources/assistant.js.map +1 -0
- package/resources/assistant.mjs +3 -0
- package/resources/assistant.mjs.map +1 -0
- 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/clipboard.d.mts +40 -0
- package/resources/devices/clipboard.d.mts.map +1 -0
- package/resources/devices/clipboard.d.ts +40 -0
- package/resources/devices/clipboard.d.ts.map +1 -0
- package/resources/devices/clipboard.js +50 -0
- package/resources/devices/clipboard.js.map +1 -0
- package/resources/devices/clipboard.mjs +46 -0
- package/resources/devices/clipboard.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 +214 -19
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +214 -19
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +59 -2
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +59 -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 +12 -6
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +12 -6
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +15 -3
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +8 -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 +106 -0
- package/resources/esims/messages.d.mts.map +1 -0
- package/resources/esims/messages.d.ts +106 -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/files.d.mts +126 -0
- package/resources/files.d.mts.map +1 -0
- package/resources/files.d.ts +126 -0
- package/resources/files.d.ts.map +1 -0
- package/resources/files.js +68 -0
- package/resources/files.js.map +1 -0
- package/resources/files.mjs +64 -0
- package/resources/files.mjs.map +1 -0
- package/resources/index.d.mts +13 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +13 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +17 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +8 -1
- package/resources/index.mjs.map +1 -1
- package/resources/messages/conversations.d.mts +82 -0
- package/resources/messages/conversations.d.mts.map +1 -0
- package/resources/messages/conversations.d.ts +82 -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 +51 -0
- package/resources/messages/messages.d.mts.map +1 -0
- package/resources/messages/messages.d.ts +51 -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/models.d.mts +20 -5
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +20 -5
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +1 -1
- package/resources/models.mjs +1 -1
- 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 +48 -0
- package/resources/numbers/messages.d.mts.map +1 -0
- package/resources/numbers/messages.d.ts +48 -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 +270 -0
- package/resources/numbers/numbers.d.mts.map +1 -0
- package/resources/numbers/numbers.d.ts +270 -0
- package/resources/numbers/numbers.d.ts.map +1 -0
- package/resources/numbers/numbers.js +134 -0
- package/resources/numbers/numbers.js.map +1 -0
- package/resources/numbers/numbers.mjs +129 -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 +145 -1
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +145 -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 +96 -26
- package/resources/workflows/executions.d.mts.map +1 -1
- package/resources/workflows/executions.d.ts +96 -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 +381 -25
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +381 -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 +164 -21
- package/src/core/streaming.ts +315 -0
- package/src/internal/decoders/line.ts +135 -0
- package/src/internal/parse.ts +14 -0
- package/src/internal/request-options.ts +2 -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 +41 -2
- package/src/resources/assistant/assistant.ts +59 -0
- package/src/resources/assistant/conversations.ts +524 -0
- package/src/resources/assistant/index.ts +26 -0
- package/src/resources/assistant.ts +3 -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/clipboard.ts +87 -0
- package/src/resources/devices/deep-link.ts +70 -0
- package/src/resources/devices/devices.ts +427 -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 +51 -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 +1019 -0
- package/src/resources/esims/index.ts +28 -0
- package/src/resources/esims/messages.ts +187 -0
- package/src/resources/esims.ts +3 -0
- package/src/resources/files.ts +225 -0
- package/src/resources/index.ts +67 -8
- package/src/resources/messages/conversations.ts +132 -0
- package/src/resources/messages/index.ts +10 -0
- package/src/resources/messages/messages.ts +114 -0
- package/src/resources/messages.ts +3 -0
- package/src/resources/models.ts +22 -7
- package/src/resources/notifications.ts +118 -0
- package/src/resources/numbers/index.ts +16 -0
- package/src/resources/numbers/messages.ts +83 -0
- package/src/resources/numbers/numbers.ts +415 -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 +228 -1
- package/src/resources/workflows/executions.ts +139 -35
- package/src/resources/workflows/flows/actions.ts +129 -25
- package/src/resources/workflows/flows/flows.ts +638 -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/streaming.ts +2 -0
- package/src/version.ts +1 -1
- package/streaming.d.mts +3 -0
- package/streaming.d.mts.map +1 -0
- package/streaming.d.ts +3 -0
- package/streaming.d.ts.map +1 -0
- package/streaming.js +6 -0
- package/streaming.js.map +1 -0
- package/streaming.mjs +3 -0
- package/streaming.mjs.map +1 -0
- 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,415 @@
|
|
|
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
|
+
* Updates the phone number's user-defined display label. Omitting `label` leaves
|
|
56
|
+
* it unchanged; setting it to null or an empty string clears it. The label is
|
|
57
|
+
* capped at 100 characters, is display-only, and never affects routing. It also
|
|
58
|
+
* seeds the billing entity name when set at purchase time; a later change here
|
|
59
|
+
* does not rename the already-created billing entity.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```ts
|
|
63
|
+
* const number = await client.numbers.update(
|
|
64
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
65
|
+
* );
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
update(
|
|
69
|
+
id: string,
|
|
70
|
+
body: NumberUpdateParams | null | undefined = {},
|
|
71
|
+
options?: RequestOptions,
|
|
72
|
+
): APIPromise<NumberUpdateResponse> {
|
|
73
|
+
return this._client.patch(path`/numbers/phones/${id}`, { body, ...options });
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Lists phone numbers owned by the authenticated user — both BYO (`user`) and
|
|
78
|
+
* provisioned (`mobilerun`) numbers.
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* ```ts
|
|
82
|
+
* const numbers = await client.numbers.list();
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
list(
|
|
86
|
+
query: NumberListParams | null | undefined = {},
|
|
87
|
+
options?: RequestOptions,
|
|
88
|
+
): APIPromise<NumberListResponse> {
|
|
89
|
+
return this._client.get('/numbers/phones', { query, ...options });
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Cancels a Mobilerun Phone. The outcome depends on the number's current state:
|
|
94
|
+
*
|
|
95
|
+
* - If the number is still awaiting payment and no payment for it is currently
|
|
96
|
+
* being processed, the checkout is closed immediately and the number is retired.
|
|
97
|
+
* - If the number is on the standard paid plan and already paid and in service,
|
|
98
|
+
* cancellation is scheduled for the end of the current billing period rather
|
|
99
|
+
* than taking effect immediately. The number stays usable through the period
|
|
100
|
+
* already paid for, with no partial refund. Calling this again while a
|
|
101
|
+
* cancellation is already scheduled is a no-op that returns the same result. The
|
|
102
|
+
* response's `state` reflects this as `cancel_scheduled` with
|
|
103
|
+
* `cancelAtPeriodEnd: true`; `currentPeriodEnd` is populated once billing
|
|
104
|
+
* confirms the cancellation.
|
|
105
|
+
*
|
|
106
|
+
* Any other state (already refunding, a permanent billing failure, a payment
|
|
107
|
+
* currently being processed, an included-plan number, or a non-hosted/BYO number)
|
|
108
|
+
* returns 409 `not_cancellable`. Returns 404 if the number doesn't exist or isn't
|
|
109
|
+
* owned by the caller.
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* ```ts
|
|
113
|
+
* const number = await client.numbers.delete(
|
|
114
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
115
|
+
* );
|
|
116
|
+
* ```
|
|
117
|
+
*/
|
|
118
|
+
delete(id: string, options?: RequestOptions): APIPromise<NumberDeleteResponse> {
|
|
119
|
+
return this._client.delete(path`/numbers/phones/${id}`, options);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Lists the countries currently offered for a dedicated Mobilerun Phone, with live
|
|
124
|
+
* stock status. Pass `country` as the `country` field on POST /numbers/phones.
|
|
125
|
+
*
|
|
126
|
+
* @example
|
|
127
|
+
* ```ts
|
|
128
|
+
* const response = await client.numbers.countries();
|
|
129
|
+
* ```
|
|
130
|
+
*/
|
|
131
|
+
countries(options?: RequestOptions): APIPromise<NumberCountriesResponse> {
|
|
132
|
+
return this._client.get('/numbers/phones/countries', options);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Lists the optional purposes currently available for a Mobilerun Phone.
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* ```ts
|
|
140
|
+
* const response = await client.numbers.purposes();
|
|
141
|
+
* ```
|
|
142
|
+
*/
|
|
143
|
+
purposes(options?: RequestOptions): APIPromise<NumberPurposesResponse> {
|
|
144
|
+
return this._client.get('/numbers/phones/purposes', options);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export interface NumberCreateResponse {
|
|
149
|
+
data: NumberCreateResponse.Data;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export namespace NumberCreateResponse {
|
|
153
|
+
export interface Data {
|
|
154
|
+
checkoutUrl: string | null;
|
|
155
|
+
|
|
156
|
+
numberId: string;
|
|
157
|
+
|
|
158
|
+
state: 'awaiting_payment' | 'provisioning';
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export interface NumberRetrieveResponse {
|
|
163
|
+
data: NumberRetrieveResponse.Data;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export namespace NumberRetrieveResponse {
|
|
167
|
+
export interface Data {
|
|
168
|
+
id: string;
|
|
169
|
+
|
|
170
|
+
cancelAtPeriodEnd: boolean;
|
|
171
|
+
|
|
172
|
+
cancellable: boolean;
|
|
173
|
+
|
|
174
|
+
canSend: boolean;
|
|
175
|
+
|
|
176
|
+
capabilities: Array<'sms' | 'voice'> | null;
|
|
177
|
+
|
|
178
|
+
checkoutUrl: string | null;
|
|
179
|
+
|
|
180
|
+
countryCode: string | null;
|
|
181
|
+
|
|
182
|
+
createdAt: string | null;
|
|
183
|
+
|
|
184
|
+
currentPeriodEnd: string | null;
|
|
185
|
+
|
|
186
|
+
label: string | null;
|
|
187
|
+
|
|
188
|
+
phoneNumber: string | null;
|
|
189
|
+
|
|
190
|
+
purpose: string | null;
|
|
191
|
+
|
|
192
|
+
state: 'awaiting_payment' | 'provisioning' | 'active' | 'cancel_scheduled' | 'expired' | 'failed';
|
|
193
|
+
|
|
194
|
+
updatedAt: string | null;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export interface NumberUpdateResponse {
|
|
199
|
+
data: NumberUpdateResponse.Data;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export namespace NumberUpdateResponse {
|
|
203
|
+
export interface Data {
|
|
204
|
+
id: string;
|
|
205
|
+
|
|
206
|
+
cancelAtPeriodEnd: boolean;
|
|
207
|
+
|
|
208
|
+
cancellable: boolean;
|
|
209
|
+
|
|
210
|
+
canSend: boolean;
|
|
211
|
+
|
|
212
|
+
capabilities: Array<'sms' | 'voice'> | null;
|
|
213
|
+
|
|
214
|
+
checkoutUrl: string | null;
|
|
215
|
+
|
|
216
|
+
countryCode: string | null;
|
|
217
|
+
|
|
218
|
+
createdAt: string | null;
|
|
219
|
+
|
|
220
|
+
currentPeriodEnd: string | null;
|
|
221
|
+
|
|
222
|
+
label: string | null;
|
|
223
|
+
|
|
224
|
+
phoneNumber: string | null;
|
|
225
|
+
|
|
226
|
+
purpose: string | null;
|
|
227
|
+
|
|
228
|
+
state: 'awaiting_payment' | 'provisioning' | 'active' | 'cancel_scheduled' | 'expired' | 'failed';
|
|
229
|
+
|
|
230
|
+
updatedAt: string | null;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export interface NumberListResponse {
|
|
235
|
+
items: Array<NumberListResponse.Item>;
|
|
236
|
+
|
|
237
|
+
pagination: Shared.Pagination;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export namespace NumberListResponse {
|
|
241
|
+
export interface Item {
|
|
242
|
+
id: string;
|
|
243
|
+
|
|
244
|
+
cancelAtPeriodEnd: boolean;
|
|
245
|
+
|
|
246
|
+
cancellable: boolean;
|
|
247
|
+
|
|
248
|
+
canSend: boolean;
|
|
249
|
+
|
|
250
|
+
capabilities: Array<'sms' | 'voice'> | null;
|
|
251
|
+
|
|
252
|
+
checkoutUrl: string | null;
|
|
253
|
+
|
|
254
|
+
countryCode: string | null;
|
|
255
|
+
|
|
256
|
+
createdAt: string | null;
|
|
257
|
+
|
|
258
|
+
currentPeriodEnd: string | null;
|
|
259
|
+
|
|
260
|
+
label: string | null;
|
|
261
|
+
|
|
262
|
+
phoneNumber: string | null;
|
|
263
|
+
|
|
264
|
+
purpose: string | null;
|
|
265
|
+
|
|
266
|
+
state: 'awaiting_payment' | 'provisioning' | 'active' | 'cancel_scheduled' | 'expired' | 'failed';
|
|
267
|
+
|
|
268
|
+
updatedAt: string | null;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export interface NumberDeleteResponse {
|
|
273
|
+
data: NumberDeleteResponse.Data;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export namespace NumberDeleteResponse {
|
|
277
|
+
export interface Data {
|
|
278
|
+
id: string;
|
|
279
|
+
|
|
280
|
+
cancelAtPeriodEnd: boolean;
|
|
281
|
+
|
|
282
|
+
cancellable: boolean;
|
|
283
|
+
|
|
284
|
+
canSend: boolean;
|
|
285
|
+
|
|
286
|
+
capabilities: Array<'sms' | 'voice'> | null;
|
|
287
|
+
|
|
288
|
+
checkoutUrl: string | null;
|
|
289
|
+
|
|
290
|
+
countryCode: string | null;
|
|
291
|
+
|
|
292
|
+
createdAt: string | null;
|
|
293
|
+
|
|
294
|
+
currentPeriodEnd: string | null;
|
|
295
|
+
|
|
296
|
+
label: string | null;
|
|
297
|
+
|
|
298
|
+
phoneNumber: string | null;
|
|
299
|
+
|
|
300
|
+
purpose: string | null;
|
|
301
|
+
|
|
302
|
+
state: 'awaiting_payment' | 'provisioning' | 'active' | 'cancel_scheduled' | 'expired' | 'failed';
|
|
303
|
+
|
|
304
|
+
updatedAt: string | null;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
export interface NumberCountriesResponse {
|
|
309
|
+
data: NumberCountriesResponse.Data;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export namespace NumberCountriesResponse {
|
|
313
|
+
export interface Data {
|
|
314
|
+
items: Array<Data.Item>;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
export namespace Data {
|
|
318
|
+
export interface Item {
|
|
319
|
+
country: string;
|
|
320
|
+
|
|
321
|
+
inStock: boolean;
|
|
322
|
+
|
|
323
|
+
name: string;
|
|
324
|
+
|
|
325
|
+
planId: string;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
export interface NumberPurposesResponse {
|
|
331
|
+
data: NumberPurposesResponse.Data;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
export namespace NumberPurposesResponse {
|
|
335
|
+
export interface Data {
|
|
336
|
+
items: Array<Data.Item>;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
export namespace Data {
|
|
340
|
+
export interface Item {
|
|
341
|
+
label: string;
|
|
342
|
+
|
|
343
|
+
slug: string;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
export interface NumberCreateParams {
|
|
349
|
+
/**
|
|
350
|
+
* Body param: Prefer a free package seat ('included', default) or force the paid
|
|
351
|
+
* checkout ('rent')
|
|
352
|
+
*/
|
|
353
|
+
billingPreference?: 'included' | 'rent';
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Body param: Optional ISO 3166-1 alpha-2 country code from GET
|
|
357
|
+
* /numbers/countries. Cannot be combined with `purpose`.
|
|
358
|
+
*/
|
|
359
|
+
country?: string;
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Body param: User-defined display label — NFC-normalized, up to 100 GRAPHEMES
|
|
363
|
+
* (not UTF-16 code units; an emoji/flag may span several). Display-only, never
|
|
364
|
+
* used for routing. Also seeds the billing entity name at purchase.
|
|
365
|
+
*/
|
|
366
|
+
label?: string | null;
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Body param: Optional Mobilerun Phone purpose slug from GET /numbers/purposes.
|
|
370
|
+
*/
|
|
371
|
+
purpose?: string;
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Header param: Optional request idempotency key.
|
|
375
|
+
*/
|
|
376
|
+
'Idempotency-Key'?: string;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
export interface NumberUpdateParams {
|
|
380
|
+
/**
|
|
381
|
+
* User-defined display label — NFC-normalized, up to 100 GRAPHEMES (not UTF-16
|
|
382
|
+
* code units; an emoji/flag may span several). Display-only, never used for
|
|
383
|
+
* routing. Also seeds the billing entity name at purchase.
|
|
384
|
+
*/
|
|
385
|
+
label?: string | null;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
export interface NumberListParams {
|
|
389
|
+
page?: number;
|
|
390
|
+
|
|
391
|
+
pageSize?: number;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
Numbers.Messages = Messages;
|
|
395
|
+
|
|
396
|
+
export declare namespace Numbers {
|
|
397
|
+
export {
|
|
398
|
+
type NumberCreateResponse as NumberCreateResponse,
|
|
399
|
+
type NumberRetrieveResponse as NumberRetrieveResponse,
|
|
400
|
+
type NumberUpdateResponse as NumberUpdateResponse,
|
|
401
|
+
type NumberListResponse as NumberListResponse,
|
|
402
|
+
type NumberDeleteResponse as NumberDeleteResponse,
|
|
403
|
+
type NumberCountriesResponse as NumberCountriesResponse,
|
|
404
|
+
type NumberPurposesResponse as NumberPurposesResponse,
|
|
405
|
+
type NumberCreateParams as NumberCreateParams,
|
|
406
|
+
type NumberUpdateParams as NumberUpdateParams,
|
|
407
|
+
type NumberListParams as NumberListParams,
|
|
408
|
+
};
|
|
409
|
+
|
|
410
|
+
export {
|
|
411
|
+
Messages as Messages,
|
|
412
|
+
type MessageListResponse as MessageListResponse,
|
|
413
|
+
type MessageListParams as MessageListParams,
|
|
414
|
+
};
|
|
415
|
+
}
|
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,
|
package/src/resources/shared.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import * as Shared from './shared';
|
|
4
|
-
|
|
5
3
|
export interface DeviceCarrier {
|
|
6
4
|
GsmOperatorAlpha: string;
|
|
7
5
|
|
|
@@ -85,7 +83,7 @@ export namespace DeviceSpec {
|
|
|
85
83
|
|
|
86
84
|
smartIp?: boolean;
|
|
87
85
|
|
|
88
|
-
socks5?:
|
|
86
|
+
socks5?: Proxy.Socks5;
|
|
89
87
|
}
|
|
90
88
|
|
|
91
89
|
export namespace Proxy {
|
|
@@ -101,6 +99,16 @@ export namespace DeviceSpec {
|
|
|
101
99
|
*/
|
|
102
100
|
country?: string;
|
|
103
101
|
}
|
|
102
|
+
|
|
103
|
+
export interface Socks5 {
|
|
104
|
+
host: string;
|
|
105
|
+
|
|
106
|
+
password: string;
|
|
107
|
+
|
|
108
|
+
port: number;
|
|
109
|
+
|
|
110
|
+
user: string;
|
|
111
|
+
}
|
|
104
112
|
}
|
|
105
113
|
}
|
|
106
114
|
|
|
@@ -186,12 +194,18 @@ export interface PermissionSet {
|
|
|
186
194
|
write: boolean;
|
|
187
195
|
}
|
|
188
196
|
|
|
189
|
-
export interface
|
|
197
|
+
export interface Socks5ProxyConfig {
|
|
190
198
|
host: string;
|
|
191
199
|
|
|
200
|
+
name: string;
|
|
201
|
+
|
|
192
202
|
password: string;
|
|
193
203
|
|
|
194
204
|
port: number;
|
|
195
205
|
|
|
206
|
+
protocol: 'socks5';
|
|
207
|
+
|
|
208
|
+
proxyId: string;
|
|
209
|
+
|
|
196
210
|
user: string;
|
|
197
211
|
}
|