@zapier/zapier-sdk 0.65.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 +41 -0
- package/README.md +64 -34
- 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 +1598 -1323
- package/dist/experimental.d.mts +3476 -224
- package/dist/experimental.d.ts +3508 -256
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +117 -87
- package/dist/experimental.mjs +1585 -1322
- 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-JhNxS_mq.d.mts → index-Dh0b5NAY.d.mts} +13207 -7904
- package/dist/{index-JhNxS_mq.d.ts → index-Dh0b5NAY.d.ts} +13207 -7904
- package/dist/index.cjs +1729 -1469
- 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 +1716 -1468
- 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 +2 -2
- package/dist/plugins/codeSubstrate/getTriggerRun/index.js +1 -1
- 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 +55 -2
- package/dist/plugins/codeSubstrate/getWorkflowRun/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getWorkflowRun/index.js +1 -1
- 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 +28 -3
- package/dist/plugins/codeSubstrate/listWorkflowRuns/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listWorkflowRuns/index.js +1 -1
- 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/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 +3 -2
- package/dist/resolvers/workflowRunId.d.ts.map +1 -1
- package/dist/resolvers/workflowRunId.js +5 -5
- 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
|
@@ -5,9 +5,8 @@
|
|
|
5
5
|
* `listActionInputFieldChoices`, `getActionInputFieldsSchema`) to
|
|
6
6
|
* disambiguate from the trigger-side variants. The unprefixed names
|
|
7
7
|
* stay exported here as deprecated aliases that delegate to the
|
|
8
|
-
* renamed implementations, so existing callers keep working.
|
|
9
|
-
*
|
|
10
|
-
* hide them.
|
|
8
|
+
* renamed implementations, so existing callers keep working. Each carries
|
|
9
|
+
* a `deprecation` field so generated docs and CLI help hide them.
|
|
11
10
|
*
|
|
12
11
|
* @deprecated Use the action-prefixed equivalents:
|
|
13
12
|
* - listInputFields -> listActionInputFields
|
|
@@ -44,7 +43,7 @@ export declare const listInputFieldsDeprecatedPlugin: (sdk: {
|
|
|
44
43
|
cursor?: string;
|
|
45
44
|
pageSize?: number;
|
|
46
45
|
maxItems?: number;
|
|
47
|
-
}) | undefined) => import("
|
|
46
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
48
47
|
key: string;
|
|
49
48
|
type: "input_field";
|
|
50
49
|
default_value: string;
|
|
@@ -68,12 +67,12 @@ export declare const listInputFieldsDeprecatedPlugin: (sdk: {
|
|
|
68
67
|
} & {
|
|
69
68
|
context: {
|
|
70
69
|
meta: {
|
|
71
|
-
listActionInputFields: import("
|
|
70
|
+
listActionInputFields: import("kitcore").PluginMeta<unknown>;
|
|
72
71
|
};
|
|
73
72
|
};
|
|
74
73
|
} & {
|
|
75
74
|
context: {
|
|
76
|
-
meta: Record<string, import("
|
|
75
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
77
76
|
};
|
|
78
77
|
}) => {
|
|
79
78
|
listInputFields: (options?: (({
|
|
@@ -102,7 +101,7 @@ export declare const listInputFieldsDeprecatedPlugin: (sdk: {
|
|
|
102
101
|
cursor?: string;
|
|
103
102
|
pageSize?: number;
|
|
104
103
|
maxItems?: number;
|
|
105
|
-
}) | undefined) => import("
|
|
104
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
106
105
|
key: string;
|
|
107
106
|
type: "input_field";
|
|
108
107
|
default_value: string;
|
|
@@ -127,11 +126,14 @@ export declare const listInputFieldsDeprecatedPlugin: (sdk: {
|
|
|
127
126
|
meta: {
|
|
128
127
|
listInputFields: {
|
|
129
128
|
categories: string[];
|
|
129
|
+
deprecation: {
|
|
130
|
+
message: string;
|
|
131
|
+
};
|
|
130
132
|
type: "list";
|
|
131
133
|
itemType: string;
|
|
132
134
|
inputSchema: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
133
135
|
app: import("zod").ZodString & {
|
|
134
|
-
_def: import("zod/v4/core").$ZodStringDef & import("
|
|
136
|
+
_def: import("zod/v4/core").$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
135
137
|
};
|
|
136
138
|
actionType: import("zod").ZodEnum<{
|
|
137
139
|
filter: "filter";
|
|
@@ -144,7 +146,7 @@ export declare const listInputFieldsDeprecatedPlugin: (sdk: {
|
|
|
144
146
|
search_or_write: "search_or_write";
|
|
145
147
|
}>;
|
|
146
148
|
action: import("zod").ZodString & {
|
|
147
|
-
_def: import("zod/v4/core").$ZodStringDef & import("
|
|
149
|
+
_def: import("zod/v4/core").$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
148
150
|
};
|
|
149
151
|
connection: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
150
152
|
connectionId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>>;
|
|
@@ -155,7 +157,7 @@ export declare const listInputFieldsDeprecatedPlugin: (sdk: {
|
|
|
155
157
|
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
156
158
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
157
159
|
appKey: import("zod").ZodString & {
|
|
158
|
-
_def: import("zod/v4/core").$ZodStringDef & import("
|
|
160
|
+
_def: import("zod/v4/core").$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
159
161
|
};
|
|
160
162
|
actionType: import("zod").ZodEnum<{
|
|
161
163
|
filter: "filter";
|
|
@@ -197,6 +199,27 @@ export declare const listInputFieldsDeprecatedPlugin: (sdk: {
|
|
|
197
199
|
description: import("zod").ZodString;
|
|
198
200
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
199
201
|
}, import("zod/v4/core").$strip>, import("zod").ZodType<import("../..").FieldsetItem, unknown, import("zod/v4/core").$ZodTypeInternals<import("../..").FieldsetItem, unknown>>]>;
|
|
202
|
+
formatter: import("kitcore").OutputFormatter<unknown, {
|
|
203
|
+
key: string;
|
|
204
|
+
type: "input_field";
|
|
205
|
+
default_value: string;
|
|
206
|
+
depends_on: string[];
|
|
207
|
+
description: string;
|
|
208
|
+
invalidates_input_fields: boolean;
|
|
209
|
+
is_required: boolean;
|
|
210
|
+
placeholder: string;
|
|
211
|
+
title: string;
|
|
212
|
+
value_type: string;
|
|
213
|
+
format?: string | undefined;
|
|
214
|
+
items?: {
|
|
215
|
+
type: string;
|
|
216
|
+
} | undefined;
|
|
217
|
+
} | {
|
|
218
|
+
key: string;
|
|
219
|
+
type: "info_field";
|
|
220
|
+
description: string;
|
|
221
|
+
title?: string | undefined;
|
|
222
|
+
} | import("../..").FieldsetItem, Record<string, unknown>, unknown>;
|
|
200
223
|
defaultPageSize: number;
|
|
201
224
|
};
|
|
202
225
|
};
|
|
@@ -237,7 +260,7 @@ export declare const listInputFieldChoicesDeprecatedPlugin: (sdk: {
|
|
|
237
260
|
cursor?: string;
|
|
238
261
|
pageSize?: number;
|
|
239
262
|
maxItems?: number;
|
|
240
|
-
}) | undefined) => import("
|
|
263
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
241
264
|
key?: string | undefined;
|
|
242
265
|
label?: string | undefined;
|
|
243
266
|
sample?: string | undefined;
|
|
@@ -246,12 +269,12 @@ export declare const listInputFieldChoicesDeprecatedPlugin: (sdk: {
|
|
|
246
269
|
} & {
|
|
247
270
|
context: {
|
|
248
271
|
meta: {
|
|
249
|
-
listActionInputFieldChoices: import("
|
|
272
|
+
listActionInputFieldChoices: import("kitcore").PluginMeta<unknown>;
|
|
250
273
|
};
|
|
251
274
|
};
|
|
252
275
|
} & {
|
|
253
276
|
context: {
|
|
254
|
-
meta: Record<string, import("
|
|
277
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
255
278
|
};
|
|
256
279
|
}) => {
|
|
257
280
|
listInputFieldChoices: (options?: (({
|
|
@@ -284,7 +307,7 @@ export declare const listInputFieldChoicesDeprecatedPlugin: (sdk: {
|
|
|
284
307
|
cursor?: string;
|
|
285
308
|
pageSize?: number;
|
|
286
309
|
maxItems?: number;
|
|
287
|
-
}) | undefined) => import("
|
|
310
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
288
311
|
key?: string | undefined;
|
|
289
312
|
label?: string | undefined;
|
|
290
313
|
sample?: string | undefined;
|
|
@@ -294,11 +317,14 @@ export declare const listInputFieldChoicesDeprecatedPlugin: (sdk: {
|
|
|
294
317
|
meta: {
|
|
295
318
|
listInputFieldChoices: {
|
|
296
319
|
categories: string[];
|
|
320
|
+
deprecation: {
|
|
321
|
+
message: string;
|
|
322
|
+
};
|
|
297
323
|
type: "list";
|
|
298
324
|
itemType: string;
|
|
299
325
|
inputSchema: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
300
326
|
app: import("zod").ZodString & {
|
|
301
|
-
_def: import("zod/v4/core").$ZodStringDef & import("
|
|
327
|
+
_def: import("zod/v4/core").$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
302
328
|
};
|
|
303
329
|
actionType: import("zod").ZodEnum<{
|
|
304
330
|
filter: "filter";
|
|
@@ -311,10 +337,10 @@ export declare const listInputFieldChoicesDeprecatedPlugin: (sdk: {
|
|
|
311
337
|
search_or_write: "search_or_write";
|
|
312
338
|
}>;
|
|
313
339
|
action: import("zod").ZodString & {
|
|
314
|
-
_def: import("zod/v4/core").$ZodStringDef & import("
|
|
340
|
+
_def: import("zod/v4/core").$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
315
341
|
};
|
|
316
342
|
inputField: import("zod").ZodString & {
|
|
317
|
-
_def: import("zod/v4/core").$ZodStringDef & import("
|
|
343
|
+
_def: import("zod/v4/core").$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
318
344
|
};
|
|
319
345
|
connection: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
320
346
|
connectionId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>>;
|
|
@@ -326,7 +352,7 @@ export declare const listInputFieldChoicesDeprecatedPlugin: (sdk: {
|
|
|
326
352
|
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
327
353
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
328
354
|
appKey: import("zod").ZodString & {
|
|
329
|
-
_def: import("zod/v4/core").$ZodStringDef & import("
|
|
355
|
+
_def: import("zod/v4/core").$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
330
356
|
};
|
|
331
357
|
actionType: import("zod").ZodEnum<{
|
|
332
358
|
filter: "filter";
|
|
@@ -355,6 +381,12 @@ export declare const listInputFieldChoicesDeprecatedPlugin: (sdk: {
|
|
|
355
381
|
sample: import("zod").ZodOptional<import("zod").ZodString>;
|
|
356
382
|
value: import("zod").ZodOptional<import("zod").ZodString>;
|
|
357
383
|
}, import("zod/v4/core").$strip>;
|
|
384
|
+
formatter: import("kitcore").OutputFormatter<unknown, {
|
|
385
|
+
key?: string | undefined;
|
|
386
|
+
label?: string | undefined;
|
|
387
|
+
sample?: string | undefined;
|
|
388
|
+
value?: string | undefined;
|
|
389
|
+
}, Record<string, unknown>, unknown>;
|
|
358
390
|
defaultPageSize: number;
|
|
359
391
|
};
|
|
360
392
|
};
|
|
@@ -387,12 +419,12 @@ export declare const getInputFieldsSchemaDeprecatedPlugin: (sdk: {
|
|
|
387
419
|
} & {
|
|
388
420
|
context: {
|
|
389
421
|
meta: {
|
|
390
|
-
getActionInputFieldsSchema: import("
|
|
422
|
+
getActionInputFieldsSchema: import("kitcore").PluginMeta<unknown>;
|
|
391
423
|
};
|
|
392
424
|
};
|
|
393
425
|
} & {
|
|
394
426
|
context: {
|
|
395
|
-
meta: Record<string, import("
|
|
427
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
396
428
|
};
|
|
397
429
|
}) => {
|
|
398
430
|
getInputFieldsSchema: (options?: {
|
|
@@ -418,10 +450,13 @@ export declare const getInputFieldsSchemaDeprecatedPlugin: (sdk: {
|
|
|
418
450
|
meta: {
|
|
419
451
|
getInputFieldsSchema: {
|
|
420
452
|
categories: string[];
|
|
453
|
+
deprecation: {
|
|
454
|
+
message: string;
|
|
455
|
+
};
|
|
421
456
|
type: "function";
|
|
422
457
|
inputSchema: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
423
458
|
app: import("zod").ZodString & {
|
|
424
|
-
_def: import("zod/v4/core").$ZodStringDef & import("
|
|
459
|
+
_def: import("zod/v4/core").$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
425
460
|
};
|
|
426
461
|
actionType: import("zod").ZodEnum<{
|
|
427
462
|
filter: "filter";
|
|
@@ -434,7 +469,7 @@ export declare const getInputFieldsSchemaDeprecatedPlugin: (sdk: {
|
|
|
434
469
|
search_or_write: "search_or_write";
|
|
435
470
|
}>;
|
|
436
471
|
action: import("zod").ZodString & {
|
|
437
|
-
_def: import("zod/v4/core").$ZodStringDef & import("
|
|
472
|
+
_def: import("zod/v4/core").$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
438
473
|
};
|
|
439
474
|
connection: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
440
475
|
connectionId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>>;
|
|
@@ -442,7 +477,7 @@ export declare const getInputFieldsSchemaDeprecatedPlugin: (sdk: {
|
|
|
442
477
|
inputs: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
443
478
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
444
479
|
appKey: import("zod").ZodString & {
|
|
445
|
-
_def: import("zod/v4/core").$ZodStringDef & import("
|
|
480
|
+
_def: import("zod/v4/core").$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
446
481
|
};
|
|
447
482
|
actionType: import("zod").ZodEnum<{
|
|
448
483
|
filter: "filter";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputFields.d.ts","sourceRoot":"","sources":["../../../src/plugins/deprecated/inputFields.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"inputFields.d.ts","sourceRoot":"","sources":["../../../src/plugins/deprecated/inputFields.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAiBH;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkB3C,CAAC;AAEF,MAAM,MAAM,uCAAuC,GAAG,UAAU,CAC9D,OAAO,+BAA+B,CACvC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBjD,CAAC;AAEF,MAAM,MAAM,6CAA6C,GAAG,UAAU,CACpE,OAAO,qCAAqC,CAC7C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAchD,CAAC;AAEF,MAAM,MAAM,4CAA4C,GAAG,UAAU,CACnE,OAAO,oCAAoC,CAC5C,CAAC"}
|
|
@@ -5,20 +5,21 @@
|
|
|
5
5
|
* `listActionInputFieldChoices`, `getActionInputFieldsSchema`) to
|
|
6
6
|
* disambiguate from the trigger-side variants. The unprefixed names
|
|
7
7
|
* stay exported here as deprecated aliases that delegate to the
|
|
8
|
-
* renamed implementations, so existing callers keep working.
|
|
9
|
-
*
|
|
10
|
-
* hide them.
|
|
8
|
+
* renamed implementations, so existing callers keep working. Each carries
|
|
9
|
+
* a `deprecation` field so generated docs and CLI help hide them.
|
|
11
10
|
*
|
|
12
11
|
* @deprecated Use the action-prefixed equivalents:
|
|
13
12
|
* - listInputFields -> listActionInputFields
|
|
14
13
|
* - listInputFieldChoices -> listActionInputFieldChoices
|
|
15
14
|
* - getInputFieldsSchema -> getActionInputFieldsSchema
|
|
16
15
|
*/
|
|
17
|
-
import { definePlugin } from "
|
|
16
|
+
import { definePlugin } from "kitcore";
|
|
18
17
|
import { ListActionInputFieldsInputSchema } from "../listActionInputFields/schemas";
|
|
19
18
|
import { ListActionInputFieldChoicesInputSchema, InputFieldChoiceItemSchema, } from "../listActionInputFieldChoices/schemas";
|
|
20
19
|
import { GetActionInputFieldsSchemaInputSchema } from "../getActionInputFieldsSchema/schemas";
|
|
21
20
|
import { RootFieldItemSchema } from "../../schemas/Field";
|
|
21
|
+
import { rootFieldItemFormatter } from "../../formatters/field";
|
|
22
|
+
import { inputFieldChoiceItemFormatter } from "../../formatters/inputFieldChoice";
|
|
22
23
|
import { DEFAULT_PAGE_SIZE } from "../../constants";
|
|
23
24
|
/**
|
|
24
25
|
* @deprecated Use listActionInputFields instead.
|
|
@@ -28,11 +29,13 @@ export const listInputFieldsDeprecatedPlugin = definePlugin((sdk) => ({
|
|
|
28
29
|
context: {
|
|
29
30
|
meta: {
|
|
30
31
|
listInputFields: {
|
|
31
|
-
categories: ["action"
|
|
32
|
+
categories: ["action"],
|
|
33
|
+
deprecation: { message: "Use listActionInputFields instead." },
|
|
32
34
|
type: "list",
|
|
33
35
|
itemType: "RootField",
|
|
34
36
|
inputSchema: ListActionInputFieldsInputSchema,
|
|
35
37
|
outputSchema: RootFieldItemSchema,
|
|
38
|
+
formatter: rootFieldItemFormatter,
|
|
36
39
|
defaultPageSize: DEFAULT_PAGE_SIZE,
|
|
37
40
|
},
|
|
38
41
|
},
|
|
@@ -46,11 +49,15 @@ export const listInputFieldChoicesDeprecatedPlugin = definePlugin((sdk) => ({
|
|
|
46
49
|
context: {
|
|
47
50
|
meta: {
|
|
48
51
|
listInputFieldChoices: {
|
|
49
|
-
categories: ["action"
|
|
52
|
+
categories: ["action"],
|
|
53
|
+
deprecation: {
|
|
54
|
+
message: "Use listActionInputFieldChoices instead.",
|
|
55
|
+
},
|
|
50
56
|
type: "list",
|
|
51
57
|
itemType: "InputFieldChoiceItem",
|
|
52
58
|
inputSchema: ListActionInputFieldChoicesInputSchema,
|
|
53
59
|
outputSchema: InputFieldChoiceItemSchema,
|
|
60
|
+
formatter: inputFieldChoiceItemFormatter,
|
|
54
61
|
defaultPageSize: DEFAULT_PAGE_SIZE,
|
|
55
62
|
},
|
|
56
63
|
},
|
|
@@ -64,7 +71,8 @@ export const getInputFieldsSchemaDeprecatedPlugin = definePlugin((sdk) => ({
|
|
|
64
71
|
context: {
|
|
65
72
|
meta: {
|
|
66
73
|
getInputFieldsSchema: {
|
|
67
|
-
categories: ["action"
|
|
74
|
+
categories: ["action"],
|
|
75
|
+
deprecation: { message: "Use getActionInputFieldsSchema instead." },
|
|
68
76
|
type: "function",
|
|
69
77
|
inputSchema: GetActionInputFieldsSchemaInputSchema,
|
|
70
78
|
},
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { OnMethodEnd } from "kitcore";
|
|
2
|
+
import type { MethodCalledEventData } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* Build the `onMethodEnd` hook that translates the toolkit-generic
|
|
5
|
+
* end-of-call event into the Zapier-shaped `MethodCalledEvent` payload that
|
|
6
|
+
* `emitMethodCalled` accepts. Bridges the framework's neutral hook surface
|
|
7
|
+
* to the SDK's transport-specific event schema.
|
|
8
|
+
*/
|
|
9
|
+
export declare function makeMethodEndHook(emitMethodCalled: (data: MethodCalledEventData) => void): OnMethodEnd;
|
|
10
|
+
//# sourceMappingURL=event-emission-hook.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event-emission-hook.d.ts","sourceRoot":"","sources":["../../../src/plugins/eventEmission/event-emission-hook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAuBrD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,gBAAgB,EAAE,CAAC,IAAI,EAAE,qBAAqB,KAAK,IAAI,GACtD,WAAW,CAoBb"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getMethodMetadata } from "./method-metadata";
|
|
2
|
+
/**
|
|
3
|
+
* Compute the historical `argument_count` telemetry field. Methods built
|
|
4
|
+
* through `createPluginMethod` pass a single options object; we count its
|
|
5
|
+
* fields. Variadic callers (e.g. fetch) pass positional args; we count the
|
|
6
|
+
* defined ones.
|
|
7
|
+
*/
|
|
8
|
+
function computeArgumentCount(args) {
|
|
9
|
+
if (args.length === 1) {
|
|
10
|
+
const arg0 = args[0];
|
|
11
|
+
if (arg0 !== null &&
|
|
12
|
+
typeof arg0 === "object" &&
|
|
13
|
+
!Array.isArray(arg0) &&
|
|
14
|
+
Object.getPrototypeOf(arg0) === Object.prototype) {
|
|
15
|
+
return Object.keys(arg0).length;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return args.filter((a) => a !== undefined).length;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Build the `onMethodEnd` hook that translates the toolkit-generic
|
|
22
|
+
* end-of-call event into the Zapier-shaped `MethodCalledEvent` payload that
|
|
23
|
+
* `emitMethodCalled` accepts. Bridges the framework's neutral hook surface
|
|
24
|
+
* to the SDK's transport-specific event schema.
|
|
25
|
+
*/
|
|
26
|
+
export function makeMethodEndHook(emitMethodCalled) {
|
|
27
|
+
return ({ methodName, args, isPaginated, depth, durationMs, error }) => {
|
|
28
|
+
// Only top-level invocations emit telemetry; nested SDK-method
|
|
29
|
+
// calls would otherwise produce duplicate `MethodCalledEvent`s for
|
|
30
|
+
// the same logical work.
|
|
31
|
+
if (depth > 0)
|
|
32
|
+
return;
|
|
33
|
+
const metadata = getMethodMetadata();
|
|
34
|
+
emitMethodCalled({
|
|
35
|
+
method_name: methodName,
|
|
36
|
+
execution_duration_ms: durationMs,
|
|
37
|
+
success_flag: !error,
|
|
38
|
+
error_message: error?.message ?? null,
|
|
39
|
+
error_type: error?.constructor.name ?? null,
|
|
40
|
+
argument_count: computeArgumentCount(args),
|
|
41
|
+
is_paginated: isPaginated,
|
|
42
|
+
selected_api: metadata?.selectedApi ?? null,
|
|
43
|
+
operation_type: metadata?.operationType ?? null,
|
|
44
|
+
operation_key: metadata?.operationKey ?? null,
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type { BaseSdkOptions } from "../../types/sdk";
|
|
8
8
|
import type { BaseEvent } from "../../types/telemetry-events";
|
|
9
|
+
import type { OnMethodEnd } from "kitcore";
|
|
9
10
|
import type { EventTransport, TransportConfig } from "./transport";
|
|
10
|
-
import type { MethodCalledEventData } from "./types";
|
|
11
11
|
/**
|
|
12
12
|
* Removes all registered process event listeners.
|
|
13
13
|
* Useful for test cleanup to prevent listener accumulation.
|
|
@@ -24,10 +24,12 @@ export interface EventEmissionContext {
|
|
|
24
24
|
config: EventEmissionConfig;
|
|
25
25
|
emit<T extends any>(subject: string, event: T): void;
|
|
26
26
|
createBaseEvent(): Promise<BaseEvent>;
|
|
27
|
-
emitMethodCalled(data: MethodCalledEventData): void;
|
|
28
27
|
flush(): Promise<void>;
|
|
29
28
|
close(exitCode?: number): Promise<void>;
|
|
30
29
|
};
|
|
30
|
+
hooks: {
|
|
31
|
+
onMethodEnd: OnMethodEnd;
|
|
32
|
+
};
|
|
31
33
|
}
|
|
32
34
|
export declare const eventEmissionPlugin: (sdk: {
|
|
33
35
|
context: {
|
|
@@ -35,7 +37,7 @@ export declare const eventEmissionPlugin: (sdk: {
|
|
|
35
37
|
};
|
|
36
38
|
} & {
|
|
37
39
|
context: {
|
|
38
|
-
meta: Record<string, import("
|
|
40
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
39
41
|
};
|
|
40
42
|
}) => {
|
|
41
43
|
context: EventEmissionContext;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/eventEmission/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/eventEmission/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAqDnE;;;GAGG;AACH,wBAAgB,qBAAqB,SAEpC;AAGD,MAAM,WAAW,mBAAmB;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,WAAW,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;CACrC;AAGD,MAAM,WAAW,oBAAoB;IACnC,aAAa,EAAE;QACb,SAAS,EAAE,cAAc,CAAC;QAC1B,MAAM,EAAE,mBAAmB,CAAC;QAE5B,IAAI,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC;QAErD,eAAe,IAAI,OAAO,CAAC,SAAS,CAAC,CAAC;QAEtC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;QAIvB,KAAK,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;KACzC,CAAC;IACF,KAAK,EAAE;QACL,WAAW,EAAE,WAAW,CAAC;KAC1B,CAAC;CACH;AAyFD,eAAO,MAAM,mBAAmB;aAEnB;QAAE,OAAO,CAAC,EAAE,cAAc,CAAA;KAAE;;;;;;aACxB,oBAAoB;CA6VpC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAG3E,YAAY,EACV,YAAY,EACZ,6BAA6B,EAC7B,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,8BAA8B,EAC9B,0BAA0B,EAC1B,eAAe,EACf,eAAe,EACf,sBAAsB,GACvB,MAAM,YAAY,CAAC;AACpB,YAAY,EACV,SAAS,EACT,iBAAiB,GAClB,MAAM,8BAA8B,CAAC;AACtC,cAAc,SAAS,CAAC"}
|
|
@@ -4,12 +4,13 @@
|
|
|
4
4
|
* Provides silent telemetry event emission capability to the SDK.
|
|
5
5
|
* All events are emitted asynchronously and failures are silently handled.
|
|
6
6
|
*/
|
|
7
|
-
import { definePlugin } from "
|
|
7
|
+
import { definePlugin } from "kitcore";
|
|
8
8
|
import { createTransport } from "./transport";
|
|
9
9
|
import { generateEventId, getCurrentTimestamp, getReleaseId } from "./utils";
|
|
10
10
|
import { extractUserIdsFromJwt } from "../../api/auth";
|
|
11
11
|
import { resolveAuthToken } from "../../auth";
|
|
12
12
|
import { buildApplicationLifecycleEvent, buildErrorEventWithContext, buildMethodCalledEvent, } from "./builders";
|
|
13
|
+
import { makeMethodEndHook } from "./event-emission-hook";
|
|
13
14
|
import { getTrackingBaseUrl } from "../../utils/url-utils";
|
|
14
15
|
// Maximum time to wait for telemetry emission before allowing process to exit
|
|
15
16
|
const TELEMETRY_EMIT_TIMEOUT_MS = 300;
|
|
@@ -154,6 +155,7 @@ export const eventEmissionPlugin = definePlugin((sdk) => {
|
|
|
154
155
|
}
|
|
155
156
|
// If disabled, return noop implementations
|
|
156
157
|
if (!config.enabled) {
|
|
158
|
+
const noopEmitMethodCalled = () => { };
|
|
157
159
|
return {
|
|
158
160
|
context: {
|
|
159
161
|
eventEmission: {
|
|
@@ -170,10 +172,12 @@ export const eventEmissionPlugin = definePlugin((sdk) => {
|
|
|
170
172
|
visitor_id: null,
|
|
171
173
|
correlation_id: null,
|
|
172
174
|
}),
|
|
173
|
-
emitMethodCalled: () => { },
|
|
174
175
|
flush: async () => { },
|
|
175
176
|
close: async () => { },
|
|
176
177
|
},
|
|
178
|
+
hooks: {
|
|
179
|
+
onMethodEnd: makeMethodEndHook(noopEmitMethodCalled),
|
|
180
|
+
},
|
|
177
181
|
},
|
|
178
182
|
};
|
|
179
183
|
}
|
|
@@ -350,6 +354,13 @@ export const eventEmissionPlugin = definePlugin((sdk) => {
|
|
|
350
354
|
await emitWithTimeout(transport, APPLICATION_LIFECYCLE_EVENT_SUBJECT, exitEvent);
|
|
351
355
|
removeExistingListeners();
|
|
352
356
|
};
|
|
357
|
+
const emitMethodCalled = (data) => {
|
|
358
|
+
const event = {
|
|
359
|
+
...buildMethodCalledEvent(data),
|
|
360
|
+
call_context: config.callContext ?? "sdk",
|
|
361
|
+
};
|
|
362
|
+
trackEmission(silentEmit(transport, METHOD_CALLED_EVENT_SUBJECT, event, getUserContext));
|
|
363
|
+
};
|
|
353
364
|
return {
|
|
354
365
|
context: {
|
|
355
366
|
eventEmission: {
|
|
@@ -359,16 +370,12 @@ export const eventEmissionPlugin = definePlugin((sdk) => {
|
|
|
359
370
|
trackEmission(silentEmit(transport, subject, event, getUserContext));
|
|
360
371
|
},
|
|
361
372
|
createBaseEvent: createBaseEventHelper,
|
|
362
|
-
emitMethodCalled: (data) => {
|
|
363
|
-
const event = {
|
|
364
|
-
...buildMethodCalledEvent(data),
|
|
365
|
-
call_context: config.callContext ?? "sdk",
|
|
366
|
-
};
|
|
367
|
-
trackEmission(silentEmit(transport, METHOD_CALLED_EVENT_SUBJECT, event, getUserContext));
|
|
368
|
-
},
|
|
369
373
|
flush,
|
|
370
374
|
close,
|
|
371
375
|
},
|
|
376
|
+
hooks: {
|
|
377
|
+
onMethodEnd: makeMethodEndHook(emitMethodCalled),
|
|
378
|
+
},
|
|
372
379
|
},
|
|
373
380
|
};
|
|
374
381
|
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zapier-specific method metadata stored on the toolkit's per-call scope.
|
|
3
|
+
* Plugins set fields here during a method's execution; eventEmission's
|
|
4
|
+
* `onMethodEnd` hook reads them out when emitting the `MethodCalledEvent`.
|
|
5
|
+
*
|
|
6
|
+
* The toolkit owns the AsyncLocalStorage scope object; this module just
|
|
7
|
+
* reserves the `methodMetadata` key on it for Zapier's purposes.
|
|
8
|
+
*/
|
|
9
|
+
export interface MethodMetadata {
|
|
10
|
+
selectedApi?: string | null;
|
|
11
|
+
operationType?: string | null;
|
|
12
|
+
operationKey?: string | null;
|
|
13
|
+
}
|
|
14
|
+
export declare function setMethodMetadata(metadata: MethodMetadata): void;
|
|
15
|
+
export declare function getMethodMetadata(): MethodMetadata | undefined;
|
|
16
|
+
//# sourceMappingURL=method-metadata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"method-metadata.d.ts","sourceRoot":"","sources":["../../../src/plugins/eventEmission/method-metadata.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,MAAM,WAAW,cAAc;IAC7B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI,CAKhE;AAED,wBAAgB,iBAAiB,IAAI,cAAc,GAAG,SAAS,CAE9D"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zapier-specific method metadata stored on the toolkit's per-call scope.
|
|
3
|
+
* Plugins set fields here during a method's execution; eventEmission's
|
|
4
|
+
* `onMethodEnd` hook reads them out when emitting the `MethodCalledEvent`.
|
|
5
|
+
*
|
|
6
|
+
* The toolkit owns the AsyncLocalStorage scope object; this module just
|
|
7
|
+
* reserves the `methodMetadata` key on it for Zapier's purposes.
|
|
8
|
+
*/
|
|
9
|
+
import { getCurrentScope } from "kitcore";
|
|
10
|
+
const SCOPE_KEY = "methodMetadata";
|
|
11
|
+
export function setMethodMetadata(metadata) {
|
|
12
|
+
const scope = getCurrentScope();
|
|
13
|
+
if (!scope)
|
|
14
|
+
return;
|
|
15
|
+
const existing = scope[SCOPE_KEY];
|
|
16
|
+
scope[SCOPE_KEY] = { ...existing, ...metadata };
|
|
17
|
+
}
|
|
18
|
+
export function getMethodMetadata() {
|
|
19
|
+
return getCurrentScope()?.[SCOPE_KEY];
|
|
20
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../../src/plugins/eventEmission/transport.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9D,KAAK,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACzB;AAGD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAGD,wBAAgB,mBAAmB,CAAC,MAAM,EAAE;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,cAAc,CAwDjB;AAGD,wBAAgB,sBAAsB,IAAI,cAAc,
|
|
1
|
+
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../../src/plugins/eventEmission/transport.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9D,KAAK,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACzB;AAGD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAGD,wBAAgB,mBAAmB,CAAC,MAAM,EAAE;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,cAAc,CAwDjB;AAGD,wBAAgB,sBAAsB,IAAI,cAAc,CAcvD;AAGD,wBAAgB,mBAAmB,IAAI,cAAc,CAMpD;AAGD,wBAAgB,eAAe,CAAC,MAAM,EAAE,eAAe,GAAG,cAAc,CAyBvE"}
|
|
@@ -60,7 +60,8 @@ export function createConsoleTransport() {
|
|
|
60
60
|
return {
|
|
61
61
|
async emit(subject, event) {
|
|
62
62
|
try {
|
|
63
|
-
|
|
63
|
+
// stderr: telemetry is diagnostic, not the program's data output.
|
|
64
|
+
console.error("[SDK Telemetry]", JSON.stringify({ subject, properties: event }, null, 2));
|
|
64
65
|
}
|
|
65
66
|
catch {
|
|
66
67
|
// Silent failure - never throw
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ApiClient } from "../../api";
|
|
2
2
|
import type { ConnectionsPluginProvides } from "../connections";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
+
import type { AdaptError, MethodHooks } from "kitcore";
|
|
4
5
|
export interface ZapierFetchInitOptions extends RequestInit {
|
|
5
6
|
/** @deprecated Use `connection` instead. */
|
|
6
7
|
connectionId?: string | number;
|
|
@@ -18,12 +19,14 @@ export interface ZapierFetchInitOptions extends RequestInit {
|
|
|
18
19
|
export declare const fetchPlugin: (sdk: {
|
|
19
20
|
context: {
|
|
20
21
|
api: ApiClient;
|
|
22
|
+
hooks: MethodHooks;
|
|
23
|
+
core?: {
|
|
24
|
+
adaptError?: AdaptError;
|
|
25
|
+
};
|
|
21
26
|
} & ConnectionsPluginProvides["context"];
|
|
22
|
-
} & {
|
|
23
|
-
context: import("../eventEmission").EventEmissionContext;
|
|
24
27
|
} & {
|
|
25
28
|
context: {
|
|
26
|
-
meta: Record<string, import("
|
|
29
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
27
30
|
};
|
|
28
31
|
}) => {
|
|
29
32
|
fetch: (url: string | URL, init?: ZapierFetchInitOptions) => Promise<Response>;
|
|
@@ -32,7 +35,10 @@ export declare const fetchPlugin: (sdk: {
|
|
|
32
35
|
fetch: {
|
|
33
36
|
description: string;
|
|
34
37
|
packages: string[];
|
|
35
|
-
categories:
|
|
38
|
+
categories: {
|
|
39
|
+
key: string;
|
|
40
|
+
title: string;
|
|
41
|
+
}[];
|
|
36
42
|
returnType: string;
|
|
37
43
|
inputParameters: ({
|
|
38
44
|
name: string;
|
|
@@ -43,8 +49,8 @@ export declare const fetchPlugin: (sdk: {
|
|
|
43
49
|
method: z.ZodOptional<z.ZodEnum<{
|
|
44
50
|
POST: "POST";
|
|
45
51
|
GET: "GET";
|
|
46
|
-
PUT: "PUT";
|
|
47
52
|
DELETE: "DELETE";
|
|
53
|
+
PUT: "PUT";
|
|
48
54
|
PATCH: "PATCH";
|
|
49
55
|
HEAD: "HEAD";
|
|
50
56
|
OPTIONS: "OPTIONS";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/fetch/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAMhE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/fetch/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAMhE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEvD,MAAM,WAAW,sBAAuB,SAAQ,WAAW;IACzD,4CAA4C;IAC5C,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,4CAA4C;IAC5C,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8EAA8E;IAC9E,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAgHD;;;GAGG;AACH,eAAO,MAAM,WAAW;aAEX;QACP,GAAG,EAAE,SAAS,CAAC;QACf,KAAK,EAAE,WAAW,CAAC;QACnB,IAAI,CAAC,EAAE;YAAE,UAAU,CAAC,EAAE,UAAU,CAAA;SAAE,CAAC;KACpC,GAAG,yBAAyB,CAAC,SAAS,CAAC;;;;;;iBAU/B,MAAM,GAAG,GAAG,SACV,sBAAsB,KAC5B,OAAO,CAAC,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiKzB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC"}
|