@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
|
@@ -6,18 +6,31 @@ const tslib_1 = require("../../internal/tslib.js");
|
|
|
6
6
|
const resource_1 = require("../../core/resource.js");
|
|
7
7
|
const DeliveriesAPI = tslib_1.__importStar(require("./deliveries.js"));
|
|
8
8
|
const deliveries_1 = require("./deliveries.js");
|
|
9
|
+
const IntegrationsAPI = tslib_1.__importStar(require("./integrations.js"));
|
|
10
|
+
const integrations_1 = require("./integrations.js");
|
|
9
11
|
const headers_1 = require("../../internal/headers.js");
|
|
10
12
|
const path_1 = require("../../internal/utils/path.js");
|
|
11
13
|
class Webhooks extends resource_1.APIResource {
|
|
12
14
|
constructor() {
|
|
13
15
|
super(...arguments);
|
|
16
|
+
this.integrations = new IntegrationsAPI.Integrations(this._client);
|
|
14
17
|
this.deliveries = new DeliveriesAPI.Deliveries(this._client);
|
|
15
18
|
}
|
|
16
19
|
/**
|
|
17
|
-
* Creates a webhook subscription
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* cannot be retrieved later.
|
|
20
|
+
* Creates a webhook subscription and an optional list of event types to subscribe
|
|
21
|
+
* to (defaults to all when omitted). `kind: "http"` (the default) delivers signed
|
|
22
|
+
* JSON to a URL; the response includes the generated signing secret, which is
|
|
23
|
+
* returned only once at creation time and cannot be retrieved later.
|
|
24
|
+
* `kind: "integration"` posts each event as a message into a connected integration
|
|
25
|
+
* target (e.g. a Slack channel): pick the `capability` from
|
|
26
|
+
* `GET /webhooks/integrations` and the `args` from
|
|
27
|
+
* `GET /webhooks/integrations/{capabilityId}/targets`. Integration webhooks have
|
|
28
|
+
* no signing secret. Send an `Idempotency-Key` header to make the create safe to
|
|
29
|
+
* retry: the same key with the same body returns the existing webhook (status 201,
|
|
30
|
+
* `Idempotent-Replayed: true`) instead of creating a second one, and the same key
|
|
31
|
+
* with a different body is a 422. A replayed create does not return the signing
|
|
32
|
+
* secret again; use rotate-secret if the original response was lost. If that
|
|
33
|
+
* webhook was deleted in the meantime, the retry is a 404.
|
|
21
34
|
*
|
|
22
35
|
* @example
|
|
23
36
|
* ```ts
|
|
@@ -30,16 +43,9 @@ class Webhooks extends resource_1.APIResource {
|
|
|
30
43
|
return this._client.post('/webhooks', { body, ...options });
|
|
31
44
|
}
|
|
32
45
|
/**
|
|
33
|
-
* Returns a single webhook subscription by id, including its URL
|
|
34
|
-
* types, state, and system-observed delivery health. The
|
|
35
|
-
* included.
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```ts
|
|
39
|
-
* const webhook = await client.webhooks.retrieve(
|
|
40
|
-
* '550e8400-e29b-41d4-a716-446655440000',
|
|
41
|
-
* );
|
|
42
|
-
* ```
|
|
46
|
+
* Returns a single webhook subscription by id, including its URL (or integration
|
|
47
|
+
* target), subscribed event types, state, and system-observed delivery health. The
|
|
48
|
+
* signing secret is never included.
|
|
43
49
|
*/
|
|
44
50
|
retrieve(id, options) {
|
|
45
51
|
return this._client.get((0, path_1.path) `/webhooks/${id}`, options);
|
|
@@ -48,28 +54,18 @@ class Webhooks extends resource_1.APIResource {
|
|
|
48
54
|
* Updates a webhook subscription. Any combination of the subscribed event types,
|
|
49
55
|
* state (ACTIVE or DISABLED), and description may be changed, and at least one
|
|
50
56
|
* field must be supplied. Setting state to ACTIVE re-enables a subscription that
|
|
51
|
-
* was auto-blocked after sustained delivery failures.
|
|
52
|
-
*
|
|
53
|
-
* @example
|
|
54
|
-
* ```ts
|
|
55
|
-
* const webhook = await client.webhooks.update(
|
|
56
|
-
* '550e8400-e29b-41d4-a716-446655440000',
|
|
57
|
-
* );
|
|
58
|
-
* ```
|
|
57
|
+
* was auto-blocked after sustained delivery failures. The URL or integration
|
|
58
|
+
* target cannot be changed; delete and recreate the webhook instead.
|
|
59
59
|
*/
|
|
60
60
|
update(id, body = {}, options) {
|
|
61
61
|
return this._client.patch((0, path_1.path) `/webhooks/${id}`, { body, ...options });
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
64
|
* Returns a paginated list of your webhook subscriptions, optionally filtered by
|
|
65
|
-
* status (active, failing, blocked, or disabled)
|
|
66
|
-
*
|
|
67
|
-
* also includes per-status counts across all of your subscriptions
|
|
68
|
-
*
|
|
69
|
-
* @example
|
|
70
|
-
* ```ts
|
|
71
|
-
* const webhooks = await client.webhooks.list();
|
|
72
|
-
* ```
|
|
65
|
+
* status (active, failing, blocked, or disabled), by `search` (a case-insensitive
|
|
66
|
+
* substring match against the URL or description), and/or by delivery `kind`. The
|
|
67
|
+
* response also includes per-status counts across all of your subscriptions (of
|
|
68
|
+
* the requested `kind`, if given; the other filters do not apply to the counts).
|
|
73
69
|
*/
|
|
74
70
|
list(query = {}, options) {
|
|
75
71
|
return this._client.get('/webhooks', { query, ...options });
|
|
@@ -77,13 +73,6 @@ class Webhooks extends resource_1.APIResource {
|
|
|
77
73
|
/**
|
|
78
74
|
* Deletes a webhook subscription so it stops receiving deliveries. Returns 204 No
|
|
79
75
|
* Content on success.
|
|
80
|
-
*
|
|
81
|
-
* @example
|
|
82
|
-
* ```ts
|
|
83
|
-
* await client.webhooks.delete(
|
|
84
|
-
* '550e8400-e29b-41d4-a716-446655440000',
|
|
85
|
-
* );
|
|
86
|
-
* ```
|
|
87
76
|
*/
|
|
88
77
|
delete(id, options) {
|
|
89
78
|
return this._client.delete((0, path_1.path) `/webhooks/${id}`, {
|
|
@@ -91,50 +80,25 @@ class Webhooks extends resource_1.APIResource {
|
|
|
91
80
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
92
81
|
});
|
|
93
82
|
}
|
|
94
|
-
/**
|
|
95
|
-
* Returns the catalog of event types that webhook subscriptions can subscribe to,
|
|
96
|
-
* grouped by source. Use the returned type identifiers as the `eventTypes` values
|
|
97
|
-
* when creating or updating a webhook.
|
|
98
|
-
*
|
|
99
|
-
* @example
|
|
100
|
-
* ```ts
|
|
101
|
-
* const response = await client.webhooks.eventTypes();
|
|
102
|
-
* ```
|
|
103
|
-
*/
|
|
104
|
-
eventTypes(options) {
|
|
105
|
-
return this._client.get('/event-types', options);
|
|
106
|
-
}
|
|
107
83
|
/**
|
|
108
84
|
* Generates a new signing secret for the webhook subscription and returns it once
|
|
109
85
|
* in the response. The previous secret is replaced immediately, so any signature
|
|
110
|
-
* verification on your endpoint must be updated to use the new value.
|
|
111
|
-
*
|
|
112
|
-
* @example
|
|
113
|
-
* ```ts
|
|
114
|
-
* const response = await client.webhooks.rotateSecret(
|
|
115
|
-
* '550e8400-e29b-41d4-a716-446655440000',
|
|
116
|
-
* );
|
|
117
|
-
* ```
|
|
86
|
+
* verification on your endpoint must be updated to use the new value. Only `http`
|
|
87
|
+
* webhooks have a signing secret; for `integration` webhooks this returns 400.
|
|
118
88
|
*/
|
|
119
89
|
rotateSecret(id, options) {
|
|
120
90
|
return this._client.post((0, path_1.path) `/webhooks/${id}/rotate-secret`, options);
|
|
121
91
|
}
|
|
122
92
|
/**
|
|
123
|
-
* Sends a single test payload to the webhook subscription URL
|
|
124
|
-
* connectivity. The response reports whether
|
|
125
|
-
* returned HTTP status code or error, if any.
|
|
126
|
-
*
|
|
127
|
-
* @example
|
|
128
|
-
* ```ts
|
|
129
|
-
* const response = await client.webhooks.testDelivery(
|
|
130
|
-
* '550e8400-e29b-41d4-a716-446655440000',
|
|
131
|
-
* );
|
|
132
|
-
* ```
|
|
93
|
+
* Sends a single test payload to the webhook subscription URL (or a test message
|
|
94
|
+
* to its integration target) to verify connectivity. The response reports whether
|
|
95
|
+
* the attempt succeeded along with the returned HTTP status code or error, if any.
|
|
133
96
|
*/
|
|
134
97
|
testDelivery(id, options) {
|
|
135
98
|
return this._client.post((0, path_1.path) `/webhooks/${id}/test`, options);
|
|
136
99
|
}
|
|
137
100
|
}
|
|
138
101
|
exports.Webhooks = Webhooks;
|
|
102
|
+
Webhooks.Integrations = integrations_1.Integrations;
|
|
139
103
|
Webhooks.Deliveries = deliveries_1.Deliveries;
|
|
140
104
|
//# sourceMappingURL=webhooks.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../../src/resources/webhooks/webhooks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,uEAA8C;AAC9C,gDAUsB;
|
|
1
|
+
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../../src/resources/webhooks/webhooks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,uEAA8C;AAC9C,gDAUsB;AACtB,2EAAkD;AAClD,oDAKwB;AAExB,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgGpF,CAAC;IA9FC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACJ,EAAU,EACV,OAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;OAMG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,EAAE,EAAE;YAChD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,YAAY,CAAC,EAAU,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;;OAIG;IACH,YAAY,CAAC,EAAU,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;CACF;AAlGD,4BAkGC;AAiiBD,QAAQ,CAAC,YAAY,GAAG,2BAAY,CAAC;AACrC,QAAQ,CAAC,UAAU,GAAG,uBAAU,CAAC"}
|
|
@@ -2,18 +2,31 @@
|
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
3
|
import * as DeliveriesAPI from "./deliveries.mjs";
|
|
4
4
|
import { Deliveries, } from "./deliveries.mjs";
|
|
5
|
+
import * as IntegrationsAPI from "./integrations.mjs";
|
|
6
|
+
import { Integrations, } from "./integrations.mjs";
|
|
5
7
|
import { buildHeaders } from "../../internal/headers.mjs";
|
|
6
8
|
import { path } from "../../internal/utils/path.mjs";
|
|
7
9
|
export class Webhooks extends APIResource {
|
|
8
10
|
constructor() {
|
|
9
11
|
super(...arguments);
|
|
12
|
+
this.integrations = new IntegrationsAPI.Integrations(this._client);
|
|
10
13
|
this.deliveries = new DeliveriesAPI.Deliveries(this._client);
|
|
11
14
|
}
|
|
12
15
|
/**
|
|
13
|
-
* Creates a webhook subscription
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* cannot be retrieved later.
|
|
16
|
+
* Creates a webhook subscription and an optional list of event types to subscribe
|
|
17
|
+
* to (defaults to all when omitted). `kind: "http"` (the default) delivers signed
|
|
18
|
+
* JSON to a URL; the response includes the generated signing secret, which is
|
|
19
|
+
* returned only once at creation time and cannot be retrieved later.
|
|
20
|
+
* `kind: "integration"` posts each event as a message into a connected integration
|
|
21
|
+
* target (e.g. a Slack channel): pick the `capability` from
|
|
22
|
+
* `GET /webhooks/integrations` and the `args` from
|
|
23
|
+
* `GET /webhooks/integrations/{capabilityId}/targets`. Integration webhooks have
|
|
24
|
+
* no signing secret. Send an `Idempotency-Key` header to make the create safe to
|
|
25
|
+
* retry: the same key with the same body returns the existing webhook (status 201,
|
|
26
|
+
* `Idempotent-Replayed: true`) instead of creating a second one, and the same key
|
|
27
|
+
* with a different body is a 422. A replayed create does not return the signing
|
|
28
|
+
* secret again; use rotate-secret if the original response was lost. If that
|
|
29
|
+
* webhook was deleted in the meantime, the retry is a 404.
|
|
17
30
|
*
|
|
18
31
|
* @example
|
|
19
32
|
* ```ts
|
|
@@ -26,16 +39,9 @@ export class Webhooks extends APIResource {
|
|
|
26
39
|
return this._client.post('/webhooks', { body, ...options });
|
|
27
40
|
}
|
|
28
41
|
/**
|
|
29
|
-
* Returns a single webhook subscription by id, including its URL
|
|
30
|
-
* types, state, and system-observed delivery health. The
|
|
31
|
-
* included.
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```ts
|
|
35
|
-
* const webhook = await client.webhooks.retrieve(
|
|
36
|
-
* '550e8400-e29b-41d4-a716-446655440000',
|
|
37
|
-
* );
|
|
38
|
-
* ```
|
|
42
|
+
* Returns a single webhook subscription by id, including its URL (or integration
|
|
43
|
+
* target), subscribed event types, state, and system-observed delivery health. The
|
|
44
|
+
* signing secret is never included.
|
|
39
45
|
*/
|
|
40
46
|
retrieve(id, options) {
|
|
41
47
|
return this._client.get(path `/webhooks/${id}`, options);
|
|
@@ -44,28 +50,18 @@ export class Webhooks extends APIResource {
|
|
|
44
50
|
* Updates a webhook subscription. Any combination of the subscribed event types,
|
|
45
51
|
* state (ACTIVE or DISABLED), and description may be changed, and at least one
|
|
46
52
|
* field must be supplied. Setting state to ACTIVE re-enables a subscription that
|
|
47
|
-
* was auto-blocked after sustained delivery failures.
|
|
48
|
-
*
|
|
49
|
-
* @example
|
|
50
|
-
* ```ts
|
|
51
|
-
* const webhook = await client.webhooks.update(
|
|
52
|
-
* '550e8400-e29b-41d4-a716-446655440000',
|
|
53
|
-
* );
|
|
54
|
-
* ```
|
|
53
|
+
* was auto-blocked after sustained delivery failures. The URL or integration
|
|
54
|
+
* target cannot be changed; delete and recreate the webhook instead.
|
|
55
55
|
*/
|
|
56
56
|
update(id, body = {}, options) {
|
|
57
57
|
return this._client.patch(path `/webhooks/${id}`, { body, ...options });
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
60
|
* Returns a paginated list of your webhook subscriptions, optionally filtered by
|
|
61
|
-
* status (active, failing, blocked, or disabled)
|
|
62
|
-
*
|
|
63
|
-
* also includes per-status counts across all of your subscriptions
|
|
64
|
-
*
|
|
65
|
-
* @example
|
|
66
|
-
* ```ts
|
|
67
|
-
* const webhooks = await client.webhooks.list();
|
|
68
|
-
* ```
|
|
61
|
+
* status (active, failing, blocked, or disabled), by `search` (a case-insensitive
|
|
62
|
+
* substring match against the URL or description), and/or by delivery `kind`. The
|
|
63
|
+
* response also includes per-status counts across all of your subscriptions (of
|
|
64
|
+
* the requested `kind`, if given; the other filters do not apply to the counts).
|
|
69
65
|
*/
|
|
70
66
|
list(query = {}, options) {
|
|
71
67
|
return this._client.get('/webhooks', { query, ...options });
|
|
@@ -73,13 +69,6 @@ export class Webhooks extends APIResource {
|
|
|
73
69
|
/**
|
|
74
70
|
* Deletes a webhook subscription so it stops receiving deliveries. Returns 204 No
|
|
75
71
|
* Content on success.
|
|
76
|
-
*
|
|
77
|
-
* @example
|
|
78
|
-
* ```ts
|
|
79
|
-
* await client.webhooks.delete(
|
|
80
|
-
* '550e8400-e29b-41d4-a716-446655440000',
|
|
81
|
-
* );
|
|
82
|
-
* ```
|
|
83
72
|
*/
|
|
84
73
|
delete(id, options) {
|
|
85
74
|
return this._client.delete(path `/webhooks/${id}`, {
|
|
@@ -87,49 +76,24 @@ export class Webhooks extends APIResource {
|
|
|
87
76
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
88
77
|
});
|
|
89
78
|
}
|
|
90
|
-
/**
|
|
91
|
-
* Returns the catalog of event types that webhook subscriptions can subscribe to,
|
|
92
|
-
* grouped by source. Use the returned type identifiers as the `eventTypes` values
|
|
93
|
-
* when creating or updating a webhook.
|
|
94
|
-
*
|
|
95
|
-
* @example
|
|
96
|
-
* ```ts
|
|
97
|
-
* const response = await client.webhooks.eventTypes();
|
|
98
|
-
* ```
|
|
99
|
-
*/
|
|
100
|
-
eventTypes(options) {
|
|
101
|
-
return this._client.get('/event-types', options);
|
|
102
|
-
}
|
|
103
79
|
/**
|
|
104
80
|
* Generates a new signing secret for the webhook subscription and returns it once
|
|
105
81
|
* in the response. The previous secret is replaced immediately, so any signature
|
|
106
|
-
* verification on your endpoint must be updated to use the new value.
|
|
107
|
-
*
|
|
108
|
-
* @example
|
|
109
|
-
* ```ts
|
|
110
|
-
* const response = await client.webhooks.rotateSecret(
|
|
111
|
-
* '550e8400-e29b-41d4-a716-446655440000',
|
|
112
|
-
* );
|
|
113
|
-
* ```
|
|
82
|
+
* verification on your endpoint must be updated to use the new value. Only `http`
|
|
83
|
+
* webhooks have a signing secret; for `integration` webhooks this returns 400.
|
|
114
84
|
*/
|
|
115
85
|
rotateSecret(id, options) {
|
|
116
86
|
return this._client.post(path `/webhooks/${id}/rotate-secret`, options);
|
|
117
87
|
}
|
|
118
88
|
/**
|
|
119
|
-
* Sends a single test payload to the webhook subscription URL
|
|
120
|
-
* connectivity. The response reports whether
|
|
121
|
-
* returned HTTP status code or error, if any.
|
|
122
|
-
*
|
|
123
|
-
* @example
|
|
124
|
-
* ```ts
|
|
125
|
-
* const response = await client.webhooks.testDelivery(
|
|
126
|
-
* '550e8400-e29b-41d4-a716-446655440000',
|
|
127
|
-
* );
|
|
128
|
-
* ```
|
|
89
|
+
* Sends a single test payload to the webhook subscription URL (or a test message
|
|
90
|
+
* to its integration target) to verify connectivity. The response reports whether
|
|
91
|
+
* the attempt succeeded along with the returned HTTP status code or error, if any.
|
|
129
92
|
*/
|
|
130
93
|
testDelivery(id, options) {
|
|
131
94
|
return this._client.post(path `/webhooks/${id}/test`, options);
|
|
132
95
|
}
|
|
133
96
|
}
|
|
97
|
+
Webhooks.Integrations = Integrations;
|
|
134
98
|
Webhooks.Deliveries = Deliveries;
|
|
135
99
|
//# sourceMappingURL=webhooks.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.mjs","sourceRoot":"","sources":["../../src/resources/webhooks/webhooks.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,KAAK,aAAa,yBAAqB;AAC9C,OAAO,EACL,UAAU,GASX,yBAAqB;
|
|
1
|
+
{"version":3,"file":"webhooks.mjs","sourceRoot":"","sources":["../../src/resources/webhooks/webhooks.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,KAAK,aAAa,yBAAqB;AAC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,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,aAAa,EAAE,EAAE,EAAE;YAChD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,YAAY,CAAC,EAAU,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,aAAa,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;;OAIG;IACH,YAAY,CAAC,EAAU,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;CACF;AAiiBD,QAAQ,CAAC,YAAY,GAAG,YAAY,CAAC;AACrC,QAAQ,CAAC,UAAU,GAAG,UAAU,CAAC"}
|
|
@@ -25,8 +25,10 @@ export declare namespace ActionCatalogRetrieveResponse {
|
|
|
25
25
|
description: string | null;
|
|
26
26
|
method: string;
|
|
27
27
|
name: string;
|
|
28
|
-
|
|
28
|
+
provider: 'mobilerun' | 'oneDrive' | 'googleDrive';
|
|
29
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
|
|
29
30
|
updatedAt: string | null;
|
|
31
|
+
outputSchema?: unknown;
|
|
30
32
|
paramsSchema?: unknown;
|
|
31
33
|
}
|
|
32
34
|
}
|
|
@@ -41,15 +43,17 @@ export declare namespace ActionCatalogListResponse {
|
|
|
41
43
|
description: string | null;
|
|
42
44
|
method: string;
|
|
43
45
|
name: string;
|
|
44
|
-
|
|
46
|
+
provider: 'mobilerun' | 'oneDrive' | 'googleDrive';
|
|
47
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
|
|
45
48
|
updatedAt: string | null;
|
|
49
|
+
outputSchema?: unknown;
|
|
46
50
|
paramsSchema?: unknown;
|
|
47
51
|
}
|
|
48
52
|
}
|
|
49
53
|
export interface ActionCatalogListParams {
|
|
50
54
|
page?: number;
|
|
51
55
|
pageSize?: number;
|
|
52
|
-
service?: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
56
|
+
service?: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
|
|
53
57
|
}
|
|
54
58
|
export declare namespace ActionCatalog {
|
|
55
59
|
export { type ActionCatalogRetrieveResponse as ActionCatalogRetrieveResponse, type ActionCatalogListResponse as ActionCatalogListResponse, type ActionCatalogListParams as ActionCatalogListParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-catalog.d.mts","sourceRoot":"","sources":["../../src/resources/workflows/action-catalog.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;OAGG;IACH,QAAQ,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;IAIrG;;;;OAIG;IACH,IAAI,CACF,KAAK,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;CAGzC;AAED,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,6BAA6B,CAAC,IAAI,CAAC;CAC1C;AAED,yBAAiB,6BAA6B,CAAC;IAC7C,UAAiB,IAAI;QACnB,EAAE,EAAE,MAAM,CAAC;QAEX,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QAEzB,WAAW,EAAE,MAAM,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,CAAC;KACxB;CACF;AAED,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,KAAK,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC;IAE7C,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;CAC/B;AAED,yBAAiB,yBAAyB,CAAC;IACzC,UAAiB,IAAI;QACnB,EAAE,EAAE,MAAM,CAAC;QAEX,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QAEzB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B,MAAM,EAAE,MAAM,CAAC;QAEf,IAAI,EAAE,MAAM,CAAC;QAEb,QAAQ,EAAE,WAAW,GAAG,UAAU,GAAG,aAAa,CAAC;QAEnD,OAAO,EAAE,WAAW,GAAG,aAAa,GAAG,YAAY,GAAG,UAAU,GAAG,kBAAkB,CAAC;QAEtF,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QAEzB,YAAY,CAAC,EAAE,OAAO,CAAC;QAEvB,YAAY,CAAC,EAAE,OAAO,CAAC;KACxB;CACF;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,OAAO,CAAC,EAAE,WAAW,GAAG,aAAa,GAAG,YAAY,GAAG,UAAU,GAAG,kBAAkB,CAAC;CACxF;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -25,8 +25,10 @@ export declare namespace ActionCatalogRetrieveResponse {
|
|
|
25
25
|
description: string | null;
|
|
26
26
|
method: string;
|
|
27
27
|
name: string;
|
|
28
|
-
|
|
28
|
+
provider: 'mobilerun' | 'oneDrive' | 'googleDrive';
|
|
29
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
|
|
29
30
|
updatedAt: string | null;
|
|
31
|
+
outputSchema?: unknown;
|
|
30
32
|
paramsSchema?: unknown;
|
|
31
33
|
}
|
|
32
34
|
}
|
|
@@ -41,15 +43,17 @@ export declare namespace ActionCatalogListResponse {
|
|
|
41
43
|
description: string | null;
|
|
42
44
|
method: string;
|
|
43
45
|
name: string;
|
|
44
|
-
|
|
46
|
+
provider: 'mobilerun' | 'oneDrive' | 'googleDrive';
|
|
47
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
|
|
45
48
|
updatedAt: string | null;
|
|
49
|
+
outputSchema?: unknown;
|
|
46
50
|
paramsSchema?: unknown;
|
|
47
51
|
}
|
|
48
52
|
}
|
|
49
53
|
export interface ActionCatalogListParams {
|
|
50
54
|
page?: number;
|
|
51
55
|
pageSize?: number;
|
|
52
|
-
service?: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
56
|
+
service?: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
|
|
53
57
|
}
|
|
54
58
|
export declare namespace ActionCatalog {
|
|
55
59
|
export { type ActionCatalogRetrieveResponse as ActionCatalogRetrieveResponse, type ActionCatalogListResponse as ActionCatalogListResponse, type ActionCatalogListParams as ActionCatalogListParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-catalog.d.ts","sourceRoot":"","sources":["../../src/resources/workflows/action-catalog.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;OAGG;IACH,QAAQ,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;IAIr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aAAa,CAAC;IACrC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -10,6 +10,10 @@ export declare class Actions extends APIResource {
|
|
|
10
10
|
* Create a reusable action from a catalog entry (`catalogEntryId`), with an
|
|
11
11
|
* optional `params` object supplying the values for that entry's service method.
|
|
12
12
|
* Returns 400 if the params are invalid for the chosen catalog entry.
|
|
13
|
+
*
|
|
14
|
+
* Supports an optional `Idempotency-Key` header (1-255 printable ASCII
|
|
15
|
+
* characters). Replays with the same key and an identical body return the original
|
|
16
|
+
* 201; a changed body under the same key returns 422 `idempotency_key_reused`.
|
|
13
17
|
*/
|
|
14
18
|
create(body: ActionCreateParams, options?: RequestOptions): APIPromise<ActionCreateResponse>;
|
|
15
19
|
/**
|
|
@@ -45,7 +49,7 @@ export declare namespace ActionCreateResponse {
|
|
|
45
49
|
method: string;
|
|
46
50
|
name: string;
|
|
47
51
|
ownerId: string;
|
|
48
|
-
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
52
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
|
|
49
53
|
updatedAt: string | null;
|
|
50
54
|
/**
|
|
51
55
|
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
@@ -68,7 +72,7 @@ export declare namespace ActionRetrieveResponse {
|
|
|
68
72
|
method: string;
|
|
69
73
|
name: string;
|
|
70
74
|
ownerId: string;
|
|
71
|
-
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
75
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
|
|
72
76
|
updatedAt: string | null;
|
|
73
77
|
/**
|
|
74
78
|
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
@@ -91,7 +95,7 @@ export declare namespace ActionUpdateResponse {
|
|
|
91
95
|
method: string;
|
|
92
96
|
name: string;
|
|
93
97
|
ownerId: string;
|
|
94
|
-
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
98
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
|
|
95
99
|
updatedAt: string | null;
|
|
96
100
|
/**
|
|
97
101
|
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
@@ -115,7 +119,7 @@ export declare namespace ActionListResponse {
|
|
|
115
119
|
method: string;
|
|
116
120
|
name: string;
|
|
117
121
|
ownerId: string;
|
|
118
|
-
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
122
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
|
|
119
123
|
updatedAt: string | null;
|
|
120
124
|
/**
|
|
121
125
|
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
@@ -149,7 +153,7 @@ export interface ActionListParams {
|
|
|
149
153
|
page?: number;
|
|
150
154
|
pageSize?: number;
|
|
151
155
|
search?: string;
|
|
152
|
-
service?: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
156
|
+
service?: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
|
|
153
157
|
}
|
|
154
158
|
export declare namespace Actions {
|
|
155
159
|
export { type ActionCreateResponse as ActionCreateResponse, type ActionRetrieveResponse as ActionRetrieveResponse, type ActionUpdateResponse as ActionUpdateResponse, type ActionListResponse as ActionListResponse, type ActionDeleteResponse as ActionDeleteResponse, type ActionCreateParams as ActionCreateParams, type ActionUpdateParams as ActionUpdateParams, type ActionListParams as ActionListParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.mts","sourceRoot":"","sources":["../../../src/resources/workflows/actions/actions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,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AoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -10,6 +10,10 @@ export declare class Actions extends APIResource {
|
|
|
10
10
|
* Create a reusable action from a catalog entry (`catalogEntryId`), with an
|
|
11
11
|
* optional `params` object supplying the values for that entry's service method.
|
|
12
12
|
* Returns 400 if the params are invalid for the chosen catalog entry.
|
|
13
|
+
*
|
|
14
|
+
* Supports an optional `Idempotency-Key` header (1-255 printable ASCII
|
|
15
|
+
* characters). Replays with the same key and an identical body return the original
|
|
16
|
+
* 201; a changed body under the same key returns 422 `idempotency_key_reused`.
|
|
13
17
|
*/
|
|
14
18
|
create(body: ActionCreateParams, options?: RequestOptions): APIPromise<ActionCreateResponse>;
|
|
15
19
|
/**
|
|
@@ -45,7 +49,7 @@ export declare namespace ActionCreateResponse {
|
|
|
45
49
|
method: string;
|
|
46
50
|
name: string;
|
|
47
51
|
ownerId: string;
|
|
48
|
-
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
52
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
|
|
49
53
|
updatedAt: string | null;
|
|
50
54
|
/**
|
|
51
55
|
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
@@ -68,7 +72,7 @@ export declare namespace ActionRetrieveResponse {
|
|
|
68
72
|
method: string;
|
|
69
73
|
name: string;
|
|
70
74
|
ownerId: string;
|
|
71
|
-
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
75
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
|
|
72
76
|
updatedAt: string | null;
|
|
73
77
|
/**
|
|
74
78
|
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
@@ -91,7 +95,7 @@ export declare namespace ActionUpdateResponse {
|
|
|
91
95
|
method: string;
|
|
92
96
|
name: string;
|
|
93
97
|
ownerId: string;
|
|
94
|
-
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
98
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
|
|
95
99
|
updatedAt: string | null;
|
|
96
100
|
/**
|
|
97
101
|
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
@@ -115,7 +119,7 @@ export declare namespace ActionListResponse {
|
|
|
115
119
|
method: string;
|
|
116
120
|
name: string;
|
|
117
121
|
ownerId: string;
|
|
118
|
-
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
122
|
+
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
|
|
119
123
|
updatedAt: string | null;
|
|
120
124
|
/**
|
|
121
125
|
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
@@ -149,7 +153,7 @@ export interface ActionListParams {
|
|
|
149
153
|
page?: number;
|
|
150
154
|
pageSize?: number;
|
|
151
155
|
search?: string;
|
|
152
|
-
service?: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
156
|
+
service?: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
|
|
153
157
|
}
|
|
154
158
|
export declare namespace Actions {
|
|
155
159
|
export { type ActionCreateResponse as ActionCreateResponse, type ActionRetrieveResponse as ActionRetrieveResponse, type ActionUpdateResponse as ActionUpdateResponse, type ActionListResponse as ActionListResponse, type ActionDeleteResponse as ActionDeleteResponse, type ActionCreateParams as ActionCreateParams, type ActionUpdateParams as ActionUpdateParams, type ActionListParams as ActionListParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/resources/workflows/actions/actions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,MAAM,wBAAqB;AACvC,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EAAE,0BAA0B,EAAE,mBAAmB,EAAE,QAAQ,EAAE,sBAAmB;AACvF,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa,OAAQ,SAAQ,WAAW;IACtC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IAExE
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/resources/workflows/actions/actions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,MAAM,wBAAqB;AACvC,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EAAE,0BAA0B,EAAE,mBAAmB,EAAE,QAAQ,EAAE,sBAAmB;AACvF,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa,OAAQ,SAAQ,WAAW;IACtC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IAExE;;;;;;;;OAQG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAI5F;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIxF;;;OAGG;IACH,MAAM,CAC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,CAAC,EAAE,MAAM,CAAC;IAEd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,OAAO,CAAC,EAAE,WAAW,GAAG,aAAa,GAAG,YAAY,GAAG,UAAU,GAAG,kBAAkB,CAAC;CACxF;AAID,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -16,6 +16,10 @@ class Actions extends resource_1.APIResource {
|
|
|
16
16
|
* Create a reusable action from a catalog entry (`catalogEntryId`), with an
|
|
17
17
|
* optional `params` object supplying the values for that entry's service method.
|
|
18
18
|
* Returns 400 if the params are invalid for the chosen catalog entry.
|
|
19
|
+
*
|
|
20
|
+
* Supports an optional `Idempotency-Key` header (1-255 printable ASCII
|
|
21
|
+
* characters). Replays with the same key and an identical body return the original
|
|
22
|
+
* 201; a changed body under the same key returns 422 `idempotency_key_reused`.
|
|
19
23
|
*/
|
|
20
24
|
create(body, options) {
|
|
21
25
|
return this._client.post('/actions', { body, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../../../src/resources/workflows/actions/actions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAErD,mEAA0C;AAC1C,4CAAu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AAgB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,YAAY,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;CACF;AArDD,0BAqDC;AA4LD,OAAO,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
|
|
@@ -12,6 +12,10 @@ export class Actions extends APIResource {
|
|
|
12
12
|
* Create a reusable action from a catalog entry (`catalogEntryId`), with an
|
|
13
13
|
* optional `params` object supplying the values for that entry's service method.
|
|
14
14
|
* Returns 400 if the params are invalid for the chosen catalog entry.
|
|
15
|
+
*
|
|
16
|
+
* Supports an optional `Idempotency-Key` header (1-255 printable ASCII
|
|
17
|
+
* characters). Replays with the same key and an identical body return the original
|
|
18
|
+
* 201; a changed body under the same key returns 422 `idempotency_key_reused`.
|
|
15
19
|
*/
|
|
16
20
|
create(body, options) {
|
|
17
21
|
return this._client.post('/actions', { body, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.mjs","sourceRoot":"","sources":["../../../src/resources/workflows/actions/actions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAErD,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAAmD,QAAQ,EAAE,uBAAmB;AAGvF,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"actions.mjs","sourceRoot":"","sources":["../../../src/resources/workflows/actions/actions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAErD,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAAmD,QAAQ,EAAE,uBAAmB;AAGvF,O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