@mobilerun/sdk 5.1.0 → 5.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +58 -0
- package/README.md +15 -12
- package/client.d.mts +35 -29
- package/client.d.mts.map +1 -1
- package/client.d.ts +35 -29
- package/client.d.ts.map +1 -1
- package/client.js +21 -15
- package/client.js.map +1 -1
- package/client.mjs +21 -15
- package/client.mjs.map +1 -1
- package/package.json +2 -2
- package/resources/agents.d.mts +27 -0
- package/resources/agents.d.mts.map +1 -0
- package/resources/agents.d.ts +27 -0
- package/resources/agents.d.ts.map +1 -0
- package/resources/agents.js +15 -0
- package/resources/agents.js.map +1 -0
- package/resources/agents.mjs +11 -0
- package/resources/agents.mjs.map +1 -0
- package/resources/app-events/app-events.d.mts +81 -0
- package/resources/app-events/app-events.d.mts.map +1 -0
- package/resources/app-events/app-events.d.ts +81 -0
- package/resources/app-events/app-events.d.ts.map +1 -0
- package/resources/app-events/app-events.js +33 -0
- package/resources/app-events/app-events.js.map +1 -0
- package/resources/app-events/app-events.mjs +28 -0
- package/resources/app-events/app-events.mjs.map +1 -0
- package/resources/app-events/catalog.d.mts +64 -0
- package/resources/app-events/catalog.d.mts.map +1 -0
- package/resources/app-events/catalog.d.ts +64 -0
- package/resources/app-events/catalog.d.ts.map +1 -0
- package/resources/app-events/catalog.js +25 -0
- package/resources/app-events/catalog.js.map +1 -0
- package/resources/app-events/catalog.mjs +21 -0
- package/resources/app-events/catalog.mjs.map +1 -0
- package/resources/app-events/index.d.mts +3 -0
- package/resources/app-events/index.d.mts.map +1 -0
- package/resources/app-events/index.d.ts +3 -0
- package/resources/app-events/index.d.ts.map +1 -0
- package/resources/{workflows/events → app-events}/index.js +3 -3
- package/resources/app-events/index.js.map +1 -0
- package/resources/app-events/index.mjs +4 -0
- package/resources/app-events/index.mjs.map +1 -0
- package/resources/app-events.d.mts +2 -0
- package/resources/app-events.d.mts.map +1 -0
- package/resources/app-events.d.ts +2 -0
- package/resources/app-events.d.ts.map +1 -0
- package/resources/app-events.js +6 -0
- package/resources/app-events.js.map +1 -0
- package/resources/app-events.mjs +3 -0
- package/resources/app-events.mjs.map +1 -0
- package/resources/apps.d.mts +44 -8
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +44 -8
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +12 -4
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +12 -4
- package/resources/apps.mjs.map +1 -1
- package/resources/carriers.d.mts +0 -3
- package/resources/carriers.d.mts.map +1 -1
- package/resources/carriers.d.ts +0 -3
- package/resources/carriers.d.ts.map +1 -1
- package/resources/carriers.js +0 -3
- package/resources/carriers.js.map +1 -1
- package/resources/carriers.mjs +0 -3
- package/resources/carriers.mjs.map +1 -1
- package/resources/connect/countries.d.mts +8 -3
- package/resources/connect/countries.d.mts.map +1 -1
- package/resources/connect/countries.d.ts +8 -3
- package/resources/connect/countries.d.ts.map +1 -1
- package/resources/connect/countries.js +6 -1
- package/resources/connect/countries.js.map +1 -1
- package/resources/connect/countries.mjs +6 -1
- package/resources/connect/countries.mjs.map +1 -1
- package/resources/connect/proxies.d.mts +11 -9
- package/resources/connect/proxies.d.mts.map +1 -1
- package/resources/connect/proxies.d.ts +11 -9
- package/resources/connect/proxies.d.ts.map +1 -1
- package/resources/connect/proxies.js +7 -5
- package/resources/connect/proxies.js.map +1 -1
- package/resources/connect/proxies.mjs +7 -5
- package/resources/connect/proxies.mjs.map +1 -1
- package/resources/connect/users.d.mts +7 -2
- package/resources/connect/users.d.mts.map +1 -1
- package/resources/connect/users.d.ts +7 -2
- package/resources/connect/users.d.ts.map +1 -1
- package/resources/connect/users.js +7 -2
- package/resources/connect/users.js.map +1 -1
- package/resources/connect/users.mjs +7 -2
- package/resources/connect/users.mjs.map +1 -1
- package/resources/credentials/credentials.d.mts +27 -8
- package/resources/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/credentials.d.ts +27 -8
- package/resources/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/credentials.js +3 -4
- package/resources/credentials/credentials.js.map +1 -1
- package/resources/credentials/credentials.mjs +3 -4
- package/resources/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/index.d.mts +1 -1
- package/resources/credentials/index.d.mts.map +1 -1
- package/resources/credentials/index.d.ts +1 -1
- package/resources/credentials/index.d.ts.map +1 -1
- package/resources/credentials/index.js.map +1 -1
- package/resources/credentials/index.mjs.map +1 -1
- package/resources/credentials/packages/credentials/credentials.d.mts +74 -23
- package/resources/credentials/packages/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.d.ts +74 -23
- package/resources/credentials/packages/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.js +7 -6
- package/resources/credentials/packages/credentials/credentials.js.map +1 -1
- package/resources/credentials/packages/credentials/credentials.mjs +7 -6
- package/resources/credentials/packages/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.mts +74 -10
- package/resources/credentials/packages/credentials/fields.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.ts +74 -10
- package/resources/credentials/packages/credentials/fields.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/fields.js +8 -6
- package/resources/credentials/packages/credentials/fields.js.map +1 -1
- package/resources/credentials/packages/credentials/fields.mjs +8 -6
- package/resources/credentials/packages/credentials/fields.mjs.map +1 -1
- package/resources/credentials/packages/credentials/index.d.mts +1 -1
- package/resources/credentials/packages/credentials/index.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/index.d.ts +1 -1
- package/resources/credentials/packages/credentials/index.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/index.js.map +1 -1
- package/resources/credentials/packages/credentials/index.mjs.map +1 -1
- package/resources/credentials/packages/index.d.mts +2 -2
- package/resources/credentials/packages/index.d.mts.map +1 -1
- package/resources/credentials/packages/index.d.ts +2 -2
- package/resources/credentials/packages/index.d.ts.map +1 -1
- package/resources/credentials/packages/index.js.map +1 -1
- package/resources/credentials/packages/index.mjs.map +1 -1
- package/resources/credentials/packages/packages.d.mts +44 -9
- package/resources/credentials/packages/packages.d.mts.map +1 -1
- package/resources/credentials/packages/packages.d.ts +44 -9
- package/resources/credentials/packages/packages.d.ts.map +1 -1
- package/resources/credentials/packages/packages.js +13 -5
- package/resources/credentials/packages/packages.js.map +1 -1
- package/resources/credentials/packages/packages.mjs +13 -5
- package/resources/credentials/packages/packages.mjs.map +1 -1
- package/resources/devices/actions.d.mts +10 -5
- package/resources/devices/actions.d.mts.map +1 -1
- package/resources/devices/actions.d.ts +10 -5
- package/resources/devices/actions.d.ts.map +1 -1
- package/resources/devices/actions.js +10 -5
- package/resources/devices/actions.js.map +1 -1
- package/resources/devices/actions.mjs +10 -5
- package/resources/devices/actions.mjs.map +1 -1
- package/resources/devices/apps.d.mts +119 -6
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +119 -6
- package/resources/devices/apps.d.ts.map +1 -1
- package/resources/devices/apps.js +80 -5
- package/resources/devices/apps.js.map +1 -1
- package/resources/devices/apps.mjs +80 -5
- package/resources/devices/apps.mjs.map +1 -1
- package/resources/devices/browser.d.mts +41 -0
- package/resources/devices/browser.d.mts.map +1 -0
- package/resources/devices/browser.d.ts +41 -0
- package/resources/devices/browser.d.ts.map +1 -0
- package/resources/devices/browser.js +31 -0
- package/resources/devices/browser.js.map +1 -0
- package/resources/devices/browser.mjs +27 -0
- package/resources/devices/browser.mjs.map +1 -0
- package/resources/devices/deep-link.d.mts +41 -0
- package/resources/devices/deep-link.d.mts.map +1 -0
- package/resources/devices/deep-link.d.ts +41 -0
- package/resources/devices/deep-link.d.ts.map +1 -0
- package/resources/devices/deep-link.js +33 -0
- package/resources/devices/deep-link.js.map +1 -0
- package/resources/devices/deep-link.mjs +29 -0
- package/resources/devices/deep-link.mjs.map +1 -0
- package/resources/devices/devices.d.mts +285 -33
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +285 -33
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +83 -14
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +83 -14
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/esim/apn.d.mts +95 -0
- package/resources/devices/esim/apn.d.mts.map +1 -0
- package/resources/devices/esim/apn.d.ts +95 -0
- package/resources/devices/esim/apn.d.ts.map +1 -0
- package/resources/devices/esim/apn.js +70 -0
- package/resources/devices/esim/apn.js.map +1 -0
- package/resources/devices/esim/apn.mjs +66 -0
- package/resources/devices/esim/apn.mjs.map +1 -0
- package/resources/devices/esim/esim.d.mts +144 -0
- package/resources/devices/esim/esim.d.mts.map +1 -0
- package/resources/devices/esim/esim.d.ts +144 -0
- package/resources/devices/esim/esim.d.ts.map +1 -0
- package/resources/devices/esim/esim.js +131 -0
- package/resources/devices/esim/esim.js.map +1 -0
- package/resources/devices/esim/esim.mjs +126 -0
- package/resources/devices/esim/esim.mjs.map +1 -0
- package/resources/devices/esim/index.d.mts +3 -0
- package/resources/devices/esim/index.d.mts.map +1 -0
- package/resources/devices/esim/index.d.ts +3 -0
- package/resources/devices/esim/index.d.ts.map +1 -0
- package/resources/devices/esim/index.js +9 -0
- package/resources/devices/esim/index.js.map +1 -0
- package/resources/devices/esim/index.mjs +4 -0
- package/resources/devices/esim/index.mjs.map +1 -0
- package/resources/devices/esim.d.mts +1 -100
- package/resources/devices/esim.d.mts.map +1 -1
- package/resources/devices/esim.d.ts +1 -100
- package/resources/devices/esim.d.ts.map +1 -1
- package/resources/devices/esim.js +2 -80
- package/resources/devices/esim.js.map +1 -1
- package/resources/devices/esim.mjs +1 -78
- package/resources/devices/esim.mjs.map +1 -1
- package/resources/devices/files.d.mts +38 -33
- package/resources/devices/files.d.mts.map +1 -1
- package/resources/devices/files.d.ts +38 -33
- package/resources/devices/files.d.ts.map +1 -1
- package/resources/devices/files.js +7 -4
- package/resources/devices/files.js.map +1 -1
- package/resources/devices/files.mjs +7 -4
- package/resources/devices/files.mjs.map +1 -1
- package/resources/devices/index.d.mts +11 -6
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +11 -6
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +13 -3
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +7 -2
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/keyboard.d.mts +5 -3
- package/resources/devices/keyboard.d.mts.map +1 -1
- package/resources/devices/keyboard.d.ts +5 -3
- package/resources/devices/keyboard.d.ts.map +1 -1
- package/resources/devices/keyboard.js +5 -3
- package/resources/devices/keyboard.js.map +1 -1
- package/resources/devices/keyboard.mjs +5 -3
- package/resources/devices/keyboard.mjs.map +1 -1
- package/resources/devices/kiosk.d.mts +32 -0
- package/resources/devices/kiosk.d.mts.map +1 -0
- package/resources/devices/kiosk.d.ts +32 -0
- package/resources/devices/kiosk.d.ts.map +1 -0
- package/resources/devices/kiosk.js +50 -0
- package/resources/devices/kiosk.js.map +1 -0
- package/resources/devices/kiosk.mjs +46 -0
- package/resources/devices/kiosk.mjs.map +1 -0
- package/resources/devices/language.d.mts +4 -2
- package/resources/devices/language.d.mts.map +1 -1
- package/resources/devices/language.d.ts +4 -2
- package/resources/devices/language.d.ts.map +1 -1
- package/resources/devices/language.js +4 -2
- package/resources/devices/language.js.map +1 -1
- package/resources/devices/language.mjs +4 -2
- package/resources/devices/language.mjs.map +1 -1
- package/resources/devices/location.d.mts +13 -3
- package/resources/devices/location.d.mts.map +1 -1
- package/resources/devices/location.d.ts +13 -3
- package/resources/devices/location.d.ts.map +1 -1
- package/resources/devices/location.js +23 -2
- package/resources/devices/location.js.map +1 -1
- package/resources/devices/location.mjs +23 -2
- package/resources/devices/location.mjs.map +1 -1
- package/resources/devices/media-sessions.d.mts +96 -0
- package/resources/devices/media-sessions.d.mts.map +1 -0
- package/resources/devices/media-sessions.d.ts +96 -0
- package/resources/devices/media-sessions.d.ts.map +1 -0
- package/resources/devices/media-sessions.js +50 -0
- package/resources/devices/media-sessions.js.map +1 -0
- package/resources/devices/media-sessions.mjs +46 -0
- package/resources/devices/media-sessions.mjs.map +1 -0
- package/resources/devices/packages.d.mts +2 -1
- package/resources/devices/packages.d.mts.map +1 -1
- package/resources/devices/packages.d.ts +2 -1
- package/resources/devices/packages.d.ts.map +1 -1
- package/resources/devices/packages.js +2 -1
- package/resources/devices/packages.js.map +1 -1
- package/resources/devices/packages.mjs +2 -1
- package/resources/devices/packages.mjs.map +1 -1
- package/resources/devices/proxy.d.mts +29 -3
- package/resources/devices/proxy.d.mts.map +1 -1
- package/resources/devices/proxy.d.ts +29 -3
- package/resources/devices/proxy.d.ts.map +1 -1
- package/resources/devices/proxy.js +7 -3
- package/resources/devices/proxy.js.map +1 -1
- package/resources/devices/proxy.mjs +7 -3
- package/resources/devices/proxy.mjs.map +1 -1
- package/resources/devices/recordings.d.mts +192 -0
- package/resources/devices/recordings.d.mts.map +1 -0
- package/resources/devices/recordings.d.ts +192 -0
- package/resources/devices/recordings.d.ts.map +1 -0
- package/resources/devices/recordings.js +67 -0
- package/resources/devices/recordings.js.map +1 -0
- package/resources/devices/recordings.mjs +63 -0
- package/resources/devices/recordings.mjs.map +1 -0
- package/resources/devices/state.d.mts +13 -10
- package/resources/devices/state.d.mts.map +1 -1
- package/resources/devices/state.d.ts +13 -10
- package/resources/devices/state.d.ts.map +1 -1
- package/resources/devices/state.js +6 -3
- package/resources/devices/state.js.map +1 -1
- package/resources/devices/state.mjs +6 -3
- package/resources/devices/state.mjs.map +1 -1
- package/resources/devices/tasks.d.mts +2 -4
- package/resources/devices/tasks.d.mts.map +1 -1
- package/resources/devices/tasks.d.ts +2 -4
- package/resources/devices/tasks.d.ts.map +1 -1
- package/resources/devices/tasks.js +2 -4
- package/resources/devices/tasks.js.map +1 -1
- package/resources/devices/tasks.mjs +2 -4
- package/resources/devices/tasks.mjs.map +1 -1
- package/resources/devices/timezone.d.mts +4 -2
- package/resources/devices/timezone.d.mts.map +1 -1
- package/resources/devices/timezone.d.ts +4 -2
- package/resources/devices/timezone.d.ts.map +1 -1
- package/resources/devices/timezone.js +4 -2
- package/resources/devices/timezone.js.map +1 -1
- package/resources/devices/timezone.mjs +4 -2
- package/resources/devices/timezone.mjs.map +1 -1
- package/resources/esims/esims.d.mts +566 -0
- package/resources/esims/esims.d.mts.map +1 -0
- package/resources/esims/esims.d.ts +566 -0
- package/resources/esims/esims.d.ts.map +1 -0
- package/resources/esims/esims.js +205 -0
- package/resources/esims/esims.js.map +1 -0
- package/resources/esims/esims.mjs +200 -0
- package/resources/esims/esims.mjs.map +1 -0
- package/resources/esims/index.d.mts +3 -0
- package/resources/esims/index.d.mts.map +1 -0
- package/resources/esims/index.d.ts +3 -0
- package/resources/esims/index.d.ts.map +1 -0
- package/resources/esims/index.js +9 -0
- package/resources/esims/index.js.map +1 -0
- package/resources/esims/index.mjs +4 -0
- package/resources/esims/index.mjs.map +1 -0
- package/resources/esims/messages.d.mts +111 -0
- package/resources/esims/messages.d.mts.map +1 -0
- package/resources/esims/messages.d.ts +111 -0
- package/resources/esims/messages.d.ts.map +1 -0
- package/resources/esims/messages.js +37 -0
- package/resources/esims/messages.js.map +1 -0
- package/resources/esims/messages.mjs +33 -0
- package/resources/esims/messages.mjs.map +1 -0
- package/resources/esims.d.mts +2 -0
- package/resources/esims.d.mts.map +1 -0
- package/resources/esims.d.ts +2 -0
- package/resources/esims.d.ts.map +1 -0
- package/resources/esims.js +6 -0
- package/resources/esims.js.map +1 -0
- package/resources/esims.mjs +3 -0
- package/resources/esims.mjs.map +1 -0
- package/resources/index.d.mts +13 -7
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +13 -7
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +15 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +7 -1
- package/resources/index.mjs.map +1 -1
- package/resources/messages/conversations.d.mts +87 -0
- package/resources/messages/conversations.d.mts.map +1 -0
- package/resources/messages/conversations.d.ts +87 -0
- package/resources/messages/conversations.d.ts.map +1 -0
- package/resources/messages/conversations.js +34 -0
- package/resources/messages/conversations.js.map +1 -0
- package/resources/messages/conversations.mjs +30 -0
- package/resources/messages/conversations.mjs.map +1 -0
- package/resources/messages/index.d.mts +3 -0
- package/resources/messages/index.d.mts.map +1 -0
- package/resources/messages/index.d.ts +3 -0
- package/resources/messages/index.d.ts.map +1 -0
- package/resources/messages/index.js +9 -0
- package/resources/messages/index.js.map +1 -0
- package/resources/messages/index.mjs +4 -0
- package/resources/messages/index.mjs.map +1 -0
- package/resources/messages/messages.d.mts +56 -0
- package/resources/messages/messages.d.mts.map +1 -0
- package/resources/messages/messages.d.ts +56 -0
- package/resources/messages/messages.d.ts.map +1 -0
- package/resources/messages/messages.js +26 -0
- package/resources/messages/messages.js.map +1 -0
- package/resources/messages/messages.mjs +21 -0
- package/resources/messages/messages.mjs.map +1 -0
- package/resources/messages.d.mts +2 -0
- package/resources/messages.d.mts.map +1 -0
- package/resources/messages.d.ts +2 -0
- package/resources/messages.d.ts.map +1 -0
- package/resources/messages.js +6 -0
- package/resources/messages.js.map +1 -0
- package/resources/messages.mjs +3 -0
- package/resources/messages.mjs.map +1 -0
- package/resources/notifications.d.mts +86 -0
- package/resources/notifications.d.mts.map +1 -0
- package/resources/notifications.d.ts +86 -0
- package/resources/notifications.d.ts.map +1 -0
- package/resources/notifications.js +55 -0
- package/resources/notifications.js.map +1 -0
- package/resources/notifications.mjs +51 -0
- package/resources/notifications.mjs.map +1 -0
- package/resources/numbers/index.d.mts +3 -0
- package/resources/numbers/index.d.mts.map +1 -0
- package/resources/numbers/index.d.ts +3 -0
- package/resources/numbers/index.d.ts.map +1 -0
- package/resources/numbers/index.js +9 -0
- package/resources/numbers/index.js.map +1 -0
- package/resources/numbers/index.mjs +4 -0
- package/resources/numbers/index.mjs.map +1 -0
- package/resources/numbers/messages.d.mts +60 -0
- package/resources/numbers/messages.d.mts.map +1 -0
- package/resources/numbers/messages.d.ts +60 -0
- package/resources/numbers/messages.d.ts.map +1 -0
- package/resources/numbers/messages.js +25 -0
- package/resources/numbers/messages.js.map +1 -0
- package/resources/numbers/messages.mjs +21 -0
- package/resources/numbers/messages.mjs.map +1 -0
- package/resources/numbers/numbers.d.mts +222 -0
- package/resources/numbers/numbers.d.mts.map +1 -0
- package/resources/numbers/numbers.d.ts +222 -0
- package/resources/numbers/numbers.d.ts.map +1 -0
- package/resources/numbers/numbers.js +117 -0
- package/resources/numbers/numbers.js.map +1 -0
- package/resources/numbers/numbers.mjs +112 -0
- package/resources/numbers/numbers.mjs.map +1 -0
- package/resources/numbers.d.mts +2 -0
- package/resources/numbers.d.mts.map +1 -0
- package/resources/numbers.d.ts +2 -0
- package/resources/numbers.d.ts.map +1 -0
- package/resources/numbers.js +6 -0
- package/resources/numbers.js.map +1 -0
- package/resources/numbers.mjs +3 -0
- package/resources/numbers.mjs.map +1 -0
- package/resources/profiles.d.mts +69 -6
- package/resources/profiles.d.mts.map +1 -1
- package/resources/profiles.d.ts +69 -6
- package/resources/profiles.d.ts.map +1 -1
- package/resources/profiles.js.map +1 -1
- package/resources/profiles.mjs.map +1 -1
- package/resources/proxies.d.mts +57 -28
- package/resources/proxies.d.mts.map +1 -1
- package/resources/proxies.d.ts +57 -28
- package/resources/proxies.d.ts.map +1 -1
- package/resources/proxies.js +14 -8
- package/resources/proxies.js.map +1 -1
- package/resources/proxies.mjs +14 -8
- package/resources/proxies.mjs.map +1 -1
- package/resources/shared.d.mts +25 -3
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +25 -3
- package/resources/shared.d.ts.map +1 -1
- package/resources/store/apps.d.mts +119 -0
- package/resources/store/apps.d.mts.map +1 -0
- package/resources/store/apps.d.ts +119 -0
- package/resources/store/apps.d.ts.map +1 -0
- package/resources/store/apps.js +31 -0
- package/resources/store/apps.js.map +1 -0
- package/resources/store/apps.mjs +27 -0
- package/resources/store/apps.mjs.map +1 -0
- package/resources/store/index.d.mts +3 -0
- package/resources/store/index.d.mts.map +1 -0
- package/resources/store/index.d.ts +3 -0
- package/resources/store/index.d.ts.map +1 -0
- package/resources/store/index.js +9 -0
- package/resources/store/index.js.map +1 -0
- package/resources/store/index.mjs +4 -0
- package/resources/store/index.mjs.map +1 -0
- package/resources/store/store.d.mts +20 -0
- package/resources/store/store.d.mts.map +1 -0
- package/resources/store/store.d.ts +20 -0
- package/resources/store/store.d.ts.map +1 -0
- package/resources/store/store.js +23 -0
- package/resources/store/store.js.map +1 -0
- package/resources/store/store.mjs +18 -0
- package/resources/store/store.mjs.map +1 -0
- package/resources/store.d.mts +2 -0
- package/resources/store.d.mts.map +1 -0
- package/resources/store.d.ts +2 -0
- package/resources/store.d.ts.map +1 -0
- package/resources/store.js +6 -0
- package/resources/store.js.map +1 -0
- package/resources/store.mjs +3 -0
- package/resources/store.mjs.map +1 -0
- package/resources/tasks/index.d.mts +3 -3
- package/resources/tasks/index.d.mts.map +1 -1
- package/resources/tasks/index.d.ts +3 -3
- package/resources/tasks/index.d.ts.map +1 -1
- package/resources/tasks/index.js.map +1 -1
- package/resources/tasks/index.mjs +1 -1
- package/resources/tasks/index.mjs.map +1 -1
- package/resources/tasks/screenshots.d.mts +3 -3
- package/resources/tasks/screenshots.d.mts.map +1 -1
- package/resources/tasks/screenshots.d.ts +3 -3
- package/resources/tasks/screenshots.d.ts.map +1 -1
- package/resources/tasks/tasks.d.mts +216 -90
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +216 -90
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js +10 -2
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs +11 -3
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/tasks/ui-states.d.mts +8 -3
- package/resources/tasks/ui-states.d.mts.map +1 -1
- package/resources/tasks/ui-states.d.ts +8 -3
- package/resources/tasks/ui-states.d.ts.map +1 -1
- package/resources/tasks/ui-states.js.map +1 -1
- package/resources/tasks/ui-states.mjs.map +1 -1
- package/resources/webhooks/deliveries.d.mts +38 -4
- package/resources/webhooks/deliveries.d.mts.map +1 -1
- package/resources/webhooks/deliveries.d.ts +38 -4
- package/resources/webhooks/deliveries.d.ts.map +1 -1
- package/resources/webhooks/deliveries.js +15 -4
- package/resources/webhooks/deliveries.js.map +1 -1
- package/resources/webhooks/deliveries.mjs +15 -4
- package/resources/webhooks/deliveries.mjs.map +1 -1
- package/resources/webhooks/webhooks.d.mts +67 -9
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +67 -9
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js +26 -8
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +26 -8
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/resources/workflows/action-catalog.d.mts +32 -15
- package/resources/workflows/action-catalog.d.mts.map +1 -1
- package/resources/workflows/action-catalog.d.ts +32 -15
- package/resources/workflows/action-catalog.d.ts.map +1 -1
- package/resources/workflows/action-catalog.js +5 -2
- package/resources/workflows/action-catalog.js.map +1 -1
- package/resources/workflows/action-catalog.mjs +5 -2
- package/resources/workflows/action-catalog.mjs.map +1 -1
- package/resources/workflows/actions/actions.d.mts +95 -23
- package/resources/workflows/actions/actions.d.mts.map +1 -1
- package/resources/workflows/actions/actions.d.ts +95 -23
- package/resources/workflows/actions/actions.d.ts.map +1 -1
- package/resources/workflows/actions/actions.js +10 -5
- package/resources/workflows/actions/actions.js.map +1 -1
- package/resources/workflows/actions/actions.mjs +10 -5
- package/resources/workflows/actions/actions.mjs.map +1 -1
- package/resources/workflows/actions/index.d.mts +1 -1
- package/resources/workflows/actions/index.d.mts.map +1 -1
- package/resources/workflows/actions/index.d.ts +1 -1
- package/resources/workflows/actions/index.d.ts.map +1 -1
- package/resources/workflows/actions/index.js.map +1 -1
- package/resources/workflows/actions/index.mjs.map +1 -1
- package/resources/workflows/actions/services.d.mts +5 -2
- package/resources/workflows/actions/services.d.mts.map +1 -1
- package/resources/workflows/actions/services.d.ts +5 -2
- package/resources/workflows/actions/services.d.ts.map +1 -1
- package/resources/workflows/actions/services.js +5 -2
- package/resources/workflows/actions/services.js.map +1 -1
- package/resources/workflows/actions/services.mjs +5 -2
- package/resources/workflows/actions/services.mjs.map +1 -1
- package/resources/workflows/events.d.mts +144 -1
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +144 -1
- package/resources/workflows/events.d.ts.map +1 -1
- package/resources/workflows/events.js +18 -2
- package/resources/workflows/events.js.map +1 -1
- package/resources/workflows/events.mjs +16 -1
- package/resources/workflows/events.mjs.map +1 -1
- package/resources/workflows/executions.d.mts +107 -20
- package/resources/workflows/executions.d.mts.map +1 -1
- package/resources/workflows/executions.d.ts +107 -20
- package/resources/workflows/executions.d.ts.map +1 -1
- package/resources/workflows/executions.js +15 -3
- package/resources/workflows/executions.js.map +1 -1
- package/resources/workflows/executions.mjs +15 -3
- package/resources/workflows/executions.mjs.map +1 -1
- package/resources/workflows/flows/actions.d.mts +121 -30
- package/resources/workflows/flows/actions.d.mts.map +1 -1
- package/resources/workflows/flows/actions.d.ts +121 -30
- package/resources/workflows/flows/actions.d.ts.map +1 -1
- package/resources/workflows/flows/actions.js +12 -4
- package/resources/workflows/flows/actions.js.map +1 -1
- package/resources/workflows/flows/actions.mjs +12 -4
- package/resources/workflows/flows/actions.mjs.map +1 -1
- package/resources/workflows/flows/flows.d.mts +406 -32
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +406 -32
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +43 -6
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +43 -6
- package/resources/workflows/flows/flows.mjs.map +1 -1
- package/resources/workflows/flows/index.d.mts +2 -2
- package/resources/workflows/flows/index.d.mts.map +1 -1
- package/resources/workflows/flows/index.d.ts +2 -2
- package/resources/workflows/flows/index.d.ts.map +1 -1
- package/resources/workflows/flows/index.js.map +1 -1
- package/resources/workflows/flows/index.mjs.map +1 -1
- package/resources/workflows/index.d.mts +6 -6
- package/resources/workflows/index.d.mts.map +1 -1
- package/resources/workflows/index.d.ts +6 -6
- package/resources/workflows/index.d.ts.map +1 -1
- package/resources/workflows/index.js +4 -4
- package/resources/workflows/index.js.map +1 -1
- package/resources/workflows/index.mjs +1 -1
- package/resources/workflows/index.mjs.map +1 -1
- package/resources/workflows/triggers.d.mts +76 -61
- package/resources/workflows/triggers.d.mts.map +1 -1
- package/resources/workflows/triggers.d.ts +76 -61
- package/resources/workflows/triggers.d.ts.map +1 -1
- package/resources/workflows/triggers.js +12 -5
- package/resources/workflows/triggers.js.map +1 -1
- package/resources/workflows/triggers.mjs +12 -5
- package/resources/workflows/triggers.mjs.map +1 -1
- package/resources/workflows/workflows.d.mts +10 -33
- package/resources/workflows/workflows.d.mts.map +1 -1
- package/resources/workflows/workflows.d.ts +10 -33
- package/resources/workflows/workflows.d.ts.map +1 -1
- package/resources/workflows/workflows.js +2 -2
- package/resources/workflows/workflows.js.map +1 -1
- package/resources/workflows/workflows.mjs +2 -2
- package/resources/workflows/workflows.mjs.map +1 -1
- package/src/client.ts +137 -65
- package/src/resources/agents.ts +42 -0
- package/src/resources/app-events/app-events.ts +133 -0
- package/src/resources/app-events/catalog.ts +100 -0
- package/src/resources/app-events/index.ts +9 -0
- package/src/resources/app-events.ts +3 -0
- package/src/resources/apps.ts +55 -8
- package/src/resources/carriers.ts +0 -3
- package/src/resources/connect/countries.ts +8 -3
- package/src/resources/connect/proxies.ts +11 -9
- package/src/resources/connect/users.ts +7 -2
- package/src/resources/credentials/credentials.ts +43 -6
- package/src/resources/credentials/index.ts +1 -0
- package/src/resources/credentials/packages/credentials/credentials.ts +117 -33
- package/src/resources/credentials/packages/credentials/fields.ts +122 -10
- package/src/resources/credentials/packages/credentials/index.ts +0 -1
- package/src/resources/credentials/packages/index.ts +1 -1
- package/src/resources/credentials/packages/packages.ts +63 -8
- package/src/resources/devices/actions.ts +10 -5
- package/src/resources/devices/apps.ts +196 -5
- package/src/resources/devices/browser.ts +71 -0
- package/src/resources/devices/deep-link.ts +70 -0
- package/src/resources/devices/devices.ts +511 -38
- package/src/resources/devices/esim/apn.ts +178 -0
- package/src/resources/devices/esim/esim.ts +312 -0
- package/src/resources/devices/esim/index.ts +21 -0
- package/src/resources/devices/esim.ts +1 -206
- package/src/resources/devices/files.ts +43 -39
- package/src/resources/devices/index.ts +45 -5
- package/src/resources/devices/keyboard.ts +5 -3
- package/src/resources/devices/kiosk.ts +74 -0
- package/src/resources/devices/language.ts +4 -2
- package/src/resources/devices/location.ts +37 -3
- package/src/resources/devices/media-sessions.ts +168 -0
- package/src/resources/devices/packages.ts +2 -1
- package/src/resources/devices/proxy.ts +32 -3
- package/src/resources/devices/recordings.ts +358 -0
- package/src/resources/devices/state.ts +15 -12
- package/src/resources/devices/tasks.ts +2 -4
- package/src/resources/devices/timezone.ts +4 -2
- package/src/resources/esims/esims.ts +1013 -0
- package/src/resources/esims/index.ts +27 -0
- package/src/resources/esims/messages.ts +193 -0
- package/src/resources/esims.ts +3 -0
- package/src/resources/index.ts +54 -23
- package/src/resources/messages/conversations.ts +138 -0
- package/src/resources/messages/index.ts +10 -0
- package/src/resources/messages/messages.ts +120 -0
- package/src/resources/messages.ts +3 -0
- package/src/resources/notifications.ts +118 -0
- package/src/resources/numbers/index.ts +14 -0
- package/src/resources/numbers/messages.ts +102 -0
- package/src/resources/numbers/numbers.ts +339 -0
- package/src/resources/numbers.ts +3 -0
- package/src/resources/profiles.ts +105 -6
- package/src/resources/proxies.ts +66 -30
- package/src/resources/shared.ts +35 -4
- package/src/resources/store/apps.ts +704 -0
- package/src/resources/store/index.ts +10 -0
- package/src/resources/store/store.ts +36 -0
- package/src/resources/store.ts +3 -0
- package/src/resources/tasks/index.ts +7 -6
- package/src/resources/tasks/screenshots.ts +3 -3
- package/src/resources/tasks/tasks.ts +259 -103
- package/src/resources/tasks/ui-states.ts +9 -2
- package/src/resources/webhooks/deliveries.ts +43 -4
- package/src/resources/webhooks/webhooks.ts +79 -9
- package/src/resources/workflows/action-catalog.ts +40 -16
- package/src/resources/workflows/actions/actions.ts +136 -24
- package/src/resources/workflows/actions/index.ts +0 -1
- package/src/resources/workflows/actions/services.ts +5 -2
- package/src/resources/workflows/events.ts +226 -1
- package/src/resources/workflows/executions.ts +143 -21
- package/src/resources/workflows/flows/actions.ts +141 -29
- package/src/resources/workflows/flows/flows.ts +663 -31
- package/src/resources/workflows/flows/index.ts +3 -3
- package/src/resources/workflows/index.ts +6 -7
- package/src/resources/workflows/triggers.ts +93 -73
- package/src/resources/workflows/workflows.ts +16 -69
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/hooks.d.mts +0 -243
- package/resources/hooks.d.mts.map +0 -1
- package/resources/hooks.d.ts +0 -243
- package/resources/hooks.d.ts.map +0 -1
- package/resources/hooks.js +0 -66
- package/resources/hooks.js.map +0 -1
- package/resources/hooks.mjs +0 -62
- package/resources/hooks.mjs.map +0 -1
- package/resources/workflows/events/catalog.d.mts +0 -55
- package/resources/workflows/events/catalog.d.mts.map +0 -1
- package/resources/workflows/events/catalog.d.ts +0 -55
- package/resources/workflows/events/catalog.d.ts.map +0 -1
- package/resources/workflows/events/catalog.js +0 -21
- package/resources/workflows/events/catalog.js.map +0 -1
- package/resources/workflows/events/catalog.mjs +0 -17
- package/resources/workflows/events/catalog.mjs.map +0 -1
- package/resources/workflows/events/events.d.mts +0 -123
- package/resources/workflows/events/events.d.mts.map +0 -1
- package/resources/workflows/events/events.d.ts +0 -123
- package/resources/workflows/events/events.d.ts.map +0 -1
- package/resources/workflows/events/events.js +0 -30
- package/resources/workflows/events/events.js.map +0 -1
- package/resources/workflows/events/events.mjs +0 -25
- package/resources/workflows/events/events.mjs.map +0 -1
- package/resources/workflows/events/index.d.mts +0 -3
- package/resources/workflows/events/index.d.mts.map +0 -1
- package/resources/workflows/events/index.d.ts +0 -3
- package/resources/workflows/events/index.d.ts.map +0 -1
- package/resources/workflows/events/index.js.map +0 -1
- package/resources/workflows/events/index.mjs +0 -4
- package/resources/workflows/events/index.mjs.map +0 -1
- package/src/resources/hooks.ts +0 -337
- package/src/resources/workflows/events/catalog.ts +0 -88
- package/src/resources/workflows/events/events.ts +0 -189
- package/src/resources/workflows/events/index.ts +0 -16
package/resources/profiles.d.ts
CHANGED
|
@@ -6,15 +6,15 @@ export declare class Profiles extends APIResource {
|
|
|
6
6
|
/**
|
|
7
7
|
* Create a new device profile
|
|
8
8
|
*/
|
|
9
|
-
create(body: ProfileCreateParams, options?: RequestOptions): APIPromise<
|
|
9
|
+
create(body: ProfileCreateParams, options?: RequestOptions): APIPromise<ProfileCreateResponse>;
|
|
10
10
|
/**
|
|
11
11
|
* Get device profile by ID
|
|
12
12
|
*/
|
|
13
|
-
retrieve(profileID: string, options?: RequestOptions): APIPromise<
|
|
13
|
+
retrieve(profileID: string, options?: RequestOptions): APIPromise<ProfileRetrieveResponse>;
|
|
14
14
|
/**
|
|
15
15
|
* Update a device profile
|
|
16
16
|
*/
|
|
17
|
-
update(profileID: string, body: ProfileUpdateParams, options?: RequestOptions): APIPromise<
|
|
17
|
+
update(profileID: string, body: ProfileUpdateParams, options?: RequestOptions): APIPromise<ProfileUpdateResponse>;
|
|
18
18
|
/**
|
|
19
19
|
* List device profiles
|
|
20
20
|
*/
|
|
@@ -24,26 +24,84 @@ export declare class Profiles extends APIResource {
|
|
|
24
24
|
*/
|
|
25
25
|
delete(profileID: string, options?: RequestOptions): APIPromise<ProfileDeleteResponse>;
|
|
26
26
|
}
|
|
27
|
-
export interface
|
|
27
|
+
export interface ProfileCreateResponse {
|
|
28
28
|
id: string;
|
|
29
29
|
createdAt: string;
|
|
30
30
|
name: string;
|
|
31
|
+
ownerId: string;
|
|
31
32
|
spec: Shared.DeviceSpec;
|
|
32
33
|
updatedAt: string;
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated Deprecated: use ownerId/createdBy.
|
|
36
|
+
*/
|
|
37
|
+
userId: string;
|
|
38
|
+
/**
|
|
39
|
+
* A URL to the JSON Schema for this object.
|
|
40
|
+
*/
|
|
41
|
+
$schema?: string;
|
|
42
|
+
createdBy?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface ProfileRetrieveResponse {
|
|
45
|
+
id: string;
|
|
46
|
+
createdAt: string;
|
|
47
|
+
name: string;
|
|
48
|
+
ownerId: string;
|
|
49
|
+
spec: Shared.DeviceSpec;
|
|
50
|
+
updatedAt: string;
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated Deprecated: use ownerId/createdBy.
|
|
53
|
+
*/
|
|
33
54
|
userId: string;
|
|
34
55
|
/**
|
|
35
56
|
* A URL to the JSON Schema for this object.
|
|
36
57
|
*/
|
|
37
58
|
$schema?: string;
|
|
59
|
+
createdBy?: string;
|
|
60
|
+
}
|
|
61
|
+
export interface ProfileUpdateResponse {
|
|
62
|
+
id: string;
|
|
63
|
+
createdAt: string;
|
|
64
|
+
name: string;
|
|
65
|
+
ownerId: string;
|
|
66
|
+
spec: Shared.DeviceSpec;
|
|
67
|
+
updatedAt: string;
|
|
68
|
+
/**
|
|
69
|
+
* @deprecated Deprecated: use ownerId/createdBy.
|
|
70
|
+
*/
|
|
71
|
+
userId: string;
|
|
72
|
+
/**
|
|
73
|
+
* A URL to the JSON Schema for this object.
|
|
74
|
+
*/
|
|
75
|
+
$schema?: string;
|
|
76
|
+
createdBy?: string;
|
|
38
77
|
}
|
|
39
78
|
export interface ProfileListResponse {
|
|
40
|
-
items: Array<
|
|
79
|
+
items: Array<ProfileListResponse.Item> | null;
|
|
41
80
|
pagination: Shared.Meta;
|
|
42
81
|
/**
|
|
43
82
|
* A URL to the JSON Schema for this object.
|
|
44
83
|
*/
|
|
45
84
|
$schema?: string;
|
|
46
85
|
}
|
|
86
|
+
export declare namespace ProfileListResponse {
|
|
87
|
+
interface Item {
|
|
88
|
+
id: string;
|
|
89
|
+
createdAt: string;
|
|
90
|
+
name: string;
|
|
91
|
+
ownerId: string;
|
|
92
|
+
spec: Shared.DeviceSpec;
|
|
93
|
+
updatedAt: string;
|
|
94
|
+
/**
|
|
95
|
+
* @deprecated Deprecated: use ownerId/createdBy.
|
|
96
|
+
*/
|
|
97
|
+
userId: string;
|
|
98
|
+
/**
|
|
99
|
+
* A URL to the JSON Schema for this object.
|
|
100
|
+
*/
|
|
101
|
+
$schema?: string;
|
|
102
|
+
createdBy?: string;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
47
105
|
export interface ProfileDeleteResponse {
|
|
48
106
|
message: string;
|
|
49
107
|
/**
|
|
@@ -72,6 +130,11 @@ export interface ProfileUpdateParams {
|
|
|
72
130
|
spec: Shared.DeviceSpec;
|
|
73
131
|
}
|
|
74
132
|
export interface ProfileListParams {
|
|
133
|
+
/**
|
|
134
|
+
* When true, only return profiles created by the calling user (resolved from
|
|
135
|
+
* X-User-ID, never a client-supplied id).
|
|
136
|
+
*/
|
|
137
|
+
mine?: boolean;
|
|
75
138
|
name?: string;
|
|
76
139
|
orderBy?: 'name' | 'created_at' | 'updated_at';
|
|
77
140
|
orderByDirection?: 'asc' | 'desc';
|
|
@@ -79,6 +142,6 @@ export interface ProfileListParams {
|
|
|
79
142
|
pageSize?: number;
|
|
80
143
|
}
|
|
81
144
|
export declare namespace Profiles {
|
|
82
|
-
export { type
|
|
145
|
+
export { type ProfileCreateResponse as ProfileCreateResponse, type ProfileRetrieveResponse as ProfileRetrieveResponse, type ProfileUpdateResponse as ProfileUpdateResponse, type ProfileListResponse as ProfileListResponse, type ProfileDeleteResponse as ProfileDeleteResponse, type ProfileCreateParams as ProfileCreateParams, type ProfileUpdateParams as ProfileUpdateParams, type ProfileListParams as ProfileListParams, };
|
|
83
146
|
}
|
|
84
147
|
//# sourceMappingURL=profiles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../src/resources/profiles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,MAAM,oBAAiB;AACnC,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../src/resources/profiles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,MAAM,oBAAiB;AACnC,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI9F;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAI1F;;OAEG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,mBAAmB,EACzB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;IAIpC;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;IAIlC;;OAEG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cA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uB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profiles.js","sourceRoot":"","sources":["../src/resources/profiles.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAA8C;AAE9C,MAAa,QAAS,SAAQ,sBAAW;IACvC;;OAEG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,MAAM,
|
|
1
|
+
{"version":3,"file":"profiles.js","sourceRoot":"","sources":["../src/resources/profiles.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAA8C;AAE9C,MAAa,QAAS,SAAQ,sBAAW;IACvC;;OAEG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,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
|
1
|
+
{"version":3,"file":"profiles.mjs","sourceRoot":"","sources":["../src/resources/profiles.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,SAAiB,EACjB,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,SAAiB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,aAAa,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;CACF"}
|
package/resources/proxies.d.mts
CHANGED
|
@@ -1,28 +1,35 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as Shared from "./shared.mjs";
|
|
2
3
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
4
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
-
/**
|
|
5
|
-
* Network Proxies
|
|
6
|
-
*/
|
|
7
5
|
export declare class Proxies extends APIResource {
|
|
8
6
|
/**
|
|
9
|
-
*
|
|
7
|
+
* Creates a proxy config. The body is a discriminated union on `protocol`:
|
|
8
|
+
* `socks5` requires name, host, port, user, and password, while `wireguard`
|
|
9
|
+
* requires name and a config string. Returns the created config with its generated
|
|
10
|
+
* `proxyId`.
|
|
10
11
|
*/
|
|
11
12
|
create(body: ProxyCreateParams, options?: RequestOptions): APIPromise<ProxyCreateResponse>;
|
|
12
13
|
/**
|
|
13
|
-
*
|
|
14
|
+
* Fetches a single proxy config by its `proxyId`. The response shape depends on
|
|
15
|
+
* the proxy's `protocol` (socks5 or wireguard). Returns not found if no matching
|
|
16
|
+
* config exists.
|
|
14
17
|
*/
|
|
15
18
|
retrieve(proxyID: string, options?: RequestOptions): APIPromise<ProxyRetrieveResponse>;
|
|
16
19
|
/**
|
|
17
|
-
*
|
|
20
|
+
* Replaces the proxy config identified by `proxyId` with the provided body. As
|
|
21
|
+
* with creation, the body is a `protocol`-discriminated union of socks5 or
|
|
22
|
+
* wireguard fields. Returns the updated config.
|
|
18
23
|
*/
|
|
19
24
|
update(proxyID: string, body: ProxyUpdateParams, options?: RequestOptions): APIPromise<ProxyUpdateResponse>;
|
|
20
25
|
/**
|
|
21
|
-
*
|
|
26
|
+
* Returns all proxy configs for the authenticated user. An optional `protocol`
|
|
27
|
+
* query parameter (`socks5` or `wireguard`) filters the results by proxy type.
|
|
22
28
|
*/
|
|
23
29
|
list(query?: ProxyListParams | null | undefined, options?: RequestOptions): APIPromise<ProxyListResponse>;
|
|
24
30
|
/**
|
|
25
|
-
*
|
|
31
|
+
* Permanently deletes the proxy config identified by `proxyId` and returns the
|
|
32
|
+
* deleted config. Returns not found if no matching config exists.
|
|
26
33
|
*/
|
|
27
34
|
delete(proxyID: string, options?: RequestOptions): APIPromise<ProxyDeleteResponse>;
|
|
28
35
|
/**
|
|
@@ -30,17 +37,23 @@ export declare class Proxies extends APIResource {
|
|
|
30
37
|
*/
|
|
31
38
|
lookup(body: ProxyLookupParams, options?: RequestOptions): APIPromise<ProxyLookupResponse>;
|
|
32
39
|
}
|
|
33
|
-
export
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
40
|
+
export interface ProxyCreateResponse {
|
|
41
|
+
data: Shared.Socks5ProxyConfig | ProxyCreateResponse.WireguardProxyConfig;
|
|
42
|
+
message: string;
|
|
43
|
+
success: true;
|
|
44
|
+
}
|
|
45
|
+
export declare namespace ProxyCreateResponse {
|
|
46
|
+
interface WireguardProxyConfig {
|
|
47
|
+
config: string;
|
|
37
48
|
name: string;
|
|
38
|
-
|
|
39
|
-
port: number;
|
|
40
|
-
protocol: 'socks5';
|
|
49
|
+
protocol: 'wireguard';
|
|
41
50
|
proxyId: string;
|
|
42
|
-
user: string;
|
|
43
51
|
}
|
|
52
|
+
}
|
|
53
|
+
export interface ProxyRetrieveResponse {
|
|
54
|
+
data: Shared.Socks5ProxyConfig | ProxyRetrieveResponse.WireguardProxyConfig;
|
|
55
|
+
}
|
|
56
|
+
export declare namespace ProxyRetrieveResponse {
|
|
44
57
|
interface WireguardProxyConfig {
|
|
45
58
|
config: string;
|
|
46
59
|
name: string;
|
|
@@ -48,27 +61,43 @@ export declare namespace ProxyConfig {
|
|
|
48
61
|
proxyId: string;
|
|
49
62
|
}
|
|
50
63
|
}
|
|
51
|
-
export interface ProxyCreateResponse {
|
|
52
|
-
data: ProxyConfig;
|
|
53
|
-
message: string;
|
|
54
|
-
success: true;
|
|
55
|
-
}
|
|
56
|
-
export interface ProxyRetrieveResponse {
|
|
57
|
-
data: ProxyConfig;
|
|
58
|
-
}
|
|
59
64
|
export interface ProxyUpdateResponse {
|
|
60
|
-
data:
|
|
65
|
+
data: Shared.Socks5ProxyConfig | ProxyUpdateResponse.WireguardProxyConfig;
|
|
61
66
|
message: string;
|
|
62
67
|
success: true;
|
|
63
68
|
}
|
|
69
|
+
export declare namespace ProxyUpdateResponse {
|
|
70
|
+
interface WireguardProxyConfig {
|
|
71
|
+
config: string;
|
|
72
|
+
name: string;
|
|
73
|
+
protocol: 'wireguard';
|
|
74
|
+
proxyId: string;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
64
77
|
export interface ProxyListResponse {
|
|
65
|
-
data: Array<
|
|
78
|
+
data: Array<Shared.Socks5ProxyConfig | ProxyListResponse.WireguardProxyConfig>;
|
|
79
|
+
}
|
|
80
|
+
export declare namespace ProxyListResponse {
|
|
81
|
+
interface WireguardProxyConfig {
|
|
82
|
+
config: string;
|
|
83
|
+
name: string;
|
|
84
|
+
protocol: 'wireguard';
|
|
85
|
+
proxyId: string;
|
|
86
|
+
}
|
|
66
87
|
}
|
|
67
88
|
export interface ProxyDeleteResponse {
|
|
68
|
-
data:
|
|
89
|
+
data: Shared.Socks5ProxyConfig | ProxyDeleteResponse.WireguardProxyConfig;
|
|
69
90
|
message: string;
|
|
70
91
|
success: true;
|
|
71
92
|
}
|
|
93
|
+
export declare namespace ProxyDeleteResponse {
|
|
94
|
+
interface WireguardProxyConfig {
|
|
95
|
+
config: string;
|
|
96
|
+
name: string;
|
|
97
|
+
protocol: 'wireguard';
|
|
98
|
+
proxyId: string;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
72
101
|
export interface ProxyLookupResponse {
|
|
73
102
|
/**
|
|
74
103
|
* IP address of the proxy.
|
|
@@ -187,6 +216,6 @@ export declare namespace ProxyLookupParams {
|
|
|
187
216
|
}
|
|
188
217
|
}
|
|
189
218
|
export declare namespace Proxies {
|
|
190
|
-
export { type
|
|
219
|
+
export { type ProxyCreateResponse as ProxyCreateResponse, type ProxyRetrieveResponse as ProxyRetrieveResponse, type ProxyUpdateResponse as ProxyUpdateResponse, type ProxyListResponse as ProxyListResponse, type ProxyDeleteResponse as ProxyDeleteResponse, type ProxyLookupResponse as ProxyLookupResponse, type ProxyCreateParams as ProxyCreateParams, type ProxyUpdateParams as ProxyUpdateParams, type ProxyListParams as ProxyListParams, type ProxyLookupParams as ProxyLookupParams, };
|
|
191
220
|
}
|
|
192
221
|
//# sourceMappingURL=proxies.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proxies.d.mts","sourceRoot":"","sources":["../src/resources/proxies.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D
|
|
1
|
+
{"version":3,"file":"proxies.d.mts","sourceRoot":"","sources":["../src/resources/proxies.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,MAAM,qBAAiB;AACnC,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;OAKG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAI1F;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAItF;;;;OAIG;IACH,MAAM,CACJ,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,iBAAiB,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;IAIlC;;;OAGG;IACH,IAAI,CACF,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;IAIhC;;;OAGG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE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B,iBAAiB,CAAC;IACjC;;OAEG;IACH,UAAiB,MAAM;QACrB,IAAI,EAAE,MAAM,CAAC;QAEb,IAAI,EAAE,MAAM,CAAC;QAEb,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf;CACF;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/resources/proxies.d.ts
CHANGED
|
@@ -1,28 +1,35 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as Shared from "./shared.js";
|
|
2
3
|
import { APIPromise } from "../core/api-promise.js";
|
|
3
4
|
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
-
/**
|
|
5
|
-
* Network Proxies
|
|
6
|
-
*/
|
|
7
5
|
export declare class Proxies extends APIResource {
|
|
8
6
|
/**
|
|
9
|
-
*
|
|
7
|
+
* Creates a proxy config. The body is a discriminated union on `protocol`:
|
|
8
|
+
* `socks5` requires name, host, port, user, and password, while `wireguard`
|
|
9
|
+
* requires name and a config string. Returns the created config with its generated
|
|
10
|
+
* `proxyId`.
|
|
10
11
|
*/
|
|
11
12
|
create(body: ProxyCreateParams, options?: RequestOptions): APIPromise<ProxyCreateResponse>;
|
|
12
13
|
/**
|
|
13
|
-
*
|
|
14
|
+
* Fetches a single proxy config by its `proxyId`. The response shape depends on
|
|
15
|
+
* the proxy's `protocol` (socks5 or wireguard). Returns not found if no matching
|
|
16
|
+
* config exists.
|
|
14
17
|
*/
|
|
15
18
|
retrieve(proxyID: string, options?: RequestOptions): APIPromise<ProxyRetrieveResponse>;
|
|
16
19
|
/**
|
|
17
|
-
*
|
|
20
|
+
* Replaces the proxy config identified by `proxyId` with the provided body. As
|
|
21
|
+
* with creation, the body is a `protocol`-discriminated union of socks5 or
|
|
22
|
+
* wireguard fields. Returns the updated config.
|
|
18
23
|
*/
|
|
19
24
|
update(proxyID: string, body: ProxyUpdateParams, options?: RequestOptions): APIPromise<ProxyUpdateResponse>;
|
|
20
25
|
/**
|
|
21
|
-
*
|
|
26
|
+
* Returns all proxy configs for the authenticated user. An optional `protocol`
|
|
27
|
+
* query parameter (`socks5` or `wireguard`) filters the results by proxy type.
|
|
22
28
|
*/
|
|
23
29
|
list(query?: ProxyListParams | null | undefined, options?: RequestOptions): APIPromise<ProxyListResponse>;
|
|
24
30
|
/**
|
|
25
|
-
*
|
|
31
|
+
* Permanently deletes the proxy config identified by `proxyId` and returns the
|
|
32
|
+
* deleted config. Returns not found if no matching config exists.
|
|
26
33
|
*/
|
|
27
34
|
delete(proxyID: string, options?: RequestOptions): APIPromise<ProxyDeleteResponse>;
|
|
28
35
|
/**
|
|
@@ -30,17 +37,23 @@ export declare class Proxies extends APIResource {
|
|
|
30
37
|
*/
|
|
31
38
|
lookup(body: ProxyLookupParams, options?: RequestOptions): APIPromise<ProxyLookupResponse>;
|
|
32
39
|
}
|
|
33
|
-
export
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
40
|
+
export interface ProxyCreateResponse {
|
|
41
|
+
data: Shared.Socks5ProxyConfig | ProxyCreateResponse.WireguardProxyConfig;
|
|
42
|
+
message: string;
|
|
43
|
+
success: true;
|
|
44
|
+
}
|
|
45
|
+
export declare namespace ProxyCreateResponse {
|
|
46
|
+
interface WireguardProxyConfig {
|
|
47
|
+
config: string;
|
|
37
48
|
name: string;
|
|
38
|
-
|
|
39
|
-
port: number;
|
|
40
|
-
protocol: 'socks5';
|
|
49
|
+
protocol: 'wireguard';
|
|
41
50
|
proxyId: string;
|
|
42
|
-
user: string;
|
|
43
51
|
}
|
|
52
|
+
}
|
|
53
|
+
export interface ProxyRetrieveResponse {
|
|
54
|
+
data: Shared.Socks5ProxyConfig | ProxyRetrieveResponse.WireguardProxyConfig;
|
|
55
|
+
}
|
|
56
|
+
export declare namespace ProxyRetrieveResponse {
|
|
44
57
|
interface WireguardProxyConfig {
|
|
45
58
|
config: string;
|
|
46
59
|
name: string;
|
|
@@ -48,27 +61,43 @@ export declare namespace ProxyConfig {
|
|
|
48
61
|
proxyId: string;
|
|
49
62
|
}
|
|
50
63
|
}
|
|
51
|
-
export interface ProxyCreateResponse {
|
|
52
|
-
data: ProxyConfig;
|
|
53
|
-
message: string;
|
|
54
|
-
success: true;
|
|
55
|
-
}
|
|
56
|
-
export interface ProxyRetrieveResponse {
|
|
57
|
-
data: ProxyConfig;
|
|
58
|
-
}
|
|
59
64
|
export interface ProxyUpdateResponse {
|
|
60
|
-
data:
|
|
65
|
+
data: Shared.Socks5ProxyConfig | ProxyUpdateResponse.WireguardProxyConfig;
|
|
61
66
|
message: string;
|
|
62
67
|
success: true;
|
|
63
68
|
}
|
|
69
|
+
export declare namespace ProxyUpdateResponse {
|
|
70
|
+
interface WireguardProxyConfig {
|
|
71
|
+
config: string;
|
|
72
|
+
name: string;
|
|
73
|
+
protocol: 'wireguard';
|
|
74
|
+
proxyId: string;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
64
77
|
export interface ProxyListResponse {
|
|
65
|
-
data: Array<
|
|
78
|
+
data: Array<Shared.Socks5ProxyConfig | ProxyListResponse.WireguardProxyConfig>;
|
|
79
|
+
}
|
|
80
|
+
export declare namespace ProxyListResponse {
|
|
81
|
+
interface WireguardProxyConfig {
|
|
82
|
+
config: string;
|
|
83
|
+
name: string;
|
|
84
|
+
protocol: 'wireguard';
|
|
85
|
+
proxyId: string;
|
|
86
|
+
}
|
|
66
87
|
}
|
|
67
88
|
export interface ProxyDeleteResponse {
|
|
68
|
-
data:
|
|
89
|
+
data: Shared.Socks5ProxyConfig | ProxyDeleteResponse.WireguardProxyConfig;
|
|
69
90
|
message: string;
|
|
70
91
|
success: true;
|
|
71
92
|
}
|
|
93
|
+
export declare namespace ProxyDeleteResponse {
|
|
94
|
+
interface WireguardProxyConfig {
|
|
95
|
+
config: string;
|
|
96
|
+
name: string;
|
|
97
|
+
protocol: 'wireguard';
|
|
98
|
+
proxyId: string;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
72
101
|
export interface ProxyLookupResponse {
|
|
73
102
|
/**
|
|
74
103
|
* IP address of the proxy.
|
|
@@ -187,6 +216,6 @@ export declare namespace ProxyLookupParams {
|
|
|
187
216
|
}
|
|
188
217
|
}
|
|
189
218
|
export declare namespace Proxies {
|
|
190
|
-
export { type
|
|
219
|
+
export { type ProxyCreateResponse as ProxyCreateResponse, type ProxyRetrieveResponse as ProxyRetrieveResponse, type ProxyUpdateResponse as ProxyUpdateResponse, type ProxyListResponse as ProxyListResponse, type ProxyDeleteResponse as ProxyDeleteResponse, type ProxyLookupResponse as ProxyLookupResponse, type ProxyCreateParams as ProxyCreateParams, type ProxyUpdateParams as ProxyUpdateParams, type ProxyListParams as ProxyListParams, type ProxyLookupParams as ProxyLookupParams, };
|
|
191
220
|
}
|
|
192
221
|
//# sourceMappingURL=proxies.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proxies.d.ts","sourceRoot":"","sources":["../src/resources/proxies.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D
|
|
1
|
+
{"version":3,"file":"proxies.d.ts","sourceRoot":"","sources":["../src/resources/proxies.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAA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EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/resources/proxies.js
CHANGED
|
@@ -4,36 +4,42 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Proxies = void 0;
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
6
|
const path_1 = require("../internal/utils/path.js");
|
|
7
|
-
/**
|
|
8
|
-
* Network Proxies
|
|
9
|
-
*/
|
|
10
7
|
class Proxies extends resource_1.APIResource {
|
|
11
8
|
/**
|
|
12
|
-
*
|
|
9
|
+
* Creates a proxy config. The body is a discriminated union on `protocol`:
|
|
10
|
+
* `socks5` requires name, host, port, user, and password, while `wireguard`
|
|
11
|
+
* requires name and a config string. Returns the created config with its generated
|
|
12
|
+
* `proxyId`.
|
|
13
13
|
*/
|
|
14
14
|
create(body, options) {
|
|
15
15
|
return this._client.post('/proxies', { body, ...options });
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Fetches a single proxy config by its `proxyId`. The response shape depends on
|
|
19
|
+
* the proxy's `protocol` (socks5 or wireguard). Returns not found if no matching
|
|
20
|
+
* config exists.
|
|
19
21
|
*/
|
|
20
22
|
retrieve(proxyID, options) {
|
|
21
23
|
return this._client.get((0, path_1.path) `/proxies/${proxyID}`, options);
|
|
22
24
|
}
|
|
23
25
|
/**
|
|
24
|
-
*
|
|
26
|
+
* Replaces the proxy config identified by `proxyId` with the provided body. As
|
|
27
|
+
* with creation, the body is a `protocol`-discriminated union of socks5 or
|
|
28
|
+
* wireguard fields. Returns the updated config.
|
|
25
29
|
*/
|
|
26
30
|
update(proxyID, body, options) {
|
|
27
31
|
return this._client.put((0, path_1.path) `/proxies/${proxyID}`, { body, ...options });
|
|
28
32
|
}
|
|
29
33
|
/**
|
|
30
|
-
*
|
|
34
|
+
* Returns all proxy configs for the authenticated user. An optional `protocol`
|
|
35
|
+
* query parameter (`socks5` or `wireguard`) filters the results by proxy type.
|
|
31
36
|
*/
|
|
32
37
|
list(query = {}, options) {
|
|
33
38
|
return this._client.get('/proxies', { query, ...options });
|
|
34
39
|
}
|
|
35
40
|
/**
|
|
36
|
-
*
|
|
41
|
+
* Permanently deletes the proxy config identified by `proxyId` and returns the
|
|
42
|
+
* deleted config. Returns not found if no matching config exists.
|
|
37
43
|
*/
|
|
38
44
|
delete(proxyID, options) {
|
|
39
45
|
return this._client.delete((0, path_1.path) `/proxies/${proxyID}`, options);
|
package/resources/proxies.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proxies.js","sourceRoot":"","sources":["../src/resources/proxies.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;
|
|
1
|
+
{"version":3,"file":"proxies.js","sourceRoot":"","sources":["../src/resources/proxies.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAA8C;AAE9C,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;OAKG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,OAAe,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;;;OAIG;IACH,MAAM,CACJ,OAAe,EACf,IAAuB,EACvB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,OAAe,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,YAAY,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;CACF;AA1DD,0BA0DC"}
|
package/resources/proxies.mjs
CHANGED
|
@@ -1,36 +1,42 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
3
|
import { path } from "../internal/utils/path.mjs";
|
|
4
|
-
/**
|
|
5
|
-
* Network Proxies
|
|
6
|
-
*/
|
|
7
4
|
export class Proxies extends APIResource {
|
|
8
5
|
/**
|
|
9
|
-
*
|
|
6
|
+
* Creates a proxy config. The body is a discriminated union on `protocol`:
|
|
7
|
+
* `socks5` requires name, host, port, user, and password, while `wireguard`
|
|
8
|
+
* requires name and a config string. Returns the created config with its generated
|
|
9
|
+
* `proxyId`.
|
|
10
10
|
*/
|
|
11
11
|
create(body, options) {
|
|
12
12
|
return this._client.post('/proxies', { body, ...options });
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Fetches a single proxy config by its `proxyId`. The response shape depends on
|
|
16
|
+
* the proxy's `protocol` (socks5 or wireguard). Returns not found if no matching
|
|
17
|
+
* config exists.
|
|
16
18
|
*/
|
|
17
19
|
retrieve(proxyID, options) {
|
|
18
20
|
return this._client.get(path `/proxies/${proxyID}`, options);
|
|
19
21
|
}
|
|
20
22
|
/**
|
|
21
|
-
*
|
|
23
|
+
* Replaces the proxy config identified by `proxyId` with the provided body. As
|
|
24
|
+
* with creation, the body is a `protocol`-discriminated union of socks5 or
|
|
25
|
+
* wireguard fields. Returns the updated config.
|
|
22
26
|
*/
|
|
23
27
|
update(proxyID, body, options) {
|
|
24
28
|
return this._client.put(path `/proxies/${proxyID}`, { body, ...options });
|
|
25
29
|
}
|
|
26
30
|
/**
|
|
27
|
-
*
|
|
31
|
+
* Returns all proxy configs for the authenticated user. An optional `protocol`
|
|
32
|
+
* query parameter (`socks5` or `wireguard`) filters the results by proxy type.
|
|
28
33
|
*/
|
|
29
34
|
list(query = {}, options) {
|
|
30
35
|
return this._client.get('/proxies', { query, ...options });
|
|
31
36
|
}
|
|
32
37
|
/**
|
|
33
|
-
*
|
|
38
|
+
* Permanently deletes the proxy config identified by `proxyId` and returns the
|
|
39
|
+
* deleted config. Returns not found if no matching config exists.
|
|
34
40
|
*/
|
|
35
41
|
delete(proxyID, options) {
|
|
36
42
|
return this._client.delete(path `/proxies/${proxyID}`, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proxies.mjs","sourceRoot":"","sources":["../src/resources/proxies.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;
|
|
1
|
+
{"version":3,"file":"proxies.mjs","sourceRoot":"","sources":["../src/resources/proxies.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;OAKG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,OAAe,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;;;OAIG;IACH,MAAM,CACJ,OAAe,EACf,IAAuB,EACvB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,OAAe,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,YAAY,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;CACF"}
|
package/resources/shared.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as Shared from "./shared.mjs";
|
|
2
1
|
export interface DeviceCarrier {
|
|
3
2
|
GsmOperatorAlpha: string;
|
|
4
3
|
GsmOperatorNumeric: number;
|
|
@@ -43,9 +42,29 @@ export interface DeviceSpec {
|
|
|
43
42
|
}
|
|
44
43
|
export declare namespace DeviceSpec {
|
|
45
44
|
interface Proxy {
|
|
45
|
+
connect?: Proxy.Connect;
|
|
46
46
|
name?: string;
|
|
47
47
|
smartIp?: boolean;
|
|
48
|
-
socks5?:
|
|
48
|
+
socks5?: Proxy.Socks5;
|
|
49
|
+
}
|
|
50
|
+
namespace Proxy {
|
|
51
|
+
interface Connect {
|
|
52
|
+
/**
|
|
53
|
+
* Existing Mobilerun Connect proxy id; its credentials are fetched server-side.
|
|
54
|
+
*/
|
|
55
|
+
id?: string;
|
|
56
|
+
/**
|
|
57
|
+
* ISO 3166-1 alpha-2 country code; provisions (or reuses) a rotating residential
|
|
58
|
+
* Mobilerun Connect proxy for the device.
|
|
59
|
+
*/
|
|
60
|
+
country?: string;
|
|
61
|
+
}
|
|
62
|
+
interface Socks5 {
|
|
63
|
+
host: string;
|
|
64
|
+
password: string;
|
|
65
|
+
port: number;
|
|
66
|
+
user: string;
|
|
67
|
+
}
|
|
49
68
|
}
|
|
50
69
|
}
|
|
51
70
|
export interface Location {
|
|
@@ -106,10 +125,13 @@ export interface PermissionSet {
|
|
|
106
125
|
read: boolean;
|
|
107
126
|
write: boolean;
|
|
108
127
|
}
|
|
109
|
-
export interface
|
|
128
|
+
export interface Socks5ProxyConfig {
|
|
110
129
|
host: string;
|
|
130
|
+
name: string;
|
|
111
131
|
password: string;
|
|
112
132
|
port: number;
|
|
133
|
+
protocol: 'socks5';
|
|
134
|
+
proxyId: string;
|
|
113
135
|
user: string;
|
|
114
136
|
}
|
|
115
137
|
//# sourceMappingURL=shared.d.mts.map
|