@mobilerun/sdk 5.5.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/README.md +0 -9
- package/client.d.mts +12 -30
- package/client.d.mts.map +1 -1
- package/client.d.ts +12 -30
- package/client.d.ts.map +1 -1
- package/client.js +1 -18
- package/client.js.map +1 -1
- package/client.mjs +2 -19
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +39 -26
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +39 -26
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +20 -7
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +20 -7
- package/resources/apps.mjs.map +1 -1
- package/resources/assistant/conversations.d.mts +7 -17
- package/resources/assistant/conversations.d.mts.map +1 -1
- package/resources/assistant/conversations.d.ts +7 -17
- package/resources/assistant/conversations.d.ts.map +1 -1
- package/resources/assistant/conversations.js +4 -11
- package/resources/assistant/conversations.js.map +1 -1
- package/resources/assistant/conversations.mjs +4 -11
- 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 +102 -17
- package/resources/connect/proxies.d.mts.map +1 -1
- package/resources/connect/proxies.d.ts +102 -17
- package/resources/connect/proxies.d.ts.map +1 -1
- package/resources/connect/proxies.js +27 -14
- package/resources/connect/proxies.js.map +1 -1
- package/resources/connect/proxies.mjs +27 -14
- package/resources/connect/proxies.mjs.map +1 -1
- package/resources/connect/users.d.mts +4 -4
- package/resources/connect/users.d.ts +4 -4
- package/resources/connect/users.js +2 -2
- package/resources/connect/users.mjs +2 -2
- package/resources/devices/actions.d.mts +25 -5
- package/resources/devices/actions.d.mts.map +1 -1
- package/resources/devices/actions.d.ts +25 -5
- package/resources/devices/actions.d.ts.map +1 -1
- package/resources/devices/actions.js +5 -3
- package/resources/devices/actions.js.map +1 -1
- package/resources/devices/actions.mjs +5 -3
- package/resources/devices/actions.mjs.map +1 -1
- package/resources/devices/apps.d.mts +13 -0
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +13 -0
- package/resources/devices/apps.d.ts.map +1 -1
- package/resources/devices/browser.d.mts +9 -3
- package/resources/devices/browser.d.mts.map +1 -1
- package/resources/devices/browser.d.ts +9 -3
- package/resources/devices/browser.d.ts.map +1 -1
- package/resources/devices/browser.js +9 -3
- package/resources/devices/browser.js.map +1 -1
- package/resources/devices/browser.mjs +9 -3
- package/resources/devices/browser.mjs.map +1 -1
- package/resources/devices/devices.d.mts +88 -36
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +88 -36
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +30 -15
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +30 -15
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/index.d.mts +3 -2
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +3 -2
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +3 -1
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +1 -0
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/keyboard.d.mts +8 -2
- package/resources/devices/keyboard.d.mts.map +1 -1
- package/resources/devices/keyboard.d.ts +8 -2
- package/resources/devices/keyboard.d.ts.map +1 -1
- package/resources/devices/recordings.d.mts +29 -6
- package/resources/devices/recordings.d.mts.map +1 -1
- package/resources/devices/recordings.d.ts +29 -6
- package/resources/devices/recordings.d.ts.map +1 -1
- package/resources/devices/recordings.js +9 -0
- package/resources/devices/recordings.js.map +1 -1
- package/resources/devices/recordings.mjs +9 -0
- package/resources/devices/recordings.mjs.map +1 -1
- package/resources/devices/screenshots.d.mts +72 -0
- package/resources/devices/screenshots.d.mts.map +1 -0
- package/resources/devices/screenshots.d.ts +72 -0
- package/resources/devices/screenshots.d.ts.map +1 -0
- package/resources/devices/screenshots.js +57 -0
- package/resources/devices/screenshots.js.map +1 -0
- package/resources/devices/screenshots.mjs +53 -0
- package/resources/devices/screenshots.mjs.map +1 -0
- package/resources/devices/state.d.mts +11 -2
- package/resources/devices/state.d.mts.map +1 -1
- package/resources/devices/state.d.ts +11 -2
- package/resources/devices/state.d.ts.map +1 -1
- package/resources/devices/state.js +5 -2
- package/resources/devices/state.js.map +1 -1
- package/resources/devices/state.mjs +5 -2
- package/resources/devices/state.mjs.map +1 -1
- package/resources/devices/traffic-sessions.d.mts +1 -11
- package/resources/devices/traffic-sessions.d.mts.map +1 -1
- package/resources/devices/traffic-sessions.d.ts +1 -11
- package/resources/devices/traffic-sessions.d.ts.map +1 -1
- package/resources/devices/traffic-sessions.js +2 -8
- package/resources/devices/traffic-sessions.js.map +1 -1
- package/resources/devices/traffic-sessions.mjs +2 -8
- package/resources/devices/traffic-sessions.mjs.map +1 -1
- package/resources/files.d.mts +8 -22
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +8 -22
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +5 -13
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +5 -13
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts +6 -11
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -11
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -11
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -6
- package/resources/index.mjs.map +1 -1
- package/resources/mailboxes/connections.d.mts +58 -0
- package/resources/mailboxes/connections.d.mts.map +1 -0
- package/resources/mailboxes/connections.d.ts +58 -0
- package/resources/mailboxes/connections.d.ts.map +1 -0
- package/resources/mailboxes/connections.js +41 -0
- package/resources/mailboxes/connections.js.map +1 -0
- package/resources/mailboxes/connections.mjs +37 -0
- package/resources/mailboxes/connections.mjs.map +1 -0
- package/resources/mailboxes/index.d.mts +2 -1
- package/resources/mailboxes/index.d.mts.map +1 -1
- package/resources/mailboxes/index.d.ts +2 -1
- package/resources/mailboxes/index.d.ts.map +1 -1
- package/resources/mailboxes/index.js +3 -1
- package/resources/mailboxes/index.js.map +1 -1
- package/resources/mailboxes/index.mjs +1 -0
- package/resources/mailboxes/index.mjs.map +1 -1
- package/resources/mailboxes/mailboxes.d.mts +74 -24
- package/resources/mailboxes/mailboxes.d.mts.map +1 -1
- package/resources/mailboxes/mailboxes.d.ts +74 -24
- package/resources/mailboxes/mailboxes.d.ts.map +1 -1
- package/resources/mailboxes/mailboxes.js +26 -8
- package/resources/mailboxes/mailboxes.js.map +1 -1
- package/resources/mailboxes/mailboxes.mjs +26 -8
- package/resources/mailboxes/mailboxes.mjs.map +1 -1
- package/resources/messages/index.d.mts +1 -1
- package/resources/messages/index.d.mts.map +1 -1
- package/resources/messages/index.d.ts +1 -1
- package/resources/messages/index.d.ts.map +1 -1
- package/resources/messages/index.js.map +1 -1
- package/resources/messages/index.mjs +1 -1
- package/resources/messages/index.mjs.map +1 -1
- package/resources/messages/messages.d.mts +26 -1
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +26 -1
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +9 -0
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +9 -0
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/models.d.mts +12 -23
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +12 -23
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +3 -4
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +3 -4
- package/resources/models.mjs.map +1 -1
- package/resources/numbers/index.d.mts +2 -2
- package/resources/numbers/index.d.mts.map +1 -1
- package/resources/numbers/index.d.ts +2 -2
- package/resources/numbers/index.d.ts.map +1 -1
- package/resources/numbers/index.js.map +1 -1
- package/resources/numbers/index.mjs +1 -1
- package/resources/numbers/index.mjs.map +1 -1
- package/resources/numbers/messages.d.mts +57 -1
- package/resources/numbers/messages.d.mts.map +1 -1
- package/resources/numbers/messages.d.ts +57 -1
- package/resources/numbers/messages.d.ts.map +1 -1
- package/resources/numbers/messages.js +23 -0
- package/resources/numbers/messages.js.map +1 -1
- package/resources/numbers/messages.mjs +23 -0
- package/resources/numbers/messages.mjs.map +1 -1
- package/resources/numbers/numbers.d.mts +148 -44
- package/resources/numbers/numbers.d.mts.map +1 -1
- package/resources/numbers/numbers.d.ts +148 -44
- package/resources/numbers/numbers.d.ts.map +1 -1
- package/resources/numbers/numbers.js +3 -23
- package/resources/numbers/numbers.js.map +1 -1
- package/resources/numbers/numbers.mjs +4 -24
- package/resources/numbers/numbers.mjs.map +1 -1
- package/resources/proxies.d.mts +1 -87
- package/resources/proxies.d.mts.map +1 -1
- package/resources/proxies.d.ts +1 -87
- package/resources/proxies.d.ts.map +1 -1
- package/resources/proxies.js +0 -6
- package/resources/proxies.js.map +1 -1
- package/resources/proxies.mjs +0 -6
- package/resources/proxies.mjs.map +1 -1
- package/resources/tasks/tasks.d.mts +51 -188
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +51 -188
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js +2 -10
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs +2 -10
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/webhooks/deliveries.d.mts +22 -31
- package/resources/webhooks/deliveries.d.mts.map +1 -1
- package/resources/webhooks/deliveries.d.ts +22 -31
- package/resources/webhooks/deliveries.d.ts.map +1 -1
- package/resources/webhooks/deliveries.js +4 -30
- package/resources/webhooks/deliveries.js.map +1 -1
- package/resources/webhooks/deliveries.mjs +4 -30
- package/resources/webhooks/deliveries.mjs.map +1 -1
- package/resources/webhooks/index.d.mts +2 -1
- package/resources/webhooks/index.d.mts.map +1 -1
- package/resources/webhooks/index.d.ts +2 -1
- package/resources/webhooks/index.d.ts.map +1 -1
- package/resources/webhooks/index.js +3 -1
- package/resources/webhooks/index.js.map +1 -1
- package/resources/webhooks/index.mjs +1 -0
- package/resources/webhooks/index.mjs.map +1 -1
- package/resources/webhooks/integrations.d.mts +77 -0
- package/resources/webhooks/integrations.d.mts.map +1 -0
- package/resources/webhooks/integrations.d.ts +77 -0
- package/resources/webhooks/integrations.d.ts.map +1 -0
- package/resources/webhooks/integrations.js +26 -0
- package/resources/webhooks/integrations.js.map +1 -0
- package/resources/webhooks/integrations.mjs +22 -0
- package/resources/webhooks/integrations.mjs.map +1 -0
- package/resources/webhooks/webhooks.d.mts +276 -104
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +276 -104
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js +32 -68
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +32 -68
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/resources/workflows/action-catalog.d.mts +7 -3
- package/resources/workflows/action-catalog.d.mts.map +1 -1
- package/resources/workflows/action-catalog.d.ts +7 -3
- package/resources/workflows/action-catalog.d.ts.map +1 -1
- package/resources/workflows/actions/actions.d.mts +9 -5
- package/resources/workflows/actions/actions.d.mts.map +1 -1
- package/resources/workflows/actions/actions.d.ts +9 -5
- package/resources/workflows/actions/actions.d.ts.map +1 -1
- package/resources/workflows/actions/actions.js +4 -0
- package/resources/workflows/actions/actions.js.map +1 -1
- package/resources/workflows/actions/actions.mjs +4 -0
- package/resources/workflows/actions/actions.mjs.map +1 -1
- package/resources/workflows/events.d.mts +52 -5
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +52 -5
- package/resources/workflows/events.d.ts.map +1 -1
- package/resources/workflows/executions/executions.d.mts +330 -0
- package/resources/workflows/executions/executions.d.mts.map +1 -0
- package/resources/workflows/executions/executions.d.ts +330 -0
- package/resources/workflows/executions/executions.d.ts.map +1 -0
- package/resources/workflows/executions/executions.js +49 -0
- package/resources/workflows/executions/executions.js.map +1 -0
- package/resources/workflows/executions/executions.mjs +44 -0
- package/resources/workflows/executions/executions.mjs.map +1 -0
- package/resources/workflows/executions/index.d.mts +3 -0
- package/resources/workflows/executions/index.d.mts.map +1 -0
- package/resources/workflows/executions/index.d.ts +3 -0
- package/resources/workflows/executions/index.d.ts.map +1 -0
- package/resources/workflows/executions/index.js +9 -0
- package/resources/workflows/executions/index.js.map +1 -0
- package/resources/workflows/executions/index.mjs +4 -0
- package/resources/workflows/executions/index.mjs.map +1 -0
- package/resources/workflows/executions/screenshots.d.mts +18 -0
- package/resources/workflows/executions/screenshots.d.mts.map +1 -0
- package/resources/workflows/executions/screenshots.d.ts +18 -0
- package/resources/workflows/executions/screenshots.d.ts.map +1 -0
- package/resources/workflows/executions/screenshots.js +23 -0
- package/resources/workflows/executions/screenshots.js.map +1 -0
- package/resources/workflows/executions/screenshots.mjs +19 -0
- package/resources/workflows/executions/screenshots.mjs.map +1 -0
- package/resources/workflows/executions.d.mts +1 -269
- package/resources/workflows/executions.d.mts.map +1 -1
- package/resources/workflows/executions.d.ts +1 -269
- package/resources/workflows/executions.d.ts.map +1 -1
- package/resources/workflows/executions.js +2 -37
- package/resources/workflows/executions.js.map +1 -1
- package/resources/workflows/executions.mjs +1 -35
- package/resources/workflows/executions.mjs.map +1 -1
- package/resources/workflows/flows/actions.d.mts +39 -0
- package/resources/workflows/flows/actions.d.mts.map +1 -1
- package/resources/workflows/flows/actions.d.ts +39 -0
- package/resources/workflows/flows/actions.d.ts.map +1 -1
- package/resources/workflows/flows/actions.js +4 -0
- package/resources/workflows/flows/actions.js.map +1 -1
- package/resources/workflows/flows/actions.mjs +4 -0
- package/resources/workflows/flows/actions.mjs.map +1 -1
- package/resources/workflows/flows/flows.d.mts +574 -27
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +574 -27
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +78 -3
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +78 -3
- package/resources/workflows/flows/flows.mjs.map +1 -1
- package/resources/workflows/flows/index.d.mts +1 -1
- package/resources/workflows/flows/index.d.mts.map +1 -1
- package/resources/workflows/flows/index.d.ts +1 -1
- 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 +2 -2
- package/resources/workflows/index.d.mts.map +1 -1
- package/resources/workflows/index.d.ts +2 -2
- 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 +110 -15
- package/resources/workflows/triggers.d.mts.map +1 -1
- package/resources/workflows/triggers.d.ts +110 -15
- package/resources/workflows/triggers.d.ts.map +1 -1
- package/resources/workflows/triggers.js +13 -1
- package/resources/workflows/triggers.js.map +1 -1
- package/resources/workflows/triggers.mjs +13 -1
- package/resources/workflows/triggers.mjs.map +1 -1
- package/resources/workflows/workflows.d.mts +4 -4
- package/resources/workflows/workflows.d.mts.map +1 -1
- package/resources/workflows/workflows.d.ts +4 -4
- 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 +14 -103
- package/src/resources/apps.ts +39 -26
- package/src/resources/assistant/conversations.ts +12 -27
- package/src/resources/connect/connect.ts +6 -0
- package/src/resources/connect/index.ts +3 -0
- package/src/resources/connect/proxies.ts +127 -25
- package/src/resources/connect/users.ts +4 -4
- package/src/resources/devices/actions.ts +28 -5
- package/src/resources/devices/apps.ts +18 -0
- package/src/resources/devices/browser.ts +9 -3
- package/src/resources/devices/devices.ts +139 -41
- package/src/resources/devices/index.ts +13 -0
- package/src/resources/devices/keyboard.ts +9 -2
- package/src/resources/devices/recordings.ts +45 -5
- package/src/resources/devices/screenshots.ts +140 -0
- package/src/resources/devices/state.ts +12 -2
- package/src/resources/devices/traffic-sessions.ts +2 -19
- package/src/resources/files.ts +11 -32
- package/src/resources/index.ts +9 -43
- package/src/resources/mailboxes/connections.ts +84 -0
- package/src/resources/mailboxes/index.ts +7 -0
- package/src/resources/mailboxes/mailboxes.ts +147 -24
- package/src/resources/messages/index.ts +6 -1
- package/src/resources/messages/messages.ts +55 -1
- package/src/resources/models.ts +16 -23
- package/src/resources/numbers/index.ts +7 -2
- package/src/resources/numbers/messages.ts +88 -1
- package/src/resources/numbers/numbers.ts +171 -62
- package/src/resources/proxies.ts +0 -110
- package/src/resources/tasks/tasks.ts +57 -198
- package/src/resources/webhooks/deliveries.ts +26 -31
- package/src/resources/webhooks/index.ts +6 -1
- package/src/resources/webhooks/integrations.ts +107 -0
- package/src/resources/webhooks/webhooks.ts +315 -114
- package/src/resources/workflows/action-catalog.ts +11 -3
- package/src/resources/workflows/actions/actions.ts +9 -5
- package/src/resources/workflows/events.ts +66 -5
- package/src/resources/workflows/executions/executions.ts +510 -0
- package/src/resources/workflows/executions/index.ts +12 -0
- package/src/resources/workflows/executions/screenshots.ts +34 -0
- package/src/resources/workflows/executions.ts +1 -412
- package/src/resources/workflows/flows/actions.ts +46 -0
- package/src/resources/workflows/flows/flows.ts +811 -26
- package/src/resources/workflows/flows/index.ts +11 -0
- package/src/resources/workflows/index.ts +12 -1
- package/src/resources/workflows/triggers.ts +131 -16
- package/src/resources/workflows/workflows.ts +32 -10
- 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/app-events/app-events.d.mts +0 -81
- package/resources/app-events/app-events.d.mts.map +0 -1
- package/resources/app-events/app-events.d.ts +0 -81
- package/resources/app-events/app-events.d.ts.map +0 -1
- package/resources/app-events/app-events.js +0 -33
- package/resources/app-events/app-events.js.map +0 -1
- package/resources/app-events/app-events.mjs +0 -28
- package/resources/app-events/app-events.mjs.map +0 -1
- package/resources/app-events/catalog.d.mts +0 -64
- package/resources/app-events/catalog.d.mts.map +0 -1
- package/resources/app-events/catalog.d.ts +0 -64
- package/resources/app-events/catalog.d.ts.map +0 -1
- package/resources/app-events/catalog.js +0 -25
- package/resources/app-events/catalog.js.map +0 -1
- package/resources/app-events/catalog.mjs +0 -21
- package/resources/app-events/catalog.mjs.map +0 -1
- package/resources/app-events/index.d.mts +0 -3
- package/resources/app-events/index.d.mts.map +0 -1
- package/resources/app-events/index.d.ts +0 -3
- package/resources/app-events/index.d.ts.map +0 -1
- package/resources/app-events/index.js +0 -9
- package/resources/app-events/index.js.map +0 -1
- package/resources/app-events/index.mjs +0 -4
- package/resources/app-events/index.mjs.map +0 -1
- package/resources/app-events.d.mts +0 -2
- package/resources/app-events.d.mts.map +0 -1
- package/resources/app-events.d.ts +0 -2
- package/resources/app-events.d.ts.map +0 -1
- package/resources/app-events.js +0 -6
- package/resources/app-events.js.map +0 -1
- package/resources/app-events.mjs +0 -3
- package/resources/app-events.mjs.map +0 -1
- package/resources/carriers.d.mts +0 -331
- package/resources/carriers.d.mts.map +0 -1
- package/resources/carriers.d.ts +0 -331
- package/resources/carriers.d.ts.map +0 -1
- package/resources/carriers.js +0 -46
- package/resources/carriers.js.map +0 -1
- package/resources/carriers.mjs +0 -42
- package/resources/carriers.mjs.map +0 -1
- package/resources/notifications.d.mts +0 -86
- package/resources/notifications.d.mts.map +0 -1
- package/resources/notifications.d.ts +0 -86
- package/resources/notifications.d.ts.map +0 -1
- package/resources/notifications.js +0 -55
- package/resources/notifications.js.map +0 -1
- package/resources/notifications.mjs +0 -51
- package/resources/notifications.mjs.map +0 -1
- package/resources/profiles.d.mts +0 -147
- package/resources/profiles.d.mts.map +0 -1
- package/resources/profiles.d.ts +0 -147
- package/resources/profiles.d.ts.map +0 -1
- package/resources/profiles.js +0 -40
- package/resources/profiles.js.map +0 -1
- package/resources/profiles.mjs +0 -36
- package/resources/profiles.mjs.map +0 -1
- package/resources/store/apps.d.mts +0 -119
- package/resources/store/apps.d.mts.map +0 -1
- package/resources/store/apps.d.ts +0 -119
- package/resources/store/apps.d.ts.map +0 -1
- package/resources/store/apps.js +0 -31
- package/resources/store/apps.js.map +0 -1
- package/resources/store/apps.mjs +0 -27
- package/resources/store/apps.mjs.map +0 -1
- package/resources/store/index.d.mts +0 -3
- package/resources/store/index.d.mts.map +0 -1
- package/resources/store/index.d.ts +0 -3
- package/resources/store/index.d.ts.map +0 -1
- package/resources/store/index.js +0 -9
- package/resources/store/index.js.map +0 -1
- package/resources/store/index.mjs +0 -4
- package/resources/store/index.mjs.map +0 -1
- package/resources/store/store.d.mts +0 -20
- package/resources/store/store.d.mts.map +0 -1
- package/resources/store/store.d.ts +0 -20
- package/resources/store/store.d.ts.map +0 -1
- package/resources/store/store.js +0 -23
- package/resources/store/store.js.map +0 -1
- package/resources/store/store.mjs +0 -18
- package/resources/store/store.mjs.map +0 -1
- package/resources/store.d.mts +0 -2
- package/resources/store.d.mts.map +0 -1
- package/resources/store.d.ts +0 -2
- package/resources/store.d.ts.map +0 -1
- package/resources/store.js +0 -6
- package/resources/store.js.map +0 -1
- package/resources/store.mjs +0 -3
- package/resources/store.mjs.map +0 -1
- package/src/resources/app-events/app-events.ts +0 -133
- package/src/resources/app-events/catalog.ts +0 -100
- package/src/resources/app-events/index.ts +0 -9
- package/src/resources/app-events.ts +0 -3
- package/src/resources/carriers.ts +0 -508
- package/src/resources/notifications.ts +0 -118
- package/src/resources/profiles.ts +0 -232
- package/src/resources/store/apps.ts +0 -704
- package/src/resources/store/index.ts +0 -10
- package/src/resources/store/store.ts +0 -36
- package/src/resources/store.ts +0 -3
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as Shared from '../shared';
|
|
5
|
+
import * as ConnectionsAPI from './connections';
|
|
6
|
+
import {
|
|
7
|
+
ConnectionCreateParams,
|
|
8
|
+
ConnectionCreateResponse,
|
|
9
|
+
ConnectionRetrieveResponse,
|
|
10
|
+
Connections,
|
|
11
|
+
} from './connections';
|
|
5
12
|
import * as MessagesAPI from './messages';
|
|
6
13
|
import {
|
|
7
14
|
MessageListParams,
|
|
@@ -15,22 +22,25 @@ import { RequestOptions } from '../../internal/request-options';
|
|
|
15
22
|
import { path } from '../../internal/utils/path';
|
|
16
23
|
|
|
17
24
|
export class Mailboxes extends APIResource {
|
|
25
|
+
connections: ConnectionsAPI.Connections = new ConnectionsAPI.Connections(this._client);
|
|
18
26
|
messages: MessagesAPI.Messages = new MessagesAPI.Messages(this._client);
|
|
19
27
|
|
|
20
28
|
/**
|
|
21
29
|
* Creates a mailbox on the default domain or a connected custom domain. An
|
|
22
|
-
* optional `localPart` selects the address. Replaying the same
|
|
23
|
-
*
|
|
24
|
-
*
|
|
30
|
+
* optional `localPart` selects the address. Replaying the same Idempotency-Key and
|
|
31
|
+
* payload returns the original mailbox. Fresh requests and replays return 202 with
|
|
32
|
+
* the current mailbox state. Poll the mailbox when the response does not yet
|
|
33
|
+
* include a checkout URL.
|
|
25
34
|
*
|
|
26
35
|
* @example
|
|
27
36
|
* ```ts
|
|
28
|
-
* const mailbox = await client.mailboxes.create(
|
|
29
|
-
* clientRequestId: 'x',
|
|
30
|
-
* });
|
|
37
|
+
* const mailbox = await client.mailboxes.create();
|
|
31
38
|
* ```
|
|
32
39
|
*/
|
|
33
|
-
create(
|
|
40
|
+
create(
|
|
41
|
+
body: MailboxCreateParams | null | undefined = {},
|
|
42
|
+
options?: RequestOptions,
|
|
43
|
+
): APIPromise<MailboxCreateResponse> {
|
|
34
44
|
return this._client.post('/mailboxes', { body, ...options });
|
|
35
45
|
}
|
|
36
46
|
|
|
@@ -84,7 +94,8 @@ export class Mailboxes extends APIResource {
|
|
|
84
94
|
|
|
85
95
|
/**
|
|
86
96
|
* Cancels a pending mailbox or schedules an active paid mailbox for cancellation.
|
|
87
|
-
* Existing addresses and messages are retained. Repeating the request is safe.
|
|
97
|
+
* Existing addresses and messages are retained. Repeating the request is safe. An
|
|
98
|
+
* external inbox (Gmail) cannot be cancelled here; disconnect the link instead.
|
|
88
99
|
*
|
|
89
100
|
* @example
|
|
90
101
|
* ```ts
|
|
@@ -109,6 +120,21 @@ export class Mailboxes extends APIResource {
|
|
|
109
120
|
return this._client.get('/mailboxes/capacity', options);
|
|
110
121
|
}
|
|
111
122
|
|
|
123
|
+
/**
|
|
124
|
+
* Removes only this mailbox link. The Gmail connection used by your agents stays
|
|
125
|
+
* in place.
|
|
126
|
+
*
|
|
127
|
+
* @example
|
|
128
|
+
* ```ts
|
|
129
|
+
* const response = await client.mailboxes.disconnect(
|
|
130
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
131
|
+
* );
|
|
132
|
+
* ```
|
|
133
|
+
*/
|
|
134
|
+
disconnect(mailboxID: string, options?: RequestOptions): APIPromise<MailboxDisconnectResponse> {
|
|
135
|
+
return this._client.post(path`/mailboxes/${mailboxID}/disconnect`, options);
|
|
136
|
+
}
|
|
137
|
+
|
|
112
138
|
/**
|
|
113
139
|
* Returns the most likely recent OTP for the mailbox. Returns 204 when no matching
|
|
114
140
|
* code is available.
|
|
@@ -173,7 +199,7 @@ export namespace MailboxCreateResponse {
|
|
|
173
199
|
|
|
174
200
|
address: string | null;
|
|
175
201
|
|
|
176
|
-
billingMode: 'rent' | 'included' | 'domain';
|
|
202
|
+
billingMode: 'rent' | 'included' | 'domain' | 'external';
|
|
177
203
|
|
|
178
204
|
cancelAtPeriodEnd: boolean;
|
|
179
205
|
|
|
@@ -191,13 +217,18 @@ export namespace MailboxCreateResponse {
|
|
|
191
217
|
|
|
192
218
|
label: string | null;
|
|
193
219
|
|
|
220
|
+
provider: 'matix' | 'gmail';
|
|
221
|
+
|
|
194
222
|
status:
|
|
195
223
|
| 'provisioning'
|
|
196
224
|
| 'awaiting_payment'
|
|
197
225
|
| 'active'
|
|
198
226
|
| 'cancel_scheduled'
|
|
199
227
|
| 'archived'
|
|
200
|
-
| 'billing_error'
|
|
228
|
+
| 'billing_error'
|
|
229
|
+
| 'pending_connection'
|
|
230
|
+
| 'connection_expired'
|
|
231
|
+
| 'connection_removed';
|
|
201
232
|
}
|
|
202
233
|
|
|
203
234
|
export namespace Data {
|
|
@@ -223,7 +254,7 @@ export namespace MailboxRetrieveResponse {
|
|
|
223
254
|
|
|
224
255
|
address: string | null;
|
|
225
256
|
|
|
226
|
-
billingMode: 'rent' | 'included' | 'domain';
|
|
257
|
+
billingMode: 'rent' | 'included' | 'domain' | 'external';
|
|
227
258
|
|
|
228
259
|
cancelAtPeriodEnd: boolean;
|
|
229
260
|
|
|
@@ -241,13 +272,18 @@ export namespace MailboxRetrieveResponse {
|
|
|
241
272
|
|
|
242
273
|
label: string | null;
|
|
243
274
|
|
|
275
|
+
provider: 'matix' | 'gmail';
|
|
276
|
+
|
|
244
277
|
status:
|
|
245
278
|
| 'provisioning'
|
|
246
279
|
| 'awaiting_payment'
|
|
247
280
|
| 'active'
|
|
248
281
|
| 'cancel_scheduled'
|
|
249
282
|
| 'archived'
|
|
250
|
-
| 'billing_error'
|
|
283
|
+
| 'billing_error'
|
|
284
|
+
| 'pending_connection'
|
|
285
|
+
| 'connection_expired'
|
|
286
|
+
| 'connection_removed';
|
|
251
287
|
}
|
|
252
288
|
|
|
253
289
|
export namespace Data {
|
|
@@ -273,7 +309,7 @@ export namespace MailboxUpdateResponse {
|
|
|
273
309
|
|
|
274
310
|
address: string | null;
|
|
275
311
|
|
|
276
|
-
billingMode: 'rent' | 'included' | 'domain';
|
|
312
|
+
billingMode: 'rent' | 'included' | 'domain' | 'external';
|
|
277
313
|
|
|
278
314
|
cancelAtPeriodEnd: boolean;
|
|
279
315
|
|
|
@@ -291,13 +327,18 @@ export namespace MailboxUpdateResponse {
|
|
|
291
327
|
|
|
292
328
|
label: string | null;
|
|
293
329
|
|
|
330
|
+
provider: 'matix' | 'gmail';
|
|
331
|
+
|
|
294
332
|
status:
|
|
295
333
|
| 'provisioning'
|
|
296
334
|
| 'awaiting_payment'
|
|
297
335
|
| 'active'
|
|
298
336
|
| 'cancel_scheduled'
|
|
299
337
|
| 'archived'
|
|
300
|
-
| 'billing_error'
|
|
338
|
+
| 'billing_error'
|
|
339
|
+
| 'pending_connection'
|
|
340
|
+
| 'connection_expired'
|
|
341
|
+
| 'connection_removed';
|
|
301
342
|
}
|
|
302
343
|
|
|
303
344
|
export namespace Data {
|
|
@@ -325,7 +366,7 @@ export namespace MailboxListResponse {
|
|
|
325
366
|
|
|
326
367
|
address: string | null;
|
|
327
368
|
|
|
328
|
-
billingMode: 'rent' | 'included' | 'domain';
|
|
369
|
+
billingMode: 'rent' | 'included' | 'domain' | 'external';
|
|
329
370
|
|
|
330
371
|
cancelAtPeriodEnd: boolean;
|
|
331
372
|
|
|
@@ -343,13 +384,18 @@ export namespace MailboxListResponse {
|
|
|
343
384
|
|
|
344
385
|
label: string | null;
|
|
345
386
|
|
|
387
|
+
provider: 'matix' | 'gmail';
|
|
388
|
+
|
|
346
389
|
status:
|
|
347
390
|
| 'provisioning'
|
|
348
391
|
| 'awaiting_payment'
|
|
349
392
|
| 'active'
|
|
350
393
|
| 'cancel_scheduled'
|
|
351
394
|
| 'archived'
|
|
352
|
-
| 'billing_error'
|
|
395
|
+
| 'billing_error'
|
|
396
|
+
| 'pending_connection'
|
|
397
|
+
| 'connection_expired'
|
|
398
|
+
| 'connection_removed';
|
|
353
399
|
}
|
|
354
400
|
|
|
355
401
|
export namespace Item {
|
|
@@ -375,7 +421,7 @@ export namespace MailboxDeleteResponse {
|
|
|
375
421
|
|
|
376
422
|
address: string | null;
|
|
377
423
|
|
|
378
|
-
billingMode: 'rent' | 'included' | 'domain';
|
|
424
|
+
billingMode: 'rent' | 'included' | 'domain' | 'external';
|
|
379
425
|
|
|
380
426
|
cancelAtPeriodEnd: boolean;
|
|
381
427
|
|
|
@@ -393,13 +439,18 @@ export namespace MailboxDeleteResponse {
|
|
|
393
439
|
|
|
394
440
|
label: string | null;
|
|
395
441
|
|
|
442
|
+
provider: 'matix' | 'gmail';
|
|
443
|
+
|
|
396
444
|
status:
|
|
397
445
|
| 'provisioning'
|
|
398
446
|
| 'awaiting_payment'
|
|
399
447
|
| 'active'
|
|
400
448
|
| 'cancel_scheduled'
|
|
401
449
|
| 'archived'
|
|
402
|
-
| 'billing_error'
|
|
450
|
+
| 'billing_error'
|
|
451
|
+
| 'pending_connection'
|
|
452
|
+
| 'connection_expired'
|
|
453
|
+
| 'connection_removed';
|
|
403
454
|
}
|
|
404
455
|
|
|
405
456
|
export namespace Data {
|
|
@@ -431,6 +482,61 @@ export namespace MailboxCapacityResponse {
|
|
|
431
482
|
}
|
|
432
483
|
}
|
|
433
484
|
|
|
485
|
+
export interface MailboxDisconnectResponse {
|
|
486
|
+
data: MailboxDisconnectResponse.Data;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
export namespace MailboxDisconnectResponse {
|
|
490
|
+
export interface Data {
|
|
491
|
+
id: string;
|
|
492
|
+
|
|
493
|
+
address: string | null;
|
|
494
|
+
|
|
495
|
+
billingMode: 'rent' | 'included' | 'domain' | 'external';
|
|
496
|
+
|
|
497
|
+
cancelAtPeriodEnd: boolean;
|
|
498
|
+
|
|
499
|
+
checkoutExpiresAt: string | null;
|
|
500
|
+
|
|
501
|
+
checkoutUrl: string | null;
|
|
502
|
+
|
|
503
|
+
createdAt: string;
|
|
504
|
+
|
|
505
|
+
currentPeriodEnd: string | null;
|
|
506
|
+
|
|
507
|
+
domainId: string | null;
|
|
508
|
+
|
|
509
|
+
inboundMessages: Data.InboundMessages;
|
|
510
|
+
|
|
511
|
+
label: string | null;
|
|
512
|
+
|
|
513
|
+
provider: 'matix' | 'gmail';
|
|
514
|
+
|
|
515
|
+
status:
|
|
516
|
+
| 'provisioning'
|
|
517
|
+
| 'awaiting_payment'
|
|
518
|
+
| 'active'
|
|
519
|
+
| 'cancel_scheduled'
|
|
520
|
+
| 'archived'
|
|
521
|
+
| 'billing_error'
|
|
522
|
+
| 'pending_connection'
|
|
523
|
+
| 'connection_expired'
|
|
524
|
+
| 'connection_removed';
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
export namespace Data {
|
|
528
|
+
export interface InboundMessages {
|
|
529
|
+
exhausted: boolean;
|
|
530
|
+
|
|
531
|
+
included: number;
|
|
532
|
+
|
|
533
|
+
resetsAt: string | null;
|
|
534
|
+
|
|
535
|
+
used: number;
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
|
|
434
540
|
export interface MailboxOtpResponse {
|
|
435
541
|
data: MailboxOtpResponse.Data;
|
|
436
542
|
}
|
|
@@ -464,7 +570,7 @@ export namespace MailboxRestartResponse {
|
|
|
464
570
|
|
|
465
571
|
address: string | null;
|
|
466
572
|
|
|
467
|
-
billingMode: 'rent' | 'included' | 'domain';
|
|
573
|
+
billingMode: 'rent' | 'included' | 'domain' | 'external';
|
|
468
574
|
|
|
469
575
|
cancelAtPeriodEnd: boolean;
|
|
470
576
|
|
|
@@ -482,13 +588,18 @@ export namespace MailboxRestartResponse {
|
|
|
482
588
|
|
|
483
589
|
label: string | null;
|
|
484
590
|
|
|
591
|
+
provider: 'matix' | 'gmail';
|
|
592
|
+
|
|
485
593
|
status:
|
|
486
594
|
| 'provisioning'
|
|
487
595
|
| 'awaiting_payment'
|
|
488
596
|
| 'active'
|
|
489
597
|
| 'cancel_scheduled'
|
|
490
598
|
| 'archived'
|
|
491
|
-
| 'billing_error'
|
|
599
|
+
| 'billing_error'
|
|
600
|
+
| 'pending_connection'
|
|
601
|
+
| 'connection_expired'
|
|
602
|
+
| 'connection_removed';
|
|
492
603
|
}
|
|
493
604
|
|
|
494
605
|
export namespace Data {
|
|
@@ -514,7 +625,7 @@ export namespace MailboxUncancelResponse {
|
|
|
514
625
|
|
|
515
626
|
address: string | null;
|
|
516
627
|
|
|
517
|
-
billingMode: 'rent' | 'included' | 'domain';
|
|
628
|
+
billingMode: 'rent' | 'included' | 'domain' | 'external';
|
|
518
629
|
|
|
519
630
|
cancelAtPeriodEnd: boolean;
|
|
520
631
|
|
|
@@ -532,13 +643,18 @@ export namespace MailboxUncancelResponse {
|
|
|
532
643
|
|
|
533
644
|
label: string | null;
|
|
534
645
|
|
|
646
|
+
provider: 'matix' | 'gmail';
|
|
647
|
+
|
|
535
648
|
status:
|
|
536
649
|
| 'provisioning'
|
|
537
650
|
| 'awaiting_payment'
|
|
538
651
|
| 'active'
|
|
539
652
|
| 'cancel_scheduled'
|
|
540
653
|
| 'archived'
|
|
541
|
-
| 'billing_error'
|
|
654
|
+
| 'billing_error'
|
|
655
|
+
| 'pending_connection'
|
|
656
|
+
| 'connection_expired'
|
|
657
|
+
| 'connection_removed';
|
|
542
658
|
}
|
|
543
659
|
|
|
544
660
|
export namespace Data {
|
|
@@ -555,8 +671,6 @@ export namespace MailboxUncancelResponse {
|
|
|
555
671
|
}
|
|
556
672
|
|
|
557
673
|
export interface MailboxCreateParams {
|
|
558
|
-
clientRequestId: string;
|
|
559
|
-
|
|
560
674
|
/**
|
|
561
675
|
* included uses package capacity when available and otherwise starts paid
|
|
562
676
|
* checkout; included_only fails without creating a paid reservation when no
|
|
@@ -607,6 +721,7 @@ export interface MailboxRestartParams {
|
|
|
607
721
|
billingPreference?: 'included' | 'included_only' | 'rent';
|
|
608
722
|
}
|
|
609
723
|
|
|
724
|
+
Mailboxes.Connections = Connections;
|
|
610
725
|
Mailboxes.Messages = Messages;
|
|
611
726
|
|
|
612
727
|
export declare namespace Mailboxes {
|
|
@@ -617,6 +732,7 @@ export declare namespace Mailboxes {
|
|
|
617
732
|
type MailboxListResponse as MailboxListResponse,
|
|
618
733
|
type MailboxDeleteResponse as MailboxDeleteResponse,
|
|
619
734
|
type MailboxCapacityResponse as MailboxCapacityResponse,
|
|
735
|
+
type MailboxDisconnectResponse as MailboxDisconnectResponse,
|
|
620
736
|
type MailboxOtpResponse as MailboxOtpResponse,
|
|
621
737
|
type MailboxRestartResponse as MailboxRestartResponse,
|
|
622
738
|
type MailboxUncancelResponse as MailboxUncancelResponse,
|
|
@@ -627,6 +743,13 @@ export declare namespace Mailboxes {
|
|
|
627
743
|
type MailboxRestartParams as MailboxRestartParams,
|
|
628
744
|
};
|
|
629
745
|
|
|
746
|
+
export {
|
|
747
|
+
Connections as Connections,
|
|
748
|
+
type ConnectionCreateResponse as ConnectionCreateResponse,
|
|
749
|
+
type ConnectionRetrieveResponse as ConnectionRetrieveResponse,
|
|
750
|
+
type ConnectionCreateParams as ConnectionCreateParams,
|
|
751
|
+
};
|
|
752
|
+
|
|
630
753
|
export {
|
|
631
754
|
Messages as Messages,
|
|
632
755
|
type MessageRetrieveResponse as MessageRetrieveResponse,
|
|
@@ -7,4 +7,9 @@ export {
|
|
|
7
7
|
type ConversationListParams,
|
|
8
8
|
type ConversationMarkReadParams,
|
|
9
9
|
} from './conversations';
|
|
10
|
-
export {
|
|
10
|
+
export {
|
|
11
|
+
Messages,
|
|
12
|
+
type MessageRetrieveResponse,
|
|
13
|
+
type MessageListResponse,
|
|
14
|
+
type MessageListParams,
|
|
15
|
+
} from './messages';
|
|
@@ -12,10 +12,20 @@ import {
|
|
|
12
12
|
} from './conversations';
|
|
13
13
|
import { APIPromise } from '../../core/api-promise';
|
|
14
14
|
import { RequestOptions } from '../../internal/request-options';
|
|
15
|
+
import { path } from '../../internal/utils/path';
|
|
15
16
|
|
|
16
17
|
export class Messages extends APIResource {
|
|
17
18
|
conversations: ConversationsAPI.Conversations = new ConversationsAPI.Conversations(this._client);
|
|
18
19
|
|
|
20
|
+
/**
|
|
21
|
+
* Returns one message. For an outbound message that is not yet final, the status
|
|
22
|
+
* may be refreshed once (at most every 30 s) before it is returned; a failed
|
|
23
|
+
* refresh returns the stored message.
|
|
24
|
+
*/
|
|
25
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<MessageRetrieveResponse> {
|
|
26
|
+
return this._client.get(path`/numbers/messages/${id}`, options);
|
|
27
|
+
}
|
|
28
|
+
|
|
19
29
|
/**
|
|
20
30
|
* Lists SMS messages newest first, with filters for direction, eSIM, phone number,
|
|
21
31
|
* status, and conversation.
|
|
@@ -28,6 +38,46 @@ export class Messages extends APIResource {
|
|
|
28
38
|
}
|
|
29
39
|
}
|
|
30
40
|
|
|
41
|
+
export interface MessageRetrieveResponse {
|
|
42
|
+
data: MessageRetrieveResponse.Data;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export namespace MessageRetrieveResponse {
|
|
46
|
+
export interface Data {
|
|
47
|
+
id: string;
|
|
48
|
+
|
|
49
|
+
body: string | null;
|
|
50
|
+
|
|
51
|
+
createdAt: string;
|
|
52
|
+
|
|
53
|
+
deliveryStatus: string | null;
|
|
54
|
+
|
|
55
|
+
detectedSender: string | null;
|
|
56
|
+
|
|
57
|
+
direction: 'inbound' | 'outbound';
|
|
58
|
+
|
|
59
|
+
esimId: string | null;
|
|
60
|
+
|
|
61
|
+
occurredAt: string;
|
|
62
|
+
|
|
63
|
+
peerKey: string | null;
|
|
64
|
+
|
|
65
|
+
peerNumber: string | null;
|
|
66
|
+
|
|
67
|
+
providerCode: string | null;
|
|
68
|
+
|
|
69
|
+
status:
|
|
70
|
+
| 'received'
|
|
71
|
+
| 'queued'
|
|
72
|
+
| 'claimed'
|
|
73
|
+
| 'sending'
|
|
74
|
+
| 'sent'
|
|
75
|
+
| 'sent_unconfirmed'
|
|
76
|
+
| 'delivered'
|
|
77
|
+
| 'failed';
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
31
81
|
export interface MessageListResponse {
|
|
32
82
|
items: Array<MessageListResponse.Item>;
|
|
33
83
|
|
|
@@ -100,7 +150,11 @@ export interface MessageListParams {
|
|
|
100
150
|
Messages.Conversations = Conversations;
|
|
101
151
|
|
|
102
152
|
export declare namespace Messages {
|
|
103
|
-
export {
|
|
153
|
+
export {
|
|
154
|
+
type MessageRetrieveResponse as MessageRetrieveResponse,
|
|
155
|
+
type MessageListResponse as MessageListResponse,
|
|
156
|
+
type MessageListParams as MessageListParams,
|
|
157
|
+
};
|
|
104
158
|
|
|
105
159
|
export {
|
|
106
160
|
Conversations as Conversations,
|
package/src/resources/models.ts
CHANGED
|
@@ -4,12 +4,11 @@ import { APIResource } from '../core/resource';
|
|
|
4
4
|
import { APIPromise } from '../core/api-promise';
|
|
5
5
|
import { RequestOptions } from '../internal/request-options';
|
|
6
6
|
|
|
7
|
-
/**
|
|
8
|
-
* LLM Models
|
|
9
|
-
*/
|
|
10
7
|
export class Models extends APIResource {
|
|
11
8
|
/**
|
|
12
|
-
*
|
|
9
|
+
* Returns the available LLM models with their identifiers, providers, and optional
|
|
10
|
+
* display metadata. Requires only your normal API authentication. Token prices are
|
|
11
|
+
* not included.
|
|
13
12
|
*/
|
|
14
13
|
list(options?: RequestOptions): APIPromise<ModelListResponse> {
|
|
15
14
|
return this._client.get('/models', options);
|
|
@@ -17,38 +16,32 @@ export class Models extends APIResource {
|
|
|
17
16
|
}
|
|
18
17
|
|
|
19
18
|
export interface ModelListResponse {
|
|
20
|
-
/**
|
|
21
|
-
* Available models
|
|
22
|
-
*/
|
|
23
19
|
data: Array<ModelListResponse.Data>;
|
|
24
20
|
|
|
25
|
-
|
|
26
|
-
* Object type
|
|
27
|
-
*/
|
|
28
|
-
object?: string;
|
|
21
|
+
object: 'list';
|
|
29
22
|
}
|
|
30
23
|
|
|
31
24
|
export namespace ModelListResponse {
|
|
32
25
|
export interface Data {
|
|
33
|
-
/**
|
|
34
|
-
* Model identifier
|
|
35
|
-
*/
|
|
36
26
|
id: string;
|
|
37
27
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
28
|
+
created: number;
|
|
29
|
+
|
|
30
|
+
object: 'model';
|
|
31
|
+
|
|
41
32
|
owned_by: string;
|
|
42
33
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
34
|
+
group?: 'recommended' | 'fast' | 'more';
|
|
35
|
+
|
|
36
|
+
label?: string;
|
|
37
|
+
|
|
38
|
+
order?: number;
|
|
47
39
|
|
|
48
40
|
/**
|
|
49
|
-
*
|
|
41
|
+
* Model pickers in which this model is available. When omitted, the model is
|
|
42
|
+
* available in every picker.
|
|
50
43
|
*/
|
|
51
|
-
|
|
44
|
+
surfaces?: Array<'assistant' | 'tasks'>;
|
|
52
45
|
}
|
|
53
46
|
}
|
|
54
47
|
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export {
|
|
4
|
+
Messages,
|
|
5
|
+
type MessageListResponse,
|
|
6
|
+
type MessageSendResponse,
|
|
7
|
+
type MessageListParams,
|
|
8
|
+
type MessageSendParams,
|
|
9
|
+
} from './messages';
|
|
4
10
|
export {
|
|
5
11
|
Numbers,
|
|
6
12
|
type NumberCreateResponse,
|
|
@@ -10,7 +16,6 @@ export {
|
|
|
10
16
|
type NumberDeleteResponse,
|
|
11
17
|
type NumberCapacityResponse,
|
|
12
18
|
type NumberCountriesResponse,
|
|
13
|
-
type NumberPurposesResponse,
|
|
14
19
|
type NumberCreateParams,
|
|
15
20
|
type NumberUpdateParams,
|
|
16
21
|
type NumberListParams,
|
|
@@ -26,6 +26,30 @@ export class Messages extends APIResource {
|
|
|
26
26
|
): APIPromise<MessageListResponse> {
|
|
27
27
|
return this._client.get(path`/numbers/phones/${id}/messages`, { query, ...options });
|
|
28
28
|
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Queues an SMS from one of the caller's numbers that can send. Replaying an
|
|
32
|
+
* Idempotency-Key with the same payload returns the original message, reusing it
|
|
33
|
+
* with a different payload returns 422. 409 capability_unavailable: this number
|
|
34
|
+
* cannot send right now. 422 invalid_recipient / unsupported_destination /
|
|
35
|
+
* body_too_long: the recipient or text does not fit the number. 429
|
|
36
|
+
* daily_limit_reached: the rolling 24 h limit for the account is used up; 429
|
|
37
|
+
* rate_limited: too many sends by the owner in a short window; 429
|
|
38
|
+
* number_rate_limited: too many outbound sends from this number in the configured
|
|
39
|
+
* window (all sends from this number count, including those made on your behalf).
|
|
40
|
+
* 403 send_disabled: self-service SMS send is switched off.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const response = await client.numbers.messages.send(
|
|
45
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
46
|
+
* { body: 'x', to: '+15551230001' },
|
|
47
|
+
* );
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
send(id: string, body: MessageSendParams, options?: RequestOptions): APIPromise<MessageSendResponse> {
|
|
51
|
+
return this._client.post(path`/numbers/phones/${id}/messages`, { body, ...options });
|
|
52
|
+
}
|
|
29
53
|
}
|
|
30
54
|
|
|
31
55
|
export interface MessageListResponse {
|
|
@@ -68,6 +92,44 @@ export namespace MessageListResponse {
|
|
|
68
92
|
}
|
|
69
93
|
}
|
|
70
94
|
|
|
95
|
+
export interface MessageSendResponse {
|
|
96
|
+
data: MessageSendResponse.Data;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export namespace MessageSendResponse {
|
|
100
|
+
export interface Data {
|
|
101
|
+
id: string;
|
|
102
|
+
|
|
103
|
+
body: string | null;
|
|
104
|
+
|
|
105
|
+
createdAt: string;
|
|
106
|
+
|
|
107
|
+
deliveryStatus: string | null;
|
|
108
|
+
|
|
109
|
+
detectedSender: string | null;
|
|
110
|
+
|
|
111
|
+
direction: 'inbound' | 'outbound';
|
|
112
|
+
|
|
113
|
+
esimId: string | null;
|
|
114
|
+
|
|
115
|
+
occurredAt: string;
|
|
116
|
+
|
|
117
|
+
peerKey: string | null;
|
|
118
|
+
|
|
119
|
+
peerNumber: string | null;
|
|
120
|
+
|
|
121
|
+
status:
|
|
122
|
+
| 'received'
|
|
123
|
+
| 'queued'
|
|
124
|
+
| 'claimed'
|
|
125
|
+
| 'sending'
|
|
126
|
+
| 'sent'
|
|
127
|
+
| 'sent_unconfirmed'
|
|
128
|
+
| 'delivered'
|
|
129
|
+
| 'failed';
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
71
133
|
export interface MessageListParams {
|
|
72
134
|
direction?: 'all' | 'inbound' | 'outbound';
|
|
73
135
|
|
|
@@ -78,6 +140,31 @@ export interface MessageListParams {
|
|
|
78
140
|
since?: string;
|
|
79
141
|
}
|
|
80
142
|
|
|
143
|
+
export interface MessageSendParams {
|
|
144
|
+
/**
|
|
145
|
+
* SMS body text, up to 1600 characters (longer bodies are rejected with 400). A
|
|
146
|
+
* number's own limit may be lower and is answered 422 body_too_long.
|
|
147
|
+
*/
|
|
148
|
+
body: string;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Recipient phone number, as E.164 or a US 10/11-digit number. Destinations the
|
|
152
|
+
* number cannot send to are rejected with 422 unsupported_destination, non-numbers
|
|
153
|
+
* with 422 invalid_recipient.
|
|
154
|
+
*/
|
|
155
|
+
to: string;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Request a delivery report. Defaults to false.
|
|
159
|
+
*/
|
|
160
|
+
deliveryReport?: boolean;
|
|
161
|
+
}
|
|
162
|
+
|
|
81
163
|
export declare namespace Messages {
|
|
82
|
-
export {
|
|
164
|
+
export {
|
|
165
|
+
type MessageListResponse as MessageListResponse,
|
|
166
|
+
type MessageSendResponse as MessageSendResponse,
|
|
167
|
+
type MessageListParams as MessageListParams,
|
|
168
|
+
type MessageSendParams as MessageSendParams,
|
|
169
|
+
};
|
|
83
170
|
}
|