@keystrokehq/nango 0.1.0 → 0.1.3
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 -1
- package/dist/actions/action-trigger-post.cjs.map +1 -1
- package/dist/actions/action-trigger-post.d.cts +15 -3
- package/dist/actions/action-trigger-post.d.cts.map +1 -1
- package/dist/actions/action-trigger-post.d.mts +15 -3
- package/dist/actions/action-trigger-post.d.mts.map +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 +30 -30
- package/dist/actions/add-connection.cjs.map +1 -1
- package/dist/actions/add-connection.d.cts +122 -3
- package/dist/actions/add-connection.d.cts.map +1 -1
- package/dist/actions/add-connection.d.mts +122 -3
- package/dist/actions/add-connection.d.mts.map +1 -1
- package/dist/actions/add-connection.mjs +30 -30
- package/dist/actions/add-connection.mjs.map +1 -1
- package/dist/actions/connection-get.cjs +10 -10
- package/dist/actions/connection-get.cjs.map +1 -1
- package/dist/actions/connection-get.d.cts +36 -3
- package/dist/actions/connection-get.d.cts.map +1 -1
- package/dist/actions/connection-get.d.mts +36 -3
- package/dist/actions/connection-get.d.mts.map +1 -1
- package/dist/actions/connection-get.mjs +10 -10
- package/dist/actions/connection-get.mjs.map +1 -1
- package/dist/actions/create-connect-session.cjs +8 -8
- package/dist/actions/create-connect-session.cjs.map +1 -1
- package/dist/actions/create-connect-session.d.cts +39 -3
- package/dist/actions/create-connect-session.d.cts.map +1 -1
- package/dist/actions/create-connect-session.d.mts +39 -3
- package/dist/actions/create-connect-session.d.mts.map +1 -1
- package/dist/actions/create-connect-session.mjs +8 -8
- package/dist/actions/create-connect-session.mjs.map +1 -1
- package/dist/actions/create-integration.cjs +10 -10
- package/dist/actions/create-integration.cjs.map +1 -1
- package/dist/actions/create-integration.d.cts +62 -3
- package/dist/actions/create-integration.d.cts.map +1 -1
- package/dist/actions/create-integration.d.mts +62 -3
- package/dist/actions/create-integration.d.mts.map +1 -1
- package/dist/actions/create-integration.mjs +10 -10
- 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 +11 -3
- package/dist/actions/delete-connection.d.cts.map +1 -1
- package/dist/actions/delete-connection.d.mts +11 -3
- package/dist/actions/delete-connection.d.mts.map +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 +9 -3
- package/dist/actions/delete-integration.d.cts.map +1 -1
- package/dist/actions/delete-integration.d.mts +9 -3
- package/dist/actions/delete-integration.d.mts.map +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 +25 -3
- package/dist/actions/edit-connection.d.cts.map +1 -1
- package/dist/actions/edit-connection.d.mts +25 -3
- package/dist/actions/edit-connection.d.mts.map +1 -1
- package/dist/actions/edit-connection.mjs +3 -3
- package/dist/actions/edit-connection.mjs.map +1 -1
- package/dist/actions/get-connection.cjs +19 -19
- package/dist/actions/get-connection.cjs.map +1 -1
- package/dist/actions/get-connection.d.cts +38 -3
- package/dist/actions/get-connection.d.cts.map +1 -1
- package/dist/actions/get-connection.d.mts +38 -3
- package/dist/actions/get-connection.d.mts.map +1 -1
- package/dist/actions/get-connection.mjs +19 -19
- package/dist/actions/get-connection.mjs.map +1 -1
- package/dist/actions/get-environment-variables.cjs +4 -4
- package/dist/actions/get-environment-variables.cjs.map +1 -1
- package/dist/actions/get-environment-variables.d.cts +8 -3
- package/dist/actions/get-environment-variables.d.cts.map +1 -1
- package/dist/actions/get-environment-variables.d.mts +8 -3
- package/dist/actions/get-environment-variables.d.mts.map +1 -1
- package/dist/actions/get-environment-variables.mjs +4 -4
- package/dist/actions/get-environment-variables.mjs.map +1 -1
- package/dist/actions/get-integration.cjs +8 -8
- package/dist/actions/get-integration.cjs.map +1 -1
- package/dist/actions/get-integration.d.cts +26 -3
- package/dist/actions/get-integration.d.cts.map +1 -1
- package/dist/actions/get-integration.d.mts +26 -3
- package/dist/actions/get-integration.d.mts.map +1 -1
- package/dist/actions/get-integration.mjs +8 -8
- package/dist/actions/get-integration.mjs.map +1 -1
- package/dist/actions/get-proxy.cjs +5 -5
- package/dist/actions/get-proxy.cjs.map +1 -1
- package/dist/actions/get-proxy.d.cts +28 -3
- package/dist/actions/get-proxy.d.cts.map +1 -1
- package/dist/actions/get-proxy.d.mts +28 -3
- package/dist/actions/get-proxy.d.mts.map +1 -1
- package/dist/actions/get-proxy.mjs +5 -5
- package/dist/actions/get-proxy.mjs.map +1 -1
- package/dist/actions/get-sync-status.cjs +8 -8
- package/dist/actions/get-sync-status.cjs.map +1 -1
- package/dist/actions/get-sync-status.d.cts +35 -3
- package/dist/actions/get-sync-status.d.cts.map +1 -1
- package/dist/actions/get-sync-status.d.mts +35 -3
- package/dist/actions/get-sync-status.d.mts.map +1 -1
- package/dist/actions/get-sync-status.mjs +8 -8
- package/dist/actions/get-sync-status.mjs.map +1 -1
- package/dist/actions/list-connections.cjs +14 -14
- package/dist/actions/list-connections.cjs.map +1 -1
- package/dist/actions/list-connections.d.cts +39 -3
- package/dist/actions/list-connections.d.cts.map +1 -1
- package/dist/actions/list-connections.d.mts +39 -3
- package/dist/actions/list-connections.d.mts.map +1 -1
- package/dist/actions/list-connections.mjs +14 -14
- package/dist/actions/list-connections.mjs.map +1 -1
- package/dist/actions/list-integrations.cjs +7 -7
- package/dist/actions/list-integrations.cjs.map +1 -1
- package/dist/actions/list-integrations.d.cts +12 -3
- package/dist/actions/list-integrations.d.cts.map +1 -1
- package/dist/actions/list-integrations.d.mts +12 -3
- package/dist/actions/list-integrations.d.mts.map +1 -1
- package/dist/actions/list-integrations.mjs +7 -7
- package/dist/actions/list-integrations.mjs.map +1 -1
- package/dist/actions/providers-get-get.cjs +4 -4
- package/dist/actions/providers-get-get.cjs.map +1 -1
- package/dist/actions/providers-get-get.d.cts +21 -3
- package/dist/actions/providers-get-get.d.cts.map +1 -1
- package/dist/actions/providers-get-get.d.mts +21 -3
- package/dist/actions/providers-get-get.d.mts.map +1 -1
- package/dist/actions/providers-get-get.mjs +4 -4
- package/dist/actions/providers-get-get.mjs.map +1 -1
- package/dist/actions/providers-list-get.cjs +4 -4
- package/dist/actions/providers-list-get.cjs.map +1 -1
- package/dist/actions/providers-list-get.d.cts +13 -3
- package/dist/actions/providers-list-get.d.cts.map +1 -1
- package/dist/actions/providers-list-get.d.mts +13 -3
- package/dist/actions/providers-list-get.d.mts.map +1 -1
- package/dist/actions/providers-list-get.mjs +4 -4
- 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 +23 -3
- package/dist/actions/put-proxy.d.cts.map +1 -1
- package/dist/actions/put-proxy.d.mts +23 -3
- package/dist/actions/put-proxy.d.mts.map +1 -1
- package/dist/actions/put-proxy.mjs +4 -4
- package/dist/actions/put-proxy.mjs.map +1 -1
- package/dist/actions/reconnect-session-post.cjs +8 -8
- package/dist/actions/reconnect-session-post.cjs.map +1 -1
- package/dist/actions/reconnect-session-post.d.cts +41 -3
- package/dist/actions/reconnect-session-post.d.cts.map +1 -1
- package/dist/actions/reconnect-session-post.d.mts +41 -3
- package/dist/actions/reconnect-session-post.d.mts.map +1 -1
- package/dist/actions/reconnect-session-post.mjs +8 -8
- package/dist/actions/reconnect-session-post.mjs.map +1 -1
- package/dist/actions/scripts-config-get.cjs +13 -13
- package/dist/actions/scripts-config-get.cjs.map +1 -1
- package/dist/actions/scripts-config-get.d.cts +53 -3
- package/dist/actions/scripts-config-get.d.cts.map +1 -1
- package/dist/actions/scripts-config-get.d.mts +53 -3
- package/dist/actions/scripts-config-get.d.mts.map +1 -1
- package/dist/actions/scripts-config-get.mjs +13 -13
- package/dist/actions/scripts-config-get.mjs.map +1 -1
- package/dist/actions/set-connection-metadata.cjs +4 -4
- package/dist/actions/set-connection-metadata.cjs.map +1 -1
- package/dist/actions/set-connection-metadata.d.cts +15 -3
- package/dist/actions/set-connection-metadata.d.cts.map +1 -1
- package/dist/actions/set-connection-metadata.d.mts +15 -3
- package/dist/actions/set-connection-metadata.d.mts.map +1 -1
- package/dist/actions/set-connection-metadata.mjs +4 -4
- 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 +19 -3
- package/dist/actions/sync-trigger-post.d.cts.map +1 -1
- package/dist/actions/sync-trigger-post.d.mts +19 -3
- package/dist/actions/sync-trigger-post.d.mts.map +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 +4 -4
- package/dist/actions/update-connection-metadata.cjs.map +1 -1
- package/dist/actions/update-connection-metadata.d.cts +15 -3
- package/dist/actions/update-connection-metadata.d.cts.map +1 -1
- package/dist/actions/update-connection-metadata.d.mts +15 -3
- package/dist/actions/update-connection-metadata.d.mts.map +1 -1
- package/dist/actions/update-connection-metadata.mjs +4 -4
- package/dist/actions/update-connection-metadata.mjs.map +1 -1
- package/dist/actions/update-integration.cjs +10 -10
- package/dist/actions/update-integration.cjs.map +1 -1
- package/dist/actions/update-integration.d.cts +61 -3
- package/dist/actions/update-integration.d.cts.map +1 -1
- package/dist/actions/update-integration.d.mts +61 -3
- package/dist/actions/update-integration.d.mts.map +1 -1
- package/dist/actions/update-integration.mjs +10 -10
- package/dist/actions/update-integration.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -2,33 +2,33 @@ import { action } from "../action.mjs";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/actions/reconnect-session-post.ts
|
|
4
4
|
const NangoReconnectSessionPostInput = z.object({
|
|
5
|
-
tags: z.
|
|
5
|
+
tags: z.record(z.string(), z.unknown()).describe("Connection tags (key/value strings). Keys are normalized to lowercase.").optional(),
|
|
6
6
|
end_user: z.object({
|
|
7
7
|
id: z.string().describe("Unique identifier for the end user"),
|
|
8
|
-
tags: z.
|
|
8
|
+
tags: z.record(z.string(), z.unknown()).describe("Connection tags (key/value strings). Keys are normalized to lowercase.").optional(),
|
|
9
9
|
email: z.string().describe("End user email address").optional(),
|
|
10
10
|
display_name: z.string().describe("Display name for the end user").optional()
|
|
11
11
|
}).describe("End user information for the connection.").optional(),
|
|
12
|
-
overrides: z.
|
|
12
|
+
overrides: z.record(z.string(), z.unknown()).describe("Override configuration for integrations by integration name").optional(),
|
|
13
13
|
organization: z.object({
|
|
14
14
|
id: z.string().describe("Uniquely identifies the organization the end user belongs to"),
|
|
15
15
|
display_name: z.string().describe("Display name for the organization").optional()
|
|
16
16
|
}).describe("Organization information for the end user (deprecated, use tags instead).").optional(),
|
|
17
17
|
connection_id: z.string().describe("The connection ID to reconnect. Only connections created with a connect session are compatible with this endpoint."),
|
|
18
18
|
integration_id: z.string().describe("The integration ID (provider config key) for the connection"),
|
|
19
|
-
integrations_config_defaults: z.
|
|
19
|
+
integrations_config_defaults: z.record(z.string(), z.unknown()).describe("Default configuration for integrations by integration name").optional()
|
|
20
20
|
}).describe("Request model for creating a reconnect session.");
|
|
21
21
|
const NangoReconnectSessionPost_SessionDataSchema = z.object({
|
|
22
|
-
token: z.string().describe("The connect session token used like a standard connect session"),
|
|
23
|
-
expires_at: z.string().describe("When the token expires in ISO 8601 format"),
|
|
22
|
+
token: z.string().describe("The connect session token used like a standard connect session").nullable(),
|
|
23
|
+
expires_at: z.string().describe("When the token expires in ISO 8601 format").nullable(),
|
|
24
24
|
connect_link: z.string().describe("The URL to directly connect the user to the integration. This can be used as a magic link.").nullable().optional()
|
|
25
|
-
}).describe("Connect session data returned from the API.");
|
|
25
|
+
}).passthrough().describe("Connect session data returned from the API.");
|
|
26
26
|
const nangoReconnectSessionPost = action("NANGO_RECONNECT_SESSION_POST", {
|
|
27
27
|
slug: "nango-reconnect-session-post",
|
|
28
28
|
name: "Reconnect Session",
|
|
29
29
|
description: "Create a new connect session to reconnect to a specific integration. Use this when a user needs to input new credentials or to manually refresh a token. Only connections created with a connect session are compatible with this endpoint.",
|
|
30
30
|
input: NangoReconnectSessionPostInput,
|
|
31
|
-
output: z.object({ data: NangoReconnectSessionPost_SessionDataSchema.nullable() }).describe("Response model for creating a reconnect session.")
|
|
31
|
+
output: z.object({ data: NangoReconnectSessionPost_SessionDataSchema.nullable() }).passthrough().describe("Response model for creating a reconnect session.")
|
|
32
32
|
});
|
|
33
33
|
//#endregion
|
|
34
34
|
export { nangoReconnectSessionPost };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reconnect-session-post.mjs","names":[],"sources":["../../src/actions/reconnect-session-post.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoReconnectSessionPostInput
|
|
1
|
+
{"version":3,"file":"reconnect-session-post.mjs","names":[],"sources":["../../src/actions/reconnect-session-post.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoReconnectSessionPostInput = z.object({\n tags: z.record(z.string(), z.unknown()).describe(\"Connection tags (key/value strings). Keys are normalized to lowercase.\").optional(),\n end_user: z.object({\n id: z.string().describe(\"Unique identifier for the end user\"),\n tags: z.record(z.string(), z.unknown()).describe(\"Connection tags (key/value strings). Keys are normalized to lowercase.\").optional(),\n email: z.string().describe(\"End user email address\").optional(),\n display_name: z.string().describe(\"Display name for the end user\").optional(),\n}).describe(\"End user information for the connection.\").optional(),\n overrides: z.record(z.string(), z.unknown()).describe(\"Override configuration for integrations by integration name\").optional(),\n organization: z.object({\n id: z.string().describe(\"Uniquely identifies the organization the end user belongs to\"),\n display_name: z.string().describe(\"Display name for the organization\").optional(),\n}).describe(\"Organization information for the end user (deprecated, use tags instead).\").optional(),\n connection_id: z.string().describe(\"The connection ID to reconnect. Only connections created with a connect session are compatible with this endpoint.\"),\n integration_id: z.string().describe(\"The integration ID (provider config key) for the connection\"),\n integrations_config_defaults: z.record(z.string(), z.unknown()).describe(\"Default configuration for integrations by integration name\").optional(),\n}).describe(\"Request model for creating a reconnect session.\");\nconst NangoReconnectSessionPost_SessionDataSchema = z.object({\n token: z.string().describe(\"The connect session token used like a standard connect session\").nullable(),\n expires_at: z.string().describe(\"When the token expires in ISO 8601 format\").nullable(),\n connect_link: z.string().describe(\"The URL to directly connect the user to the integration. This can be used as a magic link.\").nullable().optional(),\n}).passthrough().describe(\"Connect session data returned from the API.\");\nexport const NangoReconnectSessionPostOutput = z.object({\n data: NangoReconnectSessionPost_SessionDataSchema.nullable(),\n}).passthrough().describe(\"Response model for creating a reconnect session.\");\n\nexport const nangoReconnectSessionPost = action(\"NANGO_RECONNECT_SESSION_POST\", {\n slug: \"nango-reconnect-session-post\",\n name: \"Reconnect Session\",\n description: \"Create a new connect session to reconnect to a specific integration. Use this when a user needs to input new credentials or to manually refresh a token. Only connections created with a connect session are compatible with this endpoint.\",\n input: NangoReconnectSessionPostInput,\n output: NangoReconnectSessionPostOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAC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CAAC,SAAS,6CAA6C;AAKvE,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT6C,EAAE,OAAO,EACtD,MAAM,4CAA4C,SAAS,EAC7D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAOhB;AACV,CAAC"}
|
|
@@ -5,13 +5,13 @@ const NangoScriptsConfigGetInput = zod.z.object({}).describe("Request model for
|
|
|
5
5
|
const NangoScriptsConfigGet_EndpointConfigSchema = zod.z.object({
|
|
6
6
|
path: zod.z.string().describe("Endpoint path.").nullable().optional(),
|
|
7
7
|
method: zod.z.string().describe("HTTP method (e.g., 'GET', 'POST').").nullable().optional()
|
|
8
|
-
}).describe("Model representing an endpoint configuration.");
|
|
8
|
+
}).passthrough().describe("Model representing an endpoint configuration.");
|
|
9
9
|
const NangoScriptsConfigGet_SyncConfigSchema = zod.z.object({
|
|
10
10
|
id: zod.z.number().int().describe("Unique identifier of the sync.").nullable().optional(),
|
|
11
|
-
name: zod.z.string().describe("Name of the sync script."),
|
|
11
|
+
name: zod.z.string().describe("Name of the sync script.").nullable(),
|
|
12
12
|
runs: zod.z.string().describe("Frequency of sync runs (e.g., 'every 1h').").nullable().optional(),
|
|
13
13
|
type: zod.z.string().describe("Type of script (e.g., 'sync').").nullable().optional(),
|
|
14
|
-
input: zod.z.
|
|
14
|
+
input: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Input schema.").nullable().optional(),
|
|
15
15
|
models: zod.z.array(zod.z.string()).describe("Data models used by the sync.").nullable().optional(),
|
|
16
16
|
scopes: zod.z.array(zod.z.string()).describe("OAuth scopes required.").nullable().optional(),
|
|
17
17
|
enabled: zod.z.boolean().describe("Whether the sync is enabled.").nullable().optional(),
|
|
@@ -23,14 +23,14 @@ const NangoScriptsConfigGet_SyncConfigSchema = zod.z.object({
|
|
|
23
23
|
sync_type: zod.z.string().describe("Type of synchronization (e.g., 'full', 'incremental').").nullable().optional(),
|
|
24
24
|
auto_start: zod.z.boolean().describe("Whether the sync auto-starts.").nullable().optional(),
|
|
25
25
|
description: zod.z.string().describe("Description of the sync.").nullable().optional(),
|
|
26
|
-
json_schema: zod.z.
|
|
26
|
+
json_schema: zod.z.record(zod.z.string(), zod.z.unknown()).describe("JSON schema for the sync.").nullable().optional(),
|
|
27
27
|
track_deletes: zod.z.boolean().describe("Whether to track deleted records.").nullable().optional()
|
|
28
|
-
}).describe("Model representing a sync script configuration.");
|
|
28
|
+
}).passthrough().describe("Model representing a sync script configuration.");
|
|
29
29
|
const NangoScriptsConfigGet_ActionConfigSchema = zod.z.object({
|
|
30
30
|
id: zod.z.number().int().describe("Unique identifier of the action.").nullable().optional(),
|
|
31
|
-
name: zod.z.string().describe("Name of the action script."),
|
|
31
|
+
name: zod.z.string().describe("Name of the action script.").nullable(),
|
|
32
32
|
type: zod.z.string().describe("Type of script (e.g., 'action').").nullable().optional(),
|
|
33
|
-
input: zod.z.
|
|
33
|
+
input: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Input schema.").nullable().optional(),
|
|
34
34
|
scopes: zod.z.array(zod.z.string()).describe("OAuth scopes required.").nullable().optional(),
|
|
35
35
|
enabled: zod.z.boolean().describe("Whether the action is enabled.").nullable().optional(),
|
|
36
36
|
returns: zod.z.array(zod.z.string()).describe("Return type models.").nullable().optional(),
|
|
@@ -39,20 +39,20 @@ const NangoScriptsConfigGet_ActionConfigSchema = zod.z.object({
|
|
|
39
39
|
is_public: zod.z.boolean().describe("Whether the action is public.").nullable().optional(),
|
|
40
40
|
pre_built: zod.z.boolean().describe("Whether the action is pre-built.").nullable().optional(),
|
|
41
41
|
description: zod.z.string().describe("Description of the action.").nullable().optional(),
|
|
42
|
-
json_schema: zod.z.
|
|
43
|
-
}).describe("Model representing an action script configuration.");
|
|
42
|
+
json_schema: zod.z.record(zod.z.string(), zod.z.unknown()).describe("JSON schema for the action.").nullable().optional()
|
|
43
|
+
}).passthrough().describe("Model representing an action script configuration.");
|
|
44
44
|
const NangoScriptsConfigGet_EventHandlerConfigSchema = zod.z.object({
|
|
45
45
|
name: zod.z.string().describe("Name of the event handler.").nullable().optional(),
|
|
46
46
|
event: zod.z.string().describe("Event type being handled.").nullable().optional()
|
|
47
|
-
}).describe("Model representing an event handler configuration.");
|
|
47
|
+
}).passthrough().describe("Model representing an event handler configuration.");
|
|
48
48
|
const NangoScriptsConfigGet_IntegrationConfigSchema = zod.z.object({
|
|
49
49
|
syncs: zod.z.array(NangoScriptsConfigGet_SyncConfigSchema).describe("List of sync scripts for this integration.").nullable().optional(),
|
|
50
50
|
actions: zod.z.array(NangoScriptsConfigGet_ActionConfigSchema).describe("List of action scripts for this integration.").nullable().optional(),
|
|
51
51
|
provider: zod.z.string().describe("Provider name (e.g., 'github', 'slack').").nullable().optional(),
|
|
52
52
|
"on-events": zod.z.array(NangoScriptsConfigGet_EventHandlerConfigSchema).describe("Event handlers configuration.").nullable().optional(),
|
|
53
|
-
providerConfigKey: zod.z.string().describe("Unique configuration key for this integration.")
|
|
54
|
-
}).describe("Model representing a single integration's configuration.");
|
|
55
|
-
const NangoScriptsConfigGetOutput = zod.z.object({ integrations: zod.z.array(NangoScriptsConfigGet_IntegrationConfigSchema).describe("List of integration configurations with their syncs and actions.").nullable().optional() }).describe("Response model for fetching Nango integration functions configuration.\n\nReturns a list of all configured integrations with their syncs, actions, and event handlers.");
|
|
53
|
+
providerConfigKey: zod.z.string().describe("Unique configuration key for this integration.").nullable()
|
|
54
|
+
}).passthrough().describe("Model representing a single integration's configuration.");
|
|
55
|
+
const NangoScriptsConfigGetOutput = zod.z.object({ integrations: zod.z.array(NangoScriptsConfigGet_IntegrationConfigSchema).describe("List of integration configurations with their syncs and actions.").nullable().optional() }).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.");
|
|
56
56
|
const nangoScriptsConfigGet = require_action.action("NANGO_SCRIPTS_CONFIG_GET", {
|
|
57
57
|
slug: "nango-scripts-config-get",
|
|
58
58
|
name: "Get Integration Functions Configuration",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scripts-config-get.cjs","names":["z","action"],"sources":["../../src/actions/scripts-config-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoScriptsConfigGetInput: z.ZodTypeAny = z.object({}).describe(\"Request model for retrieving Nango integration functions configuration.\\n\\nNo parameters required - retrieves all configured integrations.\");\nconst NangoScriptsConfigGet_EndpointConfigSchema: z.ZodTypeAny = 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}).describe(\"Model representing an endpoint configuration.\");\nconst NangoScriptsConfigGet_SyncConfigSchema: z.ZodTypeAny = 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.\"),\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.object({}).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.object({}).describe(\"JSON schema for the sync.\").nullable().optional(),\n track_deletes: z.boolean().describe(\"Whether to track deleted records.\").nullable().optional(),\n}).describe(\"Model representing a sync script configuration.\");\nconst NangoScriptsConfigGet_ActionConfigSchema: z.ZodTypeAny = 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.\"),\n type: z.string().describe(\"Type of script (e.g., 'action').\").nullable().optional(),\n input: z.object({}).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.object({}).describe(\"JSON schema for the action.\").nullable().optional(),\n}).describe(\"Model representing an action script configuration.\");\nconst NangoScriptsConfigGet_EventHandlerConfigSchema: z.ZodTypeAny = 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}).describe(\"Model representing an event handler configuration.\");\nconst NangoScriptsConfigGet_IntegrationConfigSchema: z.ZodTypeAny = 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.\"),\n}).describe(\"Model representing a single integration's configuration.\");\nexport const NangoScriptsConfigGetOutput: z.ZodTypeAny = z.object({\n integrations: z.array(NangoScriptsConfigGet_IntegrationConfigSchema).describe(\"List of integration configurations with their syncs and actions.\").nullable().optional(),\n}).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,6BAA2CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4IAA4I;AAC1N,MAAM,6CAA2DA,IAAAA,EAAE,OAAO;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,yCAAuDA,IAAAA,EAAE,OAAO;CACpE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,MAAMA,IAAAA,EAAE,O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AAC,SAAS,gDAAgD;AACzF,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,EAChE,cAAcA,IAAAA,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACxK,CAAC,CAAC,CAAC,SAAS,wKAAwK;AAEpL,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"scripts-config-get.cjs","names":["z","action"],"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,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4IAA4I;AAC5M,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AACzE,MAAM,yCAAyCA,IA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AC,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAC9E,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,OAAOA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,SAASA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,aAAaA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AACpF,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,cAAcA,IAAAA,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACxK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wKAAwK;AAElM,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,59 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/scripts-config-get.d.ts
|
|
4
|
-
declare const NangoScriptsConfigGetInput: z.
|
|
5
|
-
declare const NangoScriptsConfigGetOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const NangoScriptsConfigGetInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const NangoScriptsConfigGetOutput: z.ZodObject<{
|
|
6
|
+
integrations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
7
|
+
syncs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
8
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9
|
+
name: z.ZodNullable<z.ZodString>;
|
|
10
|
+
runs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
13
|
+
models: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
14
|
+
scopes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
15
|
+
enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
16
|
+
returns: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
17
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
endpoints: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
19
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
}, z.core.$loose>>>>;
|
|
22
|
+
is_public: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
23
|
+
pre_built: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
24
|
+
sync_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
auto_start: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
26
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
json_schema: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
28
|
+
track_deletes: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
29
|
+
}, z.core.$loose>>>>;
|
|
30
|
+
actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
31
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
32
|
+
name: z.ZodNullable<z.ZodString>;
|
|
33
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
35
|
+
scopes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
36
|
+
enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
37
|
+
returns: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
38
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
endpoints: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
40
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
}, z.core.$loose>>>>;
|
|
43
|
+
is_public: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
44
|
+
pre_built: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
45
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
json_schema: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
47
|
+
}, z.core.$loose>>>>;
|
|
48
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
"on-events": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
50
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
event: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
}, z.core.$loose>>>>;
|
|
53
|
+
providerConfigKey: z.ZodNullable<z.ZodString>;
|
|
54
|
+
}, z.core.$loose>>>>;
|
|
55
|
+
}, z.core.$loose>;
|
|
56
|
+
declare const nangoScriptsConfigGet: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
57
|
//#endregion
|
|
8
58
|
export { nangoScriptsConfigGet };
|
|
9
59
|
//# sourceMappingURL=scripts-config-get.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scripts-config-get.d.cts","names":[],"sources":["../../src/actions/scripts-config-get.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"scripts-config-get.d.cts","names":[],"sources":["../../src/actions/scripts-config-get.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAmD1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,59 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/scripts-config-get.d.ts
|
|
4
|
-
declare const NangoScriptsConfigGetInput: z.
|
|
5
|
-
declare const NangoScriptsConfigGetOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const NangoScriptsConfigGetInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const NangoScriptsConfigGetOutput: z.ZodObject<{
|
|
6
|
+
integrations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
7
|
+
syncs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
8
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9
|
+
name: z.ZodNullable<z.ZodString>;
|
|
10
|
+
runs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
13
|
+
models: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
14
|
+
scopes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
15
|
+
enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
16
|
+
returns: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
17
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
endpoints: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
19
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
}, z.core.$loose>>>>;
|
|
22
|
+
is_public: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
23
|
+
pre_built: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
24
|
+
sync_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
auto_start: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
26
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
json_schema: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
28
|
+
track_deletes: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
29
|
+
}, z.core.$loose>>>>;
|
|
30
|
+
actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
31
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
32
|
+
name: z.ZodNullable<z.ZodString>;
|
|
33
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
35
|
+
scopes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
36
|
+
enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
37
|
+
returns: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
38
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
endpoints: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
40
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
}, z.core.$loose>>>>;
|
|
43
|
+
is_public: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
44
|
+
pre_built: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
45
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
json_schema: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
47
|
+
}, z.core.$loose>>>>;
|
|
48
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
"on-events": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
50
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
event: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
}, z.core.$loose>>>>;
|
|
53
|
+
providerConfigKey: z.ZodNullable<z.ZodString>;
|
|
54
|
+
}, z.core.$loose>>>>;
|
|
55
|
+
}, z.core.$loose>;
|
|
56
|
+
declare const nangoScriptsConfigGet: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
57
|
//#endregion
|
|
8
58
|
export { nangoScriptsConfigGet };
|
|
9
59
|
//# sourceMappingURL=scripts-config-get.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scripts-config-get.d.mts","names":[],"sources":["../../src/actions/scripts-config-get.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"scripts-config-get.d.mts","names":[],"sources":["../../src/actions/scripts-config-get.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAmD1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -5,13 +5,13 @@ const NangoScriptsConfigGetInput = z.object({}).describe("Request model for retr
|
|
|
5
5
|
const NangoScriptsConfigGet_EndpointConfigSchema = z.object({
|
|
6
6
|
path: z.string().describe("Endpoint path.").nullable().optional(),
|
|
7
7
|
method: z.string().describe("HTTP method (e.g., 'GET', 'POST').").nullable().optional()
|
|
8
|
-
}).describe("Model representing an endpoint configuration.");
|
|
8
|
+
}).passthrough().describe("Model representing an endpoint configuration.");
|
|
9
9
|
const NangoScriptsConfigGet_SyncConfigSchema = z.object({
|
|
10
10
|
id: z.number().int().describe("Unique identifier of the sync.").nullable().optional(),
|
|
11
|
-
name: z.string().describe("Name of the sync script."),
|
|
11
|
+
name: z.string().describe("Name of the sync script.").nullable(),
|
|
12
12
|
runs: z.string().describe("Frequency of sync runs (e.g., 'every 1h').").nullable().optional(),
|
|
13
13
|
type: z.string().describe("Type of script (e.g., 'sync').").nullable().optional(),
|
|
14
|
-
input: z.
|
|
14
|
+
input: z.record(z.string(), z.unknown()).describe("Input schema.").nullable().optional(),
|
|
15
15
|
models: z.array(z.string()).describe("Data models used by the sync.").nullable().optional(),
|
|
16
16
|
scopes: z.array(z.string()).describe("OAuth scopes required.").nullable().optional(),
|
|
17
17
|
enabled: z.boolean().describe("Whether the sync is enabled.").nullable().optional(),
|
|
@@ -23,14 +23,14 @@ const NangoScriptsConfigGet_SyncConfigSchema = z.object({
|
|
|
23
23
|
sync_type: z.string().describe("Type of synchronization (e.g., 'full', 'incremental').").nullable().optional(),
|
|
24
24
|
auto_start: z.boolean().describe("Whether the sync auto-starts.").nullable().optional(),
|
|
25
25
|
description: z.string().describe("Description of the sync.").nullable().optional(),
|
|
26
|
-
json_schema: z.
|
|
26
|
+
json_schema: z.record(z.string(), z.unknown()).describe("JSON schema for the sync.").nullable().optional(),
|
|
27
27
|
track_deletes: z.boolean().describe("Whether to track deleted records.").nullable().optional()
|
|
28
|
-
}).describe("Model representing a sync script configuration.");
|
|
28
|
+
}).passthrough().describe("Model representing a sync script configuration.");
|
|
29
29
|
const NangoScriptsConfigGet_ActionConfigSchema = z.object({
|
|
30
30
|
id: z.number().int().describe("Unique identifier of the action.").nullable().optional(),
|
|
31
|
-
name: z.string().describe("Name of the action script."),
|
|
31
|
+
name: z.string().describe("Name of the action script.").nullable(),
|
|
32
32
|
type: z.string().describe("Type of script (e.g., 'action').").nullable().optional(),
|
|
33
|
-
input: z.
|
|
33
|
+
input: z.record(z.string(), z.unknown()).describe("Input schema.").nullable().optional(),
|
|
34
34
|
scopes: z.array(z.string()).describe("OAuth scopes required.").nullable().optional(),
|
|
35
35
|
enabled: z.boolean().describe("Whether the action is enabled.").nullable().optional(),
|
|
36
36
|
returns: z.array(z.string()).describe("Return type models.").nullable().optional(),
|
|
@@ -39,25 +39,25 @@ const NangoScriptsConfigGet_ActionConfigSchema = z.object({
|
|
|
39
39
|
is_public: z.boolean().describe("Whether the action is public.").nullable().optional(),
|
|
40
40
|
pre_built: z.boolean().describe("Whether the action is pre-built.").nullable().optional(),
|
|
41
41
|
description: z.string().describe("Description of the action.").nullable().optional(),
|
|
42
|
-
json_schema: z.
|
|
43
|
-
}).describe("Model representing an action script configuration.");
|
|
42
|
+
json_schema: z.record(z.string(), z.unknown()).describe("JSON schema for the action.").nullable().optional()
|
|
43
|
+
}).passthrough().describe("Model representing an action script configuration.");
|
|
44
44
|
const NangoScriptsConfigGet_EventHandlerConfigSchema = z.object({
|
|
45
45
|
name: z.string().describe("Name of the event handler.").nullable().optional(),
|
|
46
46
|
event: z.string().describe("Event type being handled.").nullable().optional()
|
|
47
|
-
}).describe("Model representing an event handler configuration.");
|
|
47
|
+
}).passthrough().describe("Model representing an event handler configuration.");
|
|
48
48
|
const NangoScriptsConfigGet_IntegrationConfigSchema = z.object({
|
|
49
49
|
syncs: z.array(NangoScriptsConfigGet_SyncConfigSchema).describe("List of sync scripts for this integration.").nullable().optional(),
|
|
50
50
|
actions: z.array(NangoScriptsConfigGet_ActionConfigSchema).describe("List of action scripts for this integration.").nullable().optional(),
|
|
51
51
|
provider: z.string().describe("Provider name (e.g., 'github', 'slack').").nullable().optional(),
|
|
52
52
|
"on-events": z.array(NangoScriptsConfigGet_EventHandlerConfigSchema).describe("Event handlers configuration.").nullable().optional(),
|
|
53
|
-
providerConfigKey: z.string().describe("Unique configuration key for this integration.")
|
|
54
|
-
}).describe("Model representing a single integration's configuration.");
|
|
53
|
+
providerConfigKey: z.string().describe("Unique configuration key for this integration.").nullable()
|
|
54
|
+
}).passthrough().describe("Model representing a single integration's configuration.");
|
|
55
55
|
const nangoScriptsConfigGet = action("NANGO_SCRIPTS_CONFIG_GET", {
|
|
56
56
|
slug: "nango-scripts-config-get",
|
|
57
57
|
name: "Get Integration Functions Configuration",
|
|
58
58
|
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.",
|
|
59
59
|
input: NangoScriptsConfigGetInput,
|
|
60
|
-
output: z.object({ integrations: z.array(NangoScriptsConfigGet_IntegrationConfigSchema).describe("List of integration configurations with their syncs and actions.").nullable().optional() }).describe("Response model for fetching Nango integration functions configuration.\n\nReturns a list of all configured integrations with their syncs, actions, and event handlers.")
|
|
60
|
+
output: z.object({ integrations: z.array(NangoScriptsConfigGet_IntegrationConfigSchema).describe("List of integration configurations with their syncs and actions.").nullable().optional() }).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.")
|
|
61
61
|
});
|
|
62
62
|
//#endregion
|
|
63
63
|
export { nangoScriptsConfigGet };
|
|
@@ -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
|
|
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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sCAAsC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,SAAS,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,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,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"}
|
|
@@ -2,15 +2,15 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/set-connection-metadata.ts
|
|
4
4
|
const NangoSetConnectionMetadataInput = zod.z.object({
|
|
5
|
-
metadata: zod.z.
|
|
5
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom metadata object to set for the connection(s). Can contain string, number, boolean, or null values."),
|
|
6
6
|
connection_id: zod.z.union([zod.z.string(), zod.z.array(zod.z.string())]),
|
|
7
7
|
provider_config_key: zod.z.string().describe("The integration's unique key (provider config key) used to create the connection.")
|
|
8
8
|
}).describe("Request model for setting custom metadata on Nango connections.");
|
|
9
9
|
const NangoSetConnectionMetadataOutput = zod.z.object({
|
|
10
|
-
metadata: zod.z.
|
|
10
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The metadata that was set on the connection(s)"),
|
|
11
11
|
connection_id: zod.z.union([zod.z.string(), zod.z.array(zod.z.string())]),
|
|
12
|
-
provider_config_key: zod.z.string().describe("The integration's unique key")
|
|
13
|
-
}).describe("Response model for setting connection metadata.\nReturns the updated connection information.");
|
|
12
|
+
provider_config_key: zod.z.string().describe("The integration's unique key").nullable()
|
|
13
|
+
}).passthrough().describe("Response model for setting connection metadata.\nReturns the updated connection information.");
|
|
14
14
|
const nangoSetConnectionMetadata = require_action.action("NANGO_SET_CONNECTION_METADATA", {
|
|
15
15
|
slug: "nango-set-connection-metadata",
|
|
16
16
|
name: "Set Connection Metadata",
|
|
@@ -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
|
|
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":";;;AAIA,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,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/set-connection-metadata.d.ts
|
|
4
|
-
declare const NangoSetConnectionMetadataInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NangoSetConnectionMetadataInput: z.ZodObject<{
|
|
5
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6
|
+
connection_id: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
7
|
+
provider_config_key: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const NangoSetConnectionMetadataOutput: z.ZodObject<{
|
|
10
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
11
|
+
connection_id: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
12
|
+
provider_config_key: z.ZodNullable<z.ZodString>;
|
|
13
|
+
}, z.core.$loose>;
|
|
14
|
+
declare const nangoSetConnectionMetadata: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
19
|
//#endregion
|
|
8
20
|
export { nangoSetConnectionMetadata };
|
|
9
21
|
//# 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":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"set-connection-metadata.d.cts","names":[],"sources":["../../src/actions/set-connection-metadata.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAK/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;cAMhC,0BAAA,gCAA0B,wBAAA;YAMrC,MAAA"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/set-connection-metadata.d.ts
|
|
4
|
-
declare const NangoSetConnectionMetadataInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NangoSetConnectionMetadataInput: z.ZodObject<{
|
|
5
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6
|
+
connection_id: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
7
|
+
provider_config_key: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const NangoSetConnectionMetadataOutput: z.ZodObject<{
|
|
10
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
11
|
+
connection_id: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
12
|
+
provider_config_key: z.ZodNullable<z.ZodString>;
|
|
13
|
+
}, z.core.$loose>;
|
|
14
|
+
declare const nangoSetConnectionMetadata: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
19
|
//#endregion
|
|
8
20
|
export { nangoSetConnectionMetadata };
|
|
9
21
|
//# 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":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"set-connection-metadata.d.mts","names":[],"sources":["../../src/actions/set-connection-metadata.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAK/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;cAMhC,0BAAA,gCAA0B,wBAAA;YAMrC,MAAA"}
|
|
@@ -5,15 +5,15 @@ const nangoSetConnectionMetadata = action("NANGO_SET_CONNECTION_METADATA", {
|
|
|
5
5
|
name: "Set Connection Metadata",
|
|
6
6
|
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.",
|
|
7
7
|
input: z.object({
|
|
8
|
-
metadata: z.
|
|
8
|
+
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."),
|
|
9
9
|
connection_id: z.union([z.string(), z.array(z.string())]),
|
|
10
10
|
provider_config_key: z.string().describe("The integration's unique key (provider config key) used to create the connection.")
|
|
11
11
|
}).describe("Request model for setting custom metadata on Nango connections."),
|
|
12
12
|
output: z.object({
|
|
13
|
-
metadata: z.
|
|
13
|
+
metadata: z.record(z.string(), z.unknown()).describe("The metadata that was set on the connection(s)"),
|
|
14
14
|
connection_id: z.union([z.string(), z.array(z.string())]),
|
|
15
|
-
provider_config_key: z.string().describe("The integration's unique key")
|
|
16
|
-
}).describe("Response model for setting connection metadata.\nReturns the updated connection information.")
|
|
15
|
+
provider_config_key: z.string().describe("The integration's unique key").nullable()
|
|
16
|
+
}).passthrough().describe("Response model for setting connection metadata.\nReturns the updated connection information.")
|
|
17
17
|
});
|
|
18
18
|
//#endregion
|
|
19
19
|
export { nangoSetConnectionMetadata };
|
|
@@ -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
|
|
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":";;AAeA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf6C,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,iEAWH;CACP,QAX8C,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,8FAOhB;AACV,CAAC"}
|