@mobilerun/sdk 5.4.0 → 5.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/client.d.mts +10 -13
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -13
- package/client.d.ts.map +1 -1
- package/client.js +1 -3
- package/client.js.map +1 -1
- package/client.mjs +2 -4
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +23 -12
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +23 -12
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +8 -3
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +8 -3
- package/resources/apps.mjs.map +1 -1
- package/resources/assistant/conversations.d.mts +33 -21
- package/resources/assistant/conversations.d.mts.map +1 -1
- package/resources/assistant/conversations.d.ts +33 -21
- package/resources/assistant/conversations.d.ts.map +1 -1
- package/resources/assistant/conversations.js +16 -15
- package/resources/assistant/conversations.js.map +1 -1
- package/resources/assistant/conversations.mjs +16 -15
- package/resources/assistant/conversations.mjs.map +1 -1
- package/resources/connect/connect.d.mts +2 -2
- package/resources/connect/connect.d.mts.map +1 -1
- package/resources/connect/connect.d.ts +2 -2
- package/resources/connect/connect.d.ts.map +1 -1
- package/resources/connect/connect.js.map +1 -1
- package/resources/connect/connect.mjs.map +1 -1
- package/resources/connect/index.d.mts +1 -1
- package/resources/connect/index.d.mts.map +1 -1
- package/resources/connect/index.d.ts +1 -1
- package/resources/connect/index.d.ts.map +1 -1
- package/resources/connect/index.js.map +1 -1
- package/resources/connect/index.mjs.map +1 -1
- package/resources/connect/proxies.d.mts +118 -19
- package/resources/connect/proxies.d.mts.map +1 -1
- package/resources/connect/proxies.d.ts +118 -19
- package/resources/connect/proxies.d.ts.map +1 -1
- package/resources/connect/proxies.js +19 -0
- package/resources/connect/proxies.js.map +1 -1
- package/resources/connect/proxies.mjs +19 -0
- package/resources/connect/proxies.mjs.map +1 -1
- package/resources/devices/apps.d.mts +37 -17
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +37 -17
- package/resources/devices/apps.d.ts.map +1 -1
- package/resources/devices/apps.js +15 -14
- package/resources/devices/apps.js.map +1 -1
- package/resources/devices/apps.mjs +15 -14
- package/resources/devices/apps.mjs.map +1 -1
- package/resources/devices/browser.d.mts +9 -3
- package/resources/devices/browser.d.mts.map +1 -1
- package/resources/devices/browser.d.ts +9 -3
- package/resources/devices/browser.d.ts.map +1 -1
- package/resources/devices/browser.js +9 -3
- package/resources/devices/browser.js.map +1 -1
- package/resources/devices/browser.mjs +9 -3
- package/resources/devices/browser.mjs.map +1 -1
- package/resources/devices/devices.d.mts +81 -27
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +81 -27
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +24 -11
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +24 -11
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/index.d.mts +2 -1
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +2 -1
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +3 -1
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +1 -0
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/keyboard.d.mts +9 -3
- package/resources/devices/keyboard.d.mts.map +1 -1
- package/resources/devices/keyboard.d.ts +9 -3
- package/resources/devices/keyboard.d.ts.map +1 -1
- package/resources/devices/keyboard.js +3 -3
- package/resources/devices/keyboard.mjs +3 -3
- package/resources/devices/recordings.d.mts +13 -0
- package/resources/devices/recordings.d.mts.map +1 -1
- package/resources/devices/recordings.d.ts +13 -0
- package/resources/devices/recordings.d.ts.map +1 -1
- package/resources/devices/traffic-sessions.d.mts +163 -0
- package/resources/devices/traffic-sessions.d.mts.map +1 -0
- package/resources/devices/traffic-sessions.d.ts +163 -0
- package/resources/devices/traffic-sessions.d.ts.map +1 -0
- package/resources/devices/traffic-sessions.js +37 -0
- package/resources/devices/traffic-sessions.js.map +1 -0
- package/resources/devices/traffic-sessions.mjs +33 -0
- package/resources/devices/traffic-sessions.mjs.map +1 -0
- package/resources/files.d.mts +77 -19
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +77 -19
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +2 -10
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +2 -10
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts +5 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -2
- package/resources/index.mjs.map +1 -1
- package/resources/mailboxes/connections.d.mts +64 -0
- package/resources/mailboxes/connections.d.mts.map +1 -0
- package/resources/mailboxes/connections.d.ts +64 -0
- package/resources/mailboxes/connections.d.ts.map +1 -0
- package/resources/mailboxes/connections.js +42 -0
- package/resources/mailboxes/connections.js.map +1 -0
- package/resources/mailboxes/connections.mjs +38 -0
- package/resources/mailboxes/connections.mjs.map +1 -0
- package/resources/mailboxes/index.d.mts +2 -1
- package/resources/mailboxes/index.d.mts.map +1 -1
- package/resources/mailboxes/index.d.ts +2 -1
- package/resources/mailboxes/index.d.ts.map +1 -1
- package/resources/mailboxes/index.js +3 -1
- package/resources/mailboxes/index.js.map +1 -1
- package/resources/mailboxes/index.mjs +1 -0
- package/resources/mailboxes/index.mjs.map +1 -1
- package/resources/mailboxes/mailboxes.d.mts +107 -50
- package/resources/mailboxes/mailboxes.d.mts.map +1 -1
- package/resources/mailboxes/mailboxes.d.ts +107 -50
- package/resources/mailboxes/mailboxes.d.ts.map +1 -1
- package/resources/mailboxes/mailboxes.js +34 -24
- package/resources/mailboxes/mailboxes.js.map +1 -1
- package/resources/mailboxes/mailboxes.mjs +34 -24
- package/resources/mailboxes/mailboxes.mjs.map +1 -1
- package/resources/mailboxes/messages.d.mts +2 -2
- package/resources/mailboxes/messages.d.ts +2 -2
- package/resources/mailboxes/messages.js +2 -2
- package/resources/mailboxes/messages.mjs +2 -2
- package/resources/messages/conversations.d.mts +4 -15
- package/resources/messages/conversations.d.mts.map +1 -1
- package/resources/messages/conversations.d.ts +4 -15
- package/resources/messages/conversations.d.ts.map +1 -1
- package/resources/messages/conversations.js +4 -15
- package/resources/messages/conversations.js.map +1 -1
- package/resources/messages/conversations.mjs +4 -15
- package/resources/messages/conversations.mjs.map +1 -1
- package/resources/messages/index.d.mts +1 -1
- package/resources/messages/index.d.mts.map +1 -1
- package/resources/messages/index.d.ts +1 -1
- package/resources/messages/index.d.ts.map +1 -1
- package/resources/messages/index.js.map +1 -1
- package/resources/messages/index.mjs +1 -1
- package/resources/messages/index.mjs.map +1 -1
- package/resources/messages/messages.d.mts +28 -5
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +28 -5
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +11 -4
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +11 -4
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/notifications.d.mts +27 -1
- package/resources/notifications.d.mts.map +1 -1
- package/resources/notifications.d.ts +27 -1
- package/resources/notifications.d.ts.map +1 -1
- package/resources/notifications.js +17 -0
- package/resources/notifications.js.map +1 -1
- package/resources/notifications.mjs +17 -0
- package/resources/notifications.mjs.map +1 -1
- package/resources/numbers/index.d.mts +2 -2
- package/resources/numbers/index.d.mts.map +1 -1
- package/resources/numbers/index.d.ts +2 -2
- package/resources/numbers/index.d.ts.map +1 -1
- package/resources/numbers/index.js.map +1 -1
- package/resources/numbers/index.mjs +1 -1
- package/resources/numbers/index.mjs.map +1 -1
- package/resources/numbers/messages.d.mts +60 -1
- package/resources/numbers/messages.d.mts.map +1 -1
- package/resources/numbers/messages.d.ts +60 -1
- package/resources/numbers/messages.d.ts.map +1 -1
- package/resources/numbers/messages.js +21 -0
- package/resources/numbers/messages.js.map +1 -1
- package/resources/numbers/messages.mjs +21 -0
- package/resources/numbers/messages.mjs.map +1 -1
- package/resources/numbers/numbers.d.mts +167 -46
- package/resources/numbers/numbers.d.mts.map +1 -1
- package/resources/numbers/numbers.d.ts +167 -46
- package/resources/numbers/numbers.d.ts.map +1 -1
- package/resources/numbers/numbers.js +25 -40
- package/resources/numbers/numbers.js.map +1 -1
- package/resources/numbers/numbers.mjs +26 -41
- package/resources/numbers/numbers.mjs.map +1 -1
- package/resources/store/apps.d.mts +23 -2
- package/resources/store/apps.d.mts.map +1 -1
- package/resources/store/apps.d.ts +23 -2
- package/resources/store/apps.d.ts.map +1 -1
- package/resources/tasks/tasks.d.mts +84 -75
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +84 -75
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js +2 -10
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs +2 -10
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/webhooks/deliveries.d.mts +22 -31
- package/resources/webhooks/deliveries.d.mts.map +1 -1
- package/resources/webhooks/deliveries.d.ts +22 -31
- package/resources/webhooks/deliveries.d.ts.map +1 -1
- package/resources/webhooks/deliveries.js +4 -30
- package/resources/webhooks/deliveries.js.map +1 -1
- package/resources/webhooks/deliveries.mjs +4 -30
- package/resources/webhooks/deliveries.mjs.map +1 -1
- package/resources/webhooks/index.d.mts +1 -0
- package/resources/webhooks/index.d.mts.map +1 -1
- package/resources/webhooks/index.d.ts +1 -0
- package/resources/webhooks/index.d.ts.map +1 -1
- package/resources/webhooks/index.js +3 -1
- package/resources/webhooks/index.js.map +1 -1
- package/resources/webhooks/index.mjs +1 -0
- package/resources/webhooks/index.mjs.map +1 -1
- package/resources/webhooks/integrations.d.mts +77 -0
- package/resources/webhooks/integrations.d.mts.map +1 -0
- package/resources/webhooks/integrations.d.ts +77 -0
- package/resources/webhooks/integrations.d.ts.map +1 -0
- package/resources/webhooks/integrations.js +26 -0
- package/resources/webhooks/integrations.js.map +1 -0
- package/resources/webhooks/integrations.mjs +22 -0
- package/resources/webhooks/integrations.mjs.map +1 -0
- package/resources/webhooks/webhooks.d.mts +280 -71
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +280 -71
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js +27 -60
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +27 -60
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/resources/workflows/action-catalog.d.mts +7 -3
- package/resources/workflows/action-catalog.d.mts.map +1 -1
- package/resources/workflows/action-catalog.d.ts +7 -3
- package/resources/workflows/action-catalog.d.ts.map +1 -1
- package/resources/workflows/actions/actions.d.mts +9 -5
- package/resources/workflows/actions/actions.d.mts.map +1 -1
- package/resources/workflows/actions/actions.d.ts +9 -5
- package/resources/workflows/actions/actions.d.ts.map +1 -1
- package/resources/workflows/actions/actions.js +4 -0
- package/resources/workflows/actions/actions.js.map +1 -1
- package/resources/workflows/actions/actions.mjs +4 -0
- package/resources/workflows/actions/actions.mjs.map +1 -1
- package/resources/workflows/events.d.mts +66 -4
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +66 -4
- package/resources/workflows/events.d.ts.map +1 -1
- package/resources/workflows/executions/executions.d.mts +334 -0
- package/resources/workflows/executions/executions.d.mts.map +1 -0
- package/resources/workflows/executions/executions.d.ts +334 -0
- package/resources/workflows/executions/executions.d.ts.map +1 -0
- package/resources/workflows/executions/executions.js +49 -0
- package/resources/workflows/executions/executions.js.map +1 -0
- package/resources/workflows/executions/executions.mjs +44 -0
- package/resources/workflows/executions/executions.mjs.map +1 -0
- package/resources/workflows/executions/index.d.mts +3 -0
- package/resources/workflows/executions/index.d.mts.map +1 -0
- package/resources/workflows/executions/index.d.ts +3 -0
- package/resources/workflows/executions/index.d.ts.map +1 -0
- package/resources/workflows/executions/index.js +9 -0
- package/resources/workflows/executions/index.js.map +1 -0
- package/resources/workflows/executions/index.mjs +4 -0
- package/resources/workflows/executions/index.mjs.map +1 -0
- package/resources/workflows/executions/screenshots.d.mts +18 -0
- package/resources/workflows/executions/screenshots.d.mts.map +1 -0
- package/resources/workflows/executions/screenshots.d.ts +18 -0
- package/resources/workflows/executions/screenshots.d.ts.map +1 -0
- package/resources/workflows/executions/screenshots.js +23 -0
- package/resources/workflows/executions/screenshots.js.map +1 -0
- package/resources/workflows/executions/screenshots.mjs +19 -0
- package/resources/workflows/executions/screenshots.mjs.map +1 -0
- package/resources/workflows/executions.d.mts +1 -190
- package/resources/workflows/executions.d.mts.map +1 -1
- package/resources/workflows/executions.d.ts +1 -190
- package/resources/workflows/executions.d.ts.map +1 -1
- package/resources/workflows/executions.js +2 -36
- package/resources/workflows/executions.js.map +1 -1
- package/resources/workflows/executions.mjs +1 -34
- package/resources/workflows/executions.mjs.map +1 -1
- package/resources/workflows/flows/actions.d.mts +58 -0
- package/resources/workflows/flows/actions.d.mts.map +1 -1
- package/resources/workflows/flows/actions.d.ts +58 -0
- package/resources/workflows/flows/actions.d.ts.map +1 -1
- package/resources/workflows/flows/actions.js +4 -0
- package/resources/workflows/flows/actions.js.map +1 -1
- package/resources/workflows/flows/actions.mjs +4 -0
- package/resources/workflows/flows/actions.mjs.map +1 -1
- package/resources/workflows/flows/flows.d.mts +666 -15
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +666 -15
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +86 -1
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +86 -1
- package/resources/workflows/flows/flows.mjs.map +1 -1
- package/resources/workflows/flows/index.d.mts +1 -1
- package/resources/workflows/flows/index.d.mts.map +1 -1
- package/resources/workflows/flows/index.d.ts +1 -1
- package/resources/workflows/flows/index.d.ts.map +1 -1
- package/resources/workflows/flows/index.js.map +1 -1
- package/resources/workflows/flows/index.mjs.map +1 -1
- package/resources/workflows/index.d.mts +2 -2
- package/resources/workflows/index.d.mts.map +1 -1
- package/resources/workflows/index.d.ts +2 -2
- package/resources/workflows/index.d.ts.map +1 -1
- package/resources/workflows/index.js +4 -4
- package/resources/workflows/index.js.map +1 -1
- package/resources/workflows/index.mjs +1 -1
- package/resources/workflows/index.mjs.map +1 -1
- package/resources/workflows/triggers.d.mts +118 -6
- package/resources/workflows/triggers.d.mts.map +1 -1
- package/resources/workflows/triggers.d.ts +118 -6
- package/resources/workflows/triggers.d.ts.map +1 -1
- package/resources/workflows/triggers.js +14 -0
- package/resources/workflows/triggers.js.map +1 -1
- package/resources/workflows/triggers.mjs +14 -0
- package/resources/workflows/triggers.mjs.map +1 -1
- package/resources/workflows/workflows.d.mts +4 -4
- package/resources/workflows/workflows.d.mts.map +1 -1
- package/resources/workflows/workflows.d.ts +4 -4
- package/resources/workflows/workflows.d.ts.map +1 -1
- package/resources/workflows/workflows.js +2 -2
- package/resources/workflows/workflows.js.map +1 -1
- package/resources/workflows/workflows.mjs +2 -2
- package/resources/workflows/workflows.mjs.map +1 -1
- package/src/client.ts +22 -42
- package/src/resources/apps.ts +24 -12
- package/src/resources/assistant/conversations.ts +50 -31
- package/src/resources/connect/connect.ts +6 -0
- package/src/resources/connect/index.ts +3 -0
- package/src/resources/connect/proxies.ts +146 -18
- package/src/resources/devices/apps.ts +41 -17
- package/src/resources/devices/browser.ts +9 -3
- package/src/resources/devices/devices.ts +138 -34
- package/src/resources/devices/index.ts +13 -0
- package/src/resources/devices/keyboard.ts +10 -3
- package/src/resources/devices/recordings.ts +14 -0
- package/src/resources/devices/traffic-sessions.ts +282 -0
- package/src/resources/files.ts +122 -29
- package/src/resources/index.ts +13 -20
- package/src/resources/mailboxes/connections.ts +91 -0
- package/src/resources/mailboxes/index.ts +7 -0
- package/src/resources/mailboxes/mailboxes.ts +190 -49
- package/src/resources/mailboxes/messages.ts +2 -2
- package/src/resources/messages/conversations.ts +4 -15
- package/src/resources/messages/index.ts +6 -1
- package/src/resources/messages/messages.ts +57 -5
- package/src/resources/notifications.ts +37 -0
- package/src/resources/numbers/index.ts +9 -1
- package/src/resources/numbers/messages.ts +92 -1
- package/src/resources/numbers/numbers.ts +197 -55
- package/src/resources/store/apps.ts +291 -2
- package/src/resources/tasks/tasks.ts +126 -93
- package/src/resources/webhooks/deliveries.ts +26 -31
- package/src/resources/webhooks/index.ts +6 -0
- package/src/resources/webhooks/integrations.ts +107 -0
- package/src/resources/webhooks/webhooks.ts +328 -71
- package/src/resources/workflows/action-catalog.ts +11 -3
- package/src/resources/workflows/actions/actions.ts +9 -5
- package/src/resources/workflows/events.ts +86 -4
- package/src/resources/workflows/executions/executions.ts +514 -0
- package/src/resources/workflows/executions/index.ts +12 -0
- package/src/resources/workflows/executions/screenshots.ts +34 -0
- package/src/resources/workflows/executions.ts +1 -296
- package/src/resources/workflows/flows/actions.ts +72 -0
- package/src/resources/workflows/flows/flows.ts +1058 -129
- package/src/resources/workflows/flows/index.ts +12 -0
- package/src/resources/workflows/index.ts +13 -1
- package/src/resources/workflows/triggers.ts +140 -6
- package/src/resources/workflows/workflows.ts +34 -10
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/esims/esims.d.mts +0 -566
- package/resources/esims/esims.d.mts.map +0 -1
- package/resources/esims/esims.d.ts +0 -566
- package/resources/esims/esims.d.ts.map +0 -1
- package/resources/esims/esims.js +0 -205
- package/resources/esims/esims.js.map +0 -1
- package/resources/esims/esims.mjs +0 -200
- package/resources/esims/esims.mjs.map +0 -1
- package/resources/esims/index.d.mts +0 -3
- package/resources/esims/index.d.mts.map +0 -1
- package/resources/esims/index.d.ts +0 -3
- package/resources/esims/index.d.ts.map +0 -1
- package/resources/esims/index.js +0 -9
- package/resources/esims/index.js.map +0 -1
- package/resources/esims/index.mjs +0 -4
- package/resources/esims/index.mjs.map +0 -1
- package/resources/esims/messages.d.mts +0 -106
- package/resources/esims/messages.d.mts.map +0 -1
- package/resources/esims/messages.d.ts +0 -106
- package/resources/esims/messages.d.ts.map +0 -1
- package/resources/esims/messages.js +0 -37
- package/resources/esims/messages.js.map +0 -1
- package/resources/esims/messages.mjs +0 -33
- package/resources/esims/messages.mjs.map +0 -1
- package/resources/esims.d.mts +0 -2
- package/resources/esims.d.mts.map +0 -1
- package/resources/esims.d.ts +0 -2
- package/resources/esims.d.ts.map +0 -1
- package/resources/esims.js +0 -6
- package/resources/esims.js.map +0 -1
- package/resources/esims.mjs +0 -3
- package/resources/esims.mjs.map +0 -1
- package/src/resources/esims/esims.ts +0 -1019
- package/src/resources/esims/index.ts +0 -28
- package/src/resources/esims/messages.ts +0 -187
- package/src/resources/esims.ts +0 -3
|
@@ -14,19 +14,32 @@ 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.
|
|
30
43
|
*
|
|
31
44
|
* @example
|
|
32
45
|
* ```ts
|
|
@@ -40,16 +53,9 @@ export class Webhooks extends APIResource {
|
|
|
40
53
|
}
|
|
41
54
|
|
|
42
55
|
/**
|
|
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
|
-
* ```
|
|
56
|
+
* Returns a single webhook subscription by id, including its URL (or integration
|
|
57
|
+
* target), subscribed event types, state, and system-observed delivery health. The
|
|
58
|
+
* signing secret is never included.
|
|
53
59
|
*/
|
|
54
60
|
retrieve(id: string, options?: RequestOptions): APIPromise<WebhookRetrieveResponse> {
|
|
55
61
|
return this._client.get(path`/webhooks/${id}`, options);
|
|
@@ -59,14 +65,8 @@ export class Webhooks extends APIResource {
|
|
|
59
65
|
* Updates a webhook subscription. Any combination of the subscribed event types,
|
|
60
66
|
* state (ACTIVE or DISABLED), and description may be changed, and at least one
|
|
61
67
|
* 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
|
-
* ```
|
|
68
|
+
* was auto-blocked after sustained delivery failures. The URL or integration
|
|
69
|
+
* target cannot be changed; delete and recreate the webhook instead.
|
|
70
70
|
*/
|
|
71
71
|
update(
|
|
72
72
|
id: string,
|
|
@@ -78,14 +78,10 @@ export class Webhooks extends APIResource {
|
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
80
|
* 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
|
-
* ```
|
|
81
|
+
* status (active, failing, blocked, or disabled), by `search` (a case-insensitive
|
|
82
|
+
* substring match against the URL or description), and/or by delivery `kind`. The
|
|
83
|
+
* response also includes per-status counts across all of your subscriptions (of
|
|
84
|
+
* the requested `kind`, if given; the other filters do not apply to the counts).
|
|
89
85
|
*/
|
|
90
86
|
list(
|
|
91
87
|
query: WebhookListParams | null | undefined = {},
|
|
@@ -97,13 +93,6 @@ export class Webhooks extends APIResource {
|
|
|
97
93
|
/**
|
|
98
94
|
* Deletes a webhook subscription so it stops receiving deliveries. Returns 204 No
|
|
99
95
|
* Content on success.
|
|
100
|
-
*
|
|
101
|
-
* @example
|
|
102
|
-
* ```ts
|
|
103
|
-
* await client.webhooks.delete(
|
|
104
|
-
* '550e8400-e29b-41d4-a716-446655440000',
|
|
105
|
-
* );
|
|
106
|
-
* ```
|
|
107
96
|
*/
|
|
108
97
|
delete(id: string, options?: RequestOptions): APIPromise<void> {
|
|
109
98
|
return this._client.delete(path`/webhooks/${id}`, {
|
|
@@ -116,11 +105,6 @@ export class Webhooks extends APIResource {
|
|
|
116
105
|
* Returns the catalog of event types that webhook subscriptions can subscribe to,
|
|
117
106
|
* grouped by source. Use the returned type identifiers as the `eventTypes` values
|
|
118
107
|
* when creating or updating a webhook.
|
|
119
|
-
*
|
|
120
|
-
* @example
|
|
121
|
-
* ```ts
|
|
122
|
-
* const response = await client.webhooks.eventTypes();
|
|
123
|
-
* ```
|
|
124
108
|
*/
|
|
125
109
|
eventTypes(options?: RequestOptions): APIPromise<WebhookEventTypesResponse> {
|
|
126
110
|
return this._client.get('/event-types', options);
|
|
@@ -129,30 +113,17 @@ export class Webhooks extends APIResource {
|
|
|
129
113
|
/**
|
|
130
114
|
* Generates a new signing secret for the webhook subscription and returns it once
|
|
131
115
|
* 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
|
-
* ```
|
|
116
|
+
* verification on your endpoint must be updated to use the new value. Only `http`
|
|
117
|
+
* webhooks have a signing secret; for `integration` webhooks this returns 400.
|
|
140
118
|
*/
|
|
141
119
|
rotateSecret(id: string, options?: RequestOptions): APIPromise<WebhookRotateSecretResponse> {
|
|
142
120
|
return this._client.post(path`/webhooks/${id}/rotate-secret`, options);
|
|
143
121
|
}
|
|
144
122
|
|
|
145
123
|
/**
|
|
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
|
-
* ```
|
|
124
|
+
* Sends a single test payload to the webhook subscription URL (or a test message
|
|
125
|
+
* to its integration target) to verify connectivity. The response reports whether
|
|
126
|
+
* the attempt succeeded along with the returned HTTP status code or error, if any.
|
|
156
127
|
*/
|
|
157
128
|
testDelivery(id: string, options?: RequestOptions): APIPromise<WebhookTestDeliveryResponse> {
|
|
158
129
|
return this._client.post(path`/webhooks/${id}/test`, options);
|
|
@@ -169,6 +140,11 @@ export namespace WebhookCreateResponse {
|
|
|
169
140
|
|
|
170
141
|
blockedAt: string | null;
|
|
171
142
|
|
|
143
|
+
/**
|
|
144
|
+
* Why the webhook was blocked, e.g. `integration_disconnected` (reconnect the
|
|
145
|
+
* integration) or `integration_target_invalid` (the channel is gone or not
|
|
146
|
+
* allowed).
|
|
147
|
+
*/
|
|
172
148
|
blockedReason: string | null;
|
|
173
149
|
|
|
174
150
|
createdAt: string;
|
|
@@ -189,17 +165,59 @@ export namespace WebhookCreateResponse {
|
|
|
189
165
|
health: 'healthy' | 'failing' | 'blocked';
|
|
190
166
|
|
|
191
167
|
/**
|
|
192
|
-
*
|
|
168
|
+
* Integration target; null for `http` webhooks.
|
|
193
169
|
*/
|
|
194
|
-
|
|
170
|
+
integration: Data.Integration | null;
|
|
195
171
|
|
|
172
|
+
/**
|
|
173
|
+
* `http` posts signed JSON to `url`; `integration` posts a message through a
|
|
174
|
+
* connected integration (e.g. a Slack channel).
|
|
175
|
+
*/
|
|
176
|
+
kind: 'http' | 'integration';
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Always false for `integration` webhooks.
|
|
180
|
+
*/
|
|
196
181
|
signingEnabled: boolean;
|
|
197
182
|
|
|
198
183
|
state: 'ACTIVE' | 'DISABLED' | 'DELETED';
|
|
199
184
|
|
|
200
185
|
updatedAt: string;
|
|
201
186
|
|
|
202
|
-
|
|
187
|
+
/**
|
|
188
|
+
* Delivery URL; null for `integration` webhooks.
|
|
189
|
+
*/
|
|
190
|
+
url: string | null;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Signing secret for `http` webhooks — shown only once. Store it now. Absent for
|
|
194
|
+
* `integration` webhooks.
|
|
195
|
+
*/
|
|
196
|
+
secret?: string;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export namespace Data {
|
|
200
|
+
/**
|
|
201
|
+
* Integration target; null for `http` webhooks.
|
|
202
|
+
*/
|
|
203
|
+
export interface Integration {
|
|
204
|
+
args: { [key: string]: unknown };
|
|
205
|
+
|
|
206
|
+
capability: Integration.Capability;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Target name at creation time, e.g. `#ops`.
|
|
210
|
+
*/
|
|
211
|
+
label: string;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export namespace Integration {
|
|
215
|
+
export interface Capability {
|
|
216
|
+
id: string;
|
|
217
|
+
|
|
218
|
+
revision: number;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
203
221
|
}
|
|
204
222
|
}
|
|
205
223
|
|
|
@@ -213,6 +231,11 @@ export namespace WebhookRetrieveResponse {
|
|
|
213
231
|
|
|
214
232
|
blockedAt: string | null;
|
|
215
233
|
|
|
234
|
+
/**
|
|
235
|
+
* Why the webhook was blocked, e.g. `integration_disconnected` (reconnect the
|
|
236
|
+
* integration) or `integration_target_invalid` (the channel is gone or not
|
|
237
|
+
* allowed).
|
|
238
|
+
*/
|
|
216
239
|
blockedReason: string | null;
|
|
217
240
|
|
|
218
241
|
createdAt: string;
|
|
@@ -232,13 +255,54 @@ export namespace WebhookRetrieveResponse {
|
|
|
232
255
|
*/
|
|
233
256
|
health: 'healthy' | 'failing' | 'blocked';
|
|
234
257
|
|
|
258
|
+
/**
|
|
259
|
+
* Integration target; null for `http` webhooks.
|
|
260
|
+
*/
|
|
261
|
+
integration: Data.Integration | null;
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* `http` posts signed JSON to `url`; `integration` posts a message through a
|
|
265
|
+
* connected integration (e.g. a Slack channel).
|
|
266
|
+
*/
|
|
267
|
+
kind: 'http' | 'integration';
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Always false for `integration` webhooks.
|
|
271
|
+
*/
|
|
235
272
|
signingEnabled: boolean;
|
|
236
273
|
|
|
237
274
|
state: 'ACTIVE' | 'DISABLED' | 'DELETED';
|
|
238
275
|
|
|
239
276
|
updatedAt: string;
|
|
240
277
|
|
|
241
|
-
|
|
278
|
+
/**
|
|
279
|
+
* Delivery URL; null for `integration` webhooks.
|
|
280
|
+
*/
|
|
281
|
+
url: string | null;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
export namespace Data {
|
|
285
|
+
/**
|
|
286
|
+
* Integration target; null for `http` webhooks.
|
|
287
|
+
*/
|
|
288
|
+
export interface Integration {
|
|
289
|
+
args: { [key: string]: unknown };
|
|
290
|
+
|
|
291
|
+
capability: Integration.Capability;
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* Target name at creation time, e.g. `#ops`.
|
|
295
|
+
*/
|
|
296
|
+
label: string;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export namespace Integration {
|
|
300
|
+
export interface Capability {
|
|
301
|
+
id: string;
|
|
302
|
+
|
|
303
|
+
revision: number;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
242
306
|
}
|
|
243
307
|
}
|
|
244
308
|
|
|
@@ -252,6 +316,11 @@ export namespace WebhookUpdateResponse {
|
|
|
252
316
|
|
|
253
317
|
blockedAt: string | null;
|
|
254
318
|
|
|
319
|
+
/**
|
|
320
|
+
* Why the webhook was blocked, e.g. `integration_disconnected` (reconnect the
|
|
321
|
+
* integration) or `integration_target_invalid` (the channel is gone or not
|
|
322
|
+
* allowed).
|
|
323
|
+
*/
|
|
255
324
|
blockedReason: string | null;
|
|
256
325
|
|
|
257
326
|
createdAt: string;
|
|
@@ -271,13 +340,54 @@ export namespace WebhookUpdateResponse {
|
|
|
271
340
|
*/
|
|
272
341
|
health: 'healthy' | 'failing' | 'blocked';
|
|
273
342
|
|
|
343
|
+
/**
|
|
344
|
+
* Integration target; null for `http` webhooks.
|
|
345
|
+
*/
|
|
346
|
+
integration: Data.Integration | null;
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* `http` posts signed JSON to `url`; `integration` posts a message through a
|
|
350
|
+
* connected integration (e.g. a Slack channel).
|
|
351
|
+
*/
|
|
352
|
+
kind: 'http' | 'integration';
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Always false for `integration` webhooks.
|
|
356
|
+
*/
|
|
274
357
|
signingEnabled: boolean;
|
|
275
358
|
|
|
276
359
|
state: 'ACTIVE' | 'DISABLED' | 'DELETED';
|
|
277
360
|
|
|
278
361
|
updatedAt: string;
|
|
279
362
|
|
|
280
|
-
|
|
363
|
+
/**
|
|
364
|
+
* Delivery URL; null for `integration` webhooks.
|
|
365
|
+
*/
|
|
366
|
+
url: string | null;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
export namespace Data {
|
|
370
|
+
/**
|
|
371
|
+
* Integration target; null for `http` webhooks.
|
|
372
|
+
*/
|
|
373
|
+
export interface Integration {
|
|
374
|
+
args: { [key: string]: unknown };
|
|
375
|
+
|
|
376
|
+
capability: Integration.Capability;
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Target name at creation time, e.g. `#ops`.
|
|
380
|
+
*/
|
|
381
|
+
label: string;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
export namespace Integration {
|
|
385
|
+
export interface Capability {
|
|
386
|
+
id: string;
|
|
387
|
+
|
|
388
|
+
revision: number;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
281
391
|
}
|
|
282
392
|
}
|
|
283
393
|
|
|
@@ -307,6 +417,11 @@ export namespace WebhookListResponse {
|
|
|
307
417
|
|
|
308
418
|
blockedAt: string | null;
|
|
309
419
|
|
|
420
|
+
/**
|
|
421
|
+
* Why the webhook was blocked, e.g. `integration_disconnected` (reconnect the
|
|
422
|
+
* integration) or `integration_target_invalid` (the channel is gone or not
|
|
423
|
+
* allowed).
|
|
424
|
+
*/
|
|
310
425
|
blockedReason: string | null;
|
|
311
426
|
|
|
312
427
|
createdAt: string;
|
|
@@ -326,13 +441,54 @@ export namespace WebhookListResponse {
|
|
|
326
441
|
*/
|
|
327
442
|
health: 'healthy' | 'failing' | 'blocked';
|
|
328
443
|
|
|
444
|
+
/**
|
|
445
|
+
* Integration target; null for `http` webhooks.
|
|
446
|
+
*/
|
|
447
|
+
integration: Item.Integration | null;
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* `http` posts signed JSON to `url`; `integration` posts a message through a
|
|
451
|
+
* connected integration (e.g. a Slack channel).
|
|
452
|
+
*/
|
|
453
|
+
kind: 'http' | 'integration';
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* Always false for `integration` webhooks.
|
|
457
|
+
*/
|
|
329
458
|
signingEnabled: boolean;
|
|
330
459
|
|
|
331
460
|
state: 'ACTIVE' | 'DISABLED' | 'DELETED';
|
|
332
461
|
|
|
333
462
|
updatedAt: string;
|
|
334
463
|
|
|
335
|
-
|
|
464
|
+
/**
|
|
465
|
+
* Delivery URL; null for `integration` webhooks.
|
|
466
|
+
*/
|
|
467
|
+
url: string | null;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
export namespace Item {
|
|
471
|
+
/**
|
|
472
|
+
* Integration target; null for `http` webhooks.
|
|
473
|
+
*/
|
|
474
|
+
export interface Integration {
|
|
475
|
+
args: { [key: string]: unknown };
|
|
476
|
+
|
|
477
|
+
capability: Integration.Capability;
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* Target name at creation time, e.g. `#ops`.
|
|
481
|
+
*/
|
|
482
|
+
label: string;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
export namespace Integration {
|
|
486
|
+
export interface Capability {
|
|
487
|
+
id: string;
|
|
488
|
+
|
|
489
|
+
revision: number;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
336
492
|
}
|
|
337
493
|
}
|
|
338
494
|
|
|
@@ -360,6 +516,11 @@ export namespace WebhookEventTypesResponse {
|
|
|
360
516
|
|
|
361
517
|
surfaces: Event.Surfaces;
|
|
362
518
|
|
|
519
|
+
/**
|
|
520
|
+
* Short human title, as used in integration messages.
|
|
521
|
+
*/
|
|
522
|
+
title: string;
|
|
523
|
+
|
|
363
524
|
type: string;
|
|
364
525
|
}
|
|
365
526
|
|
|
@@ -370,6 +531,10 @@ export namespace WebhookEventTypesResponse {
|
|
|
370
531
|
toast: boolean;
|
|
371
532
|
|
|
372
533
|
webhook: boolean;
|
|
534
|
+
|
|
535
|
+
agent?: boolean;
|
|
536
|
+
|
|
537
|
+
live?: boolean;
|
|
373
538
|
}
|
|
374
539
|
}
|
|
375
540
|
}
|
|
@@ -386,6 +551,11 @@ export namespace WebhookRotateSecretResponse {
|
|
|
386
551
|
|
|
387
552
|
blockedAt: string | null;
|
|
388
553
|
|
|
554
|
+
/**
|
|
555
|
+
* Why the webhook was blocked, e.g. `integration_disconnected` (reconnect the
|
|
556
|
+
* integration) or `integration_target_invalid` (the channel is gone or not
|
|
557
|
+
* allowed).
|
|
558
|
+
*/
|
|
389
559
|
blockedReason: string | null;
|
|
390
560
|
|
|
391
561
|
createdAt: string;
|
|
@@ -405,18 +575,59 @@ export namespace WebhookRotateSecretResponse {
|
|
|
405
575
|
*/
|
|
406
576
|
health: 'healthy' | 'failing' | 'blocked';
|
|
407
577
|
|
|
578
|
+
/**
|
|
579
|
+
* Integration target; null for `http` webhooks.
|
|
580
|
+
*/
|
|
581
|
+
integration: Data.Integration | null;
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* `http` posts signed JSON to `url`; `integration` posts a message through a
|
|
585
|
+
* connected integration (e.g. a Slack channel).
|
|
586
|
+
*/
|
|
587
|
+
kind: 'http' | 'integration';
|
|
588
|
+
|
|
408
589
|
/**
|
|
409
590
|
* Signing secret — shown only once. Store it now.
|
|
410
591
|
*/
|
|
411
592
|
secret: string;
|
|
412
593
|
|
|
594
|
+
/**
|
|
595
|
+
* Always false for `integration` webhooks.
|
|
596
|
+
*/
|
|
413
597
|
signingEnabled: boolean;
|
|
414
598
|
|
|
415
599
|
state: 'ACTIVE' | 'DISABLED' | 'DELETED';
|
|
416
600
|
|
|
417
601
|
updatedAt: string;
|
|
418
602
|
|
|
419
|
-
|
|
603
|
+
/**
|
|
604
|
+
* Delivery URL; null for `integration` webhooks.
|
|
605
|
+
*/
|
|
606
|
+
url: string | null;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
export namespace Data {
|
|
610
|
+
/**
|
|
611
|
+
* Integration target; null for `http` webhooks.
|
|
612
|
+
*/
|
|
613
|
+
export interface Integration {
|
|
614
|
+
args: { [key: string]: unknown };
|
|
615
|
+
|
|
616
|
+
capability: Integration.Capability;
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
* Target name at creation time, e.g. `#ops`.
|
|
620
|
+
*/
|
|
621
|
+
label: string;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
export namespace Integration {
|
|
625
|
+
export interface Capability {
|
|
626
|
+
id: string;
|
|
627
|
+
|
|
628
|
+
revision: number;
|
|
629
|
+
}
|
|
630
|
+
}
|
|
420
631
|
}
|
|
421
632
|
}
|
|
422
633
|
|
|
@@ -434,12 +645,45 @@ export namespace WebhookTestDeliveryResponse {
|
|
|
434
645
|
}
|
|
435
646
|
}
|
|
436
647
|
|
|
437
|
-
export
|
|
438
|
-
url: string;
|
|
648
|
+
export type WebhookCreateParams = WebhookCreateParams.Variant0 | WebhookCreateParams.Variant1;
|
|
439
649
|
|
|
440
|
-
|
|
650
|
+
export declare namespace WebhookCreateParams {
|
|
651
|
+
export interface Variant0 {
|
|
652
|
+
url: string;
|
|
441
653
|
|
|
442
|
-
|
|
654
|
+
description?: string;
|
|
655
|
+
|
|
656
|
+
eventTypes?: Array<string>;
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* Delivery transport. Omitted ⇒ `http`.
|
|
660
|
+
*/
|
|
661
|
+
kind?: 'http';
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
export interface Variant1 {
|
|
665
|
+
/**
|
|
666
|
+
* Target args exactly as returned by
|
|
667
|
+
* `GET /webhooks/integrations/{capabilityId}/targets`.
|
|
668
|
+
*/
|
|
669
|
+
args: { [key: string]: unknown };
|
|
670
|
+
|
|
671
|
+
capability: Variant1.Capability;
|
|
672
|
+
|
|
673
|
+
kind: 'integration';
|
|
674
|
+
|
|
675
|
+
description?: string;
|
|
676
|
+
|
|
677
|
+
eventTypes?: Array<string>;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
export namespace Variant1 {
|
|
681
|
+
export interface Capability {
|
|
682
|
+
id: string;
|
|
683
|
+
|
|
684
|
+
revision: number;
|
|
685
|
+
}
|
|
686
|
+
}
|
|
443
687
|
}
|
|
444
688
|
|
|
445
689
|
export interface WebhookUpdateParams {
|
|
@@ -456,6 +700,11 @@ export interface WebhookListParams {
|
|
|
456
700
|
*/
|
|
457
701
|
createdBy?: string;
|
|
458
702
|
|
|
703
|
+
/**
|
|
704
|
+
* Only include webhooks of this delivery kind.
|
|
705
|
+
*/
|
|
706
|
+
kind?: 'http' | 'integration';
|
|
707
|
+
|
|
459
708
|
/**
|
|
460
709
|
* When true, only include webhooks created by you (not just owned by your org).
|
|
461
710
|
*/
|
|
@@ -473,6 +722,7 @@ export interface WebhookListParams {
|
|
|
473
722
|
status?: 'active' | 'failing' | 'blocked' | 'disabled';
|
|
474
723
|
}
|
|
475
724
|
|
|
725
|
+
Webhooks.Integrations = Integrations;
|
|
476
726
|
Webhooks.Deliveries = Deliveries;
|
|
477
727
|
|
|
478
728
|
export declare namespace Webhooks {
|
|
@@ -489,6 +739,13 @@ export declare namespace Webhooks {
|
|
|
489
739
|
type WebhookListParams as WebhookListParams,
|
|
490
740
|
};
|
|
491
741
|
|
|
742
|
+
export {
|
|
743
|
+
Integrations as Integrations,
|
|
744
|
+
type IntegrationListResponse as IntegrationListResponse,
|
|
745
|
+
type IntegrationListTargetsResponse as IntegrationListTargetsResponse,
|
|
746
|
+
type IntegrationListTargetsParams as IntegrationListTargetsParams,
|
|
747
|
+
};
|
|
748
|
+
|
|
492
749
|
export {
|
|
493
750
|
Deliveries as Deliveries,
|
|
494
751
|
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 {
|
|
@@ -15,6 +15,10 @@ export class Actions extends APIResource {
|
|
|
15
15
|
* Create a reusable action from a catalog entry (`catalogEntryId`), with an
|
|
16
16
|
* optional `params` object supplying the values for that entry's service method.
|
|
17
17
|
* Returns 400 if the params are invalid for the chosen catalog entry.
|
|
18
|
+
*
|
|
19
|
+
* Supports an optional `Idempotency-Key` header (1-255 printable ASCII
|
|
20
|
+
* characters). Replays with the same key and an identical body return the original
|
|
21
|
+
* 201; a changed body under the same key returns 422 `idempotency_key_reused`.
|
|
18
22
|
*/
|
|
19
23
|
create(body: ActionCreateParams, options?: RequestOptions): APIPromise<ActionCreateResponse> {
|
|
20
24
|
return this._client.post('/actions', { body, ...options });
|
|
@@ -81,7 +85,7 @@ export namespace ActionCreateResponse {
|
|
|
81
85
|
|
|
82
86
|
ownerId: string;
|
|
83
87
|
|
|
84
|
-
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
88
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
|
|
85
89
|
|
|
86
90
|
updatedAt: string | null;
|
|
87
91
|
|
|
@@ -118,7 +122,7 @@ export namespace ActionRetrieveResponse {
|
|
|
118
122
|
|
|
119
123
|
ownerId: string;
|
|
120
124
|
|
|
121
|
-
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
125
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
|
|
122
126
|
|
|
123
127
|
updatedAt: string | null;
|
|
124
128
|
|
|
@@ -155,7 +159,7 @@ export namespace ActionUpdateResponse {
|
|
|
155
159
|
|
|
156
160
|
ownerId: string;
|
|
157
161
|
|
|
158
|
-
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
162
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
|
|
159
163
|
|
|
160
164
|
updatedAt: string | null;
|
|
161
165
|
|
|
@@ -194,7 +198,7 @@ export namespace ActionListResponse {
|
|
|
194
198
|
|
|
195
199
|
ownerId: string;
|
|
196
200
|
|
|
197
|
-
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
201
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
|
|
198
202
|
|
|
199
203
|
updatedAt: string | null;
|
|
200
204
|
|
|
@@ -242,7 +246,7 @@ export interface ActionListParams {
|
|
|
242
246
|
|
|
243
247
|
search?: string;
|
|
244
248
|
|
|
245
|
-
service?: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
249
|
+
service?: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
|
|
246
250
|
}
|
|
247
251
|
|
|
248
252
|
Actions.Services = Services;
|