@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
|
@@ -7,7 +7,10 @@ import { RequestOptions } from "../../internal/request-options.mjs";
|
|
|
7
7
|
export declare class Webhooks extends APIResource {
|
|
8
8
|
deliveries: DeliveriesAPI.Deliveries;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Creates a webhook subscription with a delivery URL and an optional list of event
|
|
11
|
+
* types to subscribe to (defaults to all when omitted). The response includes the
|
|
12
|
+
* generated signing secret, which is returned only once at creation time and
|
|
13
|
+
* cannot be retrieved later.
|
|
11
14
|
*
|
|
12
15
|
* @example
|
|
13
16
|
* ```ts
|
|
@@ -18,7 +21,9 @@ export declare class Webhooks extends APIResource {
|
|
|
18
21
|
*/
|
|
19
22
|
create(body: WebhookCreateParams, options?: RequestOptions): APIPromise<WebhookCreateResponse>;
|
|
20
23
|
/**
|
|
21
|
-
*
|
|
24
|
+
* Returns a single webhook subscription by id, including its URL, subscribed event
|
|
25
|
+
* types, state, and system-observed delivery health. The signing secret is never
|
|
26
|
+
* included.
|
|
22
27
|
*
|
|
23
28
|
* @example
|
|
24
29
|
* ```ts
|
|
@@ -29,7 +34,10 @@ export declare class Webhooks extends APIResource {
|
|
|
29
34
|
*/
|
|
30
35
|
retrieve(id: string, options?: RequestOptions): APIPromise<WebhookRetrieveResponse>;
|
|
31
36
|
/**
|
|
32
|
-
*
|
|
37
|
+
* Updates a webhook subscription. Any combination of the subscribed event types,
|
|
38
|
+
* state (ACTIVE or DISABLED), and description may be changed, and at least one
|
|
39
|
+
* field must be supplied. Setting state to ACTIVE re-enables a subscription that
|
|
40
|
+
* was auto-blocked after sustained delivery failures.
|
|
33
41
|
*
|
|
34
42
|
* @example
|
|
35
43
|
* ```ts
|
|
@@ -40,7 +48,10 @@ export declare class Webhooks extends APIResource {
|
|
|
40
48
|
*/
|
|
41
49
|
update(id: string, body?: WebhookUpdateParams | null | undefined, options?: RequestOptions): APIPromise<WebhookUpdateResponse>;
|
|
42
50
|
/**
|
|
43
|
-
*
|
|
51
|
+
* Returns a paginated list of your webhook subscriptions, optionally filtered by
|
|
52
|
+
* status (active, failing, blocked, or disabled) and/or by `search` (a
|
|
53
|
+
* case-insensitive substring match against the URL or description). The response
|
|
54
|
+
* also includes per-status counts across all of your subscriptions.
|
|
44
55
|
*
|
|
45
56
|
* @example
|
|
46
57
|
* ```ts
|
|
@@ -49,7 +60,8 @@ export declare class Webhooks extends APIResource {
|
|
|
49
60
|
*/
|
|
50
61
|
list(query?: WebhookListParams | null | undefined, options?: RequestOptions): APIPromise<WebhookListResponse>;
|
|
51
62
|
/**
|
|
52
|
-
*
|
|
63
|
+
* Deletes a webhook subscription so it stops receiving deliveries. Returns 204 No
|
|
64
|
+
* Content on success.
|
|
53
65
|
*
|
|
54
66
|
* @example
|
|
55
67
|
* ```ts
|
|
@@ -60,7 +72,9 @@ export declare class Webhooks extends APIResource {
|
|
|
60
72
|
*/
|
|
61
73
|
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
62
74
|
/**
|
|
63
|
-
*
|
|
75
|
+
* Returns the catalog of event types that webhook subscriptions can subscribe to,
|
|
76
|
+
* grouped by source. Use the returned type identifiers as the `eventTypes` values
|
|
77
|
+
* when creating or updating a webhook.
|
|
64
78
|
*
|
|
65
79
|
* @example
|
|
66
80
|
* ```ts
|
|
@@ -69,7 +83,9 @@ export declare class Webhooks extends APIResource {
|
|
|
69
83
|
*/
|
|
70
84
|
eventTypes(options?: RequestOptions): APIPromise<WebhookEventTypesResponse>;
|
|
71
85
|
/**
|
|
72
|
-
*
|
|
86
|
+
* Generates a new signing secret for the webhook subscription and returns it once
|
|
87
|
+
* in the response. The previous secret is replaced immediately, so any signature
|
|
88
|
+
* verification on your endpoint must be updated to use the new value.
|
|
73
89
|
*
|
|
74
90
|
* @example
|
|
75
91
|
* ```ts
|
|
@@ -80,7 +96,9 @@ export declare class Webhooks extends APIResource {
|
|
|
80
96
|
*/
|
|
81
97
|
rotateSecret(id: string, options?: RequestOptions): APIPromise<WebhookRotateSecretResponse>;
|
|
82
98
|
/**
|
|
83
|
-
*
|
|
99
|
+
* Sends a single test payload to the webhook subscription URL to verify
|
|
100
|
+
* connectivity. The response reports whether the attempt succeeded along with the
|
|
101
|
+
* returned HTTP status code or error, if any.
|
|
84
102
|
*
|
|
85
103
|
* @example
|
|
86
104
|
* ```ts
|
|
@@ -100,6 +118,10 @@ export declare namespace WebhookCreateResponse {
|
|
|
100
118
|
blockedAt: string | null;
|
|
101
119
|
blockedReason: string | null;
|
|
102
120
|
createdAt: string;
|
|
121
|
+
/**
|
|
122
|
+
* Id of the actor who created this endpoint. Null when no creator was recorded.
|
|
123
|
+
*/
|
|
124
|
+
createdBy: string | null;
|
|
103
125
|
description: string | null;
|
|
104
126
|
eventTypes: Array<string>;
|
|
105
127
|
/**
|
|
@@ -126,6 +148,10 @@ export declare namespace WebhookRetrieveResponse {
|
|
|
126
148
|
blockedAt: string | null;
|
|
127
149
|
blockedReason: string | null;
|
|
128
150
|
createdAt: string;
|
|
151
|
+
/**
|
|
152
|
+
* Id of the actor who created this endpoint. Null when no creator was recorded.
|
|
153
|
+
*/
|
|
154
|
+
createdBy: string | null;
|
|
129
155
|
description: string | null;
|
|
130
156
|
eventTypes: Array<string>;
|
|
131
157
|
/**
|
|
@@ -148,6 +174,10 @@ export declare namespace WebhookUpdateResponse {
|
|
|
148
174
|
blockedAt: string | null;
|
|
149
175
|
blockedReason: string | null;
|
|
150
176
|
createdAt: string;
|
|
177
|
+
/**
|
|
178
|
+
* Id of the actor who created this endpoint. Null when no creator was recorded.
|
|
179
|
+
*/
|
|
180
|
+
createdBy: string | null;
|
|
151
181
|
description: string | null;
|
|
152
182
|
eventTypes: Array<string>;
|
|
153
183
|
/**
|
|
@@ -179,6 +209,10 @@ export declare namespace WebhookListResponse {
|
|
|
179
209
|
blockedAt: string | null;
|
|
180
210
|
blockedReason: string | null;
|
|
181
211
|
createdAt: string;
|
|
212
|
+
/**
|
|
213
|
+
* Id of the actor who created this endpoint. Null when no creator was recorded.
|
|
214
|
+
*/
|
|
215
|
+
createdBy: string | null;
|
|
182
216
|
description: string | null;
|
|
183
217
|
eventTypes: Array<string>;
|
|
184
218
|
/**
|
|
@@ -197,7 +231,7 @@ export interface WebhookEventTypesResponse {
|
|
|
197
231
|
}
|
|
198
232
|
export declare namespace WebhookEventTypesResponse {
|
|
199
233
|
interface Data {
|
|
200
|
-
schemaVersion:
|
|
234
|
+
schemaVersion: 1;
|
|
201
235
|
sources: Array<Data.Source>;
|
|
202
236
|
}
|
|
203
237
|
namespace Data {
|
|
@@ -208,8 +242,16 @@ export declare namespace WebhookEventTypesResponse {
|
|
|
208
242
|
namespace Source {
|
|
209
243
|
interface Event {
|
|
210
244
|
description: string;
|
|
245
|
+
surfaces: Event.Surfaces;
|
|
211
246
|
type: string;
|
|
212
247
|
}
|
|
248
|
+
namespace Event {
|
|
249
|
+
interface Surfaces {
|
|
250
|
+
feed: boolean;
|
|
251
|
+
toast: boolean;
|
|
252
|
+
webhook: boolean;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
213
255
|
}
|
|
214
256
|
}
|
|
215
257
|
}
|
|
@@ -222,6 +264,10 @@ export declare namespace WebhookRotateSecretResponse {
|
|
|
222
264
|
blockedAt: string | null;
|
|
223
265
|
blockedReason: string | null;
|
|
224
266
|
createdAt: string;
|
|
267
|
+
/**
|
|
268
|
+
* Id of the actor who created this endpoint. Null when no creator was recorded.
|
|
269
|
+
*/
|
|
270
|
+
createdBy: string | null;
|
|
225
271
|
description: string | null;
|
|
226
272
|
eventTypes: Array<string>;
|
|
227
273
|
/**
|
|
@@ -260,8 +306,20 @@ export interface WebhookUpdateParams {
|
|
|
260
306
|
state?: 'ACTIVE' | 'DISABLED';
|
|
261
307
|
}
|
|
262
308
|
export interface WebhookListParams {
|
|
309
|
+
/**
|
|
310
|
+
* Only include webhooks created by this actor id. Mutually exclusive with `mine`.
|
|
311
|
+
*/
|
|
312
|
+
createdBy?: string;
|
|
313
|
+
/**
|
|
314
|
+
* When true, only include webhooks created by you (not just owned by your org).
|
|
315
|
+
*/
|
|
316
|
+
mine?: 'true' | 'false';
|
|
263
317
|
page?: number;
|
|
264
318
|
pageSize?: number;
|
|
319
|
+
/**
|
|
320
|
+
* Case-insensitive substring match against the URL or description.
|
|
321
|
+
*/
|
|
322
|
+
search?: string;
|
|
265
323
|
status?: 'active' | 'failing' | 'blocked' | 'disabled';
|
|
266
324
|
}
|
|
267
325
|
export declare namespace Webhooks {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.d.mts","sourceRoot":"","sources":["../../src/resources/webhooks/webhooks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,KAAK,aAAa,yBAAqB;AAC9C,OAAO,EACL,UAAU,EACV,4BAA4B,EAC5B,8BAA8B,EAC9B,kBAAkB,EAClB,oBAAoB,EACpB,8BAA8B,EAC9B,gCAAgC,EAChC,mBAAmB,EACnB,qBAAqB,EACtB,yBAAqB;AACtB,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,QAAS,SAAQ,WAAW;IACvC,UAAU,EAAE,aAAa,CAAC,UAAU,CAA8C;IAElF
|
|
1
|
+
{"version":3,"file":"webhooks.d.mts","sourceRoot":"","sources":["../../src/resources/webhooks/webhooks.ts"],"names":[],"mappings":"AAEA,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C;CACH"}
|
|
@@ -7,7 +7,10 @@ import { RequestOptions } from "../../internal/request-options.js";
|
|
|
7
7
|
export declare class Webhooks extends APIResource {
|
|
8
8
|
deliveries: DeliveriesAPI.Deliveries;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Creates a webhook subscription with a delivery URL and an optional list of event
|
|
11
|
+
* types to subscribe to (defaults to all when omitted). The response includes the
|
|
12
|
+
* generated signing secret, which is returned only once at creation time and
|
|
13
|
+
* cannot be retrieved later.
|
|
11
14
|
*
|
|
12
15
|
* @example
|
|
13
16
|
* ```ts
|
|
@@ -18,7 +21,9 @@ export declare class Webhooks extends APIResource {
|
|
|
18
21
|
*/
|
|
19
22
|
create(body: WebhookCreateParams, options?: RequestOptions): APIPromise<WebhookCreateResponse>;
|
|
20
23
|
/**
|
|
21
|
-
*
|
|
24
|
+
* Returns a single webhook subscription by id, including its URL, subscribed event
|
|
25
|
+
* types, state, and system-observed delivery health. The signing secret is never
|
|
26
|
+
* included.
|
|
22
27
|
*
|
|
23
28
|
* @example
|
|
24
29
|
* ```ts
|
|
@@ -29,7 +34,10 @@ export declare class Webhooks extends APIResource {
|
|
|
29
34
|
*/
|
|
30
35
|
retrieve(id: string, options?: RequestOptions): APIPromise<WebhookRetrieveResponse>;
|
|
31
36
|
/**
|
|
32
|
-
*
|
|
37
|
+
* Updates a webhook subscription. Any combination of the subscribed event types,
|
|
38
|
+
* state (ACTIVE or DISABLED), and description may be changed, and at least one
|
|
39
|
+
* field must be supplied. Setting state to ACTIVE re-enables a subscription that
|
|
40
|
+
* was auto-blocked after sustained delivery failures.
|
|
33
41
|
*
|
|
34
42
|
* @example
|
|
35
43
|
* ```ts
|
|
@@ -40,7 +48,10 @@ export declare class Webhooks extends APIResource {
|
|
|
40
48
|
*/
|
|
41
49
|
update(id: string, body?: WebhookUpdateParams | null | undefined, options?: RequestOptions): APIPromise<WebhookUpdateResponse>;
|
|
42
50
|
/**
|
|
43
|
-
*
|
|
51
|
+
* Returns a paginated list of your webhook subscriptions, optionally filtered by
|
|
52
|
+
* status (active, failing, blocked, or disabled) and/or by `search` (a
|
|
53
|
+
* case-insensitive substring match against the URL or description). The response
|
|
54
|
+
* also includes per-status counts across all of your subscriptions.
|
|
44
55
|
*
|
|
45
56
|
* @example
|
|
46
57
|
* ```ts
|
|
@@ -49,7 +60,8 @@ export declare class Webhooks extends APIResource {
|
|
|
49
60
|
*/
|
|
50
61
|
list(query?: WebhookListParams | null | undefined, options?: RequestOptions): APIPromise<WebhookListResponse>;
|
|
51
62
|
/**
|
|
52
|
-
*
|
|
63
|
+
* Deletes a webhook subscription so it stops receiving deliveries. Returns 204 No
|
|
64
|
+
* Content on success.
|
|
53
65
|
*
|
|
54
66
|
* @example
|
|
55
67
|
* ```ts
|
|
@@ -60,7 +72,9 @@ export declare class Webhooks extends APIResource {
|
|
|
60
72
|
*/
|
|
61
73
|
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
62
74
|
/**
|
|
63
|
-
*
|
|
75
|
+
* Returns the catalog of event types that webhook subscriptions can subscribe to,
|
|
76
|
+
* grouped by source. Use the returned type identifiers as the `eventTypes` values
|
|
77
|
+
* when creating or updating a webhook.
|
|
64
78
|
*
|
|
65
79
|
* @example
|
|
66
80
|
* ```ts
|
|
@@ -69,7 +83,9 @@ export declare class Webhooks extends APIResource {
|
|
|
69
83
|
*/
|
|
70
84
|
eventTypes(options?: RequestOptions): APIPromise<WebhookEventTypesResponse>;
|
|
71
85
|
/**
|
|
72
|
-
*
|
|
86
|
+
* Generates a new signing secret for the webhook subscription and returns it once
|
|
87
|
+
* in the response. The previous secret is replaced immediately, so any signature
|
|
88
|
+
* verification on your endpoint must be updated to use the new value.
|
|
73
89
|
*
|
|
74
90
|
* @example
|
|
75
91
|
* ```ts
|
|
@@ -80,7 +96,9 @@ export declare class Webhooks extends APIResource {
|
|
|
80
96
|
*/
|
|
81
97
|
rotateSecret(id: string, options?: RequestOptions): APIPromise<WebhookRotateSecretResponse>;
|
|
82
98
|
/**
|
|
83
|
-
*
|
|
99
|
+
* Sends a single test payload to the webhook subscription URL to verify
|
|
100
|
+
* connectivity. The response reports whether the attempt succeeded along with the
|
|
101
|
+
* returned HTTP status code or error, if any.
|
|
84
102
|
*
|
|
85
103
|
* @example
|
|
86
104
|
* ```ts
|
|
@@ -100,6 +118,10 @@ export declare namespace WebhookCreateResponse {
|
|
|
100
118
|
blockedAt: string | null;
|
|
101
119
|
blockedReason: string | null;
|
|
102
120
|
createdAt: string;
|
|
121
|
+
/**
|
|
122
|
+
* Id of the actor who created this endpoint. Null when no creator was recorded.
|
|
123
|
+
*/
|
|
124
|
+
createdBy: string | null;
|
|
103
125
|
description: string | null;
|
|
104
126
|
eventTypes: Array<string>;
|
|
105
127
|
/**
|
|
@@ -126,6 +148,10 @@ export declare namespace WebhookRetrieveResponse {
|
|
|
126
148
|
blockedAt: string | null;
|
|
127
149
|
blockedReason: string | null;
|
|
128
150
|
createdAt: string;
|
|
151
|
+
/**
|
|
152
|
+
* Id of the actor who created this endpoint. Null when no creator was recorded.
|
|
153
|
+
*/
|
|
154
|
+
createdBy: string | null;
|
|
129
155
|
description: string | null;
|
|
130
156
|
eventTypes: Array<string>;
|
|
131
157
|
/**
|
|
@@ -148,6 +174,10 @@ export declare namespace WebhookUpdateResponse {
|
|
|
148
174
|
blockedAt: string | null;
|
|
149
175
|
blockedReason: string | null;
|
|
150
176
|
createdAt: string;
|
|
177
|
+
/**
|
|
178
|
+
* Id of the actor who created this endpoint. Null when no creator was recorded.
|
|
179
|
+
*/
|
|
180
|
+
createdBy: string | null;
|
|
151
181
|
description: string | null;
|
|
152
182
|
eventTypes: Array<string>;
|
|
153
183
|
/**
|
|
@@ -179,6 +209,10 @@ export declare namespace WebhookListResponse {
|
|
|
179
209
|
blockedAt: string | null;
|
|
180
210
|
blockedReason: string | null;
|
|
181
211
|
createdAt: string;
|
|
212
|
+
/**
|
|
213
|
+
* Id of the actor who created this endpoint. Null when no creator was recorded.
|
|
214
|
+
*/
|
|
215
|
+
createdBy: string | null;
|
|
182
216
|
description: string | null;
|
|
183
217
|
eventTypes: Array<string>;
|
|
184
218
|
/**
|
|
@@ -197,7 +231,7 @@ export interface WebhookEventTypesResponse {
|
|
|
197
231
|
}
|
|
198
232
|
export declare namespace WebhookEventTypesResponse {
|
|
199
233
|
interface Data {
|
|
200
|
-
schemaVersion:
|
|
234
|
+
schemaVersion: 1;
|
|
201
235
|
sources: Array<Data.Source>;
|
|
202
236
|
}
|
|
203
237
|
namespace Data {
|
|
@@ -208,8 +242,16 @@ export declare namespace WebhookEventTypesResponse {
|
|
|
208
242
|
namespace Source {
|
|
209
243
|
interface Event {
|
|
210
244
|
description: string;
|
|
245
|
+
surfaces: Event.Surfaces;
|
|
211
246
|
type: string;
|
|
212
247
|
}
|
|
248
|
+
namespace Event {
|
|
249
|
+
interface Surfaces {
|
|
250
|
+
feed: boolean;
|
|
251
|
+
toast: boolean;
|
|
252
|
+
webhook: boolean;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
213
255
|
}
|
|
214
256
|
}
|
|
215
257
|
}
|
|
@@ -222,6 +264,10 @@ export declare namespace WebhookRotateSecretResponse {
|
|
|
222
264
|
blockedAt: string | null;
|
|
223
265
|
blockedReason: string | null;
|
|
224
266
|
createdAt: string;
|
|
267
|
+
/**
|
|
268
|
+
* Id of the actor who created this endpoint. Null when no creator was recorded.
|
|
269
|
+
*/
|
|
270
|
+
createdBy: string | null;
|
|
225
271
|
description: string | null;
|
|
226
272
|
eventTypes: Array<string>;
|
|
227
273
|
/**
|
|
@@ -260,8 +306,20 @@ export interface WebhookUpdateParams {
|
|
|
260
306
|
state?: 'ACTIVE' | 'DISABLED';
|
|
261
307
|
}
|
|
262
308
|
export interface WebhookListParams {
|
|
309
|
+
/**
|
|
310
|
+
* Only include webhooks created by this actor id. Mutually exclusive with `mine`.
|
|
311
|
+
*/
|
|
312
|
+
createdBy?: string;
|
|
313
|
+
/**
|
|
314
|
+
* When true, only include webhooks created by you (not just owned by your org).
|
|
315
|
+
*/
|
|
316
|
+
mine?: 'true' | 'false';
|
|
263
317
|
page?: number;
|
|
264
318
|
pageSize?: number;
|
|
319
|
+
/**
|
|
320
|
+
* Case-insensitive substring match against the URL or description.
|
|
321
|
+
*/
|
|
322
|
+
search?: string;
|
|
265
323
|
status?: 'active' | 'failing' | 'blocked' | 'disabled';
|
|
266
324
|
}
|
|
267
325
|
export declare namespace Webhooks {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../src/resources/webhooks/webhooks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,aAAa,wBAAqB;AAC9C,OAAO,EACL,UAAU,EACV,4BAA4B,EAC5B,8BAA8B,EAC9B,kBAAkB,EAClB,oBAAoB,EACpB,8BAA8B,EAC9B,gCAAgC,EAChC,mBAAmB,EACnB,qBAAqB,EACtB,wBAAqB;AACtB,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,QAAS,SAAQ,WAAW;IACvC,UAAU,EAAE,aAAa,CAAC,UAAU,CAA8C;IAElF
|
|
1
|
+
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../src/resources/webhooks/webhooks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,aAAa,wBAAqB;AAC9C,OAAO,EACL,UAAU,EACV,4BAA4B,EAC5B,8BAA8B,EAC9B,kBAAkB,EAClB,oBAAoB,EACpB,8BAA8B,EAC9B,gCAAgC,EAChC,mBAAmB,EACnB,qBAAqB,EACtB,wBAAqB;AACtB,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;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CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;CACxD;AAID,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,UAAU,IAAI,UAAU,EACxB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -14,7 +14,10 @@ class Webhooks extends resource_1.APIResource {
|
|
|
14
14
|
this.deliveries = new DeliveriesAPI.Deliveries(this._client);
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Creates a webhook subscription with a delivery URL and an optional list of event
|
|
18
|
+
* types to subscribe to (defaults to all when omitted). The response includes the
|
|
19
|
+
* generated signing secret, which is returned only once at creation time and
|
|
20
|
+
* cannot be retrieved later.
|
|
18
21
|
*
|
|
19
22
|
* @example
|
|
20
23
|
* ```ts
|
|
@@ -27,7 +30,9 @@ class Webhooks extends resource_1.APIResource {
|
|
|
27
30
|
return this._client.post('/webhooks', { body, ...options });
|
|
28
31
|
}
|
|
29
32
|
/**
|
|
30
|
-
*
|
|
33
|
+
* Returns a single webhook subscription by id, including its URL, subscribed event
|
|
34
|
+
* types, state, and system-observed delivery health. The signing secret is never
|
|
35
|
+
* included.
|
|
31
36
|
*
|
|
32
37
|
* @example
|
|
33
38
|
* ```ts
|
|
@@ -40,7 +45,10 @@ class Webhooks extends resource_1.APIResource {
|
|
|
40
45
|
return this._client.get((0, path_1.path) `/webhooks/${id}`, options);
|
|
41
46
|
}
|
|
42
47
|
/**
|
|
43
|
-
*
|
|
48
|
+
* Updates a webhook subscription. Any combination of the subscribed event types,
|
|
49
|
+
* state (ACTIVE or DISABLED), and description may be changed, and at least one
|
|
50
|
+
* field must be supplied. Setting state to ACTIVE re-enables a subscription that
|
|
51
|
+
* was auto-blocked after sustained delivery failures.
|
|
44
52
|
*
|
|
45
53
|
* @example
|
|
46
54
|
* ```ts
|
|
@@ -53,7 +61,10 @@ class Webhooks extends resource_1.APIResource {
|
|
|
53
61
|
return this._client.patch((0, path_1.path) `/webhooks/${id}`, { body, ...options });
|
|
54
62
|
}
|
|
55
63
|
/**
|
|
56
|
-
*
|
|
64
|
+
* Returns a paginated list of your webhook subscriptions, optionally filtered by
|
|
65
|
+
* status (active, failing, blocked, or disabled) and/or by `search` (a
|
|
66
|
+
* case-insensitive substring match against the URL or description). The response
|
|
67
|
+
* also includes per-status counts across all of your subscriptions.
|
|
57
68
|
*
|
|
58
69
|
* @example
|
|
59
70
|
* ```ts
|
|
@@ -64,7 +75,8 @@ class Webhooks extends resource_1.APIResource {
|
|
|
64
75
|
return this._client.get('/webhooks', { query, ...options });
|
|
65
76
|
}
|
|
66
77
|
/**
|
|
67
|
-
*
|
|
78
|
+
* Deletes a webhook subscription so it stops receiving deliveries. Returns 204 No
|
|
79
|
+
* Content on success.
|
|
68
80
|
*
|
|
69
81
|
* @example
|
|
70
82
|
* ```ts
|
|
@@ -80,7 +92,9 @@ class Webhooks extends resource_1.APIResource {
|
|
|
80
92
|
});
|
|
81
93
|
}
|
|
82
94
|
/**
|
|
83
|
-
*
|
|
95
|
+
* Returns the catalog of event types that webhook subscriptions can subscribe to,
|
|
96
|
+
* grouped by source. Use the returned type identifiers as the `eventTypes` values
|
|
97
|
+
* when creating or updating a webhook.
|
|
84
98
|
*
|
|
85
99
|
* @example
|
|
86
100
|
* ```ts
|
|
@@ -91,7 +105,9 @@ class Webhooks extends resource_1.APIResource {
|
|
|
91
105
|
return this._client.get('/event-types', options);
|
|
92
106
|
}
|
|
93
107
|
/**
|
|
94
|
-
*
|
|
108
|
+
* Generates a new signing secret for the webhook subscription and returns it once
|
|
109
|
+
* in the response. The previous secret is replaced immediately, so any signature
|
|
110
|
+
* verification on your endpoint must be updated to use the new value.
|
|
95
111
|
*
|
|
96
112
|
* @example
|
|
97
113
|
* ```ts
|
|
@@ -104,7 +120,9 @@ class Webhooks extends resource_1.APIResource {
|
|
|
104
120
|
return this._client.post((0, path_1.path) `/webhooks/${id}/rotate-secret`, options);
|
|
105
121
|
}
|
|
106
122
|
/**
|
|
107
|
-
*
|
|
123
|
+
* Sends a single test payload to the webhook subscription URL to verify
|
|
124
|
+
* connectivity. The response reports whether the attempt succeeded along with the
|
|
125
|
+
* returned HTTP status code or error, if any.
|
|
108
126
|
*
|
|
109
127
|
* @example
|
|
110
128
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../../src/resources/webhooks/webhooks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,uEAA8C;AAC9C,gDAUsB;AAEtB,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,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AI,EAAA,aAAa,EAAE,EAAE,EAAE;YAChD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,UAAU,CAAC,OAAwB;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;IAED;;;;;;;;;;;OAWG;IACH,YAAY,CAAC,EAAU,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,YAAY,CAAC,EAAU,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;CACF;AA1ID,4BA0IC;AA4TD,QAAQ,CAAC,UAAU,GAAG,uBAAU,CAAC"}
|
|
@@ -10,7 +10,10 @@ export class Webhooks extends APIResource {
|
|
|
10
10
|
this.deliveries = new DeliveriesAPI.Deliveries(this._client);
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Creates a webhook subscription with a delivery URL and an optional list of event
|
|
14
|
+
* types to subscribe to (defaults to all when omitted). The response includes the
|
|
15
|
+
* generated signing secret, which is returned only once at creation time and
|
|
16
|
+
* cannot be retrieved later.
|
|
14
17
|
*
|
|
15
18
|
* @example
|
|
16
19
|
* ```ts
|
|
@@ -23,7 +26,9 @@ export class Webhooks extends APIResource {
|
|
|
23
26
|
return this._client.post('/webhooks', { body, ...options });
|
|
24
27
|
}
|
|
25
28
|
/**
|
|
26
|
-
*
|
|
29
|
+
* Returns a single webhook subscription by id, including its URL, subscribed event
|
|
30
|
+
* types, state, and system-observed delivery health. The signing secret is never
|
|
31
|
+
* included.
|
|
27
32
|
*
|
|
28
33
|
* @example
|
|
29
34
|
* ```ts
|
|
@@ -36,7 +41,10 @@ export class Webhooks extends APIResource {
|
|
|
36
41
|
return this._client.get(path `/webhooks/${id}`, options);
|
|
37
42
|
}
|
|
38
43
|
/**
|
|
39
|
-
*
|
|
44
|
+
* Updates a webhook subscription. Any combination of the subscribed event types,
|
|
45
|
+
* state (ACTIVE or DISABLED), and description may be changed, and at least one
|
|
46
|
+
* field must be supplied. Setting state to ACTIVE re-enables a subscription that
|
|
47
|
+
* was auto-blocked after sustained delivery failures.
|
|
40
48
|
*
|
|
41
49
|
* @example
|
|
42
50
|
* ```ts
|
|
@@ -49,7 +57,10 @@ export class Webhooks extends APIResource {
|
|
|
49
57
|
return this._client.patch(path `/webhooks/${id}`, { body, ...options });
|
|
50
58
|
}
|
|
51
59
|
/**
|
|
52
|
-
*
|
|
60
|
+
* Returns a paginated list of your webhook subscriptions, optionally filtered by
|
|
61
|
+
* status (active, failing, blocked, or disabled) and/or by `search` (a
|
|
62
|
+
* case-insensitive substring match against the URL or description). The response
|
|
63
|
+
* also includes per-status counts across all of your subscriptions.
|
|
53
64
|
*
|
|
54
65
|
* @example
|
|
55
66
|
* ```ts
|
|
@@ -60,7 +71,8 @@ export class Webhooks extends APIResource {
|
|
|
60
71
|
return this._client.get('/webhooks', { query, ...options });
|
|
61
72
|
}
|
|
62
73
|
/**
|
|
63
|
-
*
|
|
74
|
+
* Deletes a webhook subscription so it stops receiving deliveries. Returns 204 No
|
|
75
|
+
* Content on success.
|
|
64
76
|
*
|
|
65
77
|
* @example
|
|
66
78
|
* ```ts
|
|
@@ -76,7 +88,9 @@ export class Webhooks extends APIResource {
|
|
|
76
88
|
});
|
|
77
89
|
}
|
|
78
90
|
/**
|
|
79
|
-
*
|
|
91
|
+
* Returns the catalog of event types that webhook subscriptions can subscribe to,
|
|
92
|
+
* grouped by source. Use the returned type identifiers as the `eventTypes` values
|
|
93
|
+
* when creating or updating a webhook.
|
|
80
94
|
*
|
|
81
95
|
* @example
|
|
82
96
|
* ```ts
|
|
@@ -87,7 +101,9 @@ export class Webhooks extends APIResource {
|
|
|
87
101
|
return this._client.get('/event-types', options);
|
|
88
102
|
}
|
|
89
103
|
/**
|
|
90
|
-
*
|
|
104
|
+
* Generates a new signing secret for the webhook subscription and returns it once
|
|
105
|
+
* in the response. The previous secret is replaced immediately, so any signature
|
|
106
|
+
* verification on your endpoint must be updated to use the new value.
|
|
91
107
|
*
|
|
92
108
|
* @example
|
|
93
109
|
* ```ts
|
|
@@ -100,7 +116,9 @@ export class Webhooks extends APIResource {
|
|
|
100
116
|
return this._client.post(path `/webhooks/${id}/rotate-secret`, options);
|
|
101
117
|
}
|
|
102
118
|
/**
|
|
103
|
-
*
|
|
119
|
+
* Sends a single test payload to the webhook subscription URL to verify
|
|
120
|
+
* connectivity. The response reports whether the attempt succeeded along with the
|
|
121
|
+
* returned HTTP status code or error, if any.
|
|
104
122
|
*
|
|
105
123
|
* @example
|
|
106
124
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.mjs","sourceRoot":"","sources":["../../src/resources/webhooks/webhooks.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,KAAK,aAAa,yBAAqB;AAC9C,OAAO,EACL,UAAU,GASX,yBAAqB;AAEtB,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"webhooks.mjs","sourceRoot":"","sources":["../../src/resources/webhooks/webhooks.ts"],"names":[],"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