@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
package/dist/experimental.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseSdkOptions,
|
|
2
|
-
export {
|
|
1
|
+
import { B as BaseSdkOptions, P as PluginStack, a as PluginMeta, M as MethodHooks, C as CoreOptions, Z as ZapierSdkOptions$1, E as EventEmissionContext, A as ApiClient, b as Manifest, R as ResolvedAppLocator, U as UpdateManifestEntryOptions, c as UpdateManifestEntryResult, d as AddActionEntryOptions, e as AddActionEntryResult, f as ActionEntry, g as findManifestEntry, r as readManifestFromFile, h as CapabilitiesContext, i as PaginatedSdkResult, F as FieldsetItem, j as PositionalMetadata, O as OutputFormatter, k as ZapierFetchInitOptions, D as DrainTriggerInboxOptions, l as DynamicResolver, W as WatchTriggerInboxOptions, m as ActionProxy, n as ZapierSdkApps, o as WithAddPlugin } from './index-Dh0b5NAY.mjs';
|
|
2
|
+
export { x as Action, c9 as ActionExecutionOptions, I as ActionExecutionResult, J as ActionField, K as ActionFieldChoice, aN as ActionItem, bn as ActionKeyProperty, aX as ActionKeyPropertySchema, bo as ActionProperty, aY as ActionPropertySchema, aE as ActionResolverItem, bz as ActionTimeoutMsProperty, b7 as ActionTimeoutMsPropertySchema, aF as ActionTypeItem, bm as ActionTypeProperty, aW as ActionTypePropertySchema, c5 as ApiError, dz as ApiEvent, cT as ApiPluginOptions, cV as ApiPluginProvides, y as App, ca as AppFactoryInput, aL as AppItem, bk as AppKeyProperty, aU as AppKeyPropertySchema, bl as AppProperty, aV as AppPropertySchema, eI as ApplicationLifecycleEventData, c1 as ApprovalStatus, c8 as AppsPluginProvides, bE as AppsProperty, bc as AppsPropertySchema, a5 as ArrayResolver, dy as AuthEvent, bs as AuthenticationIdProperty, a$ as AuthenticationIdPropertySchema, eQ as BaseEvent, as as BaseSdkOptionsSchema, ag as BatchOptions, cG as CONTEXT_CACHE_MAX_SIZE, cF as CONTEXT_CACHE_TTL_MS, aw as CORE_ERROR_SYMBOL, H as Choice, dF as ClientCredentialsObject, dQ as ClientCredentialsObjectSchema, V as Connection, dY as ConnectionEntry, dX as ConnectionEntrySchema, bq as ConnectionIdProperty, a_ as ConnectionIdPropertySchema, aM as ConnectionItem, br as ConnectionProperty, b0 as ConnectionPropertySchema, d_ as ConnectionsMap, dZ as ConnectionsMapSchema, e0 as ConnectionsPluginProvides, bG as ConnectionsProperty, be as ConnectionsPropertySchema, X as ConnectionsResponse, ax as CoreErrorCode, cs as CreateClientCredentialsPluginProvides, eq as CreateTableFieldsPluginProvides, ek as CreateTablePluginProvides, ey as CreateTableRecordsPluginProvides, dC as Credentials, dV as CredentialsFunction, dU as CredentialsFunctionSchema, dE as CredentialsObject, dS as CredentialsObjectSchema, dW as CredentialsSchema, e5 as DEFAULT_ACTION_TIMEOUT_MS, ed as DEFAULT_APPROVAL_TIMEOUT_MS, cP as DEFAULT_CONFIG_PATH, ee as DEFAULT_MAX_APPROVAL_RETRIES, e4 as DEFAULT_PAGE_SIZE, bx as DebugProperty, b5 as DebugPropertySchema, cu as DeleteClientCredentialsPluginProvides, es as DeleteTableFieldsPluginProvides, em as DeleteTablePluginProvides, eA as DeleteTableRecordsPluginProvides, s as DrainTriggerInboxCallback, t as DrainTriggerInboxErrorObserver, a8 as DynamicListResolver, a9 as DynamicSearchResolver, eJ as EnhancedErrorEventData, bM as ErrorOptions, dB as EventCallback, eH as EventContext, eE as EventEmissionConfig, eG as EventEmissionProvides, cc as FetchPluginProvides, z as Field, bD as FieldsProperty, bb as FieldsPropertySchema, aa as FieldsResolver, v as FindFirstAuthenticationPluginProvides, cC as FindFirstConnectionPluginProvides, w as FindUniqueAuthenticationPluginProvides, cE as FindUniqueConnectionPluginProvides, a3 as FormattedItem, ar as FunctionDeprecation, aq as FunctionRegistryEntry, cm as GetActionInputFieldsSchemaPluginProvides, cy as GetActionPluginProvides, cw as GetAppPluginProvides, G as GetAuthenticationPluginProvides, cA as GetConnectionPluginProvides, cS as GetProfilePluginProvides, ei as GetTablePluginProvides, eu as GetTableRecordPluginProvides, aP as InfoFieldItem, aO as InputFieldItem, bp as InputFieldProperty, aZ as InputFieldPropertySchema, bt as InputsProperty, b1 as InputsPropertySchema, bL as LeaseLimitProperty, bj as LeaseLimitPropertySchema, bJ as LeaseProperty, bh as LeasePropertySchema, bK as LeaseSecondsProperty, bi as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bu as LimitProperty, b2 as LimitPropertySchema, ck as ListActionInputFieldChoicesPluginProvides, ci as ListActionInputFieldsPluginProvides, cg as ListActionsPluginProvides, ce as ListAppsPluginProvides, u as ListAuthenticationsPluginProvides, cq as ListClientCredentialsPluginProvides, co as ListConnectionsPluginProvides, eo as ListTableFieldsPluginProvides, ew as ListTableRecordsPluginProvides, eg as ListTablesPluginProvides, dA as LoadingEvent, e8 as MAX_CONCURRENCY_LIMIT, e3 as MAX_PAGE_LIMIT, cQ as ManifestEntry, cL as ManifestPluginOptions, cO as ManifestPluginProvides, eR as MethodCalledEvent, eK as MethodCalledEventData, N as Need, Q as NeedsRequest, S as NeedsResponse, bv as OffsetProperty, b3 as OffsetPropertySchema, bw as OutputProperty, b4 as OutputPropertySchema, aT as PaginatedSdkFunction, by as ParamsProperty, b6 as ParamsPropertySchema, dG as PkceCredentialsObject, dR as PkceCredentialsObjectSchema, ay as Plugin, az as PluginProvides, aI as PollOptions, b$ as RateLimitInfo, bB as RecordProperty, b9 as RecordPropertySchema, bC as RecordsProperty, ba as RecordsPropertySchema, al as RelayFetchSchema, ak as RelayRequestSchema, aH as RequestOptions, cK as RequestPluginProvides, dk as ResolveAuthTokenOptions, dL as ResolveCredentialsOptions, dD as ResolvedCredentials, dT as ResolvedCredentialsSchema, a4 as Resolver, a6 as ResolverMetadata, aQ as RootFieldItem, cI as RunActionPluginProvides, dx as SdkEvent, aS as SdkPage, a7 as StaticResolver, bA as TableProperty, b8 as TablePropertySchema, bF as TablesProperty, bd as TablesPropertySchema, bI as TriggerInboxNameProperty, bg as TriggerInboxNamePropertySchema, bH as TriggerInboxProperty, bf as TriggerInboxPropertySchema, T as TriggerMessageStatus, eC as UpdateTableRecordsPluginProvides, Y as UserProfile, aR as UserProfileItem, e1 as ZAPIER_BASE_URL, ea as ZAPIER_MAX_CONCURRENT_REQUESTS, e6 as ZAPIER_MAX_NETWORK_RETRIES, e7 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, p as ZapierAbortDrainSignal, bZ as ZapierActionError, bS as ZapierApiError, bT as ZapierAppNotFoundError, c2 as ZapierApprovalError, bQ as ZapierAuthenticationError, bX as ZapierBundleError, dt as ZapierCache, du as ZapierCacheEntry, dv as ZapierCacheSetOptions, bW as ZapierConfigurationError, b_ as ZapierConflictError, bN as ZapierError, bU as ZapierNotFoundError, c0 as ZapierRateLimitError, c3 as ZapierRelayError, q as ZapierReleaseTriggerMessageSignal, bV as ZapierResourceNotFoundError, c6 as ZapierSignal, bY as ZapierTimeoutError, bP as ZapierUnknownError, bO as ZapierValidationError, cY as actionKeyResolver, cX as actionTypeResolver, a2 as addPlugin, cU as apiPlugin, cW as appKeyResolver, c7 as appsPlugin, c_ as authenticationIdGenericResolver, cZ as authenticationIdResolver, af as batch, eL as buildApplicationLifecycleEvent, ah as buildCapabilityMessage, eN as buildErrorEvent, eM as buildErrorEventWithContext, eP as buildMethodCalledEvent, eD as cleanupEventListeners, dl as clearTokenCache, d2 as clientCredentialsNameResolver, d3 as clientIdResolver, aD as composePlugins, c_ as connectionIdGenericResolver, cZ as connectionIdResolver, d$ as connectionsPlugin, eO as createBaseEvent, cr as createClientCredentialsPlugin, a1 as createCorePlugin, $ as createFunction, dw as createMemoryCache, ao as createOptionsPlugin, aC as createPaginatedPluginMethod, aB as createPluginMethod, a0 as createPluginStack, an as createSdk, ep as createTableFieldsPlugin, ej as createTablePlugin, ex as createTableRecordsPlugin, aJ as createZapierApi, ap as createZapierCoreStack, am as createZapierSdkWithoutRegistry, aA as definePlugin, ct as deleteClientCredentialsPlugin, er as deleteTableFieldsPlugin, el as deleteTablePlugin, ez as deleteTableRecordsPlugin, d7 as durableRunIdResolver, eF as eventEmissionPlugin, cb as fetchPlugin, cB as findFirstConnectionPlugin, cD as findUniqueConnectionPlugin, c4 as formatErrorMessage, eS as generateEventId, cl as getActionInputFieldsSchemaPlugin, cx as getActionPlugin, cv as getAppPlugin, dO as getBaseUrlFromCredentials, eY as getCiPlatform, dP as getClientIdFromCredentials, cz as getConnectionPlugin, av as getCoreErrorCause, au as getCoreErrorCode, e_ as getCpuTime, eT as getCurrentTimestamp, eZ as getMemoryUsage, aK as getOrCreateApiClient, eV as getOsInfo, eW as getPlatformVersions, cM as getPreferredManifestEntryKey, cR as getProfilePlugin, eU as getReleaseId, eh as getTablePlugin, et as getTableRecordPlugin, dq as getTokenFromCliLogin, eb as getZapierApprovalMode, ec as getZapierDefaultApprovalMode, e2 as getZapierSdkService, dn as injectCliLogin, d1 as inputFieldKeyResolver, d0 as inputsAllOptionalResolver, c$ as inputsResolver, dm as invalidateCachedToken, ds as invalidateCredentialsToken, eX as isCi, dp as isCliLoginAvailable, dH as isClientCredentials, at as isCoreError, dK as isCredentialsFunction, dJ as isCredentialsObject, dI as isPkceCredentials, _ as isPositional, cj as listActionInputFieldChoicesPlugin, ch as listActionInputFieldsPlugin, cf as listActionsPlugin, cd as listAppsPlugin, cp as listClientCredentialsPlugin, cn as listConnectionsPlugin, en as listTableFieldsPlugin, ev as listTableRecordsPlugin, ef as listTablesPlugin, ai as logDeprecation, cN as manifestPlugin, e9 as parseConcurrencyEnvVar, aG as registryPlugin, cJ as requestPlugin, aj as resetDeprecationWarnings, dr as resolveAuthToken, dN as resolveCredentials, dM as resolveCredentialsFromEnv, cH as runActionPlugin, ab as runInMethodScope, ac as runWithTelemetryContext, dd as tableFieldIdsResolver, df as tableFieldsResolver, di as tableFiltersResolver, d4 as tableIdResolver, de as tableNameResolver, db as tableRecordIdResolver, dc as tableRecordIdsResolver, dg as tableRecordsResolver, dj as tableSortResolver, dh as tableUpdateRecordsResolver, ad as toSnakeCase, ae as toTitleCase, d5 as triggerInboxResolver, da as triggerMessagesResolver, eB as updateTableRecordsPlugin, d6 as workflowIdResolver, d9 as workflowRunIdResolver, d8 as workflowVersionIdResolver, bR as zapierAdaptError } from './index-Dh0b5NAY.mjs';
|
|
3
3
|
import * as zod_v4_core from 'zod/v4/core';
|
|
4
4
|
import * as zod from 'zod';
|
|
5
5
|
import '@zapier/zapier-sdk-core/v0/schemas/connections';
|
|
@@ -9,9 +9,25 @@ import '@zapier/zapier-sdk-cli/login';
|
|
|
9
9
|
|
|
10
10
|
interface ZapierSdkOptions extends BaseSdkOptions {
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Build the unsealed `PluginStack` for the experimental SDK. Mirror of
|
|
14
|
+
* `createZapierSdkStack` from the stable entry: downstream packages
|
|
15
|
+
* extending the experimental SDK should layer plugins via `.use(...)`
|
|
16
|
+
* on the returned stack rather than going through `.addPlugin` on the
|
|
17
|
+
* sealed result.
|
|
18
|
+
*
|
|
19
|
+
* Shadows the re-export from `./index` so consumers of
|
|
20
|
+
* `@zapier/zapier-sdk/experimental` get the experimental factory under
|
|
21
|
+
* the same name as the stable factory.
|
|
22
|
+
*/
|
|
23
|
+
declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<object, {
|
|
13
24
|
context: {
|
|
14
25
|
meta: Record<string, PluginMeta>;
|
|
26
|
+
hooks: MethodHooks;
|
|
27
|
+
};
|
|
28
|
+
} & {
|
|
29
|
+
context: {
|
|
30
|
+
core: CoreOptions;
|
|
15
31
|
};
|
|
16
32
|
} & {
|
|
17
33
|
context: {
|
|
@@ -145,7 +161,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
145
161
|
} & {
|
|
146
162
|
context: {
|
|
147
163
|
meta: {
|
|
148
|
-
listApps: PluginMeta
|
|
164
|
+
listApps: PluginMeta<unknown>;
|
|
149
165
|
};
|
|
150
166
|
};
|
|
151
167
|
} & {
|
|
@@ -211,7 +227,204 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
211
227
|
} & {
|
|
212
228
|
context: {
|
|
213
229
|
meta: {
|
|
214
|
-
getApp: PluginMeta
|
|
230
|
+
getApp: PluginMeta<unknown>;
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
} & {
|
|
234
|
+
listConnections: (options?: ({
|
|
235
|
+
title?: string | undefined;
|
|
236
|
+
search?: string | undefined;
|
|
237
|
+
owner?: string | undefined;
|
|
238
|
+
app?: string | undefined;
|
|
239
|
+
appKey?: string | undefined;
|
|
240
|
+
connections?: string[] | undefined;
|
|
241
|
+
connectionIds?: string[] | undefined;
|
|
242
|
+
authenticationIds?: string[] | undefined;
|
|
243
|
+
account?: string | undefined;
|
|
244
|
+
accountId?: string | undefined;
|
|
245
|
+
includeShared?: boolean | undefined;
|
|
246
|
+
isExpired?: boolean | undefined;
|
|
247
|
+
expired?: boolean | undefined;
|
|
248
|
+
pageSize?: number | undefined;
|
|
249
|
+
maxItems?: number | undefined;
|
|
250
|
+
cursor?: string | undefined;
|
|
251
|
+
} & {
|
|
252
|
+
cursor?: string;
|
|
253
|
+
pageSize?: number;
|
|
254
|
+
maxItems?: number;
|
|
255
|
+
}) | undefined) => PaginatedSdkResult<{
|
|
256
|
+
date: string;
|
|
257
|
+
is_invite_only: boolean;
|
|
258
|
+
is_private: boolean;
|
|
259
|
+
shared_with_all: boolean;
|
|
260
|
+
id: string;
|
|
261
|
+
account_id: string;
|
|
262
|
+
title?: string | null | undefined;
|
|
263
|
+
lastchanged?: string | undefined;
|
|
264
|
+
destination_selected_api?: string | null | undefined;
|
|
265
|
+
is_stale?: string | undefined;
|
|
266
|
+
is_shared?: string | undefined;
|
|
267
|
+
marked_stale_at?: string | null | undefined;
|
|
268
|
+
label?: string | null | undefined;
|
|
269
|
+
identifier?: string | null | undefined;
|
|
270
|
+
url?: string | undefined;
|
|
271
|
+
groups?: Record<string, unknown>[] | undefined;
|
|
272
|
+
members?: string | undefined;
|
|
273
|
+
permissions?: Record<string, boolean> | undefined;
|
|
274
|
+
public_id?: string | undefined;
|
|
275
|
+
account_public_id?: string | undefined;
|
|
276
|
+
customuser_public_id?: string | undefined;
|
|
277
|
+
implementation_id?: string | undefined;
|
|
278
|
+
profile_id?: string | undefined;
|
|
279
|
+
is_expired?: string | undefined;
|
|
280
|
+
expired_at?: string | null | undefined;
|
|
281
|
+
app_key?: string | undefined;
|
|
282
|
+
app_version?: string | undefined;
|
|
283
|
+
}>;
|
|
284
|
+
} & {
|
|
285
|
+
context: {
|
|
286
|
+
meta: {
|
|
287
|
+
listConnections: PluginMeta<unknown>;
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
} & {
|
|
291
|
+
getConnection: (options?: {
|
|
292
|
+
connection?: string | number | undefined;
|
|
293
|
+
connectionId?: string | number | undefined;
|
|
294
|
+
authenticationId?: string | number | undefined;
|
|
295
|
+
} | undefined) => Promise<{
|
|
296
|
+
data: {
|
|
297
|
+
date: string;
|
|
298
|
+
is_invite_only: boolean;
|
|
299
|
+
is_private: boolean;
|
|
300
|
+
shared_with_all: boolean;
|
|
301
|
+
id: string;
|
|
302
|
+
account_id: string;
|
|
303
|
+
title?: string | null | undefined;
|
|
304
|
+
lastchanged?: string | undefined;
|
|
305
|
+
destination_selected_api?: string | null | undefined;
|
|
306
|
+
is_stale?: string | undefined;
|
|
307
|
+
is_shared?: string | undefined;
|
|
308
|
+
marked_stale_at?: string | null | undefined;
|
|
309
|
+
label?: string | null | undefined;
|
|
310
|
+
identifier?: string | null | undefined;
|
|
311
|
+
url?: string | undefined;
|
|
312
|
+
groups?: Record<string, unknown>[] | undefined;
|
|
313
|
+
members?: string | undefined;
|
|
314
|
+
permissions?: Record<string, boolean> | undefined;
|
|
315
|
+
public_id?: string | undefined;
|
|
316
|
+
account_public_id?: string | undefined;
|
|
317
|
+
customuser_public_id?: string | undefined;
|
|
318
|
+
implementation_id?: string | undefined;
|
|
319
|
+
profile_id?: string | undefined;
|
|
320
|
+
is_expired?: string | undefined;
|
|
321
|
+
expired_at?: string | null | undefined;
|
|
322
|
+
app_key?: string | undefined;
|
|
323
|
+
app_version?: string | undefined;
|
|
324
|
+
};
|
|
325
|
+
}>;
|
|
326
|
+
} & {
|
|
327
|
+
context: {
|
|
328
|
+
meta: {
|
|
329
|
+
getConnection: PluginMeta<unknown>;
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
} & {
|
|
333
|
+
findFirstConnection: (options?: {
|
|
334
|
+
title?: string | undefined;
|
|
335
|
+
appKey?: string | undefined;
|
|
336
|
+
app?: string | undefined;
|
|
337
|
+
search?: string | undefined;
|
|
338
|
+
owner?: string | undefined;
|
|
339
|
+
account?: string | undefined;
|
|
340
|
+
accountId?: string | undefined;
|
|
341
|
+
includeShared?: boolean | undefined;
|
|
342
|
+
isExpired?: boolean | undefined;
|
|
343
|
+
expired?: boolean | undefined;
|
|
344
|
+
} | undefined) => Promise<{
|
|
345
|
+
data: {
|
|
346
|
+
date: string;
|
|
347
|
+
is_invite_only: boolean;
|
|
348
|
+
is_private: boolean;
|
|
349
|
+
shared_with_all: boolean;
|
|
350
|
+
id: string;
|
|
351
|
+
account_id: string;
|
|
352
|
+
title?: string | null | undefined;
|
|
353
|
+
lastchanged?: string | undefined;
|
|
354
|
+
destination_selected_api?: string | null | undefined;
|
|
355
|
+
is_stale?: string | undefined;
|
|
356
|
+
is_shared?: string | undefined;
|
|
357
|
+
marked_stale_at?: string | null | undefined;
|
|
358
|
+
label?: string | null | undefined;
|
|
359
|
+
identifier?: string | null | undefined;
|
|
360
|
+
url?: string | undefined;
|
|
361
|
+
groups?: Record<string, unknown>[] | undefined;
|
|
362
|
+
members?: string | undefined;
|
|
363
|
+
permissions?: Record<string, boolean> | undefined;
|
|
364
|
+
public_id?: string | undefined;
|
|
365
|
+
account_public_id?: string | undefined;
|
|
366
|
+
customuser_public_id?: string | undefined;
|
|
367
|
+
implementation_id?: string | undefined;
|
|
368
|
+
profile_id?: string | undefined;
|
|
369
|
+
is_expired?: string | undefined;
|
|
370
|
+
expired_at?: string | null | undefined;
|
|
371
|
+
app_key?: string | undefined;
|
|
372
|
+
app_version?: string | undefined;
|
|
373
|
+
};
|
|
374
|
+
}>;
|
|
375
|
+
} & {
|
|
376
|
+
context: {
|
|
377
|
+
meta: {
|
|
378
|
+
findFirstConnection: PluginMeta<unknown>;
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
} & {
|
|
382
|
+
findUniqueConnection: (options?: {
|
|
383
|
+
title?: string | undefined;
|
|
384
|
+
appKey?: string | undefined;
|
|
385
|
+
app?: string | undefined;
|
|
386
|
+
search?: string | undefined;
|
|
387
|
+
owner?: string | undefined;
|
|
388
|
+
account?: string | undefined;
|
|
389
|
+
accountId?: string | undefined;
|
|
390
|
+
includeShared?: boolean | undefined;
|
|
391
|
+
isExpired?: boolean | undefined;
|
|
392
|
+
expired?: boolean | undefined;
|
|
393
|
+
} | undefined) => Promise<{
|
|
394
|
+
data: {
|
|
395
|
+
date: string;
|
|
396
|
+
is_invite_only: boolean;
|
|
397
|
+
is_private: boolean;
|
|
398
|
+
shared_with_all: boolean;
|
|
399
|
+
id: string;
|
|
400
|
+
account_id: string;
|
|
401
|
+
title?: string | null | undefined;
|
|
402
|
+
lastchanged?: string | undefined;
|
|
403
|
+
destination_selected_api?: string | null | undefined;
|
|
404
|
+
is_stale?: string | undefined;
|
|
405
|
+
is_shared?: string | undefined;
|
|
406
|
+
marked_stale_at?: string | null | undefined;
|
|
407
|
+
label?: string | null | undefined;
|
|
408
|
+
identifier?: string | null | undefined;
|
|
409
|
+
url?: string | undefined;
|
|
410
|
+
groups?: Record<string, unknown>[] | undefined;
|
|
411
|
+
members?: string | undefined;
|
|
412
|
+
permissions?: Record<string, boolean> | undefined;
|
|
413
|
+
public_id?: string | undefined;
|
|
414
|
+
account_public_id?: string | undefined;
|
|
415
|
+
customuser_public_id?: string | undefined;
|
|
416
|
+
implementation_id?: string | undefined;
|
|
417
|
+
profile_id?: string | undefined;
|
|
418
|
+
is_expired?: string | undefined;
|
|
419
|
+
expired_at?: string | null | undefined;
|
|
420
|
+
app_key?: string | undefined;
|
|
421
|
+
app_version?: string | undefined;
|
|
422
|
+
};
|
|
423
|
+
}>;
|
|
424
|
+
} & {
|
|
425
|
+
context: {
|
|
426
|
+
meta: {
|
|
427
|
+
findUniqueConnection: PluginMeta<unknown>;
|
|
215
428
|
};
|
|
216
429
|
};
|
|
217
430
|
} & {
|
|
@@ -246,7 +459,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
246
459
|
} & {
|
|
247
460
|
context: {
|
|
248
461
|
meta: {
|
|
249
|
-
listActions: PluginMeta
|
|
462
|
+
listActions: PluginMeta<unknown>;
|
|
250
463
|
};
|
|
251
464
|
};
|
|
252
465
|
} & {
|
|
@@ -275,7 +488,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
275
488
|
} & {
|
|
276
489
|
context: {
|
|
277
490
|
meta: {
|
|
278
|
-
getAction: PluginMeta
|
|
491
|
+
getAction: PluginMeta<unknown>;
|
|
279
492
|
};
|
|
280
493
|
};
|
|
281
494
|
} & {
|
|
@@ -305,7 +518,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
305
518
|
cursor?: string;
|
|
306
519
|
pageSize?: number;
|
|
307
520
|
maxItems?: number;
|
|
308
|
-
}) | undefined) => PaginatedSdkResult<{
|
|
521
|
+
}) | undefined) => PaginatedSdkResult<FieldsetItem | {
|
|
309
522
|
key: string;
|
|
310
523
|
type: "input_field";
|
|
311
524
|
default_value: string;
|
|
@@ -325,11 +538,11 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
325
538
|
type: "info_field";
|
|
326
539
|
description: string;
|
|
327
540
|
title?: string | undefined;
|
|
328
|
-
}
|
|
541
|
+
}>;
|
|
329
542
|
} & {
|
|
330
543
|
context: {
|
|
331
544
|
meta: {
|
|
332
|
-
listActionInputFields: PluginMeta
|
|
545
|
+
listActionInputFields: PluginMeta<unknown>;
|
|
333
546
|
};
|
|
334
547
|
};
|
|
335
548
|
} & {
|
|
@@ -355,7 +568,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
355
568
|
} & {
|
|
356
569
|
context: {
|
|
357
570
|
meta: {
|
|
358
|
-
getActionInputFieldsSchema: PluginMeta
|
|
571
|
+
getActionInputFieldsSchema: PluginMeta<unknown>;
|
|
359
572
|
};
|
|
360
573
|
};
|
|
361
574
|
} & {
|
|
@@ -398,7 +611,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
398
611
|
} & {
|
|
399
612
|
context: {
|
|
400
613
|
meta: {
|
|
401
|
-
listActionInputFieldChoices: PluginMeta
|
|
614
|
+
listActionInputFieldChoices: PluginMeta<unknown>;
|
|
402
615
|
};
|
|
403
616
|
};
|
|
404
617
|
} & {
|
|
@@ -428,7 +641,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
428
641
|
cursor?: string;
|
|
429
642
|
pageSize?: number;
|
|
430
643
|
maxItems?: number;
|
|
431
|
-
}) | undefined) => PaginatedSdkResult<{
|
|
644
|
+
}) | undefined) => PaginatedSdkResult<FieldsetItem | {
|
|
432
645
|
key: string;
|
|
433
646
|
type: "input_field";
|
|
434
647
|
default_value: string;
|
|
@@ -448,11 +661,14 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
448
661
|
type: "info_field";
|
|
449
662
|
description: string;
|
|
450
663
|
title?: string | undefined;
|
|
451
|
-
}
|
|
664
|
+
}>;
|
|
452
665
|
context: {
|
|
453
666
|
meta: {
|
|
454
667
|
listInputFields: {
|
|
455
668
|
categories: string[];
|
|
669
|
+
deprecation: {
|
|
670
|
+
message: string;
|
|
671
|
+
};
|
|
456
672
|
type: "list";
|
|
457
673
|
itemType: string;
|
|
458
674
|
inputSchema: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
@@ -523,6 +739,27 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
523
739
|
description: zod.ZodString;
|
|
524
740
|
title: zod.ZodOptional<zod.ZodString>;
|
|
525
741
|
}, zod_v4_core.$strip>, zod.ZodType<FieldsetItem, unknown, zod_v4_core.$ZodTypeInternals<FieldsetItem, unknown>>]>;
|
|
742
|
+
formatter: OutputFormatter<unknown, FieldsetItem | {
|
|
743
|
+
key: string;
|
|
744
|
+
type: "input_field";
|
|
745
|
+
default_value: string;
|
|
746
|
+
depends_on: string[];
|
|
747
|
+
description: string;
|
|
748
|
+
invalidates_input_fields: boolean;
|
|
749
|
+
is_required: boolean;
|
|
750
|
+
placeholder: string;
|
|
751
|
+
title: string;
|
|
752
|
+
value_type: string;
|
|
753
|
+
format?: string | undefined;
|
|
754
|
+
items?: {
|
|
755
|
+
type: string;
|
|
756
|
+
} | undefined;
|
|
757
|
+
} | {
|
|
758
|
+
key: string;
|
|
759
|
+
type: "info_field";
|
|
760
|
+
description: string;
|
|
761
|
+
title?: string | undefined;
|
|
762
|
+
}, Record<string, unknown>, unknown>;
|
|
526
763
|
defaultPageSize: number;
|
|
527
764
|
};
|
|
528
765
|
};
|
|
@@ -551,6 +788,9 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
551
788
|
meta: {
|
|
552
789
|
getInputFieldsSchema: {
|
|
553
790
|
categories: string[];
|
|
791
|
+
deprecation: {
|
|
792
|
+
message: string;
|
|
793
|
+
};
|
|
554
794
|
type: "function";
|
|
555
795
|
inputSchema: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
556
796
|
app: zod.ZodString & {
|
|
@@ -637,6 +877,9 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
637
877
|
meta: {
|
|
638
878
|
listInputFieldChoices: {
|
|
639
879
|
categories: string[];
|
|
880
|
+
deprecation: {
|
|
881
|
+
message: string;
|
|
882
|
+
};
|
|
640
883
|
type: "list";
|
|
641
884
|
itemType: string;
|
|
642
885
|
inputSchema: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
@@ -698,6 +941,12 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
698
941
|
sample: zod.ZodOptional<zod.ZodString>;
|
|
699
942
|
value: zod.ZodOptional<zod.ZodString>;
|
|
700
943
|
}, zod_v4_core.$strip>;
|
|
944
|
+
formatter: OutputFormatter<unknown, {
|
|
945
|
+
key?: string | undefined;
|
|
946
|
+
label?: string | undefined;
|
|
947
|
+
sample?: string | undefined;
|
|
948
|
+
value?: string | undefined;
|
|
949
|
+
}, Record<string, unknown>, unknown>;
|
|
701
950
|
defaultPageSize: number;
|
|
702
951
|
};
|
|
703
952
|
};
|
|
@@ -735,11 +984,11 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
735
984
|
} & {
|
|
736
985
|
context: {
|
|
737
986
|
meta: {
|
|
738
|
-
runAction: PluginMeta
|
|
987
|
+
runAction: PluginMeta<unknown>;
|
|
739
988
|
};
|
|
740
989
|
};
|
|
741
990
|
} & {
|
|
742
|
-
|
|
991
|
+
listAuthentications: (options?: ({
|
|
743
992
|
title?: string | undefined;
|
|
744
993
|
search?: string | undefined;
|
|
745
994
|
owner?: string | undefined;
|
|
@@ -789,59 +1038,216 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
789
1038
|
app_key?: string | undefined;
|
|
790
1039
|
app_version?: string | undefined;
|
|
791
1040
|
}>;
|
|
792
|
-
} & {
|
|
793
|
-
context: {
|
|
794
|
-
meta: {
|
|
795
|
-
listConnections: PluginMeta;
|
|
796
|
-
};
|
|
797
|
-
};
|
|
798
|
-
} & {
|
|
799
|
-
getConnection: (options?: {
|
|
800
|
-
connection?: string | number | undefined;
|
|
801
|
-
connectionId?: string | number | undefined;
|
|
802
|
-
authenticationId?: string | number | undefined;
|
|
803
|
-
} | undefined) => Promise<{
|
|
804
|
-
data: {
|
|
805
|
-
date: string;
|
|
806
|
-
is_invite_only: boolean;
|
|
807
|
-
is_private: boolean;
|
|
808
|
-
shared_with_all: boolean;
|
|
809
|
-
id: string;
|
|
810
|
-
account_id: string;
|
|
811
|
-
title?: string | null | undefined;
|
|
812
|
-
lastchanged?: string | undefined;
|
|
813
|
-
destination_selected_api?: string | null | undefined;
|
|
814
|
-
is_stale?: string | undefined;
|
|
815
|
-
is_shared?: string | undefined;
|
|
816
|
-
marked_stale_at?: string | null | undefined;
|
|
817
|
-
label?: string | null | undefined;
|
|
818
|
-
identifier?: string | null | undefined;
|
|
819
|
-
url?: string | undefined;
|
|
820
|
-
groups?: Record<string, unknown>[] | undefined;
|
|
821
|
-
members?: string | undefined;
|
|
822
|
-
permissions?: Record<string, boolean> | undefined;
|
|
823
|
-
public_id?: string | undefined;
|
|
824
|
-
account_public_id?: string | undefined;
|
|
825
|
-
customuser_public_id?: string | undefined;
|
|
826
|
-
implementation_id?: string | undefined;
|
|
827
|
-
profile_id?: string | undefined;
|
|
828
|
-
is_expired?: string | undefined;
|
|
829
|
-
expired_at?: string | null | undefined;
|
|
830
|
-
app_key?: string | undefined;
|
|
831
|
-
app_version?: string | undefined;
|
|
832
|
-
};
|
|
833
|
-
}>;
|
|
834
|
-
} & {
|
|
835
1041
|
context: {
|
|
836
1042
|
meta: {
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
1043
|
+
listAuthentications: {
|
|
1044
|
+
packages: string[];
|
|
1045
|
+
categories: string[];
|
|
1046
|
+
deprecation: {
|
|
1047
|
+
message: string;
|
|
1048
|
+
};
|
|
1049
|
+
type: "list";
|
|
1050
|
+
itemType: string;
|
|
1051
|
+
inputSchema: zod.ZodObject<{
|
|
1052
|
+
title: zod.ZodOptional<zod.ZodString>;
|
|
1053
|
+
search: zod.ZodOptional<zod.ZodString>;
|
|
1054
|
+
owner: zod.ZodOptional<zod.ZodString>;
|
|
1055
|
+
app: zod.ZodOptional<zod.ZodString & {
|
|
1056
|
+
_def: zod_v4_core.$ZodStringDef & PositionalMetadata;
|
|
1057
|
+
}>;
|
|
1058
|
+
appKey: zod.ZodOptional<zod.ZodString & {
|
|
1059
|
+
_def: zod_v4_core.$ZodStringDef & PositionalMetadata;
|
|
1060
|
+
}>;
|
|
1061
|
+
connections: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
1062
|
+
connectionIds: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
1063
|
+
authenticationIds: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
1064
|
+
account: zod.ZodOptional<zod.ZodString>;
|
|
1065
|
+
accountId: zod.ZodOptional<zod.ZodString>;
|
|
1066
|
+
includeShared: zod.ZodOptional<zod.ZodBoolean>;
|
|
1067
|
+
isExpired: zod.ZodOptional<zod.ZodBoolean>;
|
|
1068
|
+
expired: zod.ZodOptional<zod.ZodBoolean>;
|
|
1069
|
+
pageSize: zod.ZodOptional<zod.ZodNumber>;
|
|
1070
|
+
maxItems: zod.ZodOptional<zod.ZodNumber>;
|
|
1071
|
+
cursor: zod.ZodOptional<zod.ZodString>;
|
|
1072
|
+
}, zod_v4_core.$strip>;
|
|
1073
|
+
outputSchema: zod.ZodObject<{
|
|
1074
|
+
title: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1075
|
+
date: zod.ZodString;
|
|
1076
|
+
is_invite_only: zod.ZodBoolean;
|
|
1077
|
+
lastchanged: zod.ZodOptional<zod.ZodString>;
|
|
1078
|
+
destination_selected_api: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1079
|
+
is_private: zod.ZodBoolean;
|
|
1080
|
+
shared_with_all: zod.ZodBoolean;
|
|
1081
|
+
is_stale: zod.ZodOptional<zod.ZodString>;
|
|
1082
|
+
is_shared: zod.ZodOptional<zod.ZodString>;
|
|
1083
|
+
marked_stale_at: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1084
|
+
label: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1085
|
+
identifier: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1086
|
+
url: zod.ZodOptional<zod.ZodString>;
|
|
1087
|
+
groups: zod.ZodOptional<zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
|
|
1088
|
+
members: zod.ZodOptional<zod.ZodString>;
|
|
1089
|
+
permissions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodBoolean>>;
|
|
1090
|
+
public_id: zod.ZodOptional<zod.ZodString>;
|
|
1091
|
+
account_public_id: zod.ZodOptional<zod.ZodString>;
|
|
1092
|
+
customuser_public_id: zod.ZodOptional<zod.ZodString>;
|
|
1093
|
+
id: zod.ZodString;
|
|
1094
|
+
account_id: zod.ZodString;
|
|
1095
|
+
implementation_id: zod.ZodOptional<zod.ZodString>;
|
|
1096
|
+
profile_id: zod.ZodOptional<zod.ZodString>;
|
|
1097
|
+
is_expired: zod.ZodOptional<zod.ZodString>;
|
|
1098
|
+
expired_at: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1099
|
+
app_key: zod.ZodOptional<zod.ZodString>;
|
|
1100
|
+
app_version: zod.ZodOptional<zod.ZodString>;
|
|
1101
|
+
}, zod_v4_core.$strip>;
|
|
1102
|
+
formatter: OutputFormatter<unknown, {
|
|
1103
|
+
date: string;
|
|
1104
|
+
is_invite_only: boolean;
|
|
1105
|
+
is_private: boolean;
|
|
1106
|
+
shared_with_all: boolean;
|
|
1107
|
+
id: string;
|
|
1108
|
+
account_id: string;
|
|
1109
|
+
title?: string | null | undefined;
|
|
1110
|
+
lastchanged?: string | undefined;
|
|
1111
|
+
destination_selected_api?: string | null | undefined;
|
|
1112
|
+
is_stale?: string | undefined;
|
|
1113
|
+
is_shared?: string | undefined;
|
|
1114
|
+
marked_stale_at?: string | null | undefined;
|
|
1115
|
+
label?: string | null | undefined;
|
|
1116
|
+
identifier?: string | null | undefined;
|
|
1117
|
+
url?: string | undefined;
|
|
1118
|
+
groups?: Record<string, unknown>[] | undefined;
|
|
1119
|
+
members?: string | undefined;
|
|
1120
|
+
permissions?: Record<string, boolean> | undefined;
|
|
1121
|
+
public_id?: string | undefined;
|
|
1122
|
+
account_public_id?: string | undefined;
|
|
1123
|
+
customuser_public_id?: string | undefined;
|
|
1124
|
+
implementation_id?: string | undefined;
|
|
1125
|
+
profile_id?: string | undefined;
|
|
1126
|
+
is_expired?: string | undefined;
|
|
1127
|
+
expired_at?: string | null | undefined;
|
|
1128
|
+
app_key?: string | undefined;
|
|
1129
|
+
app_version?: string | undefined;
|
|
1130
|
+
}, Record<string, unknown>, unknown>;
|
|
1131
|
+
};
|
|
1132
|
+
};
|
|
1133
|
+
};
|
|
1134
|
+
} & {
|
|
1135
|
+
getAuthentication: (options?: {
|
|
1136
|
+
connection?: string | number | undefined;
|
|
1137
|
+
connectionId?: string | number | undefined;
|
|
1138
|
+
authenticationId?: string | number | undefined;
|
|
1139
|
+
} | undefined) => Promise<{
|
|
1140
|
+
data: {
|
|
1141
|
+
date: string;
|
|
1142
|
+
is_invite_only: boolean;
|
|
1143
|
+
is_private: boolean;
|
|
1144
|
+
shared_with_all: boolean;
|
|
1145
|
+
id: string;
|
|
1146
|
+
account_id: string;
|
|
1147
|
+
title?: string | null | undefined;
|
|
1148
|
+
lastchanged?: string | undefined;
|
|
1149
|
+
destination_selected_api?: string | null | undefined;
|
|
1150
|
+
is_stale?: string | undefined;
|
|
1151
|
+
is_shared?: string | undefined;
|
|
1152
|
+
marked_stale_at?: string | null | undefined;
|
|
1153
|
+
label?: string | null | undefined;
|
|
1154
|
+
identifier?: string | null | undefined;
|
|
1155
|
+
url?: string | undefined;
|
|
1156
|
+
groups?: Record<string, unknown>[] | undefined;
|
|
1157
|
+
members?: string | undefined;
|
|
1158
|
+
permissions?: Record<string, boolean> | undefined;
|
|
1159
|
+
public_id?: string | undefined;
|
|
1160
|
+
account_public_id?: string | undefined;
|
|
1161
|
+
customuser_public_id?: string | undefined;
|
|
1162
|
+
implementation_id?: string | undefined;
|
|
1163
|
+
profile_id?: string | undefined;
|
|
1164
|
+
is_expired?: string | undefined;
|
|
1165
|
+
expired_at?: string | null | undefined;
|
|
1166
|
+
app_key?: string | undefined;
|
|
1167
|
+
app_version?: string | undefined;
|
|
1168
|
+
};
|
|
1169
|
+
}>;
|
|
1170
|
+
context: {
|
|
1171
|
+
meta: {
|
|
1172
|
+
getAuthentication: {
|
|
1173
|
+
packages: string[];
|
|
1174
|
+
categories: string[];
|
|
1175
|
+
deprecation: {
|
|
1176
|
+
message: string;
|
|
1177
|
+
};
|
|
1178
|
+
type: "item";
|
|
1179
|
+
itemType: string;
|
|
1180
|
+
inputSchema: zod.ZodObject<{
|
|
1181
|
+
connection: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
1182
|
+
connectionId: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
1183
|
+
authenticationId: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
1184
|
+
}, zod_v4_core.$strip>;
|
|
1185
|
+
outputSchema: zod.ZodObject<{
|
|
1186
|
+
title: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1187
|
+
date: zod.ZodString;
|
|
1188
|
+
is_invite_only: zod.ZodBoolean;
|
|
1189
|
+
lastchanged: zod.ZodOptional<zod.ZodString>;
|
|
1190
|
+
destination_selected_api: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1191
|
+
is_private: zod.ZodBoolean;
|
|
1192
|
+
shared_with_all: zod.ZodBoolean;
|
|
1193
|
+
is_stale: zod.ZodOptional<zod.ZodString>;
|
|
1194
|
+
is_shared: zod.ZodOptional<zod.ZodString>;
|
|
1195
|
+
marked_stale_at: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1196
|
+
label: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1197
|
+
identifier: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1198
|
+
url: zod.ZodOptional<zod.ZodString>;
|
|
1199
|
+
groups: zod.ZodOptional<zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
|
|
1200
|
+
members: zod.ZodOptional<zod.ZodString>;
|
|
1201
|
+
permissions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodBoolean>>;
|
|
1202
|
+
public_id: zod.ZodOptional<zod.ZodString>;
|
|
1203
|
+
account_public_id: zod.ZodOptional<zod.ZodString>;
|
|
1204
|
+
customuser_public_id: zod.ZodOptional<zod.ZodString>;
|
|
1205
|
+
id: zod.ZodString;
|
|
1206
|
+
account_id: zod.ZodString;
|
|
1207
|
+
implementation_id: zod.ZodOptional<zod.ZodString>;
|
|
1208
|
+
profile_id: zod.ZodOptional<zod.ZodString>;
|
|
1209
|
+
is_expired: zod.ZodOptional<zod.ZodString>;
|
|
1210
|
+
expired_at: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1211
|
+
app_key: zod.ZodOptional<zod.ZodString>;
|
|
1212
|
+
app_version: zod.ZodOptional<zod.ZodString>;
|
|
1213
|
+
}, zod_v4_core.$strip>;
|
|
1214
|
+
formatter: OutputFormatter<unknown, {
|
|
1215
|
+
date: string;
|
|
1216
|
+
is_invite_only: boolean;
|
|
1217
|
+
is_private: boolean;
|
|
1218
|
+
shared_with_all: boolean;
|
|
1219
|
+
id: string;
|
|
1220
|
+
account_id: string;
|
|
1221
|
+
title?: string | null | undefined;
|
|
1222
|
+
lastchanged?: string | undefined;
|
|
1223
|
+
destination_selected_api?: string | null | undefined;
|
|
1224
|
+
is_stale?: string | undefined;
|
|
1225
|
+
is_shared?: string | undefined;
|
|
1226
|
+
marked_stale_at?: string | null | undefined;
|
|
1227
|
+
label?: string | null | undefined;
|
|
1228
|
+
identifier?: string | null | undefined;
|
|
1229
|
+
url?: string | undefined;
|
|
1230
|
+
groups?: Record<string, unknown>[] | undefined;
|
|
1231
|
+
members?: string | undefined;
|
|
1232
|
+
permissions?: Record<string, boolean> | undefined;
|
|
1233
|
+
public_id?: string | undefined;
|
|
1234
|
+
account_public_id?: string | undefined;
|
|
1235
|
+
customuser_public_id?: string | undefined;
|
|
1236
|
+
implementation_id?: string | undefined;
|
|
1237
|
+
profile_id?: string | undefined;
|
|
1238
|
+
is_expired?: string | undefined;
|
|
1239
|
+
expired_at?: string | null | undefined;
|
|
1240
|
+
app_key?: string | undefined;
|
|
1241
|
+
app_version?: string | undefined;
|
|
1242
|
+
}, Record<string, unknown>, unknown>;
|
|
1243
|
+
};
|
|
1244
|
+
};
|
|
1245
|
+
};
|
|
1246
|
+
} & {
|
|
1247
|
+
findFirstAuthentication: (options?: {
|
|
1248
|
+
title?: string | undefined;
|
|
1249
|
+
appKey?: string | undefined;
|
|
1250
|
+
app?: string | undefined;
|
|
845
1251
|
search?: string | undefined;
|
|
846
1252
|
owner?: string | undefined;
|
|
847
1253
|
account?: string | undefined;
|
|
@@ -880,14 +1286,95 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
880
1286
|
app_version?: string | undefined;
|
|
881
1287
|
};
|
|
882
1288
|
}>;
|
|
883
|
-
} & {
|
|
884
1289
|
context: {
|
|
885
1290
|
meta: {
|
|
886
|
-
|
|
1291
|
+
findFirstAuthentication: {
|
|
1292
|
+
packages: string[];
|
|
1293
|
+
categories: string[];
|
|
1294
|
+
deprecation: {
|
|
1295
|
+
message: string;
|
|
1296
|
+
};
|
|
1297
|
+
type: "item";
|
|
1298
|
+
itemType: string;
|
|
1299
|
+
inputSchema: zod.ZodObject<{
|
|
1300
|
+
title: zod.ZodOptional<zod.ZodString>;
|
|
1301
|
+
appKey: zod.ZodOptional<zod.ZodString & {
|
|
1302
|
+
_def: zod_v4_core.$ZodStringDef & PositionalMetadata;
|
|
1303
|
+
}>;
|
|
1304
|
+
app: zod.ZodOptional<zod.ZodString & {
|
|
1305
|
+
_def: zod_v4_core.$ZodStringDef & PositionalMetadata;
|
|
1306
|
+
}>;
|
|
1307
|
+
search: zod.ZodOptional<zod.ZodString>;
|
|
1308
|
+
owner: zod.ZodOptional<zod.ZodString>;
|
|
1309
|
+
account: zod.ZodOptional<zod.ZodString>;
|
|
1310
|
+
accountId: zod.ZodOptional<zod.ZodString>;
|
|
1311
|
+
includeShared: zod.ZodOptional<zod.ZodBoolean>;
|
|
1312
|
+
isExpired: zod.ZodOptional<zod.ZodBoolean>;
|
|
1313
|
+
expired: zod.ZodOptional<zod.ZodBoolean>;
|
|
1314
|
+
}, zod_v4_core.$strip>;
|
|
1315
|
+
outputSchema: zod.ZodObject<{
|
|
1316
|
+
title: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1317
|
+
date: zod.ZodString;
|
|
1318
|
+
is_invite_only: zod.ZodBoolean;
|
|
1319
|
+
lastchanged: zod.ZodOptional<zod.ZodString>;
|
|
1320
|
+
destination_selected_api: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1321
|
+
is_private: zod.ZodBoolean;
|
|
1322
|
+
shared_with_all: zod.ZodBoolean;
|
|
1323
|
+
is_stale: zod.ZodOptional<zod.ZodString>;
|
|
1324
|
+
is_shared: zod.ZodOptional<zod.ZodString>;
|
|
1325
|
+
marked_stale_at: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1326
|
+
label: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1327
|
+
identifier: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1328
|
+
url: zod.ZodOptional<zod.ZodString>;
|
|
1329
|
+
groups: zod.ZodOptional<zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
|
|
1330
|
+
members: zod.ZodOptional<zod.ZodString>;
|
|
1331
|
+
permissions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodBoolean>>;
|
|
1332
|
+
public_id: zod.ZodOptional<zod.ZodString>;
|
|
1333
|
+
account_public_id: zod.ZodOptional<zod.ZodString>;
|
|
1334
|
+
customuser_public_id: zod.ZodOptional<zod.ZodString>;
|
|
1335
|
+
id: zod.ZodString;
|
|
1336
|
+
account_id: zod.ZodString;
|
|
1337
|
+
implementation_id: zod.ZodOptional<zod.ZodString>;
|
|
1338
|
+
profile_id: zod.ZodOptional<zod.ZodString>;
|
|
1339
|
+
is_expired: zod.ZodOptional<zod.ZodString>;
|
|
1340
|
+
expired_at: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1341
|
+
app_key: zod.ZodOptional<zod.ZodString>;
|
|
1342
|
+
app_version: zod.ZodOptional<zod.ZodString>;
|
|
1343
|
+
}, zod_v4_core.$strip>;
|
|
1344
|
+
formatter: OutputFormatter<unknown, {
|
|
1345
|
+
date: string;
|
|
1346
|
+
is_invite_only: boolean;
|
|
1347
|
+
is_private: boolean;
|
|
1348
|
+
shared_with_all: boolean;
|
|
1349
|
+
id: string;
|
|
1350
|
+
account_id: string;
|
|
1351
|
+
title?: string | null | undefined;
|
|
1352
|
+
lastchanged?: string | undefined;
|
|
1353
|
+
destination_selected_api?: string | null | undefined;
|
|
1354
|
+
is_stale?: string | undefined;
|
|
1355
|
+
is_shared?: string | undefined;
|
|
1356
|
+
marked_stale_at?: string | null | undefined;
|
|
1357
|
+
label?: string | null | undefined;
|
|
1358
|
+
identifier?: string | null | undefined;
|
|
1359
|
+
url?: string | undefined;
|
|
1360
|
+
groups?: Record<string, unknown>[] | undefined;
|
|
1361
|
+
members?: string | undefined;
|
|
1362
|
+
permissions?: Record<string, boolean> | undefined;
|
|
1363
|
+
public_id?: string | undefined;
|
|
1364
|
+
account_public_id?: string | undefined;
|
|
1365
|
+
customuser_public_id?: string | undefined;
|
|
1366
|
+
implementation_id?: string | undefined;
|
|
1367
|
+
profile_id?: string | undefined;
|
|
1368
|
+
is_expired?: string | undefined;
|
|
1369
|
+
expired_at?: string | null | undefined;
|
|
1370
|
+
app_key?: string | undefined;
|
|
1371
|
+
app_version?: string | undefined;
|
|
1372
|
+
}, Record<string, unknown>, unknown>;
|
|
1373
|
+
};
|
|
887
1374
|
};
|
|
888
1375
|
};
|
|
889
1376
|
} & {
|
|
890
|
-
|
|
1377
|
+
findUniqueAuthentication: (options?: {
|
|
891
1378
|
title?: string | undefined;
|
|
892
1379
|
appKey?: string | undefined;
|
|
893
1380
|
app?: string | undefined;
|
|
@@ -928,11 +1415,2565 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
928
1415
|
app_key?: string | undefined;
|
|
929
1416
|
app_version?: string | undefined;
|
|
930
1417
|
};
|
|
931
|
-
}>;
|
|
1418
|
+
}>;
|
|
1419
|
+
context: {
|
|
1420
|
+
meta: {
|
|
1421
|
+
findUniqueAuthentication: {
|
|
1422
|
+
packages: string[];
|
|
1423
|
+
categories: string[];
|
|
1424
|
+
deprecation: {
|
|
1425
|
+
message: string;
|
|
1426
|
+
};
|
|
1427
|
+
type: "item";
|
|
1428
|
+
itemType: string;
|
|
1429
|
+
inputSchema: zod.ZodObject<{
|
|
1430
|
+
title: zod.ZodOptional<zod.ZodString>;
|
|
1431
|
+
appKey: zod.ZodOptional<zod.ZodString & {
|
|
1432
|
+
_def: zod_v4_core.$ZodStringDef & PositionalMetadata;
|
|
1433
|
+
}>;
|
|
1434
|
+
app: zod.ZodOptional<zod.ZodString & {
|
|
1435
|
+
_def: zod_v4_core.$ZodStringDef & PositionalMetadata;
|
|
1436
|
+
}>;
|
|
1437
|
+
search: zod.ZodOptional<zod.ZodString>;
|
|
1438
|
+
owner: zod.ZodOptional<zod.ZodString>;
|
|
1439
|
+
account: zod.ZodOptional<zod.ZodString>;
|
|
1440
|
+
accountId: zod.ZodOptional<zod.ZodString>;
|
|
1441
|
+
includeShared: zod.ZodOptional<zod.ZodBoolean>;
|
|
1442
|
+
isExpired: zod.ZodOptional<zod.ZodBoolean>;
|
|
1443
|
+
expired: zod.ZodOptional<zod.ZodBoolean>;
|
|
1444
|
+
}, zod_v4_core.$strip>;
|
|
1445
|
+
outputSchema: zod.ZodObject<{
|
|
1446
|
+
title: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1447
|
+
date: zod.ZodString;
|
|
1448
|
+
is_invite_only: zod.ZodBoolean;
|
|
1449
|
+
lastchanged: zod.ZodOptional<zod.ZodString>;
|
|
1450
|
+
destination_selected_api: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1451
|
+
is_private: zod.ZodBoolean;
|
|
1452
|
+
shared_with_all: zod.ZodBoolean;
|
|
1453
|
+
is_stale: zod.ZodOptional<zod.ZodString>;
|
|
1454
|
+
is_shared: zod.ZodOptional<zod.ZodString>;
|
|
1455
|
+
marked_stale_at: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1456
|
+
label: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1457
|
+
identifier: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1458
|
+
url: zod.ZodOptional<zod.ZodString>;
|
|
1459
|
+
groups: zod.ZodOptional<zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
|
|
1460
|
+
members: zod.ZodOptional<zod.ZodString>;
|
|
1461
|
+
permissions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodBoolean>>;
|
|
1462
|
+
public_id: zod.ZodOptional<zod.ZodString>;
|
|
1463
|
+
account_public_id: zod.ZodOptional<zod.ZodString>;
|
|
1464
|
+
customuser_public_id: zod.ZodOptional<zod.ZodString>;
|
|
1465
|
+
id: zod.ZodString;
|
|
1466
|
+
account_id: zod.ZodString;
|
|
1467
|
+
implementation_id: zod.ZodOptional<zod.ZodString>;
|
|
1468
|
+
profile_id: zod.ZodOptional<zod.ZodString>;
|
|
1469
|
+
is_expired: zod.ZodOptional<zod.ZodString>;
|
|
1470
|
+
expired_at: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1471
|
+
app_key: zod.ZodOptional<zod.ZodString>;
|
|
1472
|
+
app_version: zod.ZodOptional<zod.ZodString>;
|
|
1473
|
+
}, zod_v4_core.$strip>;
|
|
1474
|
+
formatter: OutputFormatter<unknown, {
|
|
1475
|
+
date: string;
|
|
1476
|
+
is_invite_only: boolean;
|
|
1477
|
+
is_private: boolean;
|
|
1478
|
+
shared_with_all: boolean;
|
|
1479
|
+
id: string;
|
|
1480
|
+
account_id: string;
|
|
1481
|
+
title?: string | null | undefined;
|
|
1482
|
+
lastchanged?: string | undefined;
|
|
1483
|
+
destination_selected_api?: string | null | undefined;
|
|
1484
|
+
is_stale?: string | undefined;
|
|
1485
|
+
is_shared?: string | undefined;
|
|
1486
|
+
marked_stale_at?: string | null | undefined;
|
|
1487
|
+
label?: string | null | undefined;
|
|
1488
|
+
identifier?: string | null | undefined;
|
|
1489
|
+
url?: string | undefined;
|
|
1490
|
+
groups?: Record<string, unknown>[] | undefined;
|
|
1491
|
+
members?: string | undefined;
|
|
1492
|
+
permissions?: Record<string, boolean> | undefined;
|
|
1493
|
+
public_id?: string | undefined;
|
|
1494
|
+
account_public_id?: string | undefined;
|
|
1495
|
+
customuser_public_id?: string | undefined;
|
|
1496
|
+
implementation_id?: string | undefined;
|
|
1497
|
+
profile_id?: string | undefined;
|
|
1498
|
+
is_expired?: string | undefined;
|
|
1499
|
+
expired_at?: string | null | undefined;
|
|
1500
|
+
app_key?: string | undefined;
|
|
1501
|
+
app_version?: string | undefined;
|
|
1502
|
+
}, Record<string, unknown>, unknown>;
|
|
1503
|
+
};
|
|
1504
|
+
};
|
|
1505
|
+
};
|
|
1506
|
+
} & {
|
|
1507
|
+
listClientCredentials: (options?: ({
|
|
1508
|
+
pageSize?: number | undefined;
|
|
1509
|
+
maxItems?: number | undefined;
|
|
1510
|
+
cursor?: string | undefined;
|
|
1511
|
+
} & {
|
|
1512
|
+
cursor?: string;
|
|
1513
|
+
pageSize?: number;
|
|
1514
|
+
maxItems?: number;
|
|
1515
|
+
}) | undefined) => PaginatedSdkResult<{
|
|
1516
|
+
client_id: string;
|
|
1517
|
+
name: string;
|
|
1518
|
+
allowed_scopes: ("credentials" | "external")[];
|
|
1519
|
+
created_at?: string | null | undefined;
|
|
1520
|
+
updated_at?: string | undefined;
|
|
1521
|
+
}>;
|
|
1522
|
+
} & {
|
|
1523
|
+
context: {
|
|
1524
|
+
meta: {
|
|
1525
|
+
listClientCredentials: PluginMeta<unknown>;
|
|
1526
|
+
};
|
|
1527
|
+
};
|
|
1528
|
+
} & {
|
|
1529
|
+
createClientCredentials: (options?: {
|
|
1530
|
+
name: string;
|
|
1531
|
+
allowedScopes: ("credentials" | "external")[];
|
|
1532
|
+
policy?: Record<string, unknown> | undefined;
|
|
1533
|
+
} | undefined) => Promise<{
|
|
1534
|
+
data: {
|
|
1535
|
+
client_id: string;
|
|
1536
|
+
name: string;
|
|
1537
|
+
client_secret: string;
|
|
1538
|
+
};
|
|
1539
|
+
}>;
|
|
1540
|
+
} & {
|
|
1541
|
+
context: {
|
|
1542
|
+
meta: {
|
|
1543
|
+
createClientCredentials: PluginMeta<unknown>;
|
|
1544
|
+
};
|
|
1545
|
+
};
|
|
1546
|
+
} & {
|
|
1547
|
+
deleteClientCredentials: (options?: {
|
|
1548
|
+
clientId: string;
|
|
1549
|
+
} | undefined) => Promise<{
|
|
1550
|
+
success: boolean;
|
|
1551
|
+
}>;
|
|
1552
|
+
} & {
|
|
1553
|
+
context: {
|
|
1554
|
+
meta: {
|
|
1555
|
+
deleteClientCredentials: PluginMeta<unknown>;
|
|
1556
|
+
};
|
|
1557
|
+
};
|
|
1558
|
+
} & {
|
|
1559
|
+
fetch: (url: string | URL, init?: ZapierFetchInitOptions) => Promise<Response>;
|
|
1560
|
+
context: {
|
|
1561
|
+
meta: {
|
|
1562
|
+
fetch: {
|
|
1563
|
+
description: string;
|
|
1564
|
+
packages: string[];
|
|
1565
|
+
categories: {
|
|
1566
|
+
key: string;
|
|
1567
|
+
title: string;
|
|
1568
|
+
}[];
|
|
1569
|
+
returnType: string;
|
|
1570
|
+
inputParameters: ({
|
|
1571
|
+
name: string;
|
|
1572
|
+
schema: zod.ZodUnion<readonly [zod.ZodString, zod.ZodCustom<URL, URL>]>;
|
|
1573
|
+
} | {
|
|
1574
|
+
name: string;
|
|
1575
|
+
schema: zod.ZodOptional<zod.ZodObject<{
|
|
1576
|
+
method: zod.ZodOptional<zod.ZodEnum<{
|
|
1577
|
+
GET: "GET";
|
|
1578
|
+
POST: "POST";
|
|
1579
|
+
PUT: "PUT";
|
|
1580
|
+
DELETE: "DELETE";
|
|
1581
|
+
PATCH: "PATCH";
|
|
1582
|
+
HEAD: "HEAD";
|
|
1583
|
+
OPTIONS: "OPTIONS";
|
|
1584
|
+
}>>;
|
|
1585
|
+
headers: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
1586
|
+
body: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodCustom<FormData, FormData>, zod.ZodCustom<URLSearchParams, URLSearchParams>, zod.ZodRecord<zod.ZodString, zod.ZodUnknown>]>>;
|
|
1587
|
+
connectionId: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
1588
|
+
connection: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
1589
|
+
authenticationId: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
1590
|
+
callbackUrl: zod.ZodOptional<zod.ZodString>;
|
|
1591
|
+
maxTime: zod.ZodOptional<zod.ZodNumber>;
|
|
1592
|
+
}, zod_v4_core.$strip>>;
|
|
1593
|
+
})[];
|
|
1594
|
+
};
|
|
1595
|
+
};
|
|
1596
|
+
};
|
|
1597
|
+
} & {
|
|
1598
|
+
request: (options?: {
|
|
1599
|
+
url: string;
|
|
1600
|
+
method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
1601
|
+
body?: any;
|
|
1602
|
+
connection?: string | number | undefined;
|
|
1603
|
+
connectionId?: string | number | undefined;
|
|
1604
|
+
authenticationId?: string | number | undefined;
|
|
1605
|
+
callbackUrl?: string | undefined;
|
|
1606
|
+
headers?: Record<string, string> | [string, string][] | Headers | undefined;
|
|
1607
|
+
} | undefined) => Promise<Response>;
|
|
1608
|
+
} & {
|
|
1609
|
+
context: {
|
|
1610
|
+
meta: {
|
|
1611
|
+
request: PluginMeta<unknown>;
|
|
1612
|
+
};
|
|
1613
|
+
};
|
|
1614
|
+
} & {
|
|
1615
|
+
listTriggerInboxes: (options?: ({
|
|
1616
|
+
name?: string | undefined;
|
|
1617
|
+
status?: string | undefined;
|
|
1618
|
+
pageSize?: number | undefined;
|
|
1619
|
+
maxItems?: number | undefined;
|
|
1620
|
+
cursor?: string | undefined;
|
|
1621
|
+
} & {
|
|
1622
|
+
cursor?: string;
|
|
1623
|
+
pageSize?: number;
|
|
1624
|
+
maxItems?: number;
|
|
1625
|
+
}) | undefined) => PaginatedSdkResult<{
|
|
1626
|
+
id: string;
|
|
1627
|
+
created_at: string;
|
|
1628
|
+
name: string | null;
|
|
1629
|
+
status: string;
|
|
1630
|
+
paused_reason: string | null;
|
|
1631
|
+
notification_url: string | null;
|
|
1632
|
+
subscription: {
|
|
1633
|
+
connection_id: string | number | null;
|
|
1634
|
+
app_key: string;
|
|
1635
|
+
action_key: string;
|
|
1636
|
+
inputs: Record<string, unknown>;
|
|
1637
|
+
};
|
|
1638
|
+
}>;
|
|
1639
|
+
} & {
|
|
1640
|
+
context: {
|
|
1641
|
+
meta: {
|
|
1642
|
+
listTriggerInboxes: PluginMeta<unknown>;
|
|
1643
|
+
};
|
|
1644
|
+
};
|
|
1645
|
+
} & {
|
|
1646
|
+
createTriggerInbox: (options?: {
|
|
1647
|
+
app: string;
|
|
1648
|
+
action: string;
|
|
1649
|
+
name?: string | undefined;
|
|
1650
|
+
connection?: string | number | null | undefined;
|
|
1651
|
+
inputs?: Record<string, unknown> | undefined;
|
|
1652
|
+
notificationUrl?: string | undefined;
|
|
1653
|
+
} | undefined) => Promise<{
|
|
1654
|
+
data: {
|
|
1655
|
+
id: string;
|
|
1656
|
+
created_at: string;
|
|
1657
|
+
name: string | null;
|
|
1658
|
+
status: string;
|
|
1659
|
+
paused_reason: string | null;
|
|
1660
|
+
notification_url: string | null;
|
|
1661
|
+
subscription: {
|
|
1662
|
+
connection_id: string | number | null;
|
|
1663
|
+
app_key: string;
|
|
1664
|
+
action_key: string;
|
|
1665
|
+
inputs: Record<string, unknown>;
|
|
1666
|
+
};
|
|
1667
|
+
};
|
|
1668
|
+
}>;
|
|
1669
|
+
} & {
|
|
1670
|
+
context: {
|
|
1671
|
+
meta: {
|
|
1672
|
+
createTriggerInbox: PluginMeta<unknown>;
|
|
1673
|
+
};
|
|
1674
|
+
};
|
|
1675
|
+
} & {
|
|
1676
|
+
ensureTriggerInbox: (options?: {
|
|
1677
|
+
name: string;
|
|
1678
|
+
app: string;
|
|
1679
|
+
action: string;
|
|
1680
|
+
connection?: string | number | null | undefined;
|
|
1681
|
+
inputs?: Record<string, unknown> | undefined;
|
|
1682
|
+
notificationUrl?: string | undefined;
|
|
1683
|
+
} | undefined) => Promise<{
|
|
1684
|
+
data: {
|
|
1685
|
+
id: string;
|
|
1686
|
+
created_at: string;
|
|
1687
|
+
name: string | null;
|
|
1688
|
+
status: string;
|
|
1689
|
+
paused_reason: string | null;
|
|
1690
|
+
notification_url: string | null;
|
|
1691
|
+
subscription: {
|
|
1692
|
+
connection_id: string | number | null;
|
|
1693
|
+
app_key: string;
|
|
1694
|
+
action_key: string;
|
|
1695
|
+
inputs: Record<string, unknown>;
|
|
1696
|
+
};
|
|
1697
|
+
};
|
|
1698
|
+
}>;
|
|
1699
|
+
} & {
|
|
1700
|
+
context: {
|
|
1701
|
+
meta: {
|
|
1702
|
+
ensureTriggerInbox: PluginMeta<unknown>;
|
|
1703
|
+
};
|
|
1704
|
+
};
|
|
1705
|
+
} & {
|
|
1706
|
+
getTriggerInbox: (options?: {
|
|
1707
|
+
inbox: string;
|
|
1708
|
+
} | undefined) => Promise<{
|
|
1709
|
+
data: {
|
|
1710
|
+
id: string;
|
|
1711
|
+
created_at: string;
|
|
1712
|
+
name: string | null;
|
|
1713
|
+
status: string;
|
|
1714
|
+
paused_reason: string | null;
|
|
1715
|
+
notification_url: string | null;
|
|
1716
|
+
subscription: {
|
|
1717
|
+
connection_id: string | number | null;
|
|
1718
|
+
app_key: string;
|
|
1719
|
+
action_key: string;
|
|
1720
|
+
inputs: Record<string, unknown>;
|
|
1721
|
+
};
|
|
1722
|
+
};
|
|
1723
|
+
}>;
|
|
1724
|
+
} & {
|
|
1725
|
+
context: {
|
|
1726
|
+
meta: {
|
|
1727
|
+
getTriggerInbox: PluginMeta<unknown>;
|
|
1728
|
+
};
|
|
1729
|
+
};
|
|
1730
|
+
} & {
|
|
1731
|
+
updateTriggerInbox: (options?: {
|
|
1732
|
+
inbox: string;
|
|
1733
|
+
notificationUrl?: string | null | undefined;
|
|
1734
|
+
} | undefined) => Promise<{
|
|
1735
|
+
data: {
|
|
1736
|
+
id: string;
|
|
1737
|
+
created_at: string;
|
|
1738
|
+
name: string | null;
|
|
1739
|
+
status: string;
|
|
1740
|
+
paused_reason: string | null;
|
|
1741
|
+
notification_url: string | null;
|
|
1742
|
+
subscription: {
|
|
1743
|
+
connection_id: string | number | null;
|
|
1744
|
+
app_key: string;
|
|
1745
|
+
action_key: string;
|
|
1746
|
+
inputs: Record<string, unknown>;
|
|
1747
|
+
};
|
|
1748
|
+
};
|
|
1749
|
+
}>;
|
|
1750
|
+
} & {
|
|
1751
|
+
context: {
|
|
1752
|
+
meta: {
|
|
1753
|
+
updateTriggerInbox: PluginMeta<unknown>;
|
|
1754
|
+
};
|
|
1755
|
+
};
|
|
1756
|
+
} & {
|
|
1757
|
+
deleteTriggerInbox: (options?: {
|
|
1758
|
+
inbox: string;
|
|
1759
|
+
} | undefined) => Promise<{
|
|
1760
|
+
data: {
|
|
1761
|
+
id: string;
|
|
1762
|
+
created_at: string;
|
|
1763
|
+
name: string | null;
|
|
1764
|
+
status: string;
|
|
1765
|
+
paused_reason: string | null;
|
|
1766
|
+
notification_url: string | null;
|
|
1767
|
+
subscription: {
|
|
1768
|
+
connection_id: string | number | null;
|
|
1769
|
+
app_key: string;
|
|
1770
|
+
action_key: string;
|
|
1771
|
+
inputs: Record<string, unknown>;
|
|
1772
|
+
};
|
|
1773
|
+
};
|
|
1774
|
+
}>;
|
|
1775
|
+
} & {
|
|
1776
|
+
context: {
|
|
1777
|
+
meta: {
|
|
1778
|
+
deleteTriggerInbox: PluginMeta<unknown>;
|
|
1779
|
+
};
|
|
1780
|
+
};
|
|
1781
|
+
} & {
|
|
1782
|
+
pauseTriggerInbox: (options?: {
|
|
1783
|
+
inbox: string;
|
|
1784
|
+
} | undefined) => Promise<{
|
|
1785
|
+
data: {
|
|
1786
|
+
id: string;
|
|
1787
|
+
created_at: string;
|
|
1788
|
+
name: string | null;
|
|
1789
|
+
status: string;
|
|
1790
|
+
paused_reason: string | null;
|
|
1791
|
+
notification_url: string | null;
|
|
1792
|
+
subscription: {
|
|
1793
|
+
connection_id: string | number | null;
|
|
1794
|
+
app_key: string;
|
|
1795
|
+
action_key: string;
|
|
1796
|
+
inputs: Record<string, unknown>;
|
|
1797
|
+
};
|
|
1798
|
+
};
|
|
1799
|
+
}>;
|
|
1800
|
+
} & {
|
|
1801
|
+
context: {
|
|
1802
|
+
meta: {
|
|
1803
|
+
pauseTriggerInbox: PluginMeta<unknown>;
|
|
1804
|
+
};
|
|
1805
|
+
};
|
|
1806
|
+
} & {
|
|
1807
|
+
resumeTriggerInbox: (options?: {
|
|
1808
|
+
inbox: string;
|
|
1809
|
+
} | undefined) => Promise<{
|
|
1810
|
+
data: {
|
|
1811
|
+
id: string;
|
|
1812
|
+
created_at: string;
|
|
1813
|
+
name: string | null;
|
|
1814
|
+
status: string;
|
|
1815
|
+
paused_reason: string | null;
|
|
1816
|
+
notification_url: string | null;
|
|
1817
|
+
subscription: {
|
|
1818
|
+
connection_id: string | number | null;
|
|
1819
|
+
app_key: string;
|
|
1820
|
+
action_key: string;
|
|
1821
|
+
inputs: Record<string, unknown>;
|
|
1822
|
+
};
|
|
1823
|
+
};
|
|
1824
|
+
}>;
|
|
1825
|
+
} & {
|
|
1826
|
+
context: {
|
|
1827
|
+
meta: {
|
|
1828
|
+
resumeTriggerInbox: PluginMeta<unknown>;
|
|
1829
|
+
};
|
|
1830
|
+
};
|
|
1831
|
+
} & {
|
|
1832
|
+
listTriggerInboxMessages: (options?: ({
|
|
1833
|
+
inbox: string;
|
|
1834
|
+
pageSize?: number | undefined;
|
|
1835
|
+
maxItems?: number | undefined;
|
|
1836
|
+
cursor?: string | undefined;
|
|
1837
|
+
} & {
|
|
1838
|
+
cursor?: string;
|
|
1839
|
+
pageSize?: number;
|
|
1840
|
+
maxItems?: number;
|
|
1841
|
+
}) | undefined) => PaginatedSdkResult<{
|
|
1842
|
+
id: string;
|
|
1843
|
+
created_at: string;
|
|
1844
|
+
status: string;
|
|
1845
|
+
message_attributes: {
|
|
1846
|
+
lease_count: number;
|
|
1847
|
+
error_message: string | null;
|
|
1848
|
+
possible_duplicate_data: boolean;
|
|
1849
|
+
};
|
|
1850
|
+
}>;
|
|
1851
|
+
} & {
|
|
1852
|
+
context: {
|
|
1853
|
+
meta: {
|
|
1854
|
+
listTriggerInboxMessages: PluginMeta<unknown>;
|
|
1855
|
+
};
|
|
1856
|
+
};
|
|
1857
|
+
} & {
|
|
1858
|
+
leaseTriggerInboxMessages: (options?: {
|
|
1859
|
+
inbox: string;
|
|
1860
|
+
leaseLimit?: number | undefined;
|
|
1861
|
+
leaseSeconds?: number | undefined;
|
|
1862
|
+
signal?: AbortSignal | undefined;
|
|
1863
|
+
} | undefined) => Promise<{
|
|
1864
|
+
data: {
|
|
1865
|
+
lease_id: string | null;
|
|
1866
|
+
leased_until: string | null;
|
|
1867
|
+
results: {
|
|
1868
|
+
id: string;
|
|
1869
|
+
created_at: string;
|
|
1870
|
+
status: string;
|
|
1871
|
+
message_attributes: {
|
|
1872
|
+
lease_count: number;
|
|
1873
|
+
error_message: string | null;
|
|
1874
|
+
possible_duplicate_data: boolean;
|
|
1875
|
+
};
|
|
1876
|
+
payload: Record<string, unknown>;
|
|
1877
|
+
}[];
|
|
1878
|
+
inbox_attributes: {
|
|
1879
|
+
status: string;
|
|
1880
|
+
paused_reason: string | null;
|
|
1881
|
+
};
|
|
1882
|
+
};
|
|
1883
|
+
}>;
|
|
1884
|
+
} & {
|
|
1885
|
+
context: {
|
|
1886
|
+
meta: {
|
|
1887
|
+
leaseTriggerInboxMessages: PluginMeta<unknown>;
|
|
1888
|
+
};
|
|
1889
|
+
};
|
|
1890
|
+
} & {
|
|
1891
|
+
ackTriggerInboxMessages: (options?: {
|
|
1892
|
+
inbox: string;
|
|
1893
|
+
lease: string;
|
|
1894
|
+
messages?: string[] | undefined;
|
|
1895
|
+
} | undefined) => Promise<{
|
|
1896
|
+
data: {
|
|
1897
|
+
acked_id: string | null;
|
|
1898
|
+
results: {
|
|
1899
|
+
id: string;
|
|
1900
|
+
created_at: string;
|
|
1901
|
+
status: string;
|
|
1902
|
+
message_attributes: {
|
|
1903
|
+
lease_count: number;
|
|
1904
|
+
error_message: string | null;
|
|
1905
|
+
possible_duplicate_data: boolean;
|
|
1906
|
+
};
|
|
1907
|
+
}[];
|
|
1908
|
+
};
|
|
1909
|
+
}>;
|
|
1910
|
+
} & {
|
|
1911
|
+
context: {
|
|
1912
|
+
meta: {
|
|
1913
|
+
ackTriggerInboxMessages: PluginMeta<unknown>;
|
|
1914
|
+
};
|
|
1915
|
+
};
|
|
1916
|
+
} & {
|
|
1917
|
+
releaseTriggerInboxMessages: (options?: {
|
|
1918
|
+
inbox: string;
|
|
1919
|
+
lease: string;
|
|
1920
|
+
messages?: string[] | undefined;
|
|
1921
|
+
} | undefined) => Promise<{
|
|
1922
|
+
data: {
|
|
1923
|
+
released_id: string | null;
|
|
1924
|
+
results: {
|
|
1925
|
+
id: string;
|
|
1926
|
+
created_at: string;
|
|
1927
|
+
status: string;
|
|
1928
|
+
message_attributes: {
|
|
1929
|
+
lease_count: number;
|
|
1930
|
+
error_message: string | null;
|
|
1931
|
+
possible_duplicate_data: boolean;
|
|
1932
|
+
};
|
|
1933
|
+
}[];
|
|
1934
|
+
};
|
|
1935
|
+
}>;
|
|
1936
|
+
} & {
|
|
1937
|
+
context: {
|
|
1938
|
+
meta: {
|
|
1939
|
+
releaseTriggerInboxMessages: PluginMeta<unknown>;
|
|
1940
|
+
};
|
|
1941
|
+
};
|
|
1942
|
+
} & {
|
|
1943
|
+
drainTriggerInbox: (options: DrainTriggerInboxOptions) => Promise<void>;
|
|
1944
|
+
context: {
|
|
1945
|
+
meta: {
|
|
1946
|
+
drainTriggerInbox: {
|
|
1947
|
+
type: "create";
|
|
1948
|
+
description: string;
|
|
1949
|
+
itemType: string;
|
|
1950
|
+
returnType: string;
|
|
1951
|
+
inputSchema: zod.ZodObject<{
|
|
1952
|
+
inbox: zod.ZodString & {
|
|
1953
|
+
_def: zod_v4_core.$ZodStringDef & PositionalMetadata;
|
|
1954
|
+
};
|
|
1955
|
+
onMessage: zod.ZodOptional<zod.ZodFunction<zod_v4_core.$ZodFunctionArgs, zod_v4_core.$ZodFunctionOut>>;
|
|
1956
|
+
concurrency: zod.ZodOptional<zod.ZodNumber>;
|
|
1957
|
+
leaseLimit: zod.ZodOptional<zod.ZodNumber>;
|
|
1958
|
+
leaseSeconds: zod.ZodOptional<zod.ZodNumber>;
|
|
1959
|
+
releaseOnError: zod.ZodOptional<zod.ZodBoolean>;
|
|
1960
|
+
continueOnError: zod.ZodOptional<zod.ZodBoolean>;
|
|
1961
|
+
onError: zod.ZodOptional<zod.ZodFunction<zod_v4_core.$ZodFunctionArgs, zod_v4_core.$ZodFunctionOut>>;
|
|
1962
|
+
signal: zod.ZodOptional<zod.ZodCustom<AbortSignal, AbortSignal>>;
|
|
1963
|
+
maxMessages: zod.ZodOptional<zod.ZodNumber>;
|
|
1964
|
+
}, zod_v4_core.$strip>;
|
|
1965
|
+
resolvers: {
|
|
1966
|
+
inbox: DynamicResolver<{
|
|
1967
|
+
listTriggerInboxes: (options?: ({
|
|
1968
|
+
name?: string | undefined;
|
|
1969
|
+
status?: string | undefined;
|
|
1970
|
+
pageSize?: number | undefined;
|
|
1971
|
+
maxItems?: number | undefined;
|
|
1972
|
+
cursor?: string | undefined;
|
|
1973
|
+
} & {
|
|
1974
|
+
cursor?: string;
|
|
1975
|
+
pageSize?: number;
|
|
1976
|
+
maxItems?: number;
|
|
1977
|
+
}) | undefined) => PaginatedSdkResult<{
|
|
1978
|
+
id: string;
|
|
1979
|
+
created_at: string;
|
|
1980
|
+
name: string | null;
|
|
1981
|
+
status: string;
|
|
1982
|
+
paused_reason: string | null;
|
|
1983
|
+
notification_url: string | null;
|
|
1984
|
+
subscription: {
|
|
1985
|
+
connection_id: string | number | null;
|
|
1986
|
+
app_key: string;
|
|
1987
|
+
action_key: string;
|
|
1988
|
+
inputs: Record<string, unknown>;
|
|
1989
|
+
};
|
|
1990
|
+
}>;
|
|
1991
|
+
} & {
|
|
1992
|
+
context: {
|
|
1993
|
+
meta: {
|
|
1994
|
+
listTriggerInboxes: PluginMeta<unknown>;
|
|
1995
|
+
};
|
|
1996
|
+
};
|
|
1997
|
+
}, {
|
|
1998
|
+
id: string;
|
|
1999
|
+
created_at: string;
|
|
2000
|
+
name: string | null;
|
|
2001
|
+
status: string;
|
|
2002
|
+
paused_reason: string | null;
|
|
2003
|
+
notification_url: string | null;
|
|
2004
|
+
subscription: {
|
|
2005
|
+
connection_id: string | number | null;
|
|
2006
|
+
app_key: string;
|
|
2007
|
+
action_key: string;
|
|
2008
|
+
inputs: Record<string, unknown>;
|
|
2009
|
+
};
|
|
2010
|
+
}, {}>;
|
|
2011
|
+
};
|
|
2012
|
+
packages: readonly ["sdk"];
|
|
2013
|
+
categories: string[];
|
|
2014
|
+
experimental: true;
|
|
2015
|
+
};
|
|
2016
|
+
};
|
|
2017
|
+
};
|
|
2018
|
+
} & {
|
|
2019
|
+
watchTriggerInbox: (options: WatchTriggerInboxOptions) => Promise<void>;
|
|
2020
|
+
context: {
|
|
2021
|
+
meta: {
|
|
2022
|
+
watchTriggerInbox: {
|
|
2023
|
+
type: "create";
|
|
2024
|
+
description: string;
|
|
2025
|
+
itemType: string;
|
|
2026
|
+
returnType: string;
|
|
2027
|
+
inputSchema: zod.ZodObject<{
|
|
2028
|
+
inbox: zod.ZodString & {
|
|
2029
|
+
_def: zod_v4_core.$ZodStringDef & PositionalMetadata;
|
|
2030
|
+
};
|
|
2031
|
+
onMessage: zod.ZodOptional<zod.ZodFunction<zod_v4_core.$ZodFunctionArgs, zod_v4_core.$ZodFunctionOut>>;
|
|
2032
|
+
concurrency: zod.ZodOptional<zod.ZodNumber>;
|
|
2033
|
+
leaseLimit: zod.ZodOptional<zod.ZodNumber>;
|
|
2034
|
+
leaseSeconds: zod.ZodOptional<zod.ZodNumber>;
|
|
2035
|
+
releaseOnError: zod.ZodOptional<zod.ZodBoolean>;
|
|
2036
|
+
continueOnError: zod.ZodOptional<zod.ZodBoolean>;
|
|
2037
|
+
onError: zod.ZodOptional<zod.ZodFunction<zod_v4_core.$ZodFunctionArgs, zod_v4_core.$ZodFunctionOut>>;
|
|
2038
|
+
signal: zod.ZodOptional<zod.ZodCustom<AbortSignal, AbortSignal>>;
|
|
2039
|
+
maxDrainIntervalSeconds: zod.ZodOptional<zod.ZodNumber>;
|
|
2040
|
+
}, zod_v4_core.$strip>;
|
|
2041
|
+
resolvers: {
|
|
2042
|
+
inbox: DynamicResolver<{
|
|
2043
|
+
listTriggerInboxes: (options?: ({
|
|
2044
|
+
name?: string | undefined;
|
|
2045
|
+
status?: string | undefined;
|
|
2046
|
+
pageSize?: number | undefined;
|
|
2047
|
+
maxItems?: number | undefined;
|
|
2048
|
+
cursor?: string | undefined;
|
|
2049
|
+
} & {
|
|
2050
|
+
cursor?: string;
|
|
2051
|
+
pageSize?: number;
|
|
2052
|
+
maxItems?: number;
|
|
2053
|
+
}) | undefined) => PaginatedSdkResult<{
|
|
2054
|
+
id: string;
|
|
2055
|
+
created_at: string;
|
|
2056
|
+
name: string | null;
|
|
2057
|
+
status: string;
|
|
2058
|
+
paused_reason: string | null;
|
|
2059
|
+
notification_url: string | null;
|
|
2060
|
+
subscription: {
|
|
2061
|
+
connection_id: string | number | null;
|
|
2062
|
+
app_key: string;
|
|
2063
|
+
action_key: string;
|
|
2064
|
+
inputs: Record<string, unknown>;
|
|
2065
|
+
};
|
|
2066
|
+
}>;
|
|
2067
|
+
} & {
|
|
2068
|
+
context: {
|
|
2069
|
+
meta: {
|
|
2070
|
+
listTriggerInboxes: PluginMeta<unknown>;
|
|
2071
|
+
};
|
|
2072
|
+
};
|
|
2073
|
+
}, {
|
|
2074
|
+
id: string;
|
|
2075
|
+
created_at: string;
|
|
2076
|
+
name: string | null;
|
|
2077
|
+
status: string;
|
|
2078
|
+
paused_reason: string | null;
|
|
2079
|
+
notification_url: string | null;
|
|
2080
|
+
subscription: {
|
|
2081
|
+
connection_id: string | number | null;
|
|
2082
|
+
app_key: string;
|
|
2083
|
+
action_key: string;
|
|
2084
|
+
inputs: Record<string, unknown>;
|
|
2085
|
+
};
|
|
2086
|
+
}, {}>;
|
|
2087
|
+
};
|
|
2088
|
+
packages: readonly ["sdk"];
|
|
2089
|
+
categories: string[];
|
|
2090
|
+
experimental: true;
|
|
2091
|
+
};
|
|
2092
|
+
};
|
|
2093
|
+
};
|
|
2094
|
+
} & {
|
|
2095
|
+
listTriggers: (options?: ({
|
|
2096
|
+
app: string;
|
|
2097
|
+
pageSize?: number | undefined;
|
|
2098
|
+
maxItems?: number | undefined;
|
|
2099
|
+
cursor?: string | undefined;
|
|
2100
|
+
} & {
|
|
2101
|
+
cursor?: string;
|
|
2102
|
+
pageSize?: number;
|
|
2103
|
+
maxItems?: number;
|
|
2104
|
+
}) | undefined) => PaginatedSdkResult<{
|
|
2105
|
+
description: string;
|
|
2106
|
+
key: string;
|
|
2107
|
+
app_key: string;
|
|
2108
|
+
action_type: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
2109
|
+
title: string;
|
|
2110
|
+
type: "action";
|
|
2111
|
+
id?: string | undefined;
|
|
2112
|
+
is_hidden?: boolean | undefined;
|
|
2113
|
+
is_important?: boolean | undefined;
|
|
2114
|
+
app_version?: string | undefined;
|
|
2115
|
+
}>;
|
|
2116
|
+
} & {
|
|
2117
|
+
context: {
|
|
2118
|
+
meta: {
|
|
2119
|
+
listTriggers: PluginMeta<unknown>;
|
|
2120
|
+
};
|
|
2121
|
+
};
|
|
2122
|
+
} & {
|
|
2123
|
+
listTriggerInputFields: (options?: ({
|
|
2124
|
+
app: string;
|
|
2125
|
+
action: string;
|
|
2126
|
+
connection?: string | number | undefined;
|
|
2127
|
+
inputs?: Record<string, unknown> | undefined;
|
|
2128
|
+
pageSize?: number | undefined;
|
|
2129
|
+
maxItems?: number | undefined;
|
|
2130
|
+
cursor?: string | undefined;
|
|
2131
|
+
} & {
|
|
2132
|
+
cursor?: string;
|
|
2133
|
+
pageSize?: number;
|
|
2134
|
+
maxItems?: number;
|
|
2135
|
+
}) | undefined) => PaginatedSdkResult<FieldsetItem | {
|
|
2136
|
+
key: string;
|
|
2137
|
+
type: "input_field";
|
|
2138
|
+
default_value: string;
|
|
2139
|
+
depends_on: string[];
|
|
2140
|
+
description: string;
|
|
2141
|
+
invalidates_input_fields: boolean;
|
|
2142
|
+
is_required: boolean;
|
|
2143
|
+
placeholder: string;
|
|
2144
|
+
title: string;
|
|
2145
|
+
value_type: string;
|
|
2146
|
+
format?: string | undefined;
|
|
2147
|
+
items?: {
|
|
2148
|
+
type: string;
|
|
2149
|
+
} | undefined;
|
|
2150
|
+
} | {
|
|
2151
|
+
key: string;
|
|
2152
|
+
type: "info_field";
|
|
2153
|
+
description: string;
|
|
2154
|
+
title?: string | undefined;
|
|
2155
|
+
}>;
|
|
2156
|
+
} & {
|
|
2157
|
+
context: {
|
|
2158
|
+
meta: {
|
|
2159
|
+
listTriggerInputFields: PluginMeta<unknown>;
|
|
2160
|
+
};
|
|
2161
|
+
};
|
|
2162
|
+
} & {
|
|
2163
|
+
listTriggerInputFieldChoices: (options?: ({
|
|
2164
|
+
app: string;
|
|
2165
|
+
action: string;
|
|
2166
|
+
inputField: string;
|
|
2167
|
+
connection?: string | number | undefined;
|
|
2168
|
+
inputs?: Record<string, unknown> | undefined;
|
|
2169
|
+
page?: number | undefined;
|
|
2170
|
+
pageSize?: number | undefined;
|
|
2171
|
+
maxItems?: number | undefined;
|
|
2172
|
+
cursor?: string | undefined;
|
|
2173
|
+
} & {
|
|
2174
|
+
cursor?: string;
|
|
2175
|
+
pageSize?: number;
|
|
2176
|
+
maxItems?: number;
|
|
2177
|
+
}) | undefined) => PaginatedSdkResult<{
|
|
2178
|
+
key?: string | undefined;
|
|
2179
|
+
label?: string | undefined;
|
|
2180
|
+
sample?: string | undefined;
|
|
2181
|
+
value?: string | undefined;
|
|
2182
|
+
}>;
|
|
2183
|
+
} & {
|
|
2184
|
+
context: {
|
|
2185
|
+
meta: {
|
|
2186
|
+
listTriggerInputFieldChoices: PluginMeta<unknown>;
|
|
2187
|
+
};
|
|
2188
|
+
};
|
|
2189
|
+
} & {
|
|
2190
|
+
getTriggerInputFieldsSchema: (options?: {
|
|
2191
|
+
app: string;
|
|
2192
|
+
action: string;
|
|
2193
|
+
connection?: string | number | undefined;
|
|
2194
|
+
inputs?: Record<string, unknown> | undefined;
|
|
2195
|
+
} | undefined) => Promise<{
|
|
2196
|
+
data: Record<string, unknown>;
|
|
2197
|
+
}>;
|
|
2198
|
+
} & {
|
|
2199
|
+
context: {
|
|
2200
|
+
meta: {
|
|
2201
|
+
getTriggerInputFieldsSchema: PluginMeta<unknown>;
|
|
2202
|
+
};
|
|
2203
|
+
};
|
|
2204
|
+
} & {
|
|
2205
|
+
listTables: (options?: ({
|
|
2206
|
+
tables?: string[] | undefined;
|
|
2207
|
+
tableIds?: string[] | undefined;
|
|
2208
|
+
kind?: "table" | "virtual_table" | "both" | undefined;
|
|
2209
|
+
search?: string | undefined;
|
|
2210
|
+
owner?: string | undefined;
|
|
2211
|
+
includeShared?: boolean | undefined;
|
|
2212
|
+
pageSize?: number | undefined;
|
|
2213
|
+
maxItems?: number | undefined;
|
|
2214
|
+
cursor?: string | undefined;
|
|
2215
|
+
} & {
|
|
2216
|
+
cursor?: string;
|
|
2217
|
+
pageSize?: number;
|
|
2218
|
+
maxItems?: number;
|
|
2219
|
+
}) | undefined) => PaginatedSdkResult<{
|
|
2220
|
+
id: string;
|
|
2221
|
+
name: string;
|
|
2222
|
+
created_at: string;
|
|
2223
|
+
edited_at: string;
|
|
2224
|
+
kind: "table" | "virtual_table";
|
|
2225
|
+
account_id: string;
|
|
2226
|
+
profile_id: string;
|
|
2227
|
+
description?: string | undefined;
|
|
2228
|
+
parent_table_id?: string | undefined;
|
|
2229
|
+
}>;
|
|
2230
|
+
} & {
|
|
2231
|
+
context: {
|
|
2232
|
+
meta: {
|
|
2233
|
+
listTables: PluginMeta<unknown>;
|
|
2234
|
+
};
|
|
2235
|
+
};
|
|
2236
|
+
} & {
|
|
2237
|
+
getTable: (options?: {
|
|
2238
|
+
table: string;
|
|
2239
|
+
} | {
|
|
2240
|
+
tableId: string;
|
|
2241
|
+
} | undefined) => Promise<{
|
|
2242
|
+
data: {
|
|
2243
|
+
id: string;
|
|
2244
|
+
name: string;
|
|
2245
|
+
created_at: string;
|
|
2246
|
+
edited_at: string;
|
|
2247
|
+
kind: "table" | "virtual_table";
|
|
2248
|
+
account_id: string;
|
|
2249
|
+
profile_id: string;
|
|
2250
|
+
description?: string | undefined;
|
|
2251
|
+
parent_table_id?: string | undefined;
|
|
2252
|
+
};
|
|
2253
|
+
}>;
|
|
2254
|
+
} & {
|
|
2255
|
+
context: {
|
|
2256
|
+
meta: {
|
|
2257
|
+
getTable: PluginMeta<unknown>;
|
|
2258
|
+
};
|
|
2259
|
+
};
|
|
2260
|
+
} & {
|
|
2261
|
+
deleteTable: (options?: {
|
|
2262
|
+
table: string;
|
|
2263
|
+
} | {
|
|
2264
|
+
tableId: string;
|
|
2265
|
+
} | undefined) => Promise<{
|
|
2266
|
+
success: boolean;
|
|
2267
|
+
}>;
|
|
2268
|
+
} & {
|
|
2269
|
+
context: {
|
|
2270
|
+
meta: {
|
|
2271
|
+
deleteTable: PluginMeta<unknown>;
|
|
2272
|
+
};
|
|
2273
|
+
};
|
|
2274
|
+
} & {
|
|
2275
|
+
createTable: (options?: {
|
|
2276
|
+
name: string;
|
|
2277
|
+
description?: string | undefined;
|
|
2278
|
+
} | undefined) => Promise<{
|
|
2279
|
+
data: {
|
|
2280
|
+
id: string;
|
|
2281
|
+
name: string;
|
|
2282
|
+
created_at: string;
|
|
2283
|
+
edited_at: string;
|
|
2284
|
+
kind: "table" | "virtual_table";
|
|
2285
|
+
account_id: string;
|
|
2286
|
+
profile_id: string;
|
|
2287
|
+
description?: string | undefined;
|
|
2288
|
+
parent_table_id?: string | undefined;
|
|
2289
|
+
};
|
|
2290
|
+
}>;
|
|
2291
|
+
} & {
|
|
2292
|
+
context: {
|
|
2293
|
+
meta: {
|
|
2294
|
+
createTable: PluginMeta<unknown>;
|
|
2295
|
+
};
|
|
2296
|
+
};
|
|
2297
|
+
} & {
|
|
2298
|
+
listTableFields: (options?: {
|
|
2299
|
+
table: string;
|
|
2300
|
+
fields?: (string | number)[] | undefined;
|
|
2301
|
+
fieldKeys?: (string | number)[] | undefined;
|
|
2302
|
+
trash?: "exclude" | "include" | "only" | undefined;
|
|
2303
|
+
} | {
|
|
2304
|
+
tableId: string;
|
|
2305
|
+
fields?: (string | number)[] | undefined;
|
|
2306
|
+
fieldKeys?: (string | number)[] | undefined;
|
|
2307
|
+
trash?: "exclude" | "include" | "only" | undefined;
|
|
2308
|
+
} | undefined) => Promise<{
|
|
2309
|
+
data: {
|
|
2310
|
+
id: string;
|
|
2311
|
+
type: "string" | "number" | "boolean" | "link" | "text" | "datetime" | "decimal" | "json" | "email" | "multiple_string" | "labeled_string" | "multiple_labeled_string" | "multiple_text" | "multiple_boolean" | "multiple_number" | "multiple_decimal" | "multiple_datetime" | "uuid" | "multiple_uuid" | "multiple_json" | "formula" | "button_trigger_zap" | "button_continue_zap" | "multiple_email" | "multiple_link" | "currency" | "phone_number" | "ai_formula" | "linked_record" | "multiple_linked_record";
|
|
2312
|
+
name: string;
|
|
2313
|
+
created_at?: string | undefined;
|
|
2314
|
+
edited_at?: string | undefined;
|
|
2315
|
+
options?: Record<string, unknown> | undefined;
|
|
2316
|
+
config?: Record<string, unknown> | undefined;
|
|
2317
|
+
deleted_at?: string | null | undefined;
|
|
2318
|
+
}[];
|
|
2319
|
+
}>;
|
|
2320
|
+
} & {
|
|
2321
|
+
context: {
|
|
2322
|
+
meta: {
|
|
2323
|
+
listTableFields: PluginMeta<unknown>;
|
|
2324
|
+
};
|
|
2325
|
+
};
|
|
2326
|
+
} & {
|
|
2327
|
+
createTableFields: (options?: {
|
|
2328
|
+
table: string;
|
|
2329
|
+
fields: {
|
|
2330
|
+
type: "string" | "number" | "boolean" | "link" | "text" | "datetime" | "decimal" | "json" | "email" | "multiple_string" | "labeled_string" | "multiple_labeled_string" | "multiple_text" | "multiple_boolean" | "multiple_number" | "multiple_decimal" | "multiple_datetime" | "uuid" | "multiple_uuid" | "multiple_json" | "formula" | "button_trigger_zap" | "button_continue_zap" | "multiple_email" | "multiple_link" | "currency" | "phone_number" | "ai_formula" | "linked_record" | "multiple_linked_record";
|
|
2331
|
+
name: string;
|
|
2332
|
+
options?: Record<string, unknown> | undefined;
|
|
2333
|
+
config?: Record<string, unknown> | undefined;
|
|
2334
|
+
}[];
|
|
2335
|
+
} | {
|
|
2336
|
+
tableId: string;
|
|
2337
|
+
fields: {
|
|
2338
|
+
type: "string" | "number" | "boolean" | "link" | "text" | "datetime" | "decimal" | "json" | "email" | "multiple_string" | "labeled_string" | "multiple_labeled_string" | "multiple_text" | "multiple_boolean" | "multiple_number" | "multiple_decimal" | "multiple_datetime" | "uuid" | "multiple_uuid" | "multiple_json" | "formula" | "button_trigger_zap" | "button_continue_zap" | "multiple_email" | "multiple_link" | "currency" | "phone_number" | "ai_formula" | "linked_record" | "multiple_linked_record";
|
|
2339
|
+
name: string;
|
|
2340
|
+
options?: Record<string, unknown> | undefined;
|
|
2341
|
+
config?: Record<string, unknown> | undefined;
|
|
2342
|
+
}[];
|
|
2343
|
+
} | undefined) => Promise<{
|
|
2344
|
+
data: {
|
|
2345
|
+
id: string;
|
|
2346
|
+
type: "string" | "number" | "boolean" | "link" | "text" | "datetime" | "decimal" | "json" | "email" | "multiple_string" | "labeled_string" | "multiple_labeled_string" | "multiple_text" | "multiple_boolean" | "multiple_number" | "multiple_decimal" | "multiple_datetime" | "uuid" | "multiple_uuid" | "multiple_json" | "formula" | "button_trigger_zap" | "button_continue_zap" | "multiple_email" | "multiple_link" | "currency" | "phone_number" | "ai_formula" | "linked_record" | "multiple_linked_record";
|
|
2347
|
+
name: string;
|
|
2348
|
+
created_at?: string | undefined;
|
|
2349
|
+
edited_at?: string | undefined;
|
|
2350
|
+
options?: Record<string, unknown> | undefined;
|
|
2351
|
+
config?: Record<string, unknown> | undefined;
|
|
2352
|
+
deleted_at?: string | null | undefined;
|
|
2353
|
+
}[];
|
|
2354
|
+
}>;
|
|
2355
|
+
} & {
|
|
2356
|
+
context: {
|
|
2357
|
+
meta: {
|
|
2358
|
+
createTableFields: PluginMeta<unknown>;
|
|
2359
|
+
};
|
|
2360
|
+
};
|
|
2361
|
+
} & {
|
|
2362
|
+
deleteTableFields: (options?: {
|
|
2363
|
+
table: string;
|
|
2364
|
+
fields: (string | number)[];
|
|
2365
|
+
} | {
|
|
2366
|
+
tableId: string;
|
|
2367
|
+
fieldKeys: (string | number)[];
|
|
2368
|
+
} | undefined) => Promise<{
|
|
2369
|
+
success: boolean;
|
|
2370
|
+
}>;
|
|
2371
|
+
} & {
|
|
2372
|
+
context: {
|
|
2373
|
+
meta: {
|
|
2374
|
+
deleteTableFields: PluginMeta<unknown>;
|
|
2375
|
+
};
|
|
2376
|
+
};
|
|
2377
|
+
} & {
|
|
2378
|
+
listTableRecords: (options?: (({
|
|
2379
|
+
table: string;
|
|
2380
|
+
keyMode: "names" | "ids";
|
|
2381
|
+
filters?: {
|
|
2382
|
+
fieldKey: string;
|
|
2383
|
+
operator: "in" | "search" | "exact" | "different" | "contains" | "icontains" | "gte" | "gt" | "lt" | "lte" | "range" | "isnull" | "startswith" | "is_within";
|
|
2384
|
+
value?: unknown;
|
|
2385
|
+
}[] | undefined;
|
|
2386
|
+
sort?: {
|
|
2387
|
+
fieldKey: string;
|
|
2388
|
+
direction: "asc" | "desc";
|
|
2389
|
+
} | undefined;
|
|
2390
|
+
pageSize?: number | undefined;
|
|
2391
|
+
maxItems?: number | undefined;
|
|
2392
|
+
cursor?: string | undefined;
|
|
2393
|
+
trash?: "exclude" | "include" | "only" | undefined;
|
|
2394
|
+
} | {
|
|
2395
|
+
tableId: string;
|
|
2396
|
+
keyMode: "names" | "ids";
|
|
2397
|
+
filters?: {
|
|
2398
|
+
fieldKey: string;
|
|
2399
|
+
operator: "in" | "search" | "exact" | "different" | "contains" | "icontains" | "gte" | "gt" | "lt" | "lte" | "range" | "isnull" | "startswith" | "is_within";
|
|
2400
|
+
value?: unknown;
|
|
2401
|
+
}[] | undefined;
|
|
2402
|
+
sort?: {
|
|
2403
|
+
fieldKey: string;
|
|
2404
|
+
direction: "asc" | "desc";
|
|
2405
|
+
} | undefined;
|
|
2406
|
+
pageSize?: number | undefined;
|
|
2407
|
+
maxItems?: number | undefined;
|
|
2408
|
+
cursor?: string | undefined;
|
|
2409
|
+
trash?: "exclude" | "include" | "only" | undefined;
|
|
2410
|
+
}) & {
|
|
2411
|
+
cursor?: string;
|
|
2412
|
+
pageSize?: number;
|
|
2413
|
+
maxItems?: number;
|
|
2414
|
+
}) | undefined) => PaginatedSdkResult<{
|
|
2415
|
+
data: Record<string, unknown>;
|
|
2416
|
+
id: string;
|
|
2417
|
+
created_at: string;
|
|
2418
|
+
edited_at: string;
|
|
2419
|
+
deleted_at?: string | null | undefined;
|
|
2420
|
+
}>;
|
|
2421
|
+
} & {
|
|
2422
|
+
context: {
|
|
2423
|
+
meta: {
|
|
2424
|
+
listTableRecords: PluginMeta<unknown>;
|
|
2425
|
+
};
|
|
2426
|
+
};
|
|
2427
|
+
} & {
|
|
2428
|
+
getTableRecord: (options?: {
|
|
2429
|
+
table: string;
|
|
2430
|
+
record: string;
|
|
2431
|
+
keyMode: "names" | "ids";
|
|
2432
|
+
} | {
|
|
2433
|
+
tableId: string;
|
|
2434
|
+
recordId: string;
|
|
2435
|
+
keyMode: "names" | "ids";
|
|
2436
|
+
} | undefined) => Promise<{
|
|
2437
|
+
data: {
|
|
2438
|
+
data: Record<string, unknown>;
|
|
2439
|
+
id: string;
|
|
2440
|
+
created_at: string;
|
|
2441
|
+
edited_at: string;
|
|
2442
|
+
deleted_at?: string | null | undefined;
|
|
2443
|
+
};
|
|
2444
|
+
}>;
|
|
2445
|
+
} & {
|
|
2446
|
+
context: {
|
|
2447
|
+
meta: {
|
|
2448
|
+
getTableRecord: PluginMeta<unknown>;
|
|
2449
|
+
};
|
|
2450
|
+
};
|
|
2451
|
+
} & {
|
|
2452
|
+
createTableRecords: (options?: {
|
|
2453
|
+
table: string;
|
|
2454
|
+
records: {
|
|
2455
|
+
data: Record<string, unknown>;
|
|
2456
|
+
}[];
|
|
2457
|
+
keyMode: "names" | "ids";
|
|
2458
|
+
} | {
|
|
2459
|
+
tableId: string;
|
|
2460
|
+
records: {
|
|
2461
|
+
data: Record<string, unknown>;
|
|
2462
|
+
}[];
|
|
2463
|
+
keyMode: "names" | "ids";
|
|
2464
|
+
} | undefined) => Promise<{
|
|
2465
|
+
data: {
|
|
2466
|
+
data: Record<string, unknown>;
|
|
2467
|
+
id: string;
|
|
2468
|
+
created_at: string;
|
|
2469
|
+
edited_at: string;
|
|
2470
|
+
deleted_at?: string | null | undefined;
|
|
2471
|
+
}[];
|
|
2472
|
+
}>;
|
|
2473
|
+
} & {
|
|
2474
|
+
context: {
|
|
2475
|
+
meta: {
|
|
2476
|
+
createTableRecords: PluginMeta<unknown>;
|
|
2477
|
+
};
|
|
2478
|
+
};
|
|
2479
|
+
} & {
|
|
2480
|
+
deleteTableRecords: (options?: {
|
|
2481
|
+
table: string;
|
|
2482
|
+
records: string[];
|
|
2483
|
+
} | {
|
|
2484
|
+
tableId: string;
|
|
2485
|
+
recordIds: string[];
|
|
2486
|
+
} | undefined) => Promise<{
|
|
2487
|
+
success: boolean;
|
|
2488
|
+
}>;
|
|
2489
|
+
} & {
|
|
2490
|
+
context: {
|
|
2491
|
+
meta: {
|
|
2492
|
+
deleteTableRecords: PluginMeta<unknown>;
|
|
2493
|
+
};
|
|
2494
|
+
};
|
|
2495
|
+
} & {
|
|
2496
|
+
updateTableRecords: (options?: {
|
|
2497
|
+
table: string;
|
|
2498
|
+
records: {
|
|
2499
|
+
id: string;
|
|
2500
|
+
data: Record<string, unknown>;
|
|
2501
|
+
}[];
|
|
2502
|
+
keyMode: "names" | "ids";
|
|
2503
|
+
} | {
|
|
2504
|
+
tableId: string;
|
|
2505
|
+
records: {
|
|
2506
|
+
id: string;
|
|
2507
|
+
data: Record<string, unknown>;
|
|
2508
|
+
}[];
|
|
2509
|
+
keyMode: "names" | "ids";
|
|
2510
|
+
} | undefined) => Promise<{
|
|
2511
|
+
data: {
|
|
2512
|
+
data: Record<string, unknown>;
|
|
2513
|
+
id: string;
|
|
2514
|
+
created_at: string;
|
|
2515
|
+
edited_at: string;
|
|
2516
|
+
deleted_at?: string | null | undefined;
|
|
2517
|
+
}[];
|
|
2518
|
+
}>;
|
|
2519
|
+
} & {
|
|
2520
|
+
context: {
|
|
2521
|
+
meta: {
|
|
2522
|
+
updateTableRecords: PluginMeta<unknown>;
|
|
2523
|
+
};
|
|
2524
|
+
};
|
|
2525
|
+
} & {
|
|
2526
|
+
listWorkflows: (options?: ({
|
|
2527
|
+
pageSize?: number | undefined;
|
|
2528
|
+
maxItems?: number | undefined;
|
|
2529
|
+
cursor?: string | undefined;
|
|
2530
|
+
} & {
|
|
2531
|
+
cursor?: string;
|
|
2532
|
+
pageSize?: number;
|
|
2533
|
+
maxItems?: number;
|
|
2534
|
+
}) | undefined) => PaginatedSdkResult<{
|
|
2535
|
+
id: string;
|
|
2536
|
+
name: string;
|
|
2537
|
+
description: string | null;
|
|
2538
|
+
trigger_url: string;
|
|
2539
|
+
enabled: boolean;
|
|
2540
|
+
current_version_id: string | null;
|
|
2541
|
+
created_at: string;
|
|
2542
|
+
updated_at: string;
|
|
2543
|
+
}>;
|
|
2544
|
+
} & {
|
|
2545
|
+
context: {
|
|
2546
|
+
meta: {
|
|
2547
|
+
listWorkflows: PluginMeta<unknown>;
|
|
2548
|
+
};
|
|
2549
|
+
};
|
|
2550
|
+
} & {
|
|
2551
|
+
getWorkflow: (options?: {
|
|
2552
|
+
workflow: string;
|
|
2553
|
+
} | undefined) => Promise<{
|
|
2554
|
+
data: {
|
|
2555
|
+
id: string;
|
|
2556
|
+
name: string;
|
|
2557
|
+
description: string | null;
|
|
2558
|
+
trigger_url: string;
|
|
2559
|
+
enabled: boolean;
|
|
2560
|
+
created_at: string;
|
|
2561
|
+
updated_at: string;
|
|
2562
|
+
current_version?: {
|
|
2563
|
+
id: string;
|
|
2564
|
+
workflow_id: string;
|
|
2565
|
+
source_files: Record<string, string>;
|
|
2566
|
+
zapier_durable_version: string;
|
|
2567
|
+
dependencies: Record<string, string> | null;
|
|
2568
|
+
created_by_user_id: string;
|
|
2569
|
+
created_at: string;
|
|
2570
|
+
} | undefined;
|
|
2571
|
+
};
|
|
2572
|
+
}>;
|
|
2573
|
+
} & {
|
|
2574
|
+
context: {
|
|
2575
|
+
meta: {
|
|
2576
|
+
getWorkflow: PluginMeta<unknown>;
|
|
2577
|
+
};
|
|
2578
|
+
};
|
|
2579
|
+
} & {
|
|
2580
|
+
createWorkflow: (options?: {
|
|
2581
|
+
name: string;
|
|
2582
|
+
description?: string | undefined;
|
|
2583
|
+
} | undefined) => Promise<{
|
|
2584
|
+
data: {
|
|
2585
|
+
id: string;
|
|
2586
|
+
name: string;
|
|
2587
|
+
description: string | null;
|
|
2588
|
+
trigger_url: string;
|
|
2589
|
+
enabled: boolean;
|
|
2590
|
+
created_at: string;
|
|
2591
|
+
};
|
|
2592
|
+
}>;
|
|
2593
|
+
} & {
|
|
2594
|
+
context: {
|
|
2595
|
+
meta: {
|
|
2596
|
+
createWorkflow: PluginMeta<unknown>;
|
|
2597
|
+
};
|
|
2598
|
+
};
|
|
2599
|
+
} & {
|
|
2600
|
+
updateWorkflow: (options?: {
|
|
2601
|
+
workflow: string;
|
|
2602
|
+
name?: string | undefined;
|
|
2603
|
+
description?: string | null | undefined;
|
|
2604
|
+
} | undefined) => Promise<{
|
|
2605
|
+
data: {
|
|
2606
|
+
id: string;
|
|
2607
|
+
name: string;
|
|
2608
|
+
description: string | null;
|
|
2609
|
+
trigger_url: string;
|
|
2610
|
+
enabled: boolean;
|
|
2611
|
+
created_at: string;
|
|
2612
|
+
updated_at: string;
|
|
2613
|
+
};
|
|
2614
|
+
}>;
|
|
2615
|
+
} & {
|
|
2616
|
+
context: {
|
|
2617
|
+
meta: {
|
|
2618
|
+
updateWorkflow: PluginMeta<unknown>;
|
|
2619
|
+
};
|
|
2620
|
+
};
|
|
2621
|
+
} & {
|
|
2622
|
+
enableWorkflow: (options?: {
|
|
2623
|
+
workflow: string;
|
|
2624
|
+
} | undefined) => Promise<{
|
|
2625
|
+
data: {
|
|
2626
|
+
id: string;
|
|
2627
|
+
enabled: boolean;
|
|
2628
|
+
};
|
|
2629
|
+
}>;
|
|
2630
|
+
} & {
|
|
2631
|
+
context: {
|
|
2632
|
+
meta: {
|
|
2633
|
+
enableWorkflow: PluginMeta<unknown>;
|
|
2634
|
+
};
|
|
2635
|
+
};
|
|
2636
|
+
} & {
|
|
2637
|
+
disableWorkflow: (options?: {
|
|
2638
|
+
workflow: string;
|
|
2639
|
+
} | undefined) => Promise<{
|
|
2640
|
+
data: {
|
|
2641
|
+
id: string;
|
|
2642
|
+
enabled: boolean;
|
|
2643
|
+
};
|
|
2644
|
+
}>;
|
|
2645
|
+
} & {
|
|
2646
|
+
context: {
|
|
2647
|
+
meta: {
|
|
2648
|
+
disableWorkflow: PluginMeta<unknown>;
|
|
2649
|
+
};
|
|
2650
|
+
};
|
|
2651
|
+
} & {
|
|
2652
|
+
deleteWorkflow: (options?: {
|
|
2653
|
+
workflow: string;
|
|
2654
|
+
} | undefined) => Promise<{
|
|
2655
|
+
data: {
|
|
2656
|
+
id: string;
|
|
2657
|
+
};
|
|
2658
|
+
}>;
|
|
2659
|
+
} & {
|
|
2660
|
+
context: {
|
|
2661
|
+
meta: {
|
|
2662
|
+
deleteWorkflow: PluginMeta<unknown>;
|
|
2663
|
+
};
|
|
2664
|
+
};
|
|
2665
|
+
} & {
|
|
2666
|
+
listDurableRuns: (options?: ({
|
|
2667
|
+
pageSize?: number | undefined;
|
|
2668
|
+
cursor?: string | undefined;
|
|
2669
|
+
maxItems?: number | undefined;
|
|
2670
|
+
} & {
|
|
2671
|
+
cursor?: string;
|
|
2672
|
+
pageSize?: number;
|
|
2673
|
+
maxItems?: number;
|
|
2674
|
+
}) | undefined) => PaginatedSdkResult<{
|
|
2675
|
+
id: string;
|
|
2676
|
+
status: "initialized" | "started" | "finished" | "failed" | "cancelled";
|
|
2677
|
+
input: unknown;
|
|
2678
|
+
output: unknown;
|
|
2679
|
+
error: {
|
|
2680
|
+
[x: string]: unknown;
|
|
2681
|
+
code: string;
|
|
2682
|
+
message: string;
|
|
2683
|
+
} | null;
|
|
2684
|
+
execution_id: string | null;
|
|
2685
|
+
is_private: boolean;
|
|
2686
|
+
created_at: string;
|
|
2687
|
+
updated_at: string;
|
|
2688
|
+
}>;
|
|
2689
|
+
} & {
|
|
2690
|
+
context: {
|
|
2691
|
+
meta: {
|
|
2692
|
+
listDurableRuns: PluginMeta<unknown>;
|
|
2693
|
+
};
|
|
2694
|
+
};
|
|
2695
|
+
} & {
|
|
2696
|
+
getDurableRun: (options?: {
|
|
2697
|
+
run: string;
|
|
2698
|
+
} | undefined) => Promise<{
|
|
2699
|
+
data: {
|
|
2700
|
+
id: string;
|
|
2701
|
+
status: "initialized" | "started" | "finished" | "failed" | "cancelled";
|
|
2702
|
+
input: unknown;
|
|
2703
|
+
output: unknown;
|
|
2704
|
+
error: {
|
|
2705
|
+
[x: string]: unknown;
|
|
2706
|
+
code: string;
|
|
2707
|
+
message: string;
|
|
2708
|
+
} | null;
|
|
2709
|
+
execution: {
|
|
2710
|
+
id: string;
|
|
2711
|
+
name: string;
|
|
2712
|
+
status: "failed" | "running" | "waiting" | "completed";
|
|
2713
|
+
input: unknown;
|
|
2714
|
+
created_at: string;
|
|
2715
|
+
output?: unknown;
|
|
2716
|
+
error?: unknown;
|
|
2717
|
+
metadata?: Record<string, unknown> | undefined;
|
|
2718
|
+
summary?: {
|
|
2719
|
+
[x: string]: unknown;
|
|
2720
|
+
total_attempts: number;
|
|
2721
|
+
last_error?: {
|
|
2722
|
+
[x: string]: unknown;
|
|
2723
|
+
code: string;
|
|
2724
|
+
title: string;
|
|
2725
|
+
detail?: string | null | undefined;
|
|
2726
|
+
} | undefined;
|
|
2727
|
+
} | null | undefined;
|
|
2728
|
+
operations?: {
|
|
2729
|
+
id: string;
|
|
2730
|
+
execution_id: string;
|
|
2731
|
+
name: string;
|
|
2732
|
+
type: "step" | "wait" | "callback";
|
|
2733
|
+
status: "failed" | "completed" | "pending" | "exhausted";
|
|
2734
|
+
retry_count: number;
|
|
2735
|
+
created_at: string;
|
|
2736
|
+
result?: unknown;
|
|
2737
|
+
error?: unknown;
|
|
2738
|
+
max_attempts?: number | undefined;
|
|
2739
|
+
next_retry_at?: string | undefined;
|
|
2740
|
+
resume_at?: string | undefined;
|
|
2741
|
+
callback_token?: string | null | undefined;
|
|
2742
|
+
payload_schema?: unknown;
|
|
2743
|
+
payload?: unknown;
|
|
2744
|
+
expires_at?: string | undefined;
|
|
2745
|
+
completed_at?: string | undefined;
|
|
2746
|
+
}[] | undefined;
|
|
2747
|
+
} | null;
|
|
2748
|
+
is_private: boolean;
|
|
2749
|
+
created_at: string;
|
|
2750
|
+
updated_at: string;
|
|
2751
|
+
};
|
|
2752
|
+
}>;
|
|
2753
|
+
} & {
|
|
2754
|
+
context: {
|
|
2755
|
+
meta: {
|
|
2756
|
+
getDurableRun: PluginMeta<unknown>;
|
|
2757
|
+
};
|
|
2758
|
+
};
|
|
2759
|
+
} & {
|
|
2760
|
+
runDurable: (options?: {
|
|
2761
|
+
source_files: Record<string, string>;
|
|
2762
|
+
input?: unknown;
|
|
2763
|
+
dependencies?: Record<string, string> | undefined;
|
|
2764
|
+
zapier_durable_version?: string | undefined;
|
|
2765
|
+
connections?: Record<string, {
|
|
2766
|
+
connection_id: string | number;
|
|
2767
|
+
}> | undefined;
|
|
2768
|
+
app_versions?: Record<string, {
|
|
2769
|
+
implementation_name: string;
|
|
2770
|
+
version?: string | undefined;
|
|
2771
|
+
}> | undefined;
|
|
2772
|
+
private?: boolean | undefined;
|
|
2773
|
+
} | undefined) => Promise<{
|
|
2774
|
+
data: {
|
|
2775
|
+
id: string;
|
|
2776
|
+
status: "initialized";
|
|
2777
|
+
is_private: boolean;
|
|
2778
|
+
created_at: string;
|
|
2779
|
+
};
|
|
2780
|
+
}>;
|
|
2781
|
+
} & {
|
|
2782
|
+
context: {
|
|
2783
|
+
meta: {
|
|
2784
|
+
runDurable: PluginMeta<unknown>;
|
|
2785
|
+
};
|
|
2786
|
+
};
|
|
2787
|
+
} & {
|
|
2788
|
+
cancelDurableRun: (options?: {
|
|
2789
|
+
run: string;
|
|
2790
|
+
} | undefined) => Promise<{
|
|
2791
|
+
data: {
|
|
2792
|
+
id: string;
|
|
2793
|
+
status: "cancelled";
|
|
2794
|
+
};
|
|
2795
|
+
}>;
|
|
2796
|
+
} & {
|
|
2797
|
+
context: {
|
|
2798
|
+
meta: {
|
|
2799
|
+
cancelDurableRun: PluginMeta<unknown>;
|
|
2800
|
+
};
|
|
2801
|
+
};
|
|
2802
|
+
} & {
|
|
2803
|
+
publishWorkflowVersion: (options?: {
|
|
2804
|
+
workflow: string;
|
|
2805
|
+
source_files: Record<string, string>;
|
|
2806
|
+
dependencies?: Record<string, string> | undefined;
|
|
2807
|
+
zapier_durable_version?: string | undefined;
|
|
2808
|
+
enabled?: boolean | undefined;
|
|
2809
|
+
} | undefined) => Promise<{
|
|
2810
|
+
data: {
|
|
2811
|
+
id: string;
|
|
2812
|
+
workflow_id: string;
|
|
2813
|
+
source_files: Record<string, string>;
|
|
2814
|
+
zapier_durable_version: string;
|
|
2815
|
+
dependencies: Record<string, string> | null;
|
|
2816
|
+
created_by_user_id: string;
|
|
2817
|
+
created_at: string;
|
|
2818
|
+
};
|
|
2819
|
+
}>;
|
|
2820
|
+
} & {
|
|
2821
|
+
context: {
|
|
2822
|
+
meta: {
|
|
2823
|
+
publishWorkflowVersion: PluginMeta<unknown>;
|
|
2824
|
+
};
|
|
2825
|
+
};
|
|
2826
|
+
} & {
|
|
2827
|
+
listWorkflowVersions: (options?: ({
|
|
2828
|
+
workflow: string;
|
|
2829
|
+
pageSize?: number | undefined;
|
|
2830
|
+
cursor?: string | undefined;
|
|
2831
|
+
maxItems?: number | undefined;
|
|
2832
|
+
} & {
|
|
2833
|
+
cursor?: string;
|
|
2834
|
+
pageSize?: number;
|
|
2835
|
+
maxItems?: number;
|
|
2836
|
+
}) | undefined) => PaginatedSdkResult<{
|
|
2837
|
+
id: string;
|
|
2838
|
+
workflow_id: string;
|
|
2839
|
+
zapier_durable_version: string;
|
|
2840
|
+
dependencies: Record<string, string> | null;
|
|
2841
|
+
created_by_user_id: string;
|
|
2842
|
+
created_at: string;
|
|
2843
|
+
}>;
|
|
2844
|
+
} & {
|
|
2845
|
+
context: {
|
|
2846
|
+
meta: {
|
|
2847
|
+
listWorkflowVersions: PluginMeta<unknown>;
|
|
2848
|
+
};
|
|
2849
|
+
};
|
|
2850
|
+
} & {
|
|
2851
|
+
getWorkflowVersion: (options?: {
|
|
2852
|
+
workflow: string;
|
|
2853
|
+
version: string;
|
|
2854
|
+
} | undefined) => Promise<{
|
|
2855
|
+
data: {
|
|
2856
|
+
id: string;
|
|
2857
|
+
workflow_id: string;
|
|
2858
|
+
source_files: Record<string, string>;
|
|
2859
|
+
zapier_durable_version: string;
|
|
2860
|
+
dependencies: Record<string, string> | null;
|
|
2861
|
+
created_by_user_id: string;
|
|
2862
|
+
created_at: string;
|
|
2863
|
+
};
|
|
2864
|
+
}>;
|
|
2865
|
+
} & {
|
|
2866
|
+
context: {
|
|
2867
|
+
meta: {
|
|
2868
|
+
getWorkflowVersion: PluginMeta<unknown>;
|
|
2869
|
+
};
|
|
2870
|
+
};
|
|
2871
|
+
} & {
|
|
2872
|
+
listWorkflowRuns: (options?: ({
|
|
2873
|
+
workflow: string;
|
|
2874
|
+
pageSize?: number | undefined;
|
|
2875
|
+
cursor?: string | undefined;
|
|
2876
|
+
maxItems?: number | undefined;
|
|
2877
|
+
} & {
|
|
2878
|
+
cursor?: string;
|
|
2879
|
+
pageSize?: number;
|
|
2880
|
+
maxItems?: number;
|
|
2881
|
+
}) | undefined) => PaginatedSdkResult<{
|
|
2882
|
+
id: string;
|
|
2883
|
+
trigger_id: string | null;
|
|
2884
|
+
durable_run_id: string | null;
|
|
2885
|
+
workflow_version_id: string | null;
|
|
2886
|
+
status: string;
|
|
2887
|
+
input: unknown;
|
|
2888
|
+
output: unknown;
|
|
2889
|
+
error: unknown;
|
|
2890
|
+
created_at: string;
|
|
2891
|
+
updated_at: string;
|
|
2892
|
+
}>;
|
|
2893
|
+
} & {
|
|
2894
|
+
context: {
|
|
2895
|
+
meta: {
|
|
2896
|
+
listWorkflowRuns: PluginMeta<unknown>;
|
|
2897
|
+
};
|
|
2898
|
+
};
|
|
2899
|
+
} & {
|
|
2900
|
+
getWorkflowRun: (options?: {
|
|
2901
|
+
run: string;
|
|
2902
|
+
workflow?: string | undefined;
|
|
2903
|
+
} | undefined) => Promise<{
|
|
2904
|
+
data: {
|
|
2905
|
+
id: string;
|
|
2906
|
+
trigger_id: string | null;
|
|
2907
|
+
durable_run_id: string | null;
|
|
2908
|
+
workflow_version_id: string | null;
|
|
2909
|
+
status: string;
|
|
2910
|
+
input: unknown;
|
|
2911
|
+
output: unknown;
|
|
2912
|
+
error: unknown;
|
|
2913
|
+
created_at: string;
|
|
2914
|
+
updated_at: string;
|
|
2915
|
+
};
|
|
2916
|
+
}>;
|
|
2917
|
+
} & {
|
|
2918
|
+
context: {
|
|
2919
|
+
meta: {
|
|
2920
|
+
getWorkflowRun: PluginMeta<unknown>;
|
|
2921
|
+
};
|
|
2922
|
+
};
|
|
2923
|
+
} & {
|
|
2924
|
+
getTriggerRun: (options?: {
|
|
2925
|
+
trigger: string;
|
|
2926
|
+
} | undefined) => Promise<{
|
|
2927
|
+
data: {
|
|
2928
|
+
id: string;
|
|
2929
|
+
durable_run_id: string | null;
|
|
2930
|
+
workflow_version_id: string | null;
|
|
2931
|
+
status: string;
|
|
2932
|
+
input: unknown;
|
|
2933
|
+
output: unknown;
|
|
2934
|
+
error: unknown;
|
|
2935
|
+
created_at: string;
|
|
2936
|
+
updated_at: string;
|
|
2937
|
+
};
|
|
2938
|
+
}>;
|
|
2939
|
+
} & {
|
|
2940
|
+
context: {
|
|
2941
|
+
meta: {
|
|
2942
|
+
getTriggerRun: PluginMeta<unknown>;
|
|
2943
|
+
};
|
|
2944
|
+
};
|
|
2945
|
+
} & {
|
|
2946
|
+
triggerWorkflow: (options?: {
|
|
2947
|
+
workflow: string;
|
|
2948
|
+
input?: unknown;
|
|
2949
|
+
} | undefined) => Promise<{
|
|
2950
|
+
data: {
|
|
2951
|
+
workflow: string;
|
|
2952
|
+
status: number;
|
|
2953
|
+
body: unknown;
|
|
2954
|
+
};
|
|
2955
|
+
}>;
|
|
2956
|
+
} & {
|
|
2957
|
+
context: {
|
|
2958
|
+
meta: {
|
|
2959
|
+
triggerWorkflow: PluginMeta<unknown>;
|
|
2960
|
+
};
|
|
2961
|
+
};
|
|
2962
|
+
} & {
|
|
2963
|
+
apps: ActionProxy & ZapierSdkApps;
|
|
2964
|
+
context: {
|
|
2965
|
+
meta: {
|
|
2966
|
+
"apps.{appKey}": {
|
|
2967
|
+
categories: string[];
|
|
2968
|
+
packages: string[];
|
|
2969
|
+
type: "function";
|
|
2970
|
+
inputSchema: zod.ZodObject<{
|
|
2971
|
+
connectionId: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
2972
|
+
connection: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
2973
|
+
authenticationId: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
2974
|
+
}, zod_v4_core.$strip>;
|
|
2975
|
+
returnType: string;
|
|
2976
|
+
};
|
|
2977
|
+
"apps.{appKey}.{actionType}.{actionKey}": {
|
|
2978
|
+
categories: string[];
|
|
2979
|
+
packages: string[];
|
|
2980
|
+
type: "list";
|
|
2981
|
+
inputSchema: zod.ZodObject<{
|
|
2982
|
+
inputs: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
2983
|
+
connectionId: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
2984
|
+
connection: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
2985
|
+
authenticationId: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
2986
|
+
timeoutMs: zod.ZodOptional<zod.ZodNumber>;
|
|
2987
|
+
}, zod_v4_core.$strip>;
|
|
2988
|
+
itemType: string;
|
|
2989
|
+
outputSchema: zod.ZodUnknown;
|
|
2990
|
+
};
|
|
2991
|
+
};
|
|
2992
|
+
};
|
|
2993
|
+
} & {
|
|
2994
|
+
getProfile: (options?: Record<string, never> | undefined) => Promise<{
|
|
2995
|
+
data: {
|
|
2996
|
+
id: string;
|
|
2997
|
+
first_name: string;
|
|
2998
|
+
last_name: string;
|
|
2999
|
+
full_name: string;
|
|
3000
|
+
email: string;
|
|
3001
|
+
email_confirmed: boolean;
|
|
3002
|
+
timezone: string;
|
|
3003
|
+
};
|
|
3004
|
+
}>;
|
|
3005
|
+
} & {
|
|
3006
|
+
context: {
|
|
3007
|
+
meta: {
|
|
3008
|
+
getProfile: PluginMeta<unknown>;
|
|
3009
|
+
};
|
|
3010
|
+
};
|
|
3011
|
+
}>;
|
|
3012
|
+
declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<object & {
|
|
3013
|
+
context: {
|
|
3014
|
+
meta: Record<string, PluginMeta>;
|
|
3015
|
+
hooks: MethodHooks;
|
|
3016
|
+
};
|
|
3017
|
+
} & {
|
|
3018
|
+
context: {
|
|
3019
|
+
core: CoreOptions;
|
|
3020
|
+
};
|
|
3021
|
+
} & {
|
|
3022
|
+
context: {
|
|
3023
|
+
options: ZapierSdkOptions$1;
|
|
3024
|
+
};
|
|
3025
|
+
} & {
|
|
3026
|
+
context: EventEmissionContext;
|
|
3027
|
+
} & {
|
|
3028
|
+
context: {
|
|
3029
|
+
api: ApiClient;
|
|
3030
|
+
resolveCredentials: () => Promise<string | {
|
|
3031
|
+
clientId: string;
|
|
3032
|
+
clientSecret: string;
|
|
3033
|
+
type?: "client_credentials" | undefined;
|
|
3034
|
+
baseUrl?: string | undefined;
|
|
3035
|
+
scope?: string | undefined;
|
|
3036
|
+
} | {
|
|
3037
|
+
clientId: string;
|
|
3038
|
+
type?: "pkce" | undefined;
|
|
3039
|
+
baseUrl?: string | undefined;
|
|
3040
|
+
scope?: string | undefined;
|
|
3041
|
+
} | undefined>;
|
|
3042
|
+
};
|
|
3043
|
+
} & {
|
|
3044
|
+
context: {
|
|
3045
|
+
getResolvedManifest: () => Promise<Manifest | null>;
|
|
3046
|
+
getVersionedImplementationId: (appKey: string) => Promise<string | null>;
|
|
3047
|
+
resolveAppKeys: ({ appKeys }: {
|
|
3048
|
+
appKeys: string[];
|
|
3049
|
+
}) => Promise<ResolvedAppLocator[]>;
|
|
3050
|
+
updateManifestEntry: (options: UpdateManifestEntryOptions) => Promise<UpdateManifestEntryResult>;
|
|
3051
|
+
addActionEntry: (options: AddActionEntryOptions) => Promise<AddActionEntryResult>;
|
|
3052
|
+
findActionEntry: ({ name, manifest, }: {
|
|
3053
|
+
name: string;
|
|
3054
|
+
manifest: Manifest;
|
|
3055
|
+
}) => ActionEntry | null;
|
|
3056
|
+
listActionEntries: ({ configPath, }?: {
|
|
3057
|
+
configPath?: string;
|
|
3058
|
+
}) => Promise<Array<[string, ActionEntry]>>;
|
|
3059
|
+
deleteActionEntry: ({ name, configPath, skipWrite, }: {
|
|
3060
|
+
name: string;
|
|
3061
|
+
configPath?: string;
|
|
3062
|
+
skipWrite?: boolean;
|
|
3063
|
+
}) => Promise<Manifest>;
|
|
3064
|
+
hasActionEntry: ({ name, manifest, }: {
|
|
3065
|
+
name: string;
|
|
3066
|
+
manifest: Manifest;
|
|
3067
|
+
}) => boolean;
|
|
3068
|
+
findManifestEntry: typeof findManifestEntry;
|
|
3069
|
+
readManifestFromFile: typeof readManifestFromFile;
|
|
3070
|
+
getManifestConnections: () => Promise<Record<string, {
|
|
3071
|
+
connectionId: string | number;
|
|
3072
|
+
}> | null>;
|
|
3073
|
+
};
|
|
3074
|
+
} & {
|
|
3075
|
+
context: CapabilitiesContext;
|
|
3076
|
+
} & {
|
|
3077
|
+
context: {
|
|
3078
|
+
resolveConnection: (name: string) => Promise<{
|
|
3079
|
+
connectionId: string | number;
|
|
3080
|
+
} | undefined>;
|
|
3081
|
+
getConnectionsMap: () => Promise<Record<string, {
|
|
3082
|
+
connectionId: string | number;
|
|
3083
|
+
}> | null>;
|
|
3084
|
+
};
|
|
3085
|
+
} & {
|
|
3086
|
+
listApps: (options?: ({
|
|
3087
|
+
search?: string | undefined;
|
|
3088
|
+
apps?: string[] | undefined;
|
|
3089
|
+
appKeys?: string[] | undefined;
|
|
3090
|
+
pageSize?: number | undefined;
|
|
3091
|
+
maxItems?: number | undefined;
|
|
3092
|
+
cursor?: string | undefined;
|
|
3093
|
+
} & {
|
|
3094
|
+
cursor?: string;
|
|
3095
|
+
pageSize?: number;
|
|
3096
|
+
maxItems?: number;
|
|
3097
|
+
}) | undefined) => PaginatedSdkResult<{
|
|
3098
|
+
slug: string;
|
|
3099
|
+
title: string;
|
|
3100
|
+
key: string;
|
|
3101
|
+
implementation_id: string;
|
|
3102
|
+
description?: string | undefined;
|
|
3103
|
+
is_hidden?: boolean | undefined;
|
|
3104
|
+
auth_type?: string | undefined;
|
|
3105
|
+
actions?: {
|
|
3106
|
+
read?: number | undefined;
|
|
3107
|
+
read_bulk?: number | undefined;
|
|
3108
|
+
write?: number | undefined;
|
|
3109
|
+
search?: number | undefined;
|
|
3110
|
+
search_or_write?: number | undefined;
|
|
3111
|
+
search_and_write?: number | undefined;
|
|
3112
|
+
filter?: number | undefined;
|
|
3113
|
+
} | undefined;
|
|
3114
|
+
is_deprecated?: boolean | undefined;
|
|
3115
|
+
is_beta?: boolean | undefined;
|
|
3116
|
+
is_premium?: boolean | undefined;
|
|
3117
|
+
age_in_days?: number | undefined;
|
|
3118
|
+
banner?: string | undefined;
|
|
3119
|
+
categories?: {
|
|
3120
|
+
id: number;
|
|
3121
|
+
name: string;
|
|
3122
|
+
slug: string;
|
|
3123
|
+
}[] | undefined;
|
|
3124
|
+
images?: {
|
|
3125
|
+
url_16x16?: string | undefined;
|
|
3126
|
+
url_32x32?: string | undefined;
|
|
3127
|
+
url_64x64?: string | undefined;
|
|
3128
|
+
url_128x128?: string | undefined;
|
|
3129
|
+
} | undefined;
|
|
3130
|
+
popularity?: number | undefined;
|
|
3131
|
+
has_filters?: boolean | undefined;
|
|
3132
|
+
has_reads?: boolean | undefined;
|
|
3133
|
+
has_searches?: boolean | undefined;
|
|
3134
|
+
has_searches_or_writes?: boolean | undefined;
|
|
3135
|
+
has_upfront_fields?: boolean | undefined;
|
|
3136
|
+
has_writes?: boolean | undefined;
|
|
3137
|
+
is_built_in?: boolean | undefined;
|
|
3138
|
+
is_featured?: boolean | undefined;
|
|
3139
|
+
is_invite?: boolean | undefined;
|
|
3140
|
+
is_public?: boolean | undefined;
|
|
3141
|
+
is_upcoming?: boolean | undefined;
|
|
3142
|
+
visibility?: string | undefined;
|
|
3143
|
+
primary_color?: string | undefined;
|
|
3144
|
+
secondary_color?: string | undefined;
|
|
3145
|
+
classification?: string | undefined;
|
|
3146
|
+
api_docs_url?: string | undefined;
|
|
3147
|
+
image?: string | undefined;
|
|
3148
|
+
version?: string | undefined;
|
|
3149
|
+
}>;
|
|
3150
|
+
} & {
|
|
3151
|
+
context: {
|
|
3152
|
+
meta: {
|
|
3153
|
+
listApps: PluginMeta<unknown>;
|
|
3154
|
+
};
|
|
3155
|
+
};
|
|
3156
|
+
} & {
|
|
3157
|
+
getApp: (options?: {
|
|
3158
|
+
app: string;
|
|
3159
|
+
} | {
|
|
3160
|
+
appKey: string;
|
|
3161
|
+
} | undefined) => Promise<{
|
|
3162
|
+
data: {
|
|
3163
|
+
slug: string;
|
|
3164
|
+
title: string;
|
|
3165
|
+
key: string;
|
|
3166
|
+
implementation_id: string;
|
|
3167
|
+
description?: string | undefined;
|
|
3168
|
+
is_hidden?: boolean | undefined;
|
|
3169
|
+
auth_type?: string | undefined;
|
|
3170
|
+
actions?: {
|
|
3171
|
+
read?: number | undefined;
|
|
3172
|
+
read_bulk?: number | undefined;
|
|
3173
|
+
write?: number | undefined;
|
|
3174
|
+
search?: number | undefined;
|
|
3175
|
+
search_or_write?: number | undefined;
|
|
3176
|
+
search_and_write?: number | undefined;
|
|
3177
|
+
filter?: number | undefined;
|
|
3178
|
+
} | undefined;
|
|
3179
|
+
is_deprecated?: boolean | undefined;
|
|
3180
|
+
is_beta?: boolean | undefined;
|
|
3181
|
+
is_premium?: boolean | undefined;
|
|
3182
|
+
age_in_days?: number | undefined;
|
|
3183
|
+
banner?: string | undefined;
|
|
3184
|
+
categories?: {
|
|
3185
|
+
id: number;
|
|
3186
|
+
name: string;
|
|
3187
|
+
slug: string;
|
|
3188
|
+
}[] | undefined;
|
|
3189
|
+
images?: {
|
|
3190
|
+
url_16x16?: string | undefined;
|
|
3191
|
+
url_32x32?: string | undefined;
|
|
3192
|
+
url_64x64?: string | undefined;
|
|
3193
|
+
url_128x128?: string | undefined;
|
|
3194
|
+
} | undefined;
|
|
3195
|
+
popularity?: number | undefined;
|
|
3196
|
+
has_filters?: boolean | undefined;
|
|
3197
|
+
has_reads?: boolean | undefined;
|
|
3198
|
+
has_searches?: boolean | undefined;
|
|
3199
|
+
has_searches_or_writes?: boolean | undefined;
|
|
3200
|
+
has_upfront_fields?: boolean | undefined;
|
|
3201
|
+
has_writes?: boolean | undefined;
|
|
3202
|
+
is_built_in?: boolean | undefined;
|
|
3203
|
+
is_featured?: boolean | undefined;
|
|
3204
|
+
is_invite?: boolean | undefined;
|
|
3205
|
+
is_public?: boolean | undefined;
|
|
3206
|
+
is_upcoming?: boolean | undefined;
|
|
3207
|
+
visibility?: string | undefined;
|
|
3208
|
+
primary_color?: string | undefined;
|
|
3209
|
+
secondary_color?: string | undefined;
|
|
3210
|
+
classification?: string | undefined;
|
|
3211
|
+
api_docs_url?: string | undefined;
|
|
3212
|
+
image?: string | undefined;
|
|
3213
|
+
version?: string | undefined;
|
|
3214
|
+
};
|
|
3215
|
+
}>;
|
|
3216
|
+
} & {
|
|
3217
|
+
context: {
|
|
3218
|
+
meta: {
|
|
3219
|
+
getApp: PluginMeta<unknown>;
|
|
3220
|
+
};
|
|
3221
|
+
};
|
|
3222
|
+
} & {
|
|
3223
|
+
listConnections: (options?: ({
|
|
3224
|
+
title?: string | undefined;
|
|
3225
|
+
search?: string | undefined;
|
|
3226
|
+
owner?: string | undefined;
|
|
3227
|
+
app?: string | undefined;
|
|
3228
|
+
appKey?: string | undefined;
|
|
3229
|
+
connections?: string[] | undefined;
|
|
3230
|
+
connectionIds?: string[] | undefined;
|
|
3231
|
+
authenticationIds?: string[] | undefined;
|
|
3232
|
+
account?: string | undefined;
|
|
3233
|
+
accountId?: string | undefined;
|
|
3234
|
+
includeShared?: boolean | undefined;
|
|
3235
|
+
isExpired?: boolean | undefined;
|
|
3236
|
+
expired?: boolean | undefined;
|
|
3237
|
+
pageSize?: number | undefined;
|
|
3238
|
+
maxItems?: number | undefined;
|
|
3239
|
+
cursor?: string | undefined;
|
|
3240
|
+
} & {
|
|
3241
|
+
cursor?: string;
|
|
3242
|
+
pageSize?: number;
|
|
3243
|
+
maxItems?: number;
|
|
3244
|
+
}) | undefined) => PaginatedSdkResult<{
|
|
3245
|
+
date: string;
|
|
3246
|
+
is_invite_only: boolean;
|
|
3247
|
+
is_private: boolean;
|
|
3248
|
+
shared_with_all: boolean;
|
|
3249
|
+
id: string;
|
|
3250
|
+
account_id: string;
|
|
3251
|
+
title?: string | null | undefined;
|
|
3252
|
+
lastchanged?: string | undefined;
|
|
3253
|
+
destination_selected_api?: string | null | undefined;
|
|
3254
|
+
is_stale?: string | undefined;
|
|
3255
|
+
is_shared?: string | undefined;
|
|
3256
|
+
marked_stale_at?: string | null | undefined;
|
|
3257
|
+
label?: string | null | undefined;
|
|
3258
|
+
identifier?: string | null | undefined;
|
|
3259
|
+
url?: string | undefined;
|
|
3260
|
+
groups?: Record<string, unknown>[] | undefined;
|
|
3261
|
+
members?: string | undefined;
|
|
3262
|
+
permissions?: Record<string, boolean> | undefined;
|
|
3263
|
+
public_id?: string | undefined;
|
|
3264
|
+
account_public_id?: string | undefined;
|
|
3265
|
+
customuser_public_id?: string | undefined;
|
|
3266
|
+
implementation_id?: string | undefined;
|
|
3267
|
+
profile_id?: string | undefined;
|
|
3268
|
+
is_expired?: string | undefined;
|
|
3269
|
+
expired_at?: string | null | undefined;
|
|
3270
|
+
app_key?: string | undefined;
|
|
3271
|
+
app_version?: string | undefined;
|
|
3272
|
+
}>;
|
|
3273
|
+
} & {
|
|
3274
|
+
context: {
|
|
3275
|
+
meta: {
|
|
3276
|
+
listConnections: PluginMeta<unknown>;
|
|
3277
|
+
};
|
|
3278
|
+
};
|
|
3279
|
+
} & {
|
|
3280
|
+
getConnection: (options?: {
|
|
3281
|
+
connection?: string | number | undefined;
|
|
3282
|
+
connectionId?: string | number | undefined;
|
|
3283
|
+
authenticationId?: string | number | undefined;
|
|
3284
|
+
} | undefined) => Promise<{
|
|
3285
|
+
data: {
|
|
3286
|
+
date: string;
|
|
3287
|
+
is_invite_only: boolean;
|
|
3288
|
+
is_private: boolean;
|
|
3289
|
+
shared_with_all: boolean;
|
|
3290
|
+
id: string;
|
|
3291
|
+
account_id: string;
|
|
3292
|
+
title?: string | null | undefined;
|
|
3293
|
+
lastchanged?: string | undefined;
|
|
3294
|
+
destination_selected_api?: string | null | undefined;
|
|
3295
|
+
is_stale?: string | undefined;
|
|
3296
|
+
is_shared?: string | undefined;
|
|
3297
|
+
marked_stale_at?: string | null | undefined;
|
|
3298
|
+
label?: string | null | undefined;
|
|
3299
|
+
identifier?: string | null | undefined;
|
|
3300
|
+
url?: string | undefined;
|
|
3301
|
+
groups?: Record<string, unknown>[] | undefined;
|
|
3302
|
+
members?: string | undefined;
|
|
3303
|
+
permissions?: Record<string, boolean> | undefined;
|
|
3304
|
+
public_id?: string | undefined;
|
|
3305
|
+
account_public_id?: string | undefined;
|
|
3306
|
+
customuser_public_id?: string | undefined;
|
|
3307
|
+
implementation_id?: string | undefined;
|
|
3308
|
+
profile_id?: string | undefined;
|
|
3309
|
+
is_expired?: string | undefined;
|
|
3310
|
+
expired_at?: string | null | undefined;
|
|
3311
|
+
app_key?: string | undefined;
|
|
3312
|
+
app_version?: string | undefined;
|
|
3313
|
+
};
|
|
3314
|
+
}>;
|
|
3315
|
+
} & {
|
|
3316
|
+
context: {
|
|
3317
|
+
meta: {
|
|
3318
|
+
getConnection: PluginMeta<unknown>;
|
|
3319
|
+
};
|
|
3320
|
+
};
|
|
3321
|
+
} & {
|
|
3322
|
+
findFirstConnection: (options?: {
|
|
3323
|
+
title?: string | undefined;
|
|
3324
|
+
appKey?: string | undefined;
|
|
3325
|
+
app?: string | undefined;
|
|
3326
|
+
search?: string | undefined;
|
|
3327
|
+
owner?: string | undefined;
|
|
3328
|
+
account?: string | undefined;
|
|
3329
|
+
accountId?: string | undefined;
|
|
3330
|
+
includeShared?: boolean | undefined;
|
|
3331
|
+
isExpired?: boolean | undefined;
|
|
3332
|
+
expired?: boolean | undefined;
|
|
3333
|
+
} | undefined) => Promise<{
|
|
3334
|
+
data: {
|
|
3335
|
+
date: string;
|
|
3336
|
+
is_invite_only: boolean;
|
|
3337
|
+
is_private: boolean;
|
|
3338
|
+
shared_with_all: boolean;
|
|
3339
|
+
id: string;
|
|
3340
|
+
account_id: string;
|
|
3341
|
+
title?: string | null | undefined;
|
|
3342
|
+
lastchanged?: string | undefined;
|
|
3343
|
+
destination_selected_api?: string | null | undefined;
|
|
3344
|
+
is_stale?: string | undefined;
|
|
3345
|
+
is_shared?: string | undefined;
|
|
3346
|
+
marked_stale_at?: string | null | undefined;
|
|
3347
|
+
label?: string | null | undefined;
|
|
3348
|
+
identifier?: string | null | undefined;
|
|
3349
|
+
url?: string | undefined;
|
|
3350
|
+
groups?: Record<string, unknown>[] | undefined;
|
|
3351
|
+
members?: string | undefined;
|
|
3352
|
+
permissions?: Record<string, boolean> | undefined;
|
|
3353
|
+
public_id?: string | undefined;
|
|
3354
|
+
account_public_id?: string | undefined;
|
|
3355
|
+
customuser_public_id?: string | undefined;
|
|
3356
|
+
implementation_id?: string | undefined;
|
|
3357
|
+
profile_id?: string | undefined;
|
|
3358
|
+
is_expired?: string | undefined;
|
|
3359
|
+
expired_at?: string | null | undefined;
|
|
3360
|
+
app_key?: string | undefined;
|
|
3361
|
+
app_version?: string | undefined;
|
|
3362
|
+
};
|
|
3363
|
+
}>;
|
|
3364
|
+
} & {
|
|
3365
|
+
context: {
|
|
3366
|
+
meta: {
|
|
3367
|
+
findFirstConnection: PluginMeta<unknown>;
|
|
3368
|
+
};
|
|
3369
|
+
};
|
|
3370
|
+
} & {
|
|
3371
|
+
findUniqueConnection: (options?: {
|
|
3372
|
+
title?: string | undefined;
|
|
3373
|
+
appKey?: string | undefined;
|
|
3374
|
+
app?: string | undefined;
|
|
3375
|
+
search?: string | undefined;
|
|
3376
|
+
owner?: string | undefined;
|
|
3377
|
+
account?: string | undefined;
|
|
3378
|
+
accountId?: string | undefined;
|
|
3379
|
+
includeShared?: boolean | undefined;
|
|
3380
|
+
isExpired?: boolean | undefined;
|
|
3381
|
+
expired?: boolean | undefined;
|
|
3382
|
+
} | undefined) => Promise<{
|
|
3383
|
+
data: {
|
|
3384
|
+
date: string;
|
|
3385
|
+
is_invite_only: boolean;
|
|
3386
|
+
is_private: boolean;
|
|
3387
|
+
shared_with_all: boolean;
|
|
3388
|
+
id: string;
|
|
3389
|
+
account_id: string;
|
|
3390
|
+
title?: string | null | undefined;
|
|
3391
|
+
lastchanged?: string | undefined;
|
|
3392
|
+
destination_selected_api?: string | null | undefined;
|
|
3393
|
+
is_stale?: string | undefined;
|
|
3394
|
+
is_shared?: string | undefined;
|
|
3395
|
+
marked_stale_at?: string | null | undefined;
|
|
3396
|
+
label?: string | null | undefined;
|
|
3397
|
+
identifier?: string | null | undefined;
|
|
3398
|
+
url?: string | undefined;
|
|
3399
|
+
groups?: Record<string, unknown>[] | undefined;
|
|
3400
|
+
members?: string | undefined;
|
|
3401
|
+
permissions?: Record<string, boolean> | undefined;
|
|
3402
|
+
public_id?: string | undefined;
|
|
3403
|
+
account_public_id?: string | undefined;
|
|
3404
|
+
customuser_public_id?: string | undefined;
|
|
3405
|
+
implementation_id?: string | undefined;
|
|
3406
|
+
profile_id?: string | undefined;
|
|
3407
|
+
is_expired?: string | undefined;
|
|
3408
|
+
expired_at?: string | null | undefined;
|
|
3409
|
+
app_key?: string | undefined;
|
|
3410
|
+
app_version?: string | undefined;
|
|
3411
|
+
};
|
|
3412
|
+
}>;
|
|
3413
|
+
} & {
|
|
3414
|
+
context: {
|
|
3415
|
+
meta: {
|
|
3416
|
+
findUniqueConnection: PluginMeta<unknown>;
|
|
3417
|
+
};
|
|
3418
|
+
};
|
|
3419
|
+
} & {
|
|
3420
|
+
listActions: (options?: (({
|
|
3421
|
+
app: string;
|
|
3422
|
+
actionType?: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run" | undefined;
|
|
3423
|
+
pageSize?: number | undefined;
|
|
3424
|
+
maxItems?: number | undefined;
|
|
3425
|
+
cursor?: string | undefined;
|
|
3426
|
+
} | {
|
|
3427
|
+
appKey: string;
|
|
3428
|
+
actionType?: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run" | undefined;
|
|
3429
|
+
pageSize?: number | undefined;
|
|
3430
|
+
maxItems?: number | undefined;
|
|
3431
|
+
cursor?: string | undefined;
|
|
3432
|
+
}) & {
|
|
3433
|
+
cursor?: string;
|
|
3434
|
+
pageSize?: number;
|
|
3435
|
+
maxItems?: number;
|
|
3436
|
+
}) | undefined) => PaginatedSdkResult<{
|
|
3437
|
+
description: string;
|
|
3438
|
+
key: string;
|
|
3439
|
+
app_key: string;
|
|
3440
|
+
action_type: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
3441
|
+
title: string;
|
|
3442
|
+
type: "action";
|
|
3443
|
+
id?: string | undefined;
|
|
3444
|
+
is_hidden?: boolean | undefined;
|
|
3445
|
+
is_important?: boolean | undefined;
|
|
3446
|
+
app_version?: string | undefined;
|
|
3447
|
+
}>;
|
|
3448
|
+
} & {
|
|
3449
|
+
context: {
|
|
3450
|
+
meta: {
|
|
3451
|
+
listActions: PluginMeta<unknown>;
|
|
3452
|
+
};
|
|
3453
|
+
};
|
|
3454
|
+
} & {
|
|
3455
|
+
getAction: (options?: {
|
|
3456
|
+
app: string;
|
|
3457
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
3458
|
+
action: string;
|
|
3459
|
+
} | {
|
|
3460
|
+
appKey: string;
|
|
3461
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
3462
|
+
actionKey: string;
|
|
3463
|
+
} | undefined) => Promise<{
|
|
3464
|
+
data: {
|
|
3465
|
+
description: string;
|
|
3466
|
+
key: string;
|
|
3467
|
+
app_key: string;
|
|
3468
|
+
action_type: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
3469
|
+
title: string;
|
|
3470
|
+
type: "action";
|
|
3471
|
+
id?: string | undefined;
|
|
3472
|
+
is_hidden?: boolean | undefined;
|
|
3473
|
+
is_important?: boolean | undefined;
|
|
3474
|
+
app_version?: string | undefined;
|
|
3475
|
+
};
|
|
3476
|
+
}>;
|
|
3477
|
+
} & {
|
|
3478
|
+
context: {
|
|
3479
|
+
meta: {
|
|
3480
|
+
getAction: PluginMeta<unknown>;
|
|
3481
|
+
};
|
|
3482
|
+
};
|
|
3483
|
+
} & {
|
|
3484
|
+
listActionInputFields: (options?: (({
|
|
3485
|
+
app: string;
|
|
3486
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
3487
|
+
action: string;
|
|
3488
|
+
connection?: string | number | undefined;
|
|
3489
|
+
connectionId?: string | number | null | undefined;
|
|
3490
|
+
authenticationId?: string | number | null | undefined;
|
|
3491
|
+
inputs?: Record<string, unknown> | undefined;
|
|
3492
|
+
pageSize?: number | undefined;
|
|
3493
|
+
maxItems?: number | undefined;
|
|
3494
|
+
cursor?: string | undefined;
|
|
3495
|
+
} | {
|
|
3496
|
+
appKey: string;
|
|
3497
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
3498
|
+
actionKey: string;
|
|
3499
|
+
connection?: string | number | undefined;
|
|
3500
|
+
connectionId?: string | number | null | undefined;
|
|
3501
|
+
authenticationId?: string | number | null | undefined;
|
|
3502
|
+
inputs?: Record<string, unknown> | undefined;
|
|
3503
|
+
pageSize?: number | undefined;
|
|
3504
|
+
maxItems?: number | undefined;
|
|
3505
|
+
cursor?: string | undefined;
|
|
3506
|
+
}) & {
|
|
3507
|
+
cursor?: string;
|
|
3508
|
+
pageSize?: number;
|
|
3509
|
+
maxItems?: number;
|
|
3510
|
+
}) | undefined) => PaginatedSdkResult<FieldsetItem | {
|
|
3511
|
+
key: string;
|
|
3512
|
+
type: "input_field";
|
|
3513
|
+
default_value: string;
|
|
3514
|
+
depends_on: string[];
|
|
3515
|
+
description: string;
|
|
3516
|
+
invalidates_input_fields: boolean;
|
|
3517
|
+
is_required: boolean;
|
|
3518
|
+
placeholder: string;
|
|
3519
|
+
title: string;
|
|
3520
|
+
value_type: string;
|
|
3521
|
+
format?: string | undefined;
|
|
3522
|
+
items?: {
|
|
3523
|
+
type: string;
|
|
3524
|
+
} | undefined;
|
|
3525
|
+
} | {
|
|
3526
|
+
key: string;
|
|
3527
|
+
type: "info_field";
|
|
3528
|
+
description: string;
|
|
3529
|
+
title?: string | undefined;
|
|
3530
|
+
}>;
|
|
3531
|
+
} & {
|
|
3532
|
+
context: {
|
|
3533
|
+
meta: {
|
|
3534
|
+
listActionInputFields: PluginMeta<unknown>;
|
|
3535
|
+
};
|
|
3536
|
+
};
|
|
3537
|
+
} & {
|
|
3538
|
+
getActionInputFieldsSchema: (options?: {
|
|
3539
|
+
app: string;
|
|
3540
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
3541
|
+
action: string;
|
|
3542
|
+
connection?: string | number | undefined;
|
|
3543
|
+
connectionId?: string | number | null | undefined;
|
|
3544
|
+
authenticationId?: string | number | null | undefined;
|
|
3545
|
+
inputs?: Record<string, unknown> | undefined;
|
|
3546
|
+
} | {
|
|
3547
|
+
appKey: string;
|
|
3548
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
3549
|
+
actionKey: string;
|
|
3550
|
+
connection?: string | number | undefined;
|
|
3551
|
+
connectionId?: string | number | null | undefined;
|
|
3552
|
+
authenticationId?: string | number | null | undefined;
|
|
3553
|
+
inputs?: Record<string, unknown> | undefined;
|
|
3554
|
+
} | undefined) => Promise<{
|
|
3555
|
+
data: Record<string, unknown>;
|
|
3556
|
+
}>;
|
|
3557
|
+
} & {
|
|
3558
|
+
context: {
|
|
3559
|
+
meta: {
|
|
3560
|
+
getActionInputFieldsSchema: PluginMeta<unknown>;
|
|
3561
|
+
};
|
|
3562
|
+
};
|
|
3563
|
+
} & {
|
|
3564
|
+
listActionInputFieldChoices: (options?: (({
|
|
3565
|
+
app: string;
|
|
3566
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
3567
|
+
action: string;
|
|
3568
|
+
inputField: string;
|
|
3569
|
+
connection?: string | number | undefined;
|
|
3570
|
+
connectionId?: string | number | null | undefined;
|
|
3571
|
+
authenticationId?: string | number | null | undefined;
|
|
3572
|
+
inputs?: Record<string, unknown> | undefined;
|
|
3573
|
+
page?: number | undefined;
|
|
3574
|
+
pageSize?: number | undefined;
|
|
3575
|
+
maxItems?: number | undefined;
|
|
3576
|
+
cursor?: string | undefined;
|
|
3577
|
+
} | {
|
|
3578
|
+
appKey: string;
|
|
3579
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
3580
|
+
actionKey: string;
|
|
3581
|
+
inputFieldKey: string;
|
|
3582
|
+
connection?: string | number | undefined;
|
|
3583
|
+
connectionId?: string | number | null | undefined;
|
|
3584
|
+
authenticationId?: string | number | null | undefined;
|
|
3585
|
+
inputs?: Record<string, unknown> | undefined;
|
|
3586
|
+
page?: number | undefined;
|
|
3587
|
+
pageSize?: number | undefined;
|
|
3588
|
+
maxItems?: number | undefined;
|
|
3589
|
+
cursor?: string | undefined;
|
|
3590
|
+
}) & {
|
|
3591
|
+
cursor?: string;
|
|
3592
|
+
pageSize?: number;
|
|
3593
|
+
maxItems?: number;
|
|
3594
|
+
}) | undefined) => PaginatedSdkResult<{
|
|
3595
|
+
key?: string | undefined;
|
|
3596
|
+
label?: string | undefined;
|
|
3597
|
+
sample?: string | undefined;
|
|
3598
|
+
value?: string | undefined;
|
|
3599
|
+
}>;
|
|
3600
|
+
} & {
|
|
3601
|
+
context: {
|
|
3602
|
+
meta: {
|
|
3603
|
+
listActionInputFieldChoices: PluginMeta<unknown>;
|
|
3604
|
+
};
|
|
3605
|
+
};
|
|
3606
|
+
} & {
|
|
3607
|
+
listInputFields: (options?: (({
|
|
3608
|
+
app: string;
|
|
3609
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
3610
|
+
action: string;
|
|
3611
|
+
connection?: string | number | undefined;
|
|
3612
|
+
connectionId?: string | number | null | undefined;
|
|
3613
|
+
authenticationId?: string | number | null | undefined;
|
|
3614
|
+
inputs?: Record<string, unknown> | undefined;
|
|
3615
|
+
pageSize?: number | undefined;
|
|
3616
|
+
maxItems?: number | undefined;
|
|
3617
|
+
cursor?: string | undefined;
|
|
3618
|
+
} | {
|
|
3619
|
+
appKey: string;
|
|
3620
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
3621
|
+
actionKey: string;
|
|
3622
|
+
connection?: string | number | undefined;
|
|
3623
|
+
connectionId?: string | number | null | undefined;
|
|
3624
|
+
authenticationId?: string | number | null | undefined;
|
|
3625
|
+
inputs?: Record<string, unknown> | undefined;
|
|
3626
|
+
pageSize?: number | undefined;
|
|
3627
|
+
maxItems?: number | undefined;
|
|
3628
|
+
cursor?: string | undefined;
|
|
3629
|
+
}) & {
|
|
3630
|
+
cursor?: string;
|
|
3631
|
+
pageSize?: number;
|
|
3632
|
+
maxItems?: number;
|
|
3633
|
+
}) | undefined) => PaginatedSdkResult<FieldsetItem | {
|
|
3634
|
+
key: string;
|
|
3635
|
+
type: "input_field";
|
|
3636
|
+
default_value: string;
|
|
3637
|
+
depends_on: string[];
|
|
3638
|
+
description: string;
|
|
3639
|
+
invalidates_input_fields: boolean;
|
|
3640
|
+
is_required: boolean;
|
|
3641
|
+
placeholder: string;
|
|
3642
|
+
title: string;
|
|
3643
|
+
value_type: string;
|
|
3644
|
+
format?: string | undefined;
|
|
3645
|
+
items?: {
|
|
3646
|
+
type: string;
|
|
3647
|
+
} | undefined;
|
|
3648
|
+
} | {
|
|
3649
|
+
key: string;
|
|
3650
|
+
type: "info_field";
|
|
3651
|
+
description: string;
|
|
3652
|
+
title?: string | undefined;
|
|
3653
|
+
}>;
|
|
3654
|
+
context: {
|
|
3655
|
+
meta: {
|
|
3656
|
+
listInputFields: {
|
|
3657
|
+
categories: string[];
|
|
3658
|
+
deprecation: {
|
|
3659
|
+
message: string;
|
|
3660
|
+
};
|
|
3661
|
+
type: "list";
|
|
3662
|
+
itemType: string;
|
|
3663
|
+
inputSchema: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
3664
|
+
app: zod.ZodString & {
|
|
3665
|
+
_def: zod_v4_core.$ZodStringDef & PositionalMetadata;
|
|
3666
|
+
};
|
|
3667
|
+
actionType: zod.ZodEnum<{
|
|
3668
|
+
filter: "filter";
|
|
3669
|
+
search: "search";
|
|
3670
|
+
read: "read";
|
|
3671
|
+
read_bulk: "read_bulk";
|
|
3672
|
+
write: "write";
|
|
3673
|
+
search_or_write: "search_or_write";
|
|
3674
|
+
search_and_write: "search_and_write";
|
|
3675
|
+
run: "run";
|
|
3676
|
+
}>;
|
|
3677
|
+
action: zod.ZodString & {
|
|
3678
|
+
_def: zod_v4_core.$ZodStringDef & PositionalMetadata;
|
|
3679
|
+
};
|
|
3680
|
+
connection: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
3681
|
+
connectionId: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>>;
|
|
3682
|
+
authenticationId: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>>;
|
|
3683
|
+
inputs: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
3684
|
+
pageSize: zod.ZodOptional<zod.ZodNumber>;
|
|
3685
|
+
maxItems: zod.ZodOptional<zod.ZodNumber>;
|
|
3686
|
+
cursor: zod.ZodOptional<zod.ZodString>;
|
|
3687
|
+
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
3688
|
+
appKey: zod.ZodString & {
|
|
3689
|
+
_def: zod_v4_core.$ZodStringDef & PositionalMetadata;
|
|
3690
|
+
};
|
|
3691
|
+
actionType: zod.ZodEnum<{
|
|
3692
|
+
filter: "filter";
|
|
3693
|
+
search: "search";
|
|
3694
|
+
read: "read";
|
|
3695
|
+
read_bulk: "read_bulk";
|
|
3696
|
+
write: "write";
|
|
3697
|
+
search_or_write: "search_or_write";
|
|
3698
|
+
search_and_write: "search_and_write";
|
|
3699
|
+
run: "run";
|
|
3700
|
+
}>;
|
|
3701
|
+
actionKey: zod.ZodString;
|
|
3702
|
+
connection: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
3703
|
+
connectionId: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>>;
|
|
3704
|
+
authenticationId: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>>;
|
|
3705
|
+
inputs: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
3706
|
+
pageSize: zod.ZodOptional<zod.ZodNumber>;
|
|
3707
|
+
maxItems: zod.ZodOptional<zod.ZodNumber>;
|
|
3708
|
+
cursor: zod.ZodOptional<zod.ZodString>;
|
|
3709
|
+
}, zod_v4_core.$strip>]>;
|
|
3710
|
+
outputSchema: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
3711
|
+
key: zod.ZodString;
|
|
3712
|
+
type: zod.ZodLiteral<"input_field">;
|
|
3713
|
+
default_value: zod.ZodString;
|
|
3714
|
+
depends_on: zod.ZodArray<zod.ZodString>;
|
|
3715
|
+
description: zod.ZodString;
|
|
3716
|
+
invalidates_input_fields: zod.ZodBoolean;
|
|
3717
|
+
is_required: zod.ZodBoolean;
|
|
3718
|
+
placeholder: zod.ZodString;
|
|
3719
|
+
title: zod.ZodString;
|
|
3720
|
+
value_type: zod.ZodString;
|
|
3721
|
+
format: zod.ZodOptional<zod.ZodString>;
|
|
3722
|
+
items: zod.ZodOptional<zod.ZodObject<{
|
|
3723
|
+
type: zod.ZodString;
|
|
3724
|
+
}, zod_v4_core.$strip>>;
|
|
3725
|
+
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
3726
|
+
key: zod.ZodString;
|
|
3727
|
+
type: zod.ZodLiteral<"info_field">;
|
|
3728
|
+
description: zod.ZodString;
|
|
3729
|
+
title: zod.ZodOptional<zod.ZodString>;
|
|
3730
|
+
}, zod_v4_core.$strip>, zod.ZodType<FieldsetItem, unknown, zod_v4_core.$ZodTypeInternals<FieldsetItem, unknown>>]>;
|
|
3731
|
+
formatter: OutputFormatter<unknown, FieldsetItem | {
|
|
3732
|
+
key: string;
|
|
3733
|
+
type: "input_field";
|
|
3734
|
+
default_value: string;
|
|
3735
|
+
depends_on: string[];
|
|
3736
|
+
description: string;
|
|
3737
|
+
invalidates_input_fields: boolean;
|
|
3738
|
+
is_required: boolean;
|
|
3739
|
+
placeholder: string;
|
|
3740
|
+
title: string;
|
|
3741
|
+
value_type: string;
|
|
3742
|
+
format?: string | undefined;
|
|
3743
|
+
items?: {
|
|
3744
|
+
type: string;
|
|
3745
|
+
} | undefined;
|
|
3746
|
+
} | {
|
|
3747
|
+
key: string;
|
|
3748
|
+
type: "info_field";
|
|
3749
|
+
description: string;
|
|
3750
|
+
title?: string | undefined;
|
|
3751
|
+
}, Record<string, unknown>, unknown>;
|
|
3752
|
+
defaultPageSize: number;
|
|
3753
|
+
};
|
|
3754
|
+
};
|
|
3755
|
+
};
|
|
3756
|
+
} & {
|
|
3757
|
+
getInputFieldsSchema: (options?: {
|
|
3758
|
+
app: string;
|
|
3759
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
3760
|
+
action: string;
|
|
3761
|
+
connection?: string | number | undefined;
|
|
3762
|
+
connectionId?: string | number | null | undefined;
|
|
3763
|
+
authenticationId?: string | number | null | undefined;
|
|
3764
|
+
inputs?: Record<string, unknown> | undefined;
|
|
3765
|
+
} | {
|
|
3766
|
+
appKey: string;
|
|
3767
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
3768
|
+
actionKey: string;
|
|
3769
|
+
connection?: string | number | undefined;
|
|
3770
|
+
connectionId?: string | number | null | undefined;
|
|
3771
|
+
authenticationId?: string | number | null | undefined;
|
|
3772
|
+
inputs?: Record<string, unknown> | undefined;
|
|
3773
|
+
} | undefined) => Promise<{
|
|
3774
|
+
data: Record<string, unknown>;
|
|
3775
|
+
}>;
|
|
3776
|
+
context: {
|
|
3777
|
+
meta: {
|
|
3778
|
+
getInputFieldsSchema: {
|
|
3779
|
+
categories: string[];
|
|
3780
|
+
deprecation: {
|
|
3781
|
+
message: string;
|
|
3782
|
+
};
|
|
3783
|
+
type: "function";
|
|
3784
|
+
inputSchema: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
3785
|
+
app: zod.ZodString & {
|
|
3786
|
+
_def: zod_v4_core.$ZodStringDef & PositionalMetadata;
|
|
3787
|
+
};
|
|
3788
|
+
actionType: zod.ZodEnum<{
|
|
3789
|
+
filter: "filter";
|
|
3790
|
+
search: "search";
|
|
3791
|
+
read: "read";
|
|
3792
|
+
read_bulk: "read_bulk";
|
|
3793
|
+
write: "write";
|
|
3794
|
+
search_or_write: "search_or_write";
|
|
3795
|
+
search_and_write: "search_and_write";
|
|
3796
|
+
run: "run";
|
|
3797
|
+
}>;
|
|
3798
|
+
action: zod.ZodString & {
|
|
3799
|
+
_def: zod_v4_core.$ZodStringDef & PositionalMetadata;
|
|
3800
|
+
};
|
|
3801
|
+
connection: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
3802
|
+
connectionId: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>>;
|
|
3803
|
+
authenticationId: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>>;
|
|
3804
|
+
inputs: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
3805
|
+
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
3806
|
+
appKey: zod.ZodString & {
|
|
3807
|
+
_def: zod_v4_core.$ZodStringDef & PositionalMetadata;
|
|
3808
|
+
};
|
|
3809
|
+
actionType: zod.ZodEnum<{
|
|
3810
|
+
filter: "filter";
|
|
3811
|
+
search: "search";
|
|
3812
|
+
read: "read";
|
|
3813
|
+
read_bulk: "read_bulk";
|
|
3814
|
+
write: "write";
|
|
3815
|
+
search_or_write: "search_or_write";
|
|
3816
|
+
search_and_write: "search_and_write";
|
|
3817
|
+
run: "run";
|
|
3818
|
+
}>;
|
|
3819
|
+
actionKey: zod.ZodString;
|
|
3820
|
+
connection: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
3821
|
+
connectionId: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>>;
|
|
3822
|
+
authenticationId: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>>;
|
|
3823
|
+
inputs: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
3824
|
+
}, zod_v4_core.$strip>]>;
|
|
3825
|
+
};
|
|
3826
|
+
};
|
|
3827
|
+
};
|
|
3828
|
+
} & {
|
|
3829
|
+
listInputFieldChoices: (options?: (({
|
|
3830
|
+
app: string;
|
|
3831
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
3832
|
+
action: string;
|
|
3833
|
+
inputField: string;
|
|
3834
|
+
connection?: string | number | undefined;
|
|
3835
|
+
connectionId?: string | number | null | undefined;
|
|
3836
|
+
authenticationId?: string | number | null | undefined;
|
|
3837
|
+
inputs?: Record<string, unknown> | undefined;
|
|
3838
|
+
page?: number | undefined;
|
|
3839
|
+
pageSize?: number | undefined;
|
|
3840
|
+
maxItems?: number | undefined;
|
|
3841
|
+
cursor?: string | undefined;
|
|
3842
|
+
} | {
|
|
3843
|
+
appKey: string;
|
|
3844
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
3845
|
+
actionKey: string;
|
|
3846
|
+
inputFieldKey: string;
|
|
3847
|
+
connection?: string | number | undefined;
|
|
3848
|
+
connectionId?: string | number | null | undefined;
|
|
3849
|
+
authenticationId?: string | number | null | undefined;
|
|
3850
|
+
inputs?: Record<string, unknown> | undefined;
|
|
3851
|
+
page?: number | undefined;
|
|
3852
|
+
pageSize?: number | undefined;
|
|
3853
|
+
maxItems?: number | undefined;
|
|
3854
|
+
cursor?: string | undefined;
|
|
3855
|
+
}) & {
|
|
3856
|
+
cursor?: string;
|
|
3857
|
+
pageSize?: number;
|
|
3858
|
+
maxItems?: number;
|
|
3859
|
+
}) | undefined) => PaginatedSdkResult<{
|
|
3860
|
+
key?: string | undefined;
|
|
3861
|
+
label?: string | undefined;
|
|
3862
|
+
sample?: string | undefined;
|
|
3863
|
+
value?: string | undefined;
|
|
3864
|
+
}>;
|
|
3865
|
+
context: {
|
|
3866
|
+
meta: {
|
|
3867
|
+
listInputFieldChoices: {
|
|
3868
|
+
categories: string[];
|
|
3869
|
+
deprecation: {
|
|
3870
|
+
message: string;
|
|
3871
|
+
};
|
|
3872
|
+
type: "list";
|
|
3873
|
+
itemType: string;
|
|
3874
|
+
inputSchema: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
3875
|
+
app: zod.ZodString & {
|
|
3876
|
+
_def: zod_v4_core.$ZodStringDef & PositionalMetadata;
|
|
3877
|
+
};
|
|
3878
|
+
actionType: zod.ZodEnum<{
|
|
3879
|
+
filter: "filter";
|
|
3880
|
+
search: "search";
|
|
3881
|
+
read: "read";
|
|
3882
|
+
read_bulk: "read_bulk";
|
|
3883
|
+
write: "write";
|
|
3884
|
+
search_or_write: "search_or_write";
|
|
3885
|
+
search_and_write: "search_and_write";
|
|
3886
|
+
run: "run";
|
|
3887
|
+
}>;
|
|
3888
|
+
action: zod.ZodString & {
|
|
3889
|
+
_def: zod_v4_core.$ZodStringDef & PositionalMetadata;
|
|
3890
|
+
};
|
|
3891
|
+
inputField: zod.ZodString & {
|
|
3892
|
+
_def: zod_v4_core.$ZodStringDef & PositionalMetadata;
|
|
3893
|
+
};
|
|
3894
|
+
connection: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
3895
|
+
connectionId: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>>;
|
|
3896
|
+
authenticationId: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>>;
|
|
3897
|
+
inputs: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
3898
|
+
page: zod.ZodOptional<zod.ZodNumber>;
|
|
3899
|
+
pageSize: zod.ZodOptional<zod.ZodNumber>;
|
|
3900
|
+
maxItems: zod.ZodOptional<zod.ZodNumber>;
|
|
3901
|
+
cursor: zod.ZodOptional<zod.ZodString>;
|
|
3902
|
+
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
3903
|
+
appKey: zod.ZodString & {
|
|
3904
|
+
_def: zod_v4_core.$ZodStringDef & PositionalMetadata;
|
|
3905
|
+
};
|
|
3906
|
+
actionType: zod.ZodEnum<{
|
|
3907
|
+
filter: "filter";
|
|
3908
|
+
search: "search";
|
|
3909
|
+
read: "read";
|
|
3910
|
+
read_bulk: "read_bulk";
|
|
3911
|
+
write: "write";
|
|
3912
|
+
search_or_write: "search_or_write";
|
|
3913
|
+
search_and_write: "search_and_write";
|
|
3914
|
+
run: "run";
|
|
3915
|
+
}>;
|
|
3916
|
+
actionKey: zod.ZodString;
|
|
3917
|
+
inputFieldKey: zod.ZodString;
|
|
3918
|
+
connection: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
3919
|
+
connectionId: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>>;
|
|
3920
|
+
authenticationId: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>>;
|
|
3921
|
+
inputs: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
3922
|
+
page: zod.ZodOptional<zod.ZodNumber>;
|
|
3923
|
+
pageSize: zod.ZodOptional<zod.ZodNumber>;
|
|
3924
|
+
maxItems: zod.ZodOptional<zod.ZodNumber>;
|
|
3925
|
+
cursor: zod.ZodOptional<zod.ZodString>;
|
|
3926
|
+
}, zod_v4_core.$strip>]>;
|
|
3927
|
+
outputSchema: zod.ZodObject<{
|
|
3928
|
+
key: zod.ZodOptional<zod.ZodString>;
|
|
3929
|
+
label: zod.ZodOptional<zod.ZodString>;
|
|
3930
|
+
sample: zod.ZodOptional<zod.ZodString>;
|
|
3931
|
+
value: zod.ZodOptional<zod.ZodString>;
|
|
3932
|
+
}, zod_v4_core.$strip>;
|
|
3933
|
+
formatter: OutputFormatter<unknown, {
|
|
3934
|
+
key?: string | undefined;
|
|
3935
|
+
label?: string | undefined;
|
|
3936
|
+
sample?: string | undefined;
|
|
3937
|
+
value?: string | undefined;
|
|
3938
|
+
}, Record<string, unknown>, unknown>;
|
|
3939
|
+
defaultPageSize: number;
|
|
3940
|
+
};
|
|
3941
|
+
};
|
|
3942
|
+
};
|
|
3943
|
+
} & {
|
|
3944
|
+
runAction: (options?: (({
|
|
3945
|
+
app: string;
|
|
3946
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
3947
|
+
action: string;
|
|
3948
|
+
connection?: string | number | undefined;
|
|
3949
|
+
connectionId?: string | number | null | undefined;
|
|
3950
|
+
authenticationId?: string | number | null | undefined;
|
|
3951
|
+
inputs?: Record<string, unknown> | undefined;
|
|
3952
|
+
timeoutMs?: number | undefined;
|
|
3953
|
+
pageSize?: number | undefined;
|
|
3954
|
+
maxItems?: number | undefined;
|
|
3955
|
+
cursor?: string | undefined;
|
|
3956
|
+
} | {
|
|
3957
|
+
appKey: string;
|
|
3958
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
3959
|
+
actionKey: string;
|
|
3960
|
+
connection?: string | number | undefined;
|
|
3961
|
+
connectionId?: string | number | null | undefined;
|
|
3962
|
+
authenticationId?: string | number | null | undefined;
|
|
3963
|
+
inputs?: Record<string, unknown> | undefined;
|
|
3964
|
+
timeoutMs?: number | undefined;
|
|
3965
|
+
pageSize?: number | undefined;
|
|
3966
|
+
maxItems?: number | undefined;
|
|
3967
|
+
cursor?: string | undefined;
|
|
3968
|
+
}) & {
|
|
3969
|
+
cursor?: string;
|
|
3970
|
+
pageSize?: number;
|
|
3971
|
+
maxItems?: number;
|
|
3972
|
+
}) | undefined) => PaginatedSdkResult<unknown>;
|
|
932
3973
|
} & {
|
|
933
3974
|
context: {
|
|
934
3975
|
meta: {
|
|
935
|
-
|
|
3976
|
+
runAction: PluginMeta<unknown>;
|
|
936
3977
|
};
|
|
937
3978
|
};
|
|
938
3979
|
} & {
|
|
@@ -991,6 +4032,9 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
991
4032
|
listAuthentications: {
|
|
992
4033
|
packages: string[];
|
|
993
4034
|
categories: string[];
|
|
4035
|
+
deprecation: {
|
|
4036
|
+
message: string;
|
|
4037
|
+
};
|
|
994
4038
|
type: "list";
|
|
995
4039
|
itemType: string;
|
|
996
4040
|
inputSchema: zod.ZodObject<{
|
|
@@ -1044,6 +4088,35 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
1044
4088
|
app_key: zod.ZodOptional<zod.ZodString>;
|
|
1045
4089
|
app_version: zod.ZodOptional<zod.ZodString>;
|
|
1046
4090
|
}, zod_v4_core.$strip>;
|
|
4091
|
+
formatter: OutputFormatter<unknown, {
|
|
4092
|
+
date: string;
|
|
4093
|
+
is_invite_only: boolean;
|
|
4094
|
+
is_private: boolean;
|
|
4095
|
+
shared_with_all: boolean;
|
|
4096
|
+
id: string;
|
|
4097
|
+
account_id: string;
|
|
4098
|
+
title?: string | null | undefined;
|
|
4099
|
+
lastchanged?: string | undefined;
|
|
4100
|
+
destination_selected_api?: string | null | undefined;
|
|
4101
|
+
is_stale?: string | undefined;
|
|
4102
|
+
is_shared?: string | undefined;
|
|
4103
|
+
marked_stale_at?: string | null | undefined;
|
|
4104
|
+
label?: string | null | undefined;
|
|
4105
|
+
identifier?: string | null | undefined;
|
|
4106
|
+
url?: string | undefined;
|
|
4107
|
+
groups?: Record<string, unknown>[] | undefined;
|
|
4108
|
+
members?: string | undefined;
|
|
4109
|
+
permissions?: Record<string, boolean> | undefined;
|
|
4110
|
+
public_id?: string | undefined;
|
|
4111
|
+
account_public_id?: string | undefined;
|
|
4112
|
+
customuser_public_id?: string | undefined;
|
|
4113
|
+
implementation_id?: string | undefined;
|
|
4114
|
+
profile_id?: string | undefined;
|
|
4115
|
+
is_expired?: string | undefined;
|
|
4116
|
+
expired_at?: string | null | undefined;
|
|
4117
|
+
app_key?: string | undefined;
|
|
4118
|
+
app_version?: string | undefined;
|
|
4119
|
+
}, Record<string, unknown>, unknown>;
|
|
1047
4120
|
};
|
|
1048
4121
|
};
|
|
1049
4122
|
};
|
|
@@ -1088,6 +4161,9 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
1088
4161
|
getAuthentication: {
|
|
1089
4162
|
packages: string[];
|
|
1090
4163
|
categories: string[];
|
|
4164
|
+
deprecation: {
|
|
4165
|
+
message: string;
|
|
4166
|
+
};
|
|
1091
4167
|
type: "item";
|
|
1092
4168
|
itemType: string;
|
|
1093
4169
|
inputSchema: zod.ZodObject<{
|
|
@@ -1124,6 +4200,35 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
1124
4200
|
app_key: zod.ZodOptional<zod.ZodString>;
|
|
1125
4201
|
app_version: zod.ZodOptional<zod.ZodString>;
|
|
1126
4202
|
}, zod_v4_core.$strip>;
|
|
4203
|
+
formatter: OutputFormatter<unknown, {
|
|
4204
|
+
date: string;
|
|
4205
|
+
is_invite_only: boolean;
|
|
4206
|
+
is_private: boolean;
|
|
4207
|
+
shared_with_all: boolean;
|
|
4208
|
+
id: string;
|
|
4209
|
+
account_id: string;
|
|
4210
|
+
title?: string | null | undefined;
|
|
4211
|
+
lastchanged?: string | undefined;
|
|
4212
|
+
destination_selected_api?: string | null | undefined;
|
|
4213
|
+
is_stale?: string | undefined;
|
|
4214
|
+
is_shared?: string | undefined;
|
|
4215
|
+
marked_stale_at?: string | null | undefined;
|
|
4216
|
+
label?: string | null | undefined;
|
|
4217
|
+
identifier?: string | null | undefined;
|
|
4218
|
+
url?: string | undefined;
|
|
4219
|
+
groups?: Record<string, unknown>[] | undefined;
|
|
4220
|
+
members?: string | undefined;
|
|
4221
|
+
permissions?: Record<string, boolean> | undefined;
|
|
4222
|
+
public_id?: string | undefined;
|
|
4223
|
+
account_public_id?: string | undefined;
|
|
4224
|
+
customuser_public_id?: string | undefined;
|
|
4225
|
+
implementation_id?: string | undefined;
|
|
4226
|
+
profile_id?: string | undefined;
|
|
4227
|
+
is_expired?: string | undefined;
|
|
4228
|
+
expired_at?: string | null | undefined;
|
|
4229
|
+
app_key?: string | undefined;
|
|
4230
|
+
app_version?: string | undefined;
|
|
4231
|
+
}, Record<string, unknown>, unknown>;
|
|
1127
4232
|
};
|
|
1128
4233
|
};
|
|
1129
4234
|
};
|
|
@@ -1175,6 +4280,9 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
1175
4280
|
findFirstAuthentication: {
|
|
1176
4281
|
packages: string[];
|
|
1177
4282
|
categories: string[];
|
|
4283
|
+
deprecation: {
|
|
4284
|
+
message: string;
|
|
4285
|
+
};
|
|
1178
4286
|
type: "item";
|
|
1179
4287
|
itemType: string;
|
|
1180
4288
|
inputSchema: zod.ZodObject<{
|
|
@@ -1222,6 +4330,35 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
1222
4330
|
app_key: zod.ZodOptional<zod.ZodString>;
|
|
1223
4331
|
app_version: zod.ZodOptional<zod.ZodString>;
|
|
1224
4332
|
}, zod_v4_core.$strip>;
|
|
4333
|
+
formatter: OutputFormatter<unknown, {
|
|
4334
|
+
date: string;
|
|
4335
|
+
is_invite_only: boolean;
|
|
4336
|
+
is_private: boolean;
|
|
4337
|
+
shared_with_all: boolean;
|
|
4338
|
+
id: string;
|
|
4339
|
+
account_id: string;
|
|
4340
|
+
title?: string | null | undefined;
|
|
4341
|
+
lastchanged?: string | undefined;
|
|
4342
|
+
destination_selected_api?: string | null | undefined;
|
|
4343
|
+
is_stale?: string | undefined;
|
|
4344
|
+
is_shared?: string | undefined;
|
|
4345
|
+
marked_stale_at?: string | null | undefined;
|
|
4346
|
+
label?: string | null | undefined;
|
|
4347
|
+
identifier?: string | null | undefined;
|
|
4348
|
+
url?: string | undefined;
|
|
4349
|
+
groups?: Record<string, unknown>[] | undefined;
|
|
4350
|
+
members?: string | undefined;
|
|
4351
|
+
permissions?: Record<string, boolean> | undefined;
|
|
4352
|
+
public_id?: string | undefined;
|
|
4353
|
+
account_public_id?: string | undefined;
|
|
4354
|
+
customuser_public_id?: string | undefined;
|
|
4355
|
+
implementation_id?: string | undefined;
|
|
4356
|
+
profile_id?: string | undefined;
|
|
4357
|
+
is_expired?: string | undefined;
|
|
4358
|
+
expired_at?: string | null | undefined;
|
|
4359
|
+
app_key?: string | undefined;
|
|
4360
|
+
app_version?: string | undefined;
|
|
4361
|
+
}, Record<string, unknown>, unknown>;
|
|
1225
4362
|
};
|
|
1226
4363
|
};
|
|
1227
4364
|
};
|
|
@@ -1273,6 +4410,9 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
1273
4410
|
findUniqueAuthentication: {
|
|
1274
4411
|
packages: string[];
|
|
1275
4412
|
categories: string[];
|
|
4413
|
+
deprecation: {
|
|
4414
|
+
message: string;
|
|
4415
|
+
};
|
|
1276
4416
|
type: "item";
|
|
1277
4417
|
itemType: string;
|
|
1278
4418
|
inputSchema: zod.ZodObject<{
|
|
@@ -1320,6 +4460,35 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
1320
4460
|
app_key: zod.ZodOptional<zod.ZodString>;
|
|
1321
4461
|
app_version: zod.ZodOptional<zod.ZodString>;
|
|
1322
4462
|
}, zod_v4_core.$strip>;
|
|
4463
|
+
formatter: OutputFormatter<unknown, {
|
|
4464
|
+
date: string;
|
|
4465
|
+
is_invite_only: boolean;
|
|
4466
|
+
is_private: boolean;
|
|
4467
|
+
shared_with_all: boolean;
|
|
4468
|
+
id: string;
|
|
4469
|
+
account_id: string;
|
|
4470
|
+
title?: string | null | undefined;
|
|
4471
|
+
lastchanged?: string | undefined;
|
|
4472
|
+
destination_selected_api?: string | null | undefined;
|
|
4473
|
+
is_stale?: string | undefined;
|
|
4474
|
+
is_shared?: string | undefined;
|
|
4475
|
+
marked_stale_at?: string | null | undefined;
|
|
4476
|
+
label?: string | null | undefined;
|
|
4477
|
+
identifier?: string | null | undefined;
|
|
4478
|
+
url?: string | undefined;
|
|
4479
|
+
groups?: Record<string, unknown>[] | undefined;
|
|
4480
|
+
members?: string | undefined;
|
|
4481
|
+
permissions?: Record<string, boolean> | undefined;
|
|
4482
|
+
public_id?: string | undefined;
|
|
4483
|
+
account_public_id?: string | undefined;
|
|
4484
|
+
customuser_public_id?: string | undefined;
|
|
4485
|
+
implementation_id?: string | undefined;
|
|
4486
|
+
profile_id?: string | undefined;
|
|
4487
|
+
is_expired?: string | undefined;
|
|
4488
|
+
expired_at?: string | null | undefined;
|
|
4489
|
+
app_key?: string | undefined;
|
|
4490
|
+
app_version?: string | undefined;
|
|
4491
|
+
}, Record<string, unknown>, unknown>;
|
|
1323
4492
|
};
|
|
1324
4493
|
};
|
|
1325
4494
|
};
|
|
@@ -1342,7 +4511,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
1342
4511
|
} & {
|
|
1343
4512
|
context: {
|
|
1344
4513
|
meta: {
|
|
1345
|
-
listClientCredentials: PluginMeta
|
|
4514
|
+
listClientCredentials: PluginMeta<unknown>;
|
|
1346
4515
|
};
|
|
1347
4516
|
};
|
|
1348
4517
|
} & {
|
|
@@ -1360,7 +4529,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
1360
4529
|
} & {
|
|
1361
4530
|
context: {
|
|
1362
4531
|
meta: {
|
|
1363
|
-
createClientCredentials: PluginMeta
|
|
4532
|
+
createClientCredentials: PluginMeta<unknown>;
|
|
1364
4533
|
};
|
|
1365
4534
|
};
|
|
1366
4535
|
} & {
|
|
@@ -1372,7 +4541,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
1372
4541
|
} & {
|
|
1373
4542
|
context: {
|
|
1374
4543
|
meta: {
|
|
1375
|
-
deleteClientCredentials: PluginMeta
|
|
4544
|
+
deleteClientCredentials: PluginMeta<unknown>;
|
|
1376
4545
|
};
|
|
1377
4546
|
};
|
|
1378
4547
|
} & {
|
|
@@ -1382,7 +4551,10 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
1382
4551
|
fetch: {
|
|
1383
4552
|
description: string;
|
|
1384
4553
|
packages: string[];
|
|
1385
|
-
categories:
|
|
4554
|
+
categories: {
|
|
4555
|
+
key: string;
|
|
4556
|
+
title: string;
|
|
4557
|
+
}[];
|
|
1386
4558
|
returnType: string;
|
|
1387
4559
|
inputParameters: ({
|
|
1388
4560
|
name: string;
|
|
@@ -1425,7 +4597,38 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
1425
4597
|
} & {
|
|
1426
4598
|
context: {
|
|
1427
4599
|
meta: {
|
|
1428
|
-
request: PluginMeta
|
|
4600
|
+
request: PluginMeta<unknown>;
|
|
4601
|
+
};
|
|
4602
|
+
};
|
|
4603
|
+
} & {
|
|
4604
|
+
listTriggerInboxes: (options?: ({
|
|
4605
|
+
name?: string | undefined;
|
|
4606
|
+
status?: string | undefined;
|
|
4607
|
+
pageSize?: number | undefined;
|
|
4608
|
+
maxItems?: number | undefined;
|
|
4609
|
+
cursor?: string | undefined;
|
|
4610
|
+
} & {
|
|
4611
|
+
cursor?: string;
|
|
4612
|
+
pageSize?: number;
|
|
4613
|
+
maxItems?: number;
|
|
4614
|
+
}) | undefined) => PaginatedSdkResult<{
|
|
4615
|
+
id: string;
|
|
4616
|
+
created_at: string;
|
|
4617
|
+
name: string | null;
|
|
4618
|
+
status: string;
|
|
4619
|
+
paused_reason: string | null;
|
|
4620
|
+
notification_url: string | null;
|
|
4621
|
+
subscription: {
|
|
4622
|
+
connection_id: string | number | null;
|
|
4623
|
+
app_key: string;
|
|
4624
|
+
action_key: string;
|
|
4625
|
+
inputs: Record<string, unknown>;
|
|
4626
|
+
};
|
|
4627
|
+
}>;
|
|
4628
|
+
} & {
|
|
4629
|
+
context: {
|
|
4630
|
+
meta: {
|
|
4631
|
+
listTriggerInboxes: PluginMeta<unknown>;
|
|
1429
4632
|
};
|
|
1430
4633
|
};
|
|
1431
4634
|
} & {
|
|
@@ -1455,7 +4658,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
1455
4658
|
} & {
|
|
1456
4659
|
context: {
|
|
1457
4660
|
meta: {
|
|
1458
|
-
createTriggerInbox: PluginMeta
|
|
4661
|
+
createTriggerInbox: PluginMeta<unknown>;
|
|
1459
4662
|
};
|
|
1460
4663
|
};
|
|
1461
4664
|
} & {
|
|
@@ -1485,38 +4688,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
1485
4688
|
} & {
|
|
1486
4689
|
context: {
|
|
1487
4690
|
meta: {
|
|
1488
|
-
ensureTriggerInbox: PluginMeta
|
|
1489
|
-
};
|
|
1490
|
-
};
|
|
1491
|
-
} & {
|
|
1492
|
-
listTriggerInboxes: (options?: ({
|
|
1493
|
-
name?: string | undefined;
|
|
1494
|
-
status?: string | undefined;
|
|
1495
|
-
pageSize?: number | undefined;
|
|
1496
|
-
maxItems?: number | undefined;
|
|
1497
|
-
cursor?: string | undefined;
|
|
1498
|
-
} & {
|
|
1499
|
-
cursor?: string;
|
|
1500
|
-
pageSize?: number;
|
|
1501
|
-
maxItems?: number;
|
|
1502
|
-
}) | undefined) => PaginatedSdkResult<{
|
|
1503
|
-
id: string;
|
|
1504
|
-
created_at: string;
|
|
1505
|
-
name: string | null;
|
|
1506
|
-
status: string;
|
|
1507
|
-
paused_reason: string | null;
|
|
1508
|
-
notification_url: string | null;
|
|
1509
|
-
subscription: {
|
|
1510
|
-
connection_id: string | number | null;
|
|
1511
|
-
app_key: string;
|
|
1512
|
-
action_key: string;
|
|
1513
|
-
inputs: Record<string, unknown>;
|
|
1514
|
-
};
|
|
1515
|
-
}>;
|
|
1516
|
-
} & {
|
|
1517
|
-
context: {
|
|
1518
|
-
meta: {
|
|
1519
|
-
listTriggerInboxes: PluginMeta;
|
|
4691
|
+
ensureTriggerInbox: PluginMeta<unknown>;
|
|
1520
4692
|
};
|
|
1521
4693
|
};
|
|
1522
4694
|
} & {
|
|
@@ -1541,7 +4713,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
1541
4713
|
} & {
|
|
1542
4714
|
context: {
|
|
1543
4715
|
meta: {
|
|
1544
|
-
getTriggerInbox: PluginMeta
|
|
4716
|
+
getTriggerInbox: PluginMeta<unknown>;
|
|
1545
4717
|
};
|
|
1546
4718
|
};
|
|
1547
4719
|
} & {
|
|
@@ -1567,7 +4739,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
1567
4739
|
} & {
|
|
1568
4740
|
context: {
|
|
1569
4741
|
meta: {
|
|
1570
|
-
updateTriggerInbox: PluginMeta
|
|
4742
|
+
updateTriggerInbox: PluginMeta<unknown>;
|
|
1571
4743
|
};
|
|
1572
4744
|
};
|
|
1573
4745
|
} & {
|
|
@@ -1592,7 +4764,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
1592
4764
|
} & {
|
|
1593
4765
|
context: {
|
|
1594
4766
|
meta: {
|
|
1595
|
-
deleteTriggerInbox: PluginMeta
|
|
4767
|
+
deleteTriggerInbox: PluginMeta<unknown>;
|
|
1596
4768
|
};
|
|
1597
4769
|
};
|
|
1598
4770
|
} & {
|
|
@@ -1617,7 +4789,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
1617
4789
|
} & {
|
|
1618
4790
|
context: {
|
|
1619
4791
|
meta: {
|
|
1620
|
-
pauseTriggerInbox: PluginMeta
|
|
4792
|
+
pauseTriggerInbox: PluginMeta<unknown>;
|
|
1621
4793
|
};
|
|
1622
4794
|
};
|
|
1623
4795
|
} & {
|
|
@@ -1642,7 +4814,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
1642
4814
|
} & {
|
|
1643
4815
|
context: {
|
|
1644
4816
|
meta: {
|
|
1645
|
-
resumeTriggerInbox: PluginMeta
|
|
4817
|
+
resumeTriggerInbox: PluginMeta<unknown>;
|
|
1646
4818
|
};
|
|
1647
4819
|
};
|
|
1648
4820
|
} & {
|
|
@@ -1668,7 +4840,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
1668
4840
|
} & {
|
|
1669
4841
|
context: {
|
|
1670
4842
|
meta: {
|
|
1671
|
-
listTriggerInboxMessages: PluginMeta
|
|
4843
|
+
listTriggerInboxMessages: PluginMeta<unknown>;
|
|
1672
4844
|
};
|
|
1673
4845
|
};
|
|
1674
4846
|
} & {
|
|
@@ -1701,7 +4873,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
1701
4873
|
} & {
|
|
1702
4874
|
context: {
|
|
1703
4875
|
meta: {
|
|
1704
|
-
leaseTriggerInboxMessages: PluginMeta
|
|
4876
|
+
leaseTriggerInboxMessages: PluginMeta<unknown>;
|
|
1705
4877
|
};
|
|
1706
4878
|
};
|
|
1707
4879
|
} & {
|
|
@@ -1727,7 +4899,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
1727
4899
|
} & {
|
|
1728
4900
|
context: {
|
|
1729
4901
|
meta: {
|
|
1730
|
-
ackTriggerInboxMessages: PluginMeta
|
|
4902
|
+
ackTriggerInboxMessages: PluginMeta<unknown>;
|
|
1731
4903
|
};
|
|
1732
4904
|
};
|
|
1733
4905
|
} & {
|
|
@@ -1753,7 +4925,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
1753
4925
|
} & {
|
|
1754
4926
|
context: {
|
|
1755
4927
|
meta: {
|
|
1756
|
-
releaseTriggerInboxMessages: PluginMeta
|
|
4928
|
+
releaseTriggerInboxMessages: PluginMeta<unknown>;
|
|
1757
4929
|
};
|
|
1758
4930
|
};
|
|
1759
4931
|
} & {
|
|
@@ -1781,6 +4953,37 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
1781
4953
|
}, zod_v4_core.$strip>;
|
|
1782
4954
|
resolvers: {
|
|
1783
4955
|
inbox: DynamicResolver<{
|
|
4956
|
+
listTriggerInboxes: (options?: ({
|
|
4957
|
+
name?: string | undefined;
|
|
4958
|
+
status?: string | undefined;
|
|
4959
|
+
pageSize?: number | undefined;
|
|
4960
|
+
maxItems?: number | undefined;
|
|
4961
|
+
cursor?: string | undefined;
|
|
4962
|
+
} & {
|
|
4963
|
+
cursor?: string;
|
|
4964
|
+
pageSize?: number;
|
|
4965
|
+
maxItems?: number;
|
|
4966
|
+
}) | undefined) => PaginatedSdkResult<{
|
|
4967
|
+
id: string;
|
|
4968
|
+
created_at: string;
|
|
4969
|
+
name: string | null;
|
|
4970
|
+
status: string;
|
|
4971
|
+
paused_reason: string | null;
|
|
4972
|
+
notification_url: string | null;
|
|
4973
|
+
subscription: {
|
|
4974
|
+
connection_id: string | number | null;
|
|
4975
|
+
app_key: string;
|
|
4976
|
+
action_key: string;
|
|
4977
|
+
inputs: Record<string, unknown>;
|
|
4978
|
+
};
|
|
4979
|
+
}>;
|
|
4980
|
+
} & {
|
|
4981
|
+
context: {
|
|
4982
|
+
meta: {
|
|
4983
|
+
listTriggerInboxes: PluginMeta<unknown>;
|
|
4984
|
+
};
|
|
4985
|
+
};
|
|
4986
|
+
}, {
|
|
1784
4987
|
id: string;
|
|
1785
4988
|
created_at: string;
|
|
1786
4989
|
name: string | null;
|
|
@@ -1826,6 +5029,37 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
1826
5029
|
}, zod_v4_core.$strip>;
|
|
1827
5030
|
resolvers: {
|
|
1828
5031
|
inbox: DynamicResolver<{
|
|
5032
|
+
listTriggerInboxes: (options?: ({
|
|
5033
|
+
name?: string | undefined;
|
|
5034
|
+
status?: string | undefined;
|
|
5035
|
+
pageSize?: number | undefined;
|
|
5036
|
+
maxItems?: number | undefined;
|
|
5037
|
+
cursor?: string | undefined;
|
|
5038
|
+
} & {
|
|
5039
|
+
cursor?: string;
|
|
5040
|
+
pageSize?: number;
|
|
5041
|
+
maxItems?: number;
|
|
5042
|
+
}) | undefined) => PaginatedSdkResult<{
|
|
5043
|
+
id: string;
|
|
5044
|
+
created_at: string;
|
|
5045
|
+
name: string | null;
|
|
5046
|
+
status: string;
|
|
5047
|
+
paused_reason: string | null;
|
|
5048
|
+
notification_url: string | null;
|
|
5049
|
+
subscription: {
|
|
5050
|
+
connection_id: string | number | null;
|
|
5051
|
+
app_key: string;
|
|
5052
|
+
action_key: string;
|
|
5053
|
+
inputs: Record<string, unknown>;
|
|
5054
|
+
};
|
|
5055
|
+
}>;
|
|
5056
|
+
} & {
|
|
5057
|
+
context: {
|
|
5058
|
+
meta: {
|
|
5059
|
+
listTriggerInboxes: PluginMeta<unknown>;
|
|
5060
|
+
};
|
|
5061
|
+
};
|
|
5062
|
+
}, {
|
|
1829
5063
|
id: string;
|
|
1830
5064
|
created_at: string;
|
|
1831
5065
|
name: string | null;
|
|
@@ -1871,7 +5105,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
1871
5105
|
} & {
|
|
1872
5106
|
context: {
|
|
1873
5107
|
meta: {
|
|
1874
|
-
listTriggers: PluginMeta
|
|
5108
|
+
listTriggers: PluginMeta<unknown>;
|
|
1875
5109
|
};
|
|
1876
5110
|
};
|
|
1877
5111
|
} & {
|
|
@@ -1887,7 +5121,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
1887
5121
|
cursor?: string;
|
|
1888
5122
|
pageSize?: number;
|
|
1889
5123
|
maxItems?: number;
|
|
1890
|
-
}) | undefined) => PaginatedSdkResult<{
|
|
5124
|
+
}) | undefined) => PaginatedSdkResult<FieldsetItem | {
|
|
1891
5125
|
key: string;
|
|
1892
5126
|
type: "input_field";
|
|
1893
5127
|
default_value: string;
|
|
@@ -1907,11 +5141,11 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
1907
5141
|
type: "info_field";
|
|
1908
5142
|
description: string;
|
|
1909
5143
|
title?: string | undefined;
|
|
1910
|
-
}
|
|
5144
|
+
}>;
|
|
1911
5145
|
} & {
|
|
1912
5146
|
context: {
|
|
1913
5147
|
meta: {
|
|
1914
|
-
listTriggerInputFields: PluginMeta
|
|
5148
|
+
listTriggerInputFields: PluginMeta<unknown>;
|
|
1915
5149
|
};
|
|
1916
5150
|
};
|
|
1917
5151
|
} & {
|
|
@@ -1938,7 +5172,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
1938
5172
|
} & {
|
|
1939
5173
|
context: {
|
|
1940
5174
|
meta: {
|
|
1941
|
-
listTriggerInputFieldChoices: PluginMeta
|
|
5175
|
+
listTriggerInputFieldChoices: PluginMeta<unknown>;
|
|
1942
5176
|
};
|
|
1943
5177
|
};
|
|
1944
5178
|
} & {
|
|
@@ -1953,7 +5187,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
1953
5187
|
} & {
|
|
1954
5188
|
context: {
|
|
1955
5189
|
meta: {
|
|
1956
|
-
getTriggerInputFieldsSchema: PluginMeta
|
|
5190
|
+
getTriggerInputFieldsSchema: PluginMeta<unknown>;
|
|
1957
5191
|
};
|
|
1958
5192
|
};
|
|
1959
5193
|
} & {
|
|
@@ -1985,7 +5219,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
1985
5219
|
} & {
|
|
1986
5220
|
context: {
|
|
1987
5221
|
meta: {
|
|
1988
|
-
listTables: PluginMeta
|
|
5222
|
+
listTables: PluginMeta<unknown>;
|
|
1989
5223
|
};
|
|
1990
5224
|
};
|
|
1991
5225
|
} & {
|
|
@@ -2009,7 +5243,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2009
5243
|
} & {
|
|
2010
5244
|
context: {
|
|
2011
5245
|
meta: {
|
|
2012
|
-
getTable: PluginMeta
|
|
5246
|
+
getTable: PluginMeta<unknown>;
|
|
2013
5247
|
};
|
|
2014
5248
|
};
|
|
2015
5249
|
} & {
|
|
@@ -2023,7 +5257,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2023
5257
|
} & {
|
|
2024
5258
|
context: {
|
|
2025
5259
|
meta: {
|
|
2026
|
-
deleteTable: PluginMeta
|
|
5260
|
+
deleteTable: PluginMeta<unknown>;
|
|
2027
5261
|
};
|
|
2028
5262
|
};
|
|
2029
5263
|
} & {
|
|
@@ -2046,7 +5280,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2046
5280
|
} & {
|
|
2047
5281
|
context: {
|
|
2048
5282
|
meta: {
|
|
2049
|
-
createTable: PluginMeta
|
|
5283
|
+
createTable: PluginMeta<unknown>;
|
|
2050
5284
|
};
|
|
2051
5285
|
};
|
|
2052
5286
|
} & {
|
|
@@ -2063,7 +5297,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2063
5297
|
} | undefined) => Promise<{
|
|
2064
5298
|
data: {
|
|
2065
5299
|
id: string;
|
|
2066
|
-
type: "string" | "number" | "boolean" | "link" | "text" | "
|
|
5300
|
+
type: "string" | "number" | "boolean" | "link" | "text" | "datetime" | "decimal" | "json" | "email" | "multiple_string" | "labeled_string" | "multiple_labeled_string" | "multiple_text" | "multiple_boolean" | "multiple_number" | "multiple_decimal" | "multiple_datetime" | "uuid" | "multiple_uuid" | "multiple_json" | "formula" | "button_trigger_zap" | "button_continue_zap" | "multiple_email" | "multiple_link" | "currency" | "phone_number" | "ai_formula" | "linked_record" | "multiple_linked_record";
|
|
2067
5301
|
name: string;
|
|
2068
5302
|
created_at?: string | undefined;
|
|
2069
5303
|
edited_at?: string | undefined;
|
|
@@ -2075,14 +5309,14 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2075
5309
|
} & {
|
|
2076
5310
|
context: {
|
|
2077
5311
|
meta: {
|
|
2078
|
-
listTableFields: PluginMeta
|
|
5312
|
+
listTableFields: PluginMeta<unknown>;
|
|
2079
5313
|
};
|
|
2080
5314
|
};
|
|
2081
5315
|
} & {
|
|
2082
5316
|
createTableFields: (options?: {
|
|
2083
5317
|
table: string;
|
|
2084
5318
|
fields: {
|
|
2085
|
-
type: "string" | "number" | "boolean" | "link" | "text" | "
|
|
5319
|
+
type: "string" | "number" | "boolean" | "link" | "text" | "datetime" | "decimal" | "json" | "email" | "multiple_string" | "labeled_string" | "multiple_labeled_string" | "multiple_text" | "multiple_boolean" | "multiple_number" | "multiple_decimal" | "multiple_datetime" | "uuid" | "multiple_uuid" | "multiple_json" | "formula" | "button_trigger_zap" | "button_continue_zap" | "multiple_email" | "multiple_link" | "currency" | "phone_number" | "ai_formula" | "linked_record" | "multiple_linked_record";
|
|
2086
5320
|
name: string;
|
|
2087
5321
|
options?: Record<string, unknown> | undefined;
|
|
2088
5322
|
config?: Record<string, unknown> | undefined;
|
|
@@ -2090,7 +5324,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2090
5324
|
} | {
|
|
2091
5325
|
tableId: string;
|
|
2092
5326
|
fields: {
|
|
2093
|
-
type: "string" | "number" | "boolean" | "link" | "text" | "
|
|
5327
|
+
type: "string" | "number" | "boolean" | "link" | "text" | "datetime" | "decimal" | "json" | "email" | "multiple_string" | "labeled_string" | "multiple_labeled_string" | "multiple_text" | "multiple_boolean" | "multiple_number" | "multiple_decimal" | "multiple_datetime" | "uuid" | "multiple_uuid" | "multiple_json" | "formula" | "button_trigger_zap" | "button_continue_zap" | "multiple_email" | "multiple_link" | "currency" | "phone_number" | "ai_formula" | "linked_record" | "multiple_linked_record";
|
|
2094
5328
|
name: string;
|
|
2095
5329
|
options?: Record<string, unknown> | undefined;
|
|
2096
5330
|
config?: Record<string, unknown> | undefined;
|
|
@@ -2098,7 +5332,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2098
5332
|
} | undefined) => Promise<{
|
|
2099
5333
|
data: {
|
|
2100
5334
|
id: string;
|
|
2101
|
-
type: "string" | "number" | "boolean" | "link" | "text" | "
|
|
5335
|
+
type: "string" | "number" | "boolean" | "link" | "text" | "datetime" | "decimal" | "json" | "email" | "multiple_string" | "labeled_string" | "multiple_labeled_string" | "multiple_text" | "multiple_boolean" | "multiple_number" | "multiple_decimal" | "multiple_datetime" | "uuid" | "multiple_uuid" | "multiple_json" | "formula" | "button_trigger_zap" | "button_continue_zap" | "multiple_email" | "multiple_link" | "currency" | "phone_number" | "ai_formula" | "linked_record" | "multiple_linked_record";
|
|
2102
5336
|
name: string;
|
|
2103
5337
|
created_at?: string | undefined;
|
|
2104
5338
|
edited_at?: string | undefined;
|
|
@@ -2110,7 +5344,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2110
5344
|
} & {
|
|
2111
5345
|
context: {
|
|
2112
5346
|
meta: {
|
|
2113
|
-
createTableFields: PluginMeta
|
|
5347
|
+
createTableFields: PluginMeta<unknown>;
|
|
2114
5348
|
};
|
|
2115
5349
|
};
|
|
2116
5350
|
} & {
|
|
@@ -2126,31 +5360,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2126
5360
|
} & {
|
|
2127
5361
|
context: {
|
|
2128
5362
|
meta: {
|
|
2129
|
-
deleteTableFields: PluginMeta
|
|
2130
|
-
};
|
|
2131
|
-
};
|
|
2132
|
-
} & {
|
|
2133
|
-
getTableRecord: (options?: {
|
|
2134
|
-
table: string;
|
|
2135
|
-
record: string;
|
|
2136
|
-
keyMode: "names" | "ids";
|
|
2137
|
-
} | {
|
|
2138
|
-
tableId: string;
|
|
2139
|
-
recordId: string;
|
|
2140
|
-
keyMode: "names" | "ids";
|
|
2141
|
-
} | undefined) => Promise<{
|
|
2142
|
-
data: {
|
|
2143
|
-
data: Record<string, unknown>;
|
|
2144
|
-
id: string;
|
|
2145
|
-
created_at: string;
|
|
2146
|
-
edited_at: string;
|
|
2147
|
-
deleted_at?: string | null | undefined;
|
|
2148
|
-
};
|
|
2149
|
-
}>;
|
|
2150
|
-
} & {
|
|
2151
|
-
context: {
|
|
2152
|
-
meta: {
|
|
2153
|
-
getTableRecord: PluginMeta;
|
|
5363
|
+
deleteTableFields: PluginMeta<unknown>;
|
|
2154
5364
|
};
|
|
2155
5365
|
};
|
|
2156
5366
|
} & {
|
|
@@ -2191,8 +5401,8 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2191
5401
|
pageSize?: number;
|
|
2192
5402
|
maxItems?: number;
|
|
2193
5403
|
}) | undefined) => PaginatedSdkResult<{
|
|
2194
|
-
id: string;
|
|
2195
5404
|
data: Record<string, unknown>;
|
|
5405
|
+
id: string;
|
|
2196
5406
|
created_at: string;
|
|
2197
5407
|
edited_at: string;
|
|
2198
5408
|
deleted_at?: string | null | undefined;
|
|
@@ -2200,7 +5410,31 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2200
5410
|
} & {
|
|
2201
5411
|
context: {
|
|
2202
5412
|
meta: {
|
|
2203
|
-
listTableRecords: PluginMeta
|
|
5413
|
+
listTableRecords: PluginMeta<unknown>;
|
|
5414
|
+
};
|
|
5415
|
+
};
|
|
5416
|
+
} & {
|
|
5417
|
+
getTableRecord: (options?: {
|
|
5418
|
+
table: string;
|
|
5419
|
+
record: string;
|
|
5420
|
+
keyMode: "names" | "ids";
|
|
5421
|
+
} | {
|
|
5422
|
+
tableId: string;
|
|
5423
|
+
recordId: string;
|
|
5424
|
+
keyMode: "names" | "ids";
|
|
5425
|
+
} | undefined) => Promise<{
|
|
5426
|
+
data: {
|
|
5427
|
+
data: Record<string, unknown>;
|
|
5428
|
+
id: string;
|
|
5429
|
+
created_at: string;
|
|
5430
|
+
edited_at: string;
|
|
5431
|
+
deleted_at?: string | null | undefined;
|
|
5432
|
+
};
|
|
5433
|
+
}>;
|
|
5434
|
+
} & {
|
|
5435
|
+
context: {
|
|
5436
|
+
meta: {
|
|
5437
|
+
getTableRecord: PluginMeta<unknown>;
|
|
2204
5438
|
};
|
|
2205
5439
|
};
|
|
2206
5440
|
} & {
|
|
@@ -2228,7 +5462,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2228
5462
|
} & {
|
|
2229
5463
|
context: {
|
|
2230
5464
|
meta: {
|
|
2231
|
-
createTableRecords: PluginMeta
|
|
5465
|
+
createTableRecords: PluginMeta<unknown>;
|
|
2232
5466
|
};
|
|
2233
5467
|
};
|
|
2234
5468
|
} & {
|
|
@@ -2244,7 +5478,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2244
5478
|
} & {
|
|
2245
5479
|
context: {
|
|
2246
5480
|
meta: {
|
|
2247
|
-
deleteTableRecords: PluginMeta
|
|
5481
|
+
deleteTableRecords: PluginMeta<unknown>;
|
|
2248
5482
|
};
|
|
2249
5483
|
};
|
|
2250
5484
|
} & {
|
|
@@ -2274,7 +5508,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2274
5508
|
} & {
|
|
2275
5509
|
context: {
|
|
2276
5510
|
meta: {
|
|
2277
|
-
updateTableRecords: PluginMeta
|
|
5511
|
+
updateTableRecords: PluginMeta<unknown>;
|
|
2278
5512
|
};
|
|
2279
5513
|
};
|
|
2280
5514
|
} & {
|
|
@@ -2299,7 +5533,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2299
5533
|
} & {
|
|
2300
5534
|
context: {
|
|
2301
5535
|
meta: {
|
|
2302
|
-
listWorkflows: PluginMeta
|
|
5536
|
+
listWorkflows: PluginMeta<unknown>;
|
|
2303
5537
|
};
|
|
2304
5538
|
};
|
|
2305
5539
|
} & {
|
|
@@ -2328,7 +5562,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2328
5562
|
} & {
|
|
2329
5563
|
context: {
|
|
2330
5564
|
meta: {
|
|
2331
|
-
getWorkflow: PluginMeta
|
|
5565
|
+
getWorkflow: PluginMeta<unknown>;
|
|
2332
5566
|
};
|
|
2333
5567
|
};
|
|
2334
5568
|
} & {
|
|
@@ -2348,7 +5582,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2348
5582
|
} & {
|
|
2349
5583
|
context: {
|
|
2350
5584
|
meta: {
|
|
2351
|
-
createWorkflow: PluginMeta
|
|
5585
|
+
createWorkflow: PluginMeta<unknown>;
|
|
2352
5586
|
};
|
|
2353
5587
|
};
|
|
2354
5588
|
} & {
|
|
@@ -2370,7 +5604,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2370
5604
|
} & {
|
|
2371
5605
|
context: {
|
|
2372
5606
|
meta: {
|
|
2373
|
-
updateWorkflow: PluginMeta
|
|
5607
|
+
updateWorkflow: PluginMeta<unknown>;
|
|
2374
5608
|
};
|
|
2375
5609
|
};
|
|
2376
5610
|
} & {
|
|
@@ -2385,7 +5619,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2385
5619
|
} & {
|
|
2386
5620
|
context: {
|
|
2387
5621
|
meta: {
|
|
2388
|
-
enableWorkflow: PluginMeta
|
|
5622
|
+
enableWorkflow: PluginMeta<unknown>;
|
|
2389
5623
|
};
|
|
2390
5624
|
};
|
|
2391
5625
|
} & {
|
|
@@ -2400,7 +5634,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2400
5634
|
} & {
|
|
2401
5635
|
context: {
|
|
2402
5636
|
meta: {
|
|
2403
|
-
disableWorkflow: PluginMeta
|
|
5637
|
+
disableWorkflow: PluginMeta<unknown>;
|
|
2404
5638
|
};
|
|
2405
5639
|
};
|
|
2406
5640
|
} & {
|
|
@@ -2414,7 +5648,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2414
5648
|
} & {
|
|
2415
5649
|
context: {
|
|
2416
5650
|
meta: {
|
|
2417
|
-
deleteWorkflow: PluginMeta
|
|
5651
|
+
deleteWorkflow: PluginMeta<unknown>;
|
|
2418
5652
|
};
|
|
2419
5653
|
};
|
|
2420
5654
|
} & {
|
|
@@ -2444,7 +5678,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2444
5678
|
} & {
|
|
2445
5679
|
context: {
|
|
2446
5680
|
meta: {
|
|
2447
|
-
listDurableRuns: PluginMeta
|
|
5681
|
+
listDurableRuns: PluginMeta<unknown>;
|
|
2448
5682
|
};
|
|
2449
5683
|
};
|
|
2450
5684
|
} & {
|
|
@@ -2508,7 +5742,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2508
5742
|
} & {
|
|
2509
5743
|
context: {
|
|
2510
5744
|
meta: {
|
|
2511
|
-
getDurableRun: PluginMeta
|
|
5745
|
+
getDurableRun: PluginMeta<unknown>;
|
|
2512
5746
|
};
|
|
2513
5747
|
};
|
|
2514
5748
|
} & {
|
|
@@ -2536,7 +5770,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2536
5770
|
} & {
|
|
2537
5771
|
context: {
|
|
2538
5772
|
meta: {
|
|
2539
|
-
runDurable: PluginMeta
|
|
5773
|
+
runDurable: PluginMeta<unknown>;
|
|
2540
5774
|
};
|
|
2541
5775
|
};
|
|
2542
5776
|
} & {
|
|
@@ -2551,7 +5785,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2551
5785
|
} & {
|
|
2552
5786
|
context: {
|
|
2553
5787
|
meta: {
|
|
2554
|
-
cancelDurableRun: PluginMeta
|
|
5788
|
+
cancelDurableRun: PluginMeta<unknown>;
|
|
2555
5789
|
};
|
|
2556
5790
|
};
|
|
2557
5791
|
} & {
|
|
@@ -2575,7 +5809,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2575
5809
|
} & {
|
|
2576
5810
|
context: {
|
|
2577
5811
|
meta: {
|
|
2578
|
-
publishWorkflowVersion: PluginMeta
|
|
5812
|
+
publishWorkflowVersion: PluginMeta<unknown>;
|
|
2579
5813
|
};
|
|
2580
5814
|
};
|
|
2581
5815
|
} & {
|
|
@@ -2599,7 +5833,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2599
5833
|
} & {
|
|
2600
5834
|
context: {
|
|
2601
5835
|
meta: {
|
|
2602
|
-
listWorkflowVersions: PluginMeta
|
|
5836
|
+
listWorkflowVersions: PluginMeta<unknown>;
|
|
2603
5837
|
};
|
|
2604
5838
|
};
|
|
2605
5839
|
} & {
|
|
@@ -2620,7 +5854,98 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2620
5854
|
} & {
|
|
2621
5855
|
context: {
|
|
2622
5856
|
meta: {
|
|
2623
|
-
getWorkflowVersion: PluginMeta
|
|
5857
|
+
getWorkflowVersion: PluginMeta<unknown>;
|
|
5858
|
+
};
|
|
5859
|
+
};
|
|
5860
|
+
} & {
|
|
5861
|
+
listWorkflowRuns: (options?: ({
|
|
5862
|
+
workflow: string;
|
|
5863
|
+
pageSize?: number | undefined;
|
|
5864
|
+
cursor?: string | undefined;
|
|
5865
|
+
maxItems?: number | undefined;
|
|
5866
|
+
} & {
|
|
5867
|
+
cursor?: string;
|
|
5868
|
+
pageSize?: number;
|
|
5869
|
+
maxItems?: number;
|
|
5870
|
+
}) | undefined) => PaginatedSdkResult<{
|
|
5871
|
+
id: string;
|
|
5872
|
+
trigger_id: string | null;
|
|
5873
|
+
durable_run_id: string | null;
|
|
5874
|
+
workflow_version_id: string | null;
|
|
5875
|
+
status: string;
|
|
5876
|
+
input: unknown;
|
|
5877
|
+
output: unknown;
|
|
5878
|
+
error: unknown;
|
|
5879
|
+
created_at: string;
|
|
5880
|
+
updated_at: string;
|
|
5881
|
+
}>;
|
|
5882
|
+
} & {
|
|
5883
|
+
context: {
|
|
5884
|
+
meta: {
|
|
5885
|
+
listWorkflowRuns: PluginMeta<unknown>;
|
|
5886
|
+
};
|
|
5887
|
+
};
|
|
5888
|
+
} & {
|
|
5889
|
+
getWorkflowRun: (options?: {
|
|
5890
|
+
run: string;
|
|
5891
|
+
workflow?: string | undefined;
|
|
5892
|
+
} | undefined) => Promise<{
|
|
5893
|
+
data: {
|
|
5894
|
+
id: string;
|
|
5895
|
+
trigger_id: string | null;
|
|
5896
|
+
durable_run_id: string | null;
|
|
5897
|
+
workflow_version_id: string | null;
|
|
5898
|
+
status: string;
|
|
5899
|
+
input: unknown;
|
|
5900
|
+
output: unknown;
|
|
5901
|
+
error: unknown;
|
|
5902
|
+
created_at: string;
|
|
5903
|
+
updated_at: string;
|
|
5904
|
+
};
|
|
5905
|
+
}>;
|
|
5906
|
+
} & {
|
|
5907
|
+
context: {
|
|
5908
|
+
meta: {
|
|
5909
|
+
getWorkflowRun: PluginMeta<unknown>;
|
|
5910
|
+
};
|
|
5911
|
+
};
|
|
5912
|
+
} & {
|
|
5913
|
+
getTriggerRun: (options?: {
|
|
5914
|
+
trigger: string;
|
|
5915
|
+
} | undefined) => Promise<{
|
|
5916
|
+
data: {
|
|
5917
|
+
id: string;
|
|
5918
|
+
durable_run_id: string | null;
|
|
5919
|
+
workflow_version_id: string | null;
|
|
5920
|
+
status: string;
|
|
5921
|
+
input: unknown;
|
|
5922
|
+
output: unknown;
|
|
5923
|
+
error: unknown;
|
|
5924
|
+
created_at: string;
|
|
5925
|
+
updated_at: string;
|
|
5926
|
+
};
|
|
5927
|
+
}>;
|
|
5928
|
+
} & {
|
|
5929
|
+
context: {
|
|
5930
|
+
meta: {
|
|
5931
|
+
getTriggerRun: PluginMeta<unknown>;
|
|
5932
|
+
};
|
|
5933
|
+
};
|
|
5934
|
+
} & {
|
|
5935
|
+
triggerWorkflow: (options?: {
|
|
5936
|
+
workflow: string;
|
|
5937
|
+
input?: unknown;
|
|
5938
|
+
} | undefined) => Promise<{
|
|
5939
|
+
data: {
|
|
5940
|
+
workflow: string;
|
|
5941
|
+
status: number;
|
|
5942
|
+
body: unknown;
|
|
5943
|
+
};
|
|
5944
|
+
}>;
|
|
5945
|
+
} & {
|
|
5946
|
+
context: {
|
|
5947
|
+
meta: {
|
|
5948
|
+
triggerWorkflow: PluginMeta<unknown>;
|
|
2624
5949
|
};
|
|
2625
5950
|
};
|
|
2626
5951
|
} & {
|
|
@@ -2669,10 +5994,11 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2669
5994
|
} & {
|
|
2670
5995
|
context: {
|
|
2671
5996
|
meta: {
|
|
2672
|
-
getProfile: PluginMeta
|
|
5997
|
+
getProfile: PluginMeta<unknown>;
|
|
2673
5998
|
};
|
|
2674
5999
|
};
|
|
2675
6000
|
}>;
|
|
2676
|
-
|
|
6001
|
+
interface ZapierSdk extends ReturnType<typeof createZapierSdk> {
|
|
6002
|
+
}
|
|
2677
6003
|
|
|
2678
|
-
export { ActionEntry, AddActionEntryOptions, AddActionEntryResult, ApiClient, DrainTriggerInboxOptions, DynamicResolver, EventEmissionContext, FieldsetItem, Manifest, PaginatedSdkResult, PluginMeta, PositionalMetadata, ResolvedAppLocator, UpdateManifestEntryOptions, UpdateManifestEntryResult, WatchTriggerInboxOptions, WithAddPlugin, ZapierFetchInitOptions, type ZapierSdk, ZapierSdkApps, type ZapierSdkOptions, createZapierSdk, findManifestEntry, readManifestFromFile };
|
|
6004
|
+
export { ActionEntry, AddActionEntryOptions, AddActionEntryResult, ApiClient, DrainTriggerInboxOptions, DynamicResolver, EventEmissionContext, FieldsetItem, Manifest, OutputFormatter, PaginatedSdkResult, PluginMeta, PositionalMetadata, ResolvedAppLocator, UpdateManifestEntryOptions, UpdateManifestEntryResult, WatchTriggerInboxOptions, WithAddPlugin, ZapierFetchInitOptions, type ZapierSdk, ZapierSdkApps, type ZapierSdkOptions, createZapierSdk, createZapierSdkStack, findManifestEntry, readManifestFromFile };
|