@zapier/zapier-sdk 0.64.0 → 0.67.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 +47 -0
- package/README.md +165 -6
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/client.js +2 -0
- package/dist/api/debug.d.ts.map +1 -1
- package/dist/api/debug.js +6 -4
- package/dist/api/polling.d.ts +2 -0
- package/dist/api/polling.d.ts.map +1 -1
- package/dist/api/polling.js +10 -2
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +8 -5
- package/dist/core-stack.d.ts +24 -0
- package/dist/core-stack.d.ts.map +1 -0
- package/dist/core-stack.js +32 -0
- package/dist/experimental.cjs +1803 -1332
- package/dist/experimental.d.mts +3508 -182
- package/dist/experimental.d.ts +3578 -252
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +120 -84
- package/dist/experimental.mjs +1789 -1331
- package/dist/formatters/action.d.ts +4 -0
- package/dist/formatters/action.d.ts.map +1 -0
- package/dist/formatters/action.js +18 -0
- package/dist/formatters/actionResult.d.ts +3 -0
- package/dist/formatters/actionResult.d.ts.map +1 -0
- package/dist/formatters/actionResult.js +25 -0
- package/dist/formatters/app.d.ts +4 -0
- package/dist/formatters/app.d.ts.map +1 -0
- package/dist/formatters/app.js +10 -0
- package/dist/formatters/clientCredentials.d.ts +5 -0
- package/dist/formatters/clientCredentials.d.ts.map +1 -0
- package/dist/formatters/clientCredentials.js +27 -0
- package/dist/formatters/connection.d.ts +4 -0
- package/dist/formatters/connection.d.ts.map +1 -0
- package/dist/formatters/connection.js +26 -0
- package/dist/formatters/field.d.ts +4 -0
- package/dist/formatters/field.d.ts.map +1 -0
- package/dist/formatters/field.js +51 -0
- package/dist/formatters/inputFieldChoice.d.ts +4 -0
- package/dist/formatters/inputFieldChoice.d.ts.map +1 -0
- package/dist/formatters/inputFieldChoice.js +16 -0
- package/dist/formatters/tableField.d.ts +4 -0
- package/dist/formatters/tableField.d.ts.map +1 -0
- package/dist/formatters/tableField.js +7 -0
- package/dist/formatters/tableRecord.d.ts +5 -3
- package/dist/formatters/tableRecord.d.ts.map +1 -1
- package/dist/formatters/tableRecord.js +4 -3
- package/dist/formatters/triggerInbox.d.ts +4 -0
- package/dist/formatters/triggerInbox.d.ts.map +1 -0
- package/dist/formatters/triggerInbox.js +31 -0
- package/dist/formatters/triggerMessage.d.ts +5 -0
- package/dist/formatters/triggerMessage.d.ts.map +1 -0
- package/dist/formatters/triggerMessage.js +34 -0
- package/dist/formatters/userProfile.d.ts +4 -0
- package/dist/formatters/userProfile.d.ts.map +1 -0
- package/dist/formatters/userProfile.js +19 -0
- package/dist/{index-Bfvj0KLi.d.mts → index-Dh0b5NAY.d.mts} +13058 -7731
- package/dist/{index-Bfvj0KLi.d.ts → index-Dh0b5NAY.d.ts} +13058 -7731
- package/dist/index.cjs +1745 -1464
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +12 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -7
- package/dist/index.mjs +1731 -1463
- package/dist/plugins/api/index.d.ts +1 -1
- package/dist/plugins/api/index.js +1 -1
- package/dist/plugins/apps/index.d.ts +8 -5
- package/dist/plugins/apps/index.d.ts.map +1 -1
- package/dist/plugins/apps/index.js +1 -1
- package/dist/plugins/capabilities/index.d.ts +1 -1
- package/dist/plugins/capabilities/index.js +1 -1
- package/dist/plugins/codeSubstrate/cancelDurableRun/index.d.ts +32 -2
- package/dist/plugins/codeSubstrate/cancelDurableRun/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/cancelDurableRun/index.js +1 -1
- package/dist/plugins/codeSubstrate/createWorkflow/index.d.ts +2 -2
- package/dist/plugins/codeSubstrate/createWorkflow/index.js +1 -1
- package/dist/plugins/codeSubstrate/deleteWorkflow/index.d.ts +27 -2
- package/dist/plugins/codeSubstrate/deleteWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/deleteWorkflow/index.js +1 -1
- package/dist/plugins/codeSubstrate/disableWorkflow/index.d.ts +27 -2
- package/dist/plugins/codeSubstrate/disableWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/disableWorkflow/index.js +1 -1
- package/dist/plugins/codeSubstrate/enableWorkflow/index.d.ts +27 -2
- package/dist/plugins/codeSubstrate/enableWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/enableWorkflow/index.js +1 -1
- package/dist/plugins/codeSubstrate/getDurableRun/index.d.ts +32 -2
- package/dist/plugins/codeSubstrate/getDurableRun/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getDurableRun/index.js +1 -1
- package/dist/plugins/codeSubstrate/getTriggerRun/index.d.ts +47 -0
- package/dist/plugins/codeSubstrate/getTriggerRun/index.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/getTriggerRun/index.js +23 -0
- package/dist/plugins/codeSubstrate/getTriggerRun/schemas.d.ts +24 -0
- package/dist/plugins/codeSubstrate/getTriggerRun/schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/getTriggerRun/schemas.js +30 -0
- package/dist/plugins/codeSubstrate/getWorkflow/index.d.ts +27 -2
- package/dist/plugins/codeSubstrate/getWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getWorkflow/index.js +1 -1
- package/dist/plugins/codeSubstrate/getWorkflowRun/index.d.ts +102 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/index.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/index.js +25 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/schemas.d.ts +26 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/schemas.js +43 -0
- package/dist/plugins/codeSubstrate/getWorkflowVersion/index.d.ts +51 -2
- package/dist/plugins/codeSubstrate/getWorkflowVersion/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getWorkflowVersion/index.js +1 -1
- package/dist/plugins/codeSubstrate/listDurableRuns/index.d.ts +3 -3
- package/dist/plugins/codeSubstrate/listDurableRuns/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listDurableRuns/index.js +1 -1
- package/dist/plugins/codeSubstrate/listWorkflowRuns/index.d.ts +78 -0
- package/dist/plugins/codeSubstrate/listWorkflowRuns/index.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/listWorkflowRuns/index.js +34 -0
- package/dist/plugins/codeSubstrate/listWorkflowRuns/schemas.d.ts +65 -0
- package/dist/plugins/codeSubstrate/listWorkflowRuns/schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/listWorkflowRuns/schemas.js +69 -0
- package/dist/plugins/codeSubstrate/listWorkflowVersions/index.d.ts +28 -3
- package/dist/plugins/codeSubstrate/listWorkflowVersions/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listWorkflowVersions/index.js +1 -1
- package/dist/plugins/codeSubstrate/listWorkflows/index.d.ts +3 -3
- package/dist/plugins/codeSubstrate/listWorkflows/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listWorkflows/index.js +2 -3
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.d.ts +27 -2
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.js +1 -1
- package/dist/plugins/codeSubstrate/runDurable/index.d.ts +2 -2
- package/dist/plugins/codeSubstrate/runDurable/index.js +1 -1
- package/dist/plugins/codeSubstrate/triggerWorkflow/index.d.ts +73 -0
- package/dist/plugins/codeSubstrate/triggerWorkflow/index.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/triggerWorkflow/index.js +52 -0
- package/dist/plugins/codeSubstrate/triggerWorkflow/schemas.d.ts +16 -0
- package/dist/plugins/codeSubstrate/triggerWorkflow/schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/triggerWorkflow/schemas.js +31 -0
- package/dist/plugins/codeSubstrate/updateWorkflow/index.d.ts +27 -2
- package/dist/plugins/codeSubstrate/updateWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/updateWorkflow/index.js +1 -1
- package/dist/plugins/connections/index.d.ts +1 -1
- package/dist/plugins/connections/index.js +1 -1
- package/dist/plugins/createClientCredentials/index.d.ts +2 -2
- package/dist/plugins/createClientCredentials/index.d.ts.map +1 -1
- package/dist/plugins/createClientCredentials/index.js +4 -2
- package/dist/plugins/createClientCredentials/schemas.d.ts +1 -2
- package/dist/plugins/createClientCredentials/schemas.d.ts.map +1 -1
- package/dist/plugins/deleteClientCredentials/index.d.ts +24 -2
- package/dist/plugins/deleteClientCredentials/index.d.ts.map +1 -1
- package/dist/plugins/deleteClientCredentials/index.js +2 -2
- package/dist/plugins/deleteClientCredentials/schemas.d.ts +1 -2
- package/dist/plugins/deleteClientCredentials/schemas.d.ts.map +1 -1
- package/dist/plugins/deprecated/authentications.d.ts +144 -16
- package/dist/plugins/deprecated/authentications.d.ts.map +1 -1
- package/dist/plugins/deprecated/authentications.js +14 -5
- package/dist/plugins/deprecated/inputFields.d.ts +58 -23
- package/dist/plugins/deprecated/inputFields.d.ts.map +1 -1
- package/dist/plugins/deprecated/inputFields.js +15 -7
- package/dist/plugins/eventEmission/event-emission-hook.d.ts +10 -0
- package/dist/plugins/eventEmission/event-emission-hook.d.ts.map +1 -0
- package/dist/plugins/eventEmission/event-emission-hook.js +47 -0
- package/dist/plugins/eventEmission/index.d.ts +5 -3
- package/dist/plugins/eventEmission/index.d.ts.map +1 -1
- package/dist/plugins/eventEmission/index.js +16 -9
- package/dist/plugins/eventEmission/method-metadata.d.ts +16 -0
- package/dist/plugins/eventEmission/method-metadata.d.ts.map +1 -0
- package/dist/plugins/eventEmission/method-metadata.js +20 -0
- package/dist/plugins/eventEmission/transport.d.ts.map +1 -1
- package/dist/plugins/eventEmission/transport.js +2 -1
- package/dist/plugins/fetch/index.d.ts +11 -5
- package/dist/plugins/fetch/index.d.ts.map +1 -1
- package/dist/plugins/fetch/index.js +42 -32
- package/dist/plugins/fetch/schemas.d.ts +1 -1
- package/dist/plugins/findFirstConnection/index.d.ts +4 -4
- package/dist/plugins/findFirstConnection/index.d.ts.map +1 -1
- package/dist/plugins/findFirstConnection/index.js +4 -2
- package/dist/plugins/findFirstConnection/schemas.d.ts +2 -2
- package/dist/plugins/findUniqueConnection/index.d.ts +4 -4
- package/dist/plugins/findUniqueConnection/index.d.ts.map +1 -1
- package/dist/plugins/findUniqueConnection/index.js +4 -2
- package/dist/plugins/findUniqueConnection/schemas.d.ts +2 -2
- package/dist/plugins/getAction/index.d.ts +141 -4
- package/dist/plugins/getAction/index.d.ts.map +1 -1
- package/dist/plugins/getAction/index.js +5 -3
- package/dist/plugins/getAction/schemas.d.ts +6 -6
- package/dist/plugins/getActionInputFieldsSchema/index.d.ts +232 -3
- package/dist/plugins/getActionInputFieldsSchema/index.d.ts.map +1 -1
- package/dist/plugins/getActionInputFieldsSchema/index.js +3 -3
- package/dist/plugins/getActionInputFieldsSchema/schemas.d.ts +6 -6
- package/dist/plugins/getApp/index.d.ts +4 -4
- package/dist/plugins/getApp/index.d.ts.map +1 -1
- package/dist/plugins/getApp/index.js +3 -1
- package/dist/plugins/getApp/schemas.d.ts +4 -4
- package/dist/plugins/getConnection/index.d.ts +125 -2
- package/dist/plugins/getConnection/index.d.ts.map +1 -1
- package/dist/plugins/getConnection/index.js +4 -2
- package/dist/plugins/getProfile/index.d.ts +2 -2
- package/dist/plugins/getProfile/index.d.ts.map +1 -1
- package/dist/plugins/getProfile/index.js +4 -2
- package/dist/plugins/getProfile/schemas.d.ts +1 -2
- package/dist/plugins/getProfile/schemas.d.ts.map +1 -1
- package/dist/plugins/listActionInputFieldChoices/index.d.ts +287 -4
- package/dist/plugins/listActionInputFieldChoices/index.d.ts.map +1 -1
- package/dist/plugins/listActionInputFieldChoices/index.js +6 -4
- package/dist/plugins/listActionInputFieldChoices/schemas.d.ts +8 -8
- package/dist/plugins/listActionInputFieldChoices/schemas.d.ts.map +1 -1
- package/dist/plugins/listActionInputFieldChoices/schemas.js +1 -22
- package/dist/plugins/listActionInputFields/index.d.ts +168 -5
- package/dist/plugins/listActionInputFields/index.d.ts.map +1 -1
- package/dist/plugins/listActionInputFields/index.js +7 -5
- package/dist/plugins/listActionInputFields/schemas.d.ts +6 -6
- package/dist/plugins/listActions/index.d.ts +140 -3
- package/dist/plugins/listActions/index.d.ts.map +1 -1
- package/dist/plugins/listActions/index.js +6 -4
- package/dist/plugins/listActions/schemas.d.ts +4 -4
- package/dist/plugins/listApps/index.d.ts +3 -3
- package/dist/plugins/listApps/index.d.ts.map +1 -1
- package/dist/plugins/listApps/index.js +6 -4
- package/dist/plugins/listClientCredentials/index.d.ts +3 -3
- package/dist/plugins/listClientCredentials/index.d.ts.map +1 -1
- package/dist/plugins/listClientCredentials/index.js +6 -4
- package/dist/plugins/listConnections/index.d.ts +140 -3
- package/dist/plugins/listConnections/index.d.ts.map +1 -1
- package/dist/plugins/listConnections/index.js +7 -5
- package/dist/plugins/listConnections/schemas.d.ts +2 -2
- package/dist/plugins/manifest/index.d.ts +1 -1
- package/dist/plugins/manifest/index.d.ts.map +1 -1
- package/dist/plugins/manifest/index.js +6 -4
- package/dist/plugins/registry/index.d.ts +1 -1
- package/dist/plugins/registry/index.js +1 -1
- package/dist/plugins/request/index.d.ts +8 -5
- package/dist/plugins/request/index.d.ts.map +1 -1
- package/dist/plugins/request/index.js +4 -3
- package/dist/plugins/request/schemas.d.ts +2 -2
- package/dist/plugins/runAction/index.d.ts +168 -5
- package/dist/plugins/runAction/index.d.ts.map +1 -1
- package/dist/plugins/runAction/index.js +9 -5
- package/dist/plugins/runAction/schemas.d.ts +6 -6
- package/dist/plugins/tables/createTable/index.d.ts +2 -2
- package/dist/plugins/tables/createTable/index.js +2 -2
- package/dist/plugins/tables/createTable/schemas.d.ts +1 -2
- package/dist/plugins/tables/createTable/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/createTableFields/index.d.ts +34 -2
- package/dist/plugins/tables/createTableFields/index.d.ts.map +1 -1
- package/dist/plugins/tables/createTableFields/index.js +4 -2
- package/dist/plugins/tables/createTableFields/schemas.d.ts +3 -4
- package/dist/plugins/tables/createTableFields/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/createTableRecords/index.d.ts +63 -2
- package/dist/plugins/tables/createTableRecords/index.d.ts.map +1 -1
- package/dist/plugins/tables/createTableRecords/index.js +2 -2
- package/dist/plugins/tables/createTableRecords/schemas.d.ts +3 -4
- package/dist/plugins/tables/createTableRecords/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/deleteTable/index.d.ts +34 -2
- package/dist/plugins/tables/deleteTable/index.d.ts.map +1 -1
- package/dist/plugins/tables/deleteTable/index.js +2 -2
- package/dist/plugins/tables/deleteTable/schemas.d.ts +3 -4
- package/dist/plugins/tables/deleteTable/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/deleteTableFields/index.d.ts +63 -2
- package/dist/plugins/tables/deleteTableFields/index.d.ts.map +1 -1
- package/dist/plugins/tables/deleteTableFields/index.js +2 -2
- package/dist/plugins/tables/deleteTableFields/schemas.d.ts +4 -5
- package/dist/plugins/tables/deleteTableFields/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/deleteTableRecords/index.d.ts +84 -2
- package/dist/plugins/tables/deleteTableRecords/index.d.ts.map +1 -1
- package/dist/plugins/tables/deleteTableRecords/index.js +2 -2
- package/dist/plugins/tables/deleteTableRecords/schemas.d.ts +4 -5
- package/dist/plugins/tables/deleteTableRecords/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/getTable/index.d.ts +34 -2
- package/dist/plugins/tables/getTable/index.d.ts.map +1 -1
- package/dist/plugins/tables/getTable/index.js +2 -2
- package/dist/plugins/tables/getTable/schemas.d.ts +2 -2
- package/dist/plugins/tables/getTableRecord/index.d.ts +84 -2
- package/dist/plugins/tables/getTableRecord/index.d.ts.map +1 -1
- package/dist/plugins/tables/getTableRecord/index.js +2 -2
- package/dist/plugins/tables/getTableRecord/schemas.d.ts +6 -7
- package/dist/plugins/tables/getTableRecord/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/getTableRecord/schemas.js +1 -10
- package/dist/plugins/tables/listTableFields/index.d.ts +34 -2
- package/dist/plugins/tables/listTableFields/index.d.ts.map +1 -1
- package/dist/plugins/tables/listTableFields/index.js +4 -2
- package/dist/plugins/tables/listTableFields/schemas.d.ts +4 -5
- package/dist/plugins/tables/listTableFields/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/listTableFields/schemas.js +1 -9
- package/dist/plugins/tables/listTableRecords/index.d.ts +65 -4
- package/dist/plugins/tables/listTableRecords/index.d.ts.map +1 -1
- package/dist/plugins/tables/listTableRecords/index.js +3 -3
- package/dist/plugins/tables/listTableRecords/schemas.d.ts +2 -2
- package/dist/plugins/tables/listTables/index.d.ts +3 -3
- package/dist/plugins/tables/listTables/index.d.ts.map +1 -1
- package/dist/plugins/tables/listTables/index.js +4 -4
- package/dist/plugins/tables/updateTableRecords/index.d.ts +63 -2
- package/dist/plugins/tables/updateTableRecords/index.d.ts.map +1 -1
- package/dist/plugins/tables/updateTableRecords/index.js +2 -2
- package/dist/plugins/tables/updateTableRecords/schemas.d.ts +3 -4
- package/dist/plugins/tables/updateTableRecords/schemas.d.ts.map +1 -1
- package/dist/plugins/triggers/ackTriggerInboxMessages/index.d.ts +59 -2
- package/dist/plugins/triggers/ackTriggerInboxMessages/index.d.ts.map +1 -1
- package/dist/plugins/triggers/ackTriggerInboxMessages/index.js +1 -1
- package/dist/plugins/triggers/ackTriggerInboxMessages/schemas.d.ts +1 -1
- package/dist/plugins/triggers/createTriggerInbox/index.d.ts +231 -2
- package/dist/plugins/triggers/createTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/createTriggerInbox/index.js +3 -1
- package/dist/plugins/triggers/createTriggerInbox/schemas.d.ts +3 -4
- package/dist/plugins/triggers/createTriggerInbox/schemas.d.ts.map +1 -1
- package/dist/plugins/triggers/deleteTriggerInbox/index.d.ts +33 -2
- package/dist/plugins/triggers/deleteTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/deleteTriggerInbox/index.js +3 -1
- package/dist/plugins/triggers/deleteTriggerInbox/schemas.d.ts +2 -3
- package/dist/plugins/triggers/deleteTriggerInbox/schemas.d.ts.map +1 -1
- package/dist/plugins/triggers/drainTriggerInbox/index.d.ts +68 -6
- package/dist/plugins/triggers/drainTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/drainTriggerInbox/index.js +1 -1
- package/dist/plugins/triggers/drainTriggerInbox/schemas.d.ts +2 -2
- package/dist/plugins/triggers/ensureTriggerInbox/index.d.ts +231 -2
- package/dist/plugins/triggers/ensureTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/ensureTriggerInbox/index.js +3 -1
- package/dist/plugins/triggers/ensureTriggerInbox/schemas.d.ts +3 -4
- package/dist/plugins/triggers/ensureTriggerInbox/schemas.d.ts.map +1 -1
- package/dist/plugins/triggers/getTriggerInbox/index.d.ts +33 -2
- package/dist/plugins/triggers/getTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/getTriggerInbox/index.js +3 -1
- package/dist/plugins/triggers/getTriggerInbox/schemas.d.ts +2 -3
- package/dist/plugins/triggers/getTriggerInbox/schemas.d.ts.map +1 -1
- package/dist/plugins/triggers/getTriggerInputFieldsSchema/index.d.ts +232 -3
- package/dist/plugins/triggers/getTriggerInputFieldsSchema/index.d.ts.map +1 -1
- package/dist/plugins/triggers/getTriggerInputFieldsSchema/index.js +1 -1
- package/dist/plugins/triggers/getTriggerInputFieldsSchema/schemas.d.ts +2 -2
- package/dist/plugins/triggers/leaseTriggerInboxMessages/index.d.ts +33 -2
- package/dist/plugins/triggers/leaseTriggerInboxMessages/index.d.ts.map +1 -1
- package/dist/plugins/triggers/leaseTriggerInboxMessages/index.js +1 -1
- package/dist/plugins/triggers/leaseTriggerInboxMessages/schemas.d.ts +1 -1
- package/dist/plugins/triggers/listTriggerInboxMessages/index.d.ts +34 -3
- package/dist/plugins/triggers/listTriggerInboxMessages/index.d.ts.map +1 -1
- package/dist/plugins/triggers/listTriggerInboxMessages/index.js +5 -13
- package/dist/plugins/triggers/listTriggerInboxMessages/schemas.d.ts +1 -1
- package/dist/plugins/triggers/listTriggerInboxes/index.d.ts +3 -3
- package/dist/plugins/triggers/listTriggerInboxes/index.d.ts.map +1 -1
- package/dist/plugins/triggers/listTriggerInboxes/index.js +5 -14
- package/dist/plugins/triggers/listTriggerInputFieldChoices/index.d.ts +288 -5
- package/dist/plugins/triggers/listTriggerInputFieldChoices/index.d.ts.map +1 -1
- package/dist/plugins/triggers/listTriggerInputFieldChoices/index.js +7 -5
- package/dist/plugins/triggers/listTriggerInputFieldChoices/schemas.d.ts +3 -3
- package/dist/plugins/triggers/listTriggerInputFields/index.d.ts +234 -5
- package/dist/plugins/triggers/listTriggerInputFields/index.d.ts.map +1 -1
- package/dist/plugins/triggers/listTriggerInputFields/index.js +6 -5
- package/dist/plugins/triggers/listTriggerInputFields/schemas.d.ts +2 -2
- package/dist/plugins/triggers/listTriggers/index.d.ts +142 -5
- package/dist/plugins/triggers/listTriggers/index.d.ts.map +1 -1
- package/dist/plugins/triggers/listTriggers/index.js +6 -5
- package/dist/plugins/triggers/listTriggers/schemas.d.ts +1 -1
- package/dist/plugins/triggers/pauseTriggerInbox/index.d.ts +33 -2
- package/dist/plugins/triggers/pauseTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/pauseTriggerInbox/index.js +3 -1
- package/dist/plugins/triggers/pauseTriggerInbox/schemas.d.ts +2 -3
- package/dist/plugins/triggers/pauseTriggerInbox/schemas.d.ts.map +1 -1
- package/dist/plugins/triggers/releaseTriggerInboxMessages/index.d.ts +59 -2
- package/dist/plugins/triggers/releaseTriggerInboxMessages/index.d.ts.map +1 -1
- package/dist/plugins/triggers/releaseTriggerInboxMessages/index.js +1 -1
- package/dist/plugins/triggers/releaseTriggerInboxMessages/schemas.d.ts +1 -1
- package/dist/plugins/triggers/resumeTriggerInbox/index.d.ts +33 -2
- package/dist/plugins/triggers/resumeTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/resumeTriggerInbox/index.js +3 -1
- package/dist/plugins/triggers/resumeTriggerInbox/schemas.d.ts +2 -3
- package/dist/plugins/triggers/resumeTriggerInbox/schemas.d.ts.map +1 -1
- package/dist/plugins/triggers/updateTriggerInbox/index.d.ts +33 -2
- package/dist/plugins/triggers/updateTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/updateTriggerInbox/index.js +3 -1
- package/dist/plugins/triggers/updateTriggerInbox/schemas.d.ts +2 -3
- package/dist/plugins/triggers/updateTriggerInbox/schemas.d.ts.map +1 -1
- package/dist/plugins/triggers/watchTriggerInbox/index.d.ts +37 -6
- package/dist/plugins/triggers/watchTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/watchTriggerInbox/index.js +1 -1
- package/dist/resolvers/actionKey.d.ts +3 -2
- package/dist/resolvers/actionKey.d.ts.map +1 -1
- package/dist/resolvers/actionType.d.ts +7 -2
- package/dist/resolvers/actionType.d.ts.map +1 -1
- package/dist/resolvers/actionType.js +3 -0
- package/dist/resolvers/appKey.d.ts +10 -5
- package/dist/resolvers/appKey.d.ts.map +1 -1
- package/dist/resolvers/appKey.js +3 -0
- package/dist/resolvers/clientCredentialsName.d.ts +1 -1
- package/dist/resolvers/clientCredentialsName.d.ts.map +1 -1
- package/dist/resolvers/clientId.d.ts +3 -2
- package/dist/resolvers/clientId.d.ts.map +1 -1
- package/dist/resolvers/clientId.js +1 -1
- package/dist/resolvers/connectionId.d.ts +5 -2
- package/dist/resolvers/connectionId.d.ts.map +1 -1
- package/dist/resolvers/connectionId.js +1 -1
- package/dist/resolvers/durableRunId.d.ts +3 -2
- package/dist/resolvers/durableRunId.d.ts.map +1 -1
- package/dist/resolvers/durableRunId.js +3 -2
- package/dist/resolvers/index.d.ts +1 -0
- package/dist/resolvers/index.d.ts.map +1 -1
- package/dist/resolvers/index.js +1 -0
- package/dist/resolvers/inputFieldKey.d.ts +3 -2
- package/dist/resolvers/inputFieldKey.d.ts.map +1 -1
- package/dist/resolvers/inputFieldKey.js +1 -1
- package/dist/resolvers/tableFieldIds.d.ts +3 -2
- package/dist/resolvers/tableFieldIds.d.ts.map +1 -1
- package/dist/resolvers/tableFields.d.ts +2 -2
- package/dist/resolvers/tableFields.d.ts.map +1 -1
- package/dist/resolvers/tableFilters.d.ts +3 -2
- package/dist/resolvers/tableFilters.d.ts.map +1 -1
- package/dist/resolvers/tableId.d.ts +3 -2
- package/dist/resolvers/tableId.d.ts.map +1 -1
- package/dist/resolvers/tableId.js +1 -1
- package/dist/resolvers/tableName.d.ts +1 -1
- package/dist/resolvers/tableName.d.ts.map +1 -1
- package/dist/resolvers/tableRecordId.d.ts +4 -3
- package/dist/resolvers/tableRecordId.d.ts.map +1 -1
- package/dist/resolvers/tableRecords.d.ts +4 -3
- package/dist/resolvers/tableRecords.d.ts.map +1 -1
- package/dist/resolvers/tableSort.d.ts +3 -2
- package/dist/resolvers/tableSort.d.ts.map +1 -1
- package/dist/resolvers/triggerInbox.d.ts +3 -2
- package/dist/resolvers/triggerInbox.d.ts.map +1 -1
- package/dist/resolvers/triggerInbox.js +1 -1
- package/dist/resolvers/triggerMessages.d.ts +3 -2
- package/dist/resolvers/triggerMessages.d.ts.map +1 -1
- package/dist/resolvers/triggerMessages.js +2 -4
- package/dist/resolvers/workflowId.d.ts +3 -2
- package/dist/resolvers/workflowId.d.ts.map +1 -1
- package/dist/resolvers/workflowId.js +3 -2
- package/dist/resolvers/workflowRunId.d.ts +7 -0
- package/dist/resolvers/workflowRunId.d.ts.map +1 -0
- package/dist/resolvers/workflowRunId.js +20 -0
- package/dist/resolvers/workflowVersionId.d.ts +3 -2
- package/dist/resolvers/workflowVersionId.d.ts.map +1 -1
- package/dist/resolvers/workflowVersionId.js +7 -7
- package/dist/schemas/Action.d.ts.map +1 -1
- package/dist/schemas/Action.js +6 -30
- package/dist/schemas/App.d.ts +0 -1
- package/dist/schemas/App.d.ts.map +1 -1
- package/dist/schemas/App.js +2 -14
- package/dist/schemas/ClientCredentials.d.ts.map +1 -1
- package/dist/schemas/ClientCredentials.js +3 -41
- package/dist/schemas/Connection.d.ts.map +1 -1
- package/dist/schemas/Connection.js +2 -28
- package/dist/schemas/Field.d.ts.map +1 -1
- package/dist/schemas/Field.js +3 -70
- package/dist/schemas/Run.d.ts.map +1 -1
- package/dist/schemas/Run.js +3 -29
- package/dist/schemas/TriggerInbox.d.ts.map +1 -1
- package/dist/schemas/TriggerInbox.js +1 -33
- package/dist/schemas/TriggerMessage.d.ts.map +1 -1
- package/dist/schemas/TriggerMessage.js +2 -60
- package/dist/schemas/UserProfile.d.ts +0 -1
- package/dist/schemas/UserProfile.d.ts.map +1 -1
- package/dist/schemas/UserProfile.js +1 -20
- package/dist/sdk.d.ts +2761 -441
- package/dist/sdk.d.ts.map +1 -1
- package/dist/sdk.js +93 -129
- package/dist/types/errors.d.ts +44 -42
- package/dist/types/errors.d.ts.map +1 -1
- package/dist/types/errors.js +79 -33
- package/dist/types/functions.d.ts +1 -41
- package/dist/types/functions.d.ts.map +1 -1
- package/dist/types/properties.d.ts +7 -7
- package/dist/types/properties.js +1 -1
- package/dist/types/sdk.d.ts +1 -1
- package/dist/types/sdk.d.ts.map +1 -1
- package/dist/utils/domain-utils.js +1 -1
- package/dist/utils/logging.d.ts +1 -12
- package/dist/utils/logging.d.ts.map +1 -1
- package/dist/utils/logging.js +2 -20
- package/dist/utils/pagination.d.ts +38 -0
- package/dist/utils/pagination.d.ts.map +1 -0
- package/dist/utils/pagination.js +53 -0
- package/package.json +3 -2
- package/dist/registry.d.ts +0 -9
- package/dist/registry.d.ts.map +0 -1
- package/dist/registry.js +0 -103
- package/dist/types/meta.d.ts +0 -9
- package/dist/types/meta.d.ts.map +0 -1
- package/dist/types/meta.js +0 -3
- package/dist/types/plugin.d.ts +0 -84
- package/dist/types/plugin.d.ts.map +0 -1
- package/dist/types/plugin.js +0 -13
- package/dist/types/registry.d.ts +0 -54
- package/dist/types/registry.d.ts.map +0 -1
- package/dist/types/registry.js +0 -1
- package/dist/utils/function-utils.d.ts +0 -59
- package/dist/utils/function-utils.d.ts.map +0 -1
- package/dist/utils/function-utils.js +0 -245
- package/dist/utils/pagination-utils.d.ts +0 -73
- package/dist/utils/pagination-utils.d.ts.map +0 -1
- package/dist/utils/pagination-utils.js +0 -308
- package/dist/utils/plugin-utils.d.ts +0 -245
- package/dist/utils/plugin-utils.d.ts.map +0 -1
- package/dist/utils/plugin-utils.js +0 -234
- package/dist/utils/schema-utils.d.ts +0 -211
- package/dist/utils/schema-utils.d.ts.map +0 -1
- package/dist/utils/schema-utils.js +0 -72
- package/dist/utils/string-utils.d.ts +0 -40
- package/dist/utils/string-utils.d.ts.map +0 -1
- package/dist/utils/string-utils.js +0 -69
- package/dist/utils/telemetry-context.d.ts +0 -15
- package/dist/utils/telemetry-context.d.ts.map +0 -1
- package/dist/utils/telemetry-context.js +0 -48
- package/dist/utils/telemetry-utils.d.ts +0 -44
- package/dist/utils/telemetry-utils.d.ts.map +0 -1
- package/dist/utils/telemetry-utils.js +0 -60
- package/dist/utils/validation.d.ts +0 -4
- package/dist/utils/validation.d.ts.map +0 -1
- package/dist/utils/validation.js +0 -30
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
export declare const getWorkflowRunPlugin: (sdk: {
|
|
2
|
+
context: {
|
|
3
|
+
api: import("../../..").ApiClient;
|
|
4
|
+
resolveCredentials: () => Promise<string | {
|
|
5
|
+
clientId: string;
|
|
6
|
+
clientSecret: string;
|
|
7
|
+
type?: "client_credentials" | undefined;
|
|
8
|
+
baseUrl?: string | undefined;
|
|
9
|
+
scope?: string | undefined;
|
|
10
|
+
} | {
|
|
11
|
+
clientId: string;
|
|
12
|
+
type?: "pkce" | undefined;
|
|
13
|
+
baseUrl?: string | undefined;
|
|
14
|
+
scope?: string | undefined;
|
|
15
|
+
} | undefined>;
|
|
16
|
+
};
|
|
17
|
+
} & {
|
|
18
|
+
context: import("../../eventEmission").EventEmissionContext;
|
|
19
|
+
} & {
|
|
20
|
+
listWorkflows: (options?: ({
|
|
21
|
+
pageSize?: number | undefined;
|
|
22
|
+
maxItems?: number | undefined;
|
|
23
|
+
cursor?: string | undefined;
|
|
24
|
+
} & {
|
|
25
|
+
cursor?: string;
|
|
26
|
+
pageSize?: number;
|
|
27
|
+
maxItems?: number;
|
|
28
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
description: string | null;
|
|
32
|
+
trigger_url: string;
|
|
33
|
+
enabled: boolean;
|
|
34
|
+
current_version_id: string | null;
|
|
35
|
+
created_at: string;
|
|
36
|
+
updated_at: string;
|
|
37
|
+
}>;
|
|
38
|
+
} & {
|
|
39
|
+
context: {
|
|
40
|
+
meta: {
|
|
41
|
+
listWorkflows: import("kitcore").PluginMeta<unknown>;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
} & {
|
|
45
|
+
listWorkflowRuns: (options?: ({
|
|
46
|
+
workflow: string;
|
|
47
|
+
pageSize?: number | undefined;
|
|
48
|
+
cursor?: string | undefined;
|
|
49
|
+
maxItems?: number | undefined;
|
|
50
|
+
} & {
|
|
51
|
+
cursor?: string;
|
|
52
|
+
pageSize?: number;
|
|
53
|
+
maxItems?: number;
|
|
54
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
55
|
+
id: string;
|
|
56
|
+
trigger_id: string | null;
|
|
57
|
+
durable_run_id: string | null;
|
|
58
|
+
workflow_version_id: string | null;
|
|
59
|
+
status: string;
|
|
60
|
+
input: unknown;
|
|
61
|
+
output: unknown;
|
|
62
|
+
error: unknown;
|
|
63
|
+
created_at: string;
|
|
64
|
+
updated_at: string;
|
|
65
|
+
}>;
|
|
66
|
+
} & {
|
|
67
|
+
context: {
|
|
68
|
+
meta: {
|
|
69
|
+
listWorkflowRuns: import("kitcore").PluginMeta<unknown>;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
} & {
|
|
73
|
+
context: {
|
|
74
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
75
|
+
};
|
|
76
|
+
}) => {
|
|
77
|
+
getWorkflowRun: (options?: {
|
|
78
|
+
run: string;
|
|
79
|
+
workflow?: string | undefined;
|
|
80
|
+
} | undefined) => Promise<{
|
|
81
|
+
data: {
|
|
82
|
+
id: string;
|
|
83
|
+
trigger_id: string | null;
|
|
84
|
+
durable_run_id: string | null;
|
|
85
|
+
workflow_version_id: string | null;
|
|
86
|
+
status: string;
|
|
87
|
+
input: unknown;
|
|
88
|
+
output: unknown;
|
|
89
|
+
error: unknown;
|
|
90
|
+
created_at: string;
|
|
91
|
+
updated_at: string;
|
|
92
|
+
};
|
|
93
|
+
}>;
|
|
94
|
+
} & {
|
|
95
|
+
context: {
|
|
96
|
+
meta: {
|
|
97
|
+
getWorkflowRun: import("kitcore").PluginMeta<unknown>;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
export type GetWorkflowRunPluginProvides = ReturnType<typeof getWorkflowRunPlugin>;
|
|
102
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/getWorkflowRun/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BhC,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,UAAU,CACnD,OAAO,oBAAoB,CAC5B,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { definePlugin, createPluginMethod } from "kitcore";
|
|
2
|
+
import { workflowIdResolver } from "../../../resolvers/workflowId";
|
|
3
|
+
import { workflowRunIdResolver } from "../../../resolvers/workflowRunId";
|
|
4
|
+
import { codeSubstrateDefaults } from "../shared";
|
|
5
|
+
import { GetWorkflowRunOptionsSchema, GetWorkflowRunResponseSchema, } from "./schemas";
|
|
6
|
+
export const getWorkflowRunPlugin = definePlugin((sdk) => createPluginMethod(sdk, {
|
|
7
|
+
...codeSubstrateDefaults,
|
|
8
|
+
name: "getWorkflowRun",
|
|
9
|
+
type: "item",
|
|
10
|
+
itemType: "WorkflowRun",
|
|
11
|
+
inputSchema: GetWorkflowRunOptionsSchema,
|
|
12
|
+
outputSchema: GetWorkflowRunResponseSchema,
|
|
13
|
+
resolvers: {
|
|
14
|
+
workflow: workflowIdResolver,
|
|
15
|
+
run: workflowRunIdResolver,
|
|
16
|
+
},
|
|
17
|
+
handler: async ({ sdk, options }) => {
|
|
18
|
+
const raw = await sdk.context.api.get(`/durableworkflowzaps/api/v0/workflows/runs/${encodeURIComponent(options.run)}`, {
|
|
19
|
+
authRequired: true,
|
|
20
|
+
resource: { type: "workflow-run", id: options.run },
|
|
21
|
+
});
|
|
22
|
+
const data = GetWorkflowRunResponseSchema.parse(raw);
|
|
23
|
+
return { data };
|
|
24
|
+
},
|
|
25
|
+
}));
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const GetWorkflowRunOptionsSchema: z.ZodObject<{
|
|
3
|
+
workflow: z.ZodOptional<z.ZodString>;
|
|
4
|
+
run: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export type GetWorkflowRunOptions = z.infer<typeof GetWorkflowRunOptionsSchema>;
|
|
7
|
+
export declare const GetWorkflowRunResponseSchema: z.ZodObject<{
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
trigger_id: z.ZodNullable<z.ZodString>;
|
|
10
|
+
durable_run_id: z.ZodNullable<z.ZodString>;
|
|
11
|
+
workflow_version_id: z.ZodNullable<z.ZodString>;
|
|
12
|
+
status: z.ZodUnion<readonly [z.ZodEnum<{
|
|
13
|
+
initialized: "initialized";
|
|
14
|
+
started: "started";
|
|
15
|
+
finished: "finished";
|
|
16
|
+
failed: "failed";
|
|
17
|
+
cancelled: "cancelled";
|
|
18
|
+
}>, z.ZodString]>;
|
|
19
|
+
input: z.ZodUnknown;
|
|
20
|
+
output: z.ZodNullable<z.ZodUnknown>;
|
|
21
|
+
error: z.ZodNullable<z.ZodUnknown>;
|
|
22
|
+
created_at: z.ZodString;
|
|
23
|
+
updated_at: z.ZodString;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export type GetWorkflowRunResponse = z.infer<typeof GetWorkflowRunResponseSchema>;
|
|
26
|
+
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/getWorkflowRun/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,2BAA2B;;;iBAiBrC,CAAC;AAEJ,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;iBA4BvC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,4BAA4B,CACpC,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { WorkflowRunStatusSchema } from "../listWorkflowRuns/schemas";
|
|
3
|
+
export const GetWorkflowRunOptionsSchema = z
|
|
4
|
+
.object({
|
|
5
|
+
// Picker-only field — the API endpoint is /workflows/runs/:id and
|
|
6
|
+
// does not take a workflow id, but the run-id picker is scoped to a
|
|
7
|
+
// parent workflow so the user can browse runs without enumerating
|
|
8
|
+
// every run across every workflow on the account.
|
|
9
|
+
workflow: z
|
|
10
|
+
.string()
|
|
11
|
+
.uuid()
|
|
12
|
+
.optional()
|
|
13
|
+
.describe("Parent workflow ID — used only to scope the CLI run-id picker; ignored by the API call."),
|
|
14
|
+
run: z.string().uuid().describe("Workflow run ID"),
|
|
15
|
+
})
|
|
16
|
+
.describe("Get the current state of a workflow run (a triggered execution of a deployed workflow)");
|
|
17
|
+
export const GetWorkflowRunResponseSchema = z.object({
|
|
18
|
+
id: z.string().describe("Workflow run ID (UUID)"),
|
|
19
|
+
trigger_id: z
|
|
20
|
+
.string()
|
|
21
|
+
.nullable()
|
|
22
|
+
.describe("ID of the trigger that fired this run, if any"),
|
|
23
|
+
durable_run_id: z
|
|
24
|
+
.string()
|
|
25
|
+
.nullable()
|
|
26
|
+
.describe("Linked sdkdurableapi run ID. Null until the durable run is created."),
|
|
27
|
+
workflow_version_id: z
|
|
28
|
+
.string()
|
|
29
|
+
.nullable()
|
|
30
|
+
.describe("Workflow version the run is bound to"),
|
|
31
|
+
status: WorkflowRunStatusSchema,
|
|
32
|
+
input: z.unknown().describe("Input passed to the run"),
|
|
33
|
+
output: z
|
|
34
|
+
.unknown()
|
|
35
|
+
.nullable()
|
|
36
|
+
.describe("Return value, present when status is `finished`"),
|
|
37
|
+
error: z
|
|
38
|
+
.unknown()
|
|
39
|
+
.nullable()
|
|
40
|
+
.describe("Error payload when status is `failed` (null otherwise)"),
|
|
41
|
+
created_at: z.string().describe("When the run was created (ISO-8601)"),
|
|
42
|
+
updated_at: z.string().describe("When the run was last updated (ISO-8601)"),
|
|
43
|
+
});
|
|
@@ -16,9 +16,58 @@ export declare const getWorkflowVersionPlugin: (sdk: {
|
|
|
16
16
|
};
|
|
17
17
|
} & {
|
|
18
18
|
context: import("../../eventEmission").EventEmissionContext;
|
|
19
|
+
} & {
|
|
20
|
+
listWorkflows: (options?: ({
|
|
21
|
+
pageSize?: number | undefined;
|
|
22
|
+
maxItems?: number | undefined;
|
|
23
|
+
cursor?: string | undefined;
|
|
24
|
+
} & {
|
|
25
|
+
cursor?: string;
|
|
26
|
+
pageSize?: number;
|
|
27
|
+
maxItems?: number;
|
|
28
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
description: string | null;
|
|
32
|
+
trigger_url: string;
|
|
33
|
+
enabled: boolean;
|
|
34
|
+
current_version_id: string | null;
|
|
35
|
+
created_at: string;
|
|
36
|
+
updated_at: string;
|
|
37
|
+
}>;
|
|
38
|
+
} & {
|
|
39
|
+
context: {
|
|
40
|
+
meta: {
|
|
41
|
+
listWorkflows: import("kitcore").PluginMeta<unknown>;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
} & {
|
|
45
|
+
listWorkflowVersions: (options?: ({
|
|
46
|
+
workflow: string;
|
|
47
|
+
pageSize?: number | undefined;
|
|
48
|
+
cursor?: string | undefined;
|
|
49
|
+
maxItems?: number | undefined;
|
|
50
|
+
} & {
|
|
51
|
+
cursor?: string;
|
|
52
|
+
pageSize?: number;
|
|
53
|
+
maxItems?: number;
|
|
54
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
55
|
+
id: string;
|
|
56
|
+
workflow_id: string;
|
|
57
|
+
zapier_durable_version: string;
|
|
58
|
+
dependencies: Record<string, string> | null;
|
|
59
|
+
created_by_user_id: string;
|
|
60
|
+
created_at: string;
|
|
61
|
+
}>;
|
|
62
|
+
} & {
|
|
63
|
+
context: {
|
|
64
|
+
meta: {
|
|
65
|
+
listWorkflowVersions: import("kitcore").PluginMeta<unknown>;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
19
68
|
} & {
|
|
20
69
|
context: {
|
|
21
|
-
meta: Record<string, import("
|
|
70
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
22
71
|
};
|
|
23
72
|
}) => {
|
|
24
73
|
getWorkflowVersion: (options?: {
|
|
@@ -38,7 +87,7 @@ export declare const getWorkflowVersionPlugin: (sdk: {
|
|
|
38
87
|
} & {
|
|
39
88
|
context: {
|
|
40
89
|
meta: {
|
|
41
|
-
getWorkflowVersion: import("
|
|
90
|
+
getWorkflowVersion: import("kitcore").PluginMeta<unknown>;
|
|
42
91
|
};
|
|
43
92
|
};
|
|
44
93
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/getWorkflowVersion/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/getWorkflowVersion/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BpC,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG,UAAU,CACvD,OAAO,wBAAwB,CAChC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { definePlugin, createPluginMethod } from "
|
|
1
|
+
import { definePlugin, createPluginMethod } from "kitcore";
|
|
2
2
|
import { workflowIdResolver } from "../../../resolvers/workflowId";
|
|
3
3
|
import { workflowVersionIdResolver } from "../../../resolvers/workflowVersionId";
|
|
4
4
|
import { codeSubstrateDefaults } from "../shared";
|
|
@@ -18,7 +18,7 @@ export declare const listDurableRunsPlugin: (sdk: {
|
|
|
18
18
|
context: import("../../eventEmission").EventEmissionContext;
|
|
19
19
|
} & {
|
|
20
20
|
context: {
|
|
21
|
-
meta: Record<string, import("
|
|
21
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
22
22
|
};
|
|
23
23
|
}) => {
|
|
24
24
|
listDurableRuns: (options?: ({
|
|
@@ -29,7 +29,7 @@ export declare const listDurableRunsPlugin: (sdk: {
|
|
|
29
29
|
cursor?: string;
|
|
30
30
|
pageSize?: number;
|
|
31
31
|
maxItems?: number;
|
|
32
|
-
}) | undefined) => import("
|
|
32
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
33
33
|
id: string;
|
|
34
34
|
status: "initialized" | "started" | "finished" | "failed" | "cancelled";
|
|
35
35
|
input: unknown;
|
|
@@ -47,7 +47,7 @@ export declare const listDurableRunsPlugin: (sdk: {
|
|
|
47
47
|
} & {
|
|
48
48
|
context: {
|
|
49
49
|
meta: {
|
|
50
|
-
listDurableRuns: import("
|
|
50
|
+
listDurableRuns: import("kitcore").PluginMeta<unknown>;
|
|
51
51
|
};
|
|
52
52
|
};
|
|
53
53
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/listDurableRuns/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/listDurableRuns/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BjC,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,UAAU,CACpD,OAAO,qBAAqB,CAC7B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { definePlugin, createPaginatedPluginMethod
|
|
1
|
+
import { definePlugin, createPaginatedPluginMethod } from "kitcore";
|
|
2
2
|
import { DEFAULT_PAGE_SIZE } from "../../../constants";
|
|
3
3
|
import { codeSubstrateDefaults } from "../shared";
|
|
4
4
|
import { ListDurableRunsOptionsSchema, RunItemSchema, } from "./schemas";
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export declare const listWorkflowRunsPlugin: (sdk: {
|
|
2
|
+
context: {
|
|
3
|
+
api: import("../../..").ApiClient;
|
|
4
|
+
resolveCredentials: () => Promise<string | {
|
|
5
|
+
clientId: string;
|
|
6
|
+
clientSecret: string;
|
|
7
|
+
type?: "client_credentials" | undefined;
|
|
8
|
+
baseUrl?: string | undefined;
|
|
9
|
+
scope?: string | undefined;
|
|
10
|
+
} | {
|
|
11
|
+
clientId: string;
|
|
12
|
+
type?: "pkce" | undefined;
|
|
13
|
+
baseUrl?: string | undefined;
|
|
14
|
+
scope?: string | undefined;
|
|
15
|
+
} | undefined>;
|
|
16
|
+
};
|
|
17
|
+
} & {
|
|
18
|
+
context: import("../../eventEmission").EventEmissionContext;
|
|
19
|
+
} & {
|
|
20
|
+
listWorkflows: (options?: ({
|
|
21
|
+
pageSize?: number | undefined;
|
|
22
|
+
maxItems?: number | undefined;
|
|
23
|
+
cursor?: string | undefined;
|
|
24
|
+
} & {
|
|
25
|
+
cursor?: string;
|
|
26
|
+
pageSize?: number;
|
|
27
|
+
maxItems?: number;
|
|
28
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
description: string | null;
|
|
32
|
+
trigger_url: string;
|
|
33
|
+
enabled: boolean;
|
|
34
|
+
current_version_id: string | null;
|
|
35
|
+
created_at: string;
|
|
36
|
+
updated_at: string;
|
|
37
|
+
}>;
|
|
38
|
+
} & {
|
|
39
|
+
context: {
|
|
40
|
+
meta: {
|
|
41
|
+
listWorkflows: import("kitcore").PluginMeta<unknown>;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
} & {
|
|
45
|
+
context: {
|
|
46
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
47
|
+
};
|
|
48
|
+
}) => {
|
|
49
|
+
listWorkflowRuns: (options?: ({
|
|
50
|
+
workflow: string;
|
|
51
|
+
pageSize?: number | undefined;
|
|
52
|
+
cursor?: string | undefined;
|
|
53
|
+
maxItems?: number | undefined;
|
|
54
|
+
} & {
|
|
55
|
+
cursor?: string;
|
|
56
|
+
pageSize?: number;
|
|
57
|
+
maxItems?: number;
|
|
58
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
59
|
+
id: string;
|
|
60
|
+
trigger_id: string | null;
|
|
61
|
+
durable_run_id: string | null;
|
|
62
|
+
workflow_version_id: string | null;
|
|
63
|
+
status: string;
|
|
64
|
+
input: unknown;
|
|
65
|
+
output: unknown;
|
|
66
|
+
error: unknown;
|
|
67
|
+
created_at: string;
|
|
68
|
+
updated_at: string;
|
|
69
|
+
}>;
|
|
70
|
+
} & {
|
|
71
|
+
context: {
|
|
72
|
+
meta: {
|
|
73
|
+
listWorkflowRuns: import("kitcore").PluginMeta<unknown>;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
export type ListWorkflowRunsPluginProvides = ReturnType<typeof listWorkflowRunsPlugin>;
|
|
78
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/listWorkflowRuns/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsClC,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,UAAU,CACrD,OAAO,sBAAsB,CAC9B,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { definePlugin, createPaginatedPluginMethod } from "kitcore";
|
|
2
|
+
import { workflowIdResolver } from "../../../resolvers/workflowId";
|
|
3
|
+
import { DEFAULT_PAGE_SIZE } from "../../../constants";
|
|
4
|
+
import { codeSubstrateDefaults } from "../shared";
|
|
5
|
+
import { ListWorkflowRunsApiResponseSchema, ListWorkflowRunsOptionsSchema, WorkflowRunListItemSchema, } from "./schemas";
|
|
6
|
+
export const listWorkflowRunsPlugin = definePlugin((sdk) => createPaginatedPluginMethod(sdk, {
|
|
7
|
+
...codeSubstrateDefaults,
|
|
8
|
+
name: "listWorkflowRuns",
|
|
9
|
+
type: "list",
|
|
10
|
+
itemType: "WorkflowRun",
|
|
11
|
+
inputSchema: ListWorkflowRunsOptionsSchema,
|
|
12
|
+
outputSchema: WorkflowRunListItemSchema,
|
|
13
|
+
defaultPageSize: DEFAULT_PAGE_SIZE,
|
|
14
|
+
resolvers: { workflow: workflowIdResolver },
|
|
15
|
+
handler: async ({ sdk, options }) => {
|
|
16
|
+
const searchParams = {};
|
|
17
|
+
if (options.pageSize !== undefined) {
|
|
18
|
+
searchParams.limit = options.pageSize.toString();
|
|
19
|
+
}
|
|
20
|
+
if (options.cursor) {
|
|
21
|
+
searchParams.cursor = options.cursor;
|
|
22
|
+
}
|
|
23
|
+
const raw = await sdk.context.api.get(`/durableworkflowzaps/api/v0/workflows/${encodeURIComponent(options.workflow)}/runs`, {
|
|
24
|
+
searchParams,
|
|
25
|
+
authRequired: true,
|
|
26
|
+
resource: { type: "workflow", id: options.workflow },
|
|
27
|
+
});
|
|
28
|
+
const response = ListWorkflowRunsApiResponseSchema.parse(raw);
|
|
29
|
+
return {
|
|
30
|
+
data: response.results,
|
|
31
|
+
nextCursor: response.meta.next_cursor ?? undefined,
|
|
32
|
+
};
|
|
33
|
+
},
|
|
34
|
+
}));
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const WorkflowRunStatusSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
3
|
+
initialized: "initialized";
|
|
4
|
+
started: "started";
|
|
5
|
+
finished: "finished";
|
|
6
|
+
failed: "failed";
|
|
7
|
+
cancelled: "cancelled";
|
|
8
|
+
}>, z.ZodString]>;
|
|
9
|
+
export type WorkflowRunStatus = z.infer<typeof WorkflowRunStatusSchema>;
|
|
10
|
+
export declare const WorkflowRunListItemSchema: z.ZodObject<{
|
|
11
|
+
id: z.ZodString;
|
|
12
|
+
trigger_id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
durable_run_id: z.ZodNullable<z.ZodString>;
|
|
14
|
+
workflow_version_id: z.ZodNullable<z.ZodString>;
|
|
15
|
+
status: z.ZodUnion<readonly [z.ZodEnum<{
|
|
16
|
+
initialized: "initialized";
|
|
17
|
+
started: "started";
|
|
18
|
+
finished: "finished";
|
|
19
|
+
failed: "failed";
|
|
20
|
+
cancelled: "cancelled";
|
|
21
|
+
}>, z.ZodString]>;
|
|
22
|
+
input: z.ZodUnknown;
|
|
23
|
+
output: z.ZodNullable<z.ZodUnknown>;
|
|
24
|
+
error: z.ZodNullable<z.ZodUnknown>;
|
|
25
|
+
created_at: z.ZodString;
|
|
26
|
+
updated_at: z.ZodString;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export type WorkflowRunListItem = z.infer<typeof WorkflowRunListItemSchema>;
|
|
29
|
+
export declare const ListWorkflowRunsOptionsSchema: z.ZodObject<{
|
|
30
|
+
workflow: z.ZodString;
|
|
31
|
+
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
33
|
+
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
export type ListWorkflowRunsOptions = z.infer<typeof ListWorkflowRunsOptionsSchema>;
|
|
36
|
+
export declare const ListWorkflowRunsApiResponseSchema: z.ZodObject<{
|
|
37
|
+
results: z.ZodArray<z.ZodObject<{
|
|
38
|
+
id: z.ZodString;
|
|
39
|
+
trigger_id: z.ZodNullable<z.ZodString>;
|
|
40
|
+
durable_run_id: z.ZodNullable<z.ZodString>;
|
|
41
|
+
workflow_version_id: z.ZodNullable<z.ZodString>;
|
|
42
|
+
status: z.ZodUnion<readonly [z.ZodEnum<{
|
|
43
|
+
initialized: "initialized";
|
|
44
|
+
started: "started";
|
|
45
|
+
finished: "finished";
|
|
46
|
+
failed: "failed";
|
|
47
|
+
cancelled: "cancelled";
|
|
48
|
+
}>, z.ZodString]>;
|
|
49
|
+
input: z.ZodUnknown;
|
|
50
|
+
output: z.ZodNullable<z.ZodUnknown>;
|
|
51
|
+
error: z.ZodNullable<z.ZodUnknown>;
|
|
52
|
+
created_at: z.ZodString;
|
|
53
|
+
updated_at: z.ZodString;
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
meta: z.ZodObject<{
|
|
56
|
+
limit: z.ZodNumber;
|
|
57
|
+
cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
61
|
+
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
|
+
}, z.core.$strip>>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
export type ListWorkflowRunsApiResponse = z.infer<typeof ListWorkflowRunsApiResponseSchema>;
|
|
65
|
+
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/listWorkflowRuns/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,uBAAuB;;;;;;iBAOjC,CAAC;AAEJ,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;iBA8BpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,6BAA6B;;;;;iBAoBvC,CAAC;AAEJ,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAC3C,OAAO,6BAA6B,CACrC,CAAC;AAEF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAY5C,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,iCAAiC,CACzC,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
// Open enum: known values listed for docs / TS autocomplete; string
|
|
3
|
+
// fallback lets new server-side states (e.g. "paused") flow through
|
|
4
|
+
// without breaking .parse() on the response.
|
|
5
|
+
export const WorkflowRunStatusSchema = z
|
|
6
|
+
.union([
|
|
7
|
+
z.enum(["initialized", "started", "finished", "failed", "cancelled"]),
|
|
8
|
+
z.string(),
|
|
9
|
+
])
|
|
10
|
+
.describe("Workflow run lifecycle status. `finished` / `failed` / `cancelled` are terminal.");
|
|
11
|
+
export const WorkflowRunListItemSchema = z.object({
|
|
12
|
+
id: z.string().describe("Workflow run ID (UUID)"),
|
|
13
|
+
trigger_id: z
|
|
14
|
+
.string()
|
|
15
|
+
.nullable()
|
|
16
|
+
.describe("ID of the trigger that fired this run, if any. Null for runs created without a trigger."),
|
|
17
|
+
durable_run_id: z
|
|
18
|
+
.string()
|
|
19
|
+
.nullable()
|
|
20
|
+
.describe("Linked sdkdurableapi run ID. Null until the durable run is created."),
|
|
21
|
+
workflow_version_id: z
|
|
22
|
+
.string()
|
|
23
|
+
.nullable()
|
|
24
|
+
.describe("Workflow version the run is bound to. Null in rare edge cases."),
|
|
25
|
+
status: WorkflowRunStatusSchema,
|
|
26
|
+
input: z.unknown().describe("Input passed to the run"),
|
|
27
|
+
output: z
|
|
28
|
+
.unknown()
|
|
29
|
+
.nullable()
|
|
30
|
+
.describe("Return value, present when status is `finished`"),
|
|
31
|
+
error: z
|
|
32
|
+
.unknown()
|
|
33
|
+
.nullable()
|
|
34
|
+
.describe("Error payload when status is `failed` (null otherwise)"),
|
|
35
|
+
created_at: z.string().describe("When the run was created (ISO-8601)"),
|
|
36
|
+
updated_at: z.string().describe("When the run was last updated (ISO-8601)"),
|
|
37
|
+
});
|
|
38
|
+
export const ListWorkflowRunsOptionsSchema = z
|
|
39
|
+
.object({
|
|
40
|
+
workflow: z.string().uuid().describe("Durable workflow ID"),
|
|
41
|
+
pageSize: z
|
|
42
|
+
.number()
|
|
43
|
+
.int()
|
|
44
|
+
.min(1)
|
|
45
|
+
.max(100)
|
|
46
|
+
.optional()
|
|
47
|
+
.describe("Number of runs per page (max 100)"),
|
|
48
|
+
cursor: z.string().optional().describe("Pagination cursor"),
|
|
49
|
+
maxItems: z
|
|
50
|
+
.number()
|
|
51
|
+
.int()
|
|
52
|
+
.min(1)
|
|
53
|
+
.optional()
|
|
54
|
+
.describe("Maximum total runs to return across all pages"),
|
|
55
|
+
})
|
|
56
|
+
.describe("List workflow runs (triggered executions) for a specific deployed workflow, newest first");
|
|
57
|
+
export const ListWorkflowRunsApiResponseSchema = z.object({
|
|
58
|
+
results: z.array(WorkflowRunListItemSchema),
|
|
59
|
+
meta: z.object({
|
|
60
|
+
limit: z.number(),
|
|
61
|
+
cursor: z.string().nullable().optional(),
|
|
62
|
+
next_cursor: z.string().nullable().optional(),
|
|
63
|
+
}),
|
|
64
|
+
links: z
|
|
65
|
+
.object({
|
|
66
|
+
next: z.string().nullable().optional(),
|
|
67
|
+
})
|
|
68
|
+
.optional(),
|
|
69
|
+
});
|
|
@@ -16,9 +16,34 @@ export declare const listWorkflowVersionsPlugin: (sdk: {
|
|
|
16
16
|
};
|
|
17
17
|
} & {
|
|
18
18
|
context: import("../../eventEmission").EventEmissionContext;
|
|
19
|
+
} & {
|
|
20
|
+
listWorkflows: (options?: ({
|
|
21
|
+
pageSize?: number | undefined;
|
|
22
|
+
maxItems?: number | undefined;
|
|
23
|
+
cursor?: string | undefined;
|
|
24
|
+
} & {
|
|
25
|
+
cursor?: string;
|
|
26
|
+
pageSize?: number;
|
|
27
|
+
maxItems?: number;
|
|
28
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
description: string | null;
|
|
32
|
+
trigger_url: string;
|
|
33
|
+
enabled: boolean;
|
|
34
|
+
current_version_id: string | null;
|
|
35
|
+
created_at: string;
|
|
36
|
+
updated_at: string;
|
|
37
|
+
}>;
|
|
38
|
+
} & {
|
|
39
|
+
context: {
|
|
40
|
+
meta: {
|
|
41
|
+
listWorkflows: import("kitcore").PluginMeta<unknown>;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
19
44
|
} & {
|
|
20
45
|
context: {
|
|
21
|
-
meta: Record<string, import("
|
|
46
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
22
47
|
};
|
|
23
48
|
}) => {
|
|
24
49
|
listWorkflowVersions: (options?: ({
|
|
@@ -30,7 +55,7 @@ export declare const listWorkflowVersionsPlugin: (sdk: {
|
|
|
30
55
|
cursor?: string;
|
|
31
56
|
pageSize?: number;
|
|
32
57
|
maxItems?: number;
|
|
33
|
-
}) | undefined) => import("
|
|
58
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
34
59
|
id: string;
|
|
35
60
|
workflow_id: string;
|
|
36
61
|
zapier_durable_version: string;
|
|
@@ -41,7 +66,7 @@ export declare const listWorkflowVersionsPlugin: (sdk: {
|
|
|
41
66
|
} & {
|
|
42
67
|
context: {
|
|
43
68
|
meta: {
|
|
44
|
-
listWorkflowVersions: import("
|
|
69
|
+
listWorkflowVersions: import("kitcore").PluginMeta<unknown>;
|
|
45
70
|
};
|
|
46
71
|
};
|
|
47
72
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/listWorkflowVersions/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/listWorkflowVersions/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCtC,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG,UAAU,CACzD,OAAO,0BAA0B,CAClC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { definePlugin, createPaginatedPluginMethod
|
|
1
|
+
import { definePlugin, createPaginatedPluginMethod } from "kitcore";
|
|
2
2
|
import { workflowIdResolver } from "../../../resolvers/workflowId";
|
|
3
3
|
import { DEFAULT_PAGE_SIZE } from "../../../constants";
|
|
4
4
|
import { codeSubstrateDefaults } from "../shared";
|