@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
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { Actions, } from "./actions.mjs";
|
|
3
3
|
export { Apps, } from "./apps.mjs";
|
|
4
|
+
export { Browser } from "./browser.mjs";
|
|
5
|
+
export { Clipboard, } from "./clipboard.mjs";
|
|
6
|
+
export { DeepLink } from "./deep-link.mjs";
|
|
4
7
|
export { Devices, } from "./devices.mjs";
|
|
5
|
-
export { Esim, } from "./esim.mjs";
|
|
8
|
+
export { Esim, } from "./esim/index.mjs";
|
|
6
9
|
export { Files, } from "./files.mjs";
|
|
7
10
|
export { Keyboard, } from "./keyboard.mjs";
|
|
11
|
+
export { Kiosk } from "./kiosk.mjs";
|
|
8
12
|
export { Language, } from "./language.mjs";
|
|
9
|
-
export { Location } from "./location.mjs";
|
|
13
|
+
export { Location, } from "./location.mjs";
|
|
14
|
+
export { MediaSessions, } from "./media-sessions.mjs";
|
|
10
15
|
export { Packages } from "./packages.mjs";
|
|
11
16
|
export { Profile } from "./profile.mjs";
|
|
12
17
|
export { Proxy, } from "./proxy.mjs";
|
|
18
|
+
export { Recordings, } from "./recordings.mjs";
|
|
13
19
|
export { State, } from "./state.mjs";
|
|
14
20
|
export { Tasks } from "./tasks.mjs";
|
|
15
21
|
export { Timezone, } from "./timezone.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/devices/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,OAAO,GAOR,sBAAkB;AACnB,OAAO,EACL,IAAI,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/devices/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,OAAO,GAOR,sBAAkB;AACnB,OAAO,EACL,IAAI,GAWL,mBAAe;AAChB,OAAO,EAAE,OAAO,EAAsE,sBAAkB;AACxG,OAAO,EACL,SAAS,GAIV,wBAAoB;AACrB,OAAO,EAAE,QAAQ,EAAsC,wBAAoB;AAC3E,OAAO,EACL,OAAO,GAcR,sBAAkB;AACnB,OAAO,EACL,IAAI,GAUL,yBAAqB;AACtB,OAAO,EACL,KAAK,GAON,oBAAgB;AACjB,OAAO,EACL,QAAQ,GAIT,uBAAmB;AACpB,OAAO,EAAE,KAAK,EAAmD,oBAAgB;AACjF,OAAO,EACL,QAAQ,GAIT,uBAAmB;AACpB,OAAO,EACL,QAAQ,GAIT,uBAAmB;AACpB,OAAO,EACL,aAAa,GAOd,6BAAyB;AAC1B,OAAO,EAAE,QAAQ,EAAoD,uBAAmB;AACxF,OAAO,EAAE,OAAO,EAA4B,sBAAkB;AAC9D,OAAO,EACL,KAAK,GAKN,oBAAgB;AACjB,OAAO,EACL,UAAU,GAYX,yBAAqB;AACtB,OAAO,EACL,KAAK,GAQN,oBAAgB;AACjB,OAAO,EAAE,KAAK,EAA8C,oBAAgB;AAC5E,OAAO,EACL,QAAQ,GAIT,uBAAmB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
export declare class Kiosk extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Disables Android lock-task (kiosk) mode on the device, releasing it from the
|
|
7
|
+
* locked app.
|
|
8
|
+
*/
|
|
9
|
+
disable(deviceID: string, params?: KioskDisableParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
10
|
+
/**
|
|
11
|
+
* Locks the device to the package named in the request body using Android
|
|
12
|
+
* lock-task (kiosk) mode, preventing the user from leaving the app.
|
|
13
|
+
*/
|
|
14
|
+
enable(deviceID: string, params: KioskEnableParams, options?: RequestOptions): APIPromise<void>;
|
|
15
|
+
}
|
|
16
|
+
export interface KioskDisableParams {
|
|
17
|
+
'X-Device-Display-ID'?: number;
|
|
18
|
+
}
|
|
19
|
+
export interface KioskEnableParams {
|
|
20
|
+
/**
|
|
21
|
+
* Body param: Package to lock the device to (Android lock-task mode).
|
|
22
|
+
*/
|
|
23
|
+
packageName: string;
|
|
24
|
+
/**
|
|
25
|
+
* Header param
|
|
26
|
+
*/
|
|
27
|
+
'X-Device-Display-ID'?: number;
|
|
28
|
+
}
|
|
29
|
+
export declare namespace Kiosk {
|
|
30
|
+
export { type KioskDisableParams as KioskDisableParams, type KioskEnableParams as KioskEnableParams };
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=kiosk.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kiosk.d.mts","sourceRoot":"","sources":["../../src/resources/devices/kiosk.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,OAAO,CACL,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;IAgBnB;;;OAGG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAgBhG;AAED,MAAM,WAAW,kBAAkB;IACjC,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACvG"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
export declare class Kiosk extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Disables Android lock-task (kiosk) mode on the device, releasing it from the
|
|
7
|
+
* locked app.
|
|
8
|
+
*/
|
|
9
|
+
disable(deviceID: string, params?: KioskDisableParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
10
|
+
/**
|
|
11
|
+
* Locks the device to the package named in the request body using Android
|
|
12
|
+
* lock-task (kiosk) mode, preventing the user from leaving the app.
|
|
13
|
+
*/
|
|
14
|
+
enable(deviceID: string, params: KioskEnableParams, options?: RequestOptions): APIPromise<void>;
|
|
15
|
+
}
|
|
16
|
+
export interface KioskDisableParams {
|
|
17
|
+
'X-Device-Display-ID'?: number;
|
|
18
|
+
}
|
|
19
|
+
export interface KioskEnableParams {
|
|
20
|
+
/**
|
|
21
|
+
* Body param: Package to lock the device to (Android lock-task mode).
|
|
22
|
+
*/
|
|
23
|
+
packageName: string;
|
|
24
|
+
/**
|
|
25
|
+
* Header param
|
|
26
|
+
*/
|
|
27
|
+
'X-Device-Display-ID'?: number;
|
|
28
|
+
}
|
|
29
|
+
export declare namespace Kiosk {
|
|
30
|
+
export { type KioskDisableParams as KioskDisableParams, type KioskEnableParams as KioskEnableParams };
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=kiosk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kiosk.d.ts","sourceRoot":"","sources":["../../src/resources/devices/kiosk.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,OAAO,CACL,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;IAgBnB;;;OAGG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAgBhG;AAED,MAAM,WAAW,kBAAkB;IACjC,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACvG"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Kiosk = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const headers_1 = require("../../internal/headers.js");
|
|
7
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
8
|
+
class Kiosk extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Disables Android lock-task (kiosk) mode on the device, releasing it from the
|
|
11
|
+
* locked app.
|
|
12
|
+
*/
|
|
13
|
+
disable(deviceID, params = {}, options) {
|
|
14
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
15
|
+
return this._client.delete((0, path_1.path) `/devices/${deviceID}/kiosk`, {
|
|
16
|
+
...options,
|
|
17
|
+
headers: (0, headers_1.buildHeaders)([
|
|
18
|
+
{
|
|
19
|
+
Accept: '*/*',
|
|
20
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
21
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
22
|
+
: undefined),
|
|
23
|
+
},
|
|
24
|
+
options?.headers,
|
|
25
|
+
]),
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Locks the device to the package named in the request body using Android
|
|
30
|
+
* lock-task (kiosk) mode, preventing the user from leaving the app.
|
|
31
|
+
*/
|
|
32
|
+
enable(deviceID, params, options) {
|
|
33
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
34
|
+
return this._client.put((0, path_1.path) `/devices/${deviceID}/kiosk`, {
|
|
35
|
+
body,
|
|
36
|
+
...options,
|
|
37
|
+
headers: (0, headers_1.buildHeaders)([
|
|
38
|
+
{
|
|
39
|
+
Accept: '*/*',
|
|
40
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
41
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
42
|
+
: undefined),
|
|
43
|
+
},
|
|
44
|
+
options?.headers,
|
|
45
|
+
]),
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.Kiosk = Kiosk;
|
|
50
|
+
//# sourceMappingURL=kiosk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kiosk.js","sourceRoot":"","sources":["../../src/resources/devices/kiosk.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;OAGG;IACH,OAAO,CACL,QAAgB,EAChB,SAAgD,EAAE,EAClD,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,YAAY,QAAQ,QAAQ,EAAE;YAC3D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,MAAM,EAAE,KAAK;oBACb,GAAG,CAAC,gBAAgB,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC;wBACxC,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,EAAE;wBACzD,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,QAAgB,EAAE,MAAyB,EAAE,OAAwB;QAC1E,MAAM,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,QAAQ,QAAQ,EAAE;YACxD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,MAAM,EAAE,KAAK;oBACb,GAAG,CAAC,gBAAgB,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC;wBACxC,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,EAAE;wBACzD,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AA7CD,sBA6CC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
5
|
+
export class Kiosk extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Disables Android lock-task (kiosk) mode on the device, releasing it from the
|
|
8
|
+
* locked app.
|
|
9
|
+
*/
|
|
10
|
+
disable(deviceID, params = {}, options) {
|
|
11
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
12
|
+
return this._client.delete(path `/devices/${deviceID}/kiosk`, {
|
|
13
|
+
...options,
|
|
14
|
+
headers: buildHeaders([
|
|
15
|
+
{
|
|
16
|
+
Accept: '*/*',
|
|
17
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
18
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
19
|
+
: undefined),
|
|
20
|
+
},
|
|
21
|
+
options?.headers,
|
|
22
|
+
]),
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Locks the device to the package named in the request body using Android
|
|
27
|
+
* lock-task (kiosk) mode, preventing the user from leaving the app.
|
|
28
|
+
*/
|
|
29
|
+
enable(deviceID, params, options) {
|
|
30
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
31
|
+
return this._client.put(path `/devices/${deviceID}/kiosk`, {
|
|
32
|
+
body,
|
|
33
|
+
...options,
|
|
34
|
+
headers: buildHeaders([
|
|
35
|
+
{
|
|
36
|
+
Accept: '*/*',
|
|
37
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
38
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
39
|
+
: undefined),
|
|
40
|
+
},
|
|
41
|
+
options?.headers,
|
|
42
|
+
]),
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=kiosk.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kiosk.mjs","sourceRoot":"","sources":["../../src/resources/devices/kiosk.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,OAAO,CACL,QAAgB,EAChB,SAAgD,EAAE,EAClD,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,YAAY,QAAQ,QAAQ,EAAE;YAC3D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,MAAM,EAAE,KAAK;oBACb,GAAG,CAAC,gBAAgB,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC;wBACxC,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,EAAE;wBACzD,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,QAAgB,EAAE,MAAyB,EAAE,OAAwB;QAC1E,MAAM,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,QAAQ,QAAQ,EAAE;YACxD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,MAAM,EAAE,KAAK;oBACb,GAAG,CAAC,gBAAgB,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC;wBACxC,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,EAAE;wBACzD,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -8,6 +8,11 @@ export declare class Location extends APIResource {
|
|
|
8
8
|
* Devices without geo support return an unsupported-feature error.
|
|
9
9
|
*/
|
|
10
10
|
get(deviceID: string, params?: LocationGetParams | null | undefined, options?: RequestOptions): APIPromise<Shared.Location>;
|
|
11
|
+
/**
|
|
12
|
+
* Clears any simulated GPS location and restores the device's default location
|
|
13
|
+
* behavior. Devices without geo support return an unsupported-feature error.
|
|
14
|
+
*/
|
|
15
|
+
reset(deviceID: string, params?: LocationResetParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
11
16
|
/**
|
|
12
17
|
* Sets the device's simulated GPS location to the latitude and longitude in the
|
|
13
18
|
* request body. Devices without geo support return an unsupported-feature error.
|
|
@@ -17,6 +22,9 @@ export declare class Location extends APIResource {
|
|
|
17
22
|
export interface LocationGetParams {
|
|
18
23
|
'X-Device-Display-ID'?: number;
|
|
19
24
|
}
|
|
25
|
+
export interface LocationResetParams {
|
|
26
|
+
'X-Device-Display-ID'?: number;
|
|
27
|
+
}
|
|
20
28
|
export interface LocationSetParams {
|
|
21
29
|
/**
|
|
22
30
|
* Body param
|
|
@@ -32,6 +40,6 @@ export interface LocationSetParams {
|
|
|
32
40
|
'X-Device-Display-ID'?: number;
|
|
33
41
|
}
|
|
34
42
|
export declare namespace Location {
|
|
35
|
-
export { type LocationGetParams as LocationGetParams, type LocationSetParams as LocationSetParams };
|
|
43
|
+
export { type LocationGetParams as LocationGetParams, type LocationResetParams as LocationResetParams, type LocationSetParams as LocationSetParams, };
|
|
36
44
|
}
|
|
37
45
|
//# sourceMappingURL=location.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.d.mts","sourceRoot":"","sources":["../../src/resources/devices/location.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;OAGG;IACH,GAAG,CACD,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC;IAe9B;;;OAGG;IACH,GAAG,C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,MAAM,WAAW,mBAAmB;IAClC,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -8,6 +8,11 @@ export declare class Location extends APIResource {
|
|
|
8
8
|
* Devices without geo support return an unsupported-feature error.
|
|
9
9
|
*/
|
|
10
10
|
get(deviceID: string, params?: LocationGetParams | null | undefined, options?: RequestOptions): APIPromise<Shared.Location>;
|
|
11
|
+
/**
|
|
12
|
+
* Clears any simulated GPS location and restores the device's default location
|
|
13
|
+
* behavior. Devices without geo support return an unsupported-feature error.
|
|
14
|
+
*/
|
|
15
|
+
reset(deviceID: string, params?: LocationResetParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
11
16
|
/**
|
|
12
17
|
* Sets the device's simulated GPS location to the latitude and longitude in the
|
|
13
18
|
* request body. Devices without geo support return an unsupported-feature error.
|
|
@@ -17,6 +22,9 @@ export declare class Location extends APIResource {
|
|
|
17
22
|
export interface LocationGetParams {
|
|
18
23
|
'X-Device-Display-ID'?: number;
|
|
19
24
|
}
|
|
25
|
+
export interface LocationResetParams {
|
|
26
|
+
'X-Device-Display-ID'?: number;
|
|
27
|
+
}
|
|
20
28
|
export interface LocationSetParams {
|
|
21
29
|
/**
|
|
22
30
|
* Body param
|
|
@@ -32,6 +40,6 @@ export interface LocationSetParams {
|
|
|
32
40
|
'X-Device-Display-ID'?: number;
|
|
33
41
|
}
|
|
34
42
|
export declare namespace Location {
|
|
35
|
-
export { type LocationGetParams as LocationGetParams, type LocationSetParams as LocationSetParams };
|
|
43
|
+
export { type LocationGetParams as LocationGetParams, type LocationResetParams as LocationResetParams, type LocationSetParams as LocationSetParams, };
|
|
36
44
|
}
|
|
37
45
|
//# sourceMappingURL=location.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../../src/resources/devices/location.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;OAGG;IACH,GAAG,CACD,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC;IAe9B;;;OAGG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAgB7F;AAED,MAAM,WAAW,iBAAiB;IAChC,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,
|
|
1
|
+
{"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../../src/resources/devices/location.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;OAGG;IACH,GAAG,CACD,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC;IAe9B;;;OAGG;IACH,KAAK,CACH,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;IAgBnB;;;OAGG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAgB7F;AAED,MAAM,WAAW,iBAAiB;IAChC,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,mBAAmB;IAClC,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -24,6 +24,25 @@ class Location extends resource_1.APIResource {
|
|
|
24
24
|
]),
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* Clears any simulated GPS location and restores the device's default location
|
|
29
|
+
* behavior. Devices without geo support return an unsupported-feature error.
|
|
30
|
+
*/
|
|
31
|
+
reset(deviceID, params = {}, options) {
|
|
32
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
33
|
+
return this._client.delete((0, path_1.path) `/devices/${deviceID}/location`, {
|
|
34
|
+
...options,
|
|
35
|
+
headers: (0, headers_1.buildHeaders)([
|
|
36
|
+
{
|
|
37
|
+
Accept: '*/*',
|
|
38
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
39
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
40
|
+
: undefined),
|
|
41
|
+
},
|
|
42
|
+
options?.headers,
|
|
43
|
+
]),
|
|
44
|
+
});
|
|
45
|
+
}
|
|
27
46
|
/**
|
|
28
47
|
* Sets the device's simulated GPS location to the latitude and longitude in the
|
|
29
48
|
* request body. Devices without geo support return an unsupported-feature error.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.js","sourceRoot":"","sources":["../../src/resources/devices/location.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;OAGG;IACH,GAAG,CACD,QAAgB,EAChB,SAA+C,EAAE,EACjD,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,QAAQ,WAAW,EAAE;YAC3D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,gBAAgB,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC;wBACxC,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,EAAE;wBACzD,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,O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CACF;AApED,4BAoEC"}
|
|
@@ -21,6 +21,25 @@ export class Location extends APIResource {
|
|
|
21
21
|
]),
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* Clears any simulated GPS location and restores the device's default location
|
|
26
|
+
* behavior. Devices without geo support return an unsupported-feature error.
|
|
27
|
+
*/
|
|
28
|
+
reset(deviceID, params = {}, options) {
|
|
29
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
30
|
+
return this._client.delete(path `/devices/${deviceID}/location`, {
|
|
31
|
+
...options,
|
|
32
|
+
headers: buildHeaders([
|
|
33
|
+
{
|
|
34
|
+
Accept: '*/*',
|
|
35
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
36
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
37
|
+
: undefined),
|
|
38
|
+
},
|
|
39
|
+
options?.headers,
|
|
40
|
+
]),
|
|
41
|
+
});
|
|
42
|
+
}
|
|
24
43
|
/**
|
|
25
44
|
* Sets the device's simulated GPS location to the latitude and longitude in the
|
|
26
45
|
* request body. Devices without geo support return an unsupported-feature error.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.mjs","sourceRoot":"","sources":["../../src/resources/devices/location.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;OAGG;IACH,GAAG,CACD,QAAgB,EAChB,SAA+C,EAAE,EACjD,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,QAAQ,WAAW,EAAE;YAC3D,GAAG,OA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E,KAAK;oBACb,GAAG,CAAC,gBAAgB,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC;wBACxC,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,EAAE;wBACzD,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
export declare class MediaSessions extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Allocates an exclusive relay path and returns one-time publish and control
|
|
7
|
+
* credentials. The relay publisher must be established before activation.
|
|
8
|
+
*/
|
|
9
|
+
create(deviceID: string, body: MediaSessionCreateParams, options?: RequestOptions): APIPromise<MediaSessionCreateResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Immediately revokes relay authorization, detaches virtual media inputs, and
|
|
12
|
+
* kicks the relay publisher.
|
|
13
|
+
*/
|
|
14
|
+
delete(sessionID: string, params: MediaSessionDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
15
|
+
/**
|
|
16
|
+
* Validates relay codecs and attaches one private RTSP source to either the
|
|
17
|
+
* virtual microphone or the combined microphone-and-camera pipeline.
|
|
18
|
+
*/
|
|
19
|
+
activate(sessionID: string, params: MediaSessionActivateParams, options?: RequestOptions): APIPromise<MediaSessionActivateResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Returns status only. Publish URLs and credentials are never replayed after
|
|
22
|
+
* creation.
|
|
23
|
+
*/
|
|
24
|
+
retrieveCurrent(deviceID: string, options?: RequestOptions): APIPromise<MediaSessionRetrieveCurrentResponse>;
|
|
25
|
+
}
|
|
26
|
+
export interface MediaSessionCreateResponse {
|
|
27
|
+
camera: boolean;
|
|
28
|
+
controlToken: string;
|
|
29
|
+
expiresAt: string;
|
|
30
|
+
microphone: boolean;
|
|
31
|
+
publishToken: string;
|
|
32
|
+
publishUrl: string;
|
|
33
|
+
sessionId: string;
|
|
34
|
+
state: 'created' | 'publishing' | 'active' | 'stopping' | 'closed' | 'failed';
|
|
35
|
+
/**
|
|
36
|
+
* A URL to the JSON Schema for this object.
|
|
37
|
+
*/
|
|
38
|
+
$schema?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface MediaSessionActivateResponse {
|
|
41
|
+
camera: boolean;
|
|
42
|
+
expiresAt: string;
|
|
43
|
+
microphone: boolean;
|
|
44
|
+
sessionId: string;
|
|
45
|
+
state: 'created' | 'publishing' | 'active' | 'stopping' | 'closed' | 'failed';
|
|
46
|
+
/**
|
|
47
|
+
* A URL to the JSON Schema for this object.
|
|
48
|
+
*/
|
|
49
|
+
$schema?: string;
|
|
50
|
+
}
|
|
51
|
+
export interface MediaSessionRetrieveCurrentResponse {
|
|
52
|
+
camera: boolean;
|
|
53
|
+
expiresAt: string;
|
|
54
|
+
microphone: boolean;
|
|
55
|
+
sessionId: string;
|
|
56
|
+
state: 'created' | 'publishing' | 'active' | 'stopping' | 'closed' | 'failed';
|
|
57
|
+
/**
|
|
58
|
+
* A URL to the JSON Schema for this object.
|
|
59
|
+
*/
|
|
60
|
+
$schema?: string;
|
|
61
|
+
}
|
|
62
|
+
export interface MediaSessionCreateParams {
|
|
63
|
+
/**
|
|
64
|
+
* Publish combined browser audio and H264 video into the device's virtual
|
|
65
|
+
* microphone and camera. Requires microphone=true.
|
|
66
|
+
*/
|
|
67
|
+
camera: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Publish browser audio into the device's virtual microphone.
|
|
70
|
+
*/
|
|
71
|
+
microphone: boolean;
|
|
72
|
+
}
|
|
73
|
+
export interface MediaSessionDeleteParams {
|
|
74
|
+
/**
|
|
75
|
+
* Path param
|
|
76
|
+
*/
|
|
77
|
+
deviceId: string;
|
|
78
|
+
/**
|
|
79
|
+
* Header param
|
|
80
|
+
*/
|
|
81
|
+
'X-Media-Control-Token': string;
|
|
82
|
+
}
|
|
83
|
+
export interface MediaSessionActivateParams {
|
|
84
|
+
/**
|
|
85
|
+
* Path param
|
|
86
|
+
*/
|
|
87
|
+
deviceId: string;
|
|
88
|
+
/**
|
|
89
|
+
* Header param
|
|
90
|
+
*/
|
|
91
|
+
'X-Media-Control-Token': string;
|
|
92
|
+
}
|
|
93
|
+
export declare namespace MediaSessions {
|
|
94
|
+
export { type MediaSessionCreateResponse as MediaSessionCreateResponse, type MediaSessionActivateResponse as MediaSessionActivateResponse, type MediaSessionRetrieveCurrentResponse as MediaSessionRetrieveCurrentResponse, type MediaSessionCreateParams as MediaSessionCreateParams, type MediaSessionDeleteParams as MediaSessionDeleteParams, type MediaSessionActivateParams as MediaSessionActivateParams, };
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=media-sessions.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media-sessions.d.mts","sourceRoot":"","sources":["../../src/resources/devices/media-sessions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;OAGG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;IAIzC;;;OAGG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAWvG;;;OAGG;IACH,QAAQ,CACN,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,0BAA0B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4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ACrB;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,uBAAuB,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,uBAAuB,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
export declare class MediaSessions extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Allocates an exclusive relay path and returns one-time publish and control
|
|
7
|
+
* credentials. The relay publisher must be established before activation.
|
|
8
|
+
*/
|
|
9
|
+
create(deviceID: string, body: MediaSessionCreateParams, options?: RequestOptions): APIPromise<MediaSessionCreateResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Immediately revokes relay authorization, detaches virtual media inputs, and
|
|
12
|
+
* kicks the relay publisher.
|
|
13
|
+
*/
|
|
14
|
+
delete(sessionID: string, params: MediaSessionDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
15
|
+
/**
|
|
16
|
+
* Validates relay codecs and attaches one private RTSP source to either the
|
|
17
|
+
* virtual microphone or the combined microphone-and-camera pipeline.
|
|
18
|
+
*/
|
|
19
|
+
activate(sessionID: string, params: MediaSessionActivateParams, options?: RequestOptions): APIPromise<MediaSessionActivateResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Returns status only. Publish URLs and credentials are never replayed after
|
|
22
|
+
* creation.
|
|
23
|
+
*/
|
|
24
|
+
retrieveCurrent(deviceID: string, options?: RequestOptions): APIPromise<MediaSessionRetrieveCurrentResponse>;
|
|
25
|
+
}
|
|
26
|
+
export interface MediaSessionCreateResponse {
|
|
27
|
+
camera: boolean;
|
|
28
|
+
controlToken: string;
|
|
29
|
+
expiresAt: string;
|
|
30
|
+
microphone: boolean;
|
|
31
|
+
publishToken: string;
|
|
32
|
+
publishUrl: string;
|
|
33
|
+
sessionId: string;
|
|
34
|
+
state: 'created' | 'publishing' | 'active' | 'stopping' | 'closed' | 'failed';
|
|
35
|
+
/**
|
|
36
|
+
* A URL to the JSON Schema for this object.
|
|
37
|
+
*/
|
|
38
|
+
$schema?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface MediaSessionActivateResponse {
|
|
41
|
+
camera: boolean;
|
|
42
|
+
expiresAt: string;
|
|
43
|
+
microphone: boolean;
|
|
44
|
+
sessionId: string;
|
|
45
|
+
state: 'created' | 'publishing' | 'active' | 'stopping' | 'closed' | 'failed';
|
|
46
|
+
/**
|
|
47
|
+
* A URL to the JSON Schema for this object.
|
|
48
|
+
*/
|
|
49
|
+
$schema?: string;
|
|
50
|
+
}
|
|
51
|
+
export interface MediaSessionRetrieveCurrentResponse {
|
|
52
|
+
camera: boolean;
|
|
53
|
+
expiresAt: string;
|
|
54
|
+
microphone: boolean;
|
|
55
|
+
sessionId: string;
|
|
56
|
+
state: 'created' | 'publishing' | 'active' | 'stopping' | 'closed' | 'failed';
|
|
57
|
+
/**
|
|
58
|
+
* A URL to the JSON Schema for this object.
|
|
59
|
+
*/
|
|
60
|
+
$schema?: string;
|
|
61
|
+
}
|
|
62
|
+
export interface MediaSessionCreateParams {
|
|
63
|
+
/**
|
|
64
|
+
* Publish combined browser audio and H264 video into the device's virtual
|
|
65
|
+
* microphone and camera. Requires microphone=true.
|
|
66
|
+
*/
|
|
67
|
+
camera: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Publish browser audio into the device's virtual microphone.
|
|
70
|
+
*/
|
|
71
|
+
microphone: boolean;
|
|
72
|
+
}
|
|
73
|
+
export interface MediaSessionDeleteParams {
|
|
74
|
+
/**
|
|
75
|
+
* Path param
|
|
76
|
+
*/
|
|
77
|
+
deviceId: string;
|
|
78
|
+
/**
|
|
79
|
+
* Header param
|
|
80
|
+
*/
|
|
81
|
+
'X-Media-Control-Token': string;
|
|
82
|
+
}
|
|
83
|
+
export interface MediaSessionActivateParams {
|
|
84
|
+
/**
|
|
85
|
+
* Path param
|
|
86
|
+
*/
|
|
87
|
+
deviceId: string;
|
|
88
|
+
/**
|
|
89
|
+
* Header param
|
|
90
|
+
*/
|
|
91
|
+
'X-Media-Control-Token': string;
|
|
92
|
+
}
|
|
93
|
+
export declare namespace MediaSessions {
|
|
94
|
+
export { type MediaSessionCreateResponse as MediaSessionCreateResponse, type MediaSessionActivateResponse as MediaSessionActivateResponse, type MediaSessionRetrieveCurrentResponse as MediaSessionRetrieveCurrentResponse, type MediaSessionCreateParams as MediaSessionCreateParams, type MediaSessionDeleteParams as MediaSessionDeleteParams, type MediaSessionActivateParams as MediaSessionActivateParams, };
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=media-sessions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media-sessions.d.ts","sourceRoot":"","sources":["../../src/resources/devices/media-sessions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;OAGG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BA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MAAM,CAAC;IAElB,KAAK,EAAE,SAAS,GAAG,YAAY,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAE9E;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,uBAAuB,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,uBAAuB,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.MediaSessions = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const headers_1 = require("../../internal/headers.js");
|
|
7
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
8
|
+
class MediaSessions extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Allocates an exclusive relay path and returns one-time publish and control
|
|
11
|
+
* credentials. The relay publisher must be established before activation.
|
|
12
|
+
*/
|
|
13
|
+
create(deviceID, body, options) {
|
|
14
|
+
return this._client.post((0, path_1.path) `/devices/${deviceID}/media-sessions`, { body, ...options });
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Immediately revokes relay authorization, detaches virtual media inputs, and
|
|
18
|
+
* kicks the relay publisher.
|
|
19
|
+
*/
|
|
20
|
+
delete(sessionID, params, options) {
|
|
21
|
+
const { deviceId, 'X-Media-Control-Token': xMediaControlToken } = params;
|
|
22
|
+
return this._client.delete((0, path_1.path) `/devices/${deviceId}/media-sessions/${sessionID}`, {
|
|
23
|
+
...options,
|
|
24
|
+
headers: (0, headers_1.buildHeaders)([
|
|
25
|
+
{ Accept: '*/*', 'X-Media-Control-Token': xMediaControlToken },
|
|
26
|
+
options?.headers,
|
|
27
|
+
]),
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Validates relay codecs and attaches one private RTSP source to either the
|
|
32
|
+
* virtual microphone or the combined microphone-and-camera pipeline.
|
|
33
|
+
*/
|
|
34
|
+
activate(sessionID, params, options) {
|
|
35
|
+
const { deviceId, 'X-Media-Control-Token': xMediaControlToken } = params;
|
|
36
|
+
return this._client.post((0, path_1.path) `/devices/${deviceId}/media-sessions/${sessionID}/activate`, {
|
|
37
|
+
...options,
|
|
38
|
+
headers: (0, headers_1.buildHeaders)([{ 'X-Media-Control-Token': xMediaControlToken }, options?.headers]),
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Returns status only. Publish URLs and credentials are never replayed after
|
|
43
|
+
* creation.
|
|
44
|
+
*/
|
|
45
|
+
retrieveCurrent(deviceID, options) {
|
|
46
|
+
return this._client.get((0, path_1.path) `/devices/${deviceID}/media-sessions/current`, options);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.MediaSessions = MediaSessions;
|
|
50
|
+
//# sourceMappingURL=media-sessions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"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