@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
|
@@ -27,6 +27,14 @@ class Packages extends resource_1.APIResource {
|
|
|
27
27
|
list(packageName, options) {
|
|
28
28
|
return this._client.get((0, path_1.path) `/credentials/packages/${packageName}`, options);
|
|
29
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* Returns the names of all packages (apps) the authenticated owner has credentials
|
|
32
|
+
* grouped under. Use this to discover which `packageName` values are valid for the
|
|
33
|
+
* per-package credential routes.
|
|
34
|
+
*/
|
|
35
|
+
listAll(options) {
|
|
36
|
+
return this._client.get('/credentials/packages', options);
|
|
37
|
+
}
|
|
30
38
|
}
|
|
31
39
|
exports.Packages = Packages;
|
|
32
40
|
Packages.Credentials = credentials_1.Credentials;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packages.js","sourceRoot":"","sources":["../../../src/resources/credentials/packages/packages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,qFAA4D;AAC5D,
|
|
1
|
+
{"version":3,"file":"packages.js","sourceRoot":"","sources":["../../../src/resources/credentials/packages/packages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,qFAA4D;AAC5D,8DAQmC;AAGnC,0DAAoD;AAEpD,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA2BzF,CAAC;IAzBC;;;;OAIG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;OAGG;IACH,IAAI,CAAC,WAAmB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,yBAAyB,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAED;;;;OAIG;IACH,OAAO,CAAC,OAAwB;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;CACF;AA5BD,4BA4BC;AAuED,QAAQ,CAAC,WAAW,GAAG,yBAAW,CAAC"}
|
|
@@ -23,6 +23,14 @@ export class Packages extends APIResource {
|
|
|
23
23
|
list(packageName, options) {
|
|
24
24
|
return this._client.get(path `/credentials/packages/${packageName}`, options);
|
|
25
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* Returns the names of all packages (apps) the authenticated owner has credentials
|
|
28
|
+
* grouped under. Use this to discover which `packageName` values are valid for the
|
|
29
|
+
* per-package credential routes.
|
|
30
|
+
*/
|
|
31
|
+
listAll(options) {
|
|
32
|
+
return this._client.get('/credentials/packages', options);
|
|
33
|
+
}
|
|
26
34
|
}
|
|
27
35
|
Packages.Credentials = Credentials;
|
|
28
36
|
//# sourceMappingURL=packages.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packages.mjs","sourceRoot":"","sources":["../../../src/resources/credentials/packages/packages.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,cAAc,sCAAkC;AAC5D,OAAO,
|
|
1
|
+
{"version":3,"file":"packages.mjs","sourceRoot":"","sources":["../../../src/resources/credentials/packages/packages.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,cAAc,sCAAkC;AAC5D,OAAO,EAOL,WAAW,GACZ,sCAAkC;AAGnC,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA2BzF,CAAC;IAzBC;;;;OAIG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;OAGG;IACH,IAAI,CAAC,WAAmB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,yBAAyB,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAED;;;;OAIG;IACH,OAAO,CAAC,OAAwB;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;CACF;AAuED,QAAQ,CAAC,WAAW,GAAG,WAAW,CAAC"}
|
|
@@ -13,6 +13,11 @@ export declare class Apps extends APIResource {
|
|
|
13
13
|
* Protected packages cannot be deleted.
|
|
14
14
|
*/
|
|
15
15
|
delete(packageName: string, params: AppDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
16
|
+
/**
|
|
17
|
+
* Grants an Android runtime permission to the package named in the path. The
|
|
18
|
+
* permission is given by its short name (e.g. POST_NOTIFICATIONS).
|
|
19
|
+
*/
|
|
20
|
+
grantPermission(permission: 'POST_NOTIFICATIONS', params: AppGrantPermissionParams, options?: RequestOptions): APIPromise<void>;
|
|
16
21
|
/**
|
|
17
22
|
* Requests an app install on the device. The request body must supply exactly one
|
|
18
23
|
* of an Android packageName or an iOS bundleId; protected packages are rejected.
|
|
@@ -26,6 +31,19 @@ export declare class Apps extends APIResource {
|
|
|
26
31
|
* retry once that attempt reaches a terminal state.
|
|
27
32
|
*/
|
|
28
33
|
install(deviceID: string, params: AppInstallParams, options?: RequestOptions): APIPromise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* Reports the backend's view of background app-install attempts on this device —
|
|
36
|
+
* status reflects the install ATTEMPT, not device ground truth; list-apps remains
|
|
37
|
+
* authoritative for what is actually installed. Records are in-memory and lost on
|
|
38
|
+
* service restart; terminal records are kept ~15 minutes. Not gated on device
|
|
39
|
+
* readiness, so it also answers while the device is offline or crashed.
|
|
40
|
+
*/
|
|
41
|
+
listInstalls(deviceID: string, params?: AppListInstallsParams | null | undefined, options?: RequestOptions): APIPromise<AppListInstallsResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* Revokes an Android runtime permission from the package named in the path. The
|
|
44
|
+
* permission is given by its short name (e.g. POST_NOTIFICATIONS).
|
|
45
|
+
*/
|
|
46
|
+
revokePermission(permission: 'POST_NOTIFICATIONS', params: AppRevokePermissionParams, options?: RequestOptions): APIPromise<void>;
|
|
29
47
|
/**
|
|
30
48
|
* Launches the app identified by the path package name, optionally starting a
|
|
31
49
|
* specific activity given in the request body. Protected packages cannot be
|
|
@@ -49,6 +67,37 @@ export declare namespace AppListResponse {
|
|
|
49
67
|
versionName: string;
|
|
50
68
|
}
|
|
51
69
|
}
|
|
70
|
+
export interface AppListInstallsResponse {
|
|
71
|
+
installs: Array<AppListInstallsResponse.Install> | null;
|
|
72
|
+
/**
|
|
73
|
+
* A URL to the JSON Schema for this object.
|
|
74
|
+
*/
|
|
75
|
+
$schema?: string;
|
|
76
|
+
}
|
|
77
|
+
export declare namespace AppListInstallsResponse {
|
|
78
|
+
interface Install {
|
|
79
|
+
/**
|
|
80
|
+
* Android package name or iOS bundle id
|
|
81
|
+
*/
|
|
82
|
+
appId: string;
|
|
83
|
+
/**
|
|
84
|
+
* android or ios
|
|
85
|
+
*/
|
|
86
|
+
platform: string;
|
|
87
|
+
startedAt: string;
|
|
88
|
+
/**
|
|
89
|
+
* On iOS MDM devices, succeeded means the install command was accepted by the
|
|
90
|
+
* device's MDM channel, not that the install finished on-device.
|
|
91
|
+
*/
|
|
92
|
+
status: 'running' | 'succeeded' | 'failed';
|
|
93
|
+
updatedAt: string;
|
|
94
|
+
/**
|
|
95
|
+
* Closed set: download_failed, adb_install_failed, panic, timeout, failed. Only
|
|
96
|
+
* present when status is failed.
|
|
97
|
+
*/
|
|
98
|
+
errorClass?: string;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
52
101
|
export interface AppListParams {
|
|
53
102
|
/**
|
|
54
103
|
* Query param
|
|
@@ -73,6 +122,20 @@ export interface AppDeleteParams {
|
|
|
73
122
|
*/
|
|
74
123
|
'X-Device-Display-ID'?: number;
|
|
75
124
|
}
|
|
125
|
+
export interface AppGrantPermissionParams {
|
|
126
|
+
/**
|
|
127
|
+
* Path param
|
|
128
|
+
*/
|
|
129
|
+
deviceId: string;
|
|
130
|
+
/**
|
|
131
|
+
* Path param
|
|
132
|
+
*/
|
|
133
|
+
packageName: string;
|
|
134
|
+
/**
|
|
135
|
+
* Header param
|
|
136
|
+
*/
|
|
137
|
+
'X-Device-Display-ID'?: number;
|
|
138
|
+
}
|
|
76
139
|
export type AppInstallParams = AppInstallParams.Variant0 | AppInstallParams.Variant1;
|
|
77
140
|
export declare namespace AppInstallParams {
|
|
78
141
|
interface Variant0 {
|
|
@@ -116,6 +179,23 @@ export declare namespace AppInstallParams {
|
|
|
116
179
|
'X-Device-Display-ID'?: number;
|
|
117
180
|
}
|
|
118
181
|
}
|
|
182
|
+
export interface AppListInstallsParams {
|
|
183
|
+
'X-Device-Display-ID'?: number;
|
|
184
|
+
}
|
|
185
|
+
export interface AppRevokePermissionParams {
|
|
186
|
+
/**
|
|
187
|
+
* Path param
|
|
188
|
+
*/
|
|
189
|
+
deviceId: string;
|
|
190
|
+
/**
|
|
191
|
+
* Path param
|
|
192
|
+
*/
|
|
193
|
+
packageName: string;
|
|
194
|
+
/**
|
|
195
|
+
* Header param
|
|
196
|
+
*/
|
|
197
|
+
'X-Device-Display-ID'?: number;
|
|
198
|
+
}
|
|
119
199
|
export interface AppStartParams {
|
|
120
200
|
/**
|
|
121
201
|
* Path param
|
|
@@ -146,6 +226,6 @@ export interface AppStopParams {
|
|
|
146
226
|
'X-Device-Display-ID'?: number;
|
|
147
227
|
}
|
|
148
228
|
export declare namespace Apps {
|
|
149
|
-
export { type AppListResponse as AppListResponse, type AppListParams as AppListParams, type AppDeleteParams as AppDeleteParams, type AppInstallParams as AppInstallParams, type AppStartParams as AppStartParams, type AppStopParams as AppStopParams, };
|
|
229
|
+
export { type AppListResponse as AppListResponse, type AppListInstallsResponse as AppListInstallsResponse, type AppListParams as AppListParams, type AppDeleteParams as AppDeleteParams, type AppGrantPermissionParams as AppGrantPermissionParams, type AppInstallParams as AppInstallParams, type AppListInstallsParams as AppListInstallsParams, type AppRevokePermissionParams as AppRevokePermissionParams, type AppStartParams as AppStartParams, type AppStopParams as AppStopParams, };
|
|
150
230
|
}
|
|
151
231
|
//# sourceMappingURL=apps.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apps.d.mts","sourceRoot":"","sources":["../../src/resources/devices/apps.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;OAIG;IACH,IAAI,CACF,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,aAAa,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,eAAe,GAAG,IAAI,CAAC;IAgBrC;;;OAGG;IACH,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAiBhG;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAiB/F;;;;OAIG;IACH,KAAK,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAiB9F;;;;OAIG;IACH,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAgB7F;AAED,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,eAAe,CAAC,mBAAmB,CAA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AAE,MAAM,CAAC;KAChC;CACF;AAED,MAAM,WAAW,qBAAqB;IACpC,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
|
|
@@ -13,6 +13,11 @@ export declare class Apps extends APIResource {
|
|
|
13
13
|
* Protected packages cannot be deleted.
|
|
14
14
|
*/
|
|
15
15
|
delete(packageName: string, params: AppDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
16
|
+
/**
|
|
17
|
+
* Grants an Android runtime permission to the package named in the path. The
|
|
18
|
+
* permission is given by its short name (e.g. POST_NOTIFICATIONS).
|
|
19
|
+
*/
|
|
20
|
+
grantPermission(permission: 'POST_NOTIFICATIONS', params: AppGrantPermissionParams, options?: RequestOptions): APIPromise<void>;
|
|
16
21
|
/**
|
|
17
22
|
* Requests an app install on the device. The request body must supply exactly one
|
|
18
23
|
* of an Android packageName or an iOS bundleId; protected packages are rejected.
|
|
@@ -26,6 +31,19 @@ export declare class Apps extends APIResource {
|
|
|
26
31
|
* retry once that attempt reaches a terminal state.
|
|
27
32
|
*/
|
|
28
33
|
install(deviceID: string, params: AppInstallParams, options?: RequestOptions): APIPromise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* Reports the backend's view of background app-install attempts on this device —
|
|
36
|
+
* status reflects the install ATTEMPT, not device ground truth; list-apps remains
|
|
37
|
+
* authoritative for what is actually installed. Records are in-memory and lost on
|
|
38
|
+
* service restart; terminal records are kept ~15 minutes. Not gated on device
|
|
39
|
+
* readiness, so it also answers while the device is offline or crashed.
|
|
40
|
+
*/
|
|
41
|
+
listInstalls(deviceID: string, params?: AppListInstallsParams | null | undefined, options?: RequestOptions): APIPromise<AppListInstallsResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* Revokes an Android runtime permission from the package named in the path. The
|
|
44
|
+
* permission is given by its short name (e.g. POST_NOTIFICATIONS).
|
|
45
|
+
*/
|
|
46
|
+
revokePermission(permission: 'POST_NOTIFICATIONS', params: AppRevokePermissionParams, options?: RequestOptions): APIPromise<void>;
|
|
29
47
|
/**
|
|
30
48
|
* Launches the app identified by the path package name, optionally starting a
|
|
31
49
|
* specific activity given in the request body. Protected packages cannot be
|
|
@@ -49,6 +67,37 @@ export declare namespace AppListResponse {
|
|
|
49
67
|
versionName: string;
|
|
50
68
|
}
|
|
51
69
|
}
|
|
70
|
+
export interface AppListInstallsResponse {
|
|
71
|
+
installs: Array<AppListInstallsResponse.Install> | null;
|
|
72
|
+
/**
|
|
73
|
+
* A URL to the JSON Schema for this object.
|
|
74
|
+
*/
|
|
75
|
+
$schema?: string;
|
|
76
|
+
}
|
|
77
|
+
export declare namespace AppListInstallsResponse {
|
|
78
|
+
interface Install {
|
|
79
|
+
/**
|
|
80
|
+
* Android package name or iOS bundle id
|
|
81
|
+
*/
|
|
82
|
+
appId: string;
|
|
83
|
+
/**
|
|
84
|
+
* android or ios
|
|
85
|
+
*/
|
|
86
|
+
platform: string;
|
|
87
|
+
startedAt: string;
|
|
88
|
+
/**
|
|
89
|
+
* On iOS MDM devices, succeeded means the install command was accepted by the
|
|
90
|
+
* device's MDM channel, not that the install finished on-device.
|
|
91
|
+
*/
|
|
92
|
+
status: 'running' | 'succeeded' | 'failed';
|
|
93
|
+
updatedAt: string;
|
|
94
|
+
/**
|
|
95
|
+
* Closed set: download_failed, adb_install_failed, panic, timeout, failed. Only
|
|
96
|
+
* present when status is failed.
|
|
97
|
+
*/
|
|
98
|
+
errorClass?: string;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
52
101
|
export interface AppListParams {
|
|
53
102
|
/**
|
|
54
103
|
* Query param
|
|
@@ -73,6 +122,20 @@ export interface AppDeleteParams {
|
|
|
73
122
|
*/
|
|
74
123
|
'X-Device-Display-ID'?: number;
|
|
75
124
|
}
|
|
125
|
+
export interface AppGrantPermissionParams {
|
|
126
|
+
/**
|
|
127
|
+
* Path param
|
|
128
|
+
*/
|
|
129
|
+
deviceId: string;
|
|
130
|
+
/**
|
|
131
|
+
* Path param
|
|
132
|
+
*/
|
|
133
|
+
packageName: string;
|
|
134
|
+
/**
|
|
135
|
+
* Header param
|
|
136
|
+
*/
|
|
137
|
+
'X-Device-Display-ID'?: number;
|
|
138
|
+
}
|
|
76
139
|
export type AppInstallParams = AppInstallParams.Variant0 | AppInstallParams.Variant1;
|
|
77
140
|
export declare namespace AppInstallParams {
|
|
78
141
|
interface Variant0 {
|
|
@@ -116,6 +179,23 @@ export declare namespace AppInstallParams {
|
|
|
116
179
|
'X-Device-Display-ID'?: number;
|
|
117
180
|
}
|
|
118
181
|
}
|
|
182
|
+
export interface AppListInstallsParams {
|
|
183
|
+
'X-Device-Display-ID'?: number;
|
|
184
|
+
}
|
|
185
|
+
export interface AppRevokePermissionParams {
|
|
186
|
+
/**
|
|
187
|
+
* Path param
|
|
188
|
+
*/
|
|
189
|
+
deviceId: string;
|
|
190
|
+
/**
|
|
191
|
+
* Path param
|
|
192
|
+
*/
|
|
193
|
+
packageName: string;
|
|
194
|
+
/**
|
|
195
|
+
* Header param
|
|
196
|
+
*/
|
|
197
|
+
'X-Device-Display-ID'?: number;
|
|
198
|
+
}
|
|
119
199
|
export interface AppStartParams {
|
|
120
200
|
/**
|
|
121
201
|
* Path param
|
|
@@ -146,6 +226,6 @@ export interface AppStopParams {
|
|
|
146
226
|
'X-Device-Display-ID'?: number;
|
|
147
227
|
}
|
|
148
228
|
export declare namespace Apps {
|
|
149
|
-
export { type AppListResponse as AppListResponse, type AppListParams as AppListParams, type AppDeleteParams as AppDeleteParams, type AppInstallParams as AppInstallParams, type AppStartParams as AppStartParams, type AppStopParams as AppStopParams, };
|
|
229
|
+
export { type AppListResponse as AppListResponse, type AppListInstallsResponse as AppListInstallsResponse, type AppListParams as AppListParams, type AppDeleteParams as AppDeleteParams, type AppGrantPermissionParams as AppGrantPermissionParams, type AppInstallParams as AppInstallParams, type AppListInstallsParams as AppListInstallsParams, type AppRevokePermissionParams as AppRevokePermissionParams, type AppStartParams as AppStartParams, type AppStopParams as AppStopParams, };
|
|
150
230
|
}
|
|
151
231
|
//# sourceMappingURL=apps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../../src/resources/devices/apps.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;OAIG;IACH,IAAI,CACF,QAA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a;IAC5B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
|
|
@@ -46,6 +46,25 @@ class Apps extends resource_1.APIResource {
|
|
|
46
46
|
]),
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* Grants an Android runtime permission to the package named in the path. The
|
|
51
|
+
* permission is given by its short name (e.g. POST_NOTIFICATIONS).
|
|
52
|
+
*/
|
|
53
|
+
grantPermission(permission, params, options) {
|
|
54
|
+
const { deviceId, packageName, 'X-Device-Display-ID': xDeviceDisplayID } = params;
|
|
55
|
+
return this._client.put((0, path_1.path) `/devices/${deviceId}/apps/${packageName}/permissions/${permission}`, {
|
|
56
|
+
...options,
|
|
57
|
+
headers: (0, headers_1.buildHeaders)([
|
|
58
|
+
{
|
|
59
|
+
Accept: '*/*',
|
|
60
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
61
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
62
|
+
: undefined),
|
|
63
|
+
},
|
|
64
|
+
options?.headers,
|
|
65
|
+
]),
|
|
66
|
+
});
|
|
67
|
+
}
|
|
49
68
|
/**
|
|
50
69
|
* Requests an app install on the device. The request body must supply exactly one
|
|
51
70
|
* of an Android packageName or an iOS bundleId; protected packages are rejected.
|
|
@@ -74,6 +93,46 @@ class Apps extends resource_1.APIResource {
|
|
|
74
93
|
]),
|
|
75
94
|
});
|
|
76
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* Reports the backend's view of background app-install attempts on this device —
|
|
98
|
+
* status reflects the install ATTEMPT, not device ground truth; list-apps remains
|
|
99
|
+
* authoritative for what is actually installed. Records are in-memory and lost on
|
|
100
|
+
* service restart; terminal records are kept ~15 minutes. Not gated on device
|
|
101
|
+
* readiness, so it also answers while the device is offline or crashed.
|
|
102
|
+
*/
|
|
103
|
+
listInstalls(deviceID, params = {}, options) {
|
|
104
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
105
|
+
return this._client.get((0, path_1.path) `/devices/${deviceID}/apps/installs`, {
|
|
106
|
+
...options,
|
|
107
|
+
headers: (0, headers_1.buildHeaders)([
|
|
108
|
+
{
|
|
109
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
110
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
111
|
+
: undefined),
|
|
112
|
+
},
|
|
113
|
+
options?.headers,
|
|
114
|
+
]),
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Revokes an Android runtime permission from the package named in the path. The
|
|
119
|
+
* permission is given by its short name (e.g. POST_NOTIFICATIONS).
|
|
120
|
+
*/
|
|
121
|
+
revokePermission(permission, params, options) {
|
|
122
|
+
const { deviceId, packageName, 'X-Device-Display-ID': xDeviceDisplayID } = params;
|
|
123
|
+
return this._client.delete((0, path_1.path) `/devices/${deviceId}/apps/${packageName}/permissions/${permission}`, {
|
|
124
|
+
...options,
|
|
125
|
+
headers: (0, headers_1.buildHeaders)([
|
|
126
|
+
{
|
|
127
|
+
Accept: '*/*',
|
|
128
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
129
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
130
|
+
: undefined),
|
|
131
|
+
},
|
|
132
|
+
options?.headers,
|
|
133
|
+
]),
|
|
134
|
+
});
|
|
135
|
+
}
|
|
77
136
|
/**
|
|
78
137
|
* Launches the app identified by the path package name, optionally starting a
|
|
79
138
|
* specific activity given in the request body. Protected packages cannot be
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apps.js","sourceRoot":"","sources":["../../src/resources/devices/apps.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;OAIG;IACH,IAAI,CACF,QAAgB,EAChB,SAA2C,EAAE,EAC7C,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAC3E,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,QAAQ,OAAO,EAAE;YACvD,KAAK;YACL,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,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,WAAmB,EAAE,MAAuB,EAAE,OAAwB;QAC3E,MAAM,EAAE,QAAQ,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC9E,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,YAAY,QAAQ,SAAS,WAAW,E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,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;;;;OAIG;IACH,IAAI,CAAC,WAAmB,EAAE,MAAqB,EAAE,OAAwB;QACvE,MAAM,EAAE,QAAQ,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC9E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,YAAY,QAAQ,SAAS,WAAW,EAAE,EAAE;YACxE,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;AAjMD,oBAiMC"}
|
|
@@ -43,6 +43,25 @@ export class Apps extends APIResource {
|
|
|
43
43
|
]),
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* Grants an Android runtime permission to the package named in the path. The
|
|
48
|
+
* permission is given by its short name (e.g. POST_NOTIFICATIONS).
|
|
49
|
+
*/
|
|
50
|
+
grantPermission(permission, params, options) {
|
|
51
|
+
const { deviceId, packageName, 'X-Device-Display-ID': xDeviceDisplayID } = params;
|
|
52
|
+
return this._client.put(path `/devices/${deviceId}/apps/${packageName}/permissions/${permission}`, {
|
|
53
|
+
...options,
|
|
54
|
+
headers: buildHeaders([
|
|
55
|
+
{
|
|
56
|
+
Accept: '*/*',
|
|
57
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
58
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
59
|
+
: undefined),
|
|
60
|
+
},
|
|
61
|
+
options?.headers,
|
|
62
|
+
]),
|
|
63
|
+
});
|
|
64
|
+
}
|
|
46
65
|
/**
|
|
47
66
|
* Requests an app install on the device. The request body must supply exactly one
|
|
48
67
|
* of an Android packageName or an iOS bundleId; protected packages are rejected.
|
|
@@ -71,6 +90,46 @@ export class Apps extends APIResource {
|
|
|
71
90
|
]),
|
|
72
91
|
});
|
|
73
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* Reports the backend's view of background app-install attempts on this device —
|
|
95
|
+
* status reflects the install ATTEMPT, not device ground truth; list-apps remains
|
|
96
|
+
* authoritative for what is actually installed. Records are in-memory and lost on
|
|
97
|
+
* service restart; terminal records are kept ~15 minutes. Not gated on device
|
|
98
|
+
* readiness, so it also answers while the device is offline or crashed.
|
|
99
|
+
*/
|
|
100
|
+
listInstalls(deviceID, params = {}, options) {
|
|
101
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
102
|
+
return this._client.get(path `/devices/${deviceID}/apps/installs`, {
|
|
103
|
+
...options,
|
|
104
|
+
headers: buildHeaders([
|
|
105
|
+
{
|
|
106
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
107
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
108
|
+
: undefined),
|
|
109
|
+
},
|
|
110
|
+
options?.headers,
|
|
111
|
+
]),
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Revokes an Android runtime permission from the package named in the path. The
|
|
116
|
+
* permission is given by its short name (e.g. POST_NOTIFICATIONS).
|
|
117
|
+
*/
|
|
118
|
+
revokePermission(permission, params, options) {
|
|
119
|
+
const { deviceId, packageName, 'X-Device-Display-ID': xDeviceDisplayID } = params;
|
|
120
|
+
return this._client.delete(path `/devices/${deviceId}/apps/${packageName}/permissions/${permission}`, {
|
|
121
|
+
...options,
|
|
122
|
+
headers: buildHeaders([
|
|
123
|
+
{
|
|
124
|
+
Accept: '*/*',
|
|
125
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
126
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
127
|
+
: undefined),
|
|
128
|
+
},
|
|
129
|
+
options?.headers,
|
|
130
|
+
]),
|
|
131
|
+
});
|
|
132
|
+
}
|
|
74
133
|
/**
|
|
75
134
|
* Launches the app identified by the path package name, optionally starting a
|
|
76
135
|
* specific activity given in the request body. Protected packages cannot be
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apps.mjs","sourceRoot":"","sources":["../../src/resources/devices/apps.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,IAAK,SAAQ,WAAW;IACnC;;;;OAIG;IACH,IAAI,CACF,QAAgB,EAChB,SAA2C,EAAE,EAC7C,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAC3E,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,QAAQ,OAAO,EAAE;YACvD,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;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,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG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AY,QAAQ,SAAS,WAAW,EAAE,EAAE;YACtE,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;IAED;;;;OAIG;IACH,IAAI,CAAC,WAAmB,EAAE,MAAqB,EAAE,OAAwB;QACvE,MAAM,EAAE,QAAQ,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC9E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,YAAY,QAAQ,SAAS,WAAW,EAAE,EAAE;YACxE,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"}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 Browser extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Evaluates a JavaScript expression in the device's foreground Chrome tab via the
|
|
7
|
+
* Chrome DevTools Protocol and returns its JSON-serialized result. Devices without
|
|
8
|
+
* browser support return an unsupported-feature error.
|
|
9
|
+
*/
|
|
10
|
+
executeScript(deviceID: string, params: BrowserExecuteScriptParams, options?: RequestOptions): APIPromise<BrowserExecuteScriptResponse>;
|
|
11
|
+
}
|
|
12
|
+
export interface BrowserExecuteScriptResponse {
|
|
13
|
+
/**
|
|
14
|
+
* JSON-serialized return value of the script (null if it returned undefined).
|
|
15
|
+
* Non-JSON-serializable numbers (Infinity, NaN, -0) are returned as their string
|
|
16
|
+
* representation.
|
|
17
|
+
*/
|
|
18
|
+
result: unknown;
|
|
19
|
+
/**
|
|
20
|
+
* A URL to the JSON Schema for this object.
|
|
21
|
+
*/
|
|
22
|
+
$schema?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface BrowserExecuteScriptParams {
|
|
25
|
+
/**
|
|
26
|
+
* Body param: JavaScript expression to evaluate in the device's foreground Chrome
|
|
27
|
+
* tab (CDP Runtime.evaluate). It is an expression, not a function body — the
|
|
28
|
+
* expression's value is returned (no top-level 'return'). Must evaluate to a
|
|
29
|
+
* JSON-serializable value; wrap multi-statement logic in an IIFE, e.g. (() => {
|
|
30
|
+
* ... ; return x })().
|
|
31
|
+
*/
|
|
32
|
+
script: string;
|
|
33
|
+
/**
|
|
34
|
+
* Header param
|
|
35
|
+
*/
|
|
36
|
+
'X-Device-Display-ID'?: number;
|
|
37
|
+
}
|
|
38
|
+
export declare namespace Browser {
|
|
39
|
+
export { type BrowserExecuteScriptResponse as BrowserExecuteScriptResponse, type BrowserExecuteScriptParams as BrowserExecuteScriptParams, };
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=browser.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser.d.mts","sourceRoot":"","sources":["../../src/resources/devices/browser.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;OAIG;IACH,aAAa,CACX,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,0BAA0B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;CAe5C;AAED,MAAM,WAAW,4BAA4B;IAC3C;;;;OAIG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,0BAA0B;IACzC;;;;;;OAMG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 Browser extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Evaluates a JavaScript expression in the device's foreground Chrome tab via the
|
|
7
|
+
* Chrome DevTools Protocol and returns its JSON-serialized result. Devices without
|
|
8
|
+
* browser support return an unsupported-feature error.
|
|
9
|
+
*/
|
|
10
|
+
executeScript(deviceID: string, params: BrowserExecuteScriptParams, options?: RequestOptions): APIPromise<BrowserExecuteScriptResponse>;
|
|
11
|
+
}
|
|
12
|
+
export interface BrowserExecuteScriptResponse {
|
|
13
|
+
/**
|
|
14
|
+
* JSON-serialized return value of the script (null if it returned undefined).
|
|
15
|
+
* Non-JSON-serializable numbers (Infinity, NaN, -0) are returned as their string
|
|
16
|
+
* representation.
|
|
17
|
+
*/
|
|
18
|
+
result: unknown;
|
|
19
|
+
/**
|
|
20
|
+
* A URL to the JSON Schema for this object.
|
|
21
|
+
*/
|
|
22
|
+
$schema?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface BrowserExecuteScriptParams {
|
|
25
|
+
/**
|
|
26
|
+
* Body param: JavaScript expression to evaluate in the device's foreground Chrome
|
|
27
|
+
* tab (CDP Runtime.evaluate). It is an expression, not a function body — the
|
|
28
|
+
* expression's value is returned (no top-level 'return'). Must evaluate to a
|
|
29
|
+
* JSON-serializable value; wrap multi-statement logic in an IIFE, e.g. (() => {
|
|
30
|
+
* ... ; return x })().
|
|
31
|
+
*/
|
|
32
|
+
script: string;
|
|
33
|
+
/**
|
|
34
|
+
* Header param
|
|
35
|
+
*/
|
|
36
|
+
'X-Device-Display-ID'?: number;
|
|
37
|
+
}
|
|
38
|
+
export declare namespace Browser {
|
|
39
|
+
export { type BrowserExecuteScriptResponse as BrowserExecuteScriptResponse, type BrowserExecuteScriptParams as BrowserExecuteScriptParams, };
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=browser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../src/resources/devices/browser.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;OAIG;IACH,aAAa,CACX,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,0BAA0B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;CAe5C;AAED,MAAM,WAAW,4BAA4B;IAC3C;;;;OAIG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,0BAA0B;IACzC;;;;;;OAMG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -0,0 +1,31 @@
|
|
|
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.Browser = 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 Browser extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Evaluates a JavaScript expression in the device's foreground Chrome tab via the
|
|
11
|
+
* Chrome DevTools Protocol and returns its JSON-serialized result. Devices without
|
|
12
|
+
* browser support return an unsupported-feature error.
|
|
13
|
+
*/
|
|
14
|
+
executeScript(deviceID, params, options) {
|
|
15
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
16
|
+
return this._client.post((0, path_1.path) `/devices/${deviceID}/browser/execute-script`, {
|
|
17
|
+
body,
|
|
18
|
+
...options,
|
|
19
|
+
headers: (0, headers_1.buildHeaders)([
|
|
20
|
+
{
|
|
21
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
22
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
23
|
+
: undefined),
|
|
24
|
+
},
|
|
25
|
+
options?.headers,
|
|
26
|
+
]),
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.Browser = Browser;
|
|
31
|
+
//# sourceMappingURL=browser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../../src/resources/devices/browser.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;OAIG;IACH,aAAa,CACX,QAAgB,EAChB,MAAkC,EAClC,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,YAAY,QAAQ,yBAAyB,EAAE;YAC1E,IAAI;YACJ,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,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAzBD,0BAyBC"}
|