@mobilerun/sdk 5.1.0 → 5.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +58 -0
- package/README.md +15 -12
- package/client.d.mts +35 -29
- package/client.d.mts.map +1 -1
- package/client.d.ts +35 -29
- package/client.d.ts.map +1 -1
- package/client.js +21 -15
- package/client.js.map +1 -1
- package/client.mjs +21 -15
- package/client.mjs.map +1 -1
- package/package.json +2 -2
- package/resources/agents.d.mts +27 -0
- package/resources/agents.d.mts.map +1 -0
- package/resources/agents.d.ts +27 -0
- package/resources/agents.d.ts.map +1 -0
- package/resources/agents.js +15 -0
- package/resources/agents.js.map +1 -0
- package/resources/agents.mjs +11 -0
- package/resources/agents.mjs.map +1 -0
- package/resources/app-events/app-events.d.mts +81 -0
- package/resources/app-events/app-events.d.mts.map +1 -0
- package/resources/app-events/app-events.d.ts +81 -0
- package/resources/app-events/app-events.d.ts.map +1 -0
- package/resources/app-events/app-events.js +33 -0
- package/resources/app-events/app-events.js.map +1 -0
- package/resources/app-events/app-events.mjs +28 -0
- package/resources/app-events/app-events.mjs.map +1 -0
- package/resources/app-events/catalog.d.mts +64 -0
- package/resources/app-events/catalog.d.mts.map +1 -0
- package/resources/app-events/catalog.d.ts +64 -0
- package/resources/app-events/catalog.d.ts.map +1 -0
- package/resources/app-events/catalog.js +25 -0
- package/resources/app-events/catalog.js.map +1 -0
- package/resources/app-events/catalog.mjs +21 -0
- package/resources/app-events/catalog.mjs.map +1 -0
- package/resources/app-events/index.d.mts +3 -0
- package/resources/app-events/index.d.mts.map +1 -0
- package/resources/app-events/index.d.ts +3 -0
- package/resources/app-events/index.d.ts.map +1 -0
- package/resources/{workflows/events → app-events}/index.js +3 -3
- package/resources/app-events/index.js.map +1 -0
- package/resources/app-events/index.mjs +4 -0
- 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 +44 -8
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +44 -8
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +12 -4
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +12 -4
- package/resources/apps.mjs.map +1 -1
- package/resources/carriers.d.mts +0 -3
- package/resources/carriers.d.mts.map +1 -1
- package/resources/carriers.d.ts +0 -3
- package/resources/carriers.d.ts.map +1 -1
- package/resources/carriers.js +0 -3
- package/resources/carriers.js.map +1 -1
- package/resources/carriers.mjs +0 -3
- package/resources/carriers.mjs.map +1 -1
- package/resources/connect/countries.d.mts +8 -3
- package/resources/connect/countries.d.mts.map +1 -1
- package/resources/connect/countries.d.ts +8 -3
- package/resources/connect/countries.d.ts.map +1 -1
- package/resources/connect/countries.js +6 -1
- package/resources/connect/countries.js.map +1 -1
- package/resources/connect/countries.mjs +6 -1
- package/resources/connect/countries.mjs.map +1 -1
- package/resources/connect/proxies.d.mts +11 -9
- package/resources/connect/proxies.d.mts.map +1 -1
- package/resources/connect/proxies.d.ts +11 -9
- package/resources/connect/proxies.d.ts.map +1 -1
- package/resources/connect/proxies.js +7 -5
- package/resources/connect/proxies.js.map +1 -1
- package/resources/connect/proxies.mjs +7 -5
- package/resources/connect/proxies.mjs.map +1 -1
- package/resources/connect/users.d.mts +7 -2
- package/resources/connect/users.d.mts.map +1 -1
- package/resources/connect/users.d.ts +7 -2
- package/resources/connect/users.d.ts.map +1 -1
- package/resources/connect/users.js +7 -2
- package/resources/connect/users.js.map +1 -1
- package/resources/connect/users.mjs +7 -2
- package/resources/connect/users.mjs.map +1 -1
- package/resources/credentials/credentials.d.mts +27 -8
- package/resources/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/credentials.d.ts +27 -8
- package/resources/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/credentials.js +3 -4
- package/resources/credentials/credentials.js.map +1 -1
- package/resources/credentials/credentials.mjs +3 -4
- 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 +74 -23
- package/resources/credentials/packages/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.d.ts +74 -23
- package/resources/credentials/packages/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.js +7 -6
- package/resources/credentials/packages/credentials/credentials.js.map +1 -1
- package/resources/credentials/packages/credentials/credentials.mjs +7 -6
- package/resources/credentials/packages/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.mts +74 -10
- package/resources/credentials/packages/credentials/fields.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.ts +74 -10
- package/resources/credentials/packages/credentials/fields.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/fields.js +8 -6
- package/resources/credentials/packages/credentials/fields.js.map +1 -1
- package/resources/credentials/packages/credentials/fields.mjs +8 -6
- 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 +44 -9
- package/resources/credentials/packages/packages.d.mts.map +1 -1
- package/resources/credentials/packages/packages.d.ts +44 -9
- package/resources/credentials/packages/packages.d.ts.map +1 -1
- package/resources/credentials/packages/packages.js +13 -5
- package/resources/credentials/packages/packages.js.map +1 -1
- package/resources/credentials/packages/packages.mjs +13 -5
- package/resources/credentials/packages/packages.mjs.map +1 -1
- package/resources/devices/actions.d.mts +10 -5
- package/resources/devices/actions.d.mts.map +1 -1
- package/resources/devices/actions.d.ts +10 -5
- package/resources/devices/actions.d.ts.map +1 -1
- package/resources/devices/actions.js +10 -5
- package/resources/devices/actions.js.map +1 -1
- package/resources/devices/actions.mjs +10 -5
- package/resources/devices/actions.mjs.map +1 -1
- package/resources/devices/apps.d.mts +119 -6
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +119 -6
- package/resources/devices/apps.d.ts.map +1 -1
- package/resources/devices/apps.js +80 -5
- package/resources/devices/apps.js.map +1 -1
- package/resources/devices/apps.mjs +80 -5
- package/resources/devices/apps.mjs.map +1 -1
- package/resources/devices/browser.d.mts +41 -0
- package/resources/devices/browser.d.mts.map +1 -0
- package/resources/devices/browser.d.ts +41 -0
- package/resources/devices/browser.d.ts.map +1 -0
- package/resources/devices/browser.js +31 -0
- package/resources/devices/browser.js.map +1 -0
- package/resources/devices/browser.mjs +27 -0
- package/resources/devices/browser.mjs.map +1 -0
- package/resources/devices/deep-link.d.mts +41 -0
- package/resources/devices/deep-link.d.mts.map +1 -0
- package/resources/devices/deep-link.d.ts +41 -0
- package/resources/devices/deep-link.d.ts.map +1 -0
- package/resources/devices/deep-link.js +33 -0
- package/resources/devices/deep-link.js.map +1 -0
- package/resources/devices/deep-link.mjs +29 -0
- package/resources/devices/deep-link.mjs.map +1 -0
- package/resources/devices/devices.d.mts +285 -33
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +285 -33
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +83 -14
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +83 -14
- 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 -100
- package/resources/devices/esim.d.mts.map +1 -1
- package/resources/devices/esim.d.ts +1 -100
- package/resources/devices/esim.d.ts.map +1 -1
- package/resources/devices/esim.js +2 -80
- package/resources/devices/esim.js.map +1 -1
- package/resources/devices/esim.mjs +1 -78
- package/resources/devices/esim.mjs.map +1 -1
- package/resources/devices/files.d.mts +38 -33
- package/resources/devices/files.d.mts.map +1 -1
- package/resources/devices/files.d.ts +38 -33
- package/resources/devices/files.d.ts.map +1 -1
- package/resources/devices/files.js +7 -4
- package/resources/devices/files.js.map +1 -1
- package/resources/devices/files.mjs +7 -4
- package/resources/devices/files.mjs.map +1 -1
- package/resources/devices/index.d.mts +11 -6
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +11 -6
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +13 -3
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +7 -2
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/keyboard.d.mts +5 -3
- package/resources/devices/keyboard.d.mts.map +1 -1
- package/resources/devices/keyboard.d.ts +5 -3
- package/resources/devices/keyboard.d.ts.map +1 -1
- package/resources/devices/keyboard.js +5 -3
- package/resources/devices/keyboard.js.map +1 -1
- package/resources/devices/keyboard.mjs +5 -3
- package/resources/devices/keyboard.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/language.d.mts +4 -2
- package/resources/devices/language.d.mts.map +1 -1
- package/resources/devices/language.d.ts +4 -2
- package/resources/devices/language.d.ts.map +1 -1
- package/resources/devices/language.js +4 -2
- package/resources/devices/language.js.map +1 -1
- package/resources/devices/language.mjs +4 -2
- package/resources/devices/language.mjs.map +1 -1
- package/resources/devices/location.d.mts +13 -3
- package/resources/devices/location.d.mts.map +1 -1
- package/resources/devices/location.d.ts +13 -3
- package/resources/devices/location.d.ts.map +1 -1
- package/resources/devices/location.js +23 -2
- package/resources/devices/location.js.map +1 -1
- package/resources/devices/location.mjs +23 -2
- 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/packages.d.mts +2 -1
- package/resources/devices/packages.d.mts.map +1 -1
- package/resources/devices/packages.d.ts +2 -1
- package/resources/devices/packages.d.ts.map +1 -1
- package/resources/devices/packages.js +2 -1
- package/resources/devices/packages.js.map +1 -1
- package/resources/devices/packages.mjs +2 -1
- package/resources/devices/packages.mjs.map +1 -1
- package/resources/devices/proxy.d.mts +29 -3
- package/resources/devices/proxy.d.mts.map +1 -1
- package/resources/devices/proxy.d.ts +29 -3
- package/resources/devices/proxy.d.ts.map +1 -1
- package/resources/devices/proxy.js +7 -3
- package/resources/devices/proxy.js.map +1 -1
- package/resources/devices/proxy.mjs +7 -3
- package/resources/devices/proxy.mjs.map +1 -1
- 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 +13 -10
- package/resources/devices/state.d.mts.map +1 -1
- package/resources/devices/state.d.ts +13 -10
- package/resources/devices/state.d.ts.map +1 -1
- package/resources/devices/state.js +6 -3
- package/resources/devices/state.js.map +1 -1
- package/resources/devices/state.mjs +6 -3
- package/resources/devices/state.mjs.map +1 -1
- package/resources/devices/tasks.d.mts +2 -4
- package/resources/devices/tasks.d.mts.map +1 -1
- package/resources/devices/tasks.d.ts +2 -4
- package/resources/devices/tasks.d.ts.map +1 -1
- package/resources/devices/tasks.js +2 -4
- package/resources/devices/tasks.js.map +1 -1
- package/resources/devices/tasks.mjs +2 -4
- package/resources/devices/tasks.mjs.map +1 -1
- package/resources/devices/timezone.d.mts +4 -2
- package/resources/devices/timezone.d.mts.map +1 -1
- package/resources/devices/timezone.d.ts +4 -2
- package/resources/devices/timezone.d.ts.map +1 -1
- package/resources/devices/timezone.js +4 -2
- package/resources/devices/timezone.js.map +1 -1
- package/resources/devices/timezone.mjs +4 -2
- package/resources/devices/timezone.mjs.map +1 -1
- package/resources/esims/esims.d.mts +566 -0
- package/resources/esims/esims.d.mts.map +1 -0
- package/resources/esims/esims.d.ts +566 -0
- package/resources/esims/esims.d.ts.map +1 -0
- package/resources/esims/esims.js +205 -0
- package/resources/esims/esims.js.map +1 -0
- package/resources/esims/esims.mjs +200 -0
- package/resources/esims/esims.mjs.map +1 -0
- package/resources/esims/index.d.mts +3 -0
- package/resources/esims/index.d.mts.map +1 -0
- package/resources/esims/index.d.ts +3 -0
- package/resources/esims/index.d.ts.map +1 -0
- package/resources/esims/index.js +9 -0
- package/resources/esims/index.js.map +1 -0
- package/resources/esims/index.mjs +4 -0
- package/resources/esims/index.mjs.map +1 -0
- package/resources/esims/messages.d.mts +111 -0
- package/resources/esims/messages.d.mts.map +1 -0
- package/resources/esims/messages.d.ts +111 -0
- package/resources/esims/messages.d.ts.map +1 -0
- package/resources/esims/messages.js +37 -0
- package/resources/esims/messages.js.map +1 -0
- package/resources/esims/messages.mjs +33 -0
- package/resources/esims/messages.mjs.map +1 -0
- package/resources/esims.d.mts +2 -0
- package/resources/esims.d.mts.map +1 -0
- package/resources/esims.d.ts +2 -0
- package/resources/esims.d.ts.map +1 -0
- package/resources/esims.js +6 -0
- package/resources/esims.js.map +1 -0
- package/resources/esims.mjs +3 -0
- package/resources/esims.mjs.map +1 -0
- package/resources/index.d.mts +13 -7
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +13 -7
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +15 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +7 -1
- package/resources/index.mjs.map +1 -1
- package/resources/messages/conversations.d.mts +87 -0
- package/resources/messages/conversations.d.mts.map +1 -0
- package/resources/messages/conversations.d.ts +87 -0
- package/resources/messages/conversations.d.ts.map +1 -0
- package/resources/messages/conversations.js +34 -0
- package/resources/messages/conversations.js.map +1 -0
- package/resources/messages/conversations.mjs +30 -0
- package/resources/messages/conversations.mjs.map +1 -0
- package/resources/messages/index.d.mts +3 -0
- package/resources/messages/index.d.mts.map +1 -0
- package/resources/messages/index.d.ts +3 -0
- package/resources/messages/index.d.ts.map +1 -0
- package/resources/messages/index.js +9 -0
- package/resources/messages/index.js.map +1 -0
- package/resources/messages/index.mjs +4 -0
- package/resources/messages/index.mjs.map +1 -0
- package/resources/messages/messages.d.mts +56 -0
- package/resources/messages/messages.d.mts.map +1 -0
- package/resources/messages/messages.d.ts +56 -0
- package/resources/messages/messages.d.ts.map +1 -0
- package/resources/messages/messages.js +26 -0
- package/resources/messages/messages.js.map +1 -0
- package/resources/messages/messages.mjs +21 -0
- package/resources/messages/messages.mjs.map +1 -0
- package/resources/messages.d.mts +2 -0
- package/resources/messages.d.mts.map +1 -0
- package/resources/messages.d.ts +2 -0
- package/resources/messages.d.ts.map +1 -0
- package/resources/messages.js +6 -0
- package/resources/messages.js.map +1 -0
- package/resources/messages.mjs +3 -0
- package/resources/messages.mjs.map +1 -0
- package/resources/notifications.d.mts +86 -0
- package/resources/notifications.d.mts.map +1 -0
- package/resources/notifications.d.ts +86 -0
- package/resources/notifications.d.ts.map +1 -0
- package/resources/notifications.js +55 -0
- package/resources/notifications.js.map +1 -0
- package/resources/notifications.mjs +51 -0
- package/resources/notifications.mjs.map +1 -0
- package/resources/numbers/index.d.mts +3 -0
- package/resources/numbers/index.d.mts.map +1 -0
- package/resources/numbers/index.d.ts +3 -0
- package/resources/numbers/index.d.ts.map +1 -0
- package/resources/numbers/index.js +9 -0
- package/resources/numbers/index.js.map +1 -0
- package/resources/numbers/index.mjs +4 -0
- package/resources/numbers/index.mjs.map +1 -0
- package/resources/numbers/messages.d.mts +60 -0
- package/resources/numbers/messages.d.mts.map +1 -0
- package/resources/numbers/messages.d.ts +60 -0
- package/resources/numbers/messages.d.ts.map +1 -0
- package/resources/numbers/messages.js +25 -0
- package/resources/numbers/messages.js.map +1 -0
- package/resources/numbers/messages.mjs +21 -0
- package/resources/numbers/messages.mjs.map +1 -0
- package/resources/numbers/numbers.d.mts +222 -0
- package/resources/numbers/numbers.d.mts.map +1 -0
- package/resources/numbers/numbers.d.ts +222 -0
- package/resources/numbers/numbers.d.ts.map +1 -0
- package/resources/numbers/numbers.js +117 -0
- package/resources/numbers/numbers.js.map +1 -0
- package/resources/numbers/numbers.mjs +112 -0
- package/resources/numbers/numbers.mjs.map +1 -0
- package/resources/numbers.d.mts +2 -0
- package/resources/numbers.d.mts.map +1 -0
- package/resources/numbers.d.ts +2 -0
- package/resources/numbers.d.ts.map +1 -0
- package/resources/numbers.js +6 -0
- package/resources/numbers.js.map +1 -0
- package/resources/numbers.mjs +3 -0
- package/resources/numbers.mjs.map +1 -0
- package/resources/profiles.d.mts +69 -6
- package/resources/profiles.d.mts.map +1 -1
- package/resources/profiles.d.ts +69 -6
- package/resources/profiles.d.ts.map +1 -1
- package/resources/profiles.js.map +1 -1
- package/resources/profiles.mjs.map +1 -1
- package/resources/proxies.d.mts +57 -28
- package/resources/proxies.d.mts.map +1 -1
- package/resources/proxies.d.ts +57 -28
- package/resources/proxies.d.ts.map +1 -1
- package/resources/proxies.js +14 -8
- package/resources/proxies.js.map +1 -1
- package/resources/proxies.mjs +14 -8
- package/resources/proxies.mjs.map +1 -1
- package/resources/shared.d.mts +25 -3
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +25 -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 +216 -90
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +216 -90
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js +10 -2
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs +11 -3
- 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/webhooks/deliveries.d.mts +38 -4
- package/resources/webhooks/deliveries.d.mts.map +1 -1
- package/resources/webhooks/deliveries.d.ts +38 -4
- package/resources/webhooks/deliveries.d.ts.map +1 -1
- package/resources/webhooks/deliveries.js +15 -4
- package/resources/webhooks/deliveries.js.map +1 -1
- package/resources/webhooks/deliveries.mjs +15 -4
- package/resources/webhooks/deliveries.mjs.map +1 -1
- package/resources/webhooks/webhooks.d.mts +67 -9
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +67 -9
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js +26 -8
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +26 -8
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/resources/workflows/action-catalog.d.mts +32 -15
- package/resources/workflows/action-catalog.d.mts.map +1 -1
- package/resources/workflows/action-catalog.d.ts +32 -15
- package/resources/workflows/action-catalog.d.ts.map +1 -1
- package/resources/workflows/action-catalog.js +5 -2
- package/resources/workflows/action-catalog.js.map +1 -1
- package/resources/workflows/action-catalog.mjs +5 -2
- package/resources/workflows/action-catalog.mjs.map +1 -1
- package/resources/workflows/actions/actions.d.mts +95 -23
- package/resources/workflows/actions/actions.d.mts.map +1 -1
- package/resources/workflows/actions/actions.d.ts +95 -23
- package/resources/workflows/actions/actions.d.ts.map +1 -1
- package/resources/workflows/actions/actions.js +10 -5
- package/resources/workflows/actions/actions.js.map +1 -1
- package/resources/workflows/actions/actions.mjs +10 -5
- 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/actions/services.d.mts +5 -2
- package/resources/workflows/actions/services.d.mts.map +1 -1
- package/resources/workflows/actions/services.d.ts +5 -2
- package/resources/workflows/actions/services.d.ts.map +1 -1
- package/resources/workflows/actions/services.js +5 -2
- package/resources/workflows/actions/services.js.map +1 -1
- package/resources/workflows/actions/services.mjs +5 -2
- package/resources/workflows/actions/services.mjs.map +1 -1
- package/resources/workflows/events.d.mts +144 -1
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +144 -1
- package/resources/workflows/events.d.ts.map +1 -1
- package/resources/workflows/events.js +18 -2
- package/resources/workflows/events.js.map +1 -1
- package/resources/workflows/events.mjs +16 -1
- package/resources/workflows/events.mjs.map +1 -1
- package/resources/workflows/executions.d.mts +107 -20
- package/resources/workflows/executions.d.mts.map +1 -1
- package/resources/workflows/executions.d.ts +107 -20
- package/resources/workflows/executions.d.ts.map +1 -1
- package/resources/workflows/executions.js +15 -3
- package/resources/workflows/executions.js.map +1 -1
- package/resources/workflows/executions.mjs +15 -3
- package/resources/workflows/executions.mjs.map +1 -1
- package/resources/workflows/flows/actions.d.mts +121 -30
- package/resources/workflows/flows/actions.d.mts.map +1 -1
- package/resources/workflows/flows/actions.d.ts +121 -30
- package/resources/workflows/flows/actions.d.ts.map +1 -1
- package/resources/workflows/flows/actions.js +12 -4
- package/resources/workflows/flows/actions.js.map +1 -1
- package/resources/workflows/flows/actions.mjs +12 -4
- package/resources/workflows/flows/actions.mjs.map +1 -1
- package/resources/workflows/flows/flows.d.mts +406 -32
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +406 -32
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +43 -6
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +43 -6
- 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 +76 -61
- package/resources/workflows/triggers.d.mts.map +1 -1
- package/resources/workflows/triggers.d.ts +76 -61
- package/resources/workflows/triggers.d.ts.map +1 -1
- package/resources/workflows/triggers.js +12 -5
- package/resources/workflows/triggers.js.map +1 -1
- package/resources/workflows/triggers.mjs +12 -5
- package/resources/workflows/triggers.mjs.map +1 -1
- package/resources/workflows/workflows.d.mts +10 -33
- package/resources/workflows/workflows.d.mts.map +1 -1
- package/resources/workflows/workflows.d.ts +10 -33
- 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 +137 -65
- package/src/resources/agents.ts +42 -0
- package/src/resources/app-events/app-events.ts +133 -0
- package/src/resources/app-events/catalog.ts +100 -0
- package/src/resources/app-events/index.ts +9 -0
- package/src/resources/app-events.ts +3 -0
- package/src/resources/apps.ts +55 -8
- package/src/resources/carriers.ts +0 -3
- package/src/resources/connect/countries.ts +8 -3
- package/src/resources/connect/proxies.ts +11 -9
- package/src/resources/connect/users.ts +7 -2
- package/src/resources/credentials/credentials.ts +43 -6
- package/src/resources/credentials/index.ts +1 -0
- package/src/resources/credentials/packages/credentials/credentials.ts +117 -33
- package/src/resources/credentials/packages/credentials/fields.ts +122 -10
- 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 +63 -8
- package/src/resources/devices/actions.ts +10 -5
- package/src/resources/devices/apps.ts +196 -5
- package/src/resources/devices/browser.ts +71 -0
- package/src/resources/devices/deep-link.ts +70 -0
- package/src/resources/devices/devices.ts +511 -38
- 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 -206
- package/src/resources/devices/files.ts +43 -39
- package/src/resources/devices/index.ts +45 -5
- package/src/resources/devices/keyboard.ts +5 -3
- package/src/resources/devices/kiosk.ts +74 -0
- package/src/resources/devices/language.ts +4 -2
- package/src/resources/devices/location.ts +37 -3
- package/src/resources/devices/media-sessions.ts +168 -0
- package/src/resources/devices/packages.ts +2 -1
- package/src/resources/devices/proxy.ts +32 -3
- package/src/resources/devices/recordings.ts +358 -0
- package/src/resources/devices/state.ts +15 -12
- package/src/resources/devices/tasks.ts +2 -4
- package/src/resources/devices/timezone.ts +4 -2
- package/src/resources/esims/esims.ts +1013 -0
- package/src/resources/esims/index.ts +27 -0
- package/src/resources/esims/messages.ts +193 -0
- package/src/resources/esims.ts +3 -0
- package/src/resources/index.ts +54 -23
- package/src/resources/messages/conversations.ts +138 -0
- package/src/resources/messages/index.ts +10 -0
- package/src/resources/messages/messages.ts +120 -0
- package/src/resources/messages.ts +3 -0
- package/src/resources/notifications.ts +118 -0
- package/src/resources/numbers/index.ts +14 -0
- package/src/resources/numbers/messages.ts +102 -0
- package/src/resources/numbers/numbers.ts +339 -0
- package/src/resources/numbers.ts +3 -0
- package/src/resources/profiles.ts +105 -6
- package/src/resources/proxies.ts +66 -30
- package/src/resources/shared.ts +35 -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 +259 -103
- package/src/resources/tasks/ui-states.ts +9 -2
- package/src/resources/webhooks/deliveries.ts +43 -4
- package/src/resources/webhooks/webhooks.ts +79 -9
- package/src/resources/workflows/action-catalog.ts +40 -16
- package/src/resources/workflows/actions/actions.ts +136 -24
- package/src/resources/workflows/actions/index.ts +0 -1
- package/src/resources/workflows/actions/services.ts +5 -2
- package/src/resources/workflows/events.ts +226 -1
- package/src/resources/workflows/executions.ts +143 -21
- package/src/resources/workflows/flows/actions.ts +141 -29
- package/src/resources/workflows/flows/flows.ts +663 -31
- package/src/resources/workflows/flows/index.ts +3 -3
- package/src/resources/workflows/index.ts +6 -7
- package/src/resources/workflows/triggers.ts +93 -73
- package/src/resources/workflows/workflows.ts +16 -69
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/hooks.d.mts +0 -243
- package/resources/hooks.d.mts.map +0 -1
- package/resources/hooks.d.ts +0 -243
- package/resources/hooks.d.ts.map +0 -1
- package/resources/hooks.js +0 -66
- package/resources/hooks.js.map +0 -1
- package/resources/hooks.mjs +0 -62
- package/resources/hooks.mjs.map +0 -1
- package/resources/workflows/events/catalog.d.mts +0 -55
- package/resources/workflows/events/catalog.d.mts.map +0 -1
- package/resources/workflows/events/catalog.d.ts +0 -55
- package/resources/workflows/events/catalog.d.ts.map +0 -1
- package/resources/workflows/events/catalog.js +0 -21
- package/resources/workflows/events/catalog.js.map +0 -1
- package/resources/workflows/events/catalog.mjs +0 -17
- package/resources/workflows/events/catalog.mjs.map +0 -1
- package/resources/workflows/events/events.d.mts +0 -123
- package/resources/workflows/events/events.d.mts.map +0 -1
- package/resources/workflows/events/events.d.ts +0 -123
- 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 +0 -4
- package/resources/workflows/events/index.mjs.map +0 -1
- package/src/resources/hooks.ts +0 -337
- package/src/resources/workflows/events/catalog.ts +0 -88
- package/src/resources/workflows/events/events.ts +0 -189
- package/src/resources/workflows/events/index.ts +0 -16
|
@@ -8,28 +8,38 @@ const ActionsAPI = tslib_1.__importStar(require("./actions.js"));
|
|
|
8
8
|
const actions_1 = require("./actions.js");
|
|
9
9
|
const AppsAPI = tslib_1.__importStar(require("./apps.js"));
|
|
10
10
|
const apps_1 = require("./apps.js");
|
|
11
|
-
const
|
|
12
|
-
const
|
|
11
|
+
const BrowserAPI = tslib_1.__importStar(require("./browser.js"));
|
|
12
|
+
const browser_1 = require("./browser.js");
|
|
13
|
+
const DeepLinkAPI = tslib_1.__importStar(require("./deep-link.js"));
|
|
14
|
+
const deep_link_1 = require("./deep-link.js");
|
|
13
15
|
const FilesAPI = tslib_1.__importStar(require("./files.js"));
|
|
14
16
|
const files_1 = require("./files.js");
|
|
15
17
|
const KeyboardAPI = tslib_1.__importStar(require("./keyboard.js"));
|
|
16
18
|
const keyboard_1 = require("./keyboard.js");
|
|
19
|
+
const KioskAPI = tslib_1.__importStar(require("./kiosk.js"));
|
|
20
|
+
const kiosk_1 = require("./kiosk.js");
|
|
17
21
|
const LanguageAPI = tslib_1.__importStar(require("./language.js"));
|
|
18
22
|
const language_1 = require("./language.js");
|
|
19
23
|
const LocationAPI = tslib_1.__importStar(require("./location.js"));
|
|
20
24
|
const location_1 = require("./location.js");
|
|
25
|
+
const MediaSessionsAPI = tslib_1.__importStar(require("./media-sessions.js"));
|
|
26
|
+
const media_sessions_1 = require("./media-sessions.js");
|
|
21
27
|
const PackagesAPI = tslib_1.__importStar(require("./packages.js"));
|
|
22
28
|
const packages_1 = require("./packages.js");
|
|
23
29
|
const ProfileAPI = tslib_1.__importStar(require("./profile.js"));
|
|
24
30
|
const profile_1 = require("./profile.js");
|
|
25
31
|
const ProxyAPI = tslib_1.__importStar(require("./proxy.js"));
|
|
26
32
|
const proxy_1 = require("./proxy.js");
|
|
33
|
+
const RecordingsAPI = tslib_1.__importStar(require("./recordings.js"));
|
|
34
|
+
const recordings_1 = require("./recordings.js");
|
|
27
35
|
const StateAPI = tslib_1.__importStar(require("./state.js"));
|
|
28
36
|
const state_1 = require("./state.js");
|
|
29
37
|
const TasksAPI = tslib_1.__importStar(require("./tasks.js"));
|
|
30
38
|
const tasks_1 = require("./tasks.js");
|
|
31
39
|
const TimezoneAPI = tslib_1.__importStar(require("./timezone.js"));
|
|
32
40
|
const timezone_1 = require("./timezone.js");
|
|
41
|
+
const EsimAPI = tslib_1.__importStar(require("./esim/esim.js"));
|
|
42
|
+
const esim_1 = require("./esim/esim.js");
|
|
33
43
|
const headers_1 = require("../../internal/headers.js");
|
|
34
44
|
const path_1 = require("../../internal/utils/path.js");
|
|
35
45
|
class Devices extends resource_1.APIResource {
|
|
@@ -48,38 +58,51 @@ class Devices extends resource_1.APIResource {
|
|
|
48
58
|
this.tasks = new TasksAPI.Tasks(this._client);
|
|
49
59
|
this.timezone = new TimezoneAPI.Timezone(this._client);
|
|
50
60
|
this.language = new LanguageAPI.Language(this._client);
|
|
61
|
+
this.deepLink = new DeepLinkAPI.DeepLink(this._client);
|
|
62
|
+
this.browser = new BrowserAPI.Browser(this._client);
|
|
63
|
+
this.kiosk = new KioskAPI.Kiosk(this._client);
|
|
64
|
+
this.mediaSessions = new MediaSessionsAPI.MediaSessions(this._client);
|
|
65
|
+
this.recordings = new RecordingsAPI.Recordings(this._client);
|
|
51
66
|
}
|
|
52
67
|
/**
|
|
53
|
-
*
|
|
68
|
+
* Requests a new device for the authenticated user from the device spec in the
|
|
69
|
+
* request body. Optional query parameters select the canonical device type, target
|
|
70
|
+
* country, billing mode, and a profile to use as the base spec; deprecated
|
|
71
|
+
* device-type aliases remain accepted only during the documented compatibility
|
|
72
|
+
* grace period. The response returns the device and its stream token.
|
|
54
73
|
*/
|
|
55
74
|
create(params, options) {
|
|
56
|
-
const { query_country, deviceType, profileId, ...body } = params;
|
|
75
|
+
const { billing, query_country, deviceType, profileId, ...body } = params;
|
|
57
76
|
return this._client.post('/devices', {
|
|
58
|
-
query: { country: query_country, deviceType, profileId },
|
|
77
|
+
query: { billing, country: query_country, deviceType, profileId },
|
|
59
78
|
body,
|
|
60
79
|
...options,
|
|
61
80
|
});
|
|
62
81
|
}
|
|
63
82
|
/**
|
|
64
|
-
*
|
|
83
|
+
* Returns the current state and metadata for a single device, including its
|
|
84
|
+
* lifecycle state, type, stream URL, billing strategy, and timestamps. A stream
|
|
85
|
+
* token is included while the device is active.
|
|
65
86
|
*/
|
|
66
87
|
retrieve(deviceID, options) {
|
|
67
88
|
return this._client.get((0, path_1.path) `/devices/${deviceID}`, options);
|
|
68
89
|
}
|
|
69
90
|
/**
|
|
70
|
-
*
|
|
91
|
+
* Returns a paginated list of the user's devices along with pagination metadata.
|
|
71
92
|
*/
|
|
72
93
|
list(query = {}, options) {
|
|
73
94
|
return this._client.get('/devices', { query, ...options });
|
|
74
95
|
}
|
|
75
96
|
/**
|
|
76
|
-
*
|
|
97
|
+
* Returns the number of claimed devices for the user, broken down by device type.
|
|
77
98
|
*/
|
|
78
99
|
count(options) {
|
|
79
100
|
return this._client.get('/devices/count', options);
|
|
80
101
|
}
|
|
81
102
|
/**
|
|
82
|
-
*
|
|
103
|
+
* Returns a live snapshot of the device's spoofed identity, including model,
|
|
104
|
+
* display, identifiers, and carrier. Devices without fingerprint support return an
|
|
105
|
+
* unsupported-feature error.
|
|
83
106
|
*/
|
|
84
107
|
fingerprint(deviceID, params = {}, options) {
|
|
85
108
|
const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
@@ -96,7 +119,8 @@ class Devices extends resource_1.APIResource {
|
|
|
96
119
|
});
|
|
97
120
|
}
|
|
98
121
|
/**
|
|
99
|
-
*
|
|
122
|
+
* Triggers a reboot of the device. The device transitions through its reboot
|
|
123
|
+
* lifecycle and becomes ready again once the restart completes.
|
|
100
124
|
*/
|
|
101
125
|
reboot(deviceID, options) {
|
|
102
126
|
return this._client.post((0, path_1.path) `/devices/${deviceID}/reboot`, {
|
|
@@ -105,7 +129,9 @@ class Devices extends resource_1.APIResource {
|
|
|
105
129
|
});
|
|
106
130
|
}
|
|
107
131
|
/**
|
|
108
|
-
*
|
|
132
|
+
* Resets the device back to a clean state, clearing installed apps and user data
|
|
133
|
+
* accumulated during the session. The device transitions through its reset
|
|
134
|
+
* lifecycle before becoming ready again.
|
|
109
135
|
*/
|
|
110
136
|
reset(deviceID, options) {
|
|
111
137
|
return this._client.post((0, path_1.path) `/devices/${deviceID}/reset`, {
|
|
@@ -114,13 +140,49 @@ class Devices extends resource_1.APIResource {
|
|
|
114
140
|
});
|
|
115
141
|
}
|
|
116
142
|
/**
|
|
117
|
-
*
|
|
143
|
+
* Wakes a parked device: capacity is preflighted (the device's data may be
|
|
144
|
+
* replicated to another node if its home is full), the device starts running
|
|
145
|
+
* again, and per-minute billing resumes. On a device that is not parked this is a
|
|
146
|
+
* no-op ready transition.
|
|
147
|
+
*/
|
|
148
|
+
resume(deviceID, options) {
|
|
149
|
+
return this._client.post((0, path_1.path) `/devices/${deviceID}/resume`, {
|
|
150
|
+
...options,
|
|
151
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Returns the set of capabilities supported by this device. For a legacy device
|
|
156
|
+
* this reflects the live instance's actual tools rather than its static type; for
|
|
157
|
+
* a core-managed device it is resolved from provider/pool configuration without
|
|
158
|
+
* guaranteeing a live instance. Used to determine which tools and features are
|
|
159
|
+
* available for the device.
|
|
160
|
+
*/
|
|
161
|
+
retrieveCapabilities(deviceID, options) {
|
|
162
|
+
return this._client.get((0, path_1.path) `/devices/${deviceID}/capabilities`, options);
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Sets the display name for a device from the name in the request body and returns
|
|
166
|
+
* the updated device.
|
|
118
167
|
*/
|
|
119
168
|
setName(deviceID, body, options) {
|
|
120
169
|
return this._client.put((0, path_1.path) `/devices/${deviceID}/name`, { body, ...options });
|
|
121
170
|
}
|
|
122
171
|
/**
|
|
123
|
-
*
|
|
172
|
+
* Parks the device: its data, apps and identity are kept, but nothing runs and
|
|
173
|
+
* nothing is billed until it is resumed. Only devices whose capabilities report
|
|
174
|
+
* stop=true support this; others return 404.
|
|
175
|
+
*/
|
|
176
|
+
stop(deviceID, options) {
|
|
177
|
+
return this._client.post((0, path_1.path) `/devices/${deviceID}/stop`, {
|
|
178
|
+
...options,
|
|
179
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Terminates the device and releases its resources. Termination can be scheduled
|
|
184
|
+
* for a future time or chained from a previous device via the request body, in
|
|
185
|
+
* which case a service key is required.
|
|
124
186
|
*/
|
|
125
187
|
terminate(deviceID, body, options) {
|
|
126
188
|
return this._client.delete((0, path_1.path) `/devices/${deviceID}`, {
|
|
@@ -130,7 +192,9 @@ class Devices extends resource_1.APIResource {
|
|
|
130
192
|
});
|
|
131
193
|
}
|
|
132
194
|
/**
|
|
133
|
-
*
|
|
195
|
+
* Blocks until the device reaches the ready state, then returns the same payload
|
|
196
|
+
* as Get device info. The call returns early with an error if the wait is
|
|
197
|
+
* cancelled or times out.
|
|
134
198
|
*/
|
|
135
199
|
waitReady(deviceID, options) {
|
|
136
200
|
return this._client.get((0, path_1.path) `/devices/${deviceID}/wait`, options);
|
|
@@ -150,4 +214,9 @@ Devices.State = state_1.State;
|
|
|
150
214
|
Devices.Tasks = tasks_1.Tasks;
|
|
151
215
|
Devices.Timezone = timezone_1.Timezone;
|
|
152
216
|
Devices.Language = language_1.Language;
|
|
217
|
+
Devices.DeepLink = deep_link_1.DeepLink;
|
|
218
|
+
Devices.Browser = browser_1.Browser;
|
|
219
|
+
Devices.Kiosk = kiosk_1.Kiosk;
|
|
220
|
+
Devices.MediaSessions = media_sessions_1.MediaSessions;
|
|
221
|
+
Devices.Recordings = recordings_1.Recordings;
|
|
153
222
|
//# sourceMappingURL=devices.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devices.js","sourceRoot":"","sources":["../../src/resources/devices/devices.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,iEAAwC;AACxC,0CAQmB;AACnB,2DAAkC;AAClC,
|
|
1
|
+
{"version":3,"file":"devices.js","sourceRoot":"","sources":["../../src/resources/devices/devices.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,iEAAwC;AACxC,0CAQmB;AACnB,2DAAkC;AAClC,oCAYgB;AAChB,iEAAwC;AACxC,0CAA8F;AAC9F,oEAA2C;AAC3C,8CAAsE;AACtE,6DAAoC;AACpC,sCAQiB;AACjB,mEAA0C;AAC1C,4CAAmG;AACnG,6DAAoC;AACpC,sCAAuE;AACvE,mEAA0C;AAC1C,4CAAiG;AACjG,mEAA0C;AAC1C,4CAAiG;AACjG,8EAAqD;AACrD,wDAQ0B;AAC1B,mEAA0C;AAC1C,4CAA8E;AAC9E,iEAAwC;AACxC,0CAAyD;AACzD,6DAAoC;AACpC,sCAMiB;AACjB,uEAA8C;AAC9C,gDAasB;AACtB,6DAAoC;AACpC,sCASiB;AACjB,6DAAoC;AACpC,sCAAkE;AAClE,mEAA0C;AAC1C,4CAAiG;AACjG,gEAAuC;AACvC,yCAWqB;AAErB,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,YAAO,GAAuB,IAAI,UAA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BAqLC;AA2hBD,OAAO,CAAC,OAAO,GAAG,iBAAO,CAAC;AAC1B,OAAO,CAAC,IAAI,GAAG,WAAI,CAAC;AACpB,OAAO,CAAC,IAAI,GAAG,WAAI,CAAC;AACpB,OAAO,CAAC,KAAK,GAAG,aAAK,CAAC;AACtB,OAAO,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC5B,OAAO,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC5B,OAAO,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC5B,OAAO,CAAC,OAAO,GAAG,iBAAO,CAAC;AAC1B,OAAO,CAAC,KAAK,GAAG,aAAa,CAAC;AAC9B,OAAO,CAAC,KAAK,GAAG,aAAK,CAAC;AACtB,OAAO,CAAC,KAAK,GAAG,aAAK,CAAC;AACtB,OAAO,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC5B,OAAO,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC5B,OAAO,CAAC,QAAQ,GAAG,oBAAQ,CAAC;AAC5B,OAAO,CAAC,OAAO,GAAG,iBAAO,CAAC;AAC1B,OAAO,CAAC,KAAK,GAAG,aAAK,CAAC;AACtB,OAAO,CAAC,aAAa,GAAG,8BAAa,CAAC;AACtC,OAAO,CAAC,UAAU,GAAG,uBAAU,CAAC"}
|
|
@@ -4,28 +4,38 @@ import * as ActionsAPI from "./actions.mjs";
|
|
|
4
4
|
import { Actions, } from "./actions.mjs";
|
|
5
5
|
import * as AppsAPI from "./apps.mjs";
|
|
6
6
|
import { Apps, } from "./apps.mjs";
|
|
7
|
-
import * as
|
|
8
|
-
import {
|
|
7
|
+
import * as BrowserAPI from "./browser.mjs";
|
|
8
|
+
import { Browser } from "./browser.mjs";
|
|
9
|
+
import * as DeepLinkAPI from "./deep-link.mjs";
|
|
10
|
+
import { DeepLink } from "./deep-link.mjs";
|
|
9
11
|
import * as FilesAPI from "./files.mjs";
|
|
10
12
|
import { Files, } from "./files.mjs";
|
|
11
13
|
import * as KeyboardAPI from "./keyboard.mjs";
|
|
12
14
|
import { Keyboard } from "./keyboard.mjs";
|
|
15
|
+
import * as KioskAPI from "./kiosk.mjs";
|
|
16
|
+
import { Kiosk } from "./kiosk.mjs";
|
|
13
17
|
import * as LanguageAPI from "./language.mjs";
|
|
14
18
|
import { Language } from "./language.mjs";
|
|
15
19
|
import * as LocationAPI from "./location.mjs";
|
|
16
20
|
import { Location } from "./location.mjs";
|
|
21
|
+
import * as MediaSessionsAPI from "./media-sessions.mjs";
|
|
22
|
+
import { MediaSessions, } from "./media-sessions.mjs";
|
|
17
23
|
import * as PackagesAPI from "./packages.mjs";
|
|
18
24
|
import { Packages } from "./packages.mjs";
|
|
19
25
|
import * as ProfileAPI from "./profile.mjs";
|
|
20
26
|
import { Profile } from "./profile.mjs";
|
|
21
27
|
import * as ProxyAPI from "./proxy.mjs";
|
|
22
28
|
import { Proxy as ProxyAPIProxy, } from "./proxy.mjs";
|
|
29
|
+
import * as RecordingsAPI from "./recordings.mjs";
|
|
30
|
+
import { Recordings, } from "./recordings.mjs";
|
|
23
31
|
import * as StateAPI from "./state.mjs";
|
|
24
32
|
import { State, } from "./state.mjs";
|
|
25
33
|
import * as TasksAPI from "./tasks.mjs";
|
|
26
34
|
import { Tasks } from "./tasks.mjs";
|
|
27
35
|
import * as TimezoneAPI from "./timezone.mjs";
|
|
28
36
|
import { Timezone } from "./timezone.mjs";
|
|
37
|
+
import * as EsimAPI from "./esim/esim.mjs";
|
|
38
|
+
import { Esim, } from "./esim/esim.mjs";
|
|
29
39
|
import { buildHeaders } from "../../internal/headers.mjs";
|
|
30
40
|
import { path } from "../../internal/utils/path.mjs";
|
|
31
41
|
export class Devices extends APIResource {
|
|
@@ -44,38 +54,51 @@ export class Devices extends APIResource {
|
|
|
44
54
|
this.tasks = new TasksAPI.Tasks(this._client);
|
|
45
55
|
this.timezone = new TimezoneAPI.Timezone(this._client);
|
|
46
56
|
this.language = new LanguageAPI.Language(this._client);
|
|
57
|
+
this.deepLink = new DeepLinkAPI.DeepLink(this._client);
|
|
58
|
+
this.browser = new BrowserAPI.Browser(this._client);
|
|
59
|
+
this.kiosk = new KioskAPI.Kiosk(this._client);
|
|
60
|
+
this.mediaSessions = new MediaSessionsAPI.MediaSessions(this._client);
|
|
61
|
+
this.recordings = new RecordingsAPI.Recordings(this._client);
|
|
47
62
|
}
|
|
48
63
|
/**
|
|
49
|
-
*
|
|
64
|
+
* Requests a new device for the authenticated user from the device spec in the
|
|
65
|
+
* request body. Optional query parameters select the canonical device type, target
|
|
66
|
+
* country, billing mode, and a profile to use as the base spec; deprecated
|
|
67
|
+
* device-type aliases remain accepted only during the documented compatibility
|
|
68
|
+
* grace period. The response returns the device and its stream token.
|
|
50
69
|
*/
|
|
51
70
|
create(params, options) {
|
|
52
|
-
const { query_country, deviceType, profileId, ...body } = params;
|
|
71
|
+
const { billing, query_country, deviceType, profileId, ...body } = params;
|
|
53
72
|
return this._client.post('/devices', {
|
|
54
|
-
query: { country: query_country, deviceType, profileId },
|
|
73
|
+
query: { billing, country: query_country, deviceType, profileId },
|
|
55
74
|
body,
|
|
56
75
|
...options,
|
|
57
76
|
});
|
|
58
77
|
}
|
|
59
78
|
/**
|
|
60
|
-
*
|
|
79
|
+
* Returns the current state and metadata for a single device, including its
|
|
80
|
+
* lifecycle state, type, stream URL, billing strategy, and timestamps. A stream
|
|
81
|
+
* token is included while the device is active.
|
|
61
82
|
*/
|
|
62
83
|
retrieve(deviceID, options) {
|
|
63
84
|
return this._client.get(path `/devices/${deviceID}`, options);
|
|
64
85
|
}
|
|
65
86
|
/**
|
|
66
|
-
*
|
|
87
|
+
* Returns a paginated list of the user's devices along with pagination metadata.
|
|
67
88
|
*/
|
|
68
89
|
list(query = {}, options) {
|
|
69
90
|
return this._client.get('/devices', { query, ...options });
|
|
70
91
|
}
|
|
71
92
|
/**
|
|
72
|
-
*
|
|
93
|
+
* Returns the number of claimed devices for the user, broken down by device type.
|
|
73
94
|
*/
|
|
74
95
|
count(options) {
|
|
75
96
|
return this._client.get('/devices/count', options);
|
|
76
97
|
}
|
|
77
98
|
/**
|
|
78
|
-
*
|
|
99
|
+
* Returns a live snapshot of the device's spoofed identity, including model,
|
|
100
|
+
* display, identifiers, and carrier. Devices without fingerprint support return an
|
|
101
|
+
* unsupported-feature error.
|
|
79
102
|
*/
|
|
80
103
|
fingerprint(deviceID, params = {}, options) {
|
|
81
104
|
const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
@@ -92,7 +115,8 @@ export class Devices extends APIResource {
|
|
|
92
115
|
});
|
|
93
116
|
}
|
|
94
117
|
/**
|
|
95
|
-
*
|
|
118
|
+
* Triggers a reboot of the device. The device transitions through its reboot
|
|
119
|
+
* lifecycle and becomes ready again once the restart completes.
|
|
96
120
|
*/
|
|
97
121
|
reboot(deviceID, options) {
|
|
98
122
|
return this._client.post(path `/devices/${deviceID}/reboot`, {
|
|
@@ -101,7 +125,9 @@ export class Devices extends APIResource {
|
|
|
101
125
|
});
|
|
102
126
|
}
|
|
103
127
|
/**
|
|
104
|
-
*
|
|
128
|
+
* Resets the device back to a clean state, clearing installed apps and user data
|
|
129
|
+
* accumulated during the session. The device transitions through its reset
|
|
130
|
+
* lifecycle before becoming ready again.
|
|
105
131
|
*/
|
|
106
132
|
reset(deviceID, options) {
|
|
107
133
|
return this._client.post(path `/devices/${deviceID}/reset`, {
|
|
@@ -110,13 +136,49 @@ export class Devices extends APIResource {
|
|
|
110
136
|
});
|
|
111
137
|
}
|
|
112
138
|
/**
|
|
113
|
-
*
|
|
139
|
+
* Wakes a parked device: capacity is preflighted (the device's data may be
|
|
140
|
+
* replicated to another node if its home is full), the device starts running
|
|
141
|
+
* again, and per-minute billing resumes. On a device that is not parked this is a
|
|
142
|
+
* no-op ready transition.
|
|
143
|
+
*/
|
|
144
|
+
resume(deviceID, options) {
|
|
145
|
+
return this._client.post(path `/devices/${deviceID}/resume`, {
|
|
146
|
+
...options,
|
|
147
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Returns the set of capabilities supported by this device. For a legacy device
|
|
152
|
+
* this reflects the live instance's actual tools rather than its static type; for
|
|
153
|
+
* a core-managed device it is resolved from provider/pool configuration without
|
|
154
|
+
* guaranteeing a live instance. Used to determine which tools and features are
|
|
155
|
+
* available for the device.
|
|
156
|
+
*/
|
|
157
|
+
retrieveCapabilities(deviceID, options) {
|
|
158
|
+
return this._client.get(path `/devices/${deviceID}/capabilities`, options);
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Sets the display name for a device from the name in the request body and returns
|
|
162
|
+
* the updated device.
|
|
114
163
|
*/
|
|
115
164
|
setName(deviceID, body, options) {
|
|
116
165
|
return this._client.put(path `/devices/${deviceID}/name`, { body, ...options });
|
|
117
166
|
}
|
|
118
167
|
/**
|
|
119
|
-
*
|
|
168
|
+
* Parks the device: its data, apps and identity are kept, but nothing runs and
|
|
169
|
+
* nothing is billed until it is resumed. Only devices whose capabilities report
|
|
170
|
+
* stop=true support this; others return 404.
|
|
171
|
+
*/
|
|
172
|
+
stop(deviceID, options) {
|
|
173
|
+
return this._client.post(path `/devices/${deviceID}/stop`, {
|
|
174
|
+
...options,
|
|
175
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Terminates the device and releases its resources. Termination can be scheduled
|
|
180
|
+
* for a future time or chained from a previous device via the request body, in
|
|
181
|
+
* which case a service key is required.
|
|
120
182
|
*/
|
|
121
183
|
terminate(deviceID, body, options) {
|
|
122
184
|
return this._client.delete(path `/devices/${deviceID}`, {
|
|
@@ -126,7 +188,9 @@ export class Devices extends APIResource {
|
|
|
126
188
|
});
|
|
127
189
|
}
|
|
128
190
|
/**
|
|
129
|
-
*
|
|
191
|
+
* Blocks until the device reaches the ready state, then returns the same payload
|
|
192
|
+
* as Get device info. The call returns early with an error if the wait is
|
|
193
|
+
* cancelled or times out.
|
|
130
194
|
*/
|
|
131
195
|
waitReady(deviceID, options) {
|
|
132
196
|
return this._client.get(path `/devices/${deviceID}/wait`, options);
|
|
@@ -145,4 +209,9 @@ Devices.State = State;
|
|
|
145
209
|
Devices.Tasks = Tasks;
|
|
146
210
|
Devices.Timezone = Timezone;
|
|
147
211
|
Devices.Language = Language;
|
|
212
|
+
Devices.DeepLink = DeepLink;
|
|
213
|
+
Devices.Browser = Browser;
|
|
214
|
+
Devices.Kiosk = Kiosk;
|
|
215
|
+
Devices.MediaSessions = MediaSessions;
|
|
216
|
+
Devices.Recordings = Recordings;
|
|
148
217
|
//# sourceMappingURL=devices.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devices.mjs","sourceRoot":"","sources":["../../src/resources/devices/devices.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAOL,OAAO,GACR,sBAAkB;AACnB,OAAO,KAAK,OAAO,mBAAe;AAClC,OAAO,
|
|
1
|
+
{"version":3,"file":"devices.mjs","sourceRoot":"","sources":["../../src/resources/devices/devices.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAOL,OAAO,GACR,sBAAkB;AACnB,OAAO,KAAK,OAAO,mBAAe;AAClC,OAAO,EAWL,IAAI,GACL,mBAAe;AAChB,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAAE,OAAO,EAA4D,sBAAkB;AAC9F,OAAO,KAAK,WAAW,wBAAoB;AAC3C,OAAO,EAAE,QAAQ,EAAiC,wBAAoB;AACtE,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAOL,KAAK,GACN,oBAAgB;AACjB,OAAO,KAAK,WAAW,uB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Q,CAAC;AAC5B,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC5B,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC;AAC1B,OAAO,CAAC,KAAK,GAAG,aAAa,CAAC;AAC9B,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC;AACtB,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC;AACtB,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC5B,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC5B,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC5B,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC;AAC1B,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC;AACtB,OAAO,CAAC,aAAa,GAAG,aAAa,CAAC;AACtC,OAAO,CAAC,UAAU,GAAG,UAAU,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
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 Apn extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Returns the access point names (APNs) configured for the device's active eSIM
|
|
7
|
+
* subscriptions.
|
|
8
|
+
*/
|
|
9
|
+
list(deviceID: string, params?: ApnListParams | null | undefined, options?: RequestOptions): APIPromise<ApnListResponse | null>;
|
|
10
|
+
/**
|
|
11
|
+
* Marks an existing APN, identified by apnId, as the preferred APN for the given
|
|
12
|
+
* eSIM subscription in the request body.
|
|
13
|
+
*/
|
|
14
|
+
select(deviceID: string, params: ApnSelectParams, options?: RequestOptions): APIPromise<void>;
|
|
15
|
+
/**
|
|
16
|
+
* Creates an access point name (APN) from the request body and applies it to the
|
|
17
|
+
* given eSIM subscription. Type, protocol, and roaming protocol default to common
|
|
18
|
+
* values when omitted.
|
|
19
|
+
*/
|
|
20
|
+
set(deviceID: string, params: ApnSetParams, options?: RequestOptions): APIPromise<void>;
|
|
21
|
+
}
|
|
22
|
+
export type ApnListResponse = Array<ApnListResponse.ApnListResponseItem>;
|
|
23
|
+
export declare namespace ApnListResponse {
|
|
24
|
+
interface ApnListResponseItem {
|
|
25
|
+
id: number;
|
|
26
|
+
apn: string;
|
|
27
|
+
isPreferred: boolean;
|
|
28
|
+
mcc: string;
|
|
29
|
+
mnc: string;
|
|
30
|
+
name: string;
|
|
31
|
+
protocol: string;
|
|
32
|
+
roamingProtocol: string;
|
|
33
|
+
subId: number;
|
|
34
|
+
type: string;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export interface ApnListParams {
|
|
38
|
+
'X-Device-Display-ID'?: number;
|
|
39
|
+
}
|
|
40
|
+
export interface ApnSelectParams {
|
|
41
|
+
/**
|
|
42
|
+
* Body param
|
|
43
|
+
*/
|
|
44
|
+
apnId: number;
|
|
45
|
+
/**
|
|
46
|
+
* Body param
|
|
47
|
+
*/
|
|
48
|
+
subId: number;
|
|
49
|
+
/**
|
|
50
|
+
* Header param
|
|
51
|
+
*/
|
|
52
|
+
'X-Device-Display-ID'?: number;
|
|
53
|
+
}
|
|
54
|
+
export interface ApnSetParams {
|
|
55
|
+
/**
|
|
56
|
+
* Body param
|
|
57
|
+
*/
|
|
58
|
+
apn: string;
|
|
59
|
+
/**
|
|
60
|
+
* Body param
|
|
61
|
+
*/
|
|
62
|
+
mcc: string;
|
|
63
|
+
/**
|
|
64
|
+
* Body param
|
|
65
|
+
*/
|
|
66
|
+
mnc: string;
|
|
67
|
+
/**
|
|
68
|
+
* Body param
|
|
69
|
+
*/
|
|
70
|
+
name: string;
|
|
71
|
+
/**
|
|
72
|
+
* Body param
|
|
73
|
+
*/
|
|
74
|
+
protocol: string;
|
|
75
|
+
/**
|
|
76
|
+
* Body param
|
|
77
|
+
*/
|
|
78
|
+
roamingProtocol: string;
|
|
79
|
+
/**
|
|
80
|
+
* Body param
|
|
81
|
+
*/
|
|
82
|
+
subId: number;
|
|
83
|
+
/**
|
|
84
|
+
* Body param
|
|
85
|
+
*/
|
|
86
|
+
type: string;
|
|
87
|
+
/**
|
|
88
|
+
* Header param
|
|
89
|
+
*/
|
|
90
|
+
'X-Device-Display-ID'?: number;
|
|
91
|
+
}
|
|
92
|
+
export declare namespace Apn {
|
|
93
|
+
export { type ApnListResponse as ApnListResponse, type ApnListParams as ApnListParams, type ApnSelectParams as ApnSelectParams, type ApnSetParams as ApnSetParams, };
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=apn.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apn.d.mts","sourceRoot":"","sources":["../../../src/resources/devices/esim/apn.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AAEvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE,qBAAa,GAAI,SAAQ,WAAW;IAClC;;;OAGG;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;IAerC;;;OAGG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAiB7F;;;;OAIG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAgBxF;AAED,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,eAAe,CAAC,mBAAmB,CAAC,CAAC;AAEzE,yBAAiB,eAAe,CAAC;IAC/B,UAAiB,mBAAmB;QAClC,EAAE,EAAE,MAAM,CAAC;QAEX,GAAG,EAAE,MAAM,CAAC;QAEZ,WAAW,EAAE,OAAO,CAAC;QAErB,GAAG,EAAE,MAAM,CAAC;QAEZ,GAAG,EAAE,MAAM,CAAC;QAEZ,IAAI,EAAE,MAAM,CAAC;QAEb,QAAQ,EAAE,MAAM,CAAC;QAEjB,eAAe,EAAE,MAAM,CAAC;QAExB,KAAK,EAAE,MAAM,CAAC;QAEd,IAAI,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,WAAW,aAAa;IAC5B,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,YAAY,IAAI,YAAY,GAClC,CAAC;CACH"}
|
|
@@ -0,0 +1,95 @@
|
|
|
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 Apn extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Returns the access point names (APNs) configured for the device's active eSIM
|
|
7
|
+
* subscriptions.
|
|
8
|
+
*/
|
|
9
|
+
list(deviceID: string, params?: ApnListParams | null | undefined, options?: RequestOptions): APIPromise<ApnListResponse | null>;
|
|
10
|
+
/**
|
|
11
|
+
* Marks an existing APN, identified by apnId, as the preferred APN for the given
|
|
12
|
+
* eSIM subscription in the request body.
|
|
13
|
+
*/
|
|
14
|
+
select(deviceID: string, params: ApnSelectParams, options?: RequestOptions): APIPromise<void>;
|
|
15
|
+
/**
|
|
16
|
+
* Creates an access point name (APN) from the request body and applies it to the
|
|
17
|
+
* given eSIM subscription. Type, protocol, and roaming protocol default to common
|
|
18
|
+
* values when omitted.
|
|
19
|
+
*/
|
|
20
|
+
set(deviceID: string, params: ApnSetParams, options?: RequestOptions): APIPromise<void>;
|
|
21
|
+
}
|
|
22
|
+
export type ApnListResponse = Array<ApnListResponse.ApnListResponseItem>;
|
|
23
|
+
export declare namespace ApnListResponse {
|
|
24
|
+
interface ApnListResponseItem {
|
|
25
|
+
id: number;
|
|
26
|
+
apn: string;
|
|
27
|
+
isPreferred: boolean;
|
|
28
|
+
mcc: string;
|
|
29
|
+
mnc: string;
|
|
30
|
+
name: string;
|
|
31
|
+
protocol: string;
|
|
32
|
+
roamingProtocol: string;
|
|
33
|
+
subId: number;
|
|
34
|
+
type: string;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export interface ApnListParams {
|
|
38
|
+
'X-Device-Display-ID'?: number;
|
|
39
|
+
}
|
|
40
|
+
export interface ApnSelectParams {
|
|
41
|
+
/**
|
|
42
|
+
* Body param
|
|
43
|
+
*/
|
|
44
|
+
apnId: number;
|
|
45
|
+
/**
|
|
46
|
+
* Body param
|
|
47
|
+
*/
|
|
48
|
+
subId: number;
|
|
49
|
+
/**
|
|
50
|
+
* Header param
|
|
51
|
+
*/
|
|
52
|
+
'X-Device-Display-ID'?: number;
|
|
53
|
+
}
|
|
54
|
+
export interface ApnSetParams {
|
|
55
|
+
/**
|
|
56
|
+
* Body param
|
|
57
|
+
*/
|
|
58
|
+
apn: string;
|
|
59
|
+
/**
|
|
60
|
+
* Body param
|
|
61
|
+
*/
|
|
62
|
+
mcc: string;
|
|
63
|
+
/**
|
|
64
|
+
* Body param
|
|
65
|
+
*/
|
|
66
|
+
mnc: string;
|
|
67
|
+
/**
|
|
68
|
+
* Body param
|
|
69
|
+
*/
|
|
70
|
+
name: string;
|
|
71
|
+
/**
|
|
72
|
+
* Body param
|
|
73
|
+
*/
|
|
74
|
+
protocol: string;
|
|
75
|
+
/**
|
|
76
|
+
* Body param
|
|
77
|
+
*/
|
|
78
|
+
roamingProtocol: string;
|
|
79
|
+
/**
|
|
80
|
+
* Body param
|
|
81
|
+
*/
|
|
82
|
+
subId: number;
|
|
83
|
+
/**
|
|
84
|
+
* Body param
|
|
85
|
+
*/
|
|
86
|
+
type: string;
|
|
87
|
+
/**
|
|
88
|
+
* Header param
|
|
89
|
+
*/
|
|
90
|
+
'X-Device-Display-ID'?: number;
|
|
91
|
+
}
|
|
92
|
+
export declare namespace Apn {
|
|
93
|
+
export { type ApnListResponse as ApnListResponse, type ApnListParams as ApnListParams, type ApnSelectParams as ApnSelectParams, type ApnSetParams as ApnSetParams, };
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=apn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apn.d.ts","sourceRoot":"","sources":["../../../src/resources/devices/esim/apn.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,qCAAkC;AAEvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa,GAAI,SAAQ,WAAW;IAClC;;;OAGG;IACH,IAAI,CACF,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,aAAa,G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