@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,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 MediaSessions extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Allocates an exclusive relay path and returns one-time publish and control
|
|
8
|
+
* credentials. The relay publisher must be established before activation.
|
|
9
|
+
*/
|
|
10
|
+
create(deviceID, body, options) {
|
|
11
|
+
return this._client.post(path `/devices/${deviceID}/media-sessions`, { body, ...options });
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Immediately revokes relay authorization, detaches virtual media inputs, and
|
|
15
|
+
* kicks the relay publisher.
|
|
16
|
+
*/
|
|
17
|
+
delete(sessionID, params, options) {
|
|
18
|
+
const { deviceId, 'X-Media-Control-Token': xMediaControlToken } = params;
|
|
19
|
+
return this._client.delete(path `/devices/${deviceId}/media-sessions/${sessionID}`, {
|
|
20
|
+
...options,
|
|
21
|
+
headers: buildHeaders([
|
|
22
|
+
{ Accept: '*/*', 'X-Media-Control-Token': xMediaControlToken },
|
|
23
|
+
options?.headers,
|
|
24
|
+
]),
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Validates relay codecs and attaches one private RTSP source to either the
|
|
29
|
+
* virtual microphone or the combined microphone-and-camera pipeline.
|
|
30
|
+
*/
|
|
31
|
+
activate(sessionID, params, options) {
|
|
32
|
+
const { deviceId, 'X-Media-Control-Token': xMediaControlToken } = params;
|
|
33
|
+
return this._client.post(path `/devices/${deviceId}/media-sessions/${sessionID}/activate`, {
|
|
34
|
+
...options,
|
|
35
|
+
headers: buildHeaders([{ 'X-Media-Control-Token': xMediaControlToken }, options?.headers]),
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Returns status only. Publish URLs and credentials are never replayed after
|
|
40
|
+
* creation.
|
|
41
|
+
*/
|
|
42
|
+
retrieveCurrent(deviceID, options) {
|
|
43
|
+
return this._client.get(path `/devices/${deviceID}/media-sessions/current`, options);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=media-sessions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media-sessions.mjs","sourceRoot":"","sources":["../../src/res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AC;IAED;;;OAGG;IACH,eAAe,CACb,QAAgB,EAChB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,QAAQ,yBAAyB,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;CACF"}
|
|
@@ -0,0 +1,192 @@
|
|
|
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 Recordings extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* List device recordings
|
|
7
|
+
*/
|
|
8
|
+
list(deviceID: string, query?: RecordingListParams | null | undefined, options?: RequestOptions): APIPromise<RecordingListResponse | null>;
|
|
9
|
+
/**
|
|
10
|
+
* Delete a device recording
|
|
11
|
+
*/
|
|
12
|
+
delete(recordingID: string, params: RecordingDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* Start a device recording
|
|
15
|
+
*/
|
|
16
|
+
start(deviceID: string, body: RecordingStartParams, options?: RequestOptions): APIPromise<RecordingStartResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Get a device recording
|
|
19
|
+
*/
|
|
20
|
+
status(recordingID: string, params: RecordingStatusParams, options?: RequestOptions): APIPromise<RecordingStatusResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Stop a device recording
|
|
23
|
+
*/
|
|
24
|
+
stop(recordingID: string, params: RecordingStopParams, options?: RequestOptions): APIPromise<RecordingStopResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Get a device recording trajectory
|
|
27
|
+
*/
|
|
28
|
+
trajectory(recordingID: string, params: RecordingTrajectoryParams, options?: RequestOptions): APIPromise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Get a device recording video
|
|
31
|
+
*/
|
|
32
|
+
video(recordingID: string, params: RecordingVideoParams, options?: RequestOptions): APIPromise<void>;
|
|
33
|
+
}
|
|
34
|
+
export type RecordingListResponse = Array<RecordingListResponse.RecordingListResponseItem>;
|
|
35
|
+
export declare namespace RecordingListResponse {
|
|
36
|
+
interface RecordingListResponseItem {
|
|
37
|
+
id: string;
|
|
38
|
+
actions: number;
|
|
39
|
+
deviceId: string;
|
|
40
|
+
display: RecordingListResponseItem.Display;
|
|
41
|
+
expiresAt: string;
|
|
42
|
+
name: string;
|
|
43
|
+
startedAt: string;
|
|
44
|
+
status: string;
|
|
45
|
+
types: Array<string> | null;
|
|
46
|
+
/**
|
|
47
|
+
* A URL to the JSON Schema for this object.
|
|
48
|
+
*/
|
|
49
|
+
$schema?: string;
|
|
50
|
+
endedAt?: string;
|
|
51
|
+
error?: string;
|
|
52
|
+
video?: RecordingListResponseItem.Video;
|
|
53
|
+
}
|
|
54
|
+
namespace RecordingListResponseItem {
|
|
55
|
+
interface Display {
|
|
56
|
+
height: number;
|
|
57
|
+
rotation: number;
|
|
58
|
+
width: number;
|
|
59
|
+
}
|
|
60
|
+
interface Video {
|
|
61
|
+
durationMs: number;
|
|
62
|
+
format: string;
|
|
63
|
+
sizeBytes: number;
|
|
64
|
+
limited?: boolean;
|
|
65
|
+
limitReason?: string;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
export interface RecordingStartResponse {
|
|
70
|
+
id: string;
|
|
71
|
+
actions: number;
|
|
72
|
+
deviceId: string;
|
|
73
|
+
display: RecordingStartResponse.Display;
|
|
74
|
+
expiresAt: string;
|
|
75
|
+
name: string;
|
|
76
|
+
startedAt: string;
|
|
77
|
+
status: string;
|
|
78
|
+
types: Array<string> | null;
|
|
79
|
+
/**
|
|
80
|
+
* A URL to the JSON Schema for this object.
|
|
81
|
+
*/
|
|
82
|
+
$schema?: string;
|
|
83
|
+
endedAt?: string;
|
|
84
|
+
error?: string;
|
|
85
|
+
video?: RecordingStartResponse.Video;
|
|
86
|
+
}
|
|
87
|
+
export declare namespace RecordingStartResponse {
|
|
88
|
+
interface Display {
|
|
89
|
+
height: number;
|
|
90
|
+
rotation: number;
|
|
91
|
+
width: number;
|
|
92
|
+
}
|
|
93
|
+
interface Video {
|
|
94
|
+
durationMs: number;
|
|
95
|
+
format: string;
|
|
96
|
+
sizeBytes: number;
|
|
97
|
+
limited?: boolean;
|
|
98
|
+
limitReason?: string;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
export interface RecordingStatusResponse {
|
|
102
|
+
id: string;
|
|
103
|
+
actions: number;
|
|
104
|
+
deviceId: string;
|
|
105
|
+
display: RecordingStatusResponse.Display;
|
|
106
|
+
expiresAt: string;
|
|
107
|
+
name: string;
|
|
108
|
+
startedAt: string;
|
|
109
|
+
status: string;
|
|
110
|
+
types: Array<string> | null;
|
|
111
|
+
/**
|
|
112
|
+
* A URL to the JSON Schema for this object.
|
|
113
|
+
*/
|
|
114
|
+
$schema?: string;
|
|
115
|
+
endedAt?: string;
|
|
116
|
+
error?: string;
|
|
117
|
+
video?: RecordingStatusResponse.Video;
|
|
118
|
+
}
|
|
119
|
+
export declare namespace RecordingStatusResponse {
|
|
120
|
+
interface Display {
|
|
121
|
+
height: number;
|
|
122
|
+
rotation: number;
|
|
123
|
+
width: number;
|
|
124
|
+
}
|
|
125
|
+
interface Video {
|
|
126
|
+
durationMs: number;
|
|
127
|
+
format: string;
|
|
128
|
+
sizeBytes: number;
|
|
129
|
+
limited?: boolean;
|
|
130
|
+
limitReason?: string;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
export interface RecordingStopResponse {
|
|
134
|
+
id: string;
|
|
135
|
+
actions: number;
|
|
136
|
+
deviceId: string;
|
|
137
|
+
display: RecordingStopResponse.Display;
|
|
138
|
+
expiresAt: string;
|
|
139
|
+
name: string;
|
|
140
|
+
startedAt: string;
|
|
141
|
+
status: string;
|
|
142
|
+
types: Array<string> | null;
|
|
143
|
+
/**
|
|
144
|
+
* A URL to the JSON Schema for this object.
|
|
145
|
+
*/
|
|
146
|
+
$schema?: string;
|
|
147
|
+
endedAt?: string;
|
|
148
|
+
error?: string;
|
|
149
|
+
video?: RecordingStopResponse.Video;
|
|
150
|
+
}
|
|
151
|
+
export declare namespace RecordingStopResponse {
|
|
152
|
+
interface Display {
|
|
153
|
+
height: number;
|
|
154
|
+
rotation: number;
|
|
155
|
+
width: number;
|
|
156
|
+
}
|
|
157
|
+
interface Video {
|
|
158
|
+
durationMs: number;
|
|
159
|
+
format: string;
|
|
160
|
+
sizeBytes: number;
|
|
161
|
+
limited?: boolean;
|
|
162
|
+
limitReason?: string;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
export interface RecordingListParams {
|
|
166
|
+
status?: string;
|
|
167
|
+
type?: string;
|
|
168
|
+
}
|
|
169
|
+
export interface RecordingDeleteParams {
|
|
170
|
+
deviceId: string;
|
|
171
|
+
}
|
|
172
|
+
export interface RecordingStartParams {
|
|
173
|
+
name?: string;
|
|
174
|
+
retentionDays?: number;
|
|
175
|
+
types?: Array<string> | null;
|
|
176
|
+
}
|
|
177
|
+
export interface RecordingStatusParams {
|
|
178
|
+
deviceId: string;
|
|
179
|
+
}
|
|
180
|
+
export interface RecordingStopParams {
|
|
181
|
+
deviceId: string;
|
|
182
|
+
}
|
|
183
|
+
export interface RecordingTrajectoryParams {
|
|
184
|
+
deviceId: string;
|
|
185
|
+
}
|
|
186
|
+
export interface RecordingVideoParams {
|
|
187
|
+
deviceId: string;
|
|
188
|
+
}
|
|
189
|
+
export declare namespace Recordings {
|
|
190
|
+
export { type RecordingListResponse as RecordingListResponse, type RecordingStartResponse as RecordingStartResponse, type RecordingStatusResponse as RecordingStatusResponse, type RecordingStopResponse as RecordingStopResponse, type RecordingListParams as RecordingListParams, type RecordingDeleteParams as RecordingDeleteParams, type RecordingStartParams as RecordingStartParams, type RecordingStatusParams as RecordingStatusParams, type RecordingStopParams as RecordingStopParams, type RecordingTrajectoryParams as RecordingTrajectoryParams, type RecordingVideoParams as RecordingVideoParams, };
|
|
191
|
+
}
|
|
192
|
+
//# sourceMappingURL=recordings.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recordings.d.mts","sourceRoot":"","sources":["../../src/resources/devices/recordings.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,IAAI,CACF,QAAQ,EAAE,MAAM,EAChB,KAAK,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,GAAG,IAAI,CAAC;IAI3C;;OAEG;IACH,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQtG;;OAEG;IACH,KAAK,CACH,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,oBAAoB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAIrC;;OAEG;IACH,MAAM,CACJ,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,qBAAqB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IAKtC;;OAEG;IACH,IAAI,CACF,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;IAKpC;;OAEG;IACH,UAAU,CACR,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,yBAAyB,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;IAQnB;;OAEG;IACH,KAAK,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,oBAAoB,EAAE,OAAO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AAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;CAC9B;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -0,0 +1,192 @@
|
|
|
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 Recordings extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* List device recordings
|
|
7
|
+
*/
|
|
8
|
+
list(deviceID: string, query?: RecordingListParams | null | undefined, options?: RequestOptions): APIPromise<RecordingListResponse | null>;
|
|
9
|
+
/**
|
|
10
|
+
* Delete a device recording
|
|
11
|
+
*/
|
|
12
|
+
delete(recordingID: string, params: RecordingDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* Start a device recording
|
|
15
|
+
*/
|
|
16
|
+
start(deviceID: string, body: RecordingStartParams, options?: RequestOptions): APIPromise<RecordingStartResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Get a device recording
|
|
19
|
+
*/
|
|
20
|
+
status(recordingID: string, params: RecordingStatusParams, options?: RequestOptions): APIPromise<RecordingStatusResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Stop a device recording
|
|
23
|
+
*/
|
|
24
|
+
stop(recordingID: string, params: RecordingStopParams, options?: RequestOptions): APIPromise<RecordingStopResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Get a device recording trajectory
|
|
27
|
+
*/
|
|
28
|
+
trajectory(recordingID: string, params: RecordingTrajectoryParams, options?: RequestOptions): APIPromise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Get a device recording video
|
|
31
|
+
*/
|
|
32
|
+
video(recordingID: string, params: RecordingVideoParams, options?: RequestOptions): APIPromise<void>;
|
|
33
|
+
}
|
|
34
|
+
export type RecordingListResponse = Array<RecordingListResponse.RecordingListResponseItem>;
|
|
35
|
+
export declare namespace RecordingListResponse {
|
|
36
|
+
interface RecordingListResponseItem {
|
|
37
|
+
id: string;
|
|
38
|
+
actions: number;
|
|
39
|
+
deviceId: string;
|
|
40
|
+
display: RecordingListResponseItem.Display;
|
|
41
|
+
expiresAt: string;
|
|
42
|
+
name: string;
|
|
43
|
+
startedAt: string;
|
|
44
|
+
status: string;
|
|
45
|
+
types: Array<string> | null;
|
|
46
|
+
/**
|
|
47
|
+
* A URL to the JSON Schema for this object.
|
|
48
|
+
*/
|
|
49
|
+
$schema?: string;
|
|
50
|
+
endedAt?: string;
|
|
51
|
+
error?: string;
|
|
52
|
+
video?: RecordingListResponseItem.Video;
|
|
53
|
+
}
|
|
54
|
+
namespace RecordingListResponseItem {
|
|
55
|
+
interface Display {
|
|
56
|
+
height: number;
|
|
57
|
+
rotation: number;
|
|
58
|
+
width: number;
|
|
59
|
+
}
|
|
60
|
+
interface Video {
|
|
61
|
+
durationMs: number;
|
|
62
|
+
format: string;
|
|
63
|
+
sizeBytes: number;
|
|
64
|
+
limited?: boolean;
|
|
65
|
+
limitReason?: string;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
export interface RecordingStartResponse {
|
|
70
|
+
id: string;
|
|
71
|
+
actions: number;
|
|
72
|
+
deviceId: string;
|
|
73
|
+
display: RecordingStartResponse.Display;
|
|
74
|
+
expiresAt: string;
|
|
75
|
+
name: string;
|
|
76
|
+
startedAt: string;
|
|
77
|
+
status: string;
|
|
78
|
+
types: Array<string> | null;
|
|
79
|
+
/**
|
|
80
|
+
* A URL to the JSON Schema for this object.
|
|
81
|
+
*/
|
|
82
|
+
$schema?: string;
|
|
83
|
+
endedAt?: string;
|
|
84
|
+
error?: string;
|
|
85
|
+
video?: RecordingStartResponse.Video;
|
|
86
|
+
}
|
|
87
|
+
export declare namespace RecordingStartResponse {
|
|
88
|
+
interface Display {
|
|
89
|
+
height: number;
|
|
90
|
+
rotation: number;
|
|
91
|
+
width: number;
|
|
92
|
+
}
|
|
93
|
+
interface Video {
|
|
94
|
+
durationMs: number;
|
|
95
|
+
format: string;
|
|
96
|
+
sizeBytes: number;
|
|
97
|
+
limited?: boolean;
|
|
98
|
+
limitReason?: string;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
export interface RecordingStatusResponse {
|
|
102
|
+
id: string;
|
|
103
|
+
actions: number;
|
|
104
|
+
deviceId: string;
|
|
105
|
+
display: RecordingStatusResponse.Display;
|
|
106
|
+
expiresAt: string;
|
|
107
|
+
name: string;
|
|
108
|
+
startedAt: string;
|
|
109
|
+
status: string;
|
|
110
|
+
types: Array<string> | null;
|
|
111
|
+
/**
|
|
112
|
+
* A URL to the JSON Schema for this object.
|
|
113
|
+
*/
|
|
114
|
+
$schema?: string;
|
|
115
|
+
endedAt?: string;
|
|
116
|
+
error?: string;
|
|
117
|
+
video?: RecordingStatusResponse.Video;
|
|
118
|
+
}
|
|
119
|
+
export declare namespace RecordingStatusResponse {
|
|
120
|
+
interface Display {
|
|
121
|
+
height: number;
|
|
122
|
+
rotation: number;
|
|
123
|
+
width: number;
|
|
124
|
+
}
|
|
125
|
+
interface Video {
|
|
126
|
+
durationMs: number;
|
|
127
|
+
format: string;
|
|
128
|
+
sizeBytes: number;
|
|
129
|
+
limited?: boolean;
|
|
130
|
+
limitReason?: string;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
export interface RecordingStopResponse {
|
|
134
|
+
id: string;
|
|
135
|
+
actions: number;
|
|
136
|
+
deviceId: string;
|
|
137
|
+
display: RecordingStopResponse.Display;
|
|
138
|
+
expiresAt: string;
|
|
139
|
+
name: string;
|
|
140
|
+
startedAt: string;
|
|
141
|
+
status: string;
|
|
142
|
+
types: Array<string> | null;
|
|
143
|
+
/**
|
|
144
|
+
* A URL to the JSON Schema for this object.
|
|
145
|
+
*/
|
|
146
|
+
$schema?: string;
|
|
147
|
+
endedAt?: string;
|
|
148
|
+
error?: string;
|
|
149
|
+
video?: RecordingStopResponse.Video;
|
|
150
|
+
}
|
|
151
|
+
export declare namespace RecordingStopResponse {
|
|
152
|
+
interface Display {
|
|
153
|
+
height: number;
|
|
154
|
+
rotation: number;
|
|
155
|
+
width: number;
|
|
156
|
+
}
|
|
157
|
+
interface Video {
|
|
158
|
+
durationMs: number;
|
|
159
|
+
format: string;
|
|
160
|
+
sizeBytes: number;
|
|
161
|
+
limited?: boolean;
|
|
162
|
+
limitReason?: string;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
export interface RecordingListParams {
|
|
166
|
+
status?: string;
|
|
167
|
+
type?: string;
|
|
168
|
+
}
|
|
169
|
+
export interface RecordingDeleteParams {
|
|
170
|
+
deviceId: string;
|
|
171
|
+
}
|
|
172
|
+
export interface RecordingStartParams {
|
|
173
|
+
name?: string;
|
|
174
|
+
retentionDays?: number;
|
|
175
|
+
types?: Array<string> | null;
|
|
176
|
+
}
|
|
177
|
+
export interface RecordingStatusParams {
|
|
178
|
+
deviceId: string;
|
|
179
|
+
}
|
|
180
|
+
export interface RecordingStopParams {
|
|
181
|
+
deviceId: string;
|
|
182
|
+
}
|
|
183
|
+
export interface RecordingTrajectoryParams {
|
|
184
|
+
deviceId: string;
|
|
185
|
+
}
|
|
186
|
+
export interface RecordingVideoParams {
|
|
187
|
+
deviceId: string;
|
|
188
|
+
}
|
|
189
|
+
export declare namespace Recordings {
|
|
190
|
+
export { type RecordingListResponse as RecordingListResponse, type RecordingStartResponse as RecordingStartResponse, type RecordingStatusResponse as RecordingStatusResponse, type RecordingStopResponse as RecordingStopResponse, type RecordingListParams as RecordingListParams, type RecordingDeleteParams as RecordingDeleteParams, type RecordingStartParams as RecordingStartParams, type RecordingStatusParams as RecordingStatusParams, type RecordingStopParams as RecordingStopParams, type RecordingTrajectoryParams as RecordingTrajectoryParams, type RecordingVideoParams as RecordingVideoParams, };
|
|
191
|
+
}
|
|
192
|
+
//# sourceMappingURL=recordings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recordings.d.ts","sourceRoot":"","sources":["../../src/resources/devices/recordings.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,IAAI,CACF,QAAQ,EAAE,MAAM,EAChB,KAAK,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,GAAG,IAAI,C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M,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -0,0 +1,67 @@
|
|
|
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.Recordings = 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 Recordings extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* List device recordings
|
|
11
|
+
*/
|
|
12
|
+
list(deviceID, query = {}, options) {
|
|
13
|
+
return this._client.get((0, path_1.path) `/devices/${deviceID}/recordings`, { query, ...options });
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Delete a device recording
|
|
17
|
+
*/
|
|
18
|
+
delete(recordingID, params, options) {
|
|
19
|
+
const { deviceId } = params;
|
|
20
|
+
return this._client.delete((0, path_1.path) `/devices/${deviceId}/recordings/${recordingID}`, {
|
|
21
|
+
...options,
|
|
22
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Start a device recording
|
|
27
|
+
*/
|
|
28
|
+
start(deviceID, body, options) {
|
|
29
|
+
return this._client.post((0, path_1.path) `/devices/${deviceID}/recordings`, { body, ...options });
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Get a device recording
|
|
33
|
+
*/
|
|
34
|
+
status(recordingID, params, options) {
|
|
35
|
+
const { deviceId } = params;
|
|
36
|
+
return this._client.get((0, path_1.path) `/devices/${deviceId}/recordings/${recordingID}`, options);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Stop a device recording
|
|
40
|
+
*/
|
|
41
|
+
stop(recordingID, params, options) {
|
|
42
|
+
const { deviceId } = params;
|
|
43
|
+
return this._client.post((0, path_1.path) `/devices/${deviceId}/recordings/${recordingID}`, options);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Get a device recording trajectory
|
|
47
|
+
*/
|
|
48
|
+
trajectory(recordingID, params, options) {
|
|
49
|
+
const { deviceId } = params;
|
|
50
|
+
return this._client.get((0, path_1.path) `/devices/${deviceId}/recordings/${recordingID}/trajectory`, {
|
|
51
|
+
...options,
|
|
52
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Get a device recording video
|
|
57
|
+
*/
|
|
58
|
+
video(recordingID, params, options) {
|
|
59
|
+
const { deviceId } = params;
|
|
60
|
+
return this._client.get((0, path_1.path) `/devices/${deviceId}/recordings/${recordingID}/video`, {
|
|
61
|
+
...options,
|
|
62
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
exports.Recordings = Recordings;
|
|
67
|
+
//# sourceMappingURL=recordings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version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ACH,IAAI,CACF,WAAmB,EACnB,MAA2B,EAC3B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,YAAY,QAAQ,eAAe,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1F,CAAC;IAED;;OAEG;IACH,UAAU,CACR,WAAmB,EACnB,MAAiC,EACjC,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,QAAQ,eAAe,WAAW,aAAa,EAAE;YACvF,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,WAAmB,EAAE,MAA4B,EAAE,OAAwB;QAC/E,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,QAAQ,eAAe,WAAW,QAAQ,EAAE;YAClF,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAnFD,gCAmFC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
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 Recordings extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* List device recordings
|
|
8
|
+
*/
|
|
9
|
+
list(deviceID, query = {}, options) {
|
|
10
|
+
return this._client.get(path `/devices/${deviceID}/recordings`, { query, ...options });
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Delete a device recording
|
|
14
|
+
*/
|
|
15
|
+
delete(recordingID, params, options) {
|
|
16
|
+
const { deviceId } = params;
|
|
17
|
+
return this._client.delete(path `/devices/${deviceId}/recordings/${recordingID}`, {
|
|
18
|
+
...options,
|
|
19
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Start a device recording
|
|
24
|
+
*/
|
|
25
|
+
start(deviceID, body, options) {
|
|
26
|
+
return this._client.post(path `/devices/${deviceID}/recordings`, { body, ...options });
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Get a device recording
|
|
30
|
+
*/
|
|
31
|
+
status(recordingID, params, options) {
|
|
32
|
+
const { deviceId } = params;
|
|
33
|
+
return this._client.get(path `/devices/${deviceId}/recordings/${recordingID}`, options);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Stop a device recording
|
|
37
|
+
*/
|
|
38
|
+
stop(recordingID, params, options) {
|
|
39
|
+
const { deviceId } = params;
|
|
40
|
+
return this._client.post(path `/devices/${deviceId}/recordings/${recordingID}`, options);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Get a device recording trajectory
|
|
44
|
+
*/
|
|
45
|
+
trajectory(recordingID, params, options) {
|
|
46
|
+
const { deviceId } = params;
|
|
47
|
+
return this._client.get(path `/devices/${deviceId}/recordings/${recordingID}/trajectory`, {
|
|
48
|
+
...options,
|
|
49
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Get a device recording video
|
|
54
|
+
*/
|
|
55
|
+
video(recordingID, params, options) {
|
|
56
|
+
const { deviceId } = params;
|
|
57
|
+
return this._client.get(path `/devices/${deviceId}/recordings/${recordingID}/video`, {
|
|
58
|
+
...options,
|
|
59
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=recordings.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recordings.mjs","sourceRoot":"","sources":["../../src/resources/devices/recordings.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,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,IAAI,CACF,QAAgB,EAChB,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,QAAQ,aAAa,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,WAAmB,EAAE,MAA6B,EAAE,OAAwB;QACjF,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,YAAY,QAAQ,eAAe,WAAW,EAAE,EAAE;YAC/E,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CACH,QAAgB,EAChB,IAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,YAAY,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AE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import * as StateAPI from "./state.mjs";
|
|
3
2
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
4
3
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
4
|
export declare class State extends APIResource {
|
|
@@ -47,10 +46,6 @@ export declare namespace A11YNode {
|
|
|
47
46
|
top: number;
|
|
48
47
|
}
|
|
49
48
|
}
|
|
50
|
-
export interface Rect {
|
|
51
|
-
height: number;
|
|
52
|
-
width: number;
|
|
53
|
-
}
|
|
54
49
|
export type StateScreenshotResponse = string;
|
|
55
50
|
export type StateTimeResponse = string;
|
|
56
51
|
export interface StateUiResponse {
|
|
@@ -67,7 +62,7 @@ export declare namespace StateUiResponse {
|
|
|
67
62
|
interface DeviceContext {
|
|
68
63
|
display_metrics: DeviceContext.DisplayMetrics;
|
|
69
64
|
filtering_params: DeviceContext.FilteringParams;
|
|
70
|
-
screen_bounds:
|
|
65
|
+
screen_bounds: DeviceContext.ScreenBounds;
|
|
71
66
|
}
|
|
72
67
|
namespace DeviceContext {
|
|
73
68
|
interface DisplayMetrics {
|
|
@@ -81,6 +76,10 @@ export declare namespace StateUiResponse {
|
|
|
81
76
|
min_element_size: number;
|
|
82
77
|
overlay_offset: number;
|
|
83
78
|
}
|
|
79
|
+
interface ScreenBounds {
|
|
80
|
+
height: number;
|
|
81
|
+
width: number;
|
|
82
|
+
}
|
|
84
83
|
}
|
|
85
84
|
interface PhoneState {
|
|
86
85
|
isEditable: boolean;
|
|
@@ -122,6 +121,6 @@ export interface StateUiParams {
|
|
|
122
121
|
'X-Device-Display-ID'?: number;
|
|
123
122
|
}
|
|
124
123
|
export declare namespace State {
|
|
125
|
-
export { type A11YNode as A11YNode, type
|
|
124
|
+
export { type A11YNode as A11YNode, type StateScreenshotResponse as StateScreenshotResponse, type StateTimeResponse as StateTimeResponse, type StateUiResponse as StateUiResponse, type StateScreenshotParams as StateScreenshotParams, type StateTimeParams as StateTimeParams, type StateUiParams as StateUiParams, };
|
|
126
125
|
}
|
|
127
126
|
//# sourceMappingURL=state.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.d.mts","sourceRoot":"","sources":["../../src/resources/devices/state.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,
|
|
1
|
+
{"version":3,"file":"state.d.mts","sourceRoot":"","sources":["../../src/resources/devices/state.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,UAAU,CACR,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC;IAgBrB;;OAEG;IACH,IAAI,CACF,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC;IAerB;;;;OAIG;IACH,EAAE,CACA,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,aAAa,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,eAAe,CAAC;CAe/B;AAED,MAAM,WAAW,QAAQ;IACvB,cAAc,EAAE,QAAQ,CAAC,cAAc,CAAC;IAExC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC;IAEjC,SAAS,EAAE,MAAM,CAAC;IAElB,kBAAkB,EAAE,MAAM,CAAC;IAE3B,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