@mobilerun/sdk 5.5.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/README.md +0 -9
- package/client.d.mts +12 -30
- package/client.d.mts.map +1 -1
- package/client.d.ts +12 -30
- package/client.d.ts.map +1 -1
- package/client.js +1 -18
- package/client.js.map +1 -1
- package/client.mjs +2 -19
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +39 -26
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +39 -26
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +20 -7
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +20 -7
- package/resources/apps.mjs.map +1 -1
- package/resources/assistant/conversations.d.mts +7 -17
- package/resources/assistant/conversations.d.mts.map +1 -1
- package/resources/assistant/conversations.d.ts +7 -17
- package/resources/assistant/conversations.d.ts.map +1 -1
- package/resources/assistant/conversations.js +4 -11
- package/resources/assistant/conversations.js.map +1 -1
- package/resources/assistant/conversations.mjs +4 -11
- package/resources/assistant/conversations.mjs.map +1 -1
- package/resources/connect/connect.d.mts +2 -2
- package/resources/connect/connect.d.mts.map +1 -1
- package/resources/connect/connect.d.ts +2 -2
- package/resources/connect/connect.d.ts.map +1 -1
- package/resources/connect/connect.js.map +1 -1
- package/resources/connect/connect.mjs.map +1 -1
- package/resources/connect/index.d.mts +1 -1
- package/resources/connect/index.d.mts.map +1 -1
- package/resources/connect/index.d.ts +1 -1
- package/resources/connect/index.d.ts.map +1 -1
- package/resources/connect/index.js.map +1 -1
- package/resources/connect/index.mjs.map +1 -1
- package/resources/connect/proxies.d.mts +102 -17
- package/resources/connect/proxies.d.mts.map +1 -1
- package/resources/connect/proxies.d.ts +102 -17
- package/resources/connect/proxies.d.ts.map +1 -1
- package/resources/connect/proxies.js +27 -14
- package/resources/connect/proxies.js.map +1 -1
- package/resources/connect/proxies.mjs +27 -14
- package/resources/connect/proxies.mjs.map +1 -1
- package/resources/connect/users.d.mts +4 -4
- package/resources/connect/users.d.ts +4 -4
- package/resources/connect/users.js +2 -2
- package/resources/connect/users.mjs +2 -2
- package/resources/devices/actions.d.mts +25 -5
- package/resources/devices/actions.d.mts.map +1 -1
- package/resources/devices/actions.d.ts +25 -5
- package/resources/devices/actions.d.ts.map +1 -1
- package/resources/devices/actions.js +5 -3
- package/resources/devices/actions.js.map +1 -1
- package/resources/devices/actions.mjs +5 -3
- package/resources/devices/actions.mjs.map +1 -1
- package/resources/devices/apps.d.mts +13 -0
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +13 -0
- package/resources/devices/apps.d.ts.map +1 -1
- package/resources/devices/browser.d.mts +9 -3
- package/resources/devices/browser.d.mts.map +1 -1
- package/resources/devices/browser.d.ts +9 -3
- package/resources/devices/browser.d.ts.map +1 -1
- package/resources/devices/browser.js +9 -3
- package/resources/devices/browser.js.map +1 -1
- package/resources/devices/browser.mjs +9 -3
- package/resources/devices/browser.mjs.map +1 -1
- package/resources/devices/devices.d.mts +88 -36
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +88 -36
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +30 -15
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +30 -15
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/index.d.mts +3 -2
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +3 -2
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +3 -1
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +1 -0
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/keyboard.d.mts +8 -2
- package/resources/devices/keyboard.d.mts.map +1 -1
- package/resources/devices/keyboard.d.ts +8 -2
- package/resources/devices/keyboard.d.ts.map +1 -1
- package/resources/devices/recordings.d.mts +29 -6
- package/resources/devices/recordings.d.mts.map +1 -1
- package/resources/devices/recordings.d.ts +29 -6
- package/resources/devices/recordings.d.ts.map +1 -1
- package/resources/devices/recordings.js +9 -0
- package/resources/devices/recordings.js.map +1 -1
- package/resources/devices/recordings.mjs +9 -0
- package/resources/devices/recordings.mjs.map +1 -1
- package/resources/devices/screenshots.d.mts +72 -0
- package/resources/devices/screenshots.d.mts.map +1 -0
- package/resources/devices/screenshots.d.ts +72 -0
- package/resources/devices/screenshots.d.ts.map +1 -0
- package/resources/devices/screenshots.js +57 -0
- package/resources/devices/screenshots.js.map +1 -0
- package/resources/devices/screenshots.mjs +53 -0
- package/resources/devices/screenshots.mjs.map +1 -0
- package/resources/devices/state.d.mts +11 -2
- package/resources/devices/state.d.mts.map +1 -1
- package/resources/devices/state.d.ts +11 -2
- package/resources/devices/state.d.ts.map +1 -1
- package/resources/devices/state.js +5 -2
- package/resources/devices/state.js.map +1 -1
- package/resources/devices/state.mjs +5 -2
- package/resources/devices/state.mjs.map +1 -1
- package/resources/devices/traffic-sessions.d.mts +1 -11
- package/resources/devices/traffic-sessions.d.mts.map +1 -1
- package/resources/devices/traffic-sessions.d.ts +1 -11
- package/resources/devices/traffic-sessions.d.ts.map +1 -1
- package/resources/devices/traffic-sessions.js +2 -8
- package/resources/devices/traffic-sessions.js.map +1 -1
- package/resources/devices/traffic-sessions.mjs +2 -8
- package/resources/devices/traffic-sessions.mjs.map +1 -1
- package/resources/files.d.mts +8 -22
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +8 -22
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +5 -13
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +5 -13
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts +6 -11
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -11
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -11
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -6
- package/resources/index.mjs.map +1 -1
- package/resources/mailboxes/connections.d.mts +58 -0
- package/resources/mailboxes/connections.d.mts.map +1 -0
- package/resources/mailboxes/connections.d.ts +58 -0
- package/resources/mailboxes/connections.d.ts.map +1 -0
- package/resources/mailboxes/connections.js +41 -0
- package/resources/mailboxes/connections.js.map +1 -0
- package/resources/mailboxes/connections.mjs +37 -0
- package/resources/mailboxes/connections.mjs.map +1 -0
- package/resources/mailboxes/index.d.mts +2 -1
- package/resources/mailboxes/index.d.mts.map +1 -1
- package/resources/mailboxes/index.d.ts +2 -1
- package/resources/mailboxes/index.d.ts.map +1 -1
- package/resources/mailboxes/index.js +3 -1
- package/resources/mailboxes/index.js.map +1 -1
- package/resources/mailboxes/index.mjs +1 -0
- package/resources/mailboxes/index.mjs.map +1 -1
- package/resources/mailboxes/mailboxes.d.mts +74 -24
- package/resources/mailboxes/mailboxes.d.mts.map +1 -1
- package/resources/mailboxes/mailboxes.d.ts +74 -24
- package/resources/mailboxes/mailboxes.d.ts.map +1 -1
- package/resources/mailboxes/mailboxes.js +26 -8
- package/resources/mailboxes/mailboxes.js.map +1 -1
- package/resources/mailboxes/mailboxes.mjs +26 -8
- package/resources/mailboxes/mailboxes.mjs.map +1 -1
- package/resources/messages/index.d.mts +1 -1
- package/resources/messages/index.d.mts.map +1 -1
- package/resources/messages/index.d.ts +1 -1
- package/resources/messages/index.d.ts.map +1 -1
- package/resources/messages/index.js.map +1 -1
- package/resources/messages/index.mjs +1 -1
- package/resources/messages/index.mjs.map +1 -1
- package/resources/messages/messages.d.mts +26 -1
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +26 -1
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +9 -0
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +9 -0
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/models.d.mts +12 -23
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +12 -23
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +3 -4
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +3 -4
- package/resources/models.mjs.map +1 -1
- package/resources/numbers/index.d.mts +2 -2
- package/resources/numbers/index.d.mts.map +1 -1
- package/resources/numbers/index.d.ts +2 -2
- package/resources/numbers/index.d.ts.map +1 -1
- package/resources/numbers/index.js.map +1 -1
- package/resources/numbers/index.mjs +1 -1
- package/resources/numbers/index.mjs.map +1 -1
- package/resources/numbers/messages.d.mts +57 -1
- package/resources/numbers/messages.d.mts.map +1 -1
- package/resources/numbers/messages.d.ts +57 -1
- package/resources/numbers/messages.d.ts.map +1 -1
- package/resources/numbers/messages.js +23 -0
- package/resources/numbers/messages.js.map +1 -1
- package/resources/numbers/messages.mjs +23 -0
- package/resources/numbers/messages.mjs.map +1 -1
- package/resources/numbers/numbers.d.mts +148 -44
- package/resources/numbers/numbers.d.mts.map +1 -1
- package/resources/numbers/numbers.d.ts +148 -44
- package/resources/numbers/numbers.d.ts.map +1 -1
- package/resources/numbers/numbers.js +3 -23
- package/resources/numbers/numbers.js.map +1 -1
- package/resources/numbers/numbers.mjs +4 -24
- package/resources/numbers/numbers.mjs.map +1 -1
- package/resources/proxies.d.mts +1 -87
- package/resources/proxies.d.mts.map +1 -1
- package/resources/proxies.d.ts +1 -87
- package/resources/proxies.d.ts.map +1 -1
- package/resources/proxies.js +0 -6
- package/resources/proxies.js.map +1 -1
- package/resources/proxies.mjs +0 -6
- package/resources/proxies.mjs.map +1 -1
- package/resources/tasks/tasks.d.mts +51 -188
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +51 -188
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js +2 -10
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs +2 -10
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/webhooks/deliveries.d.mts +22 -31
- package/resources/webhooks/deliveries.d.mts.map +1 -1
- package/resources/webhooks/deliveries.d.ts +22 -31
- package/resources/webhooks/deliveries.d.ts.map +1 -1
- package/resources/webhooks/deliveries.js +4 -30
- package/resources/webhooks/deliveries.js.map +1 -1
- package/resources/webhooks/deliveries.mjs +4 -30
- package/resources/webhooks/deliveries.mjs.map +1 -1
- package/resources/webhooks/index.d.mts +2 -1
- package/resources/webhooks/index.d.mts.map +1 -1
- package/resources/webhooks/index.d.ts +2 -1
- package/resources/webhooks/index.d.ts.map +1 -1
- package/resources/webhooks/index.js +3 -1
- package/resources/webhooks/index.js.map +1 -1
- package/resources/webhooks/index.mjs +1 -0
- package/resources/webhooks/index.mjs.map +1 -1
- package/resources/webhooks/integrations.d.mts +77 -0
- package/resources/webhooks/integrations.d.mts.map +1 -0
- package/resources/webhooks/integrations.d.ts +77 -0
- package/resources/webhooks/integrations.d.ts.map +1 -0
- package/resources/webhooks/integrations.js +26 -0
- package/resources/webhooks/integrations.js.map +1 -0
- package/resources/webhooks/integrations.mjs +22 -0
- package/resources/webhooks/integrations.mjs.map +1 -0
- package/resources/webhooks/webhooks.d.mts +276 -104
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +276 -104
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js +32 -68
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +32 -68
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/resources/workflows/action-catalog.d.mts +7 -3
- package/resources/workflows/action-catalog.d.mts.map +1 -1
- package/resources/workflows/action-catalog.d.ts +7 -3
- package/resources/workflows/action-catalog.d.ts.map +1 -1
- package/resources/workflows/actions/actions.d.mts +9 -5
- package/resources/workflows/actions/actions.d.mts.map +1 -1
- package/resources/workflows/actions/actions.d.ts +9 -5
- package/resources/workflows/actions/actions.d.ts.map +1 -1
- package/resources/workflows/actions/actions.js +4 -0
- package/resources/workflows/actions/actions.js.map +1 -1
- package/resources/workflows/actions/actions.mjs +4 -0
- package/resources/workflows/actions/actions.mjs.map +1 -1
- package/resources/workflows/events.d.mts +52 -5
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +52 -5
- package/resources/workflows/events.d.ts.map +1 -1
- package/resources/workflows/executions/executions.d.mts +330 -0
- package/resources/workflows/executions/executions.d.mts.map +1 -0
- package/resources/workflows/executions/executions.d.ts +330 -0
- package/resources/workflows/executions/executions.d.ts.map +1 -0
- package/resources/workflows/executions/executions.js +49 -0
- package/resources/workflows/executions/executions.js.map +1 -0
- package/resources/workflows/executions/executions.mjs +44 -0
- package/resources/workflows/executions/executions.mjs.map +1 -0
- package/resources/workflows/executions/index.d.mts +3 -0
- package/resources/workflows/executions/index.d.mts.map +1 -0
- package/resources/workflows/executions/index.d.ts +3 -0
- package/resources/workflows/executions/index.d.ts.map +1 -0
- package/resources/workflows/executions/index.js +9 -0
- package/resources/workflows/executions/index.js.map +1 -0
- package/resources/workflows/executions/index.mjs +4 -0
- package/resources/workflows/executions/index.mjs.map +1 -0
- package/resources/workflows/executions/screenshots.d.mts +18 -0
- package/resources/workflows/executions/screenshots.d.mts.map +1 -0
- package/resources/workflows/executions/screenshots.d.ts +18 -0
- package/resources/workflows/executions/screenshots.d.ts.map +1 -0
- package/resources/workflows/executions/screenshots.js +23 -0
- package/resources/workflows/executions/screenshots.js.map +1 -0
- package/resources/workflows/executions/screenshots.mjs +19 -0
- package/resources/workflows/executions/screenshots.mjs.map +1 -0
- package/resources/workflows/executions.d.mts +1 -269
- package/resources/workflows/executions.d.mts.map +1 -1
- package/resources/workflows/executions.d.ts +1 -269
- package/resources/workflows/executions.d.ts.map +1 -1
- package/resources/workflows/executions.js +2 -37
- package/resources/workflows/executions.js.map +1 -1
- package/resources/workflows/executions.mjs +1 -35
- package/resources/workflows/executions.mjs.map +1 -1
- package/resources/workflows/flows/actions.d.mts +39 -0
- package/resources/workflows/flows/actions.d.mts.map +1 -1
- package/resources/workflows/flows/actions.d.ts +39 -0
- package/resources/workflows/flows/actions.d.ts.map +1 -1
- package/resources/workflows/flows/actions.js +4 -0
- package/resources/workflows/flows/actions.js.map +1 -1
- package/resources/workflows/flows/actions.mjs +4 -0
- package/resources/workflows/flows/actions.mjs.map +1 -1
- package/resources/workflows/flows/flows.d.mts +574 -27
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +574 -27
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +78 -3
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +78 -3
- package/resources/workflows/flows/flows.mjs.map +1 -1
- package/resources/workflows/flows/index.d.mts +1 -1
- package/resources/workflows/flows/index.d.mts.map +1 -1
- package/resources/workflows/flows/index.d.ts +1 -1
- package/resources/workflows/flows/index.d.ts.map +1 -1
- package/resources/workflows/flows/index.js.map +1 -1
- package/resources/workflows/flows/index.mjs.map +1 -1
- package/resources/workflows/index.d.mts +2 -2
- package/resources/workflows/index.d.mts.map +1 -1
- package/resources/workflows/index.d.ts +2 -2
- package/resources/workflows/index.d.ts.map +1 -1
- package/resources/workflows/index.js +4 -4
- package/resources/workflows/index.js.map +1 -1
- package/resources/workflows/index.mjs +1 -1
- package/resources/workflows/index.mjs.map +1 -1
- package/resources/workflows/triggers.d.mts +110 -15
- package/resources/workflows/triggers.d.mts.map +1 -1
- package/resources/workflows/triggers.d.ts +110 -15
- package/resources/workflows/triggers.d.ts.map +1 -1
- package/resources/workflows/triggers.js +13 -1
- package/resources/workflows/triggers.js.map +1 -1
- package/resources/workflows/triggers.mjs +13 -1
- package/resources/workflows/triggers.mjs.map +1 -1
- package/resources/workflows/workflows.d.mts +4 -4
- package/resources/workflows/workflows.d.mts.map +1 -1
- package/resources/workflows/workflows.d.ts +4 -4
- package/resources/workflows/workflows.d.ts.map +1 -1
- package/resources/workflows/workflows.js +2 -2
- package/resources/workflows/workflows.js.map +1 -1
- package/resources/workflows/workflows.mjs +2 -2
- package/resources/workflows/workflows.mjs.map +1 -1
- package/src/client.ts +14 -103
- package/src/resources/apps.ts +39 -26
- package/src/resources/assistant/conversations.ts +12 -27
- package/src/resources/connect/connect.ts +6 -0
- package/src/resources/connect/index.ts +3 -0
- package/src/resources/connect/proxies.ts +127 -25
- package/src/resources/connect/users.ts +4 -4
- package/src/resources/devices/actions.ts +28 -5
- package/src/resources/devices/apps.ts +18 -0
- package/src/resources/devices/browser.ts +9 -3
- package/src/resources/devices/devices.ts +139 -41
- package/src/resources/devices/index.ts +13 -0
- package/src/resources/devices/keyboard.ts +9 -2
- package/src/resources/devices/recordings.ts +45 -5
- package/src/resources/devices/screenshots.ts +140 -0
- package/src/resources/devices/state.ts +12 -2
- package/src/resources/devices/traffic-sessions.ts +2 -19
- package/src/resources/files.ts +11 -32
- package/src/resources/index.ts +9 -43
- package/src/resources/mailboxes/connections.ts +84 -0
- package/src/resources/mailboxes/index.ts +7 -0
- package/src/resources/mailboxes/mailboxes.ts +147 -24
- package/src/resources/messages/index.ts +6 -1
- package/src/resources/messages/messages.ts +55 -1
- package/src/resources/models.ts +16 -23
- package/src/resources/numbers/index.ts +7 -2
- package/src/resources/numbers/messages.ts +88 -1
- package/src/resources/numbers/numbers.ts +171 -62
- package/src/resources/proxies.ts +0 -110
- package/src/resources/tasks/tasks.ts +57 -198
- package/src/resources/webhooks/deliveries.ts +26 -31
- package/src/resources/webhooks/index.ts +6 -1
- package/src/resources/webhooks/integrations.ts +107 -0
- package/src/resources/webhooks/webhooks.ts +315 -114
- package/src/resources/workflows/action-catalog.ts +11 -3
- package/src/resources/workflows/actions/actions.ts +9 -5
- package/src/resources/workflows/events.ts +66 -5
- package/src/resources/workflows/executions/executions.ts +510 -0
- package/src/resources/workflows/executions/index.ts +12 -0
- package/src/resources/workflows/executions/screenshots.ts +34 -0
- package/src/resources/workflows/executions.ts +1 -412
- package/src/resources/workflows/flows/actions.ts +46 -0
- package/src/resources/workflows/flows/flows.ts +811 -26
- package/src/resources/workflows/flows/index.ts +11 -0
- package/src/resources/workflows/index.ts +12 -1
- package/src/resources/workflows/triggers.ts +131 -16
- package/src/resources/workflows/workflows.ts +32 -10
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/app-events/app-events.d.mts +0 -81
- package/resources/app-events/app-events.d.mts.map +0 -1
- package/resources/app-events/app-events.d.ts +0 -81
- package/resources/app-events/app-events.d.ts.map +0 -1
- package/resources/app-events/app-events.js +0 -33
- package/resources/app-events/app-events.js.map +0 -1
- package/resources/app-events/app-events.mjs +0 -28
- package/resources/app-events/app-events.mjs.map +0 -1
- package/resources/app-events/catalog.d.mts +0 -64
- package/resources/app-events/catalog.d.mts.map +0 -1
- package/resources/app-events/catalog.d.ts +0 -64
- package/resources/app-events/catalog.d.ts.map +0 -1
- package/resources/app-events/catalog.js +0 -25
- package/resources/app-events/catalog.js.map +0 -1
- package/resources/app-events/catalog.mjs +0 -21
- package/resources/app-events/catalog.mjs.map +0 -1
- package/resources/app-events/index.d.mts +0 -3
- package/resources/app-events/index.d.mts.map +0 -1
- package/resources/app-events/index.d.ts +0 -3
- package/resources/app-events/index.d.ts.map +0 -1
- package/resources/app-events/index.js +0 -9
- package/resources/app-events/index.js.map +0 -1
- package/resources/app-events/index.mjs +0 -4
- package/resources/app-events/index.mjs.map +0 -1
- package/resources/app-events.d.mts +0 -2
- package/resources/app-events.d.mts.map +0 -1
- package/resources/app-events.d.ts +0 -2
- package/resources/app-events.d.ts.map +0 -1
- package/resources/app-events.js +0 -6
- package/resources/app-events.js.map +0 -1
- package/resources/app-events.mjs +0 -3
- package/resources/app-events.mjs.map +0 -1
- package/resources/carriers.d.mts +0 -331
- package/resources/carriers.d.mts.map +0 -1
- package/resources/carriers.d.ts +0 -331
- package/resources/carriers.d.ts.map +0 -1
- package/resources/carriers.js +0 -46
- package/resources/carriers.js.map +0 -1
- package/resources/carriers.mjs +0 -42
- package/resources/carriers.mjs.map +0 -1
- package/resources/notifications.d.mts +0 -86
- package/resources/notifications.d.mts.map +0 -1
- package/resources/notifications.d.ts +0 -86
- package/resources/notifications.d.ts.map +0 -1
- package/resources/notifications.js +0 -55
- package/resources/notifications.js.map +0 -1
- package/resources/notifications.mjs +0 -51
- package/resources/notifications.mjs.map +0 -1
- package/resources/profiles.d.mts +0 -147
- package/resources/profiles.d.mts.map +0 -1
- package/resources/profiles.d.ts +0 -147
- package/resources/profiles.d.ts.map +0 -1
- package/resources/profiles.js +0 -40
- package/resources/profiles.js.map +0 -1
- package/resources/profiles.mjs +0 -36
- package/resources/profiles.mjs.map +0 -1
- package/resources/store/apps.d.mts +0 -119
- package/resources/store/apps.d.mts.map +0 -1
- package/resources/store/apps.d.ts +0 -119
- package/resources/store/apps.d.ts.map +0 -1
- package/resources/store/apps.js +0 -31
- package/resources/store/apps.js.map +0 -1
- package/resources/store/apps.mjs +0 -27
- package/resources/store/apps.mjs.map +0 -1
- package/resources/store/index.d.mts +0 -3
- package/resources/store/index.d.mts.map +0 -1
- package/resources/store/index.d.ts +0 -3
- package/resources/store/index.d.ts.map +0 -1
- package/resources/store/index.js +0 -9
- package/resources/store/index.js.map +0 -1
- package/resources/store/index.mjs +0 -4
- package/resources/store/index.mjs.map +0 -1
- package/resources/store/store.d.mts +0 -20
- package/resources/store/store.d.mts.map +0 -1
- package/resources/store/store.d.ts +0 -20
- package/resources/store/store.d.ts.map +0 -1
- package/resources/store/store.js +0 -23
- package/resources/store/store.js.map +0 -1
- package/resources/store/store.mjs +0 -18
- package/resources/store/store.mjs.map +0 -1
- package/resources/store.d.mts +0 -2
- package/resources/store.d.mts.map +0 -1
- package/resources/store.d.ts +0 -2
- package/resources/store.d.ts.map +0 -1
- package/resources/store.js +0 -6
- package/resources/store.js.map +0 -1
- package/resources/store.mjs +0 -3
- package/resources/store.mjs.map +0 -1
- package/src/resources/app-events/app-events.ts +0 -133
- package/src/resources/app-events/catalog.ts +0 -100
- package/src/resources/app-events/index.ts +0 -9
- package/src/resources/app-events.ts +0 -3
- package/src/resources/carriers.ts +0 -508
- package/src/resources/notifications.ts +0 -118
- package/src/resources/profiles.ts +0 -232
- package/src/resources/store/apps.ts +0 -704
- package/src/resources/store/index.ts +0 -10
- package/src/resources/store/store.ts +0 -36
- package/src/resources/store.ts +0 -3
|
@@ -14,19 +14,37 @@ import {
|
|
|
14
14
|
DeliveryStatsParams,
|
|
15
15
|
DeliveryStatsResponse,
|
|
16
16
|
} from './deliveries';
|
|
17
|
+
import * as IntegrationsAPI from './integrations';
|
|
18
|
+
import {
|
|
19
|
+
IntegrationListResponse,
|
|
20
|
+
IntegrationListTargetsParams,
|
|
21
|
+
IntegrationListTargetsResponse,
|
|
22
|
+
Integrations,
|
|
23
|
+
} from './integrations';
|
|
17
24
|
import { APIPromise } from '../../core/api-promise';
|
|
18
25
|
import { buildHeaders } from '../../internal/headers';
|
|
19
26
|
import { RequestOptions } from '../../internal/request-options';
|
|
20
27
|
import { path } from '../../internal/utils/path';
|
|
21
28
|
|
|
22
29
|
export class Webhooks extends APIResource {
|
|
30
|
+
integrations: IntegrationsAPI.Integrations = new IntegrationsAPI.Integrations(this._client);
|
|
23
31
|
deliveries: DeliveriesAPI.Deliveries = new DeliveriesAPI.Deliveries(this._client);
|
|
24
32
|
|
|
25
33
|
/**
|
|
26
|
-
* Creates a webhook subscription
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* cannot be retrieved later.
|
|
34
|
+
* Creates a webhook subscription and an optional list of event types to subscribe
|
|
35
|
+
* to (defaults to all when omitted). `kind: "http"` (the default) delivers signed
|
|
36
|
+
* JSON to a URL; the response includes the generated signing secret, which is
|
|
37
|
+
* returned only once at creation time and cannot be retrieved later.
|
|
38
|
+
* `kind: "integration"` posts each event as a message into a connected integration
|
|
39
|
+
* target (e.g. a Slack channel): pick the `capability` from
|
|
40
|
+
* `GET /webhooks/integrations` and the `args` from
|
|
41
|
+
* `GET /webhooks/integrations/{capabilityId}/targets`. Integration webhooks have
|
|
42
|
+
* no signing secret. Send an `Idempotency-Key` header to make the create safe to
|
|
43
|
+
* retry: the same key with the same body returns the existing webhook (status 201,
|
|
44
|
+
* `Idempotent-Replayed: true`) instead of creating a second one, and the same key
|
|
45
|
+
* with a different body is a 422. A replayed create does not return the signing
|
|
46
|
+
* secret again; use rotate-secret if the original response was lost. If that
|
|
47
|
+
* webhook was deleted in the meantime, the retry is a 404.
|
|
30
48
|
*
|
|
31
49
|
* @example
|
|
32
50
|
* ```ts
|
|
@@ -40,16 +58,9 @@ export class Webhooks extends APIResource {
|
|
|
40
58
|
}
|
|
41
59
|
|
|
42
60
|
/**
|
|
43
|
-
* Returns a single webhook subscription by id, including its URL
|
|
44
|
-
* types, state, and system-observed delivery health. The
|
|
45
|
-
* included.
|
|
46
|
-
*
|
|
47
|
-
* @example
|
|
48
|
-
* ```ts
|
|
49
|
-
* const webhook = await client.webhooks.retrieve(
|
|
50
|
-
* '550e8400-e29b-41d4-a716-446655440000',
|
|
51
|
-
* );
|
|
52
|
-
* ```
|
|
61
|
+
* Returns a single webhook subscription by id, including its URL (or integration
|
|
62
|
+
* target), subscribed event types, state, and system-observed delivery health. The
|
|
63
|
+
* signing secret is never included.
|
|
53
64
|
*/
|
|
54
65
|
retrieve(id: string, options?: RequestOptions): APIPromise<WebhookRetrieveResponse> {
|
|
55
66
|
return this._client.get(path`/webhooks/${id}`, options);
|
|
@@ -59,14 +70,8 @@ export class Webhooks extends APIResource {
|
|
|
59
70
|
* Updates a webhook subscription. Any combination of the subscribed event types,
|
|
60
71
|
* state (ACTIVE or DISABLED), and description may be changed, and at least one
|
|
61
72
|
* field must be supplied. Setting state to ACTIVE re-enables a subscription that
|
|
62
|
-
* was auto-blocked after sustained delivery failures.
|
|
63
|
-
*
|
|
64
|
-
* @example
|
|
65
|
-
* ```ts
|
|
66
|
-
* const webhook = await client.webhooks.update(
|
|
67
|
-
* '550e8400-e29b-41d4-a716-446655440000',
|
|
68
|
-
* );
|
|
69
|
-
* ```
|
|
73
|
+
* was auto-blocked after sustained delivery failures. The URL or integration
|
|
74
|
+
* target cannot be changed; delete and recreate the webhook instead.
|
|
70
75
|
*/
|
|
71
76
|
update(
|
|
72
77
|
id: string,
|
|
@@ -78,14 +83,10 @@ export class Webhooks extends APIResource {
|
|
|
78
83
|
|
|
79
84
|
/**
|
|
80
85
|
* Returns a paginated list of your webhook subscriptions, optionally filtered by
|
|
81
|
-
* status (active, failing, blocked, or disabled)
|
|
82
|
-
*
|
|
83
|
-
* also includes per-status counts across all of your subscriptions
|
|
84
|
-
*
|
|
85
|
-
* @example
|
|
86
|
-
* ```ts
|
|
87
|
-
* const webhooks = await client.webhooks.list();
|
|
88
|
-
* ```
|
|
86
|
+
* status (active, failing, blocked, or disabled), by `search` (a case-insensitive
|
|
87
|
+
* substring match against the URL or description), and/or by delivery `kind`. The
|
|
88
|
+
* response also includes per-status counts across all of your subscriptions (of
|
|
89
|
+
* the requested `kind`, if given; the other filters do not apply to the counts).
|
|
89
90
|
*/
|
|
90
91
|
list(
|
|
91
92
|
query: WebhookListParams | null | undefined = {},
|
|
@@ -97,13 +98,6 @@ export class Webhooks extends APIResource {
|
|
|
97
98
|
/**
|
|
98
99
|
* Deletes a webhook subscription so it stops receiving deliveries. Returns 204 No
|
|
99
100
|
* Content on success.
|
|
100
|
-
*
|
|
101
|
-
* @example
|
|
102
|
-
* ```ts
|
|
103
|
-
* await client.webhooks.delete(
|
|
104
|
-
* '550e8400-e29b-41d4-a716-446655440000',
|
|
105
|
-
* );
|
|
106
|
-
* ```
|
|
107
101
|
*/
|
|
108
102
|
delete(id: string, options?: RequestOptions): APIPromise<void> {
|
|
109
103
|
return this._client.delete(path`/webhooks/${id}`, {
|
|
@@ -112,47 +106,20 @@ export class Webhooks extends APIResource {
|
|
|
112
106
|
});
|
|
113
107
|
}
|
|
114
108
|
|
|
115
|
-
/**
|
|
116
|
-
* Returns the catalog of event types that webhook subscriptions can subscribe to,
|
|
117
|
-
* grouped by source. Use the returned type identifiers as the `eventTypes` values
|
|
118
|
-
* when creating or updating a webhook.
|
|
119
|
-
*
|
|
120
|
-
* @example
|
|
121
|
-
* ```ts
|
|
122
|
-
* const response = await client.webhooks.eventTypes();
|
|
123
|
-
* ```
|
|
124
|
-
*/
|
|
125
|
-
eventTypes(options?: RequestOptions): APIPromise<WebhookEventTypesResponse> {
|
|
126
|
-
return this._client.get('/event-types', options);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
109
|
/**
|
|
130
110
|
* Generates a new signing secret for the webhook subscription and returns it once
|
|
131
111
|
* in the response. The previous secret is replaced immediately, so any signature
|
|
132
|
-
* verification on your endpoint must be updated to use the new value.
|
|
133
|
-
*
|
|
134
|
-
* @example
|
|
135
|
-
* ```ts
|
|
136
|
-
* const response = await client.webhooks.rotateSecret(
|
|
137
|
-
* '550e8400-e29b-41d4-a716-446655440000',
|
|
138
|
-
* );
|
|
139
|
-
* ```
|
|
112
|
+
* verification on your endpoint must be updated to use the new value. Only `http`
|
|
113
|
+
* webhooks have a signing secret; for `integration` webhooks this returns 400.
|
|
140
114
|
*/
|
|
141
115
|
rotateSecret(id: string, options?: RequestOptions): APIPromise<WebhookRotateSecretResponse> {
|
|
142
116
|
return this._client.post(path`/webhooks/${id}/rotate-secret`, options);
|
|
143
117
|
}
|
|
144
118
|
|
|
145
119
|
/**
|
|
146
|
-
* Sends a single test payload to the webhook subscription URL
|
|
147
|
-
* connectivity. The response reports whether
|
|
148
|
-
* returned HTTP status code or error, if any.
|
|
149
|
-
*
|
|
150
|
-
* @example
|
|
151
|
-
* ```ts
|
|
152
|
-
* const response = await client.webhooks.testDelivery(
|
|
153
|
-
* '550e8400-e29b-41d4-a716-446655440000',
|
|
154
|
-
* );
|
|
155
|
-
* ```
|
|
120
|
+
* Sends a single test payload to the webhook subscription URL (or a test message
|
|
121
|
+
* to its integration target) to verify connectivity. The response reports whether
|
|
122
|
+
* the attempt succeeded along with the returned HTTP status code or error, if any.
|
|
156
123
|
*/
|
|
157
124
|
testDelivery(id: string, options?: RequestOptions): APIPromise<WebhookTestDeliveryResponse> {
|
|
158
125
|
return this._client.post(path`/webhooks/${id}/test`, options);
|
|
@@ -169,6 +136,11 @@ export namespace WebhookCreateResponse {
|
|
|
169
136
|
|
|
170
137
|
blockedAt: string | null;
|
|
171
138
|
|
|
139
|
+
/**
|
|
140
|
+
* Why the webhook was blocked, e.g. `integration_disconnected` (reconnect the
|
|
141
|
+
* integration) or `integration_target_invalid` (the channel is gone or not
|
|
142
|
+
* allowed).
|
|
143
|
+
*/
|
|
172
144
|
blockedReason: string | null;
|
|
173
145
|
|
|
174
146
|
createdAt: string;
|
|
@@ -189,17 +161,59 @@ export namespace WebhookCreateResponse {
|
|
|
189
161
|
health: 'healthy' | 'failing' | 'blocked';
|
|
190
162
|
|
|
191
163
|
/**
|
|
192
|
-
*
|
|
164
|
+
* Integration target; null for `http` webhooks.
|
|
193
165
|
*/
|
|
194
|
-
|
|
166
|
+
integration: Data.Integration | null;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* `http` posts signed JSON to `url`; `integration` posts a message through a
|
|
170
|
+
* connected integration (e.g. a Slack channel).
|
|
171
|
+
*/
|
|
172
|
+
kind: 'http' | 'integration';
|
|
195
173
|
|
|
174
|
+
/**
|
|
175
|
+
* Always false for `integration` webhooks.
|
|
176
|
+
*/
|
|
196
177
|
signingEnabled: boolean;
|
|
197
178
|
|
|
198
179
|
state: 'ACTIVE' | 'DISABLED' | 'DELETED';
|
|
199
180
|
|
|
200
181
|
updatedAt: string;
|
|
201
182
|
|
|
202
|
-
|
|
183
|
+
/**
|
|
184
|
+
* Delivery URL; null for `integration` webhooks.
|
|
185
|
+
*/
|
|
186
|
+
url: string | null;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Signing secret for `http` webhooks — shown only once. Store it now. Absent for
|
|
190
|
+
* `integration` webhooks.
|
|
191
|
+
*/
|
|
192
|
+
secret?: string;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export namespace Data {
|
|
196
|
+
/**
|
|
197
|
+
* Integration target; null for `http` webhooks.
|
|
198
|
+
*/
|
|
199
|
+
export interface Integration {
|
|
200
|
+
args: { [key: string]: unknown };
|
|
201
|
+
|
|
202
|
+
capability: Integration.Capability;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Target name at creation time, e.g. `#ops`.
|
|
206
|
+
*/
|
|
207
|
+
label: string;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export namespace Integration {
|
|
211
|
+
export interface Capability {
|
|
212
|
+
id: string;
|
|
213
|
+
|
|
214
|
+
revision: number;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
203
217
|
}
|
|
204
218
|
}
|
|
205
219
|
|
|
@@ -213,6 +227,11 @@ export namespace WebhookRetrieveResponse {
|
|
|
213
227
|
|
|
214
228
|
blockedAt: string | null;
|
|
215
229
|
|
|
230
|
+
/**
|
|
231
|
+
* Why the webhook was blocked, e.g. `integration_disconnected` (reconnect the
|
|
232
|
+
* integration) or `integration_target_invalid` (the channel is gone or not
|
|
233
|
+
* allowed).
|
|
234
|
+
*/
|
|
216
235
|
blockedReason: string | null;
|
|
217
236
|
|
|
218
237
|
createdAt: string;
|
|
@@ -232,13 +251,54 @@ export namespace WebhookRetrieveResponse {
|
|
|
232
251
|
*/
|
|
233
252
|
health: 'healthy' | 'failing' | 'blocked';
|
|
234
253
|
|
|
254
|
+
/**
|
|
255
|
+
* Integration target; null for `http` webhooks.
|
|
256
|
+
*/
|
|
257
|
+
integration: Data.Integration | null;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* `http` posts signed JSON to `url`; `integration` posts a message through a
|
|
261
|
+
* connected integration (e.g. a Slack channel).
|
|
262
|
+
*/
|
|
263
|
+
kind: 'http' | 'integration';
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Always false for `integration` webhooks.
|
|
267
|
+
*/
|
|
235
268
|
signingEnabled: boolean;
|
|
236
269
|
|
|
237
270
|
state: 'ACTIVE' | 'DISABLED' | 'DELETED';
|
|
238
271
|
|
|
239
272
|
updatedAt: string;
|
|
240
273
|
|
|
241
|
-
|
|
274
|
+
/**
|
|
275
|
+
* Delivery URL; null for `integration` webhooks.
|
|
276
|
+
*/
|
|
277
|
+
url: string | null;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
export namespace Data {
|
|
281
|
+
/**
|
|
282
|
+
* Integration target; null for `http` webhooks.
|
|
283
|
+
*/
|
|
284
|
+
export interface Integration {
|
|
285
|
+
args: { [key: string]: unknown };
|
|
286
|
+
|
|
287
|
+
capability: Integration.Capability;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Target name at creation time, e.g. `#ops`.
|
|
291
|
+
*/
|
|
292
|
+
label: string;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export namespace Integration {
|
|
296
|
+
export interface Capability {
|
|
297
|
+
id: string;
|
|
298
|
+
|
|
299
|
+
revision: number;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
242
302
|
}
|
|
243
303
|
}
|
|
244
304
|
|
|
@@ -252,6 +312,11 @@ export namespace WebhookUpdateResponse {
|
|
|
252
312
|
|
|
253
313
|
blockedAt: string | null;
|
|
254
314
|
|
|
315
|
+
/**
|
|
316
|
+
* Why the webhook was blocked, e.g. `integration_disconnected` (reconnect the
|
|
317
|
+
* integration) or `integration_target_invalid` (the channel is gone or not
|
|
318
|
+
* allowed).
|
|
319
|
+
*/
|
|
255
320
|
blockedReason: string | null;
|
|
256
321
|
|
|
257
322
|
createdAt: string;
|
|
@@ -271,13 +336,54 @@ export namespace WebhookUpdateResponse {
|
|
|
271
336
|
*/
|
|
272
337
|
health: 'healthy' | 'failing' | 'blocked';
|
|
273
338
|
|
|
339
|
+
/**
|
|
340
|
+
* Integration target; null for `http` webhooks.
|
|
341
|
+
*/
|
|
342
|
+
integration: Data.Integration | null;
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* `http` posts signed JSON to `url`; `integration` posts a message through a
|
|
346
|
+
* connected integration (e.g. a Slack channel).
|
|
347
|
+
*/
|
|
348
|
+
kind: 'http' | 'integration';
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* Always false for `integration` webhooks.
|
|
352
|
+
*/
|
|
274
353
|
signingEnabled: boolean;
|
|
275
354
|
|
|
276
355
|
state: 'ACTIVE' | 'DISABLED' | 'DELETED';
|
|
277
356
|
|
|
278
357
|
updatedAt: string;
|
|
279
358
|
|
|
280
|
-
|
|
359
|
+
/**
|
|
360
|
+
* Delivery URL; null for `integration` webhooks.
|
|
361
|
+
*/
|
|
362
|
+
url: string | null;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
export namespace Data {
|
|
366
|
+
/**
|
|
367
|
+
* Integration target; null for `http` webhooks.
|
|
368
|
+
*/
|
|
369
|
+
export interface Integration {
|
|
370
|
+
args: { [key: string]: unknown };
|
|
371
|
+
|
|
372
|
+
capability: Integration.Capability;
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Target name at creation time, e.g. `#ops`.
|
|
376
|
+
*/
|
|
377
|
+
label: string;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
export namespace Integration {
|
|
381
|
+
export interface Capability {
|
|
382
|
+
id: string;
|
|
383
|
+
|
|
384
|
+
revision: number;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
281
387
|
}
|
|
282
388
|
}
|
|
283
389
|
|
|
@@ -307,6 +413,11 @@ export namespace WebhookListResponse {
|
|
|
307
413
|
|
|
308
414
|
blockedAt: string | null;
|
|
309
415
|
|
|
416
|
+
/**
|
|
417
|
+
* Why the webhook was blocked, e.g. `integration_disconnected` (reconnect the
|
|
418
|
+
* integration) or `integration_target_invalid` (the channel is gone or not
|
|
419
|
+
* allowed).
|
|
420
|
+
*/
|
|
310
421
|
blockedReason: string | null;
|
|
311
422
|
|
|
312
423
|
createdAt: string;
|
|
@@ -326,53 +437,52 @@ export namespace WebhookListResponse {
|
|
|
326
437
|
*/
|
|
327
438
|
health: 'healthy' | 'failing' | 'blocked';
|
|
328
439
|
|
|
440
|
+
/**
|
|
441
|
+
* Integration target; null for `http` webhooks.
|
|
442
|
+
*/
|
|
443
|
+
integration: Item.Integration | null;
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* `http` posts signed JSON to `url`; `integration` posts a message through a
|
|
447
|
+
* connected integration (e.g. a Slack channel).
|
|
448
|
+
*/
|
|
449
|
+
kind: 'http' | 'integration';
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* Always false for `integration` webhooks.
|
|
453
|
+
*/
|
|
329
454
|
signingEnabled: boolean;
|
|
330
455
|
|
|
331
456
|
state: 'ACTIVE' | 'DISABLED' | 'DELETED';
|
|
332
457
|
|
|
333
458
|
updatedAt: string;
|
|
334
459
|
|
|
335
|
-
|
|
460
|
+
/**
|
|
461
|
+
* Delivery URL; null for `integration` webhooks.
|
|
462
|
+
*/
|
|
463
|
+
url: string | null;
|
|
336
464
|
}
|
|
337
|
-
}
|
|
338
465
|
|
|
339
|
-
export
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
export
|
|
344
|
-
|
|
345
|
-
schemaVersion: 1;
|
|
346
|
-
|
|
347
|
-
sources: Array<Data.Source>;
|
|
348
|
-
}
|
|
466
|
+
export namespace Item {
|
|
467
|
+
/**
|
|
468
|
+
* Integration target; null for `http` webhooks.
|
|
469
|
+
*/
|
|
470
|
+
export interface Integration {
|
|
471
|
+
args: { [key: string]: unknown };
|
|
349
472
|
|
|
350
|
-
|
|
351
|
-
export interface Source {
|
|
352
|
-
events: Array<Source.Event>;
|
|
473
|
+
capability: Integration.Capability;
|
|
353
474
|
|
|
354
|
-
|
|
475
|
+
/**
|
|
476
|
+
* Target name at creation time, e.g. `#ops`.
|
|
477
|
+
*/
|
|
478
|
+
label: string;
|
|
355
479
|
}
|
|
356
480
|
|
|
357
|
-
export namespace
|
|
358
|
-
export interface
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
surfaces: Event.Surfaces;
|
|
481
|
+
export namespace Integration {
|
|
482
|
+
export interface Capability {
|
|
483
|
+
id: string;
|
|
362
484
|
|
|
363
|
-
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
export namespace Event {
|
|
367
|
-
export interface Surfaces {
|
|
368
|
-
feed: boolean;
|
|
369
|
-
|
|
370
|
-
toast: boolean;
|
|
371
|
-
|
|
372
|
-
webhook: boolean;
|
|
373
|
-
|
|
374
|
-
agent?: boolean;
|
|
375
|
-
}
|
|
485
|
+
revision: number;
|
|
376
486
|
}
|
|
377
487
|
}
|
|
378
488
|
}
|
|
@@ -388,6 +498,11 @@ export namespace WebhookRotateSecretResponse {
|
|
|
388
498
|
|
|
389
499
|
blockedAt: string | null;
|
|
390
500
|
|
|
501
|
+
/**
|
|
502
|
+
* Why the webhook was blocked, e.g. `integration_disconnected` (reconnect the
|
|
503
|
+
* integration) or `integration_target_invalid` (the channel is gone or not
|
|
504
|
+
* allowed).
|
|
505
|
+
*/
|
|
391
506
|
blockedReason: string | null;
|
|
392
507
|
|
|
393
508
|
createdAt: string;
|
|
@@ -407,18 +522,59 @@ export namespace WebhookRotateSecretResponse {
|
|
|
407
522
|
*/
|
|
408
523
|
health: 'healthy' | 'failing' | 'blocked';
|
|
409
524
|
|
|
525
|
+
/**
|
|
526
|
+
* Integration target; null for `http` webhooks.
|
|
527
|
+
*/
|
|
528
|
+
integration: Data.Integration | null;
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* `http` posts signed JSON to `url`; `integration` posts a message through a
|
|
532
|
+
* connected integration (e.g. a Slack channel).
|
|
533
|
+
*/
|
|
534
|
+
kind: 'http' | 'integration';
|
|
535
|
+
|
|
410
536
|
/**
|
|
411
537
|
* Signing secret — shown only once. Store it now.
|
|
412
538
|
*/
|
|
413
539
|
secret: string;
|
|
414
540
|
|
|
541
|
+
/**
|
|
542
|
+
* Always false for `integration` webhooks.
|
|
543
|
+
*/
|
|
415
544
|
signingEnabled: boolean;
|
|
416
545
|
|
|
417
546
|
state: 'ACTIVE' | 'DISABLED' | 'DELETED';
|
|
418
547
|
|
|
419
548
|
updatedAt: string;
|
|
420
549
|
|
|
421
|
-
|
|
550
|
+
/**
|
|
551
|
+
* Delivery URL; null for `integration` webhooks.
|
|
552
|
+
*/
|
|
553
|
+
url: string | null;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
export namespace Data {
|
|
557
|
+
/**
|
|
558
|
+
* Integration target; null for `http` webhooks.
|
|
559
|
+
*/
|
|
560
|
+
export interface Integration {
|
|
561
|
+
args: { [key: string]: unknown };
|
|
562
|
+
|
|
563
|
+
capability: Integration.Capability;
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* Target name at creation time, e.g. `#ops`.
|
|
567
|
+
*/
|
|
568
|
+
label: string;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
export namespace Integration {
|
|
572
|
+
export interface Capability {
|
|
573
|
+
id: string;
|
|
574
|
+
|
|
575
|
+
revision: number;
|
|
576
|
+
}
|
|
577
|
+
}
|
|
422
578
|
}
|
|
423
579
|
}
|
|
424
580
|
|
|
@@ -436,12 +592,45 @@ export namespace WebhookTestDeliveryResponse {
|
|
|
436
592
|
}
|
|
437
593
|
}
|
|
438
594
|
|
|
439
|
-
export
|
|
440
|
-
url: string;
|
|
595
|
+
export type WebhookCreateParams = WebhookCreateParams.Variant0 | WebhookCreateParams.Variant1;
|
|
441
596
|
|
|
442
|
-
|
|
597
|
+
export declare namespace WebhookCreateParams {
|
|
598
|
+
export interface Variant0 {
|
|
599
|
+
url: string;
|
|
443
600
|
|
|
444
|
-
|
|
601
|
+
description?: string;
|
|
602
|
+
|
|
603
|
+
eventTypes?: Array<string>;
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* Delivery transport. Omitted ⇒ `http`.
|
|
607
|
+
*/
|
|
608
|
+
kind?: 'http';
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
export interface Variant1 {
|
|
612
|
+
/**
|
|
613
|
+
* Target args exactly as returned by
|
|
614
|
+
* `GET /webhooks/integrations/{capabilityId}/targets`.
|
|
615
|
+
*/
|
|
616
|
+
args: { [key: string]: unknown };
|
|
617
|
+
|
|
618
|
+
capability: Variant1.Capability;
|
|
619
|
+
|
|
620
|
+
kind: 'integration';
|
|
621
|
+
|
|
622
|
+
description?: string;
|
|
623
|
+
|
|
624
|
+
eventTypes?: Array<string>;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
export namespace Variant1 {
|
|
628
|
+
export interface Capability {
|
|
629
|
+
id: string;
|
|
630
|
+
|
|
631
|
+
revision: number;
|
|
632
|
+
}
|
|
633
|
+
}
|
|
445
634
|
}
|
|
446
635
|
|
|
447
636
|
export interface WebhookUpdateParams {
|
|
@@ -458,6 +647,11 @@ export interface WebhookListParams {
|
|
|
458
647
|
*/
|
|
459
648
|
createdBy?: string;
|
|
460
649
|
|
|
650
|
+
/**
|
|
651
|
+
* Only include webhooks of this delivery kind.
|
|
652
|
+
*/
|
|
653
|
+
kind?: 'http' | 'integration';
|
|
654
|
+
|
|
461
655
|
/**
|
|
462
656
|
* When true, only include webhooks created by you (not just owned by your org).
|
|
463
657
|
*/
|
|
@@ -475,6 +669,7 @@ export interface WebhookListParams {
|
|
|
475
669
|
status?: 'active' | 'failing' | 'blocked' | 'disabled';
|
|
476
670
|
}
|
|
477
671
|
|
|
672
|
+
Webhooks.Integrations = Integrations;
|
|
478
673
|
Webhooks.Deliveries = Deliveries;
|
|
479
674
|
|
|
480
675
|
export declare namespace Webhooks {
|
|
@@ -483,7 +678,6 @@ export declare namespace Webhooks {
|
|
|
483
678
|
type WebhookRetrieveResponse as WebhookRetrieveResponse,
|
|
484
679
|
type WebhookUpdateResponse as WebhookUpdateResponse,
|
|
485
680
|
type WebhookListResponse as WebhookListResponse,
|
|
486
|
-
type WebhookEventTypesResponse as WebhookEventTypesResponse,
|
|
487
681
|
type WebhookRotateSecretResponse as WebhookRotateSecretResponse,
|
|
488
682
|
type WebhookTestDeliveryResponse as WebhookTestDeliveryResponse,
|
|
489
683
|
type WebhookCreateParams as WebhookCreateParams,
|
|
@@ -491,6 +685,13 @@ export declare namespace Webhooks {
|
|
|
491
685
|
type WebhookListParams as WebhookListParams,
|
|
492
686
|
};
|
|
493
687
|
|
|
688
|
+
export {
|
|
689
|
+
Integrations as Integrations,
|
|
690
|
+
type IntegrationListResponse as IntegrationListResponse,
|
|
691
|
+
type IntegrationListTargetsResponse as IntegrationListTargetsResponse,
|
|
692
|
+
type IntegrationListTargetsParams as IntegrationListTargetsParams,
|
|
693
|
+
};
|
|
694
|
+
|
|
494
695
|
export {
|
|
495
696
|
Deliveries as Deliveries,
|
|
496
697
|
type DeliveryListResponse as DeliveryListResponse,
|
|
@@ -44,10 +44,14 @@ export namespace ActionCatalogRetrieveResponse {
|
|
|
44
44
|
|
|
45
45
|
name: string;
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
provider: 'mobilerun' | 'oneDrive' | 'googleDrive';
|
|
48
|
+
|
|
49
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
|
|
48
50
|
|
|
49
51
|
updatedAt: string | null;
|
|
50
52
|
|
|
53
|
+
outputSchema?: unknown;
|
|
54
|
+
|
|
51
55
|
paramsSchema?: unknown;
|
|
52
56
|
}
|
|
53
57
|
}
|
|
@@ -70,10 +74,14 @@ export namespace ActionCatalogListResponse {
|
|
|
70
74
|
|
|
71
75
|
name: string;
|
|
72
76
|
|
|
73
|
-
|
|
77
|
+
provider: 'mobilerun' | 'oneDrive' | 'googleDrive';
|
|
78
|
+
|
|
79
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
|
|
74
80
|
|
|
75
81
|
updatedAt: string | null;
|
|
76
82
|
|
|
83
|
+
outputSchema?: unknown;
|
|
84
|
+
|
|
77
85
|
paramsSchema?: unknown;
|
|
78
86
|
}
|
|
79
87
|
}
|
|
@@ -83,7 +91,7 @@ export interface ActionCatalogListParams {
|
|
|
83
91
|
|
|
84
92
|
pageSize?: number;
|
|
85
93
|
|
|
86
|
-
service?: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
94
|
+
service?: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
|
|
87
95
|
}
|
|
88
96
|
|
|
89
97
|
export declare namespace ActionCatalog {
|