@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
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
3
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Manage your Mobilerun Connect Proxies
|
|
6
|
+
*/
|
|
4
7
|
export declare class Proxies extends APIResource {
|
|
5
8
|
/**
|
|
6
9
|
* Returns the proxy identified by the path ID. The response includes the proxy's
|
|
@@ -8,24 +11,38 @@ export declare class Proxies extends APIResource {
|
|
|
8
11
|
*/
|
|
9
12
|
retrieve(id: string, options?: RequestOptions): APIPromise<ProxyRetrieveResponse>;
|
|
10
13
|
/**
|
|
11
|
-
*
|
|
12
|
-
|
|
14
|
+
* Renames the proxy identified by the path ID.
|
|
15
|
+
*/
|
|
16
|
+
update(id: string, body: ProxyUpdateParams, options?: RequestOptions): APIPromise<ProxyUpdateResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Returns proxies owned by the caller. Credentials are omitted from the list.
|
|
13
19
|
*/
|
|
14
20
|
list(query?: ProxyListParams | null | undefined, options?: RequestOptions): APIPromise<ProxyListResponse>;
|
|
15
21
|
/**
|
|
16
22
|
* Provisions a proxy of the requested type for the caller in the selected country.
|
|
17
23
|
*/
|
|
18
|
-
buy(
|
|
24
|
+
buy(body: ProxyBuyParams, options?: RequestOptions): APIPromise<ProxyBuyResponse>;
|
|
19
25
|
/**
|
|
20
26
|
* Deletes the proxy identified by the path ID and releases its provisioning.
|
|
21
27
|
* Returns 404 if no such proxy exists for the caller.
|
|
22
28
|
*/
|
|
23
29
|
cancel(id: string, options?: RequestOptions): APIPromise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* Checks right now that the proxy's upstream accepts a connection through its
|
|
32
|
+
* current session. If the upstream refuses the session and the proxy is a rotating
|
|
33
|
+
* (sticky-session) proxy, the proxy is moved onto a fresh session that has been
|
|
34
|
+
* checked to work; its credentials and country stay the same, its exit IP changes.
|
|
35
|
+
* Intended for callers that are about to depend on the proxy (e.g. while
|
|
36
|
+
* provisioning a phone). After `rotated`, the gateway uses the new session within
|
|
37
|
+
* about 30 seconds. A `refused` or `unreachable` result is not an error: the
|
|
38
|
+
* response describes the proxy's state.
|
|
39
|
+
*/
|
|
40
|
+
ensureHealthy(id: string, options?: RequestOptions): APIPromise<ProxyEnsureHealthyResponse>;
|
|
24
41
|
/**
|
|
25
42
|
* Returns the connection history recorded for this proxy, one item per connection
|
|
26
43
|
* (aggregated across the connection's lifetime). Supports filtering on every
|
|
27
|
-
* property plus ordering and pagination. Returns 503 when
|
|
28
|
-
*
|
|
44
|
+
* property plus ordering and pagination. Returns 503 when connection history is
|
|
45
|
+
* temporarily unavailable.
|
|
29
46
|
*/
|
|
30
47
|
listConnections(id: string, query?: ProxyListConnectionsParams | null | undefined, options?: RequestOptions): APIPromise<ProxyListConnectionsResponse>;
|
|
31
48
|
/**
|
|
@@ -47,6 +64,12 @@ export interface ProxyRetrieveResponse {
|
|
|
47
64
|
country: string;
|
|
48
65
|
createdAt: string;
|
|
49
66
|
host: string;
|
|
67
|
+
/**
|
|
68
|
+
* Display name for the proxy. Set it on create or change it with PATCH; when no
|
|
69
|
+
* name has been set, a label generated from the proxy's country, type, and id is
|
|
70
|
+
* returned instead — so this is never empty.
|
|
71
|
+
*/
|
|
72
|
+
name: string;
|
|
50
73
|
password: string;
|
|
51
74
|
port: number;
|
|
52
75
|
/**
|
|
@@ -67,6 +90,37 @@ export interface ProxyRetrieveResponse {
|
|
|
67
90
|
*/
|
|
68
91
|
paymentUrl?: string | null;
|
|
69
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* A provisioned proxy without its credentials.
|
|
95
|
+
*/
|
|
96
|
+
export interface ProxyUpdateResponse {
|
|
97
|
+
id: string;
|
|
98
|
+
/**
|
|
99
|
+
* ISO 3166-1 alpha-2 country code (lowercase).
|
|
100
|
+
*/
|
|
101
|
+
country: string;
|
|
102
|
+
createdAt: string;
|
|
103
|
+
host: string;
|
|
104
|
+
/**
|
|
105
|
+
* Display name for the proxy. Set it on create or change it with PATCH; when no
|
|
106
|
+
* name has been set, a label generated from the proxy's country, type, and id is
|
|
107
|
+
* returned instead — so this is never empty.
|
|
108
|
+
*/
|
|
109
|
+
name: string;
|
|
110
|
+
port: number;
|
|
111
|
+
/**
|
|
112
|
+
* Lifecycle of a proxy. A freshly created proxy is `checking` while its billing
|
|
113
|
+
* identity is being resolved — clients should poll until a `paymentUrl` or a later
|
|
114
|
+
* status appears — then `provisioning` — or `pending_payment` until the customer
|
|
115
|
+
* completes checkout — and becomes `active` once its upstream is assigned.
|
|
116
|
+
* `cancelling` retains full access through the paid period; when the subscription
|
|
117
|
+
* expires the proxy is `ended`. `error` marks a failed provisioning attempt.
|
|
118
|
+
*/
|
|
119
|
+
status: 'checking' | 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
|
|
120
|
+
type: 'dedicated_residential' | 'residential' | 'mobile';
|
|
121
|
+
username: string;
|
|
122
|
+
billingMode?: 'included' | 'standalone_paid';
|
|
123
|
+
}
|
|
70
124
|
/**
|
|
71
125
|
* A page of proxies.
|
|
72
126
|
*/
|
|
@@ -89,6 +143,12 @@ export declare namespace ProxyListResponse {
|
|
|
89
143
|
country: string;
|
|
90
144
|
createdAt: string;
|
|
91
145
|
host: string;
|
|
146
|
+
/**
|
|
147
|
+
* Display name for the proxy. Set it on create or change it with PATCH; when no
|
|
148
|
+
* name has been set, a label generated from the proxy's country, type, and id is
|
|
149
|
+
* returned instead — so this is never empty.
|
|
150
|
+
*/
|
|
151
|
+
name: string;
|
|
92
152
|
port: number;
|
|
93
153
|
/**
|
|
94
154
|
* Lifecycle of a proxy. A freshly created proxy is `checking` while its billing
|
|
@@ -144,6 +204,12 @@ export interface ProxyBuyResponse {
|
|
|
144
204
|
country: string;
|
|
145
205
|
createdAt: string;
|
|
146
206
|
host: string;
|
|
207
|
+
/**
|
|
208
|
+
* Display name for the proxy. Set it on create or change it with PATCH; when no
|
|
209
|
+
* name has been set, a label generated from the proxy's country, type, and id is
|
|
210
|
+
* returned instead — so this is never empty.
|
|
211
|
+
*/
|
|
212
|
+
name: string;
|
|
147
213
|
password: string;
|
|
148
214
|
port: number;
|
|
149
215
|
/**
|
|
@@ -164,6 +230,20 @@ export interface ProxyBuyResponse {
|
|
|
164
230
|
*/
|
|
165
231
|
paymentUrl?: string | null;
|
|
166
232
|
}
|
|
233
|
+
/**
|
|
234
|
+
* The outcome of an ensure-healthy check.
|
|
235
|
+
*/
|
|
236
|
+
export interface ProxyEnsureHealthyResponse {
|
|
237
|
+
proxyId: string;
|
|
238
|
+
/**
|
|
239
|
+
* `healthy`: the upstream accepted the current session. `rotated`: the session was
|
|
240
|
+
* refused and the proxy now uses a fresh, checked session; retry through the
|
|
241
|
+
* proxy. `refused`: the session was refused and could not be replaced.
|
|
242
|
+
* `unreachable`: the upstream could not be reached; the session was left
|
|
243
|
+
* unchanged.
|
|
244
|
+
*/
|
|
245
|
+
status: 'healthy' | 'rotated' | 'refused' | 'unreachable';
|
|
246
|
+
}
|
|
167
247
|
/**
|
|
168
248
|
* A page of connections.
|
|
169
249
|
*/
|
|
@@ -213,7 +293,7 @@ export declare namespace ProxyListConnectionsResponse {
|
|
|
213
293
|
*/
|
|
214
294
|
protocol: 'tcp' | 'udp' | 'unknown';
|
|
215
295
|
/**
|
|
216
|
-
*
|
|
296
|
+
* Identifier of the upstream provider that served the connection.
|
|
217
297
|
*/
|
|
218
298
|
provider: string;
|
|
219
299
|
/**
|
|
@@ -331,6 +411,15 @@ export declare namespace ProxyPingResponse {
|
|
|
331
411
|
target: string;
|
|
332
412
|
}
|
|
333
413
|
}
|
|
414
|
+
export interface ProxyUpdateParams {
|
|
415
|
+
/**
|
|
416
|
+
* New display name, up to 64 characters excluding surrounding whitespace, and
|
|
417
|
+
* containing no NUL. Send null (or an empty/whitespace-only string) to drop a
|
|
418
|
+
* custom name and go back to the generated label. Omit to leave the name
|
|
419
|
+
* unchanged.
|
|
420
|
+
*/
|
|
421
|
+
name?: string | null;
|
|
422
|
+
}
|
|
334
423
|
export interface ProxyListParams {
|
|
335
424
|
/**
|
|
336
425
|
* Filter to proxies in this country (ISO 3166-1 alpha-2, lowercase).
|
|
@@ -347,20 +436,16 @@ export interface ProxyListParams {
|
|
|
347
436
|
}
|
|
348
437
|
export interface ProxyBuyParams {
|
|
349
438
|
/**
|
|
350
|
-
*
|
|
439
|
+
* ISO 3166-1 alpha-2 country code to provision the proxy in.
|
|
351
440
|
*/
|
|
352
441
|
country: string;
|
|
353
|
-
/**
|
|
354
|
-
* Body param
|
|
355
|
-
*/
|
|
356
442
|
type: 'dedicated_residential' | 'residential' | 'mobile';
|
|
357
443
|
/**
|
|
358
|
-
*
|
|
359
|
-
*
|
|
360
|
-
*
|
|
361
|
-
* request parameters.
|
|
444
|
+
* Display name for the proxy, up to 64 characters excluding surrounding
|
|
445
|
+
* whitespace, and containing no NUL. Omit it (or send only whitespace) to get a
|
|
446
|
+
* generated label built from the country, type, and id.
|
|
362
447
|
*/
|
|
363
|
-
|
|
448
|
+
name?: string;
|
|
364
449
|
}
|
|
365
450
|
export interface ProxyListConnectionsParams {
|
|
366
451
|
/**
|
|
@@ -442,7 +527,7 @@ export interface ProxyListConnectionsParams {
|
|
|
442
527
|
*/
|
|
443
528
|
protocol?: 'tcp' | 'udp' | 'unknown';
|
|
444
529
|
/**
|
|
445
|
-
* Filter to connections served by this upstream provider.
|
|
530
|
+
* Filter to connections served by this upstream provider identifier.
|
|
446
531
|
*/
|
|
447
532
|
provider?: string;
|
|
448
533
|
/**
|
|
@@ -467,6 +552,6 @@ export interface ProxyListConnectionsParams {
|
|
|
467
552
|
userId?: string;
|
|
468
553
|
}
|
|
469
554
|
export declare namespace Proxies {
|
|
470
|
-
export { type ProxyRetrieveResponse as ProxyRetrieveResponse, type ProxyListResponse as ProxyListResponse, type ProxyBuyResponse as ProxyBuyResponse, type ProxyListConnectionsResponse as ProxyListConnectionsResponse, type ProxyPingResponse as ProxyPingResponse, type ProxyListParams as ProxyListParams, type ProxyBuyParams as ProxyBuyParams, type ProxyListConnectionsParams as ProxyListConnectionsParams, };
|
|
555
|
+
export { type ProxyRetrieveResponse as ProxyRetrieveResponse, type ProxyUpdateResponse as ProxyUpdateResponse, type ProxyListResponse as ProxyListResponse, type ProxyBuyResponse as ProxyBuyResponse, type ProxyEnsureHealthyResponse as ProxyEnsureHealthyResponse, type ProxyListConnectionsResponse as ProxyListConnectionsResponse, type ProxyPingResponse as ProxyPingResponse, type ProxyUpdateParams as ProxyUpdateParams, type ProxyListParams as ProxyListParams, type ProxyBuyParams as ProxyBuyParams, type ProxyListConnectionsParams as ProxyListConnectionsParams, };
|
|
471
556
|
}
|
|
472
557
|
//# sourceMappingURL=proxies.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proxies.d.mts","sourceRoot":"","sources":["../../src/resources/connect/proxies.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;OAGG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAIjF
|
|
1
|
+
{"version":3,"file":"proxies.d.mts","sourceRoot":"","sources":["../../src/resources/connect/proxies.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EA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QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,MAAM,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAE7B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import { APIPromise } from "../../core/api-promise.js";
|
|
3
3
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* Manage your Mobilerun Connect Proxies
|
|
6
|
+
*/
|
|
4
7
|
export declare class Proxies extends APIResource {
|
|
5
8
|
/**
|
|
6
9
|
* Returns the proxy identified by the path ID. The response includes the proxy's
|
|
@@ -8,24 +11,38 @@ export declare class Proxies extends APIResource {
|
|
|
8
11
|
*/
|
|
9
12
|
retrieve(id: string, options?: RequestOptions): APIPromise<ProxyRetrieveResponse>;
|
|
10
13
|
/**
|
|
11
|
-
*
|
|
12
|
-
|
|
14
|
+
* Renames the proxy identified by the path ID.
|
|
15
|
+
*/
|
|
16
|
+
update(id: string, body: ProxyUpdateParams, options?: RequestOptions): APIPromise<ProxyUpdateResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Returns proxies owned by the caller. Credentials are omitted from the list.
|
|
13
19
|
*/
|
|
14
20
|
list(query?: ProxyListParams | null | undefined, options?: RequestOptions): APIPromise<ProxyListResponse>;
|
|
15
21
|
/**
|
|
16
22
|
* Provisions a proxy of the requested type for the caller in the selected country.
|
|
17
23
|
*/
|
|
18
|
-
buy(
|
|
24
|
+
buy(body: ProxyBuyParams, options?: RequestOptions): APIPromise<ProxyBuyResponse>;
|
|
19
25
|
/**
|
|
20
26
|
* Deletes the proxy identified by the path ID and releases its provisioning.
|
|
21
27
|
* Returns 404 if no such proxy exists for the caller.
|
|
22
28
|
*/
|
|
23
29
|
cancel(id: string, options?: RequestOptions): APIPromise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* Checks right now that the proxy's upstream accepts a connection through its
|
|
32
|
+
* current session. If the upstream refuses the session and the proxy is a rotating
|
|
33
|
+
* (sticky-session) proxy, the proxy is moved onto a fresh session that has been
|
|
34
|
+
* checked to work; its credentials and country stay the same, its exit IP changes.
|
|
35
|
+
* Intended for callers that are about to depend on the proxy (e.g. while
|
|
36
|
+
* provisioning a phone). After `rotated`, the gateway uses the new session within
|
|
37
|
+
* about 30 seconds. A `refused` or `unreachable` result is not an error: the
|
|
38
|
+
* response describes the proxy's state.
|
|
39
|
+
*/
|
|
40
|
+
ensureHealthy(id: string, options?: RequestOptions): APIPromise<ProxyEnsureHealthyResponse>;
|
|
24
41
|
/**
|
|
25
42
|
* Returns the connection history recorded for this proxy, one item per connection
|
|
26
43
|
* (aggregated across the connection's lifetime). Supports filtering on every
|
|
27
|
-
* property plus ordering and pagination. Returns 503 when
|
|
28
|
-
*
|
|
44
|
+
* property plus ordering and pagination. Returns 503 when connection history is
|
|
45
|
+
* temporarily unavailable.
|
|
29
46
|
*/
|
|
30
47
|
listConnections(id: string, query?: ProxyListConnectionsParams | null | undefined, options?: RequestOptions): APIPromise<ProxyListConnectionsResponse>;
|
|
31
48
|
/**
|
|
@@ -47,6 +64,12 @@ export interface ProxyRetrieveResponse {
|
|
|
47
64
|
country: string;
|
|
48
65
|
createdAt: string;
|
|
49
66
|
host: string;
|
|
67
|
+
/**
|
|
68
|
+
* Display name for the proxy. Set it on create or change it with PATCH; when no
|
|
69
|
+
* name has been set, a label generated from the proxy's country, type, and id is
|
|
70
|
+
* returned instead — so this is never empty.
|
|
71
|
+
*/
|
|
72
|
+
name: string;
|
|
50
73
|
password: string;
|
|
51
74
|
port: number;
|
|
52
75
|
/**
|
|
@@ -67,6 +90,37 @@ export interface ProxyRetrieveResponse {
|
|
|
67
90
|
*/
|
|
68
91
|
paymentUrl?: string | null;
|
|
69
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* A provisioned proxy without its credentials.
|
|
95
|
+
*/
|
|
96
|
+
export interface ProxyUpdateResponse {
|
|
97
|
+
id: string;
|
|
98
|
+
/**
|
|
99
|
+
* ISO 3166-1 alpha-2 country code (lowercase).
|
|
100
|
+
*/
|
|
101
|
+
country: string;
|
|
102
|
+
createdAt: string;
|
|
103
|
+
host: string;
|
|
104
|
+
/**
|
|
105
|
+
* Display name for the proxy. Set it on create or change it with PATCH; when no
|
|
106
|
+
* name has been set, a label generated from the proxy's country, type, and id is
|
|
107
|
+
* returned instead — so this is never empty.
|
|
108
|
+
*/
|
|
109
|
+
name: string;
|
|
110
|
+
port: number;
|
|
111
|
+
/**
|
|
112
|
+
* Lifecycle of a proxy. A freshly created proxy is `checking` while its billing
|
|
113
|
+
* identity is being resolved — clients should poll until a `paymentUrl` or a later
|
|
114
|
+
* status appears — then `provisioning` — or `pending_payment` until the customer
|
|
115
|
+
* completes checkout — and becomes `active` once its upstream is assigned.
|
|
116
|
+
* `cancelling` retains full access through the paid period; when the subscription
|
|
117
|
+
* expires the proxy is `ended`. `error` marks a failed provisioning attempt.
|
|
118
|
+
*/
|
|
119
|
+
status: 'checking' | 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
|
|
120
|
+
type: 'dedicated_residential' | 'residential' | 'mobile';
|
|
121
|
+
username: string;
|
|
122
|
+
billingMode?: 'included' | 'standalone_paid';
|
|
123
|
+
}
|
|
70
124
|
/**
|
|
71
125
|
* A page of proxies.
|
|
72
126
|
*/
|
|
@@ -89,6 +143,12 @@ export declare namespace ProxyListResponse {
|
|
|
89
143
|
country: string;
|
|
90
144
|
createdAt: string;
|
|
91
145
|
host: string;
|
|
146
|
+
/**
|
|
147
|
+
* Display name for the proxy. Set it on create or change it with PATCH; when no
|
|
148
|
+
* name has been set, a label generated from the proxy's country, type, and id is
|
|
149
|
+
* returned instead — so this is never empty.
|
|
150
|
+
*/
|
|
151
|
+
name: string;
|
|
92
152
|
port: number;
|
|
93
153
|
/**
|
|
94
154
|
* Lifecycle of a proxy. A freshly created proxy is `checking` while its billing
|
|
@@ -144,6 +204,12 @@ export interface ProxyBuyResponse {
|
|
|
144
204
|
country: string;
|
|
145
205
|
createdAt: string;
|
|
146
206
|
host: string;
|
|
207
|
+
/**
|
|
208
|
+
* Display name for the proxy. Set it on create or change it with PATCH; when no
|
|
209
|
+
* name has been set, a label generated from the proxy's country, type, and id is
|
|
210
|
+
* returned instead — so this is never empty.
|
|
211
|
+
*/
|
|
212
|
+
name: string;
|
|
147
213
|
password: string;
|
|
148
214
|
port: number;
|
|
149
215
|
/**
|
|
@@ -164,6 +230,20 @@ export interface ProxyBuyResponse {
|
|
|
164
230
|
*/
|
|
165
231
|
paymentUrl?: string | null;
|
|
166
232
|
}
|
|
233
|
+
/**
|
|
234
|
+
* The outcome of an ensure-healthy check.
|
|
235
|
+
*/
|
|
236
|
+
export interface ProxyEnsureHealthyResponse {
|
|
237
|
+
proxyId: string;
|
|
238
|
+
/**
|
|
239
|
+
* `healthy`: the upstream accepted the current session. `rotated`: the session was
|
|
240
|
+
* refused and the proxy now uses a fresh, checked session; retry through the
|
|
241
|
+
* proxy. `refused`: the session was refused and could not be replaced.
|
|
242
|
+
* `unreachable`: the upstream could not be reached; the session was left
|
|
243
|
+
* unchanged.
|
|
244
|
+
*/
|
|
245
|
+
status: 'healthy' | 'rotated' | 'refused' | 'unreachable';
|
|
246
|
+
}
|
|
167
247
|
/**
|
|
168
248
|
* A page of connections.
|
|
169
249
|
*/
|
|
@@ -213,7 +293,7 @@ export declare namespace ProxyListConnectionsResponse {
|
|
|
213
293
|
*/
|
|
214
294
|
protocol: 'tcp' | 'udp' | 'unknown';
|
|
215
295
|
/**
|
|
216
|
-
*
|
|
296
|
+
* Identifier of the upstream provider that served the connection.
|
|
217
297
|
*/
|
|
218
298
|
provider: string;
|
|
219
299
|
/**
|
|
@@ -331,6 +411,15 @@ export declare namespace ProxyPingResponse {
|
|
|
331
411
|
target: string;
|
|
332
412
|
}
|
|
333
413
|
}
|
|
414
|
+
export interface ProxyUpdateParams {
|
|
415
|
+
/**
|
|
416
|
+
* New display name, up to 64 characters excluding surrounding whitespace, and
|
|
417
|
+
* containing no NUL. Send null (or an empty/whitespace-only string) to drop a
|
|
418
|
+
* custom name and go back to the generated label. Omit to leave the name
|
|
419
|
+
* unchanged.
|
|
420
|
+
*/
|
|
421
|
+
name?: string | null;
|
|
422
|
+
}
|
|
334
423
|
export interface ProxyListParams {
|
|
335
424
|
/**
|
|
336
425
|
* Filter to proxies in this country (ISO 3166-1 alpha-2, lowercase).
|
|
@@ -347,20 +436,16 @@ export interface ProxyListParams {
|
|
|
347
436
|
}
|
|
348
437
|
export interface ProxyBuyParams {
|
|
349
438
|
/**
|
|
350
|
-
*
|
|
439
|
+
* ISO 3166-1 alpha-2 country code to provision the proxy in.
|
|
351
440
|
*/
|
|
352
441
|
country: string;
|
|
353
|
-
/**
|
|
354
|
-
* Body param
|
|
355
|
-
*/
|
|
356
442
|
type: 'dedicated_residential' | 'residential' | 'mobile';
|
|
357
443
|
/**
|
|
358
|
-
*
|
|
359
|
-
*
|
|
360
|
-
*
|
|
361
|
-
* request parameters.
|
|
444
|
+
* Display name for the proxy, up to 64 characters excluding surrounding
|
|
445
|
+
* whitespace, and containing no NUL. Omit it (or send only whitespace) to get a
|
|
446
|
+
* generated label built from the country, type, and id.
|
|
362
447
|
*/
|
|
363
|
-
|
|
448
|
+
name?: string;
|
|
364
449
|
}
|
|
365
450
|
export interface ProxyListConnectionsParams {
|
|
366
451
|
/**
|
|
@@ -442,7 +527,7 @@ export interface ProxyListConnectionsParams {
|
|
|
442
527
|
*/
|
|
443
528
|
protocol?: 'tcp' | 'udp' | 'unknown';
|
|
444
529
|
/**
|
|
445
|
-
* Filter to connections served by this upstream provider.
|
|
530
|
+
* Filter to connections served by this upstream provider identifier.
|
|
446
531
|
*/
|
|
447
532
|
provider?: string;
|
|
448
533
|
/**
|
|
@@ -467,6 +552,6 @@ export interface ProxyListConnectionsParams {
|
|
|
467
552
|
userId?: string;
|
|
468
553
|
}
|
|
469
554
|
export declare namespace Proxies {
|
|
470
|
-
export { type ProxyRetrieveResponse as ProxyRetrieveResponse, type ProxyListResponse as ProxyListResponse, type ProxyBuyResponse as ProxyBuyResponse, type ProxyListConnectionsResponse as ProxyListConnectionsResponse, type ProxyPingResponse as ProxyPingResponse, type ProxyListParams as ProxyListParams, type ProxyBuyParams as ProxyBuyParams, type ProxyListConnectionsParams as ProxyListConnectionsParams, };
|
|
555
|
+
export { type ProxyRetrieveResponse as ProxyRetrieveResponse, type ProxyUpdateResponse as ProxyUpdateResponse, type ProxyListResponse as ProxyListResponse, type ProxyBuyResponse as ProxyBuyResponse, type ProxyEnsureHealthyResponse as ProxyEnsureHealthyResponse, type ProxyListConnectionsResponse as ProxyListConnectionsResponse, type ProxyPingResponse as ProxyPingResponse, type ProxyUpdateParams as ProxyUpdateParams, type ProxyListParams as ProxyListParams, type ProxyBuyParams as ProxyBuyParams, type ProxyListConnectionsParams as ProxyListConnectionsParams, };
|
|
471
556
|
}
|
|
472
557
|
//# sourceMappingURL=proxies.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proxies.d.ts","sourceRoot":"","sources":["../../src/resources/connect/proxies.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;OAGG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAIjF
|
|
1
|
+
{"version":3,"file":"proxies.d.ts","sourceRoot":"","sources":["../../src/resources/connect/proxies.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;OAGG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAIjF;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAItG;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;IAIhC;;OAEG;IACH,GAAG,CAAC,IAAI,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAIjF;;;OAGG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,I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I,eAAe,EACvC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -5,6 +5,9 @@ exports.Proxies = void 0;
|
|
|
5
5
|
const resource_1 = require("../../core/resource.js");
|
|
6
6
|
const headers_1 = require("../../internal/headers.js");
|
|
7
7
|
const path_1 = require("../../internal/utils/path.js");
|
|
8
|
+
/**
|
|
9
|
+
* Manage your Mobilerun Connect Proxies
|
|
10
|
+
*/
|
|
8
11
|
class Proxies extends resource_1.APIResource {
|
|
9
12
|
/**
|
|
10
13
|
* Returns the proxy identified by the path ID. The response includes the proxy's
|
|
@@ -14,8 +17,13 @@ class Proxies extends resource_1.APIResource {
|
|
|
14
17
|
return this._client.get((0, path_1.path) `/connect/proxies/${id}`, options);
|
|
15
18
|
}
|
|
16
19
|
/**
|
|
17
|
-
*
|
|
18
|
-
|
|
20
|
+
* Renames the proxy identified by the path ID.
|
|
21
|
+
*/
|
|
22
|
+
update(id, body, options) {
|
|
23
|
+
return this._client.patch((0, path_1.path) `/connect/proxies/${id}`, { body, ...options });
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Returns proxies owned by the caller. Credentials are omitted from the list.
|
|
19
27
|
*/
|
|
20
28
|
list(query = {}, options) {
|
|
21
29
|
return this._client.get('/connect/proxies', { query, ...options });
|
|
@@ -23,16 +31,8 @@ class Proxies extends resource_1.APIResource {
|
|
|
23
31
|
/**
|
|
24
32
|
* Provisions a proxy of the requested type for the caller in the selected country.
|
|
25
33
|
*/
|
|
26
|
-
buy(
|
|
27
|
-
|
|
28
|
-
return this._client.post('/connect/proxies', {
|
|
29
|
-
body,
|
|
30
|
-
...options,
|
|
31
|
-
headers: (0, headers_1.buildHeaders)([
|
|
32
|
-
{ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
33
|
-
options?.headers,
|
|
34
|
-
]),
|
|
35
|
-
});
|
|
34
|
+
buy(body, options) {
|
|
35
|
+
return this._client.post('/connect/proxies', { body, ...options });
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* Deletes the proxy identified by the path ID and releases its provisioning.
|
|
@@ -44,11 +44,24 @@ class Proxies extends resource_1.APIResource {
|
|
|
44
44
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* Checks right now that the proxy's upstream accepts a connection through its
|
|
49
|
+
* current session. If the upstream refuses the session and the proxy is a rotating
|
|
50
|
+
* (sticky-session) proxy, the proxy is moved onto a fresh session that has been
|
|
51
|
+
* checked to work; its credentials and country stay the same, its exit IP changes.
|
|
52
|
+
* Intended for callers that are about to depend on the proxy (e.g. while
|
|
53
|
+
* provisioning a phone). After `rotated`, the gateway uses the new session within
|
|
54
|
+
* about 30 seconds. A `refused` or `unreachable` result is not an error: the
|
|
55
|
+
* response describes the proxy's state.
|
|
56
|
+
*/
|
|
57
|
+
ensureHealthy(id, options) {
|
|
58
|
+
return this._client.post((0, path_1.path) `/connect/proxies/${id}/ensure-healthy`, options);
|
|
59
|
+
}
|
|
47
60
|
/**
|
|
48
61
|
* Returns the connection history recorded for this proxy, one item per connection
|
|
49
62
|
* (aggregated across the connection's lifetime). Supports filtering on every
|
|
50
|
-
* property plus ordering and pagination. Returns 503 when
|
|
51
|
-
*
|
|
63
|
+
* property plus ordering and pagination. Returns 503 when connection history is
|
|
64
|
+
* temporarily unavailable.
|
|
52
65
|
*/
|
|
53
66
|
listConnections(id, query = {}, options) {
|
|
54
67
|
return this._client.get((0, path_1.path) `/connect/proxies/${id}/connections`, { query, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proxies.js","sourceRoot":"","sources":["../../src/resources/connect/proxies.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ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AAA,oBAAoB,EAAE,EAAE,EAAE;YACvD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,aAAa,CAAC,EAAU,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;;;;OAKG;IACH,eAAe,CACb,EAAU,EACV,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,cAAc,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;;;;OAKG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;CACF;AAjFD,0BAiFC"}
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
3
|
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
4
|
import { path } from "../../internal/utils/path.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Manage your Mobilerun Connect Proxies
|
|
7
|
+
*/
|
|
5
8
|
export class Proxies extends APIResource {
|
|
6
9
|
/**
|
|
7
10
|
* Returns the proxy identified by the path ID. The response includes the proxy's
|
|
@@ -11,8 +14,13 @@ export class Proxies extends APIResource {
|
|
|
11
14
|
return this._client.get(path `/connect/proxies/${id}`, options);
|
|
12
15
|
}
|
|
13
16
|
/**
|
|
14
|
-
*
|
|
15
|
-
|
|
17
|
+
* Renames the proxy identified by the path ID.
|
|
18
|
+
*/
|
|
19
|
+
update(id, body, options) {
|
|
20
|
+
return this._client.patch(path `/connect/proxies/${id}`, { body, ...options });
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Returns proxies owned by the caller. Credentials are omitted from the list.
|
|
16
24
|
*/
|
|
17
25
|
list(query = {}, options) {
|
|
18
26
|
return this._client.get('/connect/proxies', { query, ...options });
|
|
@@ -20,16 +28,8 @@ export class Proxies extends APIResource {
|
|
|
20
28
|
/**
|
|
21
29
|
* Provisions a proxy of the requested type for the caller in the selected country.
|
|
22
30
|
*/
|
|
23
|
-
buy(
|
|
24
|
-
|
|
25
|
-
return this._client.post('/connect/proxies', {
|
|
26
|
-
body,
|
|
27
|
-
...options,
|
|
28
|
-
headers: buildHeaders([
|
|
29
|
-
{ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
30
|
-
options?.headers,
|
|
31
|
-
]),
|
|
32
|
-
});
|
|
31
|
+
buy(body, options) {
|
|
32
|
+
return this._client.post('/connect/proxies', { body, ...options });
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* Deletes the proxy identified by the path ID and releases its provisioning.
|
|
@@ -41,11 +41,24 @@ export class Proxies extends APIResource {
|
|
|
41
41
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* Checks right now that the proxy's upstream accepts a connection through its
|
|
46
|
+
* current session. If the upstream refuses the session and the proxy is a rotating
|
|
47
|
+
* (sticky-session) proxy, the proxy is moved onto a fresh session that has been
|
|
48
|
+
* checked to work; its credentials and country stay the same, its exit IP changes.
|
|
49
|
+
* Intended for callers that are about to depend on the proxy (e.g. while
|
|
50
|
+
* provisioning a phone). After `rotated`, the gateway uses the new session within
|
|
51
|
+
* about 30 seconds. A `refused` or `unreachable` result is not an error: the
|
|
52
|
+
* response describes the proxy's state.
|
|
53
|
+
*/
|
|
54
|
+
ensureHealthy(id, options) {
|
|
55
|
+
return this._client.post(path `/connect/proxies/${id}/ensure-healthy`, options);
|
|
56
|
+
}
|
|
44
57
|
/**
|
|
45
58
|
* Returns the connection history recorded for this proxy, one item per connection
|
|
46
59
|
* (aggregated across the connection's lifetime). Supports filtering on every
|
|
47
|
-
* property plus ordering and pagination. Returns 503 when
|
|
48
|
-
*
|
|
60
|
+
* property plus ordering and pagination. Returns 503 when connection history is
|
|
61
|
+
* temporarily unavailable.
|
|
49
62
|
*/
|
|
50
63
|
listConnections(id, query = {}, options) {
|
|
51
64
|
return this._client.get(path `/connect/proxies/${id}/connections`, { query, ...options });
|