@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
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
+
import { buildHeaders } from '../../../internal/headers';
|
|
6
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
+
import { path } from '../../../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class Apn extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Returns the access point names (APNs) configured for the device's active eSIM
|
|
12
|
+
* subscriptions.
|
|
13
|
+
*/
|
|
14
|
+
list(
|
|
15
|
+
deviceID: string,
|
|
16
|
+
params: ApnListParams | null | undefined = {},
|
|
17
|
+
options?: RequestOptions,
|
|
18
|
+
): APIPromise<ApnListResponse | null> {
|
|
19
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
20
|
+
return this._client.get(path`/devices/${deviceID}/esim/apn`, {
|
|
21
|
+
...options,
|
|
22
|
+
headers: buildHeaders([
|
|
23
|
+
{
|
|
24
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
25
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
26
|
+
: undefined),
|
|
27
|
+
},
|
|
28
|
+
options?.headers,
|
|
29
|
+
]),
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Marks an existing APN, identified by apnId, as the preferred APN for the given
|
|
35
|
+
* eSIM subscription in the request body.
|
|
36
|
+
*/
|
|
37
|
+
select(deviceID: string, params: ApnSelectParams, options?: RequestOptions): APIPromise<void> {
|
|
38
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
39
|
+
return this._client.put(path`/devices/${deviceID}/esim/apn`, {
|
|
40
|
+
body,
|
|
41
|
+
...options,
|
|
42
|
+
headers: buildHeaders([
|
|
43
|
+
{
|
|
44
|
+
Accept: '*/*',
|
|
45
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
46
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
47
|
+
: undefined),
|
|
48
|
+
},
|
|
49
|
+
options?.headers,
|
|
50
|
+
]),
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Creates an access point name (APN) from the request body and applies it to the
|
|
56
|
+
* given eSIM subscription. Type, protocol, and roaming protocol default to common
|
|
57
|
+
* values when omitted.
|
|
58
|
+
*/
|
|
59
|
+
set(deviceID: string, params: ApnSetParams, options?: RequestOptions): APIPromise<void> {
|
|
60
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
61
|
+
return this._client.post(path`/devices/${deviceID}/esim/apn`, {
|
|
62
|
+
body,
|
|
63
|
+
...options,
|
|
64
|
+
headers: buildHeaders([
|
|
65
|
+
{
|
|
66
|
+
Accept: '*/*',
|
|
67
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
68
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
69
|
+
: undefined),
|
|
70
|
+
},
|
|
71
|
+
options?.headers,
|
|
72
|
+
]),
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export type ApnListResponse = Array<ApnListResponse.ApnListResponseItem>;
|
|
78
|
+
|
|
79
|
+
export namespace ApnListResponse {
|
|
80
|
+
export interface ApnListResponseItem {
|
|
81
|
+
id: number;
|
|
82
|
+
|
|
83
|
+
apn: string;
|
|
84
|
+
|
|
85
|
+
isPreferred: boolean;
|
|
86
|
+
|
|
87
|
+
mcc: string;
|
|
88
|
+
|
|
89
|
+
mnc: string;
|
|
90
|
+
|
|
91
|
+
name: string;
|
|
92
|
+
|
|
93
|
+
protocol: string;
|
|
94
|
+
|
|
95
|
+
roamingProtocol: string;
|
|
96
|
+
|
|
97
|
+
subId: number;
|
|
98
|
+
|
|
99
|
+
type: string;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export interface ApnListParams {
|
|
104
|
+
'X-Device-Display-ID'?: number;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export interface ApnSelectParams {
|
|
108
|
+
/**
|
|
109
|
+
* Body param
|
|
110
|
+
*/
|
|
111
|
+
apnId: number;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Body param
|
|
115
|
+
*/
|
|
116
|
+
subId: number;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Header param
|
|
120
|
+
*/
|
|
121
|
+
'X-Device-Display-ID'?: number;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export interface ApnSetParams {
|
|
125
|
+
/**
|
|
126
|
+
* Body param
|
|
127
|
+
*/
|
|
128
|
+
apn: string;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Body param
|
|
132
|
+
*/
|
|
133
|
+
mcc: string;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Body param
|
|
137
|
+
*/
|
|
138
|
+
mnc: string;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Body param
|
|
142
|
+
*/
|
|
143
|
+
name: string;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Body param
|
|
147
|
+
*/
|
|
148
|
+
protocol: string;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Body param
|
|
152
|
+
*/
|
|
153
|
+
roamingProtocol: string;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Body param
|
|
157
|
+
*/
|
|
158
|
+
subId: number;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Body param
|
|
162
|
+
*/
|
|
163
|
+
type: string;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Header param
|
|
167
|
+
*/
|
|
168
|
+
'X-Device-Display-ID'?: number;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export declare namespace Apn {
|
|
172
|
+
export {
|
|
173
|
+
type ApnListResponse as ApnListResponse,
|
|
174
|
+
type ApnListParams as ApnListParams,
|
|
175
|
+
type ApnSelectParams as ApnSelectParams,
|
|
176
|
+
type ApnSetParams as ApnSetParams,
|
|
177
|
+
};
|
|
178
|
+
}
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as ApnAPI from './apn';
|
|
5
|
+
import { Apn, ApnListParams, ApnListResponse, ApnSelectParams, ApnSetParams } from './apn';
|
|
6
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
7
|
+
import { buildHeaders } from '../../../internal/headers';
|
|
8
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
9
|
+
import { path } from '../../../internal/utils/path';
|
|
10
|
+
|
|
11
|
+
export class Esim extends APIResource {
|
|
12
|
+
apn: ApnAPI.Apn = new ApnAPI.Apn(this._client);
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Returns the eSIM subscriptions currently provisioned on the device.
|
|
16
|
+
*/
|
|
17
|
+
list(
|
|
18
|
+
deviceID: string,
|
|
19
|
+
params: EsimListParams | null | undefined = {},
|
|
20
|
+
options?: RequestOptions,
|
|
21
|
+
): APIPromise<EsimListResponse | null> {
|
|
22
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
23
|
+
return this._client.get(path`/devices/${deviceID}/esim`, {
|
|
24
|
+
...options,
|
|
25
|
+
headers: buildHeaders([
|
|
26
|
+
{
|
|
27
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
28
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
29
|
+
: undefined),
|
|
30
|
+
},
|
|
31
|
+
options?.headers,
|
|
32
|
+
]),
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Download profile and/or enable subscription.
|
|
38
|
+
*/
|
|
39
|
+
activate(
|
|
40
|
+
deviceID: string,
|
|
41
|
+
params: EsimActivateParams,
|
|
42
|
+
options?: RequestOptions,
|
|
43
|
+
): APIPromise<EsimActivateResponse> {
|
|
44
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
45
|
+
return this._client.post(path`/devices/${deviceID}/esim`, {
|
|
46
|
+
body,
|
|
47
|
+
...options,
|
|
48
|
+
headers: buildHeaders([
|
|
49
|
+
{
|
|
50
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
51
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
52
|
+
: undefined),
|
|
53
|
+
},
|
|
54
|
+
options?.headers,
|
|
55
|
+
]),
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Enables the eSIM subscription identified by the subId in the request body so it
|
|
61
|
+
* becomes the active subscription.
|
|
62
|
+
*/
|
|
63
|
+
enable(deviceID: string, params: EsimEnableParams, options?: RequestOptions): APIPromise<void> {
|
|
64
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
65
|
+
return this._client.put(path`/devices/${deviceID}/esim`, {
|
|
66
|
+
body,
|
|
67
|
+
...options,
|
|
68
|
+
headers: buildHeaders([
|
|
69
|
+
{
|
|
70
|
+
Accept: '*/*',
|
|
71
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
72
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
73
|
+
: undefined),
|
|
74
|
+
},
|
|
75
|
+
options?.headers,
|
|
76
|
+
]),
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Deletes the eSIM subscription identified by the subId query parameter from the
|
|
82
|
+
* device.
|
|
83
|
+
*/
|
|
84
|
+
remove(deviceID: string, params: EsimRemoveParams, options?: RequestOptions): APIPromise<void> {
|
|
85
|
+
const { subId, 'X-Device-Display-ID': xDeviceDisplayID } = params;
|
|
86
|
+
return this._client.delete(path`/devices/${deviceID}/esim`, {
|
|
87
|
+
query: { subId },
|
|
88
|
+
...options,
|
|
89
|
+
headers: buildHeaders([
|
|
90
|
+
{
|
|
91
|
+
Accept: '*/*',
|
|
92
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
93
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
94
|
+
: undefined),
|
|
95
|
+
},
|
|
96
|
+
options?.headers,
|
|
97
|
+
]),
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Enables or disables data roaming for the device's eSIM based on the enabled flag
|
|
103
|
+
* in the request body.
|
|
104
|
+
*/
|
|
105
|
+
setRoaming(deviceID: string, params: EsimSetRoamingParams, options?: RequestOptions): APIPromise<void> {
|
|
106
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
107
|
+
return this._client.put(path`/devices/${deviceID}/esim/roaming`, {
|
|
108
|
+
body,
|
|
109
|
+
...options,
|
|
110
|
+
headers: buildHeaders([
|
|
111
|
+
{
|
|
112
|
+
Accept: '*/*',
|
|
113
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
114
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
115
|
+
: undefined),
|
|
116
|
+
},
|
|
117
|
+
options?.headers,
|
|
118
|
+
]),
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Returns the connectivity status of the device's eSIM subscriptions.
|
|
124
|
+
*/
|
|
125
|
+
status(
|
|
126
|
+
deviceID: string,
|
|
127
|
+
params: EsimStatusParams | null | undefined = {},
|
|
128
|
+
options?: RequestOptions,
|
|
129
|
+
): APIPromise<EsimStatusResponse | null> {
|
|
130
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
131
|
+
return this._client.get(path`/devices/${deviceID}/esim/status`, {
|
|
132
|
+
...options,
|
|
133
|
+
headers: buildHeaders([
|
|
134
|
+
{
|
|
135
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
136
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
137
|
+
: undefined),
|
|
138
|
+
},
|
|
139
|
+
options?.headers,
|
|
140
|
+
]),
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export type EsimListResponse = Array<EsimListResponse.EsimListResponseItem>;
|
|
146
|
+
|
|
147
|
+
export namespace EsimListResponse {
|
|
148
|
+
export interface EsimListResponseItem {
|
|
149
|
+
carrier: string;
|
|
150
|
+
|
|
151
|
+
displayName: string;
|
|
152
|
+
|
|
153
|
+
iccid: string;
|
|
154
|
+
|
|
155
|
+
isEmbedded: boolean;
|
|
156
|
+
|
|
157
|
+
slot: number;
|
|
158
|
+
|
|
159
|
+
subId: number;
|
|
160
|
+
|
|
161
|
+
type: string;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* A URL to the JSON Schema for this object.
|
|
165
|
+
*/
|
|
166
|
+
$schema?: string;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export interface EsimActivateResponse {
|
|
171
|
+
carrier: string;
|
|
172
|
+
|
|
173
|
+
displayName: string;
|
|
174
|
+
|
|
175
|
+
iccid: string;
|
|
176
|
+
|
|
177
|
+
isEmbedded: boolean;
|
|
178
|
+
|
|
179
|
+
slot: number;
|
|
180
|
+
|
|
181
|
+
subId: number;
|
|
182
|
+
|
|
183
|
+
type: string;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* A URL to the JSON Schema for this object.
|
|
187
|
+
*/
|
|
188
|
+
$schema?: string;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export type EsimStatusResponse = Array<EsimStatusResponse.EsimStatusResponseItem>;
|
|
192
|
+
|
|
193
|
+
export namespace EsimStatusResponse {
|
|
194
|
+
export interface EsimStatusResponseItem {
|
|
195
|
+
carrier: string;
|
|
196
|
+
|
|
197
|
+
dataRoamingEnabled: boolean;
|
|
198
|
+
|
|
199
|
+
dataState: string;
|
|
200
|
+
|
|
201
|
+
isRoaming: boolean;
|
|
202
|
+
|
|
203
|
+
mobileDataEnabled: boolean;
|
|
204
|
+
|
|
205
|
+
networkType: string;
|
|
206
|
+
|
|
207
|
+
operator: string;
|
|
208
|
+
|
|
209
|
+
phoneType: string;
|
|
210
|
+
|
|
211
|
+
simState: string;
|
|
212
|
+
|
|
213
|
+
subId: number;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export interface EsimListParams {
|
|
218
|
+
'X-Device-Display-ID'?: number;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export interface EsimActivateParams {
|
|
222
|
+
/**
|
|
223
|
+
* Body param
|
|
224
|
+
*/
|
|
225
|
+
enable: boolean;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Body param
|
|
229
|
+
*/
|
|
230
|
+
smDpAddr: string;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Body param: Optional carrier-issued confirmation code (the 4th LPA segment).
|
|
234
|
+
* Required only for plans whose SM-DP+ challenges the device for one. Requires
|
|
235
|
+
* matchingId — the LPA spec only interprets segment 4 when segment 3 is present.
|
|
236
|
+
*/
|
|
237
|
+
confirmationCode?: string;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Body param
|
|
241
|
+
*/
|
|
242
|
+
matchingId?: string;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Header param
|
|
246
|
+
*/
|
|
247
|
+
'X-Device-Display-ID'?: number;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export interface EsimEnableParams {
|
|
251
|
+
/**
|
|
252
|
+
* Body param
|
|
253
|
+
*/
|
|
254
|
+
subId: number;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Header param
|
|
258
|
+
*/
|
|
259
|
+
'X-Device-Display-ID'?: number;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export interface EsimRemoveParams {
|
|
263
|
+
/**
|
|
264
|
+
* Query param
|
|
265
|
+
*/
|
|
266
|
+
subId: number;
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Header param
|
|
270
|
+
*/
|
|
271
|
+
'X-Device-Display-ID'?: number;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
export interface EsimSetRoamingParams {
|
|
275
|
+
/**
|
|
276
|
+
* Body param
|
|
277
|
+
*/
|
|
278
|
+
enabled: boolean;
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Header param
|
|
282
|
+
*/
|
|
283
|
+
'X-Device-Display-ID'?: number;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export interface EsimStatusParams {
|
|
287
|
+
'X-Device-Display-ID'?: number;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
Esim.Apn = Apn;
|
|
291
|
+
|
|
292
|
+
export declare namespace Esim {
|
|
293
|
+
export {
|
|
294
|
+
type EsimListResponse as EsimListResponse,
|
|
295
|
+
type EsimActivateResponse as EsimActivateResponse,
|
|
296
|
+
type EsimStatusResponse as EsimStatusResponse,
|
|
297
|
+
type EsimListParams as EsimListParams,
|
|
298
|
+
type EsimActivateParams as EsimActivateParams,
|
|
299
|
+
type EsimEnableParams as EsimEnableParams,
|
|
300
|
+
type EsimRemoveParams as EsimRemoveParams,
|
|
301
|
+
type EsimSetRoamingParams as EsimSetRoamingParams,
|
|
302
|
+
type EsimStatusParams as EsimStatusParams,
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
export {
|
|
306
|
+
Apn as Apn,
|
|
307
|
+
type ApnListResponse as ApnListResponse,
|
|
308
|
+
type ApnListParams as ApnListParams,
|
|
309
|
+
type ApnSelectParams as ApnSelectParams,
|
|
310
|
+
type ApnSetParams as ApnSetParams,
|
|
311
|
+
};
|
|
312
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Apn,
|
|
5
|
+
type ApnListResponse,
|
|
6
|
+
type ApnListParams,
|
|
7
|
+
type ApnSelectParams,
|
|
8
|
+
type ApnSetParams,
|
|
9
|
+
} from './apn';
|
|
10
|
+
export {
|
|
11
|
+
Esim,
|
|
12
|
+
type EsimListResponse,
|
|
13
|
+
type EsimActivateResponse,
|
|
14
|
+
type EsimStatusResponse,
|
|
15
|
+
type EsimListParams,
|
|
16
|
+
type EsimActivateParams,
|
|
17
|
+
type EsimEnableParams,
|
|
18
|
+
type EsimRemoveParams,
|
|
19
|
+
type EsimSetRoamingParams,
|
|
20
|
+
type EsimStatusParams,
|
|
21
|
+
} from './esim';
|
|
@@ -1,208 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import { APIPromise } from '../../core/api-promise';
|
|
5
|
-
import { buildHeaders } from '../../internal/headers';
|
|
6
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
7
|
-
import { path } from '../../internal/utils/path';
|
|
8
|
-
|
|
9
|
-
export class Esim extends APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* List eSIM subscriptions
|
|
12
|
-
*/
|
|
13
|
-
list(
|
|
14
|
-
deviceID: string,
|
|
15
|
-
params: EsimListParams | null | undefined = {},
|
|
16
|
-
options?: RequestOptions,
|
|
17
|
-
): APIPromise<EsimListResponse | null> {
|
|
18
|
-
const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
19
|
-
return this._client.get(path`/devices/${deviceID}/esim`, {
|
|
20
|
-
...options,
|
|
21
|
-
headers: buildHeaders([
|
|
22
|
-
{
|
|
23
|
-
...(xDeviceDisplayID?.toString() != null ?
|
|
24
|
-
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
25
|
-
: undefined),
|
|
26
|
-
},
|
|
27
|
-
options?.headers,
|
|
28
|
-
]),
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Configure eSIM (download profile and/or enable subscription)
|
|
34
|
-
*/
|
|
35
|
-
activate(
|
|
36
|
-
deviceID: string,
|
|
37
|
-
params: EsimActivateParams,
|
|
38
|
-
options?: RequestOptions,
|
|
39
|
-
): APIPromise<EsimActivateResponse> {
|
|
40
|
-
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
41
|
-
return this._client.post(path`/devices/${deviceID}/esim`, {
|
|
42
|
-
body,
|
|
43
|
-
...options,
|
|
44
|
-
headers: buildHeaders([
|
|
45
|
-
{
|
|
46
|
-
...(xDeviceDisplayID?.toString() != null ?
|
|
47
|
-
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
48
|
-
: undefined),
|
|
49
|
-
},
|
|
50
|
-
options?.headers,
|
|
51
|
-
]),
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Enable an eSIM subscription
|
|
57
|
-
*/
|
|
58
|
-
enable(deviceID: string, params: EsimEnableParams, options?: RequestOptions): APIPromise<void> {
|
|
59
|
-
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
60
|
-
return this._client.put(path`/devices/${deviceID}/esim`, {
|
|
61
|
-
body,
|
|
62
|
-
...options,
|
|
63
|
-
headers: buildHeaders([
|
|
64
|
-
{
|
|
65
|
-
Accept: '*/*',
|
|
66
|
-
...(xDeviceDisplayID?.toString() != null ?
|
|
67
|
-
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
68
|
-
: undefined),
|
|
69
|
-
},
|
|
70
|
-
options?.headers,
|
|
71
|
-
]),
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Delete eSIM subscription
|
|
77
|
-
*/
|
|
78
|
-
remove(deviceID: string, params: EsimRemoveParams, options?: RequestOptions): APIPromise<void> {
|
|
79
|
-
const { subId, 'X-Device-Display-ID': xDeviceDisplayID } = params;
|
|
80
|
-
return this._client.delete(path`/devices/${deviceID}/esim`, {
|
|
81
|
-
query: { subId },
|
|
82
|
-
...options,
|
|
83
|
-
headers: buildHeaders([
|
|
84
|
-
{
|
|
85
|
-
Accept: '*/*',
|
|
86
|
-
...(xDeviceDisplayID?.toString() != null ?
|
|
87
|
-
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
88
|
-
: undefined),
|
|
89
|
-
},
|
|
90
|
-
options?.headers,
|
|
91
|
-
]),
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export type EsimListResponse = Array<EsimListResponse.EsimListResponseItem>;
|
|
97
|
-
|
|
98
|
-
export namespace EsimListResponse {
|
|
99
|
-
export interface EsimListResponseItem {
|
|
100
|
-
carrier: string;
|
|
101
|
-
|
|
102
|
-
displayName: string;
|
|
103
|
-
|
|
104
|
-
iccid: string;
|
|
105
|
-
|
|
106
|
-
isEmbedded: boolean;
|
|
107
|
-
|
|
108
|
-
slot: number;
|
|
109
|
-
|
|
110
|
-
subId: number;
|
|
111
|
-
|
|
112
|
-
type: string;
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* A URL to the JSON Schema for this object.
|
|
116
|
-
*/
|
|
117
|
-
$schema?: string;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export interface EsimActivateResponse {
|
|
122
|
-
carrier: string;
|
|
123
|
-
|
|
124
|
-
displayName: string;
|
|
125
|
-
|
|
126
|
-
iccid: string;
|
|
127
|
-
|
|
128
|
-
isEmbedded: boolean;
|
|
129
|
-
|
|
130
|
-
slot: number;
|
|
131
|
-
|
|
132
|
-
subId: number;
|
|
133
|
-
|
|
134
|
-
type: string;
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* A URL to the JSON Schema for this object.
|
|
138
|
-
*/
|
|
139
|
-
$schema?: string;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export interface EsimListParams {
|
|
143
|
-
'X-Device-Display-ID'?: number;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
export interface EsimActivateParams {
|
|
147
|
-
/**
|
|
148
|
-
* Body param
|
|
149
|
-
*/
|
|
150
|
-
enable: boolean;
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* Body param
|
|
154
|
-
*/
|
|
155
|
-
smDpAddr: string;
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* Body param: Optional carrier-issued confirmation code (the 4th LPA segment).
|
|
159
|
-
* Required only for plans whose SM-DP+ challenges the device for one. Requires
|
|
160
|
-
* matchingId — the LPA spec only interprets segment 4 when segment 3 is present.
|
|
161
|
-
*/
|
|
162
|
-
confirmationCode?: string;
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* Body param
|
|
166
|
-
*/
|
|
167
|
-
matchingId?: string;
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* Header param
|
|
171
|
-
*/
|
|
172
|
-
'X-Device-Display-ID'?: number;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
export interface EsimEnableParams {
|
|
176
|
-
/**
|
|
177
|
-
* Body param
|
|
178
|
-
*/
|
|
179
|
-
subId: number;
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* Header param
|
|
183
|
-
*/
|
|
184
|
-
'X-Device-Display-ID'?: number;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
export interface EsimRemoveParams {
|
|
188
|
-
/**
|
|
189
|
-
* Query param
|
|
190
|
-
*/
|
|
191
|
-
subId: number;
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* Header param
|
|
195
|
-
*/
|
|
196
|
-
'X-Device-Display-ID'?: number;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
export declare namespace Esim {
|
|
200
|
-
export {
|
|
201
|
-
type EsimListResponse as EsimListResponse,
|
|
202
|
-
type EsimActivateResponse as EsimActivateResponse,
|
|
203
|
-
type EsimListParams as EsimListParams,
|
|
204
|
-
type EsimActivateParams as EsimActivateParams,
|
|
205
|
-
type EsimEnableParams as EsimEnableParams,
|
|
206
|
-
type EsimRemoveParams as EsimRemoveParams,
|
|
207
|
-
};
|
|
208
|
-
}
|
|
3
|
+
export * from './esim/index';
|