@zapier/zapier-sdk 0.65.0 → 0.68.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 +48 -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-oRnHsPn5.d.mts} +12906 -7603
- package/dist/{index-JhNxS_mq.d.ts → index-oRnHsPn5.d.ts} +12906 -7603
- 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/eventEmission/types.d.ts +1 -1
- package/dist/plugins/eventEmission/types.d.ts.map +1 -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/types/telemetry-events.d.ts +1 -1
- package/dist/types/telemetry-events.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
|
@@ -6,10 +6,10 @@ export declare const ListConnectionsQuerySchema: z.ZodObject<{
|
|
|
6
6
|
search: z.ZodOptional<z.ZodString>;
|
|
7
7
|
owner: z.ZodOptional<z.ZodString>;
|
|
8
8
|
app: z.ZodOptional<z.ZodString & {
|
|
9
|
-
_def: z.core.$ZodStringDef & import("
|
|
9
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
10
10
|
}>;
|
|
11
11
|
appKey: z.ZodOptional<z.ZodString & {
|
|
12
|
-
_def: z.core.$ZodStringDef & import("
|
|
12
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
13
13
|
}>;
|
|
14
14
|
connections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15
15
|
connectionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/manifest/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,QAAQ,EACR,aAAa,EACb,2BAA2B,EAC3B,WAAW,EACZ,MAAM,WAAW,CAAC;AAGnB,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW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,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { readFile, writeFile, resolve } from "../../utils/file-utils";
|
|
2
2
|
import { ManifestSchema, DEFAULT_CONFIG_PATH } from "./schemas";
|
|
3
|
-
import { definePlugin } from "
|
|
3
|
+
import { definePlugin } from "kitcore";
|
|
4
4
|
import { normalizeImplementationMetaToAppItem, splitVersionedKey, isSnakeCasedSlug, dashifySnakeCasedSlug, toAppLocator, isResolvedAppLocator, } from "../../utils/domain-utils";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { paginate } from "kitcore";
|
|
6
|
+
import { extractCursorFromUrl } from "../../utils/pagination";
|
|
7
7
|
import { toArrayFromAsync } from "../../utils/array-utils";
|
|
8
8
|
/**
|
|
9
9
|
* Parse manifest content from a string
|
|
@@ -103,7 +103,9 @@ async function listAppsForSlugsPage({ slugs, cursor, api, }) {
|
|
|
103
103
|
});
|
|
104
104
|
return {
|
|
105
105
|
data: implementationsEnvelope.results.map(normalizeImplementationMetaToAppItem),
|
|
106
|
-
nextCursor:
|
|
106
|
+
nextCursor: implementationsEnvelope.next
|
|
107
|
+
? extractCursorFromUrl(implementationsEnvelope.next)
|
|
108
|
+
: undefined,
|
|
107
109
|
};
|
|
108
110
|
}
|
|
109
111
|
/**
|
|
@@ -10,7 +10,10 @@ export declare const requestPlugin: (sdk: {
|
|
|
10
10
|
fetch: {
|
|
11
11
|
description: string;
|
|
12
12
|
packages: string[];
|
|
13
|
-
categories:
|
|
13
|
+
categories: {
|
|
14
|
+
key: string;
|
|
15
|
+
title: string;
|
|
16
|
+
}[];
|
|
14
17
|
returnType: string;
|
|
15
18
|
inputParameters: ({
|
|
16
19
|
name: string;
|
|
@@ -21,8 +24,8 @@ export declare const requestPlugin: (sdk: {
|
|
|
21
24
|
method: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
22
25
|
POST: "POST";
|
|
23
26
|
GET: "GET";
|
|
24
|
-
PUT: "PUT";
|
|
25
27
|
DELETE: "DELETE";
|
|
28
|
+
PUT: "PUT";
|
|
26
29
|
PATCH: "PATCH";
|
|
27
30
|
HEAD: "HEAD";
|
|
28
31
|
OPTIONS: "OPTIONS";
|
|
@@ -43,12 +46,12 @@ export declare const requestPlugin: (sdk: {
|
|
|
43
46
|
context: import("../eventEmission").EventEmissionContext;
|
|
44
47
|
} & {
|
|
45
48
|
context: {
|
|
46
|
-
meta: Record<string, import("
|
|
49
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
47
50
|
};
|
|
48
51
|
}) => {
|
|
49
52
|
request: (options?: {
|
|
50
53
|
url: string;
|
|
51
|
-
method?: "POST" | "GET" | "
|
|
54
|
+
method?: "POST" | "GET" | "DELETE" | "PUT" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
52
55
|
body?: any;
|
|
53
56
|
connection?: string | number | undefined;
|
|
54
57
|
connectionId?: string | number | undefined;
|
|
@@ -59,7 +62,7 @@ export declare const requestPlugin: (sdk: {
|
|
|
59
62
|
} & {
|
|
60
63
|
context: {
|
|
61
64
|
meta: {
|
|
62
|
-
request: import("
|
|
65
|
+
request: import("kitcore").PluginMeta<unknown>;
|
|
63
66
|
};
|
|
64
67
|
};
|
|
65
68
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/request/index.ts"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/request/index.ts"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCzB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { definePlugin } from "
|
|
2
|
-
import { createPluginMethod } from "
|
|
1
|
+
import { definePlugin } from "kitcore";
|
|
2
|
+
import { createPluginMethod } from "kitcore";
|
|
3
3
|
import { RelayRequestSchema } from "./schemas";
|
|
4
4
|
import { logDeprecation } from "../../utils/logging";
|
|
5
5
|
/**
|
|
@@ -10,7 +10,8 @@ import { logDeprecation } from "../../utils/logging";
|
|
|
10
10
|
export const requestPlugin = definePlugin((sdk) => createPluginMethod(sdk, {
|
|
11
11
|
name: "request",
|
|
12
12
|
packages: ["cli", "mcp"],
|
|
13
|
-
categories: ["http"
|
|
13
|
+
categories: ["http"],
|
|
14
|
+
deprecation: { message: "Use fetch() instead." },
|
|
14
15
|
returnType: "Response",
|
|
15
16
|
inputSchema: RelayRequestSchema,
|
|
16
17
|
handler: async ({ sdk, options }) => {
|
|
@@ -4,8 +4,8 @@ export declare const RelayRequestSchema: z.ZodObject<{
|
|
|
4
4
|
method: z.ZodOptional<z.ZodEnum<{
|
|
5
5
|
POST: "POST";
|
|
6
6
|
GET: "GET";
|
|
7
|
-
PUT: "PUT";
|
|
8
7
|
DELETE: "DELETE";
|
|
8
|
+
PUT: "PUT";
|
|
9
9
|
PATCH: "PATCH";
|
|
10
10
|
HEAD: "HEAD";
|
|
11
11
|
OPTIONS: "OPTIONS";
|
|
@@ -26,8 +26,8 @@ export declare const RelayFetchSchema: z.ZodObject<{
|
|
|
26
26
|
method: z.ZodOptional<z.ZodEnum<{
|
|
27
27
|
POST: "POST";
|
|
28
28
|
GET: "GET";
|
|
29
|
-
PUT: "PUT";
|
|
30
29
|
DELETE: "DELETE";
|
|
30
|
+
PUT: "PUT";
|
|
31
31
|
PATCH: "PATCH";
|
|
32
32
|
HEAD: "HEAD";
|
|
33
33
|
OPTIONS: "OPTIONS";
|
|
@@ -29,7 +29,7 @@ export declare const runActionPlugin: (sdk: {
|
|
|
29
29
|
} & {
|
|
30
30
|
context: {
|
|
31
31
|
meta: {
|
|
32
|
-
getAction: import("
|
|
32
|
+
getAction: import("kitcore").PluginMeta<unknown>;
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
35
|
} & {
|
|
@@ -95,7 +95,170 @@ export declare const runActionPlugin: (sdk: {
|
|
|
95
95
|
} & {
|
|
96
96
|
context: {
|
|
97
97
|
meta: {
|
|
98
|
-
getApp: import("
|
|
98
|
+
getApp: import("kitcore").PluginMeta<unknown>;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
} & {
|
|
102
|
+
listApps: (options?: ({
|
|
103
|
+
search?: string | undefined;
|
|
104
|
+
apps?: string[] | undefined;
|
|
105
|
+
appKeys?: string[] | undefined;
|
|
106
|
+
pageSize?: number | undefined;
|
|
107
|
+
maxItems?: number | undefined;
|
|
108
|
+
cursor?: string | undefined;
|
|
109
|
+
} & {
|
|
110
|
+
cursor?: string;
|
|
111
|
+
pageSize?: number;
|
|
112
|
+
maxItems?: number;
|
|
113
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
114
|
+
slug: string;
|
|
115
|
+
title: string;
|
|
116
|
+
key: string;
|
|
117
|
+
implementation_id: string;
|
|
118
|
+
description?: string | undefined;
|
|
119
|
+
is_hidden?: boolean | undefined;
|
|
120
|
+
auth_type?: string | undefined;
|
|
121
|
+
actions?: {
|
|
122
|
+
read?: number | undefined;
|
|
123
|
+
read_bulk?: number | undefined;
|
|
124
|
+
write?: number | undefined;
|
|
125
|
+
search?: number | undefined;
|
|
126
|
+
search_or_write?: number | undefined;
|
|
127
|
+
search_and_write?: number | undefined;
|
|
128
|
+
filter?: number | undefined;
|
|
129
|
+
} | undefined;
|
|
130
|
+
is_deprecated?: boolean | undefined;
|
|
131
|
+
is_beta?: boolean | undefined;
|
|
132
|
+
is_premium?: boolean | undefined;
|
|
133
|
+
age_in_days?: number | undefined;
|
|
134
|
+
banner?: string | undefined;
|
|
135
|
+
categories?: {
|
|
136
|
+
id: number;
|
|
137
|
+
name: string;
|
|
138
|
+
slug: string;
|
|
139
|
+
}[] | undefined;
|
|
140
|
+
images?: {
|
|
141
|
+
url_16x16?: string | undefined;
|
|
142
|
+
url_32x32?: string | undefined;
|
|
143
|
+
url_64x64?: string | undefined;
|
|
144
|
+
url_128x128?: string | undefined;
|
|
145
|
+
} | undefined;
|
|
146
|
+
popularity?: number | undefined;
|
|
147
|
+
has_filters?: boolean | undefined;
|
|
148
|
+
has_reads?: boolean | undefined;
|
|
149
|
+
has_searches?: boolean | undefined;
|
|
150
|
+
has_searches_or_writes?: boolean | undefined;
|
|
151
|
+
has_upfront_fields?: boolean | undefined;
|
|
152
|
+
has_writes?: boolean | undefined;
|
|
153
|
+
is_built_in?: boolean | undefined;
|
|
154
|
+
is_featured?: boolean | undefined;
|
|
155
|
+
is_invite?: boolean | undefined;
|
|
156
|
+
is_public?: boolean | undefined;
|
|
157
|
+
is_upcoming?: boolean | undefined;
|
|
158
|
+
visibility?: string | undefined;
|
|
159
|
+
primary_color?: string | undefined;
|
|
160
|
+
secondary_color?: string | undefined;
|
|
161
|
+
classification?: string | undefined;
|
|
162
|
+
api_docs_url?: string | undefined;
|
|
163
|
+
image?: string | undefined;
|
|
164
|
+
version?: string | undefined;
|
|
165
|
+
}>;
|
|
166
|
+
} & {
|
|
167
|
+
context: {
|
|
168
|
+
meta: {
|
|
169
|
+
listApps: import("kitcore").PluginMeta<unknown>;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
} & {
|
|
173
|
+
listActions: (options?: (({
|
|
174
|
+
app: string;
|
|
175
|
+
actionType?: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write" | undefined;
|
|
176
|
+
pageSize?: number | undefined;
|
|
177
|
+
maxItems?: number | undefined;
|
|
178
|
+
cursor?: string | undefined;
|
|
179
|
+
} | {
|
|
180
|
+
appKey: string;
|
|
181
|
+
actionType?: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write" | undefined;
|
|
182
|
+
pageSize?: number | undefined;
|
|
183
|
+
maxItems?: number | undefined;
|
|
184
|
+
cursor?: string | undefined;
|
|
185
|
+
}) & {
|
|
186
|
+
cursor?: string;
|
|
187
|
+
pageSize?: number;
|
|
188
|
+
maxItems?: number;
|
|
189
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
190
|
+
description: string;
|
|
191
|
+
key: string;
|
|
192
|
+
app_key: string;
|
|
193
|
+
action_type: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
194
|
+
title: string;
|
|
195
|
+
type: "action";
|
|
196
|
+
id?: string | undefined;
|
|
197
|
+
is_important?: boolean | undefined;
|
|
198
|
+
is_hidden?: boolean | undefined;
|
|
199
|
+
app_version?: string | undefined;
|
|
200
|
+
}>;
|
|
201
|
+
} & {
|
|
202
|
+
context: {
|
|
203
|
+
meta: {
|
|
204
|
+
listActions: import("kitcore").PluginMeta<unknown>;
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
} & {
|
|
208
|
+
listConnections: (options?: ({
|
|
209
|
+
title?: string | undefined;
|
|
210
|
+
search?: string | undefined;
|
|
211
|
+
owner?: string | undefined;
|
|
212
|
+
app?: string | undefined;
|
|
213
|
+
appKey?: string | undefined;
|
|
214
|
+
connections?: string[] | undefined;
|
|
215
|
+
connectionIds?: string[] | undefined;
|
|
216
|
+
authenticationIds?: string[] | undefined;
|
|
217
|
+
account?: string | undefined;
|
|
218
|
+
accountId?: string | undefined;
|
|
219
|
+
includeShared?: boolean | undefined;
|
|
220
|
+
isExpired?: boolean | undefined;
|
|
221
|
+
expired?: boolean | undefined;
|
|
222
|
+
pageSize?: number | undefined;
|
|
223
|
+
maxItems?: number | undefined;
|
|
224
|
+
cursor?: string | undefined;
|
|
225
|
+
} & {
|
|
226
|
+
cursor?: string;
|
|
227
|
+
pageSize?: number;
|
|
228
|
+
maxItems?: number;
|
|
229
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
230
|
+
date: string;
|
|
231
|
+
is_invite_only: boolean;
|
|
232
|
+
is_private: boolean;
|
|
233
|
+
shared_with_all: boolean;
|
|
234
|
+
id: string;
|
|
235
|
+
account_id: string;
|
|
236
|
+
title?: string | null | undefined;
|
|
237
|
+
lastchanged?: string | undefined;
|
|
238
|
+
destination_selected_api?: string | null | undefined;
|
|
239
|
+
is_stale?: string | undefined;
|
|
240
|
+
is_shared?: string | undefined;
|
|
241
|
+
marked_stale_at?: string | null | undefined;
|
|
242
|
+
label?: string | null | undefined;
|
|
243
|
+
identifier?: string | null | undefined;
|
|
244
|
+
url?: string | undefined;
|
|
245
|
+
groups?: Record<string, unknown>[] | undefined;
|
|
246
|
+
members?: string | undefined;
|
|
247
|
+
permissions?: Record<string, boolean> | undefined;
|
|
248
|
+
public_id?: string | undefined;
|
|
249
|
+
account_public_id?: string | undefined;
|
|
250
|
+
customuser_public_id?: string | undefined;
|
|
251
|
+
implementation_id?: string | undefined;
|
|
252
|
+
profile_id?: string | undefined;
|
|
253
|
+
is_expired?: string | undefined;
|
|
254
|
+
expired_at?: string | null | undefined;
|
|
255
|
+
app_key?: string | undefined;
|
|
256
|
+
app_version?: string | undefined;
|
|
257
|
+
}>;
|
|
258
|
+
} & {
|
|
259
|
+
context: {
|
|
260
|
+
meta: {
|
|
261
|
+
listConnections: import("kitcore").PluginMeta<unknown>;
|
|
99
262
|
};
|
|
100
263
|
};
|
|
101
264
|
} & {
|
|
@@ -107,7 +270,7 @@ export declare const runActionPlugin: (sdk: {
|
|
|
107
270
|
context: import("../eventEmission").EventEmissionContext;
|
|
108
271
|
} & {
|
|
109
272
|
context: {
|
|
110
|
-
meta: Record<string, import("
|
|
273
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
111
274
|
};
|
|
112
275
|
}) => {
|
|
113
276
|
runAction: (options?: (({
|
|
@@ -138,11 +301,11 @@ export declare const runActionPlugin: (sdk: {
|
|
|
138
301
|
cursor?: string;
|
|
139
302
|
pageSize?: number;
|
|
140
303
|
maxItems?: number;
|
|
141
|
-
}) | undefined) => import("
|
|
304
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<unknown>;
|
|
142
305
|
} & {
|
|
143
306
|
context: {
|
|
144
307
|
meta: {
|
|
145
|
-
runAction: import("
|
|
308
|
+
runAction: import("kitcore").PluginMeta<unknown>;
|
|
146
309
|
};
|
|
147
310
|
};
|
|
148
311
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/runAction/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/runAction/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAqB3C,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AA4GhE,eAAO,MAAM,oBAAoB,QAAS,CAAC;AAC3C,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAE1C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAOX;QACP,GAAG,EAAE,SAAS,CAAC;QACf,4BAA4B,EAAE,4BAA4B,CAAC;KAC5D,GAAG,yBAAyB,CAAC,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwL/C,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { definePlugin } from "
|
|
2
|
-
import { createPaginatedPluginMethod } from "
|
|
1
|
+
import { definePlugin } from "kitcore";
|
|
2
|
+
import { createPaginatedPluginMethod } from "kitcore";
|
|
3
3
|
import { RunActionInputSchema } from "./schemas";
|
|
4
4
|
import { ActionResultItemSchema } from "../../schemas/Run";
|
|
5
|
+
import { actionResultItemFormatter } from "../../formatters/actionResult";
|
|
5
6
|
import { ZapierValidationError, ZapierConfigurationError, ZapierActionError, } from "../../types/errors";
|
|
6
7
|
import { appKeyResolver, actionTypeResolver, actionKeyResolver, connectionIdResolver, inputsResolver, } from "../../resolvers";
|
|
7
8
|
import { resolveConnectionId } from "../../utils/domain-utils";
|
|
8
9
|
import { DEFAULT_ACTION_TIMEOUT_MS } from "../../constants";
|
|
9
|
-
import { setMethodMetadata } from "
|
|
10
|
+
import { setMethodMetadata } from "../eventEmission/method-metadata";
|
|
10
11
|
import { buildActionRunContext } from "@zapier/policy-context";
|
|
11
12
|
async function executeAction(actionOptions) {
|
|
12
13
|
const { api, selectedApi, actionId, actionKey, actionType, executionOptions, cursor, connectionId, timeoutMs, } = actionOptions;
|
|
@@ -129,6 +130,7 @@ export const runActionPlugin = definePlugin((sdk) => {
|
|
|
129
130
|
itemType: "ActionResult",
|
|
130
131
|
inputSchema: RunActionInputSchema,
|
|
131
132
|
outputSchema: ActionResultItemSchema,
|
|
133
|
+
formatter: actionResultItemFormatter,
|
|
132
134
|
resolvers: {
|
|
133
135
|
app: appKeyResolver,
|
|
134
136
|
actionType: actionTypeResolver,
|
|
@@ -136,7 +138,7 @@ export const runActionPlugin = definePlugin((sdk) => {
|
|
|
136
138
|
connection: connectionIdResolver,
|
|
137
139
|
inputs: inputsResolver,
|
|
138
140
|
},
|
|
139
|
-
handler: async ({ sdk, options
|
|
141
|
+
handler: async ({ sdk, options }) => {
|
|
140
142
|
const { api } = sdk.context;
|
|
141
143
|
const appKey = "app" in options ? options.app : options.appKey;
|
|
142
144
|
const actionKey = "action" in options ? options.action : options.actionKey;
|
|
@@ -178,7 +180,9 @@ export const runActionPlugin = definePlugin((sdk) => {
|
|
|
178
180
|
}
|
|
179
181
|
return {
|
|
180
182
|
data: result.results || [],
|
|
181
|
-
|
|
183
|
+
// Coerce to a string: the API returns a numeric page index, but
|
|
184
|
+
// `SdkPage.nextCursor` is a string (and the page guard enforces it).
|
|
185
|
+
nextCursor: result.next_page != null ? String(result.next_page) : undefined,
|
|
182
186
|
};
|
|
183
187
|
},
|
|
184
188
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const RunActionSchema: z.ZodObject<{
|
|
3
3
|
app: z.ZodString & {
|
|
4
|
-
_def: z.core.$ZodStringDef & import("
|
|
4
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
5
5
|
};
|
|
6
6
|
actionType: z.ZodEnum<{
|
|
7
7
|
filter: "filter";
|
|
@@ -14,7 +14,7 @@ export declare const RunActionSchema: z.ZodObject<{
|
|
|
14
14
|
search_or_write: "search_or_write";
|
|
15
15
|
}>;
|
|
16
16
|
action: z.ZodString & {
|
|
17
|
-
_def: z.core.$ZodStringDef & import("
|
|
17
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
18
18
|
};
|
|
19
19
|
connection: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
20
20
|
connectionId: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
@@ -27,7 +27,7 @@ export declare const RunActionSchema: z.ZodObject<{
|
|
|
27
27
|
}, z.core.$strip>;
|
|
28
28
|
declare const RunActionSchemaDeprecated: z.ZodObject<{
|
|
29
29
|
appKey: z.ZodString & {
|
|
30
|
-
_def: z.core.$ZodStringDef & import("
|
|
30
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
31
31
|
};
|
|
32
32
|
actionType: z.ZodEnum<{
|
|
33
33
|
filter: "filter";
|
|
@@ -51,7 +51,7 @@ declare const RunActionSchemaDeprecated: z.ZodObject<{
|
|
|
51
51
|
}, z.core.$strip>;
|
|
52
52
|
export declare const RunActionInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
53
53
|
app: z.ZodString & {
|
|
54
|
-
_def: z.core.$ZodStringDef & import("
|
|
54
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
55
55
|
};
|
|
56
56
|
actionType: z.ZodEnum<{
|
|
57
57
|
filter: "filter";
|
|
@@ -64,7 +64,7 @@ export declare const RunActionInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
64
64
|
search_or_write: "search_or_write";
|
|
65
65
|
}>;
|
|
66
66
|
action: z.ZodString & {
|
|
67
|
-
_def: z.core.$ZodStringDef & import("
|
|
67
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
68
68
|
};
|
|
69
69
|
connection: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
70
70
|
connectionId: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
@@ -76,7 +76,7 @@ export declare const RunActionInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
76
76
|
cursor: z.ZodOptional<z.ZodString>;
|
|
77
77
|
}, z.core.$strip>, z.ZodObject<{
|
|
78
78
|
appKey: z.ZodString & {
|
|
79
|
-
_def: z.core.$ZodStringDef & import("
|
|
79
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
80
80
|
};
|
|
81
81
|
actionType: z.ZodEnum<{
|
|
82
82
|
filter: "filter";
|
|
@@ -18,7 +18,7 @@ export declare const createTablePlugin: (sdk: {
|
|
|
18
18
|
context: import("../../eventEmission").EventEmissionContext;
|
|
19
19
|
} & {
|
|
20
20
|
context: {
|
|
21
|
-
meta: Record<string, import("
|
|
21
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
22
22
|
};
|
|
23
23
|
}) => {
|
|
24
24
|
createTable: (options?: {
|
|
@@ -40,7 +40,7 @@ export declare const createTablePlugin: (sdk: {
|
|
|
40
40
|
} & {
|
|
41
41
|
context: {
|
|
42
42
|
meta: {
|
|
43
|
-
createTable: import("
|
|
43
|
+
createTable: import("kitcore").PluginMeta<unknown>;
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
46
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { definePlugin } from "
|
|
2
|
-
import { createPluginMethod } from "
|
|
1
|
+
import { definePlugin } from "kitcore";
|
|
2
|
+
import { createPluginMethod } from "kitcore";
|
|
3
3
|
import { CreateTableOptionsSchema, CreateTableApiResponseSchema, TableItemSchema, } from "./schemas";
|
|
4
4
|
import { tableNameResolver } from "../../../resolvers";
|
|
5
5
|
import { transformTableItem } from "../utils";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import type { FunctionOptions } from "../../../types/functions";
|
|
3
2
|
import { TableItemSchema, TableApiItemSchema, type TableItem, type TableApiItem } from "../listTables/schemas";
|
|
4
3
|
export { TableItemSchema, TableApiItemSchema };
|
|
5
4
|
export type { TableItem, TableApiItem };
|
|
@@ -27,7 +26,7 @@ export declare const CreateTableOptionsSchema: z.ZodObject<{
|
|
|
27
26
|
name: z.ZodString;
|
|
28
27
|
description: z.ZodOptional<z.ZodString>;
|
|
29
28
|
}, z.core.$strip>;
|
|
30
|
-
export type CreateTableOptions = z.infer<typeof CreateTableOptionsSchema
|
|
29
|
+
export type CreateTableOptions = z.infer<typeof CreateTableOptionsSchema>;
|
|
31
30
|
export interface CreateTableResult {
|
|
32
31
|
data: TableItem;
|
|
33
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/createTable/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/createTable/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,KAAK,SAAS,EACd,KAAK,YAAY,EAClB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,CAAC;AAC/C,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;AAExC,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;iBAEvC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,4BAA4B,CACpC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;iBAQJ,CAAC;AAElC,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAG1E,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,SAAS,CAAC;CACjB;AAGD,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,CAAC,OAAO,EAAE,kBAAkB,KAAK,OAAO,CAAC,iBAAiB,CAAC,CAAC;CAC1E"}
|
|
@@ -16,9 +16,41 @@ export declare const createTableFieldsPlugin: (sdk: {
|
|
|
16
16
|
};
|
|
17
17
|
} & {
|
|
18
18
|
context: import("../../eventEmission").EventEmissionContext;
|
|
19
|
+
} & {
|
|
20
|
+
listTables: (options?: ({
|
|
21
|
+
tables?: string[] | undefined;
|
|
22
|
+
tableIds?: string[] | undefined;
|
|
23
|
+
kind?: "table" | "virtual_table" | "both" | undefined;
|
|
24
|
+
search?: string | undefined;
|
|
25
|
+
owner?: string | undefined;
|
|
26
|
+
includeShared?: boolean | undefined;
|
|
27
|
+
pageSize?: number | undefined;
|
|
28
|
+
maxItems?: number | undefined;
|
|
29
|
+
cursor?: string | undefined;
|
|
30
|
+
} & {
|
|
31
|
+
cursor?: string;
|
|
32
|
+
pageSize?: number;
|
|
33
|
+
maxItems?: number;
|
|
34
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
created_at: string;
|
|
38
|
+
edited_at: string;
|
|
39
|
+
kind: "table" | "virtual_table";
|
|
40
|
+
account_id: string;
|
|
41
|
+
profile_id: string;
|
|
42
|
+
description?: string | undefined;
|
|
43
|
+
parent_table_id?: string | undefined;
|
|
44
|
+
}>;
|
|
45
|
+
} & {
|
|
46
|
+
context: {
|
|
47
|
+
meta: {
|
|
48
|
+
listTables: import("kitcore").PluginMeta<unknown>;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
19
51
|
} & {
|
|
20
52
|
context: {
|
|
21
|
-
meta: Record<string, import("
|
|
53
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
22
54
|
};
|
|
23
55
|
}) => {
|
|
24
56
|
createTableFields: (options?: {
|
|
@@ -52,7 +84,7 @@ export declare const createTableFieldsPlugin: (sdk: {
|
|
|
52
84
|
} & {
|
|
53
85
|
context: {
|
|
54
86
|
meta: {
|
|
55
|
-
createTableFields: import("
|
|
87
|
+
createTableFields: import("kitcore").PluginMeta<unknown>;
|
|
56
88
|
};
|
|
57
89
|
};
|
|
58
90
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/createTableFields/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/createTableFields/index.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BnC,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG,UAAU,CACtD,OAAO,uBAAuB,CAC/B,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { definePlugin } from "
|
|
2
|
-
import { createPluginMethod } from "
|
|
1
|
+
import { definePlugin } from "kitcore";
|
|
2
|
+
import { createPluginMethod } from "kitcore";
|
|
3
3
|
import { CreateTableFieldsOptionsInputSchema, CreateTableFieldsApiResponseSchema, FieldItemSchema, } from "./schemas";
|
|
4
|
+
import { tableFieldItemFormatter } from "../../../formatters/tableField";
|
|
4
5
|
import { tableIdResolver, tableFieldsResolver } from "../../../resolvers";
|
|
5
6
|
import { transformFieldItem } from "../utils";
|
|
6
7
|
import { tablesDefaults } from "../shared";
|
|
@@ -12,6 +13,7 @@ export const createTableFieldsPlugin = definePlugin((sdk) => createPluginMethod(
|
|
|
12
13
|
returnType: "FieldItem[]",
|
|
13
14
|
inputSchema: CreateTableFieldsOptionsInputSchema,
|
|
14
15
|
outputSchema: FieldItemSchema,
|
|
16
|
+
formatter: tableFieldItemFormatter,
|
|
15
17
|
resolvers: { table: tableIdResolver, fields: tableFieldsResolver },
|
|
16
18
|
handler: async ({ sdk, options }) => {
|
|
17
19
|
const tableId = "table" in options ? options.table : options.tableId;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import type { FunctionOptions } from "../../../types/functions";
|
|
3
2
|
import { FieldTypeSchema, FieldItemSchema, type FieldItem } from "../listTableFields/schemas";
|
|
4
3
|
export { FieldTypeSchema, FieldItemSchema };
|
|
5
4
|
export type { FieldItem };
|
|
@@ -144,7 +143,7 @@ export declare const NewFieldSchema: z.ZodObject<{
|
|
|
144
143
|
export type NewField = z.infer<typeof NewFieldSchema>;
|
|
145
144
|
export declare const CreateTableFieldsOptionsSchema: z.ZodObject<{
|
|
146
145
|
table: z.ZodString & {
|
|
147
|
-
_def: z.core.$ZodStringDef & import("
|
|
146
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
148
147
|
};
|
|
149
148
|
fields: z.ZodArray<z.ZodObject<{
|
|
150
149
|
type: z.ZodEnum<{
|
|
@@ -226,7 +225,7 @@ declare const CreateTableFieldsOptionsSchemaDeprecated: z.ZodObject<{
|
|
|
226
225
|
}, z.core.$strip>;
|
|
227
226
|
export declare const CreateTableFieldsOptionsInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
228
227
|
table: z.ZodString & {
|
|
229
|
-
_def: z.core.$ZodStringDef & import("
|
|
228
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
230
229
|
};
|
|
231
230
|
fields: z.ZodArray<z.ZodObject<{
|
|
232
231
|
type: z.ZodEnum<{
|
|
@@ -305,7 +304,7 @@ export declare const CreateTableFieldsOptionsInputSchema: z.ZodUnion<readonly [z
|
|
|
305
304
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
306
305
|
}, z.core.$strip>>;
|
|
307
306
|
}, z.core.$strip>]>;
|
|
308
|
-
export type CreateTableFieldsOptions =
|
|
307
|
+
export type CreateTableFieldsOptions = z.infer<typeof CreateTableFieldsOptionsSchema> | (Omit<z.infer<typeof CreateTableFieldsOptionsSchemaDeprecated>, "tableId"> & {
|
|
309
308
|
/** @deprecated Use `table` instead. */
|
|
310
309
|
tableId: z.infer<typeof CreateTableFieldsOptionsSchemaDeprecated>["tableId"];
|
|
311
310
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/createTableFields/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","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