@keystrokehq/nango 0.1.2 → 0.1.4
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/actions/action-trigger-post.cjs +1 -1
- package/dist/actions/action-trigger-post.cjs.map +1 -1
- package/dist/actions/action-trigger-post.d.cts +1 -1
- package/dist/actions/action-trigger-post.d.mts +1 -1
- package/dist/actions/action-trigger-post.mjs +1 -1
- package/dist/actions/action-trigger-post.mjs.map +1 -1
- package/dist/actions/add-connection.cjs +21 -21
- package/dist/actions/add-connection.cjs.map +1 -1
- package/dist/actions/add-connection.d.cts +35 -27
- package/dist/actions/add-connection.d.mts +35 -27
- package/dist/actions/add-connection.mjs +21 -21
- package/dist/actions/add-connection.mjs.map +1 -1
- package/dist/actions/connection-get.cjs +4 -4
- package/dist/actions/connection-get.cjs.map +1 -1
- package/dist/actions/connection-get.d.cts +4 -4
- package/dist/actions/connection-get.d.mts +4 -4
- package/dist/actions/connection-get.mjs +4 -4
- package/dist/actions/connection-get.mjs.map +1 -1
- package/dist/actions/create-connect-session.cjs +6 -6
- package/dist/actions/create-connect-session.cjs.map +1 -1
- package/dist/actions/create-connect-session.d.cts +10 -10
- package/dist/actions/create-connect-session.d.mts +10 -10
- package/dist/actions/create-connect-session.mjs +6 -6
- package/dist/actions/create-connect-session.mjs.map +1 -1
- package/dist/actions/create-integration.cjs +5 -5
- package/dist/actions/create-integration.cjs.map +1 -1
- package/dist/actions/create-integration.d.cts +8 -5
- package/dist/actions/create-integration.d.mts +8 -5
- package/dist/actions/create-integration.mjs +5 -5
- package/dist/actions/create-integration.mjs.map +1 -1
- package/dist/actions/delete-connection.cjs +1 -1
- package/dist/actions/delete-connection.cjs.map +1 -1
- package/dist/actions/delete-connection.d.cts +1 -1
- package/dist/actions/delete-connection.d.mts +1 -1
- package/dist/actions/delete-connection.mjs +1 -1
- package/dist/actions/delete-connection.mjs.map +1 -1
- package/dist/actions/delete-integration.cjs +1 -1
- package/dist/actions/delete-integration.cjs.map +1 -1
- package/dist/actions/delete-integration.d.cts +1 -1
- package/dist/actions/delete-integration.d.mts +1 -1
- package/dist/actions/delete-integration.mjs +1 -1
- package/dist/actions/delete-integration.mjs.map +1 -1
- package/dist/actions/edit-connection.cjs +3 -3
- package/dist/actions/edit-connection.cjs.map +1 -1
- package/dist/actions/edit-connection.d.cts +5 -5
- package/dist/actions/edit-connection.d.mts +5 -5
- package/dist/actions/edit-connection.mjs +3 -3
- package/dist/actions/edit-connection.mjs.map +1 -1
- package/dist/actions/get-connection.cjs +9 -9
- package/dist/actions/get-connection.cjs.map +1 -1
- package/dist/actions/get-connection.d.cts +9 -9
- package/dist/actions/get-connection.d.mts +9 -9
- package/dist/actions/get-connection.mjs +9 -9
- package/dist/actions/get-connection.mjs.map +1 -1
- package/dist/actions/get-environment-variables.cjs +2 -2
- package/dist/actions/get-environment-variables.cjs.map +1 -1
- package/dist/actions/get-environment-variables.d.cts +2 -2
- package/dist/actions/get-environment-variables.d.mts +2 -2
- package/dist/actions/get-environment-variables.mjs +2 -2
- package/dist/actions/get-environment-variables.mjs.map +1 -1
- package/dist/actions/get-integration.cjs +3 -3
- package/dist/actions/get-integration.cjs.map +1 -1
- package/dist/actions/get-integration.d.cts +3 -3
- package/dist/actions/get-integration.d.mts +3 -3
- package/dist/actions/get-integration.mjs +3 -3
- package/dist/actions/get-integration.mjs.map +1 -1
- package/dist/actions/get-proxy.cjs +4 -4
- package/dist/actions/get-proxy.cjs.map +1 -1
- package/dist/actions/get-proxy.d.cts +6 -6
- package/dist/actions/get-proxy.d.mts +6 -6
- package/dist/actions/get-proxy.mjs +4 -4
- package/dist/actions/get-proxy.mjs.map +1 -1
- package/dist/actions/get-sync-status.cjs +5 -5
- package/dist/actions/get-sync-status.cjs.map +1 -1
- package/dist/actions/get-sync-status.d.cts +5 -5
- package/dist/actions/get-sync-status.d.mts +5 -5
- package/dist/actions/get-sync-status.mjs +5 -5
- package/dist/actions/get-sync-status.mjs.map +1 -1
- package/dist/actions/list-connections.cjs +8 -8
- package/dist/actions/list-connections.cjs.map +1 -1
- package/dist/actions/list-connections.d.cts +9 -9
- package/dist/actions/list-connections.d.mts +9 -9
- package/dist/actions/list-connections.mjs +8 -8
- package/dist/actions/list-connections.mjs.map +1 -1
- package/dist/actions/list-integrations.cjs +2 -2
- package/dist/actions/list-integrations.cjs.map +1 -1
- package/dist/actions/list-integrations.d.cts +2 -2
- package/dist/actions/list-integrations.d.mts +2 -2
- package/dist/actions/list-integrations.mjs +2 -2
- package/dist/actions/list-integrations.mjs.map +1 -1
- package/dist/actions/providers-get-get.cjs +1 -1
- package/dist/actions/providers-get-get.cjs.map +1 -1
- package/dist/actions/providers-get-get.d.cts +1 -1
- package/dist/actions/providers-get-get.d.mts +1 -1
- package/dist/actions/providers-get-get.mjs +1 -1
- package/dist/actions/providers-get-get.mjs.map +1 -1
- package/dist/actions/providers-list-get.cjs +2 -2
- package/dist/actions/providers-list-get.cjs.map +1 -1
- package/dist/actions/providers-list-get.d.cts +2 -2
- package/dist/actions/providers-list-get.d.mts +2 -2
- package/dist/actions/providers-list-get.mjs +2 -2
- package/dist/actions/providers-list-get.mjs.map +1 -1
- package/dist/actions/put-proxy.cjs +4 -4
- package/dist/actions/put-proxy.cjs.map +1 -1
- package/dist/actions/put-proxy.d.cts +6 -6
- package/dist/actions/put-proxy.d.mts +6 -6
- package/dist/actions/put-proxy.mjs +4 -4
- package/dist/actions/put-proxy.mjs.map +1 -1
- package/dist/actions/reconnect-session-post.cjs +6 -6
- package/dist/actions/reconnect-session-post.cjs.map +1 -1
- package/dist/actions/reconnect-session-post.d.cts +10 -10
- package/dist/actions/reconnect-session-post.d.mts +10 -10
- package/dist/actions/reconnect-session-post.mjs +6 -6
- package/dist/actions/reconnect-session-post.mjs.map +1 -1
- package/dist/actions/scripts-config-get.cjs +10 -10
- package/dist/actions/scripts-config-get.cjs.map +1 -1
- package/dist/actions/scripts-config-get.d.cts +11 -11
- package/dist/actions/scripts-config-get.d.mts +11 -11
- package/dist/actions/scripts-config-get.mjs +10 -10
- package/dist/actions/scripts-config-get.mjs.map +1 -1
- package/dist/actions/set-connection-metadata.cjs +3 -3
- package/dist/actions/set-connection-metadata.cjs.map +1 -1
- package/dist/actions/set-connection-metadata.d.cts +4 -4
- package/dist/actions/set-connection-metadata.d.mts +4 -4
- package/dist/actions/set-connection-metadata.mjs +3 -3
- package/dist/actions/set-connection-metadata.mjs.map +1 -1
- package/dist/actions/sync-trigger-post.cjs +1 -1
- package/dist/actions/sync-trigger-post.cjs.map +1 -1
- package/dist/actions/sync-trigger-post.d.cts +1 -1
- package/dist/actions/sync-trigger-post.d.mts +1 -1
- package/dist/actions/sync-trigger-post.mjs +1 -1
- package/dist/actions/sync-trigger-post.mjs.map +1 -1
- package/dist/actions/update-connection-metadata.cjs +3 -3
- package/dist/actions/update-connection-metadata.cjs.map +1 -1
- package/dist/actions/update-connection-metadata.d.cts +4 -4
- package/dist/actions/update-connection-metadata.d.mts +4 -4
- package/dist/actions/update-connection-metadata.mjs +3 -3
- package/dist/actions/update-connection-metadata.mjs.map +1 -1
- package/dist/actions/update-integration.cjs +5 -5
- package/dist/actions/update-integration.cjs.map +1 -1
- package/dist/actions/update-integration.d.cts +8 -5
- package/dist/actions/update-integration.d.mts +8 -5
- package/dist/actions/update-integration.mjs +5 -5
- package/dist/actions/update-integration.mjs.map +1 -1
- package/dist/catalog.cjs +1 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +1 -1
- package/dist/catalog.d.mts +1 -1
- package/dist/catalog.mjs +1 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ const NangoActionTriggerPostInput = zod.z.object({
|
|
|
7
7
|
connection_id: zod.z.string().describe("The connection identifier used when creating the connection in Nango."),
|
|
8
8
|
provider_config_key: zod.z.string().describe("The integration's unique key (provider config key) in Nango.")
|
|
9
9
|
});
|
|
10
|
-
const NangoActionTriggerPostOutput = zod.z.object({ result: zod.z.unknown().describe("The result returned by the action. Structure depends on the specific action triggered.").nullable().optional() });
|
|
10
|
+
const NangoActionTriggerPostOutput = zod.z.object({ result: zod.z.unknown().describe("The result returned by the action. Structure depends on the specific action triggered.").nullable().optional() }).passthrough();
|
|
11
11
|
const nangoActionTriggerPost = require_action.action("NANGO_ACTION_TRIGGER_POST", {
|
|
12
12
|
slug: "nango-action-trigger-post",
|
|
13
13
|
name: "Trigger Nango Action",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-trigger-post.cjs","names":["z","action"],"sources":["../../src/actions/action-trigger-post.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoActionTriggerPostInput = z.object({\n input: z.record(z.string(), z.unknown()).describe(\"Optional input payload for the action's exec function. The structure depends on the specific action being triggered.\").optional(),\n action_name: z.string().describe(\"The name of the action to trigger as defined in your Nango integration.\"),\n connection_id: z.string().describe(\"The connection identifier used when creating the connection in Nango.\"),\n provider_config_key: z.string().describe(\"The integration's unique key (provider config key) in Nango.\"),\n});\nexport const NangoActionTriggerPostOutput = z.object({\n result: z.unknown().describe(\"The result returned by the action. Structure depends on the specific action triggered.\").nullable().optional(),\n});\n\nexport const nangoActionTriggerPost = action(\"NANGO_ACTION_TRIGGER_POST\", {\n slug: \"nango-action-trigger-post\",\n name: \"Trigger Nango Action\",\n description: \"Trigger a Nango action to execute a workflow or operation. Use this to run pre-defined actions in your Nango integrations, such as creating issues, sending messages, or fetching data from external APIs. All three of `connection_id`, `provider_config_key`, and `action_name` must simultaneously match a pre-configured integration and connection in Nango — a valid `connection_id` alone is insufficient if the other two don't correspond to an existing setup. Actions may have real upstream side effects (e.g., creating records, sending messages); confirm intent before triggering non-read-only operations.\",\n input: NangoActionTriggerPostInput,\n output: NangoActionTriggerPostOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CACnL,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;CAC1G,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;CAC1G,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;AACzG,CAAC;AACD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC7I,CAAC;
|
|
1
|
+
{"version":3,"file":"action-trigger-post.cjs","names":["z","action"],"sources":["../../src/actions/action-trigger-post.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoActionTriggerPostInput = z.object({\n input: z.record(z.string(), z.unknown()).describe(\"Optional input payload for the action's exec function. The structure depends on the specific action being triggered.\").optional(),\n action_name: z.string().describe(\"The name of the action to trigger as defined in your Nango integration.\"),\n connection_id: z.string().describe(\"The connection identifier used when creating the connection in Nango.\"),\n provider_config_key: z.string().describe(\"The integration's unique key (provider config key) in Nango.\"),\n});\nexport const NangoActionTriggerPostOutput = z.object({\n result: z.unknown().describe(\"The result returned by the action. Structure depends on the specific action triggered.\").nullable().optional(),\n}).passthrough();\n\nexport const nangoActionTriggerPost = action(\"NANGO_ACTION_TRIGGER_POST\", {\n slug: \"nango-action-trigger-post\",\n name: \"Trigger Nango Action\",\n description: \"Trigger a Nango action to execute a workflow or operation. Use this to run pre-defined actions in your Nango integrations, such as creating issues, sending messages, or fetching data from external APIs. All three of `connection_id`, `provider_config_key`, and `action_name` must simultaneously match a pre-configured integration and connection in Nango — a valid `connection_id` alone is insufficient if the other two don't correspond to an existing setup. Actions may have real upstream side effects (e.g., creating records, sending messages); confirm intent before triggering non-read-only operations.\",\n input: NangoActionTriggerPostInput,\n output: NangoActionTriggerPostOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CACnL,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;CAC1G,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;CAC1G,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;AACzG,CAAC;AACD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC7I,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -9,7 +9,7 @@ declare const NangoActionTriggerPostInput: z.ZodObject<{
|
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
declare const NangoActionTriggerPostOutput: z.ZodObject<{
|
|
11
11
|
result: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
12
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>;
|
|
13
13
|
declare const nangoActionTriggerPost: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
14
|
action_name: string;
|
|
15
15
|
connection_id: string;
|
|
@@ -9,7 +9,7 @@ declare const NangoActionTriggerPostInput: z.ZodObject<{
|
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
declare const NangoActionTriggerPostOutput: z.ZodObject<{
|
|
11
11
|
result: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
12
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>;
|
|
13
13
|
declare const nangoActionTriggerPost: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
14
|
action_name: string;
|
|
15
15
|
connection_id: string;
|
|
@@ -10,7 +10,7 @@ const nangoActionTriggerPost = action("NANGO_ACTION_TRIGGER_POST", {
|
|
|
10
10
|
connection_id: z.string().describe("The connection identifier used when creating the connection in Nango."),
|
|
11
11
|
provider_config_key: z.string().describe("The integration's unique key (provider config key) in Nango.")
|
|
12
12
|
}),
|
|
13
|
-
output: z.object({ result: z.unknown().describe("The result returned by the action. Structure depends on the specific action triggered.").nullable().optional() })
|
|
13
|
+
output: z.object({ result: z.unknown().describe("The result returned by the action. Structure depends on the specific action triggered.").nullable().optional() }).passthrough()
|
|
14
14
|
});
|
|
15
15
|
//#endregion
|
|
16
16
|
export { nangoActionTriggerPost };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-trigger-post.mjs","names":[],"sources":["../../src/actions/action-trigger-post.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoActionTriggerPostInput = z.object({\n input: z.record(z.string(), z.unknown()).describe(\"Optional input payload for the action's exec function. The structure depends on the specific action being triggered.\").optional(),\n action_name: z.string().describe(\"The name of the action to trigger as defined in your Nango integration.\"),\n connection_id: z.string().describe(\"The connection identifier used when creating the connection in Nango.\"),\n provider_config_key: z.string().describe(\"The integration's unique key (provider config key) in Nango.\"),\n});\nexport const NangoActionTriggerPostOutput = z.object({\n result: z.unknown().describe(\"The result returned by the action. Structure depends on the specific action triggered.\").nullable().optional(),\n});\n\nexport const nangoActionTriggerPost = action(\"NANGO_ACTION_TRIGGER_POST\", {\n slug: \"nango-action-trigger-post\",\n name: \"Trigger Nango Action\",\n description: \"Trigger a Nango action to execute a workflow or operation. Use this to run pre-defined actions in your Nango integrations, such as creating issues, sending messages, or fetching data from external APIs. All three of `connection_id`, `provider_config_key`, and `action_name` must simultaneously match a pre-configured integration and connection in Nango — a valid `connection_id` alone is insufficient if the other two don't correspond to an existing setup. Actions may have real upstream side effects (e.g., creating records, sending messages); confirm intent before triggering non-read-only operations.\",\n input: NangoActionTriggerPostInput,\n output: NangoActionTriggerPostOutput,\n});\n"],"mappings":";;AAcA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdyC,EAAE,OAAO;EAClD,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;EACnL,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;EAC1G,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;EAC1G,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACzG,CASS;CACP,QAT0C,EAAE,OAAO,EACnD,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC7I,
|
|
1
|
+
{"version":3,"file":"action-trigger-post.mjs","names":[],"sources":["../../src/actions/action-trigger-post.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoActionTriggerPostInput = z.object({\n input: z.record(z.string(), z.unknown()).describe(\"Optional input payload for the action's exec function. The structure depends on the specific action being triggered.\").optional(),\n action_name: z.string().describe(\"The name of the action to trigger as defined in your Nango integration.\"),\n connection_id: z.string().describe(\"The connection identifier used when creating the connection in Nango.\"),\n provider_config_key: z.string().describe(\"The integration's unique key (provider config key) in Nango.\"),\n});\nexport const NangoActionTriggerPostOutput = z.object({\n result: z.unknown().describe(\"The result returned by the action. Structure depends on the specific action triggered.\").nullable().optional(),\n}).passthrough();\n\nexport const nangoActionTriggerPost = action(\"NANGO_ACTION_TRIGGER_POST\", {\n slug: \"nango-action-trigger-post\",\n name: \"Trigger Nango Action\",\n description: \"Trigger a Nango action to execute a workflow or operation. Use this to run pre-defined actions in your Nango integrations, such as creating issues, sending messages, or fetching data from external APIs. All three of `connection_id`, `provider_config_key`, and `action_name` must simultaneously match a pre-configured integration and connection in Nango — a valid `connection_id` alone is insufficient if the other two don't correspond to an existing setup. Actions may have real upstream side effects (e.g., creating records, sending messages); confirm intent before triggering non-read-only operations.\",\n input: NangoActionTriggerPostInput,\n output: NangoActionTriggerPostOutput,\n});\n"],"mappings":";;AAcA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdyC,EAAE,OAAO;EAClD,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;EACnL,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;EAC1G,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;EAC1G,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACzG,CASS;CACP,QAT0C,EAAE,OAAO,EACnD,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC7I,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -2,79 +2,79 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/add-connection.ts
|
|
4
4
|
const NangoAddConnectionInput = zod.z.object({
|
|
5
|
-
tags: zod.z.
|
|
5
|
+
tags: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Connection tags as key/value string pairs. Keys are normalized to lowercase. Values max length is 255 chars.").optional(),
|
|
6
6
|
end_user: zod.z.object({
|
|
7
7
|
id: zod.z.string().describe("End user ID"),
|
|
8
|
-
tags: zod.z.
|
|
8
|
+
tags: zod.z.record(zod.z.string(), zod.z.unknown()).describe("End user tags").optional(),
|
|
9
9
|
email: zod.z.string().describe("End user email").optional(),
|
|
10
10
|
display_name: zod.z.string().describe("End user display name").optional()
|
|
11
11
|
}).describe("End user information (deprecated, use tags instead).").optional(),
|
|
12
|
-
metadata: zod.z.
|
|
12
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Metadata to be attached to the connection (required for some OAuth APIs).").optional(),
|
|
13
13
|
credentials: zod.z.union([
|
|
14
14
|
zod.z.object({
|
|
15
15
|
type: zod.z.string().describe("Credential type, must be 'OAUTH1'"),
|
|
16
16
|
oauth_token: zod.z.string().describe("OAuth 1.0 token"),
|
|
17
17
|
oauth_token_secret: zod.z.string().describe("OAuth 1.0 token secret")
|
|
18
|
-
}).describe("OAuth1 credentials for the connection."),
|
|
18
|
+
}).passthrough().describe("OAuth1 credentials for the connection."),
|
|
19
19
|
zod.z.object({
|
|
20
20
|
type: zod.z.string().describe("Credential type, must be 'OAUTH2'"),
|
|
21
21
|
expires_at: zod.z.string().nullable().optional(),
|
|
22
22
|
access_token: zod.z.string().describe("OAuth 2.0 access token"),
|
|
23
23
|
refresh_token: zod.z.string().nullable().optional(),
|
|
24
|
-
config_override: zod.z.
|
|
25
|
-
}).describe("OAuth2 credentials for the connection."),
|
|
24
|
+
config_override: zod.z.record(zod.z.string(), zod.z.unknown()).nullable().optional()
|
|
25
|
+
}).passthrough().describe("OAuth2 credentials for the connection."),
|
|
26
26
|
zod.z.object({
|
|
27
27
|
type: zod.z.string().describe("Credential type, must be 'BASIC'"),
|
|
28
28
|
password: zod.z.string().describe("Password for basic authentication"),
|
|
29
29
|
username: zod.z.string().describe("Username for basic authentication")
|
|
30
|
-
}).describe("Basic authentication credentials for the connection."),
|
|
30
|
+
}).passthrough().describe("Basic authentication credentials for the connection."),
|
|
31
31
|
zod.z.object({
|
|
32
32
|
type: zod.z.string().describe("Credential type, must be 'API_KEY'"),
|
|
33
33
|
apiKey: zod.z.string().describe("API key for authentication")
|
|
34
|
-
}).describe("API Key credentials for the connection."),
|
|
34
|
+
}).passthrough().describe("API Key credentials for the connection."),
|
|
35
35
|
zod.z.object({
|
|
36
36
|
type: zod.z.string().describe("Credential type, must be 'OAUTH2_CC'"),
|
|
37
37
|
token: zod.z.string().describe("OAuth 2.0 token"),
|
|
38
38
|
client_id: zod.z.string().describe("OAuth 2.0 client ID"),
|
|
39
39
|
expires_at: zod.z.string().nullable().optional(),
|
|
40
40
|
client_secret: zod.z.string().describe("OAuth 2.0 client secret")
|
|
41
|
-
}).describe("OAuth2 Client credentials for the connection."),
|
|
42
|
-
zod.z.object({ type: zod.z.string().describe("Credential type, must be 'NONE' for unauthenticated") }).describe("Unauthenticated credentials for the connection."),
|
|
41
|
+
}).passthrough().describe("OAuth2 Client credentials for the connection."),
|
|
42
|
+
zod.z.object({ type: zod.z.string().describe("Credential type, must be 'NONE' for unauthenticated") }).passthrough().describe("Unauthenticated credentials for the connection."),
|
|
43
43
|
zod.z.object({
|
|
44
44
|
type: zod.z.string().describe("Credential type, must be 'TBA'"),
|
|
45
45
|
token_id: zod.z.string().describe("Token ID"),
|
|
46
46
|
token_secret: zod.z.string().describe("Token secret"),
|
|
47
|
-
config_override: zod.z.
|
|
48
|
-
}).describe("TBA (Token-Based Authentication) credentials for the connection."),
|
|
47
|
+
config_override: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Configuration override")
|
|
48
|
+
}).passthrough().describe("TBA (Token-Based Authentication) credentials for the connection."),
|
|
49
49
|
zod.z.object({
|
|
50
50
|
type: zod.z.string().describe("Credential type, must be 'APP'"),
|
|
51
51
|
app_id: zod.z.string().describe("GitHub app ID"),
|
|
52
52
|
installation_id: zod.z.string().describe("GitHub installation ID")
|
|
53
|
-
}).describe("GitHub App credentials for the connection.")
|
|
53
|
+
}).passthrough().describe("GitHub App credentials for the connection.")
|
|
54
54
|
]),
|
|
55
55
|
connection_id: zod.z.string().describe("The connection ID to use for this connection. If not provided, Nango will generate one.").optional(),
|
|
56
|
-
connection_config: zod.z.
|
|
56
|
+
connection_config: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional configuration to be attached to the connection (required for some OAuth APIs).").optional(),
|
|
57
57
|
provider_config_key: zod.z.string().describe("The integration ID that you created on Nango (also called provider config key).")
|
|
58
58
|
}).describe("Request model for adding a connection to Nango.");
|
|
59
59
|
const NangoAddConnection_ConnectionErrorSchema = zod.z.object({
|
|
60
60
|
type: zod.z.string().describe("Error type (e.g., 'auth', 'sync').").nullable(),
|
|
61
61
|
log_id: zod.z.string().describe("Log ID for this error.").nullable()
|
|
62
|
-
}).describe("Model for connection errors.");
|
|
62
|
+
}).passthrough().describe("Model for connection errors.");
|
|
63
63
|
const NangoAddConnectionOutput = zod.z.object({
|
|
64
64
|
id: zod.z.number().int().describe("Internal Nango connection identifier.").nullable(),
|
|
65
|
-
tags: zod.z.
|
|
65
|
+
tags: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Connection tags (key/value strings)."),
|
|
66
66
|
errors: zod.z.array(NangoAddConnection_ConnectionErrorSchema).describe("List of connection errors if any."),
|
|
67
|
-
end_user: zod.z.
|
|
68
|
-
metadata: zod.z.
|
|
67
|
+
end_user: zod.z.record(zod.z.string(), zod.z.unknown()).describe("End user information if available.").nullable().optional(),
|
|
68
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Connection metadata."),
|
|
69
69
|
provider: zod.z.string().describe("Provider/integration name (e.g., 'github', 'slack').").nullable(),
|
|
70
70
|
created_at: zod.z.string().describe("Connection creation timestamp in ISO 8601 format.").nullable(),
|
|
71
71
|
updated_at: zod.z.string().describe("Connection last update timestamp in ISO 8601 format.").nullable(),
|
|
72
|
-
credentials: zod.z.
|
|
72
|
+
credentials: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The credentials attached to the connection."),
|
|
73
73
|
connection_id: zod.z.string().describe("The connection ID used to create the connection.").nullable(),
|
|
74
74
|
last_fetched_at: zod.z.string().describe("Last fetched timestamp in ISO 8601 format.").nullable(),
|
|
75
|
-
connection_config: zod.z.
|
|
75
|
+
connection_config: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Connection configuration."),
|
|
76
76
|
provider_config_key: zod.z.string().describe("The integration ID that was used.").nullable()
|
|
77
|
-
}).describe("Response model for adding a connection.");
|
|
77
|
+
}).passthrough().describe("Response model for adding a connection.");
|
|
78
78
|
const nangoAddConnection = require_action.action("NANGO_ADD_CONNECTION", {
|
|
79
79
|
slug: "nango-add-connection",
|
|
80
80
|
name: "Add Connection",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-connection.cjs","names":["z","action"],"sources":["../../src/actions/add-connection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoAddConnectionInput = z.object({\n tags: z.object({}).describe(\"Connection tags as key/value string pairs. Keys are normalized to lowercase. Values max length is 255 chars.\").optional(),\n end_user: z.object({\n id: z.string().describe(\"End user ID\"),\n tags: z.object({}).describe(\"End user tags\").optional(),\n email: z.string().describe(\"End user email\").optional(),\n display_name: z.string().describe(\"End user display name\").optional(),\n}).describe(\"End user information (deprecated, use tags instead).\").optional(),\n metadata: z.object({}).describe(\"Metadata to be attached to the connection (required for some OAuth APIs).\").optional(),\n credentials: z.union([z.object({\n type: z.string().describe(\"Credential type, must be 'OAUTH1'\"),\n oauth_token: z.string().describe(\"OAuth 1.0 token\"),\n oauth_token_secret: z.string().describe(\"OAuth 1.0 token secret\"),\n}).describe(\"OAuth1 credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'OAUTH2'\"),\n expires_at: z.string().nullable().optional(),\n access_token: z.string().describe(\"OAuth 2.0 access token\"),\n refresh_token: z.string().nullable().optional(),\n config_override: z.object({}).nullable().optional(),\n}).describe(\"OAuth2 credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'BASIC'\"),\n password: z.string().describe(\"Password for basic authentication\"),\n username: z.string().describe(\"Username for basic authentication\"),\n}).describe(\"Basic authentication credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'API_KEY'\"),\n apiKey: z.string().describe(\"API key for authentication\"),\n}).describe(\"API Key credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'OAUTH2_CC'\"),\n token: z.string().describe(\"OAuth 2.0 token\"),\n client_id: z.string().describe(\"OAuth 2.0 client ID\"),\n expires_at: z.string().nullable().optional(),\n client_secret: z.string().describe(\"OAuth 2.0 client secret\"),\n}).describe(\"OAuth2 Client credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'NONE' for unauthenticated\"),\n}).describe(\"Unauthenticated credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'TBA'\"),\n token_id: z.string().describe(\"Token ID\"),\n token_secret: z.string().describe(\"Token secret\"),\n config_override: z.object({}).describe(\"Configuration override\"),\n}).describe(\"TBA (Token-Based Authentication) credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'APP'\"),\n app_id: z.string().describe(\"GitHub app ID\"),\n installation_id: z.string().describe(\"GitHub installation ID\"),\n}).describe(\"GitHub App credentials for the connection.\")]),\n connection_id: z.string().describe(\"The connection ID to use for this connection. If not provided, Nango will generate one.\").optional(),\n connection_config: z.object({}).describe(\"Additional configuration to be attached to the connection (required for some OAuth APIs).\").optional(),\n provider_config_key: z.string().describe(\"The integration ID that you created on Nango (also called provider config key).\"),\n}).describe(\"Request model for adding a connection to Nango.\");\nconst NangoAddConnection_ConnectionErrorSchema = z.object({\n type: z.string().describe(\"Error type (e.g., 'auth', 'sync').\").nullable(),\n log_id: z.string().describe(\"Log ID for this error.\").nullable(),\n}).describe(\"Model for connection errors.\");\nexport const NangoAddConnectionOutput = z.object({\n id: z.number().int().describe(\"Internal Nango connection identifier.\").nullable(),\n tags: z.object({}).describe(\"Connection tags (key/value strings).\"),\n errors: z.array(NangoAddConnection_ConnectionErrorSchema).describe(\"List of connection errors if any.\"),\n end_user: z.object({}).describe(\"End user information if available.\").nullable().optional(),\n metadata: z.object({}).describe(\"Connection metadata.\"),\n provider: z.string().describe(\"Provider/integration name (e.g., 'github', 'slack').\").nullable(),\n created_at: z.string().describe(\"Connection creation timestamp in ISO 8601 format.\").nullable(),\n updated_at: z.string().describe(\"Connection last update timestamp in ISO 8601 format.\").nullable(),\n credentials: z.object({}).describe(\"The credentials attached to the connection.\"),\n connection_id: z.string().describe(\"The connection ID used to create the connection.\").nullable(),\n last_fetched_at: z.string().describe(\"Last fetched timestamp in ISO 8601 format.\").nullable(),\n connection_config: z.object({}).describe(\"Connection configuration.\"),\n provider_config_key: z.string().describe(\"The integration ID that was used.\").nullable(),\n}).describe(\"Response model for adding a connection.\");\n\nexport const nangoAddConnection = action(\"NANGO_ADD_CONNECTION\", {\n slug: \"nango-add-connection\",\n name: \"Add Connection\",\n description: \"Tool to add a connection with existing credentials to Nango. Use when you want to bulk import existing access tokens into Nango.\",\n input: NangoAddConnectionInput,\n output: NangoAddConnectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;CACrJ,UAAUA,IAAAA,EAAE,OAAO;EACnB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;EACrC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;EACtD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EACtD,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACtE,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC3E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACtH,aAAaA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;GAC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AS;AACzF,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAErD,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"add-connection.cjs","names":["z","action"],"sources":["../../src/actions/add-connection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoAddConnectionInput = z.object({\n tags: z.record(z.string(), z.unknown()).describe(\"Connection tags as key/value string pairs. Keys are normalized to lowercase. Values max length is 255 chars.\").optional(),\n end_user: z.object({\n id: z.string().describe(\"End user ID\"),\n tags: z.record(z.string(), z.unknown()).describe(\"End user tags\").optional(),\n email: z.string().describe(\"End user email\").optional(),\n display_name: z.string().describe(\"End user display name\").optional(),\n}).describe(\"End user information (deprecated, use tags instead).\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata to be attached to the connection (required for some OAuth APIs).\").optional(),\n credentials: z.union([z.object({\n type: z.string().describe(\"Credential type, must be 'OAUTH1'\"),\n oauth_token: z.string().describe(\"OAuth 1.0 token\"),\n oauth_token_secret: z.string().describe(\"OAuth 1.0 token secret\"),\n}).passthrough().describe(\"OAuth1 credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'OAUTH2'\"),\n expires_at: z.string().nullable().optional(),\n access_token: z.string().describe(\"OAuth 2.0 access token\"),\n refresh_token: z.string().nullable().optional(),\n config_override: z.record(z.string(), z.unknown()).nullable().optional(),\n}).passthrough().describe(\"OAuth2 credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'BASIC'\"),\n password: z.string().describe(\"Password for basic authentication\"),\n username: z.string().describe(\"Username for basic authentication\"),\n}).passthrough().describe(\"Basic authentication credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'API_KEY'\"),\n apiKey: z.string().describe(\"API key for authentication\"),\n}).passthrough().describe(\"API Key credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'OAUTH2_CC'\"),\n token: z.string().describe(\"OAuth 2.0 token\"),\n client_id: z.string().describe(\"OAuth 2.0 client ID\"),\n expires_at: z.string().nullable().optional(),\n client_secret: z.string().describe(\"OAuth 2.0 client secret\"),\n}).passthrough().describe(\"OAuth2 Client credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'NONE' for unauthenticated\"),\n}).passthrough().describe(\"Unauthenticated credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'TBA'\"),\n token_id: z.string().describe(\"Token ID\"),\n token_secret: z.string().describe(\"Token secret\"),\n config_override: z.record(z.string(), z.unknown()).describe(\"Configuration override\"),\n}).passthrough().describe(\"TBA (Token-Based Authentication) credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'APP'\"),\n app_id: z.string().describe(\"GitHub app ID\"),\n installation_id: z.string().describe(\"GitHub installation ID\"),\n}).passthrough().describe(\"GitHub App credentials for the connection.\")]),\n connection_id: z.string().describe(\"The connection ID to use for this connection. If not provided, Nango will generate one.\").optional(),\n connection_config: z.record(z.string(), z.unknown()).describe(\"Additional configuration to be attached to the connection (required for some OAuth APIs).\").optional(),\n provider_config_key: z.string().describe(\"The integration ID that you created on Nango (also called provider config key).\"),\n}).describe(\"Request model for adding a connection to Nango.\");\nconst NangoAddConnection_ConnectionErrorSchema = z.object({\n type: z.string().describe(\"Error type (e.g., 'auth', 'sync').\").nullable(),\n log_id: z.string().describe(\"Log ID for this error.\").nullable(),\n}).passthrough().describe(\"Model for connection errors.\");\nexport const NangoAddConnectionOutput = z.object({\n id: z.number().int().describe(\"Internal Nango connection identifier.\").nullable(),\n tags: z.record(z.string(), z.unknown()).describe(\"Connection tags (key/value strings).\"),\n errors: z.array(NangoAddConnection_ConnectionErrorSchema).describe(\"List of connection errors if any.\"),\n end_user: z.record(z.string(), z.unknown()).describe(\"End user information if available.\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Connection metadata.\"),\n provider: z.string().describe(\"Provider/integration name (e.g., 'github', 'slack').\").nullable(),\n created_at: z.string().describe(\"Connection creation timestamp in ISO 8601 format.\").nullable(),\n updated_at: z.string().describe(\"Connection last update timestamp in ISO 8601 format.\").nullable(),\n credentials: z.record(z.string(), z.unknown()).describe(\"The credentials attached to the connection.\"),\n connection_id: z.string().describe(\"The connection ID used to create the connection.\").nullable(),\n last_fetched_at: z.string().describe(\"Last fetched timestamp in ISO 8601 format.\").nullable(),\n connection_config: z.record(z.string(), z.unknown()).describe(\"Connection configuration.\"),\n provider_config_key: z.string().describe(\"The integration ID that was used.\").nullable(),\n}).passthrough().describe(\"Response model for adding a connection.\");\n\nexport const nangoAddConnection = action(\"NANGO_ADD_CONNECTION\", {\n slug: \"nango-add-connection\",\n name: \"Add Connection\",\n description: \"Tool to add a connection with existing credentials to Nango. Use when you want to bulk import existing access tokens into Nango.\",\n input: NangoAddConnectionInput,\n output: NangoAddConnectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;CAC1K,UAAUA,IAAAA,EAAE,OAAO;EACnB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;EACrC,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;EAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EACtD,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACtE,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC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UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC/F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC9F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6CAA6C;CACrG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAChG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC5F,mBAAmBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2BAA2B;CACzF,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -2,118 +2,126 @@ import { z } from "zod";
|
|
|
2
2
|
|
|
3
3
|
//#region src/actions/add-connection.d.ts
|
|
4
4
|
declare const NangoAddConnectionInput: z.ZodObject<{
|
|
5
|
-
tags: z.ZodOptional<z.
|
|
5
|
+
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6
6
|
end_user: z.ZodOptional<z.ZodObject<{
|
|
7
7
|
id: z.ZodString;
|
|
8
|
-
tags: z.ZodOptional<z.
|
|
8
|
+
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9
9
|
email: z.ZodOptional<z.ZodString>;
|
|
10
10
|
display_name: z.ZodOptional<z.ZodString>;
|
|
11
11
|
}, z.core.$strip>>;
|
|
12
|
-
metadata: z.ZodOptional<z.
|
|
12
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
13
|
credentials: z.ZodUnion<readonly [z.ZodObject<{
|
|
14
14
|
type: z.ZodString;
|
|
15
15
|
oauth_token: z.ZodString;
|
|
16
16
|
oauth_token_secret: z.ZodString;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
18
18
|
type: z.ZodString;
|
|
19
19
|
expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
access_token: z.ZodString;
|
|
21
21
|
refresh_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
-
config_override: z.ZodOptional<z.ZodNullable<z.
|
|
23
|
-
}, z.core.$
|
|
22
|
+
config_override: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
23
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
24
24
|
type: z.ZodString;
|
|
25
25
|
password: z.ZodString;
|
|
26
26
|
username: z.ZodString;
|
|
27
|
-
}, z.core.$
|
|
27
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
28
28
|
type: z.ZodString;
|
|
29
29
|
apiKey: z.ZodString;
|
|
30
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
31
31
|
type: z.ZodString;
|
|
32
32
|
token: z.ZodString;
|
|
33
33
|
client_id: z.ZodString;
|
|
34
34
|
expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
35
|
client_secret: z.ZodString;
|
|
36
|
-
}, z.core.$
|
|
36
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
37
37
|
type: z.ZodString;
|
|
38
|
-
}, z.core.$
|
|
38
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
39
39
|
type: z.ZodString;
|
|
40
40
|
token_id: z.ZodString;
|
|
41
41
|
token_secret: z.ZodString;
|
|
42
|
-
config_override: z.
|
|
43
|
-
}, z.core.$
|
|
42
|
+
config_override: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
43
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
44
44
|
type: z.ZodString;
|
|
45
45
|
app_id: z.ZodString;
|
|
46
46
|
installation_id: z.ZodString;
|
|
47
|
-
}, z.core.$
|
|
47
|
+
}, z.core.$loose>]>;
|
|
48
48
|
connection_id: z.ZodOptional<z.ZodString>;
|
|
49
|
-
connection_config: z.ZodOptional<z.
|
|
49
|
+
connection_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
50
50
|
provider_config_key: z.ZodString;
|
|
51
51
|
}, z.core.$strip>;
|
|
52
52
|
declare const NangoAddConnectionOutput: z.ZodObject<{
|
|
53
53
|
id: z.ZodNullable<z.ZodNumber>;
|
|
54
|
-
tags: z.
|
|
54
|
+
tags: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
55
55
|
errors: z.ZodArray<z.ZodObject<{
|
|
56
56
|
type: z.ZodNullable<z.ZodString>;
|
|
57
57
|
log_id: z.ZodNullable<z.ZodString>;
|
|
58
|
-
}, z.core.$
|
|
59
|
-
end_user: z.ZodOptional<z.ZodNullable<z.
|
|
60
|
-
metadata: z.
|
|
58
|
+
}, z.core.$loose>>;
|
|
59
|
+
end_user: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
60
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
61
61
|
provider: z.ZodNullable<z.ZodString>;
|
|
62
62
|
created_at: z.ZodNullable<z.ZodString>;
|
|
63
63
|
updated_at: z.ZodNullable<z.ZodString>;
|
|
64
|
-
credentials: z.
|
|
64
|
+
credentials: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
65
65
|
connection_id: z.ZodNullable<z.ZodString>;
|
|
66
66
|
last_fetched_at: z.ZodNullable<z.ZodString>;
|
|
67
|
-
connection_config: z.
|
|
67
|
+
connection_config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
68
68
|
provider_config_key: z.ZodNullable<z.ZodString>;
|
|
69
|
-
}, z.core.$
|
|
69
|
+
}, z.core.$loose>;
|
|
70
70
|
declare const nangoAddConnection: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
71
71
|
credentials: {
|
|
72
|
+
[x: string]: unknown;
|
|
72
73
|
type: string;
|
|
73
74
|
oauth_token: string;
|
|
74
75
|
oauth_token_secret: string;
|
|
75
76
|
} | {
|
|
77
|
+
[x: string]: unknown;
|
|
76
78
|
type: string;
|
|
77
79
|
access_token: string;
|
|
78
80
|
expires_at?: string | null | undefined;
|
|
79
81
|
refresh_token?: string | null | undefined;
|
|
80
|
-
config_override?: Record<string,
|
|
82
|
+
config_override?: Record<string, unknown> | null | undefined;
|
|
81
83
|
} | {
|
|
84
|
+
[x: string]: unknown;
|
|
82
85
|
type: string;
|
|
83
86
|
password: string;
|
|
84
87
|
username: string;
|
|
85
88
|
} | {
|
|
89
|
+
[x: string]: unknown;
|
|
86
90
|
type: string;
|
|
87
91
|
apiKey: string;
|
|
88
92
|
} | {
|
|
93
|
+
[x: string]: unknown;
|
|
89
94
|
type: string;
|
|
90
95
|
token: string;
|
|
91
96
|
client_id: string;
|
|
92
97
|
client_secret: string;
|
|
93
98
|
expires_at?: string | null | undefined;
|
|
94
99
|
} | {
|
|
100
|
+
[x: string]: unknown;
|
|
95
101
|
type: string;
|
|
96
102
|
} | {
|
|
103
|
+
[x: string]: unknown;
|
|
97
104
|
type: string;
|
|
98
105
|
token_id: string;
|
|
99
106
|
token_secret: string;
|
|
100
|
-
config_override: Record<string,
|
|
107
|
+
config_override: Record<string, unknown>;
|
|
101
108
|
} | {
|
|
109
|
+
[x: string]: unknown;
|
|
102
110
|
type: string;
|
|
103
111
|
app_id: string;
|
|
104
112
|
installation_id: string;
|
|
105
113
|
};
|
|
106
114
|
provider_config_key: string;
|
|
107
|
-
tags?: Record<string,
|
|
115
|
+
tags?: Record<string, unknown> | undefined;
|
|
108
116
|
end_user?: {
|
|
109
117
|
id: string;
|
|
110
|
-
tags?: Record<string,
|
|
118
|
+
tags?: Record<string, unknown> | undefined;
|
|
111
119
|
email?: string | undefined;
|
|
112
120
|
display_name?: string | undefined;
|
|
113
121
|
} | undefined;
|
|
114
|
-
metadata?: Record<string,
|
|
122
|
+
metadata?: Record<string, unknown> | undefined;
|
|
115
123
|
connection_id?: string | undefined;
|
|
116
|
-
connection_config?: Record<string,
|
|
124
|
+
connection_config?: Record<string, unknown> | undefined;
|
|
117
125
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
118
126
|
//#endregion
|
|
119
127
|
export { nangoAddConnection };
|
|
@@ -2,118 +2,126 @@ import { z } from "zod";
|
|
|
2
2
|
|
|
3
3
|
//#region src/actions/add-connection.d.ts
|
|
4
4
|
declare const NangoAddConnectionInput: z.ZodObject<{
|
|
5
|
-
tags: z.ZodOptional<z.
|
|
5
|
+
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6
6
|
end_user: z.ZodOptional<z.ZodObject<{
|
|
7
7
|
id: z.ZodString;
|
|
8
|
-
tags: z.ZodOptional<z.
|
|
8
|
+
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9
9
|
email: z.ZodOptional<z.ZodString>;
|
|
10
10
|
display_name: z.ZodOptional<z.ZodString>;
|
|
11
11
|
}, z.core.$strip>>;
|
|
12
|
-
metadata: z.ZodOptional<z.
|
|
12
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
13
|
credentials: z.ZodUnion<readonly [z.ZodObject<{
|
|
14
14
|
type: z.ZodString;
|
|
15
15
|
oauth_token: z.ZodString;
|
|
16
16
|
oauth_token_secret: z.ZodString;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
18
18
|
type: z.ZodString;
|
|
19
19
|
expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
access_token: z.ZodString;
|
|
21
21
|
refresh_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
-
config_override: z.ZodOptional<z.ZodNullable<z.
|
|
23
|
-
}, z.core.$
|
|
22
|
+
config_override: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
23
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
24
24
|
type: z.ZodString;
|
|
25
25
|
password: z.ZodString;
|
|
26
26
|
username: z.ZodString;
|
|
27
|
-
}, z.core.$
|
|
27
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
28
28
|
type: z.ZodString;
|
|
29
29
|
apiKey: z.ZodString;
|
|
30
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
31
31
|
type: z.ZodString;
|
|
32
32
|
token: z.ZodString;
|
|
33
33
|
client_id: z.ZodString;
|
|
34
34
|
expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
35
|
client_secret: z.ZodString;
|
|
36
|
-
}, z.core.$
|
|
36
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
37
37
|
type: z.ZodString;
|
|
38
|
-
}, z.core.$
|
|
38
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
39
39
|
type: z.ZodString;
|
|
40
40
|
token_id: z.ZodString;
|
|
41
41
|
token_secret: z.ZodString;
|
|
42
|
-
config_override: z.
|
|
43
|
-
}, z.core.$
|
|
42
|
+
config_override: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
43
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
44
44
|
type: z.ZodString;
|
|
45
45
|
app_id: z.ZodString;
|
|
46
46
|
installation_id: z.ZodString;
|
|
47
|
-
}, z.core.$
|
|
47
|
+
}, z.core.$loose>]>;
|
|
48
48
|
connection_id: z.ZodOptional<z.ZodString>;
|
|
49
|
-
connection_config: z.ZodOptional<z.
|
|
49
|
+
connection_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
50
50
|
provider_config_key: z.ZodString;
|
|
51
51
|
}, z.core.$strip>;
|
|
52
52
|
declare const NangoAddConnectionOutput: z.ZodObject<{
|
|
53
53
|
id: z.ZodNullable<z.ZodNumber>;
|
|
54
|
-
tags: z.
|
|
54
|
+
tags: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
55
55
|
errors: z.ZodArray<z.ZodObject<{
|
|
56
56
|
type: z.ZodNullable<z.ZodString>;
|
|
57
57
|
log_id: z.ZodNullable<z.ZodString>;
|
|
58
|
-
}, z.core.$
|
|
59
|
-
end_user: z.ZodOptional<z.ZodNullable<z.
|
|
60
|
-
metadata: z.
|
|
58
|
+
}, z.core.$loose>>;
|
|
59
|
+
end_user: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
60
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
61
61
|
provider: z.ZodNullable<z.ZodString>;
|
|
62
62
|
created_at: z.ZodNullable<z.ZodString>;
|
|
63
63
|
updated_at: z.ZodNullable<z.ZodString>;
|
|
64
|
-
credentials: z.
|
|
64
|
+
credentials: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
65
65
|
connection_id: z.ZodNullable<z.ZodString>;
|
|
66
66
|
last_fetched_at: z.ZodNullable<z.ZodString>;
|
|
67
|
-
connection_config: z.
|
|
67
|
+
connection_config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
68
68
|
provider_config_key: z.ZodNullable<z.ZodString>;
|
|
69
|
-
}, z.core.$
|
|
69
|
+
}, z.core.$loose>;
|
|
70
70
|
declare const nangoAddConnection: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
71
71
|
credentials: {
|
|
72
|
+
[x: string]: unknown;
|
|
72
73
|
type: string;
|
|
73
74
|
oauth_token: string;
|
|
74
75
|
oauth_token_secret: string;
|
|
75
76
|
} | {
|
|
77
|
+
[x: string]: unknown;
|
|
76
78
|
type: string;
|
|
77
79
|
access_token: string;
|
|
78
80
|
expires_at?: string | null | undefined;
|
|
79
81
|
refresh_token?: string | null | undefined;
|
|
80
|
-
config_override?: Record<string,
|
|
82
|
+
config_override?: Record<string, unknown> | null | undefined;
|
|
81
83
|
} | {
|
|
84
|
+
[x: string]: unknown;
|
|
82
85
|
type: string;
|
|
83
86
|
password: string;
|
|
84
87
|
username: string;
|
|
85
88
|
} | {
|
|
89
|
+
[x: string]: unknown;
|
|
86
90
|
type: string;
|
|
87
91
|
apiKey: string;
|
|
88
92
|
} | {
|
|
93
|
+
[x: string]: unknown;
|
|
89
94
|
type: string;
|
|
90
95
|
token: string;
|
|
91
96
|
client_id: string;
|
|
92
97
|
client_secret: string;
|
|
93
98
|
expires_at?: string | null | undefined;
|
|
94
99
|
} | {
|
|
100
|
+
[x: string]: unknown;
|
|
95
101
|
type: string;
|
|
96
102
|
} | {
|
|
103
|
+
[x: string]: unknown;
|
|
97
104
|
type: string;
|
|
98
105
|
token_id: string;
|
|
99
106
|
token_secret: string;
|
|
100
|
-
config_override: Record<string,
|
|
107
|
+
config_override: Record<string, unknown>;
|
|
101
108
|
} | {
|
|
109
|
+
[x: string]: unknown;
|
|
102
110
|
type: string;
|
|
103
111
|
app_id: string;
|
|
104
112
|
installation_id: string;
|
|
105
113
|
};
|
|
106
114
|
provider_config_key: string;
|
|
107
|
-
tags?: Record<string,
|
|
115
|
+
tags?: Record<string, unknown> | undefined;
|
|
108
116
|
end_user?: {
|
|
109
117
|
id: string;
|
|
110
|
-
tags?: Record<string,
|
|
118
|
+
tags?: Record<string, unknown> | undefined;
|
|
111
119
|
email?: string | undefined;
|
|
112
120
|
display_name?: string | undefined;
|
|
113
121
|
} | undefined;
|
|
114
|
-
metadata?: Record<string,
|
|
122
|
+
metadata?: Record<string, unknown> | undefined;
|
|
115
123
|
connection_id?: string | undefined;
|
|
116
|
-
connection_config?: Record<string,
|
|
124
|
+
connection_config?: Record<string, unknown> | undefined;
|
|
117
125
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
118
126
|
//#endregion
|
|
119
127
|
export { nangoAddConnection };
|