@mobilerun/sdk 6.0.1 → 6.1.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 +16 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +307 -0
- package/resources/agents/agents.d.mts.map +1 -0
- package/resources/agents/agents.d.ts +307 -0
- package/resources/agents/agents.d.ts.map +1 -0
- package/resources/agents/agents.js +56 -0
- package/resources/agents/agents.js.map +1 -0
- package/resources/agents/agents.mjs +51 -0
- package/resources/agents/agents.mjs.map +1 -0
- package/resources/agents/conversations.d.mts +110 -0
- package/resources/agents/conversations.d.mts.map +1 -0
- package/resources/agents/conversations.d.ts +110 -0
- package/resources/agents/conversations.d.ts.map +1 -0
- package/resources/agents/conversations.js +24 -0
- package/resources/agents/conversations.js.map +1 -0
- package/resources/agents/conversations.mjs +20 -0
- package/resources/agents/conversations.mjs.map +1 -0
- package/resources/agents/files.d.mts +64 -0
- package/resources/agents/files.d.mts.map +1 -0
- package/resources/agents/files.d.ts +64 -0
- package/resources/agents/files.d.ts.map +1 -0
- package/resources/agents/files.js +16 -0
- package/resources/agents/files.js.map +1 -0
- package/resources/agents/files.mjs +12 -0
- package/resources/agents/files.mjs.map +1 -0
- package/resources/agents/index.d.mts +7 -0
- package/resources/agents/index.d.mts.map +1 -0
- package/resources/agents/index.d.ts +7 -0
- package/resources/agents/index.d.ts.map +1 -0
- package/resources/agents/index.js +17 -0
- package/resources/agents/index.js.map +1 -0
- package/resources/agents/index.mjs +8 -0
- package/resources/agents/index.mjs.map +1 -0
- package/resources/agents/profile.d.mts +156 -0
- package/resources/agents/profile.d.mts.map +1 -0
- package/resources/agents/profile.d.ts +156 -0
- package/resources/agents/profile.d.ts.map +1 -0
- package/resources/agents/profile.js +19 -0
- package/resources/agents/profile.js.map +1 -0
- package/resources/agents/profile.mjs +15 -0
- package/resources/agents/profile.mjs.map +1 -0
- package/resources/agents/requests.d.mts +295 -0
- package/resources/agents/requests.d.mts.map +1 -0
- package/resources/agents/requests.d.ts +295 -0
- package/resources/agents/requests.d.ts.map +1 -0
- package/resources/agents/requests.js +42 -0
- package/resources/agents/requests.js.map +1 -0
- package/resources/agents/requests.mjs +38 -0
- package/resources/agents/requests.mjs.map +1 -0
- package/resources/agents/routines.d.mts +95 -0
- package/resources/agents/routines.d.mts.map +1 -0
- package/resources/agents/routines.d.ts +95 -0
- package/resources/agents/routines.d.ts.map +1 -0
- package/resources/agents/routines.js +26 -0
- package/resources/agents/routines.js.map +1 -0
- package/resources/agents/routines.mjs +22 -0
- package/resources/agents/routines.mjs.map +1 -0
- package/resources/agents.d.mts +2 -0
- package/resources/agents.d.mts.map +1 -0
- package/resources/agents.d.ts +2 -0
- package/resources/agents.d.ts.map +1 -0
- package/resources/agents.js +6 -0
- package/resources/agents.js.map +1 -0
- package/resources/agents.mjs +3 -0
- package/resources/agents.mjs.map +1 -0
- package/resources/assistant/conversations.d.mts +115 -38
- package/resources/assistant/conversations.d.mts.map +1 -1
- package/resources/assistant/conversations.d.ts +115 -38
- package/resources/assistant/conversations.d.ts.map +1 -1
- package/resources/assistant/conversations.js +20 -19
- package/resources/assistant/conversations.js.map +1 -1
- package/resources/assistant/conversations.mjs +20 -19
- package/resources/assistant/conversations.mjs.map +1 -1
- package/resources/connect/connect.d.mts +2 -2
- package/resources/connect/connect.d.mts.map +1 -1
- package/resources/connect/connect.d.ts +2 -2
- package/resources/connect/connect.d.ts.map +1 -1
- package/resources/connect/connect.js.map +1 -1
- package/resources/connect/connect.mjs.map +1 -1
- package/resources/connect/index.d.mts +1 -1
- package/resources/connect/index.d.mts.map +1 -1
- package/resources/connect/index.d.ts +1 -1
- package/resources/connect/index.d.ts.map +1 -1
- package/resources/connect/index.js.map +1 -1
- package/resources/connect/index.mjs.map +1 -1
- package/resources/connect/proxies.d.mts +22 -1
- package/resources/connect/proxies.d.mts.map +1 -1
- package/resources/connect/proxies.d.ts +22 -1
- package/resources/connect/proxies.d.ts.map +1 -1
- package/resources/connect/proxies.js +8 -0
- package/resources/connect/proxies.js.map +1 -1
- package/resources/connect/proxies.mjs +8 -0
- package/resources/connect/proxies.mjs.map +1 -1
- package/resources/credentials/credentials.d.mts +20 -0
- package/resources/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/credentials.d.ts +20 -0
- package/resources/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/credentials.js +4 -0
- package/resources/credentials/credentials.js.map +1 -1
- package/resources/credentials/credentials.mjs +4 -0
- package/resources/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/index.d.mts +1 -0
- package/resources/credentials/index.d.mts.map +1 -1
- package/resources/credentials/index.d.ts +1 -0
- package/resources/credentials/index.d.ts.map +1 -1
- package/resources/credentials/index.js +5 -3
- package/resources/credentials/index.js.map +1 -1
- package/resources/credentials/index.mjs +1 -0
- package/resources/credentials/index.mjs.map +1 -1
- package/resources/credentials/onepassword/index.d.mts +3 -0
- package/resources/credentials/onepassword/index.d.mts.map +1 -0
- package/resources/credentials/onepassword/index.d.ts +3 -0
- package/resources/credentials/onepassword/index.d.ts.map +1 -0
- package/resources/credentials/onepassword/index.js +9 -0
- package/resources/credentials/onepassword/index.js.map +1 -0
- package/resources/credentials/onepassword/index.mjs +4 -0
- package/resources/credentials/onepassword/index.mjs.map +1 -0
- package/resources/credentials/onepassword/onepassword.d.mts +65 -0
- package/resources/credentials/onepassword/onepassword.d.mts.map +1 -0
- package/resources/credentials/onepassword/onepassword.d.ts +65 -0
- package/resources/credentials/onepassword/onepassword.d.ts.map +1 -0
- package/resources/credentials/onepassword/onepassword.js +35 -0
- package/resources/credentials/onepassword/onepassword.js.map +1 -0
- package/resources/credentials/onepassword/onepassword.mjs +30 -0
- package/resources/credentials/onepassword/onepassword.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults/index.d.mts +3 -0
- package/resources/credentials/onepassword/vaults/index.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults/index.d.ts +3 -0
- package/resources/credentials/onepassword/vaults/index.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults/index.js +9 -0
- package/resources/credentials/onepassword/vaults/index.js.map +1 -0
- package/resources/credentials/onepassword/vaults/index.mjs +4 -0
- package/resources/credentials/onepassword/vaults/index.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults/items/fields.d.mts +27 -0
- package/resources/credentials/onepassword/vaults/items/fields.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults/items/fields.d.ts +27 -0
- package/resources/credentials/onepassword/vaults/items/fields.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults/items/fields.js +17 -0
- package/resources/credentials/onepassword/vaults/items/fields.js.map +1 -0
- package/resources/credentials/onepassword/vaults/items/fields.mjs +13 -0
- package/resources/credentials/onepassword/vaults/items/fields.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults/items/index.d.mts +3 -0
- package/resources/credentials/onepassword/vaults/items/index.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults/items/index.d.ts +3 -0
- package/resources/credentials/onepassword/vaults/items/index.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults/items/index.js +9 -0
- package/resources/credentials/onepassword/vaults/items/index.js.map +1 -0
- package/resources/credentials/onepassword/vaults/items/index.mjs +4 -0
- package/resources/credentials/onepassword/vaults/items/index.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults/items/items.d.mts +34 -0
- package/resources/credentials/onepassword/vaults/items/items.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults/items/items.d.ts +34 -0
- package/resources/credentials/onepassword/vaults/items/items.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults/items/items.js +24 -0
- package/resources/credentials/onepassword/vaults/items/items.js.map +1 -0
- package/resources/credentials/onepassword/vaults/items/items.mjs +19 -0
- package/resources/credentials/onepassword/vaults/items/items.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults/items.d.mts +2 -0
- package/resources/credentials/onepassword/vaults/items.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults/items.d.ts +2 -0
- package/resources/credentials/onepassword/vaults/items.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults/items.js +6 -0
- package/resources/credentials/onepassword/vaults/items.js.map +1 -0
- package/resources/credentials/onepassword/vaults/items.mjs +3 -0
- package/resources/credentials/onepassword/vaults/items.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults/vaults.d.mts +10 -0
- package/resources/credentials/onepassword/vaults/vaults.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults/vaults.d.ts +10 -0
- package/resources/credentials/onepassword/vaults/vaults.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults/vaults.js +17 -0
- package/resources/credentials/onepassword/vaults/vaults.js.map +1 -0
- package/resources/credentials/onepassword/vaults/vaults.mjs +12 -0
- package/resources/credentials/onepassword/vaults/vaults.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults.d.mts +2 -0
- package/resources/credentials/onepassword/vaults.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults.d.ts +2 -0
- package/resources/credentials/onepassword/vaults.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults.js +6 -0
- package/resources/credentials/onepassword/vaults.js.map +1 -0
- package/resources/credentials/onepassword/vaults.mjs +3 -0
- package/resources/credentials/onepassword/vaults.mjs.map +1 -0
- package/resources/credentials/onepassword.d.mts +2 -0
- package/resources/credentials/onepassword.d.mts.map +1 -0
- package/resources/credentials/onepassword.d.ts +2 -0
- package/resources/credentials/onepassword.d.ts.map +1 -0
- package/resources/credentials/onepassword.js +6 -0
- package/resources/credentials/onepassword.js.map +1 -0
- package/resources/credentials/onepassword.mjs +3 -0
- package/resources/credentials/onepassword.mjs.map +1 -0
- package/resources/credentials/packages/credentials/credentials.d.mts +32 -32
- package/resources/credentials/packages/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.d.ts +32 -32
- package/resources/credentials/packages/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.js +0 -8
- package/resources/credentials/packages/credentials/credentials.js.map +1 -1
- package/resources/credentials/packages/credentials/credentials.mjs +0 -8
- package/resources/credentials/packages/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.mts +48 -0
- package/resources/credentials/packages/credentials/fields.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.ts +48 -0
- package/resources/credentials/packages/credentials/fields.d.ts.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 -1
- package/resources/credentials/packages/index.d.mts.map +1 -1
- package/resources/credentials/packages/index.d.ts +2 -1
- package/resources/credentials/packages/index.d.ts.map +1 -1
- package/resources/credentials/packages/index.js +3 -1
- package/resources/credentials/packages/index.js.map +1 -1
- package/resources/credentials/packages/index.mjs +1 -0
- package/resources/credentials/packages/index.mjs.map +1 -1
- package/resources/credentials/packages/links.d.mts +65 -0
- package/resources/credentials/packages/links.d.mts.map +1 -0
- package/resources/credentials/packages/links.d.ts +65 -0
- package/resources/credentials/packages/links.d.ts.map +1 -0
- package/resources/credentials/packages/links.js +16 -0
- package/resources/credentials/packages/links.js.map +1 -0
- package/resources/credentials/packages/links.mjs +12 -0
- package/resources/credentials/packages/links.mjs.map +1 -0
- package/resources/credentials/packages/packages.d.mts +22 -2
- package/resources/credentials/packages/packages.d.mts.map +1 -1
- package/resources/credentials/packages/packages.d.ts +22 -2
- package/resources/credentials/packages/packages.d.ts.map +1 -1
- package/resources/credentials/packages/packages.js +4 -0
- package/resources/credentials/packages/packages.js.map +1 -1
- package/resources/credentials/packages/packages.mjs +4 -0
- package/resources/credentials/packages/packages.mjs.map +1 -1
- package/resources/devices/actions.d.mts +3 -4
- package/resources/devices/actions.d.mts.map +1 -1
- package/resources/devices/actions.d.ts +3 -4
- package/resources/devices/actions.d.ts.map +1 -1
- package/resources/devices/actions.js +3 -4
- package/resources/devices/actions.js.map +1 -1
- package/resources/devices/actions.mjs +3 -4
- package/resources/devices/actions.mjs.map +1 -1
- package/resources/devices/apps.d.mts +2 -2
- package/resources/devices/apps.d.ts +2 -2
- package/resources/devices/devices.d.mts +52 -28
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +52 -28
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +31 -19
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +31 -19
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/index.d.mts +2 -0
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +2 -0
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +5 -1
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +2 -0
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/keyboard.d.mts +1 -1
- package/resources/devices/keyboard.d.ts +1 -1
- package/resources/devices/language.d.mts +6 -4
- package/resources/devices/language.d.mts.map +1 -1
- package/resources/devices/language.d.ts +6 -4
- package/resources/devices/language.d.ts.map +1 -1
- package/resources/devices/language.js +3 -2
- package/resources/devices/language.js.map +1 -1
- package/resources/devices/language.mjs +3 -2
- package/resources/devices/language.mjs.map +1 -1
- package/resources/devices/number-bindings.d.mts +40 -0
- package/resources/devices/number-bindings.d.mts.map +1 -0
- package/resources/devices/number-bindings.d.ts +40 -0
- package/resources/devices/number-bindings.d.ts.map +1 -0
- package/resources/devices/number-bindings.js +15 -0
- package/resources/devices/number-bindings.js.map +1 -0
- package/resources/devices/number-bindings.mjs +11 -0
- package/resources/devices/number-bindings.mjs.map +1 -0
- package/resources/devices/number.d.mts +141 -0
- package/resources/devices/number.d.mts.map +1 -0
- package/resources/devices/number.d.ts +141 -0
- package/resources/devices/number.d.ts.map +1 -0
- package/resources/devices/number.js +68 -0
- package/resources/devices/number.js.map +1 -0
- package/resources/devices/number.mjs +64 -0
- package/resources/devices/number.mjs.map +1 -0
- package/resources/devices/state.d.mts +1 -0
- package/resources/devices/state.d.mts.map +1 -1
- package/resources/devices/state.d.ts +1 -0
- package/resources/devices/state.d.ts.map +1 -1
- package/resources/files.d.mts +13 -7
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +13 -7
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +9 -7
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +9 -7
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/mailboxes/messages.d.mts +13 -0
- package/resources/mailboxes/messages.d.mts.map +1 -1
- package/resources/mailboxes/messages.d.ts +13 -0
- package/resources/mailboxes/messages.d.ts.map +1 -1
- package/resources/mailboxes/messages.js +2 -2
- package/resources/mailboxes/messages.js.map +1 -1
- package/resources/mailboxes/messages.mjs +2 -2
- package/resources/mailboxes/messages.mjs.map +1 -1
- package/resources/messages/conversations.d.mts +6 -0
- package/resources/messages/conversations.d.mts.map +1 -1
- package/resources/messages/conversations.d.ts +6 -0
- package/resources/messages/conversations.d.ts.map +1 -1
- package/resources/messages/messages.d.mts +16 -0
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +16 -0
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/numbers/messages.d.mts +17 -2
- package/resources/numbers/messages.d.mts.map +1 -1
- package/resources/numbers/messages.d.ts +17 -2
- package/resources/numbers/messages.d.ts.map +1 -1
- package/resources/numbers/messages.js +2 -1
- package/resources/numbers/messages.js.map +1 -1
- package/resources/numbers/messages.mjs +2 -1
- package/resources/numbers/messages.mjs.map +1 -1
- package/resources/numbers/numbers.d.mts +48 -0
- package/resources/numbers/numbers.d.mts.map +1 -1
- package/resources/numbers/numbers.d.ts +48 -0
- package/resources/numbers/numbers.d.ts.map +1 -1
- package/resources/numbers/numbers.js.map +1 -1
- package/resources/numbers/numbers.mjs.map +1 -1
- package/resources/tasks/tasks.d.mts +28 -7
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +28 -7
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/workflows/action-catalog.d.mts +56 -8
- package/resources/workflows/action-catalog.d.mts.map +1 -1
- package/resources/workflows/action-catalog.d.ts +56 -8
- package/resources/workflows/action-catalog.d.ts.map +1 -1
- package/resources/workflows/action-catalog.js +7 -5
- package/resources/workflows/action-catalog.js.map +1 -1
- package/resources/workflows/action-catalog.mjs +7 -5
- package/resources/workflows/action-catalog.mjs.map +1 -1
- package/resources/workflows/actions/actions.d.mts +22 -10
- package/resources/workflows/actions/actions.d.mts.map +1 -1
- package/resources/workflows/actions/actions.d.ts +22 -10
- package/resources/workflows/actions/actions.d.ts.map +1 -1
- package/resources/workflows/actions/actions.js +7 -5
- package/resources/workflows/actions/actions.js.map +1 -1
- package/resources/workflows/actions/actions.mjs +7 -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 +1 -1
- package/resources/workflows/actions/services.d.mts.map +1 -1
- package/resources/workflows/actions/services.d.ts +1 -1
- package/resources/workflows/actions/services.d.ts.map +1 -1
- package/resources/workflows/events.d.mts +25 -3
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +25 -3
- package/resources/workflows/events.d.ts.map +1 -1
- package/resources/workflows/executions/executions.d.mts +16 -0
- package/resources/workflows/executions/executions.d.mts.map +1 -1
- package/resources/workflows/executions/executions.d.ts +16 -0
- package/resources/workflows/executions/executions.d.ts.map +1 -1
- package/resources/workflows/executions/executions.js.map +1 -1
- package/resources/workflows/executions/executions.mjs.map +1 -1
- package/resources/workflows/flows/flows.d.mts +547 -102
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +547 -102
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +15 -2
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +15 -2
- package/resources/workflows/flows/flows.mjs.map +1 -1
- package/resources/workflows/flows/index.d.mts +2 -1
- package/resources/workflows/flows/index.d.mts.map +1 -1
- package/resources/workflows/flows/index.d.ts +2 -1
- package/resources/workflows/flows/index.d.ts.map +1 -1
- package/resources/workflows/flows/index.js +3 -1
- package/resources/workflows/flows/index.js.map +1 -1
- package/resources/workflows/flows/index.mjs +1 -0
- package/resources/workflows/flows/index.mjs.map +1 -1
- package/resources/workflows/flows/state.d.mts +65 -0
- package/resources/workflows/flows/state.d.mts.map +1 -0
- package/resources/workflows/flows/state.d.ts +65 -0
- package/resources/workflows/flows/state.d.ts.map +1 -0
- package/resources/workflows/flows/state.js +33 -0
- package/resources/workflows/flows/state.js.map +1 -0
- package/resources/workflows/flows/state.mjs +29 -0
- package/resources/workflows/flows/state.mjs.map +1 -0
- package/resources/workflows/index.d.mts +3 -3
- package/resources/workflows/index.d.mts.map +1 -1
- package/resources/workflows/index.d.ts +3 -3
- package/resources/workflows/index.d.ts.map +1 -1
- package/resources/workflows/index.js.map +1 -1
- package/resources/workflows/index.mjs.map +1 -1
- package/resources/workflows/triggers.d.mts +40 -5
- package/resources/workflows/triggers.d.mts.map +1 -1
- package/resources/workflows/triggers.d.ts +40 -5
- package/resources/workflows/triggers.d.ts.map +1 -1
- package/resources/workflows/triggers.js +12 -3
- package/resources/workflows/triggers.js.map +1 -1
- package/resources/workflows/triggers.mjs +12 -3
- package/resources/workflows/triggers.mjs.map +1 -1
- package/resources/workflows/workflows.d.mts +6 -6
- package/resources/workflows/workflows.d.mts.map +1 -1
- package/resources/workflows/workflows.d.ts +6 -6
- package/resources/workflows/workflows.d.ts.map +1 -1
- package/resources/workflows/workflows.js.map +1 -1
- package/resources/workflows/workflows.mjs.map +1 -1
- package/src/client.ts +17 -0
- package/src/resources/agents/agents.ts +475 -0
- package/src/resources/agents/conversations.ts +205 -0
- package/src/resources/agents/files.ts +105 -0
- package/src/resources/agents/index.ts +34 -0
- package/src/resources/agents/profile.ts +225 -0
- package/src/resources/agents/requests.ts +495 -0
- package/src/resources/agents/routines.ts +156 -0
- package/src/resources/agents.ts +3 -0
- package/src/resources/assistant/conversations.ts +148 -39
- package/src/resources/connect/connect.ts +2 -0
- package/src/resources/connect/index.ts +1 -0
- package/src/resources/connect/proxies.ts +27 -0
- package/src/resources/credentials/credentials.ts +51 -0
- package/src/resources/credentials/index.ts +7 -0
- package/src/resources/credentials/onepassword/index.ts +10 -0
- package/src/resources/credentials/onepassword/onepassword.ts +101 -0
- package/src/resources/credentials/onepassword/vaults/index.ts +4 -0
- package/src/resources/credentials/onepassword/vaults/items/fields.ts +40 -0
- package/src/resources/credentials/onepassword/vaults/items/index.ts +4 -0
- package/src/resources/credentials/onepassword/vaults/items/items.ts +55 -0
- package/src/resources/credentials/onepassword/vaults/items.ts +3 -0
- package/src/resources/credentials/onepassword/vaults/vaults.ts +15 -0
- package/src/resources/credentials/onepassword/vaults.ts +3 -0
- package/src/resources/credentials/onepassword.ts +3 -0
- package/src/resources/credentials/packages/credentials/credentials.ts +58 -55
- package/src/resources/credentials/packages/credentials/fields.ts +99 -0
- package/src/resources/credentials/packages/credentials/index.ts +0 -2
- package/src/resources/credentials/packages/index.ts +1 -2
- package/src/resources/credentials/packages/links.ts +122 -0
- package/src/resources/credentials/packages/packages.ts +43 -4
- package/src/resources/devices/actions.ts +3 -4
- package/src/resources/devices/apps.ts +2 -2
- package/src/resources/devices/devices.ts +86 -37
- package/src/resources/devices/index.ts +14 -0
- package/src/resources/devices/keyboard.ts +1 -1
- package/src/resources/devices/language.ts +6 -4
- package/src/resources/devices/number-bindings.ts +62 -0
- package/src/resources/devices/number.ts +261 -0
- package/src/resources/devices/state.ts +2 -0
- package/src/resources/files.ts +17 -7
- package/src/resources/index.ts +7 -0
- package/src/resources/mailboxes/messages.ts +17 -2
- package/src/resources/messages/conversations.ts +6 -0
- package/src/resources/messages/messages.ts +16 -0
- package/src/resources/numbers/messages.ts +17 -2
- package/src/resources/numbers/numbers.ts +64 -0
- package/src/resources/tasks/tasks.ts +30 -7
- package/src/resources/workflows/action-catalog.ts +69 -8
- package/src/resources/workflows/actions/actions.ts +29 -10
- package/src/resources/workflows/actions/index.ts +1 -0
- package/src/resources/workflows/actions/services.ts +1 -1
- package/src/resources/workflows/events.ts +32 -2
- package/src/resources/workflows/executions/executions.ts +26 -0
- package/src/resources/workflows/flows/flows.ts +707 -97
- package/src/resources/workflows/flows/index.ts +10 -0
- package/src/resources/workflows/flows/state.ts +103 -0
- package/src/resources/workflows/index.ts +4 -0
- package/src/resources/workflows/triggers.ts +34 -5
- package/src/resources/workflows/workflows.ts +8 -0
- 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
|
@@ -50,6 +50,22 @@ import * as LanguageAPI from './language';
|
|
|
50
50
|
import { Language, LanguageGetParams, LanguageGetResponse, LanguageSetParams } from './language';
|
|
51
51
|
import * as LocationAPI from './location';
|
|
52
52
|
import { Location, LocationGetParams, LocationResetParams, LocationSetParams } from './location';
|
|
53
|
+
import * as NumberAPI from './number';
|
|
54
|
+
import {
|
|
55
|
+
Number,
|
|
56
|
+
NumberBindParams,
|
|
57
|
+
NumberBindResponse,
|
|
58
|
+
NumberRetrieveParams,
|
|
59
|
+
NumberRetrieveResponse,
|
|
60
|
+
NumberUnbindParams,
|
|
61
|
+
NumberUnbindResponse,
|
|
62
|
+
} from './number';
|
|
63
|
+
import * as NumberBindingsAPI from './number-bindings';
|
|
64
|
+
import {
|
|
65
|
+
NumberBindingListCandidatesResponse,
|
|
66
|
+
NumberBindingListResponse,
|
|
67
|
+
NumberBindings,
|
|
68
|
+
} from './number-bindings';
|
|
53
69
|
import * as PackagesAPI from './packages';
|
|
54
70
|
import { PackageListParams, PackageListResponse, Packages } from './packages';
|
|
55
71
|
import * as ProfileAPI from './profile';
|
|
@@ -155,6 +171,8 @@ export class Devices extends APIResource {
|
|
|
155
171
|
kiosk: KioskAPI.Kiosk = new KioskAPI.Kiosk(this._client);
|
|
156
172
|
recordings: RecordingsAPI.Recordings = new RecordingsAPI.Recordings(this._client);
|
|
157
173
|
trafficSessions: TrafficSessionsAPI.TrafficSessions = new TrafficSessionsAPI.TrafficSessions(this._client);
|
|
174
|
+
number: NumberAPI.Number = new NumberAPI.Number(this._client);
|
|
175
|
+
numberBindings: NumberBindingsAPI.NumberBindings = new NumberBindingsAPI.NumberBindings(this._client);
|
|
158
176
|
|
|
159
177
|
/**
|
|
160
178
|
* Requests a new device from the specification in the request body. Optional query
|
|
@@ -163,9 +181,9 @@ export class Devices extends APIResource {
|
|
|
163
181
|
* token.
|
|
164
182
|
*/
|
|
165
183
|
create(params: DeviceCreateParams, options?: RequestOptions): APIPromise<DeviceCreateResponse> {
|
|
166
|
-
const { billing, query_country, deviceType, profileId, ...body } = params;
|
|
184
|
+
const { billing, query_country, deviceType, profileId, template, ...body } = params;
|
|
167
185
|
return this._client.post('/devices', {
|
|
168
|
-
query: { billing, country: query_country, deviceType, profileId },
|
|
186
|
+
query: { billing, country: query_country, deviceType, profileId, template },
|
|
169
187
|
body,
|
|
170
188
|
...options,
|
|
171
189
|
});
|
|
@@ -231,7 +249,10 @@ export class Devices extends APIResource {
|
|
|
231
249
|
|
|
232
250
|
/**
|
|
233
251
|
* Triggers a reboot of the device. The device transitions through its reboot
|
|
234
|
-
* lifecycle and becomes ready again once the restart completes.
|
|
252
|
+
* lifecycle and becomes ready again once the restart completes. Only devices whose
|
|
253
|
+
* capabilities report `reboot=true` can be rebooted. Personal (BYOD) devices
|
|
254
|
+
* cannot be rebooted remotely: the request is refused with 400
|
|
255
|
+
* `DEVICE_TOOL_UNSUPPORTED` and nothing happens on the device.
|
|
235
256
|
*/
|
|
236
257
|
reboot(deviceID: string, options?: RequestOptions): APIPromise<void> {
|
|
237
258
|
return this._client.post(path`/devices/${deviceID}/reboot`, {
|
|
@@ -241,16 +262,13 @@ export class Devices extends APIResource {
|
|
|
241
262
|
}
|
|
242
263
|
|
|
243
264
|
/**
|
|
244
|
-
* Resets the device.
|
|
245
|
-
*
|
|
246
|
-
*
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
-
*
|
|
251
|
-
* mode only when it is the one their capabilities advertise, and always accept a
|
|
252
|
-
* reset without a mode. The device transitions through its reset lifecycle before
|
|
253
|
-
* becoming ready again.
|
|
265
|
+
* Resets the device. `mode` selects what is erased: `full` (factory reset: apps,
|
|
266
|
+
* accounts, storage, new identity) or `identity` (new fingerprint, apps and data
|
|
267
|
+
* kept). Without `mode` the reset is `full`, or `identity` on devices with
|
|
268
|
+
* `factoryReset=false`. A mode or `preserve` value the device does not support is
|
|
269
|
+
* refused with 400 `DEVICE_TOOL_UNSUPPORTED`. `preserve` restores the latest
|
|
270
|
+
* proxy, location, locale or timezone set through the API after the reset; omitted
|
|
271
|
+
* or empty preserves nothing. The device becomes ready again after the reset.
|
|
254
272
|
*/
|
|
255
273
|
reset(
|
|
256
274
|
deviceID: string,
|
|
@@ -265,9 +283,9 @@ export class Devices extends APIResource {
|
|
|
265
283
|
}
|
|
266
284
|
|
|
267
285
|
/**
|
|
268
|
-
* Wakes a parked device:
|
|
269
|
-
*
|
|
270
|
-
*
|
|
286
|
+
* Wakes a parked device: it first checks that the device can run again, then the
|
|
287
|
+
* same device starts and per-minute billing resumes. On a device that is not
|
|
288
|
+
* parked, the request does nothing.
|
|
271
289
|
*/
|
|
272
290
|
resume(deviceID: string, options?: RequestOptions): APIPromise<void> {
|
|
273
291
|
return this._client.post(path`/devices/${deviceID}/resume`, {
|
|
@@ -323,9 +341,13 @@ export class Devices extends APIResource {
|
|
|
323
341
|
}
|
|
324
342
|
|
|
325
343
|
/**
|
|
326
|
-
* Terminates the device and releases its resources.
|
|
327
|
-
*
|
|
328
|
-
*
|
|
344
|
+
* Terminates the device and releases its resources. For a personal (BYOD) device
|
|
345
|
+
* the owner (API key or user) can instead remove the phone from the account so
|
|
346
|
+
* anyone can pair it again; the phone must be disconnected first, otherwise the
|
|
347
|
+
* request is rejected with 409 BYOD_DEVICE_CONNECTED. Other subscription-billed
|
|
348
|
+
* devices cannot be terminated with this request; it is rejected with 401. The
|
|
349
|
+
* `terminateAt` and `previousDeviceId` body fields are reserved for internal use;
|
|
350
|
+
* requests that set them are rejected with 401.
|
|
329
351
|
*/
|
|
330
352
|
terminate(
|
|
331
353
|
deviceID: string,
|
|
@@ -550,8 +572,6 @@ export namespace DeviceFingerprintResponse {
|
|
|
550
572
|
|
|
551
573
|
hardware?: string;
|
|
552
574
|
|
|
553
|
-
imageRepository?: string;
|
|
554
|
-
|
|
555
575
|
manufacturer?: string;
|
|
556
576
|
|
|
557
577
|
model?: string;
|
|
@@ -607,6 +627,8 @@ export namespace DeviceRetrieveCapabilitiesResponse {
|
|
|
607
627
|
|
|
608
628
|
proxy: boolean;
|
|
609
629
|
|
|
630
|
+
reboot: boolean;
|
|
631
|
+
|
|
610
632
|
recording: boolean;
|
|
611
633
|
|
|
612
634
|
reset: boolean;
|
|
@@ -619,6 +641,8 @@ export namespace DeviceRetrieveCapabilitiesResponse {
|
|
|
619
641
|
|
|
620
642
|
stream: boolean;
|
|
621
643
|
|
|
644
|
+
telephony: boolean;
|
|
645
|
+
|
|
622
646
|
time: boolean;
|
|
623
647
|
|
|
624
648
|
trafficInspection: boolean;
|
|
@@ -761,18 +785,27 @@ export interface DeviceCreateParams {
|
|
|
761
785
|
query_country?: string;
|
|
762
786
|
|
|
763
787
|
/**
|
|
764
|
-
* Query param:
|
|
765
|
-
*
|
|
766
|
-
*
|
|
767
|
-
*
|
|
788
|
+
* Query param: Device type: android_cloud_phone (cloud Android phone), ios_phone
|
|
789
|
+
* or device_slot. Any other value is rejected with 422. Not every device type is
|
|
790
|
+
* available for creation; an unavailable type returns DEVICE_TYPE_UNAVAILABLE
|
|
791
|
+
* (422).
|
|
768
792
|
*/
|
|
769
|
-
deviceType?:
|
|
793
|
+
deviceType?: 'android_cloud_phone' | 'ios_phone' | 'device_slot';
|
|
770
794
|
|
|
771
795
|
/**
|
|
772
796
|
* Query param: Profile ID to use as device spec
|
|
773
797
|
*/
|
|
774
798
|
profileId?: string;
|
|
775
799
|
|
|
800
|
+
/**
|
|
801
|
+
* Query param: Optional device template, e.g. onboarding. The device gets the
|
|
802
|
+
* template's Android version and preinstalled apps and is ready in seconds when a
|
|
803
|
+
* prepared phone is available; otherwise it boots with the same setup. Country,
|
|
804
|
+
* name and proxy still come from this request. Cannot be combined with profileId,
|
|
805
|
+
* apps or androidVersion. Omit it to create from the request alone.
|
|
806
|
+
*/
|
|
807
|
+
template?: string;
|
|
808
|
+
|
|
776
809
|
/**
|
|
777
810
|
* Body param
|
|
778
811
|
*/
|
|
@@ -901,8 +934,7 @@ export interface DeviceListParams {
|
|
|
901
934
|
pageSize?: number;
|
|
902
935
|
|
|
903
936
|
/**
|
|
904
|
-
* Filter by the device's platform as served in the platform field
|
|
905
|
-
* announced, else type-derived).
|
|
937
|
+
* Filter by the device's platform as served in the platform field.
|
|
906
938
|
*/
|
|
907
939
|
platform?: 'android' | 'ios';
|
|
908
940
|
|
|
@@ -933,16 +965,9 @@ export interface DeviceListParams {
|
|
|
933
965
|
> | null;
|
|
934
966
|
|
|
935
967
|
/**
|
|
936
|
-
*
|
|
937
|
-
* Availability depends on the deployment.
|
|
968
|
+
* Filter by device type.
|
|
938
969
|
*/
|
|
939
|
-
type?:
|
|
940
|
-
| 'android_cloud_phone'
|
|
941
|
-
| 'android_physical_phone'
|
|
942
|
-
| 'ios_stealth_phone'
|
|
943
|
-
| 'android_emulator'
|
|
944
|
-
| 'ios_simulator'
|
|
945
|
-
| 'device_slot';
|
|
970
|
+
type?: 'android_cloud_phone' | 'ios_phone' | 'device_slot';
|
|
946
971
|
}
|
|
947
972
|
|
|
948
973
|
export interface DeviceFingerprintParams {
|
|
@@ -957,6 +982,12 @@ export interface DeviceResetParams {
|
|
|
957
982
|
* capabilities report factoryReset=false.
|
|
958
983
|
*/
|
|
959
984
|
mode?: 'full' | 'identity';
|
|
985
|
+
|
|
986
|
+
/**
|
|
987
|
+
* Device configuration to restore after the reset: the latest value set through
|
|
988
|
+
* the API. Omitted, null or empty preserves nothing.
|
|
989
|
+
*/
|
|
990
|
+
preserve?: Array<'proxy' | 'location' | 'locale' | 'timezone'> | null;
|
|
960
991
|
}
|
|
961
992
|
|
|
962
993
|
export interface DeviceSetNameParams {
|
|
@@ -1004,6 +1035,8 @@ Devices.Browser = Browser;
|
|
|
1004
1035
|
Devices.Kiosk = Kiosk;
|
|
1005
1036
|
Devices.Recordings = Recordings;
|
|
1006
1037
|
Devices.TrafficSessions = TrafficSessions;
|
|
1038
|
+
Devices.Number = Number;
|
|
1039
|
+
Devices.NumberBindings = NumberBindings;
|
|
1007
1040
|
|
|
1008
1041
|
export declare namespace Devices {
|
|
1009
1042
|
export {
|
|
@@ -1188,4 +1221,20 @@ export declare namespace Devices {
|
|
|
1188
1221
|
type TrafficSessionListParams as TrafficSessionListParams,
|
|
1189
1222
|
type TrafficSessionDeleteParams as TrafficSessionDeleteParams,
|
|
1190
1223
|
};
|
|
1224
|
+
|
|
1225
|
+
export {
|
|
1226
|
+
Number as Number,
|
|
1227
|
+
type NumberRetrieveResponse as NumberRetrieveResponse,
|
|
1228
|
+
type NumberBindResponse as NumberBindResponse,
|
|
1229
|
+
type NumberUnbindResponse as NumberUnbindResponse,
|
|
1230
|
+
type NumberRetrieveParams as NumberRetrieveParams,
|
|
1231
|
+
type NumberBindParams as NumberBindParams,
|
|
1232
|
+
type NumberUnbindParams as NumberUnbindParams,
|
|
1233
|
+
};
|
|
1234
|
+
|
|
1235
|
+
export {
|
|
1236
|
+
NumberBindings as NumberBindings,
|
|
1237
|
+
type NumberBindingListResponse as NumberBindingListResponse,
|
|
1238
|
+
type NumberBindingListCandidatesResponse as NumberBindingListCandidatesResponse,
|
|
1239
|
+
};
|
|
1191
1240
|
}
|
|
@@ -89,6 +89,20 @@ export {
|
|
|
89
89
|
type LocationResetParams,
|
|
90
90
|
type LocationSetParams,
|
|
91
91
|
} from './location';
|
|
92
|
+
export {
|
|
93
|
+
Number,
|
|
94
|
+
type NumberRetrieveResponse,
|
|
95
|
+
type NumberBindResponse,
|
|
96
|
+
type NumberUnbindResponse,
|
|
97
|
+
type NumberRetrieveParams,
|
|
98
|
+
type NumberBindParams,
|
|
99
|
+
type NumberUnbindParams,
|
|
100
|
+
} from './number';
|
|
101
|
+
export {
|
|
102
|
+
NumberBindings,
|
|
103
|
+
type NumberBindingListResponse,
|
|
104
|
+
type NumberBindingListCandidatesResponse,
|
|
105
|
+
} from './number-bindings';
|
|
92
106
|
export { Packages, type PackageListResponse, type PackageListParams } from './packages';
|
|
93
107
|
export { Profile, type ProfileUpdateParams } from './profile';
|
|
94
108
|
export {
|
|
@@ -108,7 +108,7 @@ export interface KeyboardWriteParams {
|
|
|
108
108
|
completionMode?: 'accepted' | 'committed';
|
|
109
109
|
|
|
110
110
|
/**
|
|
111
|
-
* Body param: Per-character mistake rate for
|
|
111
|
+
* Body param: Per-character mistake rate for humanized typing. -1 uses server
|
|
112
112
|
* default.
|
|
113
113
|
*/
|
|
114
114
|
errorRate?: number;
|
|
@@ -31,8 +31,9 @@ export class Language extends APIResource {
|
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* Sets the device language/locale to the BCP-47 locale in the request body. An
|
|
34
|
-
* optional restart flag applies the change immediately by restarting the
|
|
35
|
-
* instead of waiting for the next reboot
|
|
34
|
+
* optional restart flag applies the change immediately by restarting the Android
|
|
35
|
+
* system framework (open apps are closed) instead of waiting for the next reboot;
|
|
36
|
+
* some devices ignore it.
|
|
36
37
|
*/
|
|
37
38
|
set(deviceID: string, params: LanguageSetParams, options?: RequestOptions): APIPromise<void> {
|
|
38
39
|
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
@@ -73,8 +74,9 @@ export interface LanguageSetParams {
|
|
|
73
74
|
locale: string;
|
|
74
75
|
|
|
75
76
|
/**
|
|
76
|
-
* Body param: Restart
|
|
77
|
-
*
|
|
77
|
+
* Body param: Restart the Android system framework so the locale change takes full
|
|
78
|
+
* effect immediately; open apps are closed. Without it, the change may not fully
|
|
79
|
+
* apply until the next reboot. Some devices ignore this flag.
|
|
78
80
|
*/
|
|
79
81
|
restart?: boolean;
|
|
80
82
|
|
|
@@ -0,0 +1,62 @@
|
|
|
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 { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
|
|
7
|
+
export class NumberBindings extends APIResource {
|
|
8
|
+
list(options?: RequestOptions): APIPromise<NumberBindingListResponse> {
|
|
9
|
+
return this._client.get('/devices/number-bindings', options);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
listCandidates(options?: RequestOptions): APIPromise<NumberBindingListCandidatesResponse> {
|
|
13
|
+
return this._client.get('/devices/number-bindings/candidates', options);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface NumberBindingListResponse {
|
|
18
|
+
items: Array<NumberBindingListResponse.Item> | null;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* A URL to the JSON Schema for this object.
|
|
22
|
+
*/
|
|
23
|
+
$schema?: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export namespace NumberBindingListResponse {
|
|
27
|
+
export interface Item {
|
|
28
|
+
boundAt: string;
|
|
29
|
+
|
|
30
|
+
deviceId: string;
|
|
31
|
+
|
|
32
|
+
deviceName: string;
|
|
33
|
+
|
|
34
|
+
numberId: string;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface NumberBindingListCandidatesResponse {
|
|
39
|
+
items: Array<NumberBindingListCandidatesResponse.Item> | null;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* A URL to the JSON Schema for this object.
|
|
43
|
+
*/
|
|
44
|
+
$schema?: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export namespace NumberBindingListCandidatesResponse {
|
|
48
|
+
export interface Item {
|
|
49
|
+
id: string;
|
|
50
|
+
|
|
51
|
+
name: string;
|
|
52
|
+
|
|
53
|
+
state: 'ready';
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export declare namespace NumberBindings {
|
|
58
|
+
export {
|
|
59
|
+
type NumberBindingListResponse as NumberBindingListResponse,
|
|
60
|
+
type NumberBindingListCandidatesResponse as NumberBindingListCandidatesResponse,
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,261 @@
|
|
|
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 Number extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Returns the cloud number bound to the device and the SIM line the device
|
|
12
|
+
* presents (carrier, number).
|
|
13
|
+
*/
|
|
14
|
+
retrieve(
|
|
15
|
+
deviceID: string,
|
|
16
|
+
params: NumberRetrieveParams | null | undefined = {},
|
|
17
|
+
options?: RequestOptions,
|
|
18
|
+
): APIPromise<NumberRetrieveResponse> {
|
|
19
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
20
|
+
return this._client.get(path`/devices/${deviceID}/number`, {
|
|
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
|
+
* Binds one of your cloud numbers to the device. The device's SIM shows the number
|
|
35
|
+
* and every SMS it receives is delivered into the device's messages app. Available
|
|
36
|
+
* on devices whose capabilities report telephony. A number can be bound to one
|
|
37
|
+
* device, and a device holds one number; unbind first to move it.
|
|
38
|
+
*/
|
|
39
|
+
bind(deviceID: string, params: NumberBindParams, options?: RequestOptions): APIPromise<NumberBindResponse> {
|
|
40
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
41
|
+
return this._client.post(path`/devices/${deviceID}/number`, {
|
|
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
|
+
* Releases the number bound to the device. The device returns to its own default
|
|
57
|
+
* line; SMS to the number stop reaching the device.
|
|
58
|
+
*/
|
|
59
|
+
unbind(
|
|
60
|
+
deviceID: string,
|
|
61
|
+
params: NumberUnbindParams | null | undefined = {},
|
|
62
|
+
options?: RequestOptions,
|
|
63
|
+
): APIPromise<NumberUnbindResponse> {
|
|
64
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
65
|
+
return this._client.delete(path`/devices/${deviceID}/number`, {
|
|
66
|
+
...options,
|
|
67
|
+
headers: buildHeaders([
|
|
68
|
+
{
|
|
69
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
70
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
71
|
+
: undefined),
|
|
72
|
+
},
|
|
73
|
+
options?.headers,
|
|
74
|
+
]),
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface NumberRetrieveResponse {
|
|
80
|
+
binding: NumberRetrieveResponse.Binding;
|
|
81
|
+
|
|
82
|
+
line: NumberRetrieveResponse.Line;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* A URL to the JSON Schema for this object.
|
|
86
|
+
*/
|
|
87
|
+
$schema?: string;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export namespace NumberRetrieveResponse {
|
|
91
|
+
export interface Binding {
|
|
92
|
+
boundAt: string;
|
|
93
|
+
|
|
94
|
+
numberId: string;
|
|
95
|
+
|
|
96
|
+
phoneNumber: string;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export interface Line {
|
|
100
|
+
carrier: Line.Carrier;
|
|
101
|
+
|
|
102
|
+
defaultNumber: boolean;
|
|
103
|
+
|
|
104
|
+
kind: 'simulated' | 'uicc' | 'esim' | 'unknown';
|
|
105
|
+
|
|
106
|
+
lineId: string;
|
|
107
|
+
|
|
108
|
+
numberSource: 'backend_default' | 'caller' | 'unknown';
|
|
109
|
+
|
|
110
|
+
state: 'pending' | 'active' | 'inactive' | 'failed' | 'unknown';
|
|
111
|
+
|
|
112
|
+
iccid?: string;
|
|
113
|
+
|
|
114
|
+
phoneNumber?: string;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export namespace Line {
|
|
118
|
+
export interface Carrier {
|
|
119
|
+
countryIso: string;
|
|
120
|
+
|
|
121
|
+
mcc: string;
|
|
122
|
+
|
|
123
|
+
mnc: string;
|
|
124
|
+
|
|
125
|
+
name: string;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export interface NumberBindResponse {
|
|
131
|
+
binding: NumberBindResponse.Binding;
|
|
132
|
+
|
|
133
|
+
line: NumberBindResponse.Line;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* A URL to the JSON Schema for this object.
|
|
137
|
+
*/
|
|
138
|
+
$schema?: string;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export namespace NumberBindResponse {
|
|
142
|
+
export interface Binding {
|
|
143
|
+
boundAt: string;
|
|
144
|
+
|
|
145
|
+
numberId: string;
|
|
146
|
+
|
|
147
|
+
phoneNumber: string;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export interface Line {
|
|
151
|
+
carrier: Line.Carrier;
|
|
152
|
+
|
|
153
|
+
defaultNumber: boolean;
|
|
154
|
+
|
|
155
|
+
kind: 'simulated' | 'uicc' | 'esim' | 'unknown';
|
|
156
|
+
|
|
157
|
+
lineId: string;
|
|
158
|
+
|
|
159
|
+
numberSource: 'backend_default' | 'caller' | 'unknown';
|
|
160
|
+
|
|
161
|
+
state: 'pending' | 'active' | 'inactive' | 'failed' | 'unknown';
|
|
162
|
+
|
|
163
|
+
iccid?: string;
|
|
164
|
+
|
|
165
|
+
phoneNumber?: string;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export namespace Line {
|
|
169
|
+
export interface Carrier {
|
|
170
|
+
countryIso: string;
|
|
171
|
+
|
|
172
|
+
mcc: string;
|
|
173
|
+
|
|
174
|
+
mnc: string;
|
|
175
|
+
|
|
176
|
+
name: string;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export interface NumberUnbindResponse {
|
|
182
|
+
binding: NumberUnbindResponse.Binding;
|
|
183
|
+
|
|
184
|
+
line: NumberUnbindResponse.Line;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* A URL to the JSON Schema for this object.
|
|
188
|
+
*/
|
|
189
|
+
$schema?: string;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export namespace NumberUnbindResponse {
|
|
193
|
+
export interface Binding {
|
|
194
|
+
boundAt: string;
|
|
195
|
+
|
|
196
|
+
numberId: string;
|
|
197
|
+
|
|
198
|
+
phoneNumber: string;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export interface Line {
|
|
202
|
+
carrier: Line.Carrier;
|
|
203
|
+
|
|
204
|
+
defaultNumber: boolean;
|
|
205
|
+
|
|
206
|
+
kind: 'simulated' | 'uicc' | 'esim' | 'unknown';
|
|
207
|
+
|
|
208
|
+
lineId: string;
|
|
209
|
+
|
|
210
|
+
numberSource: 'backend_default' | 'caller' | 'unknown';
|
|
211
|
+
|
|
212
|
+
state: 'pending' | 'active' | 'inactive' | 'failed' | 'unknown';
|
|
213
|
+
|
|
214
|
+
iccid?: string;
|
|
215
|
+
|
|
216
|
+
phoneNumber?: string;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export namespace Line {
|
|
220
|
+
export interface Carrier {
|
|
221
|
+
countryIso: string;
|
|
222
|
+
|
|
223
|
+
mcc: string;
|
|
224
|
+
|
|
225
|
+
mnc: string;
|
|
226
|
+
|
|
227
|
+
name: string;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export interface NumberRetrieveParams {
|
|
233
|
+
'X-Device-Display-ID'?: number;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export interface NumberBindParams {
|
|
237
|
+
/**
|
|
238
|
+
* Body param: The cloud number's id.
|
|
239
|
+
*/
|
|
240
|
+
numberId: string;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Header param
|
|
244
|
+
*/
|
|
245
|
+
'X-Device-Display-ID'?: number;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export interface NumberUnbindParams {
|
|
249
|
+
'X-Device-Display-ID'?: number;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export declare namespace Number {
|
|
253
|
+
export {
|
|
254
|
+
type NumberRetrieveResponse as NumberRetrieveResponse,
|
|
255
|
+
type NumberBindResponse as NumberBindResponse,
|
|
256
|
+
type NumberUnbindResponse as NumberUnbindResponse,
|
|
257
|
+
type NumberRetrieveParams as NumberRetrieveParams,
|
|
258
|
+
type NumberBindParams as NumberBindParams,
|
|
259
|
+
type NumberUnbindParams as NumberUnbindParams,
|
|
260
|
+
};
|
|
261
|
+
}
|