@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,205 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Esims = void 0;
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const MessagesAPI = tslib_1.__importStar(require("./messages.js"));
|
|
8
|
+
const messages_1 = require("./messages.js");
|
|
9
|
+
const headers_1 = require("../../internal/headers.js");
|
|
10
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
11
|
+
class Esims extends resource_1.APIResource {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.messages = new MessagesAPI.Messages(this._client);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Purchases a physical eSIM from available inventory for the authenticated owner.
|
|
18
|
+
* Returns 409 when no stock is available, or 402 with a billing checkout URL when
|
|
19
|
+
* billing capacity is exhausted.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const esim = await client.esims.create();
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
create(body = {}, options) {
|
|
27
|
+
return this._client.post('/numbers/esims', { body, ...options });
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Retrieves a single physical eSIM.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* const esim = await client.esims.retrieve(
|
|
35
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
36
|
+
* );
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
retrieve(id, options) {
|
|
40
|
+
return this._client.get((0, path_1.path) `/numbers/esims/${id}`, options);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Updates the eSIM's self-reported msisdn and/or display name. Both fields are
|
|
44
|
+
* optional, but the request body itself is required. Omitting a field leaves it
|
|
45
|
+
* unchanged; setting it to null or an empty string clears it. `name` is capped at
|
|
46
|
+
* 15 characters. Available regardless of the eSIM's current status.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* const esim = await client.esims.update(
|
|
51
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
52
|
+
* );
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
update(id, body = {}, options) {
|
|
56
|
+
return this._client.patch((0, path_1.path) `/numbers/esims/${id}`, { body, ...options });
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Lists physical eSIMs owned by the authenticated owner.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```ts
|
|
63
|
+
* const esims = await client.esims.list();
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
list(query = {}, options) {
|
|
67
|
+
return this._client.get('/numbers/esims', { query, ...options });
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Removes a physical eSIM. Idempotent — returns 204 for a fresh removal or a
|
|
71
|
+
* replay of an already-removed eSIM. An eSIM currently installed on a device is
|
|
72
|
+
* uninstalled first, then removed. An eSIM in an intermediate install state
|
|
73
|
+
* returns 409 `operator_resolution_required` and requires manual resolution.
|
|
74
|
+
* Returns 404 if the eSIM doesn't exist or isn't owned by the caller.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```ts
|
|
78
|
+
* await client.esims.delete(
|
|
79
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
80
|
+
* );
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
delete(id, options) {
|
|
84
|
+
return this._client.delete((0, path_1.path) `/numbers/esims/${id}`, {
|
|
85
|
+
...options,
|
|
86
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Reports whether a free device is currently available, for pre-checking the
|
|
91
|
+
* import flow before upload. This is a hint only, not a reservation —
|
|
92
|
+
* `POST /esims/import` re-checks availability at submit time.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```ts
|
|
96
|
+
* const response = await client.esims.capacity();
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
capacity(options) {
|
|
100
|
+
return this._client.get('/numbers/esims/capacity', options);
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Checks for proof of payment for this eSIM's current rent and confirms it if
|
|
104
|
+
* found. If no proof is available yet, returns 200 with the eSIM unchanged rather
|
|
105
|
+
* than an error. Always returns the current eSIM state.
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* ```ts
|
|
109
|
+
* const response = await client.esims.confirmPayment(
|
|
110
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
111
|
+
* );
|
|
112
|
+
* ```
|
|
113
|
+
*/
|
|
114
|
+
confirmPayment(id, options) {
|
|
115
|
+
return this._client.post((0, path_1.path) `/numbers/esims/${id}/confirm-payment`, options);
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Registers a bring-your-own (BYO) eSIM activation code as owned inventory.
|
|
119
|
+
* Provide either `{ smdpAddress, matchingId?, confirmationCode? }` or
|
|
120
|
+
* `{ lpaCode }` — supplying both, or neither, returns 400. An optional `name` sets
|
|
121
|
+
* a display label on the created eSIM (up to 15 characters).
|
|
122
|
+
*
|
|
123
|
+
* Subject to per-owner and daily import limits, and disabled entirely unless BYO
|
|
124
|
+
* imports are enabled for this deployment (409 `byo_disabled`). Idempotent via
|
|
125
|
+
* `idempotencyKey`: replaying the same key with an identical request returns the
|
|
126
|
+
* original response; the same key with a different request returns 409
|
|
127
|
+
* `idempotency_conflict`.
|
|
128
|
+
*
|
|
129
|
+
* When rent-first billing is off (default), the import is free — 201 with the
|
|
130
|
+
* eSIM. Setting `autoInstall: true` additionally dispatches an install immediately
|
|
131
|
+
* after import (`deviceId` may only be set together with `autoInstall`): this
|
|
132
|
+
* returns 202 with `{esim, operationId, statusUrl}` when the install claim
|
|
133
|
+
* succeeds (poll `GET /esims/{id}/install-status`), or 201 with the eSIM plus
|
|
134
|
+
* `installDispatch: {ok: false, reason}` when the install could not be dispatched
|
|
135
|
+
* — the import itself still succeeds either way.
|
|
136
|
+
*
|
|
137
|
+
* When rent-first billing is on, import additionally requires available device
|
|
138
|
+
* capacity (409 `device_pool_empty`) and is subject to a per-owner
|
|
139
|
+
* awaiting-payment cap (409 `byo_awaiting_payment_cap`). On success the eSIM is
|
|
140
|
+
* created `awaiting_payment` and a checkout is started: 201 with
|
|
141
|
+
* `{esim, rentStatus, checkoutUrl}` when the checkout URL is ready immediately, or
|
|
142
|
+
* 202 with `checkoutUrl: null` otherwise — poll `GET /esims/{id}` until it's
|
|
143
|
+
* populated. Once payment is confirmed, install is triggered automatically.
|
|
144
|
+
*
|
|
145
|
+
* @example
|
|
146
|
+
* ```ts
|
|
147
|
+
* const response = await client.esims.import();
|
|
148
|
+
* ```
|
|
149
|
+
*/
|
|
150
|
+
import(body = {}, options) {
|
|
151
|
+
return this._client.post('/numbers/esims/import', { body, ...options });
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Installs the eSIM's activation code onto a device. `deviceId` is optional — omit
|
|
155
|
+
* it to use an available device from the pool. This call is asynchronous: it
|
|
156
|
+
* returns 202 with `{esim, operationId, statusUrl}` immediately, and the result is
|
|
157
|
+
* available by polling `GET /esims/{id}/install-status`. Retrying with the same
|
|
158
|
+
* request is safe if a response is lost.
|
|
159
|
+
*
|
|
160
|
+
* Returns 409 when the eSIM is not in the `owned` state, or when no device is
|
|
161
|
+
* currently available (see `reason`). When rent-first billing is enabled, a BYO
|
|
162
|
+
* eSIM whose rent isn't active returns 402 with `{esim, rentStatus, checkoutUrl}`
|
|
163
|
+
* instead.
|
|
164
|
+
*
|
|
165
|
+
* @example
|
|
166
|
+
* ```ts
|
|
167
|
+
* const response = await client.esims.install(
|
|
168
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
169
|
+
* );
|
|
170
|
+
* ```
|
|
171
|
+
*/
|
|
172
|
+
install(id, body = {}, options) {
|
|
173
|
+
return this._client.post((0, path_1.path) `/numbers/esims/${id}/install`, { body, ...options });
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Returns the eSIM's current install status, checking for a terminal outcome if an
|
|
177
|
+
* install is still in progress.
|
|
178
|
+
*
|
|
179
|
+
* @example
|
|
180
|
+
* ```ts
|
|
181
|
+
* const response = await client.esims.installStatus(
|
|
182
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
183
|
+
* );
|
|
184
|
+
* ```
|
|
185
|
+
*/
|
|
186
|
+
installStatus(id, options) {
|
|
187
|
+
return this._client.get((0, path_1.path) `/numbers/esims/${id}/install-status`, options);
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Returns a lightweight list (id, msisdn, carrierName, status, masked iccid) for
|
|
191
|
+
* use in a message filter dropdown. Unlike `GET /esims`, this includes all
|
|
192
|
+
* statuses, including retired eSIMs, and is not paginated.
|
|
193
|
+
*
|
|
194
|
+
* @example
|
|
195
|
+
* ```ts
|
|
196
|
+
* const response = await client.esims.selector();
|
|
197
|
+
* ```
|
|
198
|
+
*/
|
|
199
|
+
selector(options) {
|
|
200
|
+
return this._client.get('/numbers/esims/selector', options);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
exports.Esims = Esims;
|
|
204
|
+
Esims.Messages = messages_1.Messages;
|
|
205
|
+
//# sourceMappingURL=esims.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"esims.js","sourceRoot":"","sources":["../../src/resources/esims/esims.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,mEAA0C;AAC1C,4CAMoB;AAEpB,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAuN1E,CAAC;IArNC;;;;;;;;;OASG;IACH,MAAM,CACJ,OAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,EAAU,EACV,OAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,kBAAkB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,E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WAAI,EAAA,kBAAkB,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;CACF;AAxND,sBAwNC;AA+uBD,KAAK,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as MessagesAPI from "./messages.mjs";
|
|
4
|
+
import { Messages, } from "./messages.mjs";
|
|
5
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
6
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
7
|
+
export class Esims extends APIResource {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.messages = new MessagesAPI.Messages(this._client);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Purchases a physical eSIM from available inventory for the authenticated owner.
|
|
14
|
+
* Returns 409 when no stock is available, or 402 with a billing checkout URL when
|
|
15
|
+
* billing capacity is exhausted.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const esim = await client.esims.create();
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
create(body = {}, options) {
|
|
23
|
+
return this._client.post('/numbers/esims', { body, ...options });
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Retrieves a single physical eSIM.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const esim = await client.esims.retrieve(
|
|
31
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
32
|
+
* );
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
retrieve(id, options) {
|
|
36
|
+
return this._client.get(path `/numbers/esims/${id}`, options);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Updates the eSIM's self-reported msisdn and/or display name. Both fields are
|
|
40
|
+
* optional, but the request body itself is required. Omitting a field leaves it
|
|
41
|
+
* unchanged; setting it to null or an empty string clears it. `name` is capped at
|
|
42
|
+
* 15 characters. Available regardless of the eSIM's current status.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* const esim = await client.esims.update(
|
|
47
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
48
|
+
* );
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
update(id, body = {}, options) {
|
|
52
|
+
return this._client.patch(path `/numbers/esims/${id}`, { body, ...options });
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Lists physical eSIMs owned by the authenticated owner.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* const esims = await client.esims.list();
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
list(query = {}, options) {
|
|
63
|
+
return this._client.get('/numbers/esims', { query, ...options });
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Removes a physical eSIM. Idempotent — returns 204 for a fresh removal or a
|
|
67
|
+
* replay of an already-removed eSIM. An eSIM currently installed on a device is
|
|
68
|
+
* uninstalled first, then removed. An eSIM in an intermediate install state
|
|
69
|
+
* returns 409 `operator_resolution_required` and requires manual resolution.
|
|
70
|
+
* Returns 404 if the eSIM doesn't exist or isn't owned by the caller.
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ```ts
|
|
74
|
+
* await client.esims.delete(
|
|
75
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
76
|
+
* );
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
delete(id, options) {
|
|
80
|
+
return this._client.delete(path `/numbers/esims/${id}`, {
|
|
81
|
+
...options,
|
|
82
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Reports whether a free device is currently available, for pre-checking the
|
|
87
|
+
* import flow before upload. This is a hint only, not a reservation —
|
|
88
|
+
* `POST /esims/import` re-checks availability at submit time.
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* ```ts
|
|
92
|
+
* const response = await client.esims.capacity();
|
|
93
|
+
* ```
|
|
94
|
+
*/
|
|
95
|
+
capacity(options) {
|
|
96
|
+
return this._client.get('/numbers/esims/capacity', options);
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Checks for proof of payment for this eSIM's current rent and confirms it if
|
|
100
|
+
* found. If no proof is available yet, returns 200 with the eSIM unchanged rather
|
|
101
|
+
* than an error. Always returns the current eSIM state.
|
|
102
|
+
*
|
|
103
|
+
* @example
|
|
104
|
+
* ```ts
|
|
105
|
+
* const response = await client.esims.confirmPayment(
|
|
106
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
107
|
+
* );
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
confirmPayment(id, options) {
|
|
111
|
+
return this._client.post(path `/numbers/esims/${id}/confirm-payment`, options);
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Registers a bring-your-own (BYO) eSIM activation code as owned inventory.
|
|
115
|
+
* Provide either `{ smdpAddress, matchingId?, confirmationCode? }` or
|
|
116
|
+
* `{ lpaCode }` — supplying both, or neither, returns 400. An optional `name` sets
|
|
117
|
+
* a display label on the created eSIM (up to 15 characters).
|
|
118
|
+
*
|
|
119
|
+
* Subject to per-owner and daily import limits, and disabled entirely unless BYO
|
|
120
|
+
* imports are enabled for this deployment (409 `byo_disabled`). Idempotent via
|
|
121
|
+
* `idempotencyKey`: replaying the same key with an identical request returns the
|
|
122
|
+
* original response; the same key with a different request returns 409
|
|
123
|
+
* `idempotency_conflict`.
|
|
124
|
+
*
|
|
125
|
+
* When rent-first billing is off (default), the import is free — 201 with the
|
|
126
|
+
* eSIM. Setting `autoInstall: true` additionally dispatches an install immediately
|
|
127
|
+
* after import (`deviceId` may only be set together with `autoInstall`): this
|
|
128
|
+
* returns 202 with `{esim, operationId, statusUrl}` when the install claim
|
|
129
|
+
* succeeds (poll `GET /esims/{id}/install-status`), or 201 with the eSIM plus
|
|
130
|
+
* `installDispatch: {ok: false, reason}` when the install could not be dispatched
|
|
131
|
+
* — the import itself still succeeds either way.
|
|
132
|
+
*
|
|
133
|
+
* When rent-first billing is on, import additionally requires available device
|
|
134
|
+
* capacity (409 `device_pool_empty`) and is subject to a per-owner
|
|
135
|
+
* awaiting-payment cap (409 `byo_awaiting_payment_cap`). On success the eSIM is
|
|
136
|
+
* created `awaiting_payment` and a checkout is started: 201 with
|
|
137
|
+
* `{esim, rentStatus, checkoutUrl}` when the checkout URL is ready immediately, or
|
|
138
|
+
* 202 with `checkoutUrl: null` otherwise — poll `GET /esims/{id}` until it's
|
|
139
|
+
* populated. Once payment is confirmed, install is triggered automatically.
|
|
140
|
+
*
|
|
141
|
+
* @example
|
|
142
|
+
* ```ts
|
|
143
|
+
* const response = await client.esims.import();
|
|
144
|
+
* ```
|
|
145
|
+
*/
|
|
146
|
+
import(body = {}, options) {
|
|
147
|
+
return this._client.post('/numbers/esims/import', { body, ...options });
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Installs the eSIM's activation code onto a device. `deviceId` is optional — omit
|
|
151
|
+
* it to use an available device from the pool. This call is asynchronous: it
|
|
152
|
+
* returns 202 with `{esim, operationId, statusUrl}` immediately, and the result is
|
|
153
|
+
* available by polling `GET /esims/{id}/install-status`. Retrying with the same
|
|
154
|
+
* request is safe if a response is lost.
|
|
155
|
+
*
|
|
156
|
+
* Returns 409 when the eSIM is not in the `owned` state, or when no device is
|
|
157
|
+
* currently available (see `reason`). When rent-first billing is enabled, a BYO
|
|
158
|
+
* eSIM whose rent isn't active returns 402 with `{esim, rentStatus, checkoutUrl}`
|
|
159
|
+
* instead.
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* ```ts
|
|
163
|
+
* const response = await client.esims.install(
|
|
164
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
165
|
+
* );
|
|
166
|
+
* ```
|
|
167
|
+
*/
|
|
168
|
+
install(id, body = {}, options) {
|
|
169
|
+
return this._client.post(path `/numbers/esims/${id}/install`, { body, ...options });
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Returns the eSIM's current install status, checking for a terminal outcome if an
|
|
173
|
+
* install is still in progress.
|
|
174
|
+
*
|
|
175
|
+
* @example
|
|
176
|
+
* ```ts
|
|
177
|
+
* const response = await client.esims.installStatus(
|
|
178
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
179
|
+
* );
|
|
180
|
+
* ```
|
|
181
|
+
*/
|
|
182
|
+
installStatus(id, options) {
|
|
183
|
+
return this._client.get(path `/numbers/esims/${id}/install-status`, options);
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Returns a lightweight list (id, msisdn, carrierName, status, masked iccid) for
|
|
187
|
+
* use in a message filter dropdown. Unlike `GET /esims`, this includes all
|
|
188
|
+
* statuses, including retired eSIMs, and is not paginated.
|
|
189
|
+
*
|
|
190
|
+
* @example
|
|
191
|
+
* ```ts
|
|
192
|
+
* const response = await client.esims.selector();
|
|
193
|
+
* ```
|
|
194
|
+
*/
|
|
195
|
+
selector(options) {
|
|
196
|
+
return this._client.get('/numbers/esims/selector', options);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
Esims.Messages = Messages;
|
|
200
|
+
//# sourceMappingURL=esims.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"esims.mjs","sourceRoot":"","sources":["../../src/resources/esims/esims.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WA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CAAC;CACF;AA+uBD,KAAK,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Esims, type EsimCreateResponse, type EsimRetrieveResponse, type EsimUpdateResponse, type EsimListResponse, type EsimCapacityResponse, type EsimConfirmPaymentResponse, type EsimImportResponse, type EsimInstallResponse, type EsimInstallStatusResponse, type EsimSelectorResponse, type EsimCreateParams, type EsimUpdateParams, type EsimListParams, type EsimImportParams, type EsimInstallParams, } from "./esims.mjs";
|
|
2
|
+
export { Messages, type MessageListResponse, type MessageSendResponse, type MessageListParams, type MessageSendParams, } from "./messages.mjs";
|
|
3
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/esims/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,EACL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,0BAA0B,EAC/B,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,GACvB,oBAAgB;AACjB,OAAO,EACL,QAAQ,EACR,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB,uBAAmB"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Esims, type EsimCreateResponse, type EsimRetrieveResponse, type EsimUpdateResponse, type EsimListResponse, type EsimCapacityResponse, type EsimConfirmPaymentResponse, type EsimImportResponse, type EsimInstallResponse, type EsimInstallStatusResponse, type EsimSelectorResponse, type EsimCreateParams, type EsimUpdateParams, type EsimListParams, type EsimImportParams, type EsimInstallParams, } from "./esims.js";
|
|
2
|
+
export { Messages, type MessageListResponse, type MessageSendResponse, type MessageListParams, type MessageSendParams, } from "./messages.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/esims/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,EACL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,0BAA0B,EAC/B,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,GACvB,mBAAgB;AACjB,OAAO,EACL,QAAQ,EACR,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB,sBAAmB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Messages = exports.Esims = void 0;
|
|
5
|
+
var esims_1 = require("./esims.js");
|
|
6
|
+
Object.defineProperty(exports, "Esims", { enumerable: true, get: function () { return esims_1.Esims; } });
|
|
7
|
+
var messages_1 = require("./messages.js");
|
|
8
|
+
Object.defineProperty(exports, "Messages", { enumerable: true, get: function () { return messages_1.Messages; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/esims/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAiBiB;AAhBf,8FAAA,KAAK,OAAA;AAiBP,0CAMoB;AALlB,oGAAA,QAAQ,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/esims/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,KAAK,GAgBN,oBAAgB;AACjB,OAAO,EACL,QAAQ,GAKT,uBAAmB"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as Shared from "../shared.mjs";
|
|
3
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
|
+
export declare class Messages extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* List messages for one eSIM
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const messages = await client.esims.messages.list(
|
|
12
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
13
|
+
* );
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
list(id: string, query?: MessageListParams | null | undefined, options?: RequestOptions): APIPromise<MessageListResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Send an SMS through one eSIM
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const response = await client.esims.messages.send(
|
|
23
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
24
|
+
* { body: 'x', to: '+15551230001' },
|
|
25
|
+
* );
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
send(id: string, body: MessageSendParams, options?: RequestOptions): APIPromise<MessageSendResponse>;
|
|
29
|
+
}
|
|
30
|
+
export interface MessageListResponse {
|
|
31
|
+
data: MessageListResponse.Data;
|
|
32
|
+
}
|
|
33
|
+
export declare namespace MessageListResponse {
|
|
34
|
+
interface Data {
|
|
35
|
+
items: Array<Data.Item>;
|
|
36
|
+
pagination: Shared.Pagination;
|
|
37
|
+
}
|
|
38
|
+
namespace Data {
|
|
39
|
+
interface Item {
|
|
40
|
+
id: string;
|
|
41
|
+
body: string | null;
|
|
42
|
+
createdAt: string;
|
|
43
|
+
deliveryStatus: string | null;
|
|
44
|
+
detectedSender: string | null;
|
|
45
|
+
direction: 'inbound' | 'outbound';
|
|
46
|
+
esimId: string | null;
|
|
47
|
+
occurredAt: string;
|
|
48
|
+
peerKey: string | null;
|
|
49
|
+
peerNumber: string | null;
|
|
50
|
+
providerCode: string | null;
|
|
51
|
+
status: 'received' | 'queued' | 'claimed' | 'sending' | 'sent' | 'sent_unconfirmed' | 'delivered' | 'failed';
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
export interface MessageSendResponse {
|
|
56
|
+
data: MessageSendResponse.Data;
|
|
57
|
+
}
|
|
58
|
+
export declare namespace MessageSendResponse {
|
|
59
|
+
interface Data {
|
|
60
|
+
id: string;
|
|
61
|
+
body: string | null;
|
|
62
|
+
createdAt: string;
|
|
63
|
+
deliveryStatus: string | null;
|
|
64
|
+
detectedSender: string | null;
|
|
65
|
+
direction: 'inbound' | 'outbound';
|
|
66
|
+
esimId: string | null;
|
|
67
|
+
occurredAt: string;
|
|
68
|
+
peerKey: string | null;
|
|
69
|
+
peerNumber: string | null;
|
|
70
|
+
providerCode: string | null;
|
|
71
|
+
status: 'received' | 'queued' | 'claimed' | 'sending' | 'sent' | 'sent_unconfirmed' | 'delivered' | 'failed';
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
export interface MessageListParams {
|
|
75
|
+
direction?: 'all' | 'inbound' | 'outbound';
|
|
76
|
+
numberId?: string;
|
|
77
|
+
page?: number;
|
|
78
|
+
pageSize?: number;
|
|
79
|
+
peerKey?: string;
|
|
80
|
+
peerNumber?: string;
|
|
81
|
+
status?: 'all' | 'received' | 'queued' | 'claimed' | 'sending' | 'sent' | 'sent_unconfirmed' | 'delivered' | 'failed';
|
|
82
|
+
}
|
|
83
|
+
export interface MessageSendParams {
|
|
84
|
+
/**
|
|
85
|
+
* SMS body text (max 320 chars — smaller than the admin tier's cap; see the
|
|
86
|
+
* schema's own doc comment for why)
|
|
87
|
+
*/
|
|
88
|
+
body: string;
|
|
89
|
+
/**
|
|
90
|
+
* Recipient phone number — normalized to E.164 (spaces/dashes/dots stripped);
|
|
91
|
+
* rejected with 400 if it doesn't validate as E.164 afterward.
|
|
92
|
+
*/
|
|
93
|
+
to: string;
|
|
94
|
+
/**
|
|
95
|
+
* Client-supplied idempotency key, scoped to (owner, esimId, key). Replaying the
|
|
96
|
+
* same key + identical payload returns the original send; the same key with a
|
|
97
|
+
* DIFFERENT payload is a 409 conflict.
|
|
98
|
+
*/
|
|
99
|
+
clientRequestId?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Wait for physedge to confirm carrier delivery before completing the send (adds
|
|
102
|
+
* executor-side latency, never on this request — sends are always async/202).
|
|
103
|
+
* Defaults to false for the public tier (opt-in, unlike the admin tier's
|
|
104
|
+
* default-true).
|
|
105
|
+
*/
|
|
106
|
+
deliveryReport?: boolean;
|
|
107
|
+
}
|
|
108
|
+
export declare namespace Messages {
|
|
109
|
+
export { type MessageListResponse as MessageListResponse, type MessageSendResponse as MessageSendResponse, type MessageListParams as MessageListParams, type MessageSendParams as MessageSendParams, };
|
|
110
|
+
}
|
|
111
|
+
//# sourceMappingURL=messages.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.d.mts","sourceRoot":"","sources":["../../src/resources/esims/messages.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;OASG;IACH,IAAI,C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