@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
|
@@ -4,37 +4,54 @@ import { APIPromise } from "../../core/api-promise.mjs";
|
|
|
4
4
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
5
|
export declare class ActionCatalog extends APIResource {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Fetch a single action catalog entry by its ID, including its service, method,
|
|
8
|
+
* and parameter schema. Returns 404 if no entry matches.
|
|
8
9
|
*/
|
|
9
10
|
retrieve(catalogEntryID: string, options?: RequestOptions): APIPromise<ActionCatalogRetrieveResponse>;
|
|
10
11
|
/**
|
|
11
|
-
*
|
|
12
|
+
* Return a paginated list of catalog entries — the service/method templates that
|
|
13
|
+
* actions are created from, each carrying its parameter schema. Supports filtering
|
|
14
|
+
* by `service`.
|
|
12
15
|
*/
|
|
13
16
|
list(query?: ActionCatalogListParams | null | undefined, options?: RequestOptions): APIPromise<ActionCatalogListResponse>;
|
|
14
17
|
}
|
|
15
|
-
export interface ActionCatalogEntry {
|
|
16
|
-
id: string;
|
|
17
|
-
createdAt: string | null;
|
|
18
|
-
description: string | null;
|
|
19
|
-
method: string;
|
|
20
|
-
name: string;
|
|
21
|
-
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
22
|
-
updatedAt: string | null;
|
|
23
|
-
paramsSchema?: unknown;
|
|
24
|
-
}
|
|
25
18
|
export interface ActionCatalogRetrieveResponse {
|
|
26
|
-
data:
|
|
19
|
+
data: ActionCatalogRetrieveResponse.Data;
|
|
20
|
+
}
|
|
21
|
+
export declare namespace ActionCatalogRetrieveResponse {
|
|
22
|
+
interface Data {
|
|
23
|
+
id: string;
|
|
24
|
+
createdAt: string | null;
|
|
25
|
+
description: string | null;
|
|
26
|
+
method: string;
|
|
27
|
+
name: string;
|
|
28
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
29
|
+
updatedAt: string | null;
|
|
30
|
+
paramsSchema?: unknown;
|
|
31
|
+
}
|
|
27
32
|
}
|
|
28
33
|
export interface ActionCatalogListResponse {
|
|
29
|
-
items: Array<
|
|
34
|
+
items: Array<ActionCatalogListResponse.Item>;
|
|
30
35
|
pagination: Shared.Pagination;
|
|
31
36
|
}
|
|
37
|
+
export declare namespace ActionCatalogListResponse {
|
|
38
|
+
interface Item {
|
|
39
|
+
id: string;
|
|
40
|
+
createdAt: string | null;
|
|
41
|
+
description: string | null;
|
|
42
|
+
method: string;
|
|
43
|
+
name: string;
|
|
44
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
45
|
+
updatedAt: string | null;
|
|
46
|
+
paramsSchema?: unknown;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
32
49
|
export interface ActionCatalogListParams {
|
|
33
50
|
page?: number;
|
|
34
51
|
pageSize?: number;
|
|
35
52
|
service?: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
36
53
|
}
|
|
37
54
|
export declare namespace ActionCatalog {
|
|
38
|
-
export { type
|
|
55
|
+
export { type ActionCatalogRetrieveResponse as ActionCatalogRetrieveResponse, type ActionCatalogListResponse as ActionCatalogListResponse, type ActionCatalogListParams as ActionCatalogListParams, };
|
|
39
56
|
}
|
|
40
57
|
//# sourceMappingURL=action-catalog.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-catalog.d.mts","sourceRoot":"","sources":["../../src/resources/workflows/action-catalog.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE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AAC,IAAI,CAAC,CAAC;IAE7C,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;CAC/B;AAED,yBAAiB,yBAAyB,CAAC;IACzC,UAAiB,IAAI;QACnB,EAAE,EAAE,MAAM,CAAC;QAEX,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QAEzB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B,MAAM,EAAE,MAAM,CAAC;QAEf,IAAI,EAAE,MAAM,CAAC;QAEb,OAAO,EAAE,WAAW,GAAG,aAAa,GAAG,YAAY,GAAG,UAAU,CAAC;QAEjE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QAEzB,YAAY,CAAC,EAAE,OAAO,CAAC;KACxB;CACF;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,OAAO,CAAC,EAAE,WAAW,GAAG,aAAa,GAAG,YAAY,GAAG,UAAU,CAAC;CACnE;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -4,37 +4,54 @@ import { APIPromise } from "../../core/api-promise.js";
|
|
|
4
4
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
5
|
export declare class ActionCatalog extends APIResource {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Fetch a single action catalog entry by its ID, including its service, method,
|
|
8
|
+
* and parameter schema. Returns 404 if no entry matches.
|
|
8
9
|
*/
|
|
9
10
|
retrieve(catalogEntryID: string, options?: RequestOptions): APIPromise<ActionCatalogRetrieveResponse>;
|
|
10
11
|
/**
|
|
11
|
-
*
|
|
12
|
+
* Return a paginated list of catalog entries — the service/method templates that
|
|
13
|
+
* actions are created from, each carrying its parameter schema. Supports filtering
|
|
14
|
+
* by `service`.
|
|
12
15
|
*/
|
|
13
16
|
list(query?: ActionCatalogListParams | null | undefined, options?: RequestOptions): APIPromise<ActionCatalogListResponse>;
|
|
14
17
|
}
|
|
15
|
-
export interface ActionCatalogEntry {
|
|
16
|
-
id: string;
|
|
17
|
-
createdAt: string | null;
|
|
18
|
-
description: string | null;
|
|
19
|
-
method: string;
|
|
20
|
-
name: string;
|
|
21
|
-
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
22
|
-
updatedAt: string | null;
|
|
23
|
-
paramsSchema?: unknown;
|
|
24
|
-
}
|
|
25
18
|
export interface ActionCatalogRetrieveResponse {
|
|
26
|
-
data:
|
|
19
|
+
data: ActionCatalogRetrieveResponse.Data;
|
|
20
|
+
}
|
|
21
|
+
export declare namespace ActionCatalogRetrieveResponse {
|
|
22
|
+
interface Data {
|
|
23
|
+
id: string;
|
|
24
|
+
createdAt: string | null;
|
|
25
|
+
description: string | null;
|
|
26
|
+
method: string;
|
|
27
|
+
name: string;
|
|
28
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
29
|
+
updatedAt: string | null;
|
|
30
|
+
paramsSchema?: unknown;
|
|
31
|
+
}
|
|
27
32
|
}
|
|
28
33
|
export interface ActionCatalogListResponse {
|
|
29
|
-
items: Array<
|
|
34
|
+
items: Array<ActionCatalogListResponse.Item>;
|
|
30
35
|
pagination: Shared.Pagination;
|
|
31
36
|
}
|
|
37
|
+
export declare namespace ActionCatalogListResponse {
|
|
38
|
+
interface Item {
|
|
39
|
+
id: string;
|
|
40
|
+
createdAt: string | null;
|
|
41
|
+
description: string | null;
|
|
42
|
+
method: string;
|
|
43
|
+
name: string;
|
|
44
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
45
|
+
updatedAt: string | null;
|
|
46
|
+
paramsSchema?: unknown;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
32
49
|
export interface ActionCatalogListParams {
|
|
33
50
|
page?: number;
|
|
34
51
|
pageSize?: number;
|
|
35
52
|
service?: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
36
53
|
}
|
|
37
54
|
export declare namespace ActionCatalog {
|
|
38
|
-
export { type
|
|
55
|
+
export { type ActionCatalogRetrieveResponse as ActionCatalogRetrieveResponse, type ActionCatalogListResponse as ActionCatalogListResponse, type ActionCatalogListParams as ActionCatalogListParams, };
|
|
39
56
|
}
|
|
40
57
|
//# sourceMappingURL=action-catalog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-catalog.d.ts","sourceRoot":"","sources":["../../src/resources/workflows/action-catalog.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"action-catalog.d.ts","sourceRoot":"","sources":["../../src/resources/workflows/action-catalog.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;OAGG;IACH,QAAQ,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;IAIrG;;;;OAIG;IACH,IAAI,CACF,KAAK,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;CAGzC;AAED,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,6BAA6B,CAAC,IA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BAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -6,13 +6,16 @@ const resource_1 = require("../../core/resource.js");
|
|
|
6
6
|
const path_1 = require("../../internal/utils/path.js");
|
|
7
7
|
class ActionCatalog extends resource_1.APIResource {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Fetch a single action catalog entry by its ID, including its service, method,
|
|
10
|
+
* and parameter schema. Returns 404 if no entry matches.
|
|
10
11
|
*/
|
|
11
12
|
retrieve(catalogEntryID, options) {
|
|
12
13
|
return this._client.get((0, path_1.path) `/action-catalog/${catalogEntryID}`, options);
|
|
13
14
|
}
|
|
14
15
|
/**
|
|
15
|
-
*
|
|
16
|
+
* Return a paginated list of catalog entries — the service/method templates that
|
|
17
|
+
* actions are created from, each carrying its parameter schema. Supports filtering
|
|
18
|
+
* by `service`.
|
|
16
19
|
*/
|
|
17
20
|
list(query = {}, options) {
|
|
18
21
|
return this._client.get('/action-catalog', { query, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-catalog.js","sourceRoot":"","sources":["../../src/resources/workflows/action-catalog.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD,MAAa,aAAc,SAAQ,sBAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"action-catalog.js","sourceRoot":"","sources":["../../src/resources/workflows/action-catalog.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;OAGG;IACH,QAAQ,CAAC,cAAsB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,mBAAmB,cAAc,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAED;;;;OAIG;IACH,IAAI,CACF,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;CACF;AApBD,sCAoBC"}
|
|
@@ -3,13 +3,16 @@ import { APIResource } from "../../core/resource.mjs";
|
|
|
3
3
|
import { path } from "../../internal/utils/path.mjs";
|
|
4
4
|
export class ActionCatalog extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Fetch a single action catalog entry by its ID, including its service, method,
|
|
7
|
+
* and parameter schema. Returns 404 if no entry matches.
|
|
7
8
|
*/
|
|
8
9
|
retrieve(catalogEntryID, options) {
|
|
9
10
|
return this._client.get(path `/action-catalog/${catalogEntryID}`, options);
|
|
10
11
|
}
|
|
11
12
|
/**
|
|
12
|
-
*
|
|
13
|
+
* Return a paginated list of catalog entries — the service/method templates that
|
|
14
|
+
* actions are created from, each carrying its parameter schema. Supports filtering
|
|
15
|
+
* by `service`.
|
|
13
16
|
*/
|
|
14
17
|
list(query = {}, options) {
|
|
15
18
|
return this._client.get('/action-catalog', { query, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-catalog.mjs","sourceRoot":"","sources":["../../src/resources/workflows/action-catalog.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"action-catalog.mjs","sourceRoot":"","sources":["../../src/resources/workflows/action-catalog.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;OAGG;IACH,QAAQ,CAAC,cAAsB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,mBAAmB,cAAc,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAED;;;;OAIG;IACH,IAAI,CACF,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;CACF"}
|
|
@@ -7,52 +7,124 @@ import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
|
7
7
|
export declare class Actions extends APIResource {
|
|
8
8
|
services: ServicesAPI.Services;
|
|
9
9
|
/**
|
|
10
|
-
* Create
|
|
10
|
+
* Create a reusable action from a catalog entry (`catalogEntryId`), with an
|
|
11
|
+
* optional `params` object supplying the values for that entry's service method.
|
|
12
|
+
* Returns 400 if the params are invalid for the chosen catalog entry.
|
|
11
13
|
*/
|
|
12
14
|
create(body: ActionCreateParams, options?: RequestOptions): APIPromise<ActionCreateResponse>;
|
|
13
15
|
/**
|
|
14
|
-
*
|
|
16
|
+
* Fetch a single action by its ID, including its configured service, method, and
|
|
17
|
+
* params. Returns 404 if no action matches.
|
|
15
18
|
*/
|
|
16
19
|
retrieve(actionID: string, options?: RequestOptions): APIPromise<ActionRetrieveResponse>;
|
|
17
20
|
/**
|
|
18
|
-
*
|
|
21
|
+
* Partially update an action's name, description, or params; all fields are
|
|
22
|
+
* optional. Returns 404 if the action does not exist.
|
|
19
23
|
*/
|
|
20
24
|
update(actionID: string, body?: ActionUpdateParams | null | undefined, options?: RequestOptions): APIPromise<ActionUpdateResponse>;
|
|
21
25
|
/**
|
|
22
|
-
*
|
|
26
|
+
* Return a paginated list of actions. Supports filtering by `service`, free-text
|
|
27
|
+
* `search`, and ordering by name, createdAt, or updatedAt.
|
|
23
28
|
*/
|
|
24
29
|
list(query?: ActionListParams | null | undefined, options?: RequestOptions): APIPromise<ActionListResponse>;
|
|
25
30
|
/**
|
|
26
|
-
* Delete an action
|
|
31
|
+
* Delete an action by its ID. Returns 404 if no action matches.
|
|
27
32
|
*/
|
|
28
33
|
delete(actionID: string, options?: RequestOptions): APIPromise<ActionDeleteResponse>;
|
|
29
34
|
}
|
|
30
|
-
export interface Action {
|
|
31
|
-
id: string;
|
|
32
|
-
catalogEntryId: string;
|
|
33
|
-
createdAt: string | null;
|
|
34
|
-
description: string | null;
|
|
35
|
-
method: string;
|
|
36
|
-
name: string;
|
|
37
|
-
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
38
|
-
updatedAt: string | null;
|
|
39
|
-
userId: string;
|
|
40
|
-
params?: unknown;
|
|
41
|
-
paramsSchema?: unknown;
|
|
42
|
-
}
|
|
43
35
|
export interface ActionCreateResponse {
|
|
44
|
-
data:
|
|
36
|
+
data: ActionCreateResponse.Data;
|
|
37
|
+
}
|
|
38
|
+
export declare namespace ActionCreateResponse {
|
|
39
|
+
interface Data {
|
|
40
|
+
id: string;
|
|
41
|
+
catalogEntryId: string;
|
|
42
|
+
createdAt: string | null;
|
|
43
|
+
createdBy: string | null;
|
|
44
|
+
description: string | null;
|
|
45
|
+
method: string;
|
|
46
|
+
name: string;
|
|
47
|
+
ownerId: string;
|
|
48
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
49
|
+
updatedAt: string | null;
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
52
|
+
*/
|
|
53
|
+
userId: string;
|
|
54
|
+
params?: unknown;
|
|
55
|
+
paramsSchema?: unknown;
|
|
56
|
+
}
|
|
45
57
|
}
|
|
46
58
|
export interface ActionRetrieveResponse {
|
|
47
|
-
data:
|
|
59
|
+
data: ActionRetrieveResponse.Data;
|
|
60
|
+
}
|
|
61
|
+
export declare namespace ActionRetrieveResponse {
|
|
62
|
+
interface Data {
|
|
63
|
+
id: string;
|
|
64
|
+
catalogEntryId: string;
|
|
65
|
+
createdAt: string | null;
|
|
66
|
+
createdBy: string | null;
|
|
67
|
+
description: string | null;
|
|
68
|
+
method: string;
|
|
69
|
+
name: string;
|
|
70
|
+
ownerId: string;
|
|
71
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
72
|
+
updatedAt: string | null;
|
|
73
|
+
/**
|
|
74
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
75
|
+
*/
|
|
76
|
+
userId: string;
|
|
77
|
+
params?: unknown;
|
|
78
|
+
paramsSchema?: unknown;
|
|
79
|
+
}
|
|
48
80
|
}
|
|
49
81
|
export interface ActionUpdateResponse {
|
|
50
|
-
data:
|
|
82
|
+
data: ActionUpdateResponse.Data;
|
|
83
|
+
}
|
|
84
|
+
export declare namespace ActionUpdateResponse {
|
|
85
|
+
interface Data {
|
|
86
|
+
id: string;
|
|
87
|
+
catalogEntryId: string;
|
|
88
|
+
createdAt: string | null;
|
|
89
|
+
createdBy: string | null;
|
|
90
|
+
description: string | null;
|
|
91
|
+
method: string;
|
|
92
|
+
name: string;
|
|
93
|
+
ownerId: string;
|
|
94
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
95
|
+
updatedAt: string | null;
|
|
96
|
+
/**
|
|
97
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
98
|
+
*/
|
|
99
|
+
userId: string;
|
|
100
|
+
params?: unknown;
|
|
101
|
+
paramsSchema?: unknown;
|
|
102
|
+
}
|
|
51
103
|
}
|
|
52
104
|
export interface ActionListResponse {
|
|
53
|
-
items: Array<
|
|
105
|
+
items: Array<ActionListResponse.Item>;
|
|
54
106
|
pagination: Shared.Pagination;
|
|
55
107
|
}
|
|
108
|
+
export declare namespace ActionListResponse {
|
|
109
|
+
interface Item {
|
|
110
|
+
id: string;
|
|
111
|
+
catalogEntryId: string;
|
|
112
|
+
createdAt: string | null;
|
|
113
|
+
createdBy: string | null;
|
|
114
|
+
description: string | null;
|
|
115
|
+
method: string;
|
|
116
|
+
name: string;
|
|
117
|
+
ownerId: string;
|
|
118
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
119
|
+
updatedAt: string | null;
|
|
120
|
+
/**
|
|
121
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
122
|
+
*/
|
|
123
|
+
userId: string;
|
|
124
|
+
params?: unknown;
|
|
125
|
+
paramsSchema?: unknown;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
56
128
|
export interface ActionDeleteResponse {
|
|
57
129
|
message: string;
|
|
58
130
|
}
|
|
@@ -80,7 +152,7 @@ export interface ActionListParams {
|
|
|
80
152
|
service?: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
81
153
|
}
|
|
82
154
|
export declare namespace Actions {
|
|
83
|
-
export { type
|
|
155
|
+
export { type ActionCreateResponse as ActionCreateResponse, type ActionRetrieveResponse as ActionRetrieveResponse, type ActionUpdateResponse as ActionUpdateResponse, type ActionListResponse as ActionListResponse, type ActionDeleteResponse as ActionDeleteResponse, type ActionCreateParams as ActionCreateParams, type ActionUpdateParams as ActionUpdateParams, type ActionListParams as ActionListParams, };
|
|
84
156
|
export { Services as Services, type ServiceListResponse as ServiceListResponse, type ServiceListMethodsResponse as ServiceListMethodsResponse, };
|
|
85
157
|
}
|
|
86
158
|
//# sourceMappingURL=actions.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.mts","sourceRoot":"","sources":["../../../src/resources/workflows/actions/actions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,MAAM,yBAAqB;AACvC,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAAE,0BAA0B,EAAE,mBAAmB,EAAE,QAAQ,EAAE,uBAAmB;AACvF,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE,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F,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -7,52 +7,124 @@ import { RequestOptions } from "../../../internal/request-options.js";
|
|
|
7
7
|
export declare class Actions extends APIResource {
|
|
8
8
|
services: ServicesAPI.Services;
|
|
9
9
|
/**
|
|
10
|
-
* Create
|
|
10
|
+
* Create a reusable action from a catalog entry (`catalogEntryId`), with an
|
|
11
|
+
* optional `params` object supplying the values for that entry's service method.
|
|
12
|
+
* Returns 400 if the params are invalid for the chosen catalog entry.
|
|
11
13
|
*/
|
|
12
14
|
create(body: ActionCreateParams, options?: RequestOptions): APIPromise<ActionCreateResponse>;
|
|
13
15
|
/**
|
|
14
|
-
*
|
|
16
|
+
* Fetch a single action by its ID, including its configured service, method, and
|
|
17
|
+
* params. Returns 404 if no action matches.
|
|
15
18
|
*/
|
|
16
19
|
retrieve(actionID: string, options?: RequestOptions): APIPromise<ActionRetrieveResponse>;
|
|
17
20
|
/**
|
|
18
|
-
*
|
|
21
|
+
* Partially update an action's name, description, or params; all fields are
|
|
22
|
+
* optional. Returns 404 if the action does not exist.
|
|
19
23
|
*/
|
|
20
24
|
update(actionID: string, body?: ActionUpdateParams | null | undefined, options?: RequestOptions): APIPromise<ActionUpdateResponse>;
|
|
21
25
|
/**
|
|
22
|
-
*
|
|
26
|
+
* Return a paginated list of actions. Supports filtering by `service`, free-text
|
|
27
|
+
* `search`, and ordering by name, createdAt, or updatedAt.
|
|
23
28
|
*/
|
|
24
29
|
list(query?: ActionListParams | null | undefined, options?: RequestOptions): APIPromise<ActionListResponse>;
|
|
25
30
|
/**
|
|
26
|
-
* Delete an action
|
|
31
|
+
* Delete an action by its ID. Returns 404 if no action matches.
|
|
27
32
|
*/
|
|
28
33
|
delete(actionID: string, options?: RequestOptions): APIPromise<ActionDeleteResponse>;
|
|
29
34
|
}
|
|
30
|
-
export interface Action {
|
|
31
|
-
id: string;
|
|
32
|
-
catalogEntryId: string;
|
|
33
|
-
createdAt: string | null;
|
|
34
|
-
description: string | null;
|
|
35
|
-
method: string;
|
|
36
|
-
name: string;
|
|
37
|
-
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
38
|
-
updatedAt: string | null;
|
|
39
|
-
userId: string;
|
|
40
|
-
params?: unknown;
|
|
41
|
-
paramsSchema?: unknown;
|
|
42
|
-
}
|
|
43
35
|
export interface ActionCreateResponse {
|
|
44
|
-
data:
|
|
36
|
+
data: ActionCreateResponse.Data;
|
|
37
|
+
}
|
|
38
|
+
export declare namespace ActionCreateResponse {
|
|
39
|
+
interface Data {
|
|
40
|
+
id: string;
|
|
41
|
+
catalogEntryId: string;
|
|
42
|
+
createdAt: string | null;
|
|
43
|
+
createdBy: string | null;
|
|
44
|
+
description: string | null;
|
|
45
|
+
method: string;
|
|
46
|
+
name: string;
|
|
47
|
+
ownerId: string;
|
|
48
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
49
|
+
updatedAt: string | null;
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
52
|
+
*/
|
|
53
|
+
userId: string;
|
|
54
|
+
params?: unknown;
|
|
55
|
+
paramsSchema?: unknown;
|
|
56
|
+
}
|
|
45
57
|
}
|
|
46
58
|
export interface ActionRetrieveResponse {
|
|
47
|
-
data:
|
|
59
|
+
data: ActionRetrieveResponse.Data;
|
|
60
|
+
}
|
|
61
|
+
export declare namespace ActionRetrieveResponse {
|
|
62
|
+
interface Data {
|
|
63
|
+
id: string;
|
|
64
|
+
catalogEntryId: string;
|
|
65
|
+
createdAt: string | null;
|
|
66
|
+
createdBy: string | null;
|
|
67
|
+
description: string | null;
|
|
68
|
+
method: string;
|
|
69
|
+
name: string;
|
|
70
|
+
ownerId: string;
|
|
71
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
72
|
+
updatedAt: string | null;
|
|
73
|
+
/**
|
|
74
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
75
|
+
*/
|
|
76
|
+
userId: string;
|
|
77
|
+
params?: unknown;
|
|
78
|
+
paramsSchema?: unknown;
|
|
79
|
+
}
|
|
48
80
|
}
|
|
49
81
|
export interface ActionUpdateResponse {
|
|
50
|
-
data:
|
|
82
|
+
data: ActionUpdateResponse.Data;
|
|
83
|
+
}
|
|
84
|
+
export declare namespace ActionUpdateResponse {
|
|
85
|
+
interface Data {
|
|
86
|
+
id: string;
|
|
87
|
+
catalogEntryId: string;
|
|
88
|
+
createdAt: string | null;
|
|
89
|
+
createdBy: string | null;
|
|
90
|
+
description: string | null;
|
|
91
|
+
method: string;
|
|
92
|
+
name: string;
|
|
93
|
+
ownerId: string;
|
|
94
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
95
|
+
updatedAt: string | null;
|
|
96
|
+
/**
|
|
97
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
98
|
+
*/
|
|
99
|
+
userId: string;
|
|
100
|
+
params?: unknown;
|
|
101
|
+
paramsSchema?: unknown;
|
|
102
|
+
}
|
|
51
103
|
}
|
|
52
104
|
export interface ActionListResponse {
|
|
53
|
-
items: Array<
|
|
105
|
+
items: Array<ActionListResponse.Item>;
|
|
54
106
|
pagination: Shared.Pagination;
|
|
55
107
|
}
|
|
108
|
+
export declare namespace ActionListResponse {
|
|
109
|
+
interface Item {
|
|
110
|
+
id: string;
|
|
111
|
+
catalogEntryId: string;
|
|
112
|
+
createdAt: string | null;
|
|
113
|
+
createdBy: string | null;
|
|
114
|
+
description: string | null;
|
|
115
|
+
method: string;
|
|
116
|
+
name: string;
|
|
117
|
+
ownerId: string;
|
|
118
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
119
|
+
updatedAt: string | null;
|
|
120
|
+
/**
|
|
121
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
122
|
+
*/
|
|
123
|
+
userId: string;
|
|
124
|
+
params?: unknown;
|
|
125
|
+
paramsSchema?: unknown;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
56
128
|
export interface ActionDeleteResponse {
|
|
57
129
|
message: string;
|
|
58
130
|
}
|
|
@@ -80,7 +152,7 @@ export interface ActionListParams {
|
|
|
80
152
|
service?: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
81
153
|
}
|
|
82
154
|
export declare namespace Actions {
|
|
83
|
-
export { type
|
|
155
|
+
export { type ActionCreateResponse as ActionCreateResponse, type ActionRetrieveResponse as ActionRetrieveResponse, type ActionUpdateResponse as ActionUpdateResponse, type ActionListResponse as ActionListResponse, type ActionDeleteResponse as ActionDeleteResponse, type ActionCreateParams as ActionCreateParams, type ActionUpdateParams as ActionUpdateParams, type ActionListParams as ActionListParams, };
|
|
84
156
|
export { Services as Services, type ServiceListResponse as ServiceListResponse, type ServiceListMethodsResponse as ServiceListMethodsResponse, };
|
|
85
157
|
}
|
|
86
158
|
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/resources/workflows/actions/actions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,MAAM,wBAAqB;AACvC,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EAAE,0BAA0B,EAAE,mBAAmB,EAAE,QAAQ,EAAE,sBAAmB;AACvF,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa,OAAQ,SAAQ,WAAW;IACtC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IAExE
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/resources/workflows/actions/actions.ts"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extends resource_1.APIResource {
|
|
|
13
13
|
this.services = new ServicesAPI.Services(this._client);
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
* Create
|
|
16
|
+
* Create a reusable action from a catalog entry (`catalogEntryId`), with an
|
|
17
|
+
* optional `params` object supplying the values for that entry's service method.
|
|
18
|
+
* Returns 400 if the params are invalid for the chosen catalog entry.
|
|
17
19
|
*/
|
|
18
20
|
create(body, options) {
|
|
19
21
|
return this._client.post('/actions', { body, ...options });
|
|
20
22
|
}
|
|
21
23
|
/**
|
|
22
|
-
*
|
|
24
|
+
* Fetch a single action by its ID, including its configured service, method, and
|
|
25
|
+
* params. Returns 404 if no action matches.
|
|
23
26
|
*/
|
|
24
27
|
retrieve(actionID, options) {
|
|
25
28
|
return this._client.get((0, path_1.path) `/actions/${actionID}`, options);
|
|
26
29
|
}
|
|
27
30
|
/**
|
|
28
|
-
*
|
|
31
|
+
* Partially update an action's name, description, or params; all fields are
|
|
32
|
+
* optional. Returns 404 if the action does not exist.
|
|
29
33
|
*/
|
|
30
34
|
update(actionID, body = {}, options) {
|
|
31
35
|
return this._client.patch((0, path_1.path) `/actions/${actionID}`, { body, ...options });
|
|
32
36
|
}
|
|
33
37
|
/**
|
|
34
|
-
*
|
|
38
|
+
* Return a paginated list of actions. Supports filtering by `service`, free-text
|
|
39
|
+
* `search`, and ordering by name, createdAt, or updatedAt.
|
|
35
40
|
*/
|
|
36
41
|
list(query = {}, options) {
|
|
37
42
|
return this._client.get('/actions', { query, ...options });
|
|
38
43
|
}
|
|
39
44
|
/**
|
|
40
|
-
* Delete an action
|
|
45
|
+
* Delete an action by its ID. Returns 404 if no action matches.
|
|
41
46
|
*/
|
|
42
47
|
delete(actionID, options) {
|
|
43
48
|
return this._client.delete((0, path_1.path) `/actions/${actionID}`, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../../../src/resources/workflows/actions/actions.ts"],"names":[],"mappings":";AAAA,sFAA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