@mobilerun/sdk 5.4.0 → 5.6.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 +17 -0
- package/client.d.mts +10 -13
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -13
- package/client.d.ts.map +1 -1
- package/client.js +1 -3
- package/client.js.map +1 -1
- package/client.mjs +2 -4
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +23 -12
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +23 -12
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +8 -3
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +8 -3
- package/resources/apps.mjs.map +1 -1
- package/resources/assistant/conversations.d.mts +33 -21
- package/resources/assistant/conversations.d.mts.map +1 -1
- package/resources/assistant/conversations.d.ts +33 -21
- package/resources/assistant/conversations.d.ts.map +1 -1
- package/resources/assistant/conversations.js +16 -15
- package/resources/assistant/conversations.js.map +1 -1
- package/resources/assistant/conversations.mjs +16 -15
- 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 +118 -19
- package/resources/connect/proxies.d.mts.map +1 -1
- package/resources/connect/proxies.d.ts +118 -19
- package/resources/connect/proxies.d.ts.map +1 -1
- package/resources/connect/proxies.js +19 -0
- package/resources/connect/proxies.js.map +1 -1
- package/resources/connect/proxies.mjs +19 -0
- package/resources/connect/proxies.mjs.map +1 -1
- package/resources/devices/apps.d.mts +37 -17
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +37 -17
- package/resources/devices/apps.d.ts.map +1 -1
- package/resources/devices/apps.js +15 -14
- package/resources/devices/apps.js.map +1 -1
- package/resources/devices/apps.mjs +15 -14
- package/resources/devices/apps.mjs.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 +81 -27
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +81 -27
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +24 -11
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +24 -11
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/index.d.mts +2 -1
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +2 -1
- 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 +9 -3
- package/resources/devices/keyboard.d.mts.map +1 -1
- package/resources/devices/keyboard.d.ts +9 -3
- package/resources/devices/keyboard.d.ts.map +1 -1
- package/resources/devices/keyboard.js +3 -3
- package/resources/devices/keyboard.mjs +3 -3
- package/resources/devices/recordings.d.mts +13 -0
- package/resources/devices/recordings.d.mts.map +1 -1
- package/resources/devices/recordings.d.ts +13 -0
- package/resources/devices/recordings.d.ts.map +1 -1
- package/resources/devices/traffic-sessions.d.mts +163 -0
- package/resources/devices/traffic-sessions.d.mts.map +1 -0
- package/resources/devices/traffic-sessions.d.ts +163 -0
- package/resources/devices/traffic-sessions.d.ts.map +1 -0
- package/resources/devices/traffic-sessions.js +37 -0
- package/resources/devices/traffic-sessions.js.map +1 -0
- package/resources/devices/traffic-sessions.mjs +33 -0
- package/resources/devices/traffic-sessions.mjs.map +1 -0
- package/resources/files.d.mts +77 -19
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +77 -19
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +2 -10
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +2 -10
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts +5 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -2
- package/resources/index.mjs.map +1 -1
- package/resources/mailboxes/connections.d.mts +64 -0
- package/resources/mailboxes/connections.d.mts.map +1 -0
- package/resources/mailboxes/connections.d.ts +64 -0
- package/resources/mailboxes/connections.d.ts.map +1 -0
- package/resources/mailboxes/connections.js +42 -0
- package/resources/mailboxes/connections.js.map +1 -0
- package/resources/mailboxes/connections.mjs +38 -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 +107 -50
- package/resources/mailboxes/mailboxes.d.mts.map +1 -1
- package/resources/mailboxes/mailboxes.d.ts +107 -50
- package/resources/mailboxes/mailboxes.d.ts.map +1 -1
- package/resources/mailboxes/mailboxes.js +34 -24
- package/resources/mailboxes/mailboxes.js.map +1 -1
- package/resources/mailboxes/mailboxes.mjs +34 -24
- package/resources/mailboxes/mailboxes.mjs.map +1 -1
- package/resources/mailboxes/messages.d.mts +2 -2
- package/resources/mailboxes/messages.d.ts +2 -2
- package/resources/mailboxes/messages.js +2 -2
- package/resources/mailboxes/messages.mjs +2 -2
- package/resources/messages/conversations.d.mts +4 -15
- package/resources/messages/conversations.d.mts.map +1 -1
- package/resources/messages/conversations.d.ts +4 -15
- package/resources/messages/conversations.d.ts.map +1 -1
- package/resources/messages/conversations.js +4 -15
- package/resources/messages/conversations.js.map +1 -1
- package/resources/messages/conversations.mjs +4 -15
- package/resources/messages/conversations.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 +28 -5
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +28 -5
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +11 -4
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +11 -4
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/notifications.d.mts +27 -1
- package/resources/notifications.d.mts.map +1 -1
- package/resources/notifications.d.ts +27 -1
- package/resources/notifications.d.ts.map +1 -1
- package/resources/notifications.js +17 -0
- package/resources/notifications.js.map +1 -1
- package/resources/notifications.mjs +17 -0
- package/resources/notifications.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 +60 -1
- package/resources/numbers/messages.d.mts.map +1 -1
- package/resources/numbers/messages.d.ts +60 -1
- package/resources/numbers/messages.d.ts.map +1 -1
- package/resources/numbers/messages.js +21 -0
- package/resources/numbers/messages.js.map +1 -1
- package/resources/numbers/messages.mjs +21 -0
- package/resources/numbers/messages.mjs.map +1 -1
- package/resources/numbers/numbers.d.mts +167 -46
- package/resources/numbers/numbers.d.mts.map +1 -1
- package/resources/numbers/numbers.d.ts +167 -46
- package/resources/numbers/numbers.d.ts.map +1 -1
- package/resources/numbers/numbers.js +25 -40
- package/resources/numbers/numbers.js.map +1 -1
- package/resources/numbers/numbers.mjs +26 -41
- package/resources/numbers/numbers.mjs.map +1 -1
- package/resources/store/apps.d.mts +23 -2
- package/resources/store/apps.d.mts.map +1 -1
- package/resources/store/apps.d.ts +23 -2
- package/resources/store/apps.d.ts.map +1 -1
- package/resources/tasks/tasks.d.mts +84 -75
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +84 -75
- 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 +1 -0
- package/resources/webhooks/index.d.mts.map +1 -1
- package/resources/webhooks/index.d.ts +1 -0
- 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 +280 -71
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +280 -71
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js +27 -60
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +27 -60
- 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 +66 -4
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +66 -4
- package/resources/workflows/events.d.ts.map +1 -1
- package/resources/workflows/executions/executions.d.mts +334 -0
- package/resources/workflows/executions/executions.d.mts.map +1 -0
- package/resources/workflows/executions/executions.d.ts +334 -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 -190
- package/resources/workflows/executions.d.mts.map +1 -1
- package/resources/workflows/executions.d.ts +1 -190
- package/resources/workflows/executions.d.ts.map +1 -1
- package/resources/workflows/executions.js +2 -36
- package/resources/workflows/executions.js.map +1 -1
- package/resources/workflows/executions.mjs +1 -34
- package/resources/workflows/executions.mjs.map +1 -1
- package/resources/workflows/flows/actions.d.mts +58 -0
- package/resources/workflows/flows/actions.d.mts.map +1 -1
- package/resources/workflows/flows/actions.d.ts +58 -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 +666 -15
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +666 -15
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +86 -1
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +86 -1
- 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 +118 -6
- package/resources/workflows/triggers.d.mts.map +1 -1
- package/resources/workflows/triggers.d.ts +118 -6
- package/resources/workflows/triggers.d.ts.map +1 -1
- package/resources/workflows/triggers.js +14 -0
- package/resources/workflows/triggers.js.map +1 -1
- package/resources/workflows/triggers.mjs +14 -0
- 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 +22 -42
- package/src/resources/apps.ts +24 -12
- package/src/resources/assistant/conversations.ts +50 -31
- package/src/resources/connect/connect.ts +6 -0
- package/src/resources/connect/index.ts +3 -0
- package/src/resources/connect/proxies.ts +146 -18
- package/src/resources/devices/apps.ts +41 -17
- package/src/resources/devices/browser.ts +9 -3
- package/src/resources/devices/devices.ts +138 -34
- package/src/resources/devices/index.ts +13 -0
- package/src/resources/devices/keyboard.ts +10 -3
- package/src/resources/devices/recordings.ts +14 -0
- package/src/resources/devices/traffic-sessions.ts +282 -0
- package/src/resources/files.ts +122 -29
- package/src/resources/index.ts +13 -20
- package/src/resources/mailboxes/connections.ts +91 -0
- package/src/resources/mailboxes/index.ts +7 -0
- package/src/resources/mailboxes/mailboxes.ts +190 -49
- package/src/resources/mailboxes/messages.ts +2 -2
- package/src/resources/messages/conversations.ts +4 -15
- package/src/resources/messages/index.ts +6 -1
- package/src/resources/messages/messages.ts +57 -5
- package/src/resources/notifications.ts +37 -0
- package/src/resources/numbers/index.ts +9 -1
- package/src/resources/numbers/messages.ts +92 -1
- package/src/resources/numbers/numbers.ts +197 -55
- package/src/resources/store/apps.ts +291 -2
- package/src/resources/tasks/tasks.ts +126 -93
- package/src/resources/webhooks/deliveries.ts +26 -31
- package/src/resources/webhooks/index.ts +6 -0
- package/src/resources/webhooks/integrations.ts +107 -0
- package/src/resources/webhooks/webhooks.ts +328 -71
- package/src/resources/workflows/action-catalog.ts +11 -3
- package/src/resources/workflows/actions/actions.ts +9 -5
- package/src/resources/workflows/events.ts +86 -4
- package/src/resources/workflows/executions/executions.ts +514 -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 -296
- package/src/resources/workflows/flows/actions.ts +72 -0
- package/src/resources/workflows/flows/flows.ts +1058 -129
- package/src/resources/workflows/flows/index.ts +12 -0
- package/src/resources/workflows/index.ts +13 -1
- package/src/resources/workflows/triggers.ts +140 -6
- package/src/resources/workflows/workflows.ts +34 -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/esims/esims.d.mts +0 -566
- package/resources/esims/esims.d.mts.map +0 -1
- package/resources/esims/esims.d.ts +0 -566
- package/resources/esims/esims.d.ts.map +0 -1
- package/resources/esims/esims.js +0 -205
- package/resources/esims/esims.js.map +0 -1
- package/resources/esims/esims.mjs +0 -200
- package/resources/esims/esims.mjs.map +0 -1
- package/resources/esims/index.d.mts +0 -3
- package/resources/esims/index.d.mts.map +0 -1
- package/resources/esims/index.d.ts +0 -3
- package/resources/esims/index.d.ts.map +0 -1
- package/resources/esims/index.js +0 -9
- package/resources/esims/index.js.map +0 -1
- package/resources/esims/index.mjs +0 -4
- package/resources/esims/index.mjs.map +0 -1
- package/resources/esims/messages.d.mts +0 -106
- package/resources/esims/messages.d.mts.map +0 -1
- package/resources/esims/messages.d.ts +0 -106
- package/resources/esims/messages.d.ts.map +0 -1
- package/resources/esims/messages.js +0 -37
- package/resources/esims/messages.js.map +0 -1
- package/resources/esims/messages.mjs +0 -33
- package/resources/esims/messages.mjs.map +0 -1
- package/resources/esims.d.mts +0 -2
- package/resources/esims.d.mts.map +0 -1
- package/resources/esims.d.ts +0 -2
- package/resources/esims.d.ts.map +0 -1
- package/resources/esims.js +0 -6
- package/resources/esims.js.map +0 -1
- package/resources/esims.mjs +0 -3
- package/resources/esims.mjs.map +0 -1
- package/src/resources/esims/esims.ts +0 -1019
- package/src/resources/esims/index.ts +0 -28
- package/src/resources/esims/messages.ts +0 -187
- package/src/resources/esims.ts +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversations.d.ts","sourceRoot":"","sources":["../../src/resources/assistant/conversations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,MAAM,EAAE,gCAA6B;AAE9C,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"conversations.d.ts","sourceRoot":"","sources":["../../src/resources/assistant/conversations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,MAAM,EAAE,gCAA6B;AAE9C,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;OAMG;IACH,MAAM,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,C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CAAkC,IAAI,kCAAkC,EAC7E,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -10,18 +10,11 @@ class Conversations extends resource_1.APIResource {
|
|
|
10
10
|
* Creates a titled agent session. Setup may occur on the first prompt. Idempotent
|
|
11
11
|
* via the `Idempotency-Key` header — a duplicate submit by the same authenticated
|
|
12
12
|
* caller within the 24-hour idempotency window returns the already-created session
|
|
13
|
-
* instead of a second one.
|
|
13
|
+
* instead of a second one. Reusing the same key with a different request body is a
|
|
14
|
+
* 422 `idempotency_key_reused`.
|
|
14
15
|
*/
|
|
15
|
-
create(
|
|
16
|
-
|
|
17
|
-
return this._client.post('/assistant/chat/sessions', {
|
|
18
|
-
body,
|
|
19
|
-
...options,
|
|
20
|
-
headers: (0, headers_1.buildHeaders)([
|
|
21
|
-
{ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
22
|
-
options?.headers,
|
|
23
|
-
]),
|
|
24
|
-
});
|
|
16
|
+
create(body, options) {
|
|
17
|
+
return this._client.post('/assistant/chat/sessions', { body, ...options });
|
|
25
18
|
}
|
|
26
19
|
/**
|
|
27
20
|
* Rename, change status, and/or pin. Title updates apply best-effort. Archiving
|
|
@@ -53,7 +46,12 @@ class Conversations extends resource_1.APIResource {
|
|
|
53
46
|
return this._client.post('/assistant/chat/abort', { body, ...options });
|
|
54
47
|
}
|
|
55
48
|
/**
|
|
56
|
-
* Deliver a HITL approval/rejection for an in-flight turn.
|
|
49
|
+
* Deliver a HITL approval/rejection for an in-flight turn. Interactive HITL
|
|
50
|
+
* clients must start the turn with `Accept: text/event-stream`, wait for a
|
|
51
|
+
* `tool-hitl-approval` event, and send its `permissionId` here at
|
|
52
|
+
* `/assistant/chat/permission`. Do not submit approval as free-form user text or
|
|
53
|
+
* as `confirmed: true`. For `devices.reset`, only `once` and `reject` are allowed;
|
|
54
|
+
* the generic `always` response is rejected with HTTP 400.
|
|
57
55
|
*/
|
|
58
56
|
answerPermission(body, options) {
|
|
59
57
|
return this._client.post('/assistant/chat/permission', { body, ...options });
|
|
@@ -82,9 +80,12 @@ class Conversations extends resource_1.APIResource {
|
|
|
82
80
|
/**
|
|
83
81
|
* Send a single user message. The response format follows the Accept header:
|
|
84
82
|
* `text/event-stream` for SSE, `application/json` for a buffered assistant reply.
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
83
|
+
* Interactive HITL requires `Accept: text/event-stream`: the stream can emit a
|
|
84
|
+
* `tool-hitl-approval` event, whose decision must be delivered to
|
|
85
|
+
* `/assistant/chat/permission`. Buffered JSON responses do not provide an
|
|
86
|
+
* interactive HITL continuation contract. `sessionId` targets a concrete active
|
|
87
|
+
* chat. The resolved chat session ID is returned as `chatSessionId` in the JSON
|
|
88
|
+
* body and as the `X-Chat-Session-Id` response header on the SSE response.
|
|
88
89
|
*/
|
|
89
90
|
send(body, options) {
|
|
90
91
|
return this._client.post('/assistant/chat/message', { body, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversations.js","sourceRoot":"","sources":["../../src/resources/assistant/conversations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,aAAc,SAAQ,sBAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"conversations.js","sourceRoot":"","sources":["../../src/resources/assistant/conversations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;OAMG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC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C,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iCAAiC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;;;OASG;IACH,IAAI,CAAC,IAA4B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACJ,KAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE;YAChD,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,mBAAmB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YAC1E,MAAM,EAAE,IAAI;SACb,CAAmD,CAAC;IACvD,CAAC;CACF;AAnID,sCAmIC"}
|
|
@@ -7,18 +7,11 @@ export class Conversations extends APIResource {
|
|
|
7
7
|
* Creates a titled agent session. Setup may occur on the first prompt. Idempotent
|
|
8
8
|
* via the `Idempotency-Key` header — a duplicate submit by the same authenticated
|
|
9
9
|
* caller within the 24-hour idempotency window returns the already-created session
|
|
10
|
-
* instead of a second one.
|
|
10
|
+
* instead of a second one. Reusing the same key with a different request body is a
|
|
11
|
+
* 422 `idempotency_key_reused`.
|
|
11
12
|
*/
|
|
12
|
-
create(
|
|
13
|
-
|
|
14
|
-
return this._client.post('/assistant/chat/sessions', {
|
|
15
|
-
body,
|
|
16
|
-
...options,
|
|
17
|
-
headers: buildHeaders([
|
|
18
|
-
{ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
19
|
-
options?.headers,
|
|
20
|
-
]),
|
|
21
|
-
});
|
|
13
|
+
create(body, options) {
|
|
14
|
+
return this._client.post('/assistant/chat/sessions', { body, ...options });
|
|
22
15
|
}
|
|
23
16
|
/**
|
|
24
17
|
* Rename, change status, and/or pin. Title updates apply best-effort. Archiving
|
|
@@ -50,7 +43,12 @@ export class Conversations extends APIResource {
|
|
|
50
43
|
return this._client.post('/assistant/chat/abort', { body, ...options });
|
|
51
44
|
}
|
|
52
45
|
/**
|
|
53
|
-
* Deliver a HITL approval/rejection for an in-flight turn.
|
|
46
|
+
* Deliver a HITL approval/rejection for an in-flight turn. Interactive HITL
|
|
47
|
+
* clients must start the turn with `Accept: text/event-stream`, wait for a
|
|
48
|
+
* `tool-hitl-approval` event, and send its `permissionId` here at
|
|
49
|
+
* `/assistant/chat/permission`. Do not submit approval as free-form user text or
|
|
50
|
+
* as `confirmed: true`. For `devices.reset`, only `once` and `reject` are allowed;
|
|
51
|
+
* the generic `always` response is rejected with HTTP 400.
|
|
54
52
|
*/
|
|
55
53
|
answerPermission(body, options) {
|
|
56
54
|
return this._client.post('/assistant/chat/permission', { body, ...options });
|
|
@@ -79,9 +77,12 @@ export class Conversations extends APIResource {
|
|
|
79
77
|
/**
|
|
80
78
|
* Send a single user message. The response format follows the Accept header:
|
|
81
79
|
* `text/event-stream` for SSE, `application/json` for a buffered assistant reply.
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
80
|
+
* Interactive HITL requires `Accept: text/event-stream`: the stream can emit a
|
|
81
|
+
* `tool-hitl-approval` event, whose decision must be delivered to
|
|
82
|
+
* `/assistant/chat/permission`. Buffered JSON responses do not provide an
|
|
83
|
+
* interactive HITL continuation contract. `sessionId` targets a concrete active
|
|
84
|
+
* chat. The resolved chat session ID is returned as `chatSessionId` in the JSON
|
|
85
|
+
* body and as the `X-Chat-Session-Id` response header on the SSE response.
|
|
85
86
|
*/
|
|
86
87
|
send(body, options) {
|
|
87
88
|
return this._client.post('/assistant/chat/message', { body, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversations.mjs","sourceRoot":"","sources":["../../src/resources/assistant/conversations.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"conversations.mjs","sourceRoot":"","sources":["../../src/resources/assistant/conversations.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;OAMG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CACJ,EAAU,EACV,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,4BAA4B,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,IAA6B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;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mjs";
|
|
|
2
2
|
import * as CountriesAPI from "./countries.mjs";
|
|
3
3
|
import { Countries, CountryListParams, CountryListResponse } from "./countries.mjs";
|
|
4
4
|
import * as ProxiesAPI from "./proxies.mjs";
|
|
5
|
-
import { Proxies, ProxyBuyParams, ProxyBuyResponse, ProxyListConnectionsParams, ProxyListConnectionsResponse, ProxyListParams, ProxyListResponse, ProxyPingResponse, ProxyRetrieveResponse } from "./proxies.mjs";
|
|
5
|
+
import { Proxies, ProxyBuyParams, ProxyBuyResponse, ProxyEnsureHealthyResponse, ProxyListConnectionsParams, ProxyListConnectionsResponse, ProxyListParams, ProxyListResponse, ProxyPingResponse, ProxyRetrieveResponse, ProxyUpdateParams, ProxyUpdateResponse } from "./proxies.mjs";
|
|
6
6
|
import * as UsersAPI from "./users.mjs";
|
|
7
7
|
import { UserCreateParams, UserCreateResponse, UserListConnectionsParams, UserListConnectionsResponse, UserListParams, UserListResponse, UserRetrieveResponse, UserUpdateParams, UserUpdateResponse, Users } from "./users.mjs";
|
|
8
8
|
export declare class Connect extends APIResource {
|
|
@@ -12,7 +12,7 @@ export declare class Connect extends APIResource {
|
|
|
12
12
|
}
|
|
13
13
|
export declare namespace Connect {
|
|
14
14
|
export { Countries as Countries, type CountryListResponse as CountryListResponse, type CountryListParams as CountryListParams, };
|
|
15
|
-
export { Proxies as Proxies, 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, };
|
|
15
|
+
export { Proxies as Proxies, 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, };
|
|
16
16
|
export { Users as Users, type UserCreateResponse as UserCreateResponse, type UserRetrieveResponse as UserRetrieveResponse, type UserUpdateResponse as UserUpdateResponse, type UserListResponse as UserListResponse, type UserListConnectionsResponse as UserListConnectionsResponse, type UserCreateParams as UserCreateParams, type UserUpdateParams as UserUpdateParams, type UserListParams as UserListParams, type UserListConnectionsParams as UserListConnectionsParams, };
|
|
17
17
|
}
|
|
18
18
|
//# sourceMappingURL=connect.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect.d.mts","sourceRoot":"","sources":["../../src/resources/connect/connect.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,wBAAoB;AAChF,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EACL,OAAO,EACP,cAAc,EACd,gBAAgB,EAChB,0BAA0B,EAC1B,4BAA4B,EAC5B,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,
|
|
1
|
+
{"version":3,"file":"connect.d.mts","sourceRoot":"","sources":["../../src/resources/connect/connect.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,wBAAoB;AAChF,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EACL,OAAO,EACP,cAAc,EACd,gBAAgB,EAChB,0BAA0B,EAC1B,0BAA0B,EAC1B,4BAA4B,EAC5B,eAAe,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AK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -2,7 +2,7 @@ import { APIResource } from "../../core/resource.js";
|
|
|
2
2
|
import * as CountriesAPI from "./countries.js";
|
|
3
3
|
import { Countries, CountryListParams, CountryListResponse } from "./countries.js";
|
|
4
4
|
import * as ProxiesAPI from "./proxies.js";
|
|
5
|
-
import { Proxies, ProxyBuyParams, ProxyBuyResponse, ProxyListConnectionsParams, ProxyListConnectionsResponse, ProxyListParams, ProxyListResponse, ProxyPingResponse, ProxyRetrieveResponse } from "./proxies.js";
|
|
5
|
+
import { Proxies, ProxyBuyParams, ProxyBuyResponse, ProxyEnsureHealthyResponse, ProxyListConnectionsParams, ProxyListConnectionsResponse, ProxyListParams, ProxyListResponse, ProxyPingResponse, ProxyRetrieveResponse, ProxyUpdateParams, ProxyUpdateResponse } from "./proxies.js";
|
|
6
6
|
import * as UsersAPI from "./users.js";
|
|
7
7
|
import { UserCreateParams, UserCreateResponse, UserListConnectionsParams, UserListConnectionsResponse, UserListParams, UserListResponse, UserRetrieveResponse, UserUpdateParams, UserUpdateResponse, Users } from "./users.js";
|
|
8
8
|
export declare class Connect extends APIResource {
|
|
@@ -12,7 +12,7 @@ export declare class Connect extends APIResource {
|
|
|
12
12
|
}
|
|
13
13
|
export declare namespace Connect {
|
|
14
14
|
export { Countries as Countries, type CountryListResponse as CountryListResponse, type CountryListParams as CountryListParams, };
|
|
15
|
-
export { Proxies as Proxies, 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, };
|
|
15
|
+
export { Proxies as Proxies, 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, };
|
|
16
16
|
export { Users as Users, type UserCreateResponse as UserCreateResponse, type UserRetrieveResponse as UserRetrieveResponse, type UserUpdateResponse as UserUpdateResponse, type UserListResponse as UserListResponse, type UserListConnectionsResponse as UserListConnectionsResponse, type UserCreateParams as UserCreateParams, type UserUpdateParams as UserUpdateParams, type UserListParams as UserListParams, type UserListConnectionsParams as UserListConnectionsParams, };
|
|
17
17
|
}
|
|
18
18
|
//# sourceMappingURL=connect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../src/resources/connect/connect.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,YAAY,uBAAoB;AAC5C,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,uBAAoB;AAChF,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,EACL,OAAO,EACP,cAAc,EACd,gBAAgB,EAChB,0BAA0B,EAC1B,4BAA4B,EAC5B,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,
|
|
1
|
+
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../src/resources/connect/connect.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,YAAY,uBAAoB;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,0BAA0B,GAC9D,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect.js","sourceRoot":"","sources":["../../src/resources/connect/connect.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,qEAA4C;AAC5C,8CAAgF;AAChF,iEAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"connect.js","sourceRoot":"","sources":["../../src/resources/connect/connect.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,qEAA4C;AAC5C,8CAAgF;AAChF,iEAAwC;AACxC,0CAamB;AACnB,6DAAoC;AACpC,sCAWiB;AAEjB,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;CAAA;AAJD,0BAIC;AAED,OAAO,CAAC,SAAS,GAAG,qBAAS,CAAC;AAC9B,OAAO,CAAC,OAAO,GAAG,iBAAO,CAAC;AAC1B,OAAO,CAAC,KAAK,GAAG,aAAK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect.mjs","sourceRoot":"","sources":["../../src/resources/connect/connect.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,EAAE,SAAS,EAA0C,wBAAoB;AAChF,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EACL,OAAO,
|
|
1
|
+
{"version":3,"file":"connect.mjs","sourceRoot":"","sources":["../../src/resources/connect/connect.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,EAAE,SAAS,EAA0C,wBAAoB;AAChF,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EACL,OAAO,GAYR,sBAAkB;AACnB,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAUL,KAAK,GACN,oBAAgB;AAEjB,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;CAAA;AAED,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;AAC9B,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC;AAC1B,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Connect } from "./connect.mjs";
|
|
2
2
|
export { Countries, type CountryListResponse, type CountryListParams } from "./countries.mjs";
|
|
3
|
-
export { Proxies, type ProxyRetrieveResponse, type ProxyListResponse, type ProxyBuyResponse, type ProxyListConnectionsResponse, type ProxyPingResponse, type ProxyListParams, type ProxyBuyParams, type ProxyListConnectionsParams, } from "./proxies.mjs";
|
|
3
|
+
export { Proxies, type ProxyRetrieveResponse, type ProxyUpdateResponse, type ProxyListResponse, type ProxyBuyResponse, type ProxyEnsureHealthyResponse, type ProxyListConnectionsResponse, type ProxyPingResponse, type ProxyUpdateParams, type ProxyListParams, type ProxyBuyParams, type ProxyListConnectionsParams, } from "./proxies.mjs";
|
|
4
4
|
export { Users, type UserCreateResponse, type UserRetrieveResponse, type UserUpdateResponse, type UserListResponse, type UserListConnectionsResponse, type UserCreateParams, type UserUpdateParams, type UserListParams, type UserListConnectionsParams, } from "./users.mjs";
|
|
5
5
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/connect/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,sBAAkB;AACpC,OAAO,EAAE,SAAS,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,wBAAoB;AAC1F,OAAO,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,0BAA0B,GAChC,sBAAkB;AACnB,OAAO,EACL,KAAK,EACL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,yBAAyB,GAC/B,oBAAgB"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/connect/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,sBAAkB;AACpC,OAAO,EAAE,SAAS,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,wBAAoB;AAC1F,OAAO,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,0BAA0B,GAChC,sBAAkB;AACnB,OAAO,EACL,KAAK,EACL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,yBAAyB,GAC/B,oBAAgB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Connect } from "./connect.js";
|
|
2
2
|
export { Countries, type CountryListResponse, type CountryListParams } from "./countries.js";
|
|
3
|
-
export { Proxies, type ProxyRetrieveResponse, type ProxyListResponse, type ProxyBuyResponse, type ProxyListConnectionsResponse, type ProxyPingResponse, type ProxyListParams, type ProxyBuyParams, type ProxyListConnectionsParams, } from "./proxies.js";
|
|
3
|
+
export { Proxies, type ProxyRetrieveResponse, type ProxyUpdateResponse, type ProxyListResponse, type ProxyBuyResponse, type ProxyEnsureHealthyResponse, type ProxyListConnectionsResponse, type ProxyPingResponse, type ProxyUpdateParams, type ProxyListParams, type ProxyBuyParams, type ProxyListConnectionsParams, } from "./proxies.js";
|
|
4
4
|
export { Users, type UserCreateResponse, type UserRetrieveResponse, type UserUpdateResponse, type UserListResponse, type UserListConnectionsResponse, type UserCreateParams, type UserUpdateParams, type UserListParams, type UserListConnectionsParams, } from "./users.js";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/connect/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,qBAAkB;AACpC,OAAO,EAAE,SAAS,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,uBAAoB;AAC1F,OAAO,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,0BAA0B,GAChC,qBAAkB;AACnB,OAAO,EACL,KAAK,EACL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,yBAAyB,GAC/B,mBAAgB"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/connect/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,qBAAkB;AACpC,OAAO,EAAE,SAAS,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,uBAAoB;AAC1F,OAAO,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,0BAA0B,GAChC,qBAAkB;AACnB,OAAO,EACL,KAAK,EACL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,yBAAyB,GAC/B,mBAAgB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/connect/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,4CAA0F;AAAjF,sGAAA,SAAS,OAAA;AAClB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/connect/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,4CAA0F;AAAjF,sGAAA,SAAS,OAAA;AAClB,wCAamB;AAZjB,kGAAA,OAAO,OAAA;AAaT,oCAWiB;AAVf,8FAAA,KAAK,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/connect/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,OAAO,EAAE,sBAAkB;AACpC,OAAO,EAAE,SAAS,EAAoD,wBAAoB;AAC1F,OAAO,EACL,OAAO,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/connect/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,OAAO,EAAE,sBAAkB;AACpC,OAAO,EAAE,SAAS,EAAoD,wBAAoB;AAC1F,OAAO,EACL,OAAO,GAYR,sBAAkB;AACnB,OAAO,EACL,KAAK,GAUN,oBAAgB"}
|
|
@@ -7,6 +7,10 @@ export declare class Proxies extends APIResource {
|
|
|
7
7
|
* password.
|
|
8
8
|
*/
|
|
9
9
|
retrieve(id: string, options?: RequestOptions): APIPromise<ProxyRetrieveResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Renames the proxy identified by the path ID.
|
|
12
|
+
*/
|
|
13
|
+
update(id: string, body: ProxyUpdateParams, options?: RequestOptions): APIPromise<ProxyUpdateResponse>;
|
|
10
14
|
/**
|
|
11
15
|
* Returns proxies owned by the calling tenant (the X-Owner-Id header, falling back
|
|
12
16
|
* to X-User-ID). Credentials are omitted from the list.
|
|
@@ -21,6 +25,17 @@ export declare class Proxies extends APIResource {
|
|
|
21
25
|
* Returns 404 if no such proxy exists for the caller.
|
|
22
26
|
*/
|
|
23
27
|
cancel(id: string, options?: RequestOptions): APIPromise<void>;
|
|
28
|
+
/**
|
|
29
|
+
* Checks right now that the proxy's upstream accepts a connection through its
|
|
30
|
+
* current session. If the upstream refuses the session and the proxy is a rotating
|
|
31
|
+
* (sticky-session) proxy, the proxy is moved onto a fresh session that has been
|
|
32
|
+
* checked to work; its credentials and country stay the same, its exit IP changes.
|
|
33
|
+
* Intended for callers that are about to depend on the proxy (e.g. while
|
|
34
|
+
* provisioning a phone). After `rotated`, the gateway uses the new session within
|
|
35
|
+
* about 30 seconds. A `refused` or `unreachable` result is not an error: the
|
|
36
|
+
* response describes the proxy's state.
|
|
37
|
+
*/
|
|
38
|
+
ensureHealthy(id: string, options?: RequestOptions): APIPromise<ProxyEnsureHealthyResponse>;
|
|
24
39
|
/**
|
|
25
40
|
* Returns the connection history recorded for this proxy, one item per connection
|
|
26
41
|
* (aggregated across the connection's lifetime). Supports filtering on every
|
|
@@ -47,24 +62,63 @@ export interface ProxyRetrieveResponse {
|
|
|
47
62
|
country: string;
|
|
48
63
|
createdAt: string;
|
|
49
64
|
host: string;
|
|
65
|
+
/**
|
|
66
|
+
* Display name for the proxy. Set it on create or change it with PATCH; when no
|
|
67
|
+
* name has been set, a label generated from the proxy's country, type, and id is
|
|
68
|
+
* returned instead — so this is never empty.
|
|
69
|
+
*/
|
|
70
|
+
name: string;
|
|
50
71
|
password: string;
|
|
51
72
|
port: number;
|
|
52
73
|
/**
|
|
53
|
-
* Lifecycle of a proxy. A freshly created proxy is `
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
74
|
+
* Lifecycle of a proxy. A freshly created proxy is `checking` while its billing
|
|
75
|
+
* identity is being resolved — clients should poll until a `paymentUrl` or a later
|
|
76
|
+
* status appears — then `provisioning` — or `pending_payment` until the customer
|
|
77
|
+
* completes checkout — and becomes `active` once its upstream is assigned.
|
|
78
|
+
* `cancelling` retains full access through the paid period; when the subscription
|
|
79
|
+
* expires the proxy is `ended`. `error` marks a failed provisioning attempt.
|
|
58
80
|
*/
|
|
59
|
-
status: 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
|
|
81
|
+
status: 'checking' | 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
|
|
60
82
|
type: 'dedicated_residential' | 'residential' | 'mobile';
|
|
61
83
|
username: string;
|
|
84
|
+
billingMode?: 'included' | 'standalone_paid';
|
|
62
85
|
/**
|
|
63
86
|
* Checkout URL to complete payment while status is `pending_payment`. Null once
|
|
64
87
|
* paid or when no payment was required.
|
|
65
88
|
*/
|
|
66
89
|
paymentUrl?: string | null;
|
|
67
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* A provisioned proxy without its credentials.
|
|
93
|
+
*/
|
|
94
|
+
export interface ProxyUpdateResponse {
|
|
95
|
+
id: string;
|
|
96
|
+
/**
|
|
97
|
+
* ISO 3166-1 alpha-2 country code (lowercase).
|
|
98
|
+
*/
|
|
99
|
+
country: string;
|
|
100
|
+
createdAt: string;
|
|
101
|
+
host: string;
|
|
102
|
+
/**
|
|
103
|
+
* Display name for the proxy. Set it on create or change it with PATCH; when no
|
|
104
|
+
* name has been set, a label generated from the proxy's country, type, and id is
|
|
105
|
+
* returned instead — so this is never empty.
|
|
106
|
+
*/
|
|
107
|
+
name: string;
|
|
108
|
+
port: number;
|
|
109
|
+
/**
|
|
110
|
+
* Lifecycle of a proxy. A freshly created proxy is `checking` while its billing
|
|
111
|
+
* identity is being resolved — clients should poll until a `paymentUrl` or a later
|
|
112
|
+
* status appears — then `provisioning` — or `pending_payment` until the customer
|
|
113
|
+
* completes checkout — and becomes `active` once its upstream is assigned.
|
|
114
|
+
* `cancelling` retains full access through the paid period; when the subscription
|
|
115
|
+
* expires the proxy is `ended`. `error` marks a failed provisioning attempt.
|
|
116
|
+
*/
|
|
117
|
+
status: 'checking' | 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
|
|
118
|
+
type: 'dedicated_residential' | 'residential' | 'mobile';
|
|
119
|
+
username: string;
|
|
120
|
+
billingMode?: 'included' | 'standalone_paid';
|
|
121
|
+
}
|
|
68
122
|
/**
|
|
69
123
|
* A page of proxies.
|
|
70
124
|
*/
|
|
@@ -87,17 +141,25 @@ export declare namespace ProxyListResponse {
|
|
|
87
141
|
country: string;
|
|
88
142
|
createdAt: string;
|
|
89
143
|
host: string;
|
|
144
|
+
/**
|
|
145
|
+
* Display name for the proxy. Set it on create or change it with PATCH; when no
|
|
146
|
+
* name has been set, a label generated from the proxy's country, type, and id is
|
|
147
|
+
* returned instead — so this is never empty.
|
|
148
|
+
*/
|
|
149
|
+
name: string;
|
|
90
150
|
port: number;
|
|
91
151
|
/**
|
|
92
|
-
* Lifecycle of a proxy. A freshly created proxy is `
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
152
|
+
* Lifecycle of a proxy. A freshly created proxy is `checking` while its billing
|
|
153
|
+
* identity is being resolved — clients should poll until a `paymentUrl` or a later
|
|
154
|
+
* status appears — then `provisioning` — or `pending_payment` until the customer
|
|
155
|
+
* completes checkout — and becomes `active` once its upstream is assigned.
|
|
156
|
+
* `cancelling` retains full access through the paid period; when the subscription
|
|
157
|
+
* expires the proxy is `ended`. `error` marks a failed provisioning attempt.
|
|
97
158
|
*/
|
|
98
|
-
status: 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
|
|
159
|
+
status: 'checking' | 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
|
|
99
160
|
type: 'dedicated_residential' | 'residential' | 'mobile';
|
|
100
161
|
username: string;
|
|
162
|
+
billingMode?: 'included' | 'standalone_paid';
|
|
101
163
|
}
|
|
102
164
|
/**
|
|
103
165
|
* Pagination metadata for a list response.
|
|
@@ -140,24 +202,46 @@ export interface ProxyBuyResponse {
|
|
|
140
202
|
country: string;
|
|
141
203
|
createdAt: string;
|
|
142
204
|
host: string;
|
|
205
|
+
/**
|
|
206
|
+
* Display name for the proxy. Set it on create or change it with PATCH; when no
|
|
207
|
+
* name has been set, a label generated from the proxy's country, type, and id is
|
|
208
|
+
* returned instead — so this is never empty.
|
|
209
|
+
*/
|
|
210
|
+
name: string;
|
|
143
211
|
password: string;
|
|
144
212
|
port: number;
|
|
145
213
|
/**
|
|
146
|
-
* Lifecycle of a proxy. A freshly created proxy is `
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
*
|
|
150
|
-
*
|
|
214
|
+
* Lifecycle of a proxy. A freshly created proxy is `checking` while its billing
|
|
215
|
+
* identity is being resolved — clients should poll until a `paymentUrl` or a later
|
|
216
|
+
* status appears — then `provisioning` — or `pending_payment` until the customer
|
|
217
|
+
* completes checkout — and becomes `active` once its upstream is assigned.
|
|
218
|
+
* `cancelling` retains full access through the paid period; when the subscription
|
|
219
|
+
* expires the proxy is `ended`. `error` marks a failed provisioning attempt.
|
|
151
220
|
*/
|
|
152
|
-
status: 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
|
|
221
|
+
status: 'checking' | 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
|
|
153
222
|
type: 'dedicated_residential' | 'residential' | 'mobile';
|
|
154
223
|
username: string;
|
|
224
|
+
billingMode?: 'included' | 'standalone_paid';
|
|
155
225
|
/**
|
|
156
226
|
* Checkout URL to complete payment while status is `pending_payment`. Null once
|
|
157
227
|
* paid or when no payment was required.
|
|
158
228
|
*/
|
|
159
229
|
paymentUrl?: string | null;
|
|
160
230
|
}
|
|
231
|
+
/**
|
|
232
|
+
* The outcome of an ensure-healthy check.
|
|
233
|
+
*/
|
|
234
|
+
export interface ProxyEnsureHealthyResponse {
|
|
235
|
+
proxyId: string;
|
|
236
|
+
/**
|
|
237
|
+
* `healthy`: the upstream accepted the current session. `rotated`: the session was
|
|
238
|
+
* refused and the proxy now uses a fresh, checked session; retry through the
|
|
239
|
+
* proxy. `refused`: the session was refused and could not be replaced.
|
|
240
|
+
* `unreachable`: the upstream could not be reached; the session was left
|
|
241
|
+
* unchanged.
|
|
242
|
+
*/
|
|
243
|
+
status: 'healthy' | 'rotated' | 'refused' | 'unreachable';
|
|
244
|
+
}
|
|
161
245
|
/**
|
|
162
246
|
* A page of connections.
|
|
163
247
|
*/
|
|
@@ -325,6 +409,15 @@ export declare namespace ProxyPingResponse {
|
|
|
325
409
|
target: string;
|
|
326
410
|
}
|
|
327
411
|
}
|
|
412
|
+
export interface ProxyUpdateParams {
|
|
413
|
+
/**
|
|
414
|
+
* New display name, up to 64 characters excluding surrounding whitespace, and
|
|
415
|
+
* containing no NUL. Send null (or an empty/whitespace-only string) to drop a
|
|
416
|
+
* custom name and go back to the generated label. Omit to leave the name
|
|
417
|
+
* unchanged.
|
|
418
|
+
*/
|
|
419
|
+
name?: string | null;
|
|
420
|
+
}
|
|
328
421
|
export interface ProxyListParams {
|
|
329
422
|
/**
|
|
330
423
|
* Filter to proxies in this country (ISO 3166-1 alpha-2, lowercase).
|
|
@@ -345,6 +438,12 @@ export interface ProxyBuyParams {
|
|
|
345
438
|
*/
|
|
346
439
|
country: string;
|
|
347
440
|
type: 'dedicated_residential' | 'residential' | 'mobile';
|
|
441
|
+
/**
|
|
442
|
+
* Display name for the proxy, up to 64 characters excluding surrounding
|
|
443
|
+
* whitespace, and containing no NUL. Omit it (or send only whitespace) to get a
|
|
444
|
+
* generated label built from the country, type, and id.
|
|
445
|
+
*/
|
|
446
|
+
name?: string;
|
|
348
447
|
}
|
|
349
448
|
export interface ProxyListConnectionsParams {
|
|
350
449
|
/**
|
|
@@ -451,6 +550,6 @@ export interface ProxyListConnectionsParams {
|
|
|
451
550
|
userId?: string;
|
|
452
551
|
}
|
|
453
552
|
export declare namespace Proxies {
|
|
454
|
-
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, };
|
|
553
|
+
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, };
|
|
455
554
|
}
|
|
456
555
|
//# 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;;;OAGG;IACH,IAAI,CACF,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CA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