@keystrokehq/nango 0.1.5 → 0.1.6
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/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/action-trigger-post.cjs +1 -0
- package/dist/actions/action-trigger-post.cjs.map +1 -1
- package/dist/actions/action-trigger-post.d.cts +3 -18
- package/dist/actions/action-trigger-post.d.cts.map +1 -1
- package/dist/actions/action-trigger-post.d.mts +3 -18
- package/dist/actions/action-trigger-post.d.mts.map +1 -1
- package/dist/actions/action-trigger-post.mjs +1 -0
- package/dist/actions/action-trigger-post.mjs.map +1 -1
- package/dist/actions/add-connection.cjs +1 -0
- package/dist/actions/add-connection.cjs.map +1 -1
- package/dist/actions/add-connection.d.cts +3 -68
- package/dist/actions/add-connection.d.cts.map +1 -1
- package/dist/actions/add-connection.d.mts +3 -68
- package/dist/actions/add-connection.d.mts.map +1 -1
- package/dist/actions/add-connection.mjs +1 -0
- package/dist/actions/add-connection.mjs.map +1 -1
- package/dist/actions/connection-get.cjs +1 -0
- package/dist/actions/connection-get.cjs.map +1 -1
- package/dist/actions/connection-get.d.cts +3 -20
- package/dist/actions/connection-get.d.cts.map +1 -1
- package/dist/actions/connection-get.d.mts +3 -20
- package/dist/actions/connection-get.d.mts.map +1 -1
- package/dist/actions/connection-get.mjs +1 -0
- package/dist/actions/connection-get.mjs.map +1 -1
- package/dist/actions/create-connect-session.cjs +1 -0
- package/dist/actions/create-connect-session.cjs.map +1 -1
- package/dist/actions/create-connect-session.d.cts +3 -28
- package/dist/actions/create-connect-session.d.cts.map +1 -1
- package/dist/actions/create-connect-session.d.mts +3 -28
- package/dist/actions/create-connect-session.d.mts.map +1 -1
- package/dist/actions/create-connect-session.mjs +1 -0
- package/dist/actions/create-connect-session.mjs.map +1 -1
- package/dist/actions/create-integration.cjs +1 -0
- package/dist/actions/create-integration.cjs.map +1 -1
- package/dist/actions/create-integration.d.cts +3 -39
- package/dist/actions/create-integration.d.cts.map +1 -1
- package/dist/actions/create-integration.d.mts +3 -39
- package/dist/actions/create-integration.d.mts.map +1 -1
- package/dist/actions/create-integration.mjs +1 -0
- package/dist/actions/create-integration.mjs.map +1 -1
- package/dist/actions/delete-connection.cjs +1 -0
- package/dist/actions/delete-connection.cjs.map +1 -1
- package/dist/actions/delete-connection.d.cts +3 -16
- package/dist/actions/delete-connection.d.cts.map +1 -1
- package/dist/actions/delete-connection.d.mts +3 -16
- package/dist/actions/delete-connection.d.mts.map +1 -1
- package/dist/actions/delete-connection.mjs +1 -0
- package/dist/actions/delete-connection.mjs.map +1 -1
- package/dist/actions/delete-integration.cjs +1 -0
- package/dist/actions/delete-integration.cjs.map +1 -1
- package/dist/actions/delete-integration.d.cts +3 -15
- package/dist/actions/delete-integration.d.cts.map +1 -1
- package/dist/actions/delete-integration.d.mts +3 -15
- package/dist/actions/delete-integration.d.mts.map +1 -1
- package/dist/actions/delete-integration.mjs +1 -0
- package/dist/actions/delete-integration.mjs.map +1 -1
- package/dist/actions/edit-connection.cjs +1 -0
- package/dist/actions/edit-connection.cjs.map +1 -1
- package/dist/actions/edit-connection.d.cts +3 -23
- package/dist/actions/edit-connection.d.cts.map +1 -1
- package/dist/actions/edit-connection.d.mts +3 -23
- package/dist/actions/edit-connection.d.mts.map +1 -1
- package/dist/actions/edit-connection.mjs +1 -0
- package/dist/actions/edit-connection.mjs.map +1 -1
- package/dist/actions/get-connection.cjs +1 -0
- package/dist/actions/get-connection.cjs.map +1 -1
- package/dist/actions/get-connection.d.cts +3 -19
- package/dist/actions/get-connection.d.cts.map +1 -1
- package/dist/actions/get-connection.d.mts +3 -19
- package/dist/actions/get-connection.d.mts.map +1 -1
- package/dist/actions/get-connection.mjs +1 -0
- package/dist/actions/get-connection.mjs.map +1 -1
- package/dist/actions/get-environment-variables.cjs +1 -0
- package/dist/actions/get-environment-variables.cjs.map +1 -1
- package/dist/actions/get-environment-variables.d.cts +3 -13
- package/dist/actions/get-environment-variables.d.cts.map +1 -1
- package/dist/actions/get-environment-variables.d.mts +3 -13
- package/dist/actions/get-environment-variables.d.mts.map +1 -1
- package/dist/actions/get-environment-variables.mjs +1 -0
- package/dist/actions/get-environment-variables.mjs.map +1 -1
- package/dist/actions/get-integration.cjs +1 -0
- package/dist/actions/get-integration.cjs.map +1 -1
- package/dist/actions/get-integration.d.cts +3 -16
- package/dist/actions/get-integration.d.cts.map +1 -1
- package/dist/actions/get-integration.d.mts +3 -16
- package/dist/actions/get-integration.d.mts.map +1 -1
- package/dist/actions/get-integration.mjs +1 -0
- package/dist/actions/get-integration.mjs.map +1 -1
- package/dist/actions/get-proxy.cjs +1 -0
- package/dist/actions/get-proxy.cjs.map +1 -1
- package/dist/actions/get-proxy.d.cts +3 -23
- package/dist/actions/get-proxy.d.cts.map +1 -1
- package/dist/actions/get-proxy.d.mts +3 -23
- package/dist/actions/get-proxy.d.mts.map +1 -1
- package/dist/actions/get-proxy.mjs +1 -0
- package/dist/actions/get-proxy.mjs.map +1 -1
- package/dist/actions/get-sync-status.cjs +1 -0
- package/dist/actions/get-sync-status.cjs.map +1 -1
- package/dist/actions/get-sync-status.d.cts +3 -17
- package/dist/actions/get-sync-status.d.cts.map +1 -1
- package/dist/actions/get-sync-status.d.mts +3 -17
- package/dist/actions/get-sync-status.d.mts.map +1 -1
- package/dist/actions/get-sync-status.mjs +1 -0
- package/dist/actions/get-sync-status.mjs.map +1 -1
- package/dist/actions/list-connections.cjs +1 -0
- package/dist/actions/list-connections.cjs.map +1 -1
- package/dist/actions/list-connections.d.cts +3 -21
- package/dist/actions/list-connections.d.cts.map +1 -1
- package/dist/actions/list-connections.d.mts +3 -21
- package/dist/actions/list-connections.d.mts.map +1 -1
- package/dist/actions/list-connections.mjs +1 -0
- package/dist/actions/list-connections.mjs.map +1 -1
- package/dist/actions/list-integrations.cjs +1 -0
- package/dist/actions/list-integrations.cjs.map +1 -1
- package/dist/actions/list-integrations.d.cts +3 -13
- package/dist/actions/list-integrations.d.cts.map +1 -1
- package/dist/actions/list-integrations.d.mts +3 -13
- package/dist/actions/list-integrations.d.mts.map +1 -1
- package/dist/actions/list-integrations.mjs +1 -0
- package/dist/actions/list-integrations.mjs.map +1 -1
- package/dist/actions/providers-get-get.cjs +1 -0
- package/dist/actions/providers-get-get.cjs.map +1 -1
- package/dist/actions/providers-get-get.d.cts +3 -15
- package/dist/actions/providers-get-get.d.cts.map +1 -1
- package/dist/actions/providers-get-get.d.mts +3 -15
- package/dist/actions/providers-get-get.d.mts.map +1 -1
- package/dist/actions/providers-get-get.mjs +1 -0
- package/dist/actions/providers-get-get.mjs.map +1 -1
- package/dist/actions/providers-list-get.cjs +1 -0
- package/dist/actions/providers-list-get.cjs.map +1 -1
- package/dist/actions/providers-list-get.d.cts +3 -13
- package/dist/actions/providers-list-get.d.cts.map +1 -1
- package/dist/actions/providers-list-get.d.mts +3 -13
- package/dist/actions/providers-list-get.d.mts.map +1 -1
- package/dist/actions/providers-list-get.mjs +1 -0
- package/dist/actions/providers-list-get.mjs.map +1 -1
- package/dist/actions/put-proxy.cjs +1 -0
- package/dist/actions/put-proxy.cjs.map +1 -1
- package/dist/actions/put-proxy.d.cts +3 -22
- package/dist/actions/put-proxy.d.cts.map +1 -1
- package/dist/actions/put-proxy.d.mts +3 -22
- package/dist/actions/put-proxy.d.mts.map +1 -1
- package/dist/actions/put-proxy.mjs +1 -0
- package/dist/actions/put-proxy.mjs.map +1 -1
- package/dist/actions/reconnect-session-post.cjs +1 -0
- package/dist/actions/reconnect-session-post.cjs.map +1 -1
- package/dist/actions/reconnect-session-post.d.cts +3 -29
- package/dist/actions/reconnect-session-post.d.cts.map +1 -1
- package/dist/actions/reconnect-session-post.d.mts +3 -29
- package/dist/actions/reconnect-session-post.d.mts.map +1 -1
- package/dist/actions/reconnect-session-post.mjs +1 -0
- package/dist/actions/reconnect-session-post.mjs.map +1 -1
- package/dist/actions/scripts-config-get.cjs +1 -0
- package/dist/actions/scripts-config-get.cjs.map +1 -1
- package/dist/actions/scripts-config-get.d.cts +3 -13
- package/dist/actions/scripts-config-get.d.cts.map +1 -1
- package/dist/actions/scripts-config-get.d.mts +3 -13
- package/dist/actions/scripts-config-get.d.mts.map +1 -1
- package/dist/actions/scripts-config-get.mjs +1 -0
- package/dist/actions/scripts-config-get.mjs.map +1 -1
- package/dist/actions/set-connection-metadata.cjs +1 -0
- package/dist/actions/set-connection-metadata.cjs.map +1 -1
- package/dist/actions/set-connection-metadata.d.cts +3 -17
- package/dist/actions/set-connection-metadata.d.cts.map +1 -1
- package/dist/actions/set-connection-metadata.d.mts +3 -17
- package/dist/actions/set-connection-metadata.d.mts.map +1 -1
- package/dist/actions/set-connection-metadata.mjs +1 -0
- package/dist/actions/set-connection-metadata.mjs.map +1 -1
- package/dist/actions/sync-trigger-post.cjs +1 -0
- package/dist/actions/sync-trigger-post.cjs.map +1 -1
- package/dist/actions/sync-trigger-post.d.cts +3 -18
- package/dist/actions/sync-trigger-post.d.cts.map +1 -1
- package/dist/actions/sync-trigger-post.d.mts +3 -18
- package/dist/actions/sync-trigger-post.d.mts.map +1 -1
- package/dist/actions/sync-trigger-post.mjs +1 -0
- package/dist/actions/sync-trigger-post.mjs.map +1 -1
- package/dist/actions/update-connection-metadata.cjs +1 -0
- package/dist/actions/update-connection-metadata.cjs.map +1 -1
- package/dist/actions/update-connection-metadata.d.cts +3 -17
- package/dist/actions/update-connection-metadata.d.cts.map +1 -1
- package/dist/actions/update-connection-metadata.d.mts +3 -17
- package/dist/actions/update-connection-metadata.d.mts.map +1 -1
- package/dist/actions/update-connection-metadata.mjs +1 -0
- package/dist/actions/update-connection-metadata.mjs.map +1 -1
- package/dist/actions/update-integration.cjs +1 -0
- package/dist/actions/update-integration.cjs.map +1 -1
- package/dist/actions/update-integration.d.cts +3 -39
- package/dist/actions/update-integration.d.cts.map +1 -1
- package/dist/actions/update-integration.d.mts +3 -39
- package/dist/actions/update-integration.d.mts.map +1 -1
- package/dist/actions/update-integration.mjs +1 -0
- package/dist/actions/update-integration.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scripts-config-get.mjs","names":[],"sources":["../../src/actions/scripts-config-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoScriptsConfigGetInput = z.object({}).describe(\"Request model for retrieving Nango integration functions configuration.\\n\\nNo parameters required - retrieves all configured integrations.\");\nconst NangoScriptsConfigGet_EndpointConfigSchema = z.object({\n path: z.string().describe(\"Endpoint path.\").nullable().optional(),\n method: z.string().describe(\"HTTP method (e.g., 'GET', 'POST').\").nullable().optional(),\n}).passthrough().describe(\"Model representing an endpoint configuration.\");\nconst NangoScriptsConfigGet_SyncConfigSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the sync.\").nullable().optional(),\n name: z.string().describe(\"Name of the sync script.\").nullable(),\n runs: z.string().describe(\"Frequency of sync runs (e.g., 'every 1h').\").nullable().optional(),\n type: z.string().describe(\"Type of script (e.g., 'sync').\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Input schema.\").nullable().optional(),\n models: z.array(z.string()).describe(\"Data models used by the sync.\").nullable().optional(),\n scopes: z.array(z.string()).describe(\"OAuth scopes required.\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the sync is enabled.\").nullable().optional(),\n returns: z.array(z.string()).describe(\"Return type models.\").nullable().optional(),\n version: z.string().describe(\"Version of the sync script.\").nullable().optional(),\n endpoints: z.array(NangoScriptsConfigGet_EndpointConfigSchema).describe(\"Endpoints configuration.\").nullable().optional(),\n is_public: z.boolean().describe(\"Whether the sync is public.\").nullable().optional(),\n pre_built: z.boolean().describe(\"Whether the sync is pre-built.\").nullable().optional(),\n sync_type: z.string().describe(\"Type of synchronization (e.g., 'full', 'incremental').\").nullable().optional(),\n auto_start: z.boolean().describe(\"Whether the sync auto-starts.\").nullable().optional(),\n description: z.string().describe(\"Description of the sync.\").nullable().optional(),\n json_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema for the sync.\").nullable().optional(),\n track_deletes: z.boolean().describe(\"Whether to track deleted records.\").nullable().optional(),\n}).passthrough().describe(\"Model representing a sync script configuration.\");\nconst NangoScriptsConfigGet_ActionConfigSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the action.\").nullable().optional(),\n name: z.string().describe(\"Name of the action script.\").nullable(),\n type: z.string().describe(\"Type of script (e.g., 'action').\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Input schema.\").nullable().optional(),\n scopes: z.array(z.string()).describe(\"OAuth scopes required.\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the action is enabled.\").nullable().optional(),\n returns: z.array(z.string()).describe(\"Return type models.\").nullable().optional(),\n version: z.string().describe(\"Version of the action script.\").nullable().optional(),\n endpoints: z.array(NangoScriptsConfigGet_EndpointConfigSchema).describe(\"Endpoints configuration.\").nullable().optional(),\n is_public: z.boolean().describe(\"Whether the action is public.\").nullable().optional(),\n pre_built: z.boolean().describe(\"Whether the action is pre-built.\").nullable().optional(),\n description: z.string().describe(\"Description of the action.\").nullable().optional(),\n json_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema for the action.\").nullable().optional(),\n}).passthrough().describe(\"Model representing an action script configuration.\");\nconst NangoScriptsConfigGet_EventHandlerConfigSchema = z.object({\n name: z.string().describe(\"Name of the event handler.\").nullable().optional(),\n event: z.string().describe(\"Event type being handled.\").nullable().optional(),\n}).passthrough().describe(\"Model representing an event handler configuration.\");\nconst NangoScriptsConfigGet_IntegrationConfigSchema = z.object({\n syncs: z.array(NangoScriptsConfigGet_SyncConfigSchema).describe(\"List of sync scripts for this integration.\").nullable().optional(),\n actions: z.array(NangoScriptsConfigGet_ActionConfigSchema).describe(\"List of action scripts for this integration.\").nullable().optional(),\n provider: z.string().describe(\"Provider name (e.g., 'github', 'slack').\").nullable().optional(),\n \"on-events\": z.array(NangoScriptsConfigGet_EventHandlerConfigSchema).describe(\"Event handlers configuration.\").nullable().optional(),\n providerConfigKey: z.string().describe(\"Unique configuration key for this integration.\").nullable(),\n}).passthrough().describe(\"Model representing a single integration's configuration.\");\nexport const NangoScriptsConfigGetOutput = z.object({\n integrations: z.array(NangoScriptsConfigGet_IntegrationConfigSchema).describe(\"List of integration configurations with their syncs and actions.\").nullable().optional(),\n}).passthrough().describe(\"Response model for fetching Nango integration functions configuration.\\n\\nReturns a list of all configured integrations with their syncs, actions, and event handlers.\");\n\nexport const nangoScriptsConfigGet = action(\"NANGO_SCRIPTS_CONFIG_GET\", {\n slug: \"nango-scripts-config-get\",\n name: \"Get Integration Functions Configuration\",\n description: \"Retrieve all integration functions configuration from Nango. Returns the configuration for all integrations including their sync scripts, action scripts, and event handlers. Use this to discover available integrations and their capabilities before triggering syncs or actions.\",\n input: NangoScriptsConfigGetInput,\n output: NangoScriptsConfigGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4IAA4I;AAC5M,MAAM,6CAA6C,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AACzE,MAAM,yCAAyC,EAAE,OAAO;CACtD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CA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B,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAKpF,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyC,EAAE,OAAO,EAClD,cAAc,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACxK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wKAOhB;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"scripts-config-get.mjs","names":[],"sources":["../../src/actions/scripts-config-get.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nango } from \"../app\";\n\nexport const NangoScriptsConfigGetInput = z.object({}).describe(\"Request model for retrieving Nango integration functions configuration.\\n\\nNo parameters required - retrieves all configured integrations.\");\nconst NangoScriptsConfigGet_EndpointConfigSchema = z.object({\n path: z.string().describe(\"Endpoint path.\").nullable().optional(),\n method: z.string().describe(\"HTTP method (e.g., 'GET', 'POST').\").nullable().optional(),\n}).passthrough().describe(\"Model representing an endpoint configuration.\");\nconst NangoScriptsConfigGet_SyncConfigSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the sync.\").nullable().optional(),\n name: z.string().describe(\"Name of the sync script.\").nullable(),\n runs: z.string().describe(\"Frequency of sync runs (e.g., 'every 1h').\").nullable().optional(),\n type: z.string().describe(\"Type of script (e.g., 'sync').\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Input schema.\").nullable().optional(),\n models: z.array(z.string()).describe(\"Data models used by the sync.\").nullable().optional(),\n scopes: z.array(z.string()).describe(\"OAuth scopes required.\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the sync is enabled.\").nullable().optional(),\n returns: z.array(z.string()).describe(\"Return type models.\").nullable().optional(),\n version: z.string().describe(\"Version of the sync script.\").nullable().optional(),\n endpoints: z.array(NangoScriptsConfigGet_EndpointConfigSchema).describe(\"Endpoints configuration.\").nullable().optional(),\n is_public: z.boolean().describe(\"Whether the sync is public.\").nullable().optional(),\n pre_built: z.boolean().describe(\"Whether the sync is pre-built.\").nullable().optional(),\n sync_type: z.string().describe(\"Type of synchronization (e.g., 'full', 'incremental').\").nullable().optional(),\n auto_start: z.boolean().describe(\"Whether the sync auto-starts.\").nullable().optional(),\n description: z.string().describe(\"Description of the sync.\").nullable().optional(),\n json_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema for the sync.\").nullable().optional(),\n track_deletes: z.boolean().describe(\"Whether to track deleted records.\").nullable().optional(),\n}).passthrough().describe(\"Model representing a sync script configuration.\");\nconst NangoScriptsConfigGet_ActionConfigSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the action.\").nullable().optional(),\n name: z.string().describe(\"Name of the action script.\").nullable(),\n type: z.string().describe(\"Type of script (e.g., 'action').\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Input schema.\").nullable().optional(),\n scopes: z.array(z.string()).describe(\"OAuth scopes required.\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the action is enabled.\").nullable().optional(),\n returns: z.array(z.string()).describe(\"Return type models.\").nullable().optional(),\n version: z.string().describe(\"Version of the action script.\").nullable().optional(),\n endpoints: z.array(NangoScriptsConfigGet_EndpointConfigSchema).describe(\"Endpoints configuration.\").nullable().optional(),\n is_public: z.boolean().describe(\"Whether the action is public.\").nullable().optional(),\n pre_built: z.boolean().describe(\"Whether the action is pre-built.\").nullable().optional(),\n description: z.string().describe(\"Description of the action.\").nullable().optional(),\n json_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema for the action.\").nullable().optional(),\n}).passthrough().describe(\"Model representing an action script configuration.\");\nconst NangoScriptsConfigGet_EventHandlerConfigSchema = z.object({\n name: z.string().describe(\"Name of the event handler.\").nullable().optional(),\n event: z.string().describe(\"Event type being handled.\").nullable().optional(),\n}).passthrough().describe(\"Model representing an event handler configuration.\");\nconst NangoScriptsConfigGet_IntegrationConfigSchema = z.object({\n syncs: z.array(NangoScriptsConfigGet_SyncConfigSchema).describe(\"List of sync scripts for this integration.\").nullable().optional(),\n actions: z.array(NangoScriptsConfigGet_ActionConfigSchema).describe(\"List of action scripts for this integration.\").nullable().optional(),\n provider: z.string().describe(\"Provider name (e.g., 'github', 'slack').\").nullable().optional(),\n \"on-events\": z.array(NangoScriptsConfigGet_EventHandlerConfigSchema).describe(\"Event handlers configuration.\").nullable().optional(),\n providerConfigKey: z.string().describe(\"Unique configuration key for this integration.\").nullable(),\n}).passthrough().describe(\"Model representing a single integration's configuration.\");\nexport const NangoScriptsConfigGetOutput = z.object({\n integrations: z.array(NangoScriptsConfigGet_IntegrationConfigSchema).describe(\"List of integration configurations with their syncs and actions.\").nullable().optional(),\n}).passthrough().describe(\"Response model for fetching Nango integration functions configuration.\\n\\nReturns a list of all configured integrations with their syncs, actions, and event handlers.\");\n\nexport const nangoScriptsConfigGet: AppAction<\n typeof NangoScriptsConfigGetInput,\n typeof NangoScriptsConfigGetOutput,\n typeof nango.credential\n> = action(\"NANGO_SCRIPTS_CONFIG_GET\", {\n slug: \"nango-scripts-config-get\",\n name: \"Get Integration Functions Configuration\",\n description: \"Retrieve all integration functions configuration from Nango. Returns the configuration for all integrations including their sync scripts, action scripts, and event handlers. Use this to discover available integrations and their capabilities before triggering syncs or actions.\",\n input: NangoScriptsConfigGetInput,\n output: NangoScriptsConfigGetOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4IAA4I;AAC5M,MAAM,6CAA6C,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAo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AC,SAAS,CAAC,CAAC,SAAS;CACxI,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,aAAa,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAKpF,MAAa,wBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbyC,EAAE,OAAO,EAClD,cAAc,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACxK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wKAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-connection-metadata.cjs","names":["z","action"],"sources":["../../src/actions/set-connection-metadata.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoSetConnectionMetadataInput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata object to set for the connection(s). Can contain string, number, boolean, or null values.\"),\n connection_id: z.union([z.string(), z.array(z.string())]),\n provider_config_key: z.string().describe(\"The integration's unique key (provider config key) used to create the connection.\"),\n}).describe(\"Request model for setting custom metadata on Nango connections.\");\nexport const NangoSetConnectionMetadataOutput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"The metadata that was set on the connection(s)\"),\n connection_id: z.union([z.string(), z.array(z.string())]),\n provider_config_key: z.string().describe(\"The integration's unique key\").nullable(),\n}).passthrough().describe(\"Response model for setting connection metadata.\\nReturns the updated connection information.\");\n\nexport const nangoSetConnectionMetadata = action(\"NANGO_SET_CONNECTION_METADATA\", {\n slug: \"nango-set-connection-metadata\",\n name: \"Set Connection Metadata\",\n description: \"Tool to set custom metadata for one or more Nango connections. Use when you need to attach custom data (tags, labels, context) to connections for filtering, organization, or application-specific purposes.\",\n input: NangoSetConnectionMetadataInput,\n output: NangoSetConnectionMetadataOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"set-connection-metadata.cjs","names":["z","action"],"sources":["../../src/actions/set-connection-metadata.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nango } from \"../app\";\n\nexport const NangoSetConnectionMetadataInput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata object to set for the connection(s). Can contain string, number, boolean, or null values.\"),\n connection_id: z.union([z.string(), z.array(z.string())]),\n provider_config_key: z.string().describe(\"The integration's unique key (provider config key) used to create the connection.\"),\n}).describe(\"Request model for setting custom metadata on Nango connections.\");\nexport const NangoSetConnectionMetadataOutput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"The metadata that was set on the connection(s)\"),\n connection_id: z.union([z.string(), z.array(z.string())]),\n provider_config_key: z.string().describe(\"The integration's unique key\").nullable(),\n}).passthrough().describe(\"Response model for setting connection metadata.\\nReturns the updated connection information.\");\n\nexport const nangoSetConnectionMetadata: AppAction<\n typeof NangoSetConnectionMetadataInput,\n typeof NangoSetConnectionMetadataOutput,\n typeof nango.credential\n> = action(\"NANGO_SET_CONNECTION_METADATA\", {\n slug: \"nango-set-connection-metadata\",\n name: \"Set Connection Metadata\",\n description: \"Tool to set custom metadata for one or more Nango connections. Use when you need to attach custom data (tags, labels, context) to connections for filtering, organization, or application-specific purposes.\",\n input: NangoSetConnectionMetadataInput,\n output: NangoSetConnectionMetadataOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2GAA2G;CAChK,eAAeA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC;CACxD,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;AAC9H,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gDAAgD;CACrG,eAAeA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC;CACxD,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8FAA8F;AAExH,MAAa,6BAITC,eAAAA,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { nango } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/set-connection-metadata.d.ts
|
|
@@ -11,23 +13,7 @@ declare const NangoSetConnectionMetadataOutput: z.ZodObject<{
|
|
|
11
13
|
connection_id: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
12
14
|
provider_config_key: z.ZodNullable<z.ZodString>;
|
|
13
15
|
}, z.core.$loose>;
|
|
14
|
-
declare const nangoSetConnectionMetadata:
|
|
15
|
-
metadata: Record<string, unknown>;
|
|
16
|
-
connection_id: string | string[];
|
|
17
|
-
provider_config_key: string;
|
|
18
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
|
|
19
|
-
connectionId: z.ZodString;
|
|
20
|
-
entityId: z.ZodString;
|
|
21
|
-
instanceId: z.ZodString;
|
|
22
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
-
generic_api_key: z.ZodString;
|
|
24
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
|
|
25
|
-
connectionId: z.ZodString;
|
|
26
|
-
entityId: z.ZodString;
|
|
27
|
-
instanceId: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
generic_api_key: z.ZodString;
|
|
30
|
-
}, z.core.$strip>>]>;
|
|
16
|
+
declare const nangoSetConnectionMetadata: AppAction<typeof NangoSetConnectionMetadataInput, typeof NangoSetConnectionMetadataOutput, typeof nango.credential>;
|
|
31
17
|
//#endregion
|
|
32
18
|
export { nangoSetConnectionMetadata };
|
|
33
19
|
//# sourceMappingURL=set-connection-metadata.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-connection-metadata.d.cts","names":[],"sources":["../../src/actions/set-connection-metadata.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"set-connection-metadata.d.cts","names":[],"sources":["../../src/actions/set-connection-metadata.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAK/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;cAMhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { nango } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/set-connection-metadata.d.ts
|
|
@@ -11,23 +13,7 @@ declare const NangoSetConnectionMetadataOutput: z.ZodObject<{
|
|
|
11
13
|
connection_id: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
12
14
|
provider_config_key: z.ZodNullable<z.ZodString>;
|
|
13
15
|
}, z.core.$loose>;
|
|
14
|
-
declare const nangoSetConnectionMetadata:
|
|
15
|
-
metadata: Record<string, unknown>;
|
|
16
|
-
connection_id: string | string[];
|
|
17
|
-
provider_config_key: string;
|
|
18
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
|
|
19
|
-
connectionId: z.ZodString;
|
|
20
|
-
entityId: z.ZodString;
|
|
21
|
-
instanceId: z.ZodString;
|
|
22
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
-
generic_api_key: z.ZodString;
|
|
24
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
|
|
25
|
-
connectionId: z.ZodString;
|
|
26
|
-
entityId: z.ZodString;
|
|
27
|
-
instanceId: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
generic_api_key: z.ZodString;
|
|
30
|
-
}, z.core.$strip>>]>;
|
|
16
|
+
declare const nangoSetConnectionMetadata: AppAction<typeof NangoSetConnectionMetadataInput, typeof NangoSetConnectionMetadataOutput, typeof nango.credential>;
|
|
31
17
|
//#endregion
|
|
32
18
|
export { nangoSetConnectionMetadata };
|
|
33
19
|
//# sourceMappingURL=set-connection-metadata.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-connection-metadata.d.mts","names":[],"sources":["../../src/actions/set-connection-metadata.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"set-connection-metadata.d.mts","names":[],"sources":["../../src/actions/set-connection-metadata.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAK/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;cAMhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-connection-metadata.mjs","names":[],"sources":["../../src/actions/set-connection-metadata.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoSetConnectionMetadataInput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata object to set for the connection(s). Can contain string, number, boolean, or null values.\"),\n connection_id: z.union([z.string(), z.array(z.string())]),\n provider_config_key: z.string().describe(\"The integration's unique key (provider config key) used to create the connection.\"),\n}).describe(\"Request model for setting custom metadata on Nango connections.\");\nexport const NangoSetConnectionMetadataOutput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"The metadata that was set on the connection(s)\"),\n connection_id: z.union([z.string(), z.array(z.string())]),\n provider_config_key: z.string().describe(\"The integration's unique key\").nullable(),\n}).passthrough().describe(\"Response model for setting connection metadata.\\nReturns the updated connection information.\");\n\nexport const nangoSetConnectionMetadata = action(\"NANGO_SET_CONNECTION_METADATA\", {\n slug: \"nango-set-connection-metadata\",\n name: \"Set Connection Metadata\",\n description: \"Tool to set custom metadata for one or more Nango connections. Use when you need to attach custom data (tags, labels, context) to connections for filtering, organization, or application-specific purposes.\",\n input: NangoSetConnectionMetadataInput,\n output: NangoSetConnectionMetadataOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"set-connection-metadata.mjs","names":[],"sources":["../../src/actions/set-connection-metadata.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nango } from \"../app\";\n\nexport const NangoSetConnectionMetadataInput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata object to set for the connection(s). Can contain string, number, boolean, or null values.\"),\n connection_id: z.union([z.string(), z.array(z.string())]),\n provider_config_key: z.string().describe(\"The integration's unique key (provider config key) used to create the connection.\"),\n}).describe(\"Request model for setting custom metadata on Nango connections.\");\nexport const NangoSetConnectionMetadataOutput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"The metadata that was set on the connection(s)\"),\n connection_id: z.union([z.string(), z.array(z.string())]),\n provider_config_key: z.string().describe(\"The integration's unique key\").nullable(),\n}).passthrough().describe(\"Response model for setting connection metadata.\\nReturns the updated connection information.\");\n\nexport const nangoSetConnectionMetadata: AppAction<\n typeof NangoSetConnectionMetadataInput,\n typeof NangoSetConnectionMetadataOutput,\n typeof nango.credential\n> = action(\"NANGO_SET_CONNECTION_METADATA\", {\n slug: \"nango-set-connection-metadata\",\n name: \"Set Connection Metadata\",\n description: \"Tool to set custom metadata for one or more Nango connections. Use when you need to attach custom data (tags, labels, context) to connections for filtering, organization, or application-specific purposes.\",\n input: NangoSetConnectionMetadataInput,\n output: NangoSetConnectionMetadataOutput,\n});\n"],"mappings":";;;AAiBA,MAAa,6BAIT,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnB6C,EAAE,OAAO;EACtD,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2GAA2G;EAChK,eAAe,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;EACxD,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;CAC9H,CAAC,CAAC,CAAC,SAAS,iEAeH;CACP,QAf8C,EAAE,OAAO;EACvD,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gDAAgD;EACrG,eAAe,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;EACxD,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8FAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-trigger-post.cjs","names":["z","action"],"sources":["../../src/actions/sync-trigger-post.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoSyncTriggerPostInput = z.object({\n syncs: z.array(z.string()).describe(\"List of sync names to trigger. Use an empty list [] to trigger all syncs for the integration.\"),\n sync_mode: z.enum([\"incremental\", \"full_refresh\", \"full_refresh_and_clear_cache\"]).describe(\"Execution mode for the sync trigger.\").optional(),\n connection_id: z.string().describe(\"The ID of the specific connection. If omitted, the syncs will be triggered for all relevant connections under the integration.\").optional(),\n provider_config_key: z.string().describe(\"The ID of the integration (provider configuration) established within Nango. This is required.\"),\n}).describe(\"Request schema for triggering sync process(es) in Nango.\\n\\nTriggers one-off execution of specified sync(s) for a given connection or all\\napplicable connections if no connection is specified.\");\nexport const NangoSyncTriggerPostOutput = z.object({\n success: z.boolean().describe(\"Indicates if the sync trigger was successful.\").nullable(),\n}).passthrough().describe(\"Response schema returned after triggering a sync.\");\n\nexport const nangoSyncTriggerPost = action(\"NANGO_SYNC_TRIGGER_POST\", {\n slug: \"nango-sync-trigger-post\",\n name: \"Trigger Sync\",\n description: \"Tool to trigger sync process(es) manually. Use after establishing a connection and defining syncs. This triggers an additional, one-off execution of the specified sync(s) for a given connection or all applicable connections. Useful when you changed metadata for a connection and want to re-import data.\",\n input: NangoSyncTriggerPostInput,\n output: NangoSyncTriggerPostOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"sync-trigger-post.cjs","names":["z","action"],"sources":["../../src/actions/sync-trigger-post.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nango } from \"../app\";\n\nexport const NangoSyncTriggerPostInput = z.object({\n syncs: z.array(z.string()).describe(\"List of sync names to trigger. Use an empty list [] to trigger all syncs for the integration.\"),\n sync_mode: z.enum([\"incremental\", \"full_refresh\", \"full_refresh_and_clear_cache\"]).describe(\"Execution mode for the sync trigger.\").optional(),\n connection_id: z.string().describe(\"The ID of the specific connection. If omitted, the syncs will be triggered for all relevant connections under the integration.\").optional(),\n provider_config_key: z.string().describe(\"The ID of the integration (provider configuration) established within Nango. This is required.\"),\n}).describe(\"Request schema for triggering sync process(es) in Nango.\\n\\nTriggers one-off execution of specified sync(s) for a given connection or all\\napplicable connections if no connection is specified.\");\nexport const NangoSyncTriggerPostOutput = z.object({\n success: z.boolean().describe(\"Indicates if the sync trigger was successful.\").nullable(),\n}).passthrough().describe(\"Response schema returned after triggering a sync.\");\n\nexport const nangoSyncTriggerPost: AppAction<\n typeof NangoSyncTriggerPostInput,\n typeof NangoSyncTriggerPostOutput,\n typeof nango.credential\n> = action(\"NANGO_SYNC_TRIGGER_POST\", {\n slug: \"nango-sync-trigger-post\",\n name: \"Trigger Sync\",\n description: \"Tool to trigger sync process(es) manually. Use after establishing a connection and defining syncs. This triggers an additional, one-off execution of the specified sync(s) for a given connection or all applicable connections. Useful when you changed metadata for a connection and want to re-import data.\",\n input: NangoSyncTriggerPostInput,\n output: NangoSyncTriggerPostOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+FAA+F;CACnI,WAAWA,IAAAA,EAAE,KAAK;EAAC;EAAe;EAAgB;CAA8B,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC7I,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CAC9K,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;AAC3I,CAAC,CAAC,CAAC,SAAS,kMAAkM;AAC9M,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,EAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,uBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { nango } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/sync-trigger-post.d.ts
|
|
@@ -14,24 +16,7 @@ declare const NangoSyncTriggerPostInput: z.ZodObject<{
|
|
|
14
16
|
declare const NangoSyncTriggerPostOutput: z.ZodObject<{
|
|
15
17
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
16
18
|
}, z.core.$loose>;
|
|
17
|
-
declare const nangoSyncTriggerPost:
|
|
18
|
-
syncs: string[];
|
|
19
|
-
provider_config_key: string;
|
|
20
|
-
sync_mode?: "incremental" | "full_refresh" | "full_refresh_and_clear_cache" | undefined;
|
|
21
|
-
connection_id?: string | undefined;
|
|
22
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
|
|
23
|
-
connectionId: z.ZodString;
|
|
24
|
-
entityId: z.ZodString;
|
|
25
|
-
instanceId: z.ZodString;
|
|
26
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
-
generic_api_key: z.ZodString;
|
|
28
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
|
|
29
|
-
connectionId: z.ZodString;
|
|
30
|
-
entityId: z.ZodString;
|
|
31
|
-
instanceId: z.ZodString;
|
|
32
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
-
generic_api_key: z.ZodString;
|
|
34
|
-
}, z.core.$strip>>]>;
|
|
19
|
+
declare const nangoSyncTriggerPost: AppAction<typeof NangoSyncTriggerPostInput, typeof NangoSyncTriggerPostOutput, typeof nango.credential>;
|
|
35
20
|
//#endregion
|
|
36
21
|
export { nangoSyncTriggerPost };
|
|
37
22
|
//# sourceMappingURL=sync-trigger-post.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-trigger-post.d.cts","names":[],"sources":["../../src/actions/sync-trigger-post.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"sync-trigger-post.d.cts","names":[],"sources":["../../src/actions/sync-trigger-post.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;cAMzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { nango } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/sync-trigger-post.d.ts
|
|
@@ -14,24 +16,7 @@ declare const NangoSyncTriggerPostInput: z.ZodObject<{
|
|
|
14
16
|
declare const NangoSyncTriggerPostOutput: z.ZodObject<{
|
|
15
17
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
16
18
|
}, z.core.$loose>;
|
|
17
|
-
declare const nangoSyncTriggerPost:
|
|
18
|
-
syncs: string[];
|
|
19
|
-
provider_config_key: string;
|
|
20
|
-
sync_mode?: "incremental" | "full_refresh" | "full_refresh_and_clear_cache" | undefined;
|
|
21
|
-
connection_id?: string | undefined;
|
|
22
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
|
|
23
|
-
connectionId: z.ZodString;
|
|
24
|
-
entityId: z.ZodString;
|
|
25
|
-
instanceId: z.ZodString;
|
|
26
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
-
generic_api_key: z.ZodString;
|
|
28
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
|
|
29
|
-
connectionId: z.ZodString;
|
|
30
|
-
entityId: z.ZodString;
|
|
31
|
-
instanceId: z.ZodString;
|
|
32
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
-
generic_api_key: z.ZodString;
|
|
34
|
-
}, z.core.$strip>>]>;
|
|
19
|
+
declare const nangoSyncTriggerPost: AppAction<typeof NangoSyncTriggerPostInput, typeof NangoSyncTriggerPostOutput, typeof nango.credential>;
|
|
35
20
|
//#endregion
|
|
36
21
|
export { nangoSyncTriggerPost };
|
|
37
22
|
//# sourceMappingURL=sync-trigger-post.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-trigger-post.d.mts","names":[],"sources":["../../src/actions/sync-trigger-post.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"sync-trigger-post.d.mts","names":[],"sources":["../../src/actions/sync-trigger-post.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;cAMzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-trigger-post.mjs","names":[],"sources":["../../src/actions/sync-trigger-post.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoSyncTriggerPostInput = z.object({\n syncs: z.array(z.string()).describe(\"List of sync names to trigger. Use an empty list [] to trigger all syncs for the integration.\"),\n sync_mode: z.enum([\"incremental\", \"full_refresh\", \"full_refresh_and_clear_cache\"]).describe(\"Execution mode for the sync trigger.\").optional(),\n connection_id: z.string().describe(\"The ID of the specific connection. If omitted, the syncs will be triggered for all relevant connections under the integration.\").optional(),\n provider_config_key: z.string().describe(\"The ID of the integration (provider configuration) established within Nango. This is required.\"),\n}).describe(\"Request schema for triggering sync process(es) in Nango.\\n\\nTriggers one-off execution of specified sync(s) for a given connection or all\\napplicable connections if no connection is specified.\");\nexport const NangoSyncTriggerPostOutput = z.object({\n success: z.boolean().describe(\"Indicates if the sync trigger was successful.\").nullable(),\n}).passthrough().describe(\"Response schema returned after triggering a sync.\");\n\nexport const nangoSyncTriggerPost = action(\"NANGO_SYNC_TRIGGER_POST\", {\n slug: \"nango-sync-trigger-post\",\n name: \"Trigger Sync\",\n description: \"Tool to trigger sync process(es) manually. Use after establishing a connection and defining syncs. This triggers an additional, one-off execution of the specified sync(s) for a given connection or all applicable connections. Useful when you changed metadata for a connection and want to re-import data.\",\n input: NangoSyncTriggerPostInput,\n output: NangoSyncTriggerPostOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"sync-trigger-post.mjs","names":[],"sources":["../../src/actions/sync-trigger-post.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nango } from \"../app\";\n\nexport const NangoSyncTriggerPostInput = z.object({\n syncs: z.array(z.string()).describe(\"List of sync names to trigger. Use an empty list [] to trigger all syncs for the integration.\"),\n sync_mode: z.enum([\"incremental\", \"full_refresh\", \"full_refresh_and_clear_cache\"]).describe(\"Execution mode for the sync trigger.\").optional(),\n connection_id: z.string().describe(\"The ID of the specific connection. If omitted, the syncs will be triggered for all relevant connections under the integration.\").optional(),\n provider_config_key: z.string().describe(\"The ID of the integration (provider configuration) established within Nango. This is required.\"),\n}).describe(\"Request schema for triggering sync process(es) in Nango.\\n\\nTriggers one-off execution of specified sync(s) for a given connection or all\\napplicable connections if no connection is specified.\");\nexport const NangoSyncTriggerPostOutput = z.object({\n success: z.boolean().describe(\"Indicates if the sync trigger was successful.\").nullable(),\n}).passthrough().describe(\"Response schema returned after triggering a sync.\");\n\nexport const nangoSyncTriggerPost: AppAction<\n typeof NangoSyncTriggerPostInput,\n typeof NangoSyncTriggerPostOutput,\n typeof nango.credential\n> = action(\"NANGO_SYNC_TRIGGER_POST\", {\n slug: \"nango-sync-trigger-post\",\n name: \"Trigger Sync\",\n description: \"Tool to trigger sync process(es) manually. Use after establishing a connection and defining syncs. This triggers an additional, one-off execution of the specified sync(s) for a given connection or all applicable connections. Useful when you changed metadata for a connection and want to re-import data.\",\n input: NangoSyncTriggerPostInput,\n output: NangoSyncTriggerPostOutput,\n});\n"],"mappings":";;;AAgBA,MAAa,uBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBuC,EAAE,OAAO;EAChD,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+FAA+F;EACnI,WAAW,EAAE,KAAK;GAAC;GAAe;GAAgB;EAA8B,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC7I,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;EAC9K,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;CAC3I,CAAC,CAAC,CAAC,SAAS,kMAaH;CACP,QAbwC,EAAE,OAAO,EACjD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,EAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-connection-metadata.cjs","names":["z","action"],"sources":["../../src/actions/update-connection-metadata.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoUpdateConnectionMetadataInput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"The metadata properties to update. Only specified properties will be overridden; existing properties not included will remain unchanged.\"),\n connection_id: z.union([z.string(), z.array(z.string())]),\n provider_config_key: z.string().describe(\"The integration ID (unique key) used to create the connection.\"),\n}).describe(\"Request model for updating connection metadata.\\nUpdates only the specified metadata properties without overwriting the entire metadata object.\");\nexport const NangoUpdateConnectionMetadataOutput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"The updated metadata object with all properties.\"),\n connection_id: z.union([z.string(), z.array(z.string())]),\n provider_config_key: z.string().describe(\"The integration ID used to create the connection.\").nullable(),\n}).passthrough().describe(\"Response model for updating connection metadata.\\nReturns the updated connection details.\");\n\nexport const nangoUpdateConnectionMetadata = action(\"NANGO_UPDATE_CONNECTION_METADATA\", {\n slug: \"nango-update-connection-metadata\",\n name: \"Update Connection Metadata\",\n description: \"Tool to edit custom metadata for one or multiple connections. Use when you need to update specific metadata properties without overwriting the entire metadata object.\",\n input: NangoUpdateConnectionMetadataInput,\n output: NangoUpdateConnectionMetadataOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-connection-metadata.cjs","names":["z","action"],"sources":["../../src/actions/update-connection-metadata.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nango } from \"../app\";\n\nexport const NangoUpdateConnectionMetadataInput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"The metadata properties to update. Only specified properties will be overridden; existing properties not included will remain unchanged.\"),\n connection_id: z.union([z.string(), z.array(z.string())]),\n provider_config_key: z.string().describe(\"The integration ID (unique key) used to create the connection.\"),\n}).describe(\"Request model for updating connection metadata.\\nUpdates only the specified metadata properties without overwriting the entire metadata object.\");\nexport const NangoUpdateConnectionMetadataOutput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"The updated metadata object with all properties.\"),\n connection_id: z.union([z.string(), z.array(z.string())]),\n provider_config_key: z.string().describe(\"The integration ID used to create the connection.\").nullable(),\n}).passthrough().describe(\"Response model for updating connection metadata.\\nReturns the updated connection details.\");\n\nexport const nangoUpdateConnectionMetadata: AppAction<\n typeof NangoUpdateConnectionMetadataInput,\n typeof NangoUpdateConnectionMetadataOutput,\n typeof nango.credential\n> = action(\"NANGO_UPDATE_CONNECTION_METADATA\", {\n slug: \"nango-update-connection-metadata\",\n name: \"Update Connection Metadata\",\n description: \"Tool to edit custom metadata for one or multiple connections. Use when you need to update specific metadata properties without overwriting the entire metadata object.\",\n input: NangoUpdateConnectionMetadataInput,\n output: NangoUpdateConnectionMetadataOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0IAA0I;CAC/L,eAAeA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC;CACxD,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;AAC3G,CAAC,CAAC,CAAC,SAAS,iJAAiJ;AAC7J,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD;CACvG,eAAeA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC;CACxD,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2FAA2F;AAErH,MAAa,gCAITC,eAAAA,OAAO,oCAAoC;CAC7C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { nango } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-connection-metadata.d.ts
|
|
@@ -11,23 +13,7 @@ declare const NangoUpdateConnectionMetadataOutput: z.ZodObject<{
|
|
|
11
13
|
connection_id: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
12
14
|
provider_config_key: z.ZodNullable<z.ZodString>;
|
|
13
15
|
}, z.core.$loose>;
|
|
14
|
-
declare const nangoUpdateConnectionMetadata:
|
|
15
|
-
metadata: Record<string, unknown>;
|
|
16
|
-
connection_id: string | string[];
|
|
17
|
-
provider_config_key: string;
|
|
18
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
|
|
19
|
-
connectionId: z.ZodString;
|
|
20
|
-
entityId: z.ZodString;
|
|
21
|
-
instanceId: z.ZodString;
|
|
22
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
-
generic_api_key: z.ZodString;
|
|
24
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
|
|
25
|
-
connectionId: z.ZodString;
|
|
26
|
-
entityId: z.ZodString;
|
|
27
|
-
instanceId: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
generic_api_key: z.ZodString;
|
|
30
|
-
}, z.core.$strip>>]>;
|
|
16
|
+
declare const nangoUpdateConnectionMetadata: AppAction<typeof NangoUpdateConnectionMetadataInput, typeof NangoUpdateConnectionMetadataOutput, typeof nango.credential>;
|
|
31
17
|
//#endregion
|
|
32
18
|
export { nangoUpdateConnectionMetadata };
|
|
33
19
|
//# sourceMappingURL=update-connection-metadata.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-connection-metadata.d.cts","names":[],"sources":["../../src/actions/update-connection-metadata.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-connection-metadata.d.cts","names":[],"sources":["../../src/actions/update-connection-metadata.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAKlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;cAMnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { nango } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-connection-metadata.d.ts
|
|
@@ -11,23 +13,7 @@ declare const NangoUpdateConnectionMetadataOutput: z.ZodObject<{
|
|
|
11
13
|
connection_id: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
12
14
|
provider_config_key: z.ZodNullable<z.ZodString>;
|
|
13
15
|
}, z.core.$loose>;
|
|
14
|
-
declare const nangoUpdateConnectionMetadata:
|
|
15
|
-
metadata: Record<string, unknown>;
|
|
16
|
-
connection_id: string | string[];
|
|
17
|
-
provider_config_key: string;
|
|
18
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
|
|
19
|
-
connectionId: z.ZodString;
|
|
20
|
-
entityId: z.ZodString;
|
|
21
|
-
instanceId: z.ZodString;
|
|
22
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
-
generic_api_key: z.ZodString;
|
|
24
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
|
|
25
|
-
connectionId: z.ZodString;
|
|
26
|
-
entityId: z.ZodString;
|
|
27
|
-
instanceId: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
generic_api_key: z.ZodString;
|
|
30
|
-
}, z.core.$strip>>]>;
|
|
16
|
+
declare const nangoUpdateConnectionMetadata: AppAction<typeof NangoUpdateConnectionMetadataInput, typeof NangoUpdateConnectionMetadataOutput, typeof nango.credential>;
|
|
31
17
|
//#endregion
|
|
32
18
|
export { nangoUpdateConnectionMetadata };
|
|
33
19
|
//# sourceMappingURL=update-connection-metadata.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-connection-metadata.d.mts","names":[],"sources":["../../src/actions/update-connection-metadata.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-connection-metadata.d.mts","names":[],"sources":["../../src/actions/update-connection-metadata.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAKlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;cAMnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-connection-metadata.mjs","names":[],"sources":["../../src/actions/update-connection-metadata.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoUpdateConnectionMetadataInput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"The metadata properties to update. Only specified properties will be overridden; existing properties not included will remain unchanged.\"),\n connection_id: z.union([z.string(), z.array(z.string())]),\n provider_config_key: z.string().describe(\"The integration ID (unique key) used to create the connection.\"),\n}).describe(\"Request model for updating connection metadata.\\nUpdates only the specified metadata properties without overwriting the entire metadata object.\");\nexport const NangoUpdateConnectionMetadataOutput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"The updated metadata object with all properties.\"),\n connection_id: z.union([z.string(), z.array(z.string())]),\n provider_config_key: z.string().describe(\"The integration ID used to create the connection.\").nullable(),\n}).passthrough().describe(\"Response model for updating connection metadata.\\nReturns the updated connection details.\");\n\nexport const nangoUpdateConnectionMetadata = action(\"NANGO_UPDATE_CONNECTION_METADATA\", {\n slug: \"nango-update-connection-metadata\",\n name: \"Update Connection Metadata\",\n description: \"Tool to edit custom metadata for one or multiple connections. Use when you need to update specific metadata properties without overwriting the entire metadata object.\",\n input: NangoUpdateConnectionMetadataInput,\n output: NangoUpdateConnectionMetadataOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-connection-metadata.mjs","names":[],"sources":["../../src/actions/update-connection-metadata.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nango } from \"../app\";\n\nexport const NangoUpdateConnectionMetadataInput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"The metadata properties to update. Only specified properties will be overridden; existing properties not included will remain unchanged.\"),\n connection_id: z.union([z.string(), z.array(z.string())]),\n provider_config_key: z.string().describe(\"The integration ID (unique key) used to create the connection.\"),\n}).describe(\"Request model for updating connection metadata.\\nUpdates only the specified metadata properties without overwriting the entire metadata object.\");\nexport const NangoUpdateConnectionMetadataOutput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"The updated metadata object with all properties.\"),\n connection_id: z.union([z.string(), z.array(z.string())]),\n provider_config_key: z.string().describe(\"The integration ID used to create the connection.\").nullable(),\n}).passthrough().describe(\"Response model for updating connection metadata.\\nReturns the updated connection details.\");\n\nexport const nangoUpdateConnectionMetadata: AppAction<\n typeof NangoUpdateConnectionMetadataInput,\n typeof NangoUpdateConnectionMetadataOutput,\n typeof nango.credential\n> = action(\"NANGO_UPDATE_CONNECTION_METADATA\", {\n slug: \"nango-update-connection-metadata\",\n name: \"Update Connection Metadata\",\n description: \"Tool to edit custom metadata for one or multiple connections. Use when you need to update specific metadata properties without overwriting the entire metadata object.\",\n input: NangoUpdateConnectionMetadataInput,\n output: NangoUpdateConnectionMetadataOutput,\n});\n"],"mappings":";;;AAiBA,MAAa,gCAIT,OAAO,oCAAoC;CAC7C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnBgD,EAAE,OAAO;EACzD,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0IAA0I;EAC/L,eAAe,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;EACxD,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CAC3G,CAAC,CAAC,CAAC,SAAS,iJAeH;CACP,QAfiD,EAAE,OAAO;EAC1D,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD;EACvG,eAAe,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;EACxD,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2FAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-integration.cjs","names":["z","action"],"sources":["../../src/actions/update-integration.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoUpdateIntegrationInput = z.object({\n unique_key: z.string().describe(\"The integration ID (unique_key) that you created in Nango\"),\n credentials: z.union([z.object({\n type: z.string().describe(\"Credential type (must be 'OAUTH2')\"),\n scopes: z.string().nullable().optional(),\n client_id: z.string().describe(\"OAuth2 client ID\"),\n client_secret: z.string().describe(\"OAuth2 client secret\"),\n webhook_secret: z.string().nullable().optional(),\n}).passthrough().describe(\"OAuth2 credentials schema.\"), z.object({\n type: z.string().describe(\"Credential type (must be 'APP')\"),\n app_id: z.string().describe(\"Application ID\"),\n app_link: z.string().describe(\"Application link/URL\"),\n private_key: z.string().describe(\"Private key for the app\"),\n}).passthrough().describe(\"App credentials schema (e.g., GitHub App).\"), z.object({\n type: z.string().describe(\"Credential type (must be 'APP')\"),\n app_id: z.string().describe(\"Application ID\"),\n app_link: z.string().describe(\"Application link/URL\"),\n client_id: z.string().describe(\"OAuth2 client ID\"),\n private_key: z.string().describe(\"Private key for the app\"),\n client_secret: z.string().describe(\"OAuth2 client secret\"),\n}).passthrough().describe(\"Hybrid app credentials schema combining OAuth2 and App credentials.\")]).optional(),\n display_name: z.string().describe(\"The integration display name\").optional(),\n new_unique_key: z.string().describe(\"New unique integration ID if you want to rename the integration key\").optional(),\n}).describe(\"Request model for updating an integration.\");\nconst NangoUpdateIntegration_IntegrationDataSchema = z.object({\n logo: z.string().describe(\"Absolute path to the logo of this integration (svg)\").nullable().optional(),\n provider: z.string().describe(\"The Nango API Configuration\").nullable(),\n created_at: z.string().describe(\"When it was created\").nullable(),\n unique_key: z.string().describe(\"The integration ID that you created in Nango\").nullable(),\n updated_at: z.string().describe(\"Last time it was updated\").nullable(),\n display_name: z.string().describe(\"The provider display name\").nullable(),\n}).passthrough().describe(\"Integration data model.\");\nexport const NangoUpdateIntegrationOutput = z.object({\n data: NangoUpdateIntegration_IntegrationDataSchema.nullable(),\n}).passthrough().describe(\"Response model for updating an integration.\");\n\nexport const nangoUpdateIntegration = action(\"NANGO_UPDATE_INTEGRATION\", {\n slug: \"nango-update-integration\",\n name: \"Update Integration\",\n description: \"Tool to update an existing integration's configuration. Use when you need to modify an integration's display name, unique key, or credentials.\",\n input: NangoUpdateIntegrationInput,\n output: NangoUpdateIntegrationOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-integration.cjs","names":["z","action"],"sources":["../../src/actions/update-integration.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nango } from \"../app\";\n\nexport const NangoUpdateIntegrationInput = z.object({\n unique_key: z.string().describe(\"The integration ID (unique_key) that you created in Nango\"),\n credentials: z.union([z.object({\n type: z.string().describe(\"Credential type (must be 'OAUTH2')\"),\n scopes: z.string().nullable().optional(),\n client_id: z.string().describe(\"OAuth2 client ID\"),\n client_secret: z.string().describe(\"OAuth2 client secret\"),\n webhook_secret: z.string().nullable().optional(),\n}).passthrough().describe(\"OAuth2 credentials schema.\"), z.object({\n type: z.string().describe(\"Credential type (must be 'APP')\"),\n app_id: z.string().describe(\"Application ID\"),\n app_link: z.string().describe(\"Application link/URL\"),\n private_key: z.string().describe(\"Private key for the app\"),\n}).passthrough().describe(\"App credentials schema (e.g., GitHub App).\"), z.object({\n type: z.string().describe(\"Credential type (must be 'APP')\"),\n app_id: z.string().describe(\"Application ID\"),\n app_link: z.string().describe(\"Application link/URL\"),\n client_id: z.string().describe(\"OAuth2 client ID\"),\n private_key: z.string().describe(\"Private key for the app\"),\n client_secret: z.string().describe(\"OAuth2 client secret\"),\n}).passthrough().describe(\"Hybrid app credentials schema combining OAuth2 and App credentials.\")]).optional(),\n display_name: z.string().describe(\"The integration display name\").optional(),\n new_unique_key: z.string().describe(\"New unique integration ID if you want to rename the integration key\").optional(),\n}).describe(\"Request model for updating an integration.\");\nconst NangoUpdateIntegration_IntegrationDataSchema = z.object({\n logo: z.string().describe(\"Absolute path to the logo of this integration (svg)\").nullable().optional(),\n provider: z.string().describe(\"The Nango API Configuration\").nullable(),\n created_at: z.string().describe(\"When it was created\").nullable(),\n unique_key: z.string().describe(\"The integration ID that you created in Nango\").nullable(),\n updated_at: z.string().describe(\"Last time it was updated\").nullable(),\n display_name: z.string().describe(\"The provider display name\").nullable(),\n}).passthrough().describe(\"Integration data model.\");\nexport const NangoUpdateIntegrationOutput = z.object({\n data: NangoUpdateIntegration_IntegrationDataSchema.nullable(),\n}).passthrough().describe(\"Response model for updating an integration.\");\n\nexport const nangoUpdateIntegration: AppAction<\n typeof NangoUpdateIntegrationInput,\n typeof NangoUpdateIntegrationOutput,\n typeof nango.credential\n> = action(\"NANGO_UPDATE_INTEGRATION\", {\n slug: \"nango-update-integration\",\n name: \"Update Integration\",\n description: \"Tool to update an existing integration's configuration. Use when you need to modify an integration's display name, unique key, or credentials.\",\n input: NangoUpdateIntegrationInput,\n output: NangoUpdateIntegrationOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CAC3F,aAAaA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;GAC/B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;GAC9D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GACvC,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;GACjD,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;GACzD,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4BAA4B;EAAGA,IAAAA,EAAE,OAAO;GAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;GAC3D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;GAC5C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;GACpD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;EAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;EAAGA,IAAAA,EAAE,OAAO;GAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;GAC3D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,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A6C;AAEvE,MAAa,yBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { nango } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-integration.d.ts
|
|
@@ -35,45 +37,7 @@ declare const NangoUpdateIntegrationOutput: z.ZodObject<{
|
|
|
35
37
|
display_name: z.ZodNullable<z.ZodString>;
|
|
36
38
|
}, z.core.$loose>>;
|
|
37
39
|
}, z.core.$loose>;
|
|
38
|
-
declare const nangoUpdateIntegration:
|
|
39
|
-
unique_key: string;
|
|
40
|
-
credentials?: {
|
|
41
|
-
[x: string]: unknown;
|
|
42
|
-
type: string;
|
|
43
|
-
client_id: string;
|
|
44
|
-
client_secret: string;
|
|
45
|
-
scopes?: string | null | undefined;
|
|
46
|
-
webhook_secret?: string | null | undefined;
|
|
47
|
-
} | {
|
|
48
|
-
[x: string]: unknown;
|
|
49
|
-
type: string;
|
|
50
|
-
app_id: string;
|
|
51
|
-
app_link: string;
|
|
52
|
-
private_key: string;
|
|
53
|
-
} | {
|
|
54
|
-
[x: string]: unknown;
|
|
55
|
-
type: string;
|
|
56
|
-
app_id: string;
|
|
57
|
-
app_link: string;
|
|
58
|
-
client_id: string;
|
|
59
|
-
private_key: string;
|
|
60
|
-
client_secret: string;
|
|
61
|
-
} | undefined;
|
|
62
|
-
display_name?: string | undefined;
|
|
63
|
-
new_unique_key?: string | undefined;
|
|
64
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
|
|
65
|
-
connectionId: z.ZodString;
|
|
66
|
-
entityId: z.ZodString;
|
|
67
|
-
instanceId: z.ZodString;
|
|
68
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
69
|
-
generic_api_key: z.ZodString;
|
|
70
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
|
|
71
|
-
connectionId: z.ZodString;
|
|
72
|
-
entityId: z.ZodString;
|
|
73
|
-
instanceId: z.ZodString;
|
|
74
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
75
|
-
generic_api_key: z.ZodString;
|
|
76
|
-
}, z.core.$strip>>]>;
|
|
40
|
+
declare const nangoUpdateIntegration: AppAction<typeof NangoUpdateIntegrationInput, typeof NangoUpdateIntegrationOutput, typeof nango.credential>;
|
|
77
41
|
//#endregion
|
|
78
42
|
export { nangoUpdateIntegration };
|
|
79
43
|
//# sourceMappingURL=update-integration.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-integration.d.cts","names":[],"sources":["../../src/actions/update-integration.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-integration.d.cts","names":[],"sources":["../../src/actions/update-integration.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAgC3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;cAI5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { nango } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-integration.d.ts
|
|
@@ -35,45 +37,7 @@ declare const NangoUpdateIntegrationOutput: z.ZodObject<{
|
|
|
35
37
|
display_name: z.ZodNullable<z.ZodString>;
|
|
36
38
|
}, z.core.$loose>>;
|
|
37
39
|
}, z.core.$loose>;
|
|
38
|
-
declare const nangoUpdateIntegration:
|
|
39
|
-
unique_key: string;
|
|
40
|
-
credentials?: {
|
|
41
|
-
[x: string]: unknown;
|
|
42
|
-
type: string;
|
|
43
|
-
client_id: string;
|
|
44
|
-
client_secret: string;
|
|
45
|
-
scopes?: string | null | undefined;
|
|
46
|
-
webhook_secret?: string | null | undefined;
|
|
47
|
-
} | {
|
|
48
|
-
[x: string]: unknown;
|
|
49
|
-
type: string;
|
|
50
|
-
app_id: string;
|
|
51
|
-
app_link: string;
|
|
52
|
-
private_key: string;
|
|
53
|
-
} | {
|
|
54
|
-
[x: string]: unknown;
|
|
55
|
-
type: string;
|
|
56
|
-
app_id: string;
|
|
57
|
-
app_link: string;
|
|
58
|
-
client_id: string;
|
|
59
|
-
private_key: string;
|
|
60
|
-
client_secret: string;
|
|
61
|
-
} | undefined;
|
|
62
|
-
display_name?: string | undefined;
|
|
63
|
-
new_unique_key?: string | undefined;
|
|
64
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
|
|
65
|
-
connectionId: z.ZodString;
|
|
66
|
-
entityId: z.ZodString;
|
|
67
|
-
instanceId: z.ZodString;
|
|
68
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
69
|
-
generic_api_key: z.ZodString;
|
|
70
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
|
|
71
|
-
connectionId: z.ZodString;
|
|
72
|
-
entityId: z.ZodString;
|
|
73
|
-
instanceId: z.ZodString;
|
|
74
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
75
|
-
generic_api_key: z.ZodString;
|
|
76
|
-
}, z.core.$strip>>]>;
|
|
40
|
+
declare const nangoUpdateIntegration: AppAction<typeof NangoUpdateIntegrationInput, typeof NangoUpdateIntegrationOutput, typeof nango.credential>;
|
|
77
41
|
//#endregion
|
|
78
42
|
export { nangoUpdateIntegration };
|
|
79
43
|
//# sourceMappingURL=update-integration.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-integration.d.mts","names":[],"sources":["../../src/actions/update-integration.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-integration.d.mts","names":[],"sources":["../../src/actions/update-integration.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAgC3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;cAI5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-integration.mjs","names":[],"sources":["../../src/actions/update-integration.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoUpdateIntegrationInput = z.object({\n unique_key: z.string().describe(\"The integration ID (unique_key) that you created in Nango\"),\n credentials: z.union([z.object({\n type: z.string().describe(\"Credential type (must be 'OAUTH2')\"),\n scopes: z.string().nullable().optional(),\n client_id: z.string().describe(\"OAuth2 client ID\"),\n client_secret: z.string().describe(\"OAuth2 client secret\"),\n webhook_secret: z.string().nullable().optional(),\n}).passthrough().describe(\"OAuth2 credentials schema.\"), z.object({\n type: z.string().describe(\"Credential type (must be 'APP')\"),\n app_id: z.string().describe(\"Application ID\"),\n app_link: z.string().describe(\"Application link/URL\"),\n private_key: z.string().describe(\"Private key for the app\"),\n}).passthrough().describe(\"App credentials schema (e.g., GitHub App).\"), z.object({\n type: z.string().describe(\"Credential type (must be 'APP')\"),\n app_id: z.string().describe(\"Application ID\"),\n app_link: z.string().describe(\"Application link/URL\"),\n client_id: z.string().describe(\"OAuth2 client ID\"),\n private_key: z.string().describe(\"Private key for the app\"),\n client_secret: z.string().describe(\"OAuth2 client secret\"),\n}).passthrough().describe(\"Hybrid app credentials schema combining OAuth2 and App credentials.\")]).optional(),\n display_name: z.string().describe(\"The integration display name\").optional(),\n new_unique_key: z.string().describe(\"New unique integration ID if you want to rename the integration key\").optional(),\n}).describe(\"Request model for updating an integration.\");\nconst NangoUpdateIntegration_IntegrationDataSchema = z.object({\n logo: z.string().describe(\"Absolute path to the logo of this integration (svg)\").nullable().optional(),\n provider: z.string().describe(\"The Nango API Configuration\").nullable(),\n created_at: z.string().describe(\"When it was created\").nullable(),\n unique_key: z.string().describe(\"The integration ID that you created in Nango\").nullable(),\n updated_at: z.string().describe(\"Last time it was updated\").nullable(),\n display_name: z.string().describe(\"The provider display name\").nullable(),\n}).passthrough().describe(\"Integration data model.\");\nexport const NangoUpdateIntegrationOutput = z.object({\n data: NangoUpdateIntegration_IntegrationDataSchema.nullable(),\n}).passthrough().describe(\"Response model for updating an integration.\");\n\nexport const nangoUpdateIntegration = action(\"NANGO_UPDATE_INTEGRATION\", {\n slug: \"nango-update-integration\",\n name: \"Update Integration\",\n description: \"Tool to update an existing integration's configuration. Use when you need to modify an integration's display name, unique key, or credentials.\",\n input: NangoUpdateIntegrationInput,\n output: NangoUpdateIntegrationOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-integration.mjs","names":[],"sources":["../../src/actions/update-integration.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nango } from \"../app\";\n\nexport const NangoUpdateIntegrationInput = z.object({\n unique_key: z.string().describe(\"The integration ID (unique_key) that you created in Nango\"),\n credentials: z.union([z.object({\n type: z.string().describe(\"Credential type (must be 'OAUTH2')\"),\n scopes: z.string().nullable().optional(),\n client_id: z.string().describe(\"OAuth2 client ID\"),\n client_secret: z.string().describe(\"OAuth2 client secret\"),\n webhook_secret: z.string().nullable().optional(),\n}).passthrough().describe(\"OAuth2 credentials schema.\"), z.object({\n type: z.string().describe(\"Credential type (must be 'APP')\"),\n app_id: z.string().describe(\"Application ID\"),\n app_link: z.string().describe(\"Application link/URL\"),\n private_key: z.string().describe(\"Private key for the app\"),\n}).passthrough().describe(\"App credentials schema (e.g., GitHub App).\"), z.object({\n type: z.string().describe(\"Credential type (must be 'APP')\"),\n app_id: z.string().describe(\"Application ID\"),\n app_link: z.string().describe(\"Application link/URL\"),\n client_id: z.string().describe(\"OAuth2 client ID\"),\n private_key: z.string().describe(\"Private key for the app\"),\n client_secret: z.string().describe(\"OAuth2 client secret\"),\n}).passthrough().describe(\"Hybrid app credentials schema combining OAuth2 and App credentials.\")]).optional(),\n display_name: z.string().describe(\"The integration display name\").optional(),\n new_unique_key: z.string().describe(\"New unique integration ID if you want to rename the integration key\").optional(),\n}).describe(\"Request model for updating an integration.\");\nconst NangoUpdateIntegration_IntegrationDataSchema = z.object({\n logo: z.string().describe(\"Absolute path to the logo of this integration (svg)\").nullable().optional(),\n provider: z.string().describe(\"The Nango API Configuration\").nullable(),\n created_at: z.string().describe(\"When it was created\").nullable(),\n unique_key: z.string().describe(\"The integration ID that you created in Nango\").nullable(),\n updated_at: z.string().describe(\"Last time it was updated\").nullable(),\n display_name: z.string().describe(\"The provider display name\").nullable(),\n}).passthrough().describe(\"Integration data model.\");\nexport const NangoUpdateIntegrationOutput = z.object({\n data: NangoUpdateIntegration_IntegrationDataSchema.nullable(),\n}).passthrough().describe(\"Response model for updating an integration.\");\n\nexport const nangoUpdateIntegration: AppAction<\n typeof NangoUpdateIntegrationInput,\n typeof NangoUpdateIntegrationOutput,\n typeof nango.credential\n> = action(\"NANGO_UPDATE_INTEGRATION\", {\n slug: \"nango-update-integration\",\n name: \"Update Integration\",\n description: \"Tool to update an existing integration's configuration. Use when you need to modify an integration's display name, unique key, or credentials.\",\n input: NangoUpdateIntegrationInput,\n output: NangoUpdateIntegrationOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8B,EAAE,OAAO;CAClD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CAC3F,aAAa,EAAE,MAAM;EAAC,EAAE,OAAO;GAC/B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;GAC9D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,CAA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ACrG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACtE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAChE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACzF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACrE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yBAAyB;AAKnD,MAAa,yBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb0C,EAAE,OAAO,EACnD,MAAM,6CAA6C,SAAS,EAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAWhB;AACV,CAAC"}
|
package/dist/app.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
|
|
2
|
-
let zod = require("zod");
|
|
3
2
|
//#region src/app.ts
|
|
3
|
+
const credential = { generic_api_key: require("zod").z.string() };
|
|
4
4
|
const nango = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
5
5
|
slug: "nango",
|
|
6
6
|
auth: "keystroke",
|
|
7
|
-
credential
|
|
7
|
+
credential
|
|
8
8
|
});
|
|
9
9
|
//#endregion
|
|
10
10
|
exports.nango = nango;
|