@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
|
@@ -8,6 +8,10 @@ export declare class Triggers extends APIResource {
|
|
|
8
8
|
* Each type requires its own fields (e.g. `eventType` and optional `conditions`
|
|
9
9
|
* for events, `scheduleRule` and `timezone` for schedules, `customPayloadSchema`
|
|
10
10
|
* for custom triggers); mismatched fields are rejected.
|
|
11
|
+
*
|
|
12
|
+
* Supports an optional `Idempotency-Key` header (1-255 printable ASCII
|
|
13
|
+
* characters). Replays with the same key and an identical body return the original
|
|
14
|
+
* 201; a changed body under the same key returns 422 `idempotency_key_reused`.
|
|
11
15
|
*/
|
|
12
16
|
create(body: TriggerCreateParams, options?: RequestOptions): APIPromise<TriggerCreateResponse>;
|
|
13
17
|
/**
|
|
@@ -42,12 +46,20 @@ export declare class Triggers extends APIResource {
|
|
|
42
46
|
* Payload validation:
|
|
43
47
|
*
|
|
44
48
|
* - If the trigger has a `customPayloadSchema`, the payload is validated against
|
|
45
|
-
* it (JSON Schema
|
|
49
|
+
* it (JSON Schema).
|
|
46
50
|
* - If no schema is configured, the payload only needs to be a JSON object — any
|
|
47
51
|
* keys and values are accepted.
|
|
48
52
|
*
|
|
49
53
|
* Only triggers with `activation = "custom"` can be fired through this endpoint;
|
|
50
54
|
* event and schedule triggers return 409.
|
|
55
|
+
*
|
|
56
|
+
* Supports an optional `Idempotency-Key` header (1-255 printable ASCII
|
|
57
|
+
* characters), which maps to the derived `invocationId` used for fan-out
|
|
58
|
+
* deduplication. The payload is bound to the key on the first accepted fire,
|
|
59
|
+
* before fan-out. A repeat with the same key and an identical payload returns 202
|
|
60
|
+
* with `Idempotent-Replayed: true` (`deduplicated: true` when flows were skipped;
|
|
61
|
+
* `enqueuedCount` counts only executions enqueued by that call); a changed payload
|
|
62
|
+
* under the same key returns 422 `idempotency_key_reused`.
|
|
51
63
|
*/
|
|
52
64
|
fire(triggerID: string, body: TriggerFireParams, options?: RequestOptions): APIPromise<TriggerFireResponse>;
|
|
53
65
|
}
|
|
@@ -124,7 +136,7 @@ export declare namespace TriggerRetrieveResponse {
|
|
|
124
136
|
eventType: string | null;
|
|
125
137
|
name: string;
|
|
126
138
|
ownerId: string;
|
|
127
|
-
scheduleRule:
|
|
139
|
+
scheduleRule: Data.ScheduleRule;
|
|
128
140
|
timezone: string | null;
|
|
129
141
|
updatedAt: string | null;
|
|
130
142
|
/**
|
|
@@ -134,6 +146,36 @@ export declare namespace TriggerRetrieveResponse {
|
|
|
134
146
|
conditions?: unknown;
|
|
135
147
|
nextFireTime?: string | null;
|
|
136
148
|
}
|
|
149
|
+
namespace Data {
|
|
150
|
+
interface ScheduleRule {
|
|
151
|
+
type: 'once' | 'cron' | 'recurring';
|
|
152
|
+
/**
|
|
153
|
+
* ISO 8601 datetime (for type=once)
|
|
154
|
+
*/
|
|
155
|
+
dateTime?: string;
|
|
156
|
+
/**
|
|
157
|
+
* Cron expression (for type=cron)
|
|
158
|
+
*/
|
|
159
|
+
expression?: string;
|
|
160
|
+
/**
|
|
161
|
+
* Optional per-occurrence random window around the nominal schedule time
|
|
162
|
+
*/
|
|
163
|
+
jitter?: ScheduleRule.Jitter;
|
|
164
|
+
/**
|
|
165
|
+
* RRULE string (for type=recurring)
|
|
166
|
+
*/
|
|
167
|
+
rrule?: string;
|
|
168
|
+
}
|
|
169
|
+
namespace ScheduleRule {
|
|
170
|
+
/**
|
|
171
|
+
* Optional per-occurrence random window around the nominal schedule time
|
|
172
|
+
*/
|
|
173
|
+
interface Jitter {
|
|
174
|
+
afterMinutes?: number;
|
|
175
|
+
beforeMinutes?: number;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
137
179
|
}
|
|
138
180
|
export interface TriggerUpdateResponse {
|
|
139
181
|
data: TriggerUpdateResponse.Data;
|
|
@@ -151,7 +193,7 @@ export declare namespace TriggerUpdateResponse {
|
|
|
151
193
|
eventType: string | null;
|
|
152
194
|
name: string;
|
|
153
195
|
ownerId: string;
|
|
154
|
-
scheduleRule:
|
|
196
|
+
scheduleRule: Data.ScheduleRule;
|
|
155
197
|
timezone: string | null;
|
|
156
198
|
updatedAt: string | null;
|
|
157
199
|
/**
|
|
@@ -161,6 +203,36 @@ export declare namespace TriggerUpdateResponse {
|
|
|
161
203
|
conditions?: unknown;
|
|
162
204
|
nextFireTime?: string | null;
|
|
163
205
|
}
|
|
206
|
+
namespace Data {
|
|
207
|
+
interface ScheduleRule {
|
|
208
|
+
type: 'once' | 'cron' | 'recurring';
|
|
209
|
+
/**
|
|
210
|
+
* ISO 8601 datetime (for type=once)
|
|
211
|
+
*/
|
|
212
|
+
dateTime?: string;
|
|
213
|
+
/**
|
|
214
|
+
* Cron expression (for type=cron)
|
|
215
|
+
*/
|
|
216
|
+
expression?: string;
|
|
217
|
+
/**
|
|
218
|
+
* Optional per-occurrence random window around the nominal schedule time
|
|
219
|
+
*/
|
|
220
|
+
jitter?: ScheduleRule.Jitter;
|
|
221
|
+
/**
|
|
222
|
+
* RRULE string (for type=recurring)
|
|
223
|
+
*/
|
|
224
|
+
rrule?: string;
|
|
225
|
+
}
|
|
226
|
+
namespace ScheduleRule {
|
|
227
|
+
/**
|
|
228
|
+
* Optional per-occurrence random window around the nominal schedule time
|
|
229
|
+
*/
|
|
230
|
+
interface Jitter {
|
|
231
|
+
afterMinutes?: number;
|
|
232
|
+
beforeMinutes?: number;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
164
236
|
}
|
|
165
237
|
export interface TriggerListResponse {
|
|
166
238
|
items: Array<TriggerListResponse.Item>;
|
|
@@ -179,7 +251,7 @@ export declare namespace TriggerListResponse {
|
|
|
179
251
|
eventType: string | null;
|
|
180
252
|
name: string;
|
|
181
253
|
ownerId: string;
|
|
182
|
-
scheduleRule:
|
|
254
|
+
scheduleRule: Item.ScheduleRule;
|
|
183
255
|
timezone: string | null;
|
|
184
256
|
updatedAt: string | null;
|
|
185
257
|
/**
|
|
@@ -189,6 +261,36 @@ export declare namespace TriggerListResponse {
|
|
|
189
261
|
conditions?: unknown;
|
|
190
262
|
nextFireTime?: string | null;
|
|
191
263
|
}
|
|
264
|
+
namespace Item {
|
|
265
|
+
interface ScheduleRule {
|
|
266
|
+
type: 'once' | 'cron' | 'recurring';
|
|
267
|
+
/**
|
|
268
|
+
* ISO 8601 datetime (for type=once)
|
|
269
|
+
*/
|
|
270
|
+
dateTime?: string;
|
|
271
|
+
/**
|
|
272
|
+
* Cron expression (for type=cron)
|
|
273
|
+
*/
|
|
274
|
+
expression?: string;
|
|
275
|
+
/**
|
|
276
|
+
* Optional per-occurrence random window around the nominal schedule time
|
|
277
|
+
*/
|
|
278
|
+
jitter?: ScheduleRule.Jitter;
|
|
279
|
+
/**
|
|
280
|
+
* RRULE string (for type=recurring)
|
|
281
|
+
*/
|
|
282
|
+
rrule?: string;
|
|
283
|
+
}
|
|
284
|
+
namespace ScheduleRule {
|
|
285
|
+
/**
|
|
286
|
+
* Optional per-occurrence random window around the nominal schedule time
|
|
287
|
+
*/
|
|
288
|
+
interface Jitter {
|
|
289
|
+
afterMinutes?: number;
|
|
290
|
+
beforeMinutes?: number;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
192
294
|
}
|
|
193
295
|
export interface TriggerDeleteResponse {
|
|
194
296
|
message: string;
|
|
@@ -196,8 +298,8 @@ export interface TriggerDeleteResponse {
|
|
|
196
298
|
export interface TriggerFireResponse {
|
|
197
299
|
/**
|
|
198
300
|
* True when at least one attached flow was skipped because it already had an
|
|
199
|
-
* execution for this (flow, invocationId). Only ever true when the
|
|
200
|
-
*
|
|
301
|
+
* execution for this (flow, invocationId). Only ever true when the request carried
|
|
302
|
+
* an `Idempotency-Key`.
|
|
201
303
|
*/
|
|
202
304
|
deduplicated: boolean;
|
|
203
305
|
/**
|
|
@@ -207,9 +309,8 @@ export interface TriggerFireResponse {
|
|
|
207
309
|
*/
|
|
208
310
|
enqueuedCount: number;
|
|
209
311
|
/**
|
|
210
|
-
* Unique ID for this fire invocation (
|
|
211
|
-
*
|
|
212
|
-
* enqueued flow).
|
|
312
|
+
* Unique ID for this fire invocation (derived from the `Idempotency-Key` header
|
|
313
|
+
* when one is sent, otherwise generated).
|
|
213
314
|
*/
|
|
214
315
|
invocationId: string;
|
|
215
316
|
}
|
|
@@ -329,12 +430,6 @@ export interface TriggerFireParams {
|
|
|
329
430
|
payload: {
|
|
330
431
|
[key: string]: unknown;
|
|
331
432
|
};
|
|
332
|
-
/**
|
|
333
|
-
* Optional client-supplied idempotency key. When provided, a flow that already has
|
|
334
|
-
* an execution for this (flow, invocationId) is skipped and `deduplicated` is
|
|
335
|
-
* true. When omitted a fresh server-side id is generated (no dedup).
|
|
336
|
-
*/
|
|
337
|
-
invocationId?: string;
|
|
338
433
|
}
|
|
339
434
|
export declare namespace Triggers {
|
|
340
435
|
export { type TriggerCreateResponse as TriggerCreateResponse, type TriggerRetrieveResponse as TriggerRetrieveResponse, type TriggerUpdateResponse as TriggerUpdateResponse, type TriggerListResponse as TriggerListResponse, type TriggerDeleteResponse as TriggerDeleteResponse, type TriggerFireResponse as TriggerFireResponse, type TriggerCreateParams as TriggerCreateParams, type TriggerUpdateParams as TriggerUpdateParams, type TriggerListParams as TriggerListParams, type TriggerFireParams as TriggerFireParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggers.d.mts","sourceRoot":"","sources":["../../src/resources/workflows/triggers.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,QAAS,SAAQ,WAAW;IACvC
|
|
1
|
+
{"version":3,"file":"triggers.d.mts","sourceR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AAS,CAAC,EAAE,MAAM,CAAC;IAEnB,OAAO,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,WAAW,CAAC;IAE7C,gBAAgB,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAElC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;CACrC;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -8,6 +8,10 @@ export declare class Triggers extends APIResource {
|
|
|
8
8
|
* Each type requires its own fields (e.g. `eventType` and optional `conditions`
|
|
9
9
|
* for events, `scheduleRule` and `timezone` for schedules, `customPayloadSchema`
|
|
10
10
|
* for custom triggers); mismatched fields are rejected.
|
|
11
|
+
*
|
|
12
|
+
* Supports an optional `Idempotency-Key` header (1-255 printable ASCII
|
|
13
|
+
* characters). Replays with the same key and an identical body return the original
|
|
14
|
+
* 201; a changed body under the same key returns 422 `idempotency_key_reused`.
|
|
11
15
|
*/
|
|
12
16
|
create(body: TriggerCreateParams, options?: RequestOptions): APIPromise<TriggerCreateResponse>;
|
|
13
17
|
/**
|
|
@@ -42,12 +46,20 @@ export declare class Triggers extends APIResource {
|
|
|
42
46
|
* Payload validation:
|
|
43
47
|
*
|
|
44
48
|
* - If the trigger has a `customPayloadSchema`, the payload is validated against
|
|
45
|
-
* it (JSON Schema
|
|
49
|
+
* it (JSON Schema).
|
|
46
50
|
* - If no schema is configured, the payload only needs to be a JSON object — any
|
|
47
51
|
* keys and values are accepted.
|
|
48
52
|
*
|
|
49
53
|
* Only triggers with `activation = "custom"` can be fired through this endpoint;
|
|
50
54
|
* event and schedule triggers return 409.
|
|
55
|
+
*
|
|
56
|
+
* Supports an optional `Idempotency-Key` header (1-255 printable ASCII
|
|
57
|
+
* characters), which maps to the derived `invocationId` used for fan-out
|
|
58
|
+
* deduplication. The payload is bound to the key on the first accepted fire,
|
|
59
|
+
* before fan-out. A repeat with the same key and an identical payload returns 202
|
|
60
|
+
* with `Idempotent-Replayed: true` (`deduplicated: true` when flows were skipped;
|
|
61
|
+
* `enqueuedCount` counts only executions enqueued by that call); a changed payload
|
|
62
|
+
* under the same key returns 422 `idempotency_key_reused`.
|
|
51
63
|
*/
|
|
52
64
|
fire(triggerID: string, body: TriggerFireParams, options?: RequestOptions): APIPromise<TriggerFireResponse>;
|
|
53
65
|
}
|
|
@@ -124,7 +136,7 @@ export declare namespace TriggerRetrieveResponse {
|
|
|
124
136
|
eventType: string | null;
|
|
125
137
|
name: string;
|
|
126
138
|
ownerId: string;
|
|
127
|
-
scheduleRule:
|
|
139
|
+
scheduleRule: Data.ScheduleRule;
|
|
128
140
|
timezone: string | null;
|
|
129
141
|
updatedAt: string | null;
|
|
130
142
|
/**
|
|
@@ -134,6 +146,36 @@ export declare namespace TriggerRetrieveResponse {
|
|
|
134
146
|
conditions?: unknown;
|
|
135
147
|
nextFireTime?: string | null;
|
|
136
148
|
}
|
|
149
|
+
namespace Data {
|
|
150
|
+
interface ScheduleRule {
|
|
151
|
+
type: 'once' | 'cron' | 'recurring';
|
|
152
|
+
/**
|
|
153
|
+
* ISO 8601 datetime (for type=once)
|
|
154
|
+
*/
|
|
155
|
+
dateTime?: string;
|
|
156
|
+
/**
|
|
157
|
+
* Cron expression (for type=cron)
|
|
158
|
+
*/
|
|
159
|
+
expression?: string;
|
|
160
|
+
/**
|
|
161
|
+
* Optional per-occurrence random window around the nominal schedule time
|
|
162
|
+
*/
|
|
163
|
+
jitter?: ScheduleRule.Jitter;
|
|
164
|
+
/**
|
|
165
|
+
* RRULE string (for type=recurring)
|
|
166
|
+
*/
|
|
167
|
+
rrule?: string;
|
|
168
|
+
}
|
|
169
|
+
namespace ScheduleRule {
|
|
170
|
+
/**
|
|
171
|
+
* Optional per-occurrence random window around the nominal schedule time
|
|
172
|
+
*/
|
|
173
|
+
interface Jitter {
|
|
174
|
+
afterMinutes?: number;
|
|
175
|
+
beforeMinutes?: number;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
137
179
|
}
|
|
138
180
|
export interface TriggerUpdateResponse {
|
|
139
181
|
data: TriggerUpdateResponse.Data;
|
|
@@ -151,7 +193,7 @@ export declare namespace TriggerUpdateResponse {
|
|
|
151
193
|
eventType: string | null;
|
|
152
194
|
name: string;
|
|
153
195
|
ownerId: string;
|
|
154
|
-
scheduleRule:
|
|
196
|
+
scheduleRule: Data.ScheduleRule;
|
|
155
197
|
timezone: string | null;
|
|
156
198
|
updatedAt: string | null;
|
|
157
199
|
/**
|
|
@@ -161,6 +203,36 @@ export declare namespace TriggerUpdateResponse {
|
|
|
161
203
|
conditions?: unknown;
|
|
162
204
|
nextFireTime?: string | null;
|
|
163
205
|
}
|
|
206
|
+
namespace Data {
|
|
207
|
+
interface ScheduleRule {
|
|
208
|
+
type: 'once' | 'cron' | 'recurring';
|
|
209
|
+
/**
|
|
210
|
+
* ISO 8601 datetime (for type=once)
|
|
211
|
+
*/
|
|
212
|
+
dateTime?: string;
|
|
213
|
+
/**
|
|
214
|
+
* Cron expression (for type=cron)
|
|
215
|
+
*/
|
|
216
|
+
expression?: string;
|
|
217
|
+
/**
|
|
218
|
+
* Optional per-occurrence random window around the nominal schedule time
|
|
219
|
+
*/
|
|
220
|
+
jitter?: ScheduleRule.Jitter;
|
|
221
|
+
/**
|
|
222
|
+
* RRULE string (for type=recurring)
|
|
223
|
+
*/
|
|
224
|
+
rrule?: string;
|
|
225
|
+
}
|
|
226
|
+
namespace ScheduleRule {
|
|
227
|
+
/**
|
|
228
|
+
* Optional per-occurrence random window around the nominal schedule time
|
|
229
|
+
*/
|
|
230
|
+
interface Jitter {
|
|
231
|
+
afterMinutes?: number;
|
|
232
|
+
beforeMinutes?: number;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
164
236
|
}
|
|
165
237
|
export interface TriggerListResponse {
|
|
166
238
|
items: Array<TriggerListResponse.Item>;
|
|
@@ -179,7 +251,7 @@ export declare namespace TriggerListResponse {
|
|
|
179
251
|
eventType: string | null;
|
|
180
252
|
name: string;
|
|
181
253
|
ownerId: string;
|
|
182
|
-
scheduleRule:
|
|
254
|
+
scheduleRule: Item.ScheduleRule;
|
|
183
255
|
timezone: string | null;
|
|
184
256
|
updatedAt: string | null;
|
|
185
257
|
/**
|
|
@@ -189,6 +261,36 @@ export declare namespace TriggerListResponse {
|
|
|
189
261
|
conditions?: unknown;
|
|
190
262
|
nextFireTime?: string | null;
|
|
191
263
|
}
|
|
264
|
+
namespace Item {
|
|
265
|
+
interface ScheduleRule {
|
|
266
|
+
type: 'once' | 'cron' | 'recurring';
|
|
267
|
+
/**
|
|
268
|
+
* ISO 8601 datetime (for type=once)
|
|
269
|
+
*/
|
|
270
|
+
dateTime?: string;
|
|
271
|
+
/**
|
|
272
|
+
* Cron expression (for type=cron)
|
|
273
|
+
*/
|
|
274
|
+
expression?: string;
|
|
275
|
+
/**
|
|
276
|
+
* Optional per-occurrence random window around the nominal schedule time
|
|
277
|
+
*/
|
|
278
|
+
jitter?: ScheduleRule.Jitter;
|
|
279
|
+
/**
|
|
280
|
+
* RRULE string (for type=recurring)
|
|
281
|
+
*/
|
|
282
|
+
rrule?: string;
|
|
283
|
+
}
|
|
284
|
+
namespace ScheduleRule {
|
|
285
|
+
/**
|
|
286
|
+
* Optional per-occurrence random window around the nominal schedule time
|
|
287
|
+
*/
|
|
288
|
+
interface Jitter {
|
|
289
|
+
afterMinutes?: number;
|
|
290
|
+
beforeMinutes?: number;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
192
294
|
}
|
|
193
295
|
export interface TriggerDeleteResponse {
|
|
194
296
|
message: string;
|
|
@@ -196,8 +298,8 @@ export interface TriggerDeleteResponse {
|
|
|
196
298
|
export interface TriggerFireResponse {
|
|
197
299
|
/**
|
|
198
300
|
* True when at least one attached flow was skipped because it already had an
|
|
199
|
-
* execution for this (flow, invocationId). Only ever true when the
|
|
200
|
-
*
|
|
301
|
+
* execution for this (flow, invocationId). Only ever true when the request carried
|
|
302
|
+
* an `Idempotency-Key`.
|
|
201
303
|
*/
|
|
202
304
|
deduplicated: boolean;
|
|
203
305
|
/**
|
|
@@ -207,9 +309,8 @@ export interface TriggerFireResponse {
|
|
|
207
309
|
*/
|
|
208
310
|
enqueuedCount: number;
|
|
209
311
|
/**
|
|
210
|
-
* Unique ID for this fire invocation (
|
|
211
|
-
*
|
|
212
|
-
* enqueued flow).
|
|
312
|
+
* Unique ID for this fire invocation (derived from the `Idempotency-Key` header
|
|
313
|
+
* when one is sent, otherwise generated).
|
|
213
314
|
*/
|
|
214
315
|
invocationId: string;
|
|
215
316
|
}
|
|
@@ -329,12 +430,6 @@ export interface TriggerFireParams {
|
|
|
329
430
|
payload: {
|
|
330
431
|
[key: string]: unknown;
|
|
331
432
|
};
|
|
332
|
-
/**
|
|
333
|
-
* Optional client-supplied idempotency key. When provided, a flow that already has
|
|
334
|
-
* an execution for this (flow, invocationId) is skipped and `deduplicated` is
|
|
335
|
-
* true. When omitted a fresh server-side id is generated (no dedup).
|
|
336
|
-
*/
|
|
337
|
-
invocationId?: string;
|
|
338
433
|
}
|
|
339
434
|
export declare namespace Triggers {
|
|
340
435
|
export { type TriggerCreateResponse as TriggerCreateResponse, type TriggerRetrieveResponse as TriggerRetrieveResponse, type TriggerUpdateResponse as TriggerUpdateResponse, type TriggerListResponse as TriggerListResponse, type TriggerDeleteResponse as TriggerDeleteResponse, type TriggerFireResponse as TriggerFireResponse, type TriggerCreateParams as TriggerCreateParams, type TriggerUpdateParams as TriggerUpdateParams, type TriggerListParams as TriggerListParams, type TriggerFireParams as TriggerFireParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggers.d.ts","sourceRoot":"","sources":["../../src/resources/workflows/triggers.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,QAAS,SAAQ,WAAW;IACvC
|
|
1
|
+
{"version":3,"file":"triggers.d.ts","sourceRoot":"","sources":["../../src/resources/workflows/triggers.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,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI9F;;;OAGG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAI1F;;;;OAIG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,IAAI,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,c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AqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -10,6 +10,10 @@ class Triggers extends resource_1.APIResource {
|
|
|
10
10
|
* Each type requires its own fields (e.g. `eventType` and optional `conditions`
|
|
11
11
|
* for events, `scheduleRule` and `timezone` for schedules, `customPayloadSchema`
|
|
12
12
|
* for custom triggers); mismatched fields are rejected.
|
|
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, options) {
|
|
15
19
|
return this._client.post('/triggers', { body, ...options });
|
|
@@ -54,12 +58,20 @@ class Triggers extends resource_1.APIResource {
|
|
|
54
58
|
* Payload validation:
|
|
55
59
|
*
|
|
56
60
|
* - If the trigger has a `customPayloadSchema`, the payload is validated against
|
|
57
|
-
* it (JSON Schema
|
|
61
|
+
* it (JSON Schema).
|
|
58
62
|
* - If no schema is configured, the payload only needs to be a JSON object — any
|
|
59
63
|
* keys and values are accepted.
|
|
60
64
|
*
|
|
61
65
|
* Only triggers with `activation = "custom"` can be fired through this endpoint;
|
|
62
66
|
* event and schedule triggers return 409.
|
|
67
|
+
*
|
|
68
|
+
* Supports an optional `Idempotency-Key` header (1-255 printable ASCII
|
|
69
|
+
* characters), which maps to the derived `invocationId` used for fan-out
|
|
70
|
+
* deduplication. The payload is bound to the key on the first accepted fire,
|
|
71
|
+
* before fan-out. A repeat with the same key and an identical payload returns 202
|
|
72
|
+
* with `Idempotent-Replayed: true` (`deduplicated: true` when flows were skipped;
|
|
73
|
+
* `enqueuedCount` counts only executions enqueued by that call); a changed payload
|
|
74
|
+
* under the same key returns 422 `idempotency_key_reused`.
|
|
63
75
|
*/
|
|
64
76
|
fire(triggerID, body, options) {
|
|
65
77
|
return this._client.post((0, path_1.path) `/triggers/${triggerID}/fire`, { body, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggers.js","sourceRoot":"","sources":["../../src/resources/workflows/triggers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD,MAAa,QAAS,SAAQ,sBAAW;IACvC
|
|
1
|
+
{"version":3,"file":"triggers.js","sourceRoot":"","sources":["../../src/resources/workflows/triggers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;OASG;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;;;OAGG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;;;OAIG;IACH,MAAM,CACJ,SAAiB,EACjB,OAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,aAAa,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;;OAGG;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;;OAEG;IACH,MAAM,CAAC,SAAiB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,aAAa,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,IAAI,CACF,SAAiB,EACjB,IAAuB,EACvB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,aAAa,SAAS,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF;AAxFD,4BAwFC"}
|
|
@@ -7,6 +7,10 @@ export class Triggers extends APIResource {
|
|
|
7
7
|
* Each type requires its own fields (e.g. `eventType` and optional `conditions`
|
|
8
8
|
* for events, `scheduleRule` and `timezone` for schedules, `customPayloadSchema`
|
|
9
9
|
* for custom triggers); mismatched fields are rejected.
|
|
10
|
+
*
|
|
11
|
+
* Supports an optional `Idempotency-Key` header (1-255 printable ASCII
|
|
12
|
+
* characters). Replays with the same key and an identical body return the original
|
|
13
|
+
* 201; a changed body under the same key returns 422 `idempotency_key_reused`.
|
|
10
14
|
*/
|
|
11
15
|
create(body, options) {
|
|
12
16
|
return this._client.post('/triggers', { body, ...options });
|
|
@@ -51,12 +55,20 @@ export class Triggers extends APIResource {
|
|
|
51
55
|
* Payload validation:
|
|
52
56
|
*
|
|
53
57
|
* - If the trigger has a `customPayloadSchema`, the payload is validated against
|
|
54
|
-
* it (JSON Schema
|
|
58
|
+
* it (JSON Schema).
|
|
55
59
|
* - If no schema is configured, the payload only needs to be a JSON object — any
|
|
56
60
|
* keys and values are accepted.
|
|
57
61
|
*
|
|
58
62
|
* Only triggers with `activation = "custom"` can be fired through this endpoint;
|
|
59
63
|
* event and schedule triggers return 409.
|
|
64
|
+
*
|
|
65
|
+
* Supports an optional `Idempotency-Key` header (1-255 printable ASCII
|
|
66
|
+
* characters), which maps to the derived `invocationId` used for fan-out
|
|
67
|
+
* deduplication. The payload is bound to the key on the first accepted fire,
|
|
68
|
+
* before fan-out. A repeat with the same key and an identical payload returns 202
|
|
69
|
+
* with `Idempotent-Replayed: true` (`deduplicated: true` when flows were skipped;
|
|
70
|
+
* `enqueuedCount` counts only executions enqueued by that call); a changed payload
|
|
71
|
+
* under the same key returns 422 `idempotency_key_reused`.
|
|
60
72
|
*/
|
|
61
73
|
fire(triggerID, body, options) {
|
|
62
74
|
return this._client.post(path `/triggers/${triggerID}/fire`, { body, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggers.mjs","sourceRoot":"","sources":["../../src/resources/workflows/triggers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC
|
|
1
|
+
{"version":3,"file":"triggers.mjs","sourceRoot":"","sources":["../../src/resources/workflows/triggers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;OASG;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;;;OAGG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;;;OAIG;IACH,MAAM,CACJ,SAAiB,EACjB,OAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,aAAa,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;;OAGG;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;;OAEG;IACH,MAAM,CAAC,SAAiB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,aAAa,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,IAAI,CACF,SAAiB,EACjB,IAAuB,EACvB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,aAAa,SAAS,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF"}
|
|
@@ -3,16 +3,16 @@ import * as ActionCatalogAPI from "./action-catalog.mjs";
|
|
|
3
3
|
import { ActionCatalog, ActionCatalogListParams, ActionCatalogListResponse, ActionCatalogRetrieveResponse } from "./action-catalog.mjs";
|
|
4
4
|
import * as EventsAPI from "./events.mjs";
|
|
5
5
|
import { EventDryRunParams, EventDryRunResponse, EventIngestParams, EventIngestResponse, Events } from "./events.mjs";
|
|
6
|
-
import * as ExecutionsAPI from "./executions.mjs";
|
|
7
|
-
import { ExecutionAbortResponse, ExecutionGetMetricsParams, ExecutionGetMetricsResponse, ExecutionListParams, ExecutionListResponse, ExecutionRetrieveResponse, Executions } from "./executions.mjs";
|
|
8
6
|
import * as TimezonesAPI from "./timezones.mjs";
|
|
9
7
|
import { TimezoneListResponse, Timezones } from "./timezones.mjs";
|
|
10
8
|
import * as TriggersAPI from "./triggers.mjs";
|
|
11
9
|
import { TriggerCreateParams, TriggerCreateResponse, TriggerDeleteResponse, TriggerFireParams, TriggerFireResponse, TriggerListParams, TriggerListResponse, TriggerRetrieveResponse, TriggerUpdateParams, TriggerUpdateResponse, Triggers } from "./triggers.mjs";
|
|
12
10
|
import * as ActionsAPI from "./actions/actions.mjs";
|
|
13
11
|
import { ActionCreateParams, ActionCreateResponse, ActionDeleteResponse, ActionListParams, ActionListResponse, ActionRetrieveResponse, ActionUpdateParams, ActionUpdateResponse, Actions } from "./actions/actions.mjs";
|
|
12
|
+
import * as ExecutionsAPI from "./executions/executions.mjs";
|
|
13
|
+
import { ExecutionAbortResponse, ExecutionGetMetricsParams, ExecutionGetMetricsResponse, ExecutionListParams, ExecutionListResponse, ExecutionRetrieveResponse, Executions } from "./executions/executions.mjs";
|
|
14
14
|
import * as FlowsAPI from "./flows/flows.mjs";
|
|
15
|
-
import { FlowCapacityResponse, FlowCloneParams, FlowCloneResponse, FlowCreateParams, FlowCreateResponse, FlowDeleteResponse, FlowDryRunParams, FlowDryRunResponse, FlowListParams, FlowListRepairsResponse, FlowListResponse, FlowRetrieveResponse, FlowUnblockResponse, FlowUpdateParams, FlowUpdateResponse, Flows } from "./flows/flows.mjs";
|
|
15
|
+
import { FlowActivateParams, FlowActivateResponse, FlowCapacityResponse, FlowCloneParams, FlowCloneResponse, FlowCreateParams, FlowCreateResponse, FlowDeleteResponse, FlowDeliveryOptionsResponse, FlowDryRunParams, FlowDryRunResponse, FlowListParams, FlowListRepairsResponse, FlowListResponse, FlowRetrieveResponse, FlowRunParams, FlowRunResponse, FlowTemplateContextParams, FlowTemplateContextResponse, FlowUnblockResponse, FlowUpdateParams, FlowUpdateResponse, FlowValidateParams, FlowValidateResponse, FlowVerifyParams, FlowVerifyResponse, Flows } from "./flows/flows.mjs";
|
|
16
16
|
export declare class Workflows extends APIResource {
|
|
17
17
|
triggers: TriggersAPI.Triggers;
|
|
18
18
|
actionCatalog: ActionCatalogAPI.ActionCatalog;
|
|
@@ -26,7 +26,7 @@ export declare namespace Workflows {
|
|
|
26
26
|
export { Triggers as Triggers, type TriggerCreateResponse as TriggerCreateResponse, type TriggerRetrieveResponse as TriggerRetrieveResponse, type TriggerUpdateResponse as TriggerUpdateResponse, type TriggerListResponse as TriggerListResponse, type TriggerDeleteResponse as TriggerDeleteResponse, type TriggerFireResponse as TriggerFireResponse, type TriggerCreateParams as TriggerCreateParams, type TriggerUpdateParams as TriggerUpdateParams, type TriggerListParams as TriggerListParams, type TriggerFireParams as TriggerFireParams, };
|
|
27
27
|
export { ActionCatalog as ActionCatalog, type ActionCatalogRetrieveResponse as ActionCatalogRetrieveResponse, type ActionCatalogListResponse as ActionCatalogListResponse, type ActionCatalogListParams as ActionCatalogListParams, };
|
|
28
28
|
export { Actions as Actions, 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, };
|
|
29
|
-
export { Flows as Flows, type FlowCreateResponse as FlowCreateResponse, type FlowRetrieveResponse as FlowRetrieveResponse, type FlowUpdateResponse as FlowUpdateResponse, type FlowListResponse as FlowListResponse, type FlowDeleteResponse as FlowDeleteResponse, type FlowCapacityResponse as FlowCapacityResponse, type FlowCloneResponse as FlowCloneResponse, type FlowDryRunResponse as FlowDryRunResponse, type FlowListRepairsResponse as FlowListRepairsResponse, type FlowUnblockResponse as FlowUnblockResponse, type FlowCreateParams as FlowCreateParams, type FlowUpdateParams as FlowUpdateParams, type FlowListParams as FlowListParams, type FlowCloneParams as FlowCloneParams, type FlowDryRunParams as FlowDryRunParams, };
|
|
29
|
+
export { Flows as Flows, type FlowCreateResponse as FlowCreateResponse, type FlowRetrieveResponse as FlowRetrieveResponse, type FlowUpdateResponse as FlowUpdateResponse, type FlowListResponse as FlowListResponse, type FlowDeleteResponse as FlowDeleteResponse, type FlowActivateResponse as FlowActivateResponse, type FlowCapacityResponse as FlowCapacityResponse, type FlowCloneResponse as FlowCloneResponse, type FlowDeliveryOptionsResponse as FlowDeliveryOptionsResponse, type FlowDryRunResponse as FlowDryRunResponse, type FlowListRepairsResponse as FlowListRepairsResponse, type FlowRunResponse as FlowRunResponse, type FlowTemplateContextResponse as FlowTemplateContextResponse, type FlowUnblockResponse as FlowUnblockResponse, type FlowValidateResponse as FlowValidateResponse, type FlowVerifyResponse as FlowVerifyResponse, type FlowCreateParams as FlowCreateParams, type FlowUpdateParams as FlowUpdateParams, type FlowListParams as FlowListParams, type FlowActivateParams as FlowActivateParams, type FlowCloneParams as FlowCloneParams, type FlowDryRunParams as FlowDryRunParams, type FlowRunParams as FlowRunParams, type FlowTemplateContextParams as FlowTemplateContextParams, type FlowValidateParams as FlowValidateParams, type FlowVerifyParams as FlowVerifyParams, };
|
|
30
30
|
export { Events as Events, type EventDryRunResponse as EventDryRunResponse, type EventIngestResponse as EventIngestResponse, type EventDryRunParams as EventDryRunParams, type EventIngestParams as EventIngestParams, };
|
|
31
31
|
export { Executions as Executions, type ExecutionRetrieveResponse as ExecutionRetrieveResponse, type ExecutionListResponse as ExecutionListResponse, type ExecutionAbortResponse as ExecutionAbortResponse, type ExecutionGetMetricsResponse as ExecutionGetMetricsResponse, type ExecutionListParams as ExecutionListParams, type ExecutionGetMetricsParams as ExecutionGetMetricsParams, };
|
|
32
32
|
export { Timezones as Timezones, type TimezoneListResponse as TimezoneListResponse };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflows.d.mts","sourceRoot":"","sources":["../../src/resources/workflows/workflows.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,gBAAgB,6BAAyB;AACrD,OAAO,EACL,aAAa,EACb,uBAAuB,EACvB,yBAAyB,EACzB,6BAA6B,EAC9B,6BAAyB;AAC1B,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,MAAM,EACP,qBAAiB;AAClB,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"workflows.d.mts","sourceRoot":"","sources":["../../src/resources/workflows/workflows.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,gBAAgB,6BAAyB;AACrD,OAAO,EACL,aAAa,EACb,uBAAuB,EACvB,yBAAyB,EACzB,6BAA6B,EAC9B,6BAAyB;AAC1B,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,MAAM,EACP,qBAAiB;AAClB,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAAE,wBAAoB;AAC9D,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,QAAQ,EACT,uBAAmB;AACpB,OAAO,KAAK,UAAU,8BAA0B;AAChD,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,EACpB,OAAO,EACR,8BAA0B;AAC3B,OAAO,KAAK,aAAa,oCAAgC;AACzD,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EACzB,2BAA2B,EAC3B,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,UAAU,EACX,oCAAgC;AACjC,O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