@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
|
@@ -7,12 +7,8 @@ export declare class Deliveries extends APIResource {
|
|
|
7
7
|
* Returns a paginated feed of webhook deliveries across all of your subscriptions,
|
|
8
8
|
* with the originating endpoint URL included on each record. Results can be
|
|
9
9
|
* filtered by delivery status (pending, success, skipped, or dead), by a `since`
|
|
10
|
-
* timestamp,
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts
|
|
14
|
-
* const deliveries = await client.webhooks.deliveries.list();
|
|
15
|
-
* ```
|
|
10
|
+
* timestamp, by `eventId` (exact match against the originating event id), and/or
|
|
11
|
+
* by endpoint delivery `kind`.
|
|
16
12
|
*/
|
|
17
13
|
list(query?: DeliveryListParams | null | undefined, options?: RequestOptions): APIPromise<DeliveryListResponse>;
|
|
18
14
|
/**
|
|
@@ -20,41 +16,19 @@ export declare class Deliveries extends APIResource {
|
|
|
20
16
|
* identified by its id. Each record reports the event, delivery status, attempt
|
|
21
17
|
* count, and the last response code or error. Results can be filtered by `eventId`
|
|
22
18
|
* (exact match against the originating event id).
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```ts
|
|
26
|
-
* const response =
|
|
27
|
-
* await client.webhooks.deliveries.listForWebhook(
|
|
28
|
-
* '550e8400-e29b-41d4-a716-446655440000',
|
|
29
|
-
* );
|
|
30
|
-
* ```
|
|
31
19
|
*/
|
|
32
20
|
listForWebhook(id: string, query?: DeliveryListForWebhookParams | null | undefined, options?: RequestOptions): APIPromise<DeliveryListForWebhookResponse>;
|
|
33
21
|
/**
|
|
34
22
|
* Returns a single delivery for a webhook subscription along with the full list of
|
|
35
23
|
* captured attempt records. Each attempt includes the request URL, method, headers
|
|
36
24
|
* and body, whether it was signed, and the response status, headers, and snippet.
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* ```ts
|
|
40
|
-
* const response =
|
|
41
|
-
* await client.webhooks.deliveries.retrieveAttempts(
|
|
42
|
-
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
43
|
-
* { id: '550e8400-e29b-41d4-a716-446655440000' },
|
|
44
|
-
* );
|
|
45
|
-
* ```
|
|
46
25
|
*/
|
|
47
26
|
retrieveAttempts(deliveryID: string, params: DeliveryRetrieveAttemptsParams, options?: RequestOptions): APIPromise<DeliveryRetrieveAttemptsResponse>;
|
|
48
27
|
/**
|
|
49
28
|
* Returns aggregate delivery statistics across all of your webhooks, including the
|
|
50
29
|
* total count, a breakdown by status (pending, success, skipped, dead), and the
|
|
51
|
-
* overall success rate.
|
|
52
|
-
* window.
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
* ```ts
|
|
56
|
-
* const response = await client.webhooks.deliveries.stats();
|
|
57
|
-
* ```
|
|
30
|
+
* overall success rate. Optional `since` and endpoint delivery `kind` filters
|
|
31
|
+
* narrow the reporting window.
|
|
58
32
|
*/
|
|
59
33
|
stats(query?: DeliveryStatsParams | null | undefined, options?: RequestOptions): APIPromise<DeliveryStatsResponse>;
|
|
60
34
|
}
|
|
@@ -75,7 +49,16 @@ export declare namespace DeliveryListResponse {
|
|
|
75
49
|
createdBy: string | null;
|
|
76
50
|
durationMs: number | null;
|
|
77
51
|
endpointId: string;
|
|
78
|
-
|
|
52
|
+
endpointKind: 'http' | 'integration';
|
|
53
|
+
/**
|
|
54
|
+
* Integration target label of the parent webhook (e.g. `#ops`); null for `http`
|
|
55
|
+
* webhooks.
|
|
56
|
+
*/
|
|
57
|
+
endpointLabel: string | null;
|
|
58
|
+
/**
|
|
59
|
+
* Delivery URL of the parent webhook; null for `integration` webhooks.
|
|
60
|
+
*/
|
|
61
|
+
endpointUrl: string | null;
|
|
79
62
|
eventId: string;
|
|
80
63
|
eventType: string;
|
|
81
64
|
isTest: boolean;
|
|
@@ -182,6 +165,10 @@ export interface DeliveryListParams {
|
|
|
182
165
|
* Exact text match against the originating event id.
|
|
183
166
|
*/
|
|
184
167
|
eventId?: string;
|
|
168
|
+
/**
|
|
169
|
+
* Only include deliveries to endpoints of this kind.
|
|
170
|
+
*/
|
|
171
|
+
kind?: 'http' | 'integration';
|
|
185
172
|
page?: number;
|
|
186
173
|
pageSize?: number;
|
|
187
174
|
since?: string;
|
|
@@ -199,6 +186,10 @@ export interface DeliveryRetrieveAttemptsParams {
|
|
|
199
186
|
id: string;
|
|
200
187
|
}
|
|
201
188
|
export interface DeliveryStatsParams {
|
|
189
|
+
/**
|
|
190
|
+
* Only include deliveries to endpoints of this kind.
|
|
191
|
+
*/
|
|
192
|
+
kind?: 'http' | 'integration';
|
|
202
193
|
since?: string;
|
|
203
194
|
}
|
|
204
195
|
export declare namespace Deliveries {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deliveries.d.ts","sourceRoot":"","sources":["../../src/resources/webhooks/deliveries.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,qBA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mB;IAClC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,aAAa,CAAC;IAE9B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -9,12 +9,8 @@ class Deliveries extends resource_1.APIResource {
|
|
|
9
9
|
* Returns a paginated feed of webhook deliveries across all of your subscriptions,
|
|
10
10
|
* with the originating endpoint URL included on each record. Results can be
|
|
11
11
|
* filtered by delivery status (pending, success, skipped, or dead), by a `since`
|
|
12
|
-
* timestamp,
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts
|
|
16
|
-
* const deliveries = await client.webhooks.deliveries.list();
|
|
17
|
-
* ```
|
|
12
|
+
* timestamp, by `eventId` (exact match against the originating event id), and/or
|
|
13
|
+
* by endpoint delivery `kind`.
|
|
18
14
|
*/
|
|
19
15
|
list(query = {}, options) {
|
|
20
16
|
return this._client.get('/webhooks/deliveries', { query, ...options });
|
|
@@ -24,14 +20,6 @@ class Deliveries extends resource_1.APIResource {
|
|
|
24
20
|
* identified by its id. Each record reports the event, delivery status, attempt
|
|
25
21
|
* count, and the last response code or error. Results can be filtered by `eventId`
|
|
26
22
|
* (exact match against the originating event id).
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```ts
|
|
30
|
-
* const response =
|
|
31
|
-
* await client.webhooks.deliveries.listForWebhook(
|
|
32
|
-
* '550e8400-e29b-41d4-a716-446655440000',
|
|
33
|
-
* );
|
|
34
|
-
* ```
|
|
35
23
|
*/
|
|
36
24
|
listForWebhook(id, query = {}, options) {
|
|
37
25
|
return this._client.get((0, path_1.path) `/webhooks/${id}/deliveries`, { query, ...options });
|
|
@@ -40,15 +28,6 @@ class Deliveries extends resource_1.APIResource {
|
|
|
40
28
|
* Returns a single delivery for a webhook subscription along with the full list of
|
|
41
29
|
* captured attempt records. Each attempt includes the request URL, method, headers
|
|
42
30
|
* and body, whether it was signed, and the response status, headers, and snippet.
|
|
43
|
-
*
|
|
44
|
-
* @example
|
|
45
|
-
* ```ts
|
|
46
|
-
* const response =
|
|
47
|
-
* await client.webhooks.deliveries.retrieveAttempts(
|
|
48
|
-
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
49
|
-
* { id: '550e8400-e29b-41d4-a716-446655440000' },
|
|
50
|
-
* );
|
|
51
|
-
* ```
|
|
52
31
|
*/
|
|
53
32
|
retrieveAttempts(deliveryID, params, options) {
|
|
54
33
|
const { id } = params;
|
|
@@ -57,13 +36,8 @@ class Deliveries extends resource_1.APIResource {
|
|
|
57
36
|
/**
|
|
58
37
|
* Returns aggregate delivery statistics across all of your webhooks, including the
|
|
59
38
|
* total count, a breakdown by status (pending, success, skipped, dead), and the
|
|
60
|
-
* overall success rate.
|
|
61
|
-
* window.
|
|
62
|
-
*
|
|
63
|
-
* @example
|
|
64
|
-
* ```ts
|
|
65
|
-
* const response = await client.webhooks.deliveries.stats();
|
|
66
|
-
* ```
|
|
39
|
+
* overall success rate. Optional `since` and endpoint delivery `kind` filters
|
|
40
|
+
* narrow the reporting window.
|
|
67
41
|
*/
|
|
68
42
|
stats(query = {}, options) {
|
|
69
43
|
return this._client.get('/webhooks/deliveries/stats', { query, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deliveries.js","sourceRoot":"","sources":["../../src/resources/webhooks/deliveries.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD,MAAa,UAAW,SAAQ,sBAAW;IACzC
|
|
1
|
+
{"version":3,"file":"deliveries.js","sourceRoot":"","sources":["../../src/resources/webhooks/deliveries.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;OAMG;IACH,IAAI,CACF,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;;OAKG;IACH,cAAc,CACZ,EAAU,EACV,QAAyD,EAAE,EAC3D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,aAAa,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;IAED;;;;OAIG;IACH,gBAAgB,CACd,UAAkB,EAClB,MAAsC,EACtC,OAAwB;QAExB,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,eAAe,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACnF,CAAC;IAED;;;;;OAKG;IACH,KAAK,CACH,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,4BAA4B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF;AAvDD,gCAuDC"}
|
|
@@ -6,12 +6,8 @@ export class Deliveries extends APIResource {
|
|
|
6
6
|
* Returns a paginated feed of webhook deliveries across all of your subscriptions,
|
|
7
7
|
* with the originating endpoint URL included on each record. Results can be
|
|
8
8
|
* filtered by delivery status (pending, success, skipped, or dead), by a `since`
|
|
9
|
-
* timestamp,
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* const deliveries = await client.webhooks.deliveries.list();
|
|
14
|
-
* ```
|
|
9
|
+
* timestamp, by `eventId` (exact match against the originating event id), and/or
|
|
10
|
+
* by endpoint delivery `kind`.
|
|
15
11
|
*/
|
|
16
12
|
list(query = {}, options) {
|
|
17
13
|
return this._client.get('/webhooks/deliveries', { query, ...options });
|
|
@@ -21,14 +17,6 @@ export class Deliveries extends APIResource {
|
|
|
21
17
|
* identified by its id. Each record reports the event, delivery status, attempt
|
|
22
18
|
* count, and the last response code or error. Results can be filtered by `eventId`
|
|
23
19
|
* (exact match against the originating event id).
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```ts
|
|
27
|
-
* const response =
|
|
28
|
-
* await client.webhooks.deliveries.listForWebhook(
|
|
29
|
-
* '550e8400-e29b-41d4-a716-446655440000',
|
|
30
|
-
* );
|
|
31
|
-
* ```
|
|
32
20
|
*/
|
|
33
21
|
listForWebhook(id, query = {}, options) {
|
|
34
22
|
return this._client.get(path `/webhooks/${id}/deliveries`, { query, ...options });
|
|
@@ -37,15 +25,6 @@ export class Deliveries extends APIResource {
|
|
|
37
25
|
* Returns a single delivery for a webhook subscription along with the full list of
|
|
38
26
|
* captured attempt records. Each attempt includes the request URL, method, headers
|
|
39
27
|
* and body, whether it was signed, and the response status, headers, and snippet.
|
|
40
|
-
*
|
|
41
|
-
* @example
|
|
42
|
-
* ```ts
|
|
43
|
-
* const response =
|
|
44
|
-
* await client.webhooks.deliveries.retrieveAttempts(
|
|
45
|
-
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
46
|
-
* { id: '550e8400-e29b-41d4-a716-446655440000' },
|
|
47
|
-
* );
|
|
48
|
-
* ```
|
|
49
28
|
*/
|
|
50
29
|
retrieveAttempts(deliveryID, params, options) {
|
|
51
30
|
const { id } = params;
|
|
@@ -54,13 +33,8 @@ export class Deliveries extends APIResource {
|
|
|
54
33
|
/**
|
|
55
34
|
* Returns aggregate delivery statistics across all of your webhooks, including the
|
|
56
35
|
* total count, a breakdown by status (pending, success, skipped, dead), and the
|
|
57
|
-
* overall success rate.
|
|
58
|
-
* window.
|
|
59
|
-
*
|
|
60
|
-
* @example
|
|
61
|
-
* ```ts
|
|
62
|
-
* const response = await client.webhooks.deliveries.stats();
|
|
63
|
-
* ```
|
|
36
|
+
* overall success rate. Optional `since` and endpoint delivery `kind` filters
|
|
37
|
+
* narrow the reporting window.
|
|
64
38
|
*/
|
|
65
39
|
stats(query = {}, options) {
|
|
66
40
|
return this._client.get('/webhooks/deliveries/stats', { query, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deliveries.mjs","sourceRoot":"","sources":["../../src/resources/webhooks/deliveries.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC
|
|
1
|
+
{"version":3,"file":"deliveries.mjs","sourceRoot":"","sources":["../../src/resources/webhooks/deliveries.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;OAMG;IACH,IAAI,CACF,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;;OAKG;IACH,cAAc,CACZ,EAAU,EACV,QAAyD,EAAE,EAC3D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,EAAE,aAAa,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;IAED;;;;OAIG;IACH,gBAAgB,CACd,UAAkB,EAClB,MAAsC,EACtC,OAAwB;QAExB,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,EAAE,eAAe,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACnF,CAAC;IAED;;;;;OAKG;IACH,KAAK,CACH,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,4BAA4B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { Deliveries, type DeliveryListResponse, type DeliveryListForWebhookResponse, type DeliveryRetrieveAttemptsResponse, type DeliveryStatsResponse, type DeliveryListParams, type DeliveryListForWebhookParams, type DeliveryRetrieveAttemptsParams, type DeliveryStatsParams, } from "./deliveries.mjs";
|
|
2
|
+
export { Integrations, type IntegrationListResponse, type IntegrationListTargetsResponse, type IntegrationListTargetsParams, } from "./integrations.mjs";
|
|
2
3
|
export { Webhooks, type WebhookCreateResponse, type WebhookRetrieveResponse, type WebhookUpdateResponse, type WebhookListResponse, type WebhookEventTypesResponse, type WebhookRotateSecretResponse, type WebhookTestDeliveryResponse, type WebhookCreateParams, type WebhookUpdateParams, type WebhookListParams, } from "./webhooks.mjs";
|
|
3
4
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/webhooks/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EACV,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,EACrC,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,mBAAmB,GACzB,yBAAqB;AACtB,OAAO,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,uBAAmB"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/webhooks/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EACV,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,EACrC,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,mBAAmB,GACzB,yBAAqB;AACtB,OAAO,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,GAClC,2BAAuB;AACxB,OAAO,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,uBAAmB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { Deliveries, type DeliveryListResponse, type DeliveryListForWebhookResponse, type DeliveryRetrieveAttemptsResponse, type DeliveryStatsResponse, type DeliveryListParams, type DeliveryListForWebhookParams, type DeliveryRetrieveAttemptsParams, type DeliveryStatsParams, } from "./deliveries.js";
|
|
2
|
+
export { Integrations, type IntegrationListResponse, type IntegrationListTargetsResponse, type IntegrationListTargetsParams, } from "./integrations.js";
|
|
2
3
|
export { Webhooks, type WebhookCreateResponse, type WebhookRetrieveResponse, type WebhookUpdateResponse, type WebhookListResponse, type WebhookEventTypesResponse, type WebhookRotateSecretResponse, type WebhookTestDeliveryResponse, type WebhookCreateParams, type WebhookUpdateParams, type WebhookListParams, } from "./webhooks.js";
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/webhooks/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EACV,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,EACrC,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,mBAAmB,GACzB,wBAAqB;AACtB,OAAO,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,sBAAmB"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/webhooks/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EACV,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,EACrC,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,mBAAmB,GACzB,wBAAqB;AACtB,OAAO,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,GAClC,0BAAuB;AACxB,OAAO,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,sBAAmB"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Webhooks = exports.Deliveries = void 0;
|
|
4
|
+
exports.Webhooks = exports.Integrations = exports.Deliveries = void 0;
|
|
5
5
|
var deliveries_1 = require("./deliveries.js");
|
|
6
6
|
Object.defineProperty(exports, "Deliveries", { enumerable: true, get: function () { return deliveries_1.Deliveries; } });
|
|
7
|
+
var integrations_1 = require("./integrations.js");
|
|
8
|
+
Object.defineProperty(exports, "Integrations", { enumerable: true, get: function () { return integrations_1.Integrations; } });
|
|
7
9
|
var webhooks_1 = require("./webhooks.js");
|
|
8
10
|
Object.defineProperty(exports, "Webhooks", { enumerable: true, get: function () { return webhooks_1.Webhooks; } });
|
|
9
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/webhooks/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8CAUsB;AATpB,wGAAA,UAAU,OAAA;AAUZ,0CAYoB;AAXlB,oGAAA,QAAQ,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/webhooks/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8CAUsB;AATpB,wGAAA,UAAU,OAAA;AAUZ,kDAKwB;AAJtB,4GAAA,YAAY,OAAA;AAKd,0CAYoB;AAXlB,oGAAA,QAAQ,OAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { Deliveries, } from "./deliveries.mjs";
|
|
3
|
+
export { Integrations, } from "./integrations.mjs";
|
|
3
4
|
export { Webhooks, } from "./webhooks.mjs";
|
|
4
5
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/webhooks/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,UAAU,GASX,yBAAqB;AACtB,OAAO,EACL,QAAQ,GAWT,uBAAmB"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/webhooks/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,UAAU,GASX,yBAAqB;AACtB,OAAO,EACL,YAAY,GAIb,2BAAuB;AACxB,OAAO,EACL,QAAQ,GAWT,uBAAmB"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
export declare class Integrations extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Returns the integrations that can receive webhook events as channel messages
|
|
7
|
+
* (e.g. Slack), with your org's connection state for each. Connect an integration
|
|
8
|
+
* in the Cloud app before creating a webhook for it.
|
|
9
|
+
*/
|
|
10
|
+
list(options?: RequestOptions): APIPromise<IntegrationListResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* Returns the live list of targets (e.g. Slack channels the connected account is a
|
|
13
|
+
* member of) for an integration. Pass a target's `args` together with the
|
|
14
|
+
* integration `capability` to `POST /webhooks` with `kind: "integration"`.
|
|
15
|
+
*/
|
|
16
|
+
listTargets(capabilityID: string, query: IntegrationListTargetsParams, options?: RequestOptions): APIPromise<IntegrationListTargetsResponse>;
|
|
17
|
+
}
|
|
18
|
+
export interface IntegrationListResponse {
|
|
19
|
+
data: Array<IntegrationListResponse.Data>;
|
|
20
|
+
}
|
|
21
|
+
export declare namespace IntegrationListResponse {
|
|
22
|
+
interface Data {
|
|
23
|
+
capability: Data.Capability;
|
|
24
|
+
/**
|
|
25
|
+
* Connection state for your org. Only `connected` integrations can be used as a
|
|
26
|
+
* destination.
|
|
27
|
+
*/
|
|
28
|
+
connection: 'connected' | 'not_connected' | 'expired';
|
|
29
|
+
/**
|
|
30
|
+
* Opaque key for the Cloud connect dialog.
|
|
31
|
+
*/
|
|
32
|
+
connectKey: string;
|
|
33
|
+
/**
|
|
34
|
+
* True for the previous revision during a switch; prefer the non-deprecated one.
|
|
35
|
+
*/
|
|
36
|
+
deprecated: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Server-resolved brand logo URL; null when unknown. Show this instead of deriving
|
|
39
|
+
* a logo from connectKey.
|
|
40
|
+
*/
|
|
41
|
+
iconUrl: string | null;
|
|
42
|
+
label: string;
|
|
43
|
+
/**
|
|
44
|
+
* True when targets (e.g. channels) can be listed via
|
|
45
|
+
* `GET /webhooks/integrations/{capabilityId}/targets`.
|
|
46
|
+
*/
|
|
47
|
+
supportsTargets: boolean;
|
|
48
|
+
}
|
|
49
|
+
namespace Data {
|
|
50
|
+
interface Capability {
|
|
51
|
+
id: string;
|
|
52
|
+
revision: number;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
export interface IntegrationListTargetsResponse {
|
|
57
|
+
data: Array<IntegrationListTargetsResponse.Data>;
|
|
58
|
+
}
|
|
59
|
+
export declare namespace IntegrationListTargetsResponse {
|
|
60
|
+
interface Data {
|
|
61
|
+
/**
|
|
62
|
+
* Pass as `args` when creating an `integration` webhook.
|
|
63
|
+
*/
|
|
64
|
+
args: {
|
|
65
|
+
[key: string]: unknown;
|
|
66
|
+
};
|
|
67
|
+
isPrivate: boolean;
|
|
68
|
+
label: string;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
export interface IntegrationListTargetsParams {
|
|
72
|
+
revision: number;
|
|
73
|
+
}
|
|
74
|
+
export declare namespace Integrations {
|
|
75
|
+
export { type IntegrationListResponse as IntegrationListResponse, type IntegrationListTargetsResponse as IntegrationListTargetsResponse, type IntegrationListTargetsParams as IntegrationListTargetsParams, };
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=integrations.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrations.d.mts","sourceRoot":"","sources":["../../src/resources/webhooks/integrations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;OAIG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAInE;;;;OAIG;IACH,WAAW,CACT,YAAY,EAAE,MAAM,EACpB,KAAK,EAAE,4BAA4B,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;CAG9C;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,KAAK,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;CAC3C;AAED,yBAAiB,uBAAuB,CAAC;IACvC,UAAiB,IAAI;QACnB,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC;QAE5B;;;WAGG;QACH,UAAU,EAAE,WAAW,GAAG,eAAe,GAAG,SAAS,CAAC;QAEtD;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,UAAU,EAAE,OAAO,CAAC;QAEpB;;;WAGG;QACH,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;QAEvB,KAAK,EAAE,MAAM,CAAC;QAEd;;;WAGG;QACH,eAAe,EAAE,OAAO,CAAC;KAC1B;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,UAAU;YACzB,EAAE,EAAE,MAAM,CAAC;YAEX,QAAQ,EAAE,MAAM,CAAC;SAClB;KACF;CACF;AAED,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,KAAK,CAAC,8BAA8B,CAAC,IAAI,CAAC,CAAC;CAClD;AAED,yBAAiB,8BAA8B,CAAC;IAC9C,UAAiB,IAAI;QACnB;;WAEG;QACH,IAAI,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;SAAE,CAAC;QAEjC,SAAS,EAAE,OAAO,CAAC;QAEnB,KAAK,EAAE,MAAM,CAAC;KACf;CACF;AAED,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
export declare class Integrations extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Returns the integrations that can receive webhook events as channel messages
|
|
7
|
+
* (e.g. Slack), with your org's connection state for each. Connect an integration
|
|
8
|
+
* in the Cloud app before creating a webhook for it.
|
|
9
|
+
*/
|
|
10
|
+
list(options?: RequestOptions): APIPromise<IntegrationListResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* Returns the live list of targets (e.g. Slack channels the connected account is a
|
|
13
|
+
* member of) for an integration. Pass a target's `args` together with the
|
|
14
|
+
* integration `capability` to `POST /webhooks` with `kind: "integration"`.
|
|
15
|
+
*/
|
|
16
|
+
listTargets(capabilityID: string, query: IntegrationListTargetsParams, options?: RequestOptions): APIPromise<IntegrationListTargetsResponse>;
|
|
17
|
+
}
|
|
18
|
+
export interface IntegrationListResponse {
|
|
19
|
+
data: Array<IntegrationListResponse.Data>;
|
|
20
|
+
}
|
|
21
|
+
export declare namespace IntegrationListResponse {
|
|
22
|
+
interface Data {
|
|
23
|
+
capability: Data.Capability;
|
|
24
|
+
/**
|
|
25
|
+
* Connection state for your org. Only `connected` integrations can be used as a
|
|
26
|
+
* destination.
|
|
27
|
+
*/
|
|
28
|
+
connection: 'connected' | 'not_connected' | 'expired';
|
|
29
|
+
/**
|
|
30
|
+
* Opaque key for the Cloud connect dialog.
|
|
31
|
+
*/
|
|
32
|
+
connectKey: string;
|
|
33
|
+
/**
|
|
34
|
+
* True for the previous revision during a switch; prefer the non-deprecated one.
|
|
35
|
+
*/
|
|
36
|
+
deprecated: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Server-resolved brand logo URL; null when unknown. Show this instead of deriving
|
|
39
|
+
* a logo from connectKey.
|
|
40
|
+
*/
|
|
41
|
+
iconUrl: string | null;
|
|
42
|
+
label: string;
|
|
43
|
+
/**
|
|
44
|
+
* True when targets (e.g. channels) can be listed via
|
|
45
|
+
* `GET /webhooks/integrations/{capabilityId}/targets`.
|
|
46
|
+
*/
|
|
47
|
+
supportsTargets: boolean;
|
|
48
|
+
}
|
|
49
|
+
namespace Data {
|
|
50
|
+
interface Capability {
|
|
51
|
+
id: string;
|
|
52
|
+
revision: number;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
export interface IntegrationListTargetsResponse {
|
|
57
|
+
data: Array<IntegrationListTargetsResponse.Data>;
|
|
58
|
+
}
|
|
59
|
+
export declare namespace IntegrationListTargetsResponse {
|
|
60
|
+
interface Data {
|
|
61
|
+
/**
|
|
62
|
+
* Pass as `args` when creating an `integration` webhook.
|
|
63
|
+
*/
|
|
64
|
+
args: {
|
|
65
|
+
[key: string]: unknown;
|
|
66
|
+
};
|
|
67
|
+
isPrivate: boolean;
|
|
68
|
+
label: string;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
export interface IntegrationListTargetsParams {
|
|
72
|
+
revision: number;
|
|
73
|
+
}
|
|
74
|
+
export declare namespace Integrations {
|
|
75
|
+
export { type IntegrationListResponse as IntegrationListResponse, type IntegrationListTargetsResponse as IntegrationListTargetsResponse, type IntegrationListTargetsParams as IntegrationListTargetsParams, };
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=integrations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrations.d.ts","sourceRoot":"","sources":["../../src/resources/webhooks/integrations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;OAIG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAInE;;;;OAIG;IACH,WAAW,CACT,YAAY,EAAE,MAAM,EACpB,KAAK,EAAE,4BAA4B,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;CAG9C;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,KAAK,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;CAC3C;AAED,yBAAiB,uBAAuB,CAAC;IACvC,UAAiB,IAAI;QACnB,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC;QAE5B;;;WAGG;QACH,UAAU,EAAE,WAAW,GAAG,eAAe,GAAG,SAAS,CAAC;QAEtD;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,UAAU,EAAE,OAAO,CAAC;QAEpB;;;WAGG;QACH,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;QAEvB,KAAK,EAAE,MAAM,CAAC;QAEd;;;WAGG;QACH,eAAe,EAAE,OAAO,CAAC;KAC1B;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,UAAU;YACzB,EAAE,EAAE,MAAM,CAAC;YAEX,QAAQ,EAAE,MAAM,CAAC;SAClB;KACF;CACF;AAED,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,KAAK,CAAC,8BAA8B,CAAC,IAAI,CAAC,CAAC;CAClD;AAED,yBAAiB,8BAA8B,CAAC;IAC9C,UAAiB,IAAI;QACnB;;WAEG;QACH,IAAI,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;SAAE,CAAC;QAEjC,SAAS,EAAE,OAAO,CAAC;QAEnB,KAAK,EAAE,MAAM,CAAC;KACf;CACF;AAED,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Integrations = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
class Integrations extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Returns the integrations that can receive webhook events as channel messages
|
|
10
|
+
* (e.g. Slack), with your org's connection state for each. Connect an integration
|
|
11
|
+
* in the Cloud app before creating a webhook for it.
|
|
12
|
+
*/
|
|
13
|
+
list(options) {
|
|
14
|
+
return this._client.get('/webhooks/integrations', options);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Returns the live list of targets (e.g. Slack channels the connected account is a
|
|
18
|
+
* member of) for an integration. Pass a target's `args` together with the
|
|
19
|
+
* integration `capability` to `POST /webhooks` with `kind: "integration"`.
|
|
20
|
+
*/
|
|
21
|
+
listTargets(capabilityID, query, options) {
|
|
22
|
+
return this._client.get((0, path_1.path) `/webhooks/integrations/${capabilityID}/targets`, { query, ...options });
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.Integrations = Integrations;
|
|
26
|
+
//# sourceMappingURL=integrations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrations.js","sourceRoot":"","sources":["../../src/resources/webhooks/integrations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;OAIG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;;OAIG;IACH,WAAW,CACT,YAAoB,EACpB,KAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,0BAA0B,YAAY,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;CACF;AAtBD,oCAsBC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
4
|
+
export class Integrations extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Returns the integrations that can receive webhook events as channel messages
|
|
7
|
+
* (e.g. Slack), with your org's connection state for each. Connect an integration
|
|
8
|
+
* in the Cloud app before creating a webhook for it.
|
|
9
|
+
*/
|
|
10
|
+
list(options) {
|
|
11
|
+
return this._client.get('/webhooks/integrations', options);
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Returns the live list of targets (e.g. Slack channels the connected account is a
|
|
15
|
+
* member of) for an integration. Pass a target's `args` together with the
|
|
16
|
+
* integration `capability` to `POST /webhooks` with `kind: "integration"`.
|
|
17
|
+
*/
|
|
18
|
+
listTargets(capabilityID, query, options) {
|
|
19
|
+
return this._client.get(path `/webhooks/integrations/${capabilityID}/targets`, { query, ...options });
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=integrations.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrations.mjs","sourceRoot":"","sources":["../../src/resources/webhooks/integrations.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;OAIG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;;OAIG;IACH,WAAW,CACT,YAAoB,EACpB,KAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,0BAA0B,YAAY,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;CACF"}
|