@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
|
@@ -2,64 +2,64 @@ import { action } from "../action.mjs";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/actions/add-connection.ts
|
|
4
4
|
const NangoAddConnectionInput = z.object({
|
|
5
|
-
tags: z.
|
|
5
|
+
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(),
|
|
6
6
|
end_user: z.object({
|
|
7
7
|
id: z.string().describe("End user ID"),
|
|
8
|
-
tags: z.
|
|
8
|
+
tags: z.record(z.string(), z.unknown()).describe("End user tags").optional(),
|
|
9
9
|
email: z.string().describe("End user email").optional(),
|
|
10
10
|
display_name: z.string().describe("End user display name").optional()
|
|
11
11
|
}).describe("End user information (deprecated, use tags instead).").optional(),
|
|
12
|
-
metadata: z.
|
|
12
|
+
metadata: z.record(z.string(), z.unknown()).describe("Metadata to be attached to the connection (required for some OAuth APIs).").optional(),
|
|
13
13
|
credentials: z.union([
|
|
14
14
|
z.object({
|
|
15
15
|
type: z.string().describe("Credential type, must be 'OAUTH1'"),
|
|
16
16
|
oauth_token: z.string().describe("OAuth 1.0 token"),
|
|
17
17
|
oauth_token_secret: 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
|
z.object({
|
|
20
20
|
type: z.string().describe("Credential type, must be 'OAUTH2'"),
|
|
21
21
|
expires_at: z.string().nullable().optional(),
|
|
22
22
|
access_token: z.string().describe("OAuth 2.0 access token"),
|
|
23
23
|
refresh_token: z.string().nullable().optional(),
|
|
24
|
-
config_override: z.
|
|
25
|
-
}).describe("OAuth2 credentials for the connection."),
|
|
24
|
+
config_override: z.record(z.string(), z.unknown()).nullable().optional()
|
|
25
|
+
}).passthrough().describe("OAuth2 credentials for the connection."),
|
|
26
26
|
z.object({
|
|
27
27
|
type: z.string().describe("Credential type, must be 'BASIC'"),
|
|
28
28
|
password: z.string().describe("Password for basic authentication"),
|
|
29
29
|
username: 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
|
z.object({
|
|
32
32
|
type: z.string().describe("Credential type, must be 'API_KEY'"),
|
|
33
33
|
apiKey: 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
|
z.object({
|
|
36
36
|
type: z.string().describe("Credential type, must be 'OAUTH2_CC'"),
|
|
37
37
|
token: z.string().describe("OAuth 2.0 token"),
|
|
38
38
|
client_id: z.string().describe("OAuth 2.0 client ID"),
|
|
39
39
|
expires_at: z.string().nullable().optional(),
|
|
40
40
|
client_secret: z.string().describe("OAuth 2.0 client secret")
|
|
41
|
-
}).describe("OAuth2 Client credentials for the connection."),
|
|
42
|
-
z.object({ type: 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
|
+
z.object({ type: z.string().describe("Credential type, must be 'NONE' for unauthenticated") }).passthrough().describe("Unauthenticated credentials for the connection."),
|
|
43
43
|
z.object({
|
|
44
44
|
type: z.string().describe("Credential type, must be 'TBA'"),
|
|
45
45
|
token_id: z.string().describe("Token ID"),
|
|
46
46
|
token_secret: z.string().describe("Token secret"),
|
|
47
|
-
config_override: z.
|
|
48
|
-
}).describe("TBA (Token-Based Authentication) credentials for the connection."),
|
|
47
|
+
config_override: z.record(z.string(), z.unknown()).describe("Configuration override")
|
|
48
|
+
}).passthrough().describe("TBA (Token-Based Authentication) credentials for the connection."),
|
|
49
49
|
z.object({
|
|
50
50
|
type: z.string().describe("Credential type, must be 'APP'"),
|
|
51
51
|
app_id: z.string().describe("GitHub app ID"),
|
|
52
52
|
installation_id: 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: z.string().describe("The connection ID to use for this connection. If not provided, Nango will generate one.").optional(),
|
|
56
|
-
connection_config: z.
|
|
56
|
+
connection_config: z.record(z.string(), z.unknown()).describe("Additional configuration to be attached to the connection (required for some OAuth APIs).").optional(),
|
|
57
57
|
provider_config_key: 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 = z.object({
|
|
60
60
|
type: z.string().describe("Error type (e.g., 'auth', 'sync').").nullable(),
|
|
61
61
|
log_id: 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 nangoAddConnection = action("NANGO_ADD_CONNECTION", {
|
|
64
64
|
slug: "nango-add-connection",
|
|
65
65
|
name: "Add Connection",
|
|
@@ -67,19 +67,19 @@ const nangoAddConnection = action("NANGO_ADD_CONNECTION", {
|
|
|
67
67
|
input: NangoAddConnectionInput,
|
|
68
68
|
output: z.object({
|
|
69
69
|
id: z.number().int().describe("Internal Nango connection identifier.").nullable(),
|
|
70
|
-
tags: z.
|
|
70
|
+
tags: z.record(z.string(), z.unknown()).describe("Connection tags (key/value strings)."),
|
|
71
71
|
errors: z.array(NangoAddConnection_ConnectionErrorSchema).describe("List of connection errors if any."),
|
|
72
|
-
end_user: z.
|
|
73
|
-
metadata: z.
|
|
72
|
+
end_user: z.record(z.string(), z.unknown()).describe("End user information if available.").nullable().optional(),
|
|
73
|
+
metadata: z.record(z.string(), z.unknown()).describe("Connection metadata."),
|
|
74
74
|
provider: z.string().describe("Provider/integration name (e.g., 'github', 'slack').").nullable(),
|
|
75
75
|
created_at: z.string().describe("Connection creation timestamp in ISO 8601 format.").nullable(),
|
|
76
76
|
updated_at: z.string().describe("Connection last update timestamp in ISO 8601 format.").nullable(),
|
|
77
|
-
credentials: z.
|
|
77
|
+
credentials: z.record(z.string(), z.unknown()).describe("The credentials attached to the connection."),
|
|
78
78
|
connection_id: z.string().describe("The connection ID used to create the connection.").nullable(),
|
|
79
79
|
last_fetched_at: z.string().describe("Last fetched timestamp in ISO 8601 format.").nullable(),
|
|
80
|
-
connection_config: z.
|
|
80
|
+
connection_config: z.record(z.string(), z.unknown()).describe("Connection configuration."),
|
|
81
81
|
provider_config_key: z.string().describe("The integration ID that was used.").nullable()
|
|
82
|
-
}).describe("Response model for adding a connection.")
|
|
82
|
+
}).passthrough().describe("Response model for adding a connection.")
|
|
83
83
|
});
|
|
84
84
|
//#endregion
|
|
85
85
|
export { nangoAddConnection };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-connection.mjs","names":[],"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.
|
|
1
|
+
{"version":3,"file":"add-connection.mjs","names":[],"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,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;CAC1K,UAAU,EAAE,OAAO;EACnB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;EACrC,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;EAC3E,OAAO,EAAE,OAAO,CAAC,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,SAAS,6CAA6C;EACrG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAChG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAC5F,mBAAmB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2BAA2B;EACzF,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAOhB;AACV,CAAC"}
|
|
@@ -12,13 +12,13 @@ const NangoConnectionGetInput = zod.z.object({
|
|
|
12
12
|
const NangoConnectionGet_ConnectionErrorSchema = zod.z.object({
|
|
13
13
|
type: zod.z.string().describe("Error type (e.g., 'auth', 'sync')").nullable(),
|
|
14
14
|
log_id: zod.z.string().describe("Associated log ID for debugging").nullable().optional()
|
|
15
|
-
}).describe("Represents an error associated with a connection.");
|
|
15
|
+
}).passthrough().describe("Represents an error associated with a connection.");
|
|
16
16
|
const NangoConnectionGet_EndUserSchema = zod.z.object({
|
|
17
17
|
id: zod.z.string().describe("End user ID").nullable().optional(),
|
|
18
18
|
email: zod.z.string().describe("End user email").nullable().optional(),
|
|
19
19
|
display_name: zod.z.string().describe("End user display name").nullable().optional(),
|
|
20
20
|
organization: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Organization details").nullable().optional()
|
|
21
|
-
}).describe("End user information associated with a connection.");
|
|
21
|
+
}).passthrough().describe("End user information associated with a connection.");
|
|
22
22
|
const NangoConnectionGet_ConnectionSchema = zod.z.object({
|
|
23
23
|
id: zod.z.number().int().describe("Internal Nango connection identifier").nullable(),
|
|
24
24
|
errors: zod.z.array(NangoConnectionGet_ConnectionErrorSchema).describe("List of connection errors (auth/sync issues)").nullable().optional(),
|
|
@@ -28,8 +28,8 @@ const NangoConnectionGet_ConnectionSchema = zod.z.object({
|
|
|
28
28
|
provider: zod.z.string().describe("Provider/integration name").nullable(),
|
|
29
29
|
connection_id: zod.z.string().describe("The connection ID provided when creating the connection").nullable(),
|
|
30
30
|
provider_config_key: zod.z.string().describe("Integration/provider configuration key (unique key)").nullable()
|
|
31
|
-
}).describe("Represents a Nango connection object (without credentials).");
|
|
32
|
-
const NangoConnectionGetOutput = zod.z.object({ connections: zod.z.array(NangoConnectionGet_ConnectionSchema).describe("List of connection objects without credentials") }).describe("Response model for listing Nango connections.\nNote: This endpoint returns connections WITHOUT credentials.\nUse 'Get Connection Details' to retrieve credentials for a specific connection.");
|
|
31
|
+
}).passthrough().describe("Represents a Nango connection object (without credentials).");
|
|
32
|
+
const NangoConnectionGetOutput = zod.z.object({ connections: zod.z.array(NangoConnectionGet_ConnectionSchema).describe("List of connection objects without credentials") }).passthrough().describe("Response model for listing Nango connections.\nNote: This endpoint returns connections WITHOUT credentials.\nUse 'Get Connection Details' to retrieve credentials for a specific connection.");
|
|
33
33
|
const nangoConnectionGet = require_action.action("NANGO_CONNECTION_GET", {
|
|
34
34
|
slug: "nango-connection-get",
|
|
35
35
|
name: "List Connections",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection-get.cjs","names":["z","action"],"sources":["../../src/actions/connection-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoConnectionGetInput = z.object({\n page: z.number().int().describe(\"Page number for paginated results.\").optional(),\n limit: z.number().int().describe(\"Maximum number of connections to return.\").optional(),\n search: z.string().describe(\"Search connections. Will partially match connection IDs or end user profiles.\").optional(),\n end_user_id: z.string().describe(\"Filter by exact end user ID.\").optional(),\n connection_id: z.string().describe(\"Filter by exact connection ID. Can return multiple connections with the same ID across integrations.\").optional(),\n end_user_organization_id: z.string().describe(\"Filter by exact end user organization ID.\").optional(),\n}).describe(\"Request model for listing Nango connections.\\nAll parameters are optional and used for filtering.\");\nconst NangoConnectionGet_ConnectionErrorSchema = z.object({\n type: z.string().describe(\"Error type (e.g., 'auth', 'sync')\").nullable(),\n log_id: z.string().describe(\"Associated log ID for debugging\").nullable().optional(),\n}).describe(\"Represents an error associated with a connection.\");\nconst NangoConnectionGet_EndUserSchema = z.object({\n id: z.string().describe(\"End user ID\").nullable().optional(),\n email: z.string().describe(\"End user email\").nullable().optional(),\n display_name: z.string().describe(\"End user display name\").nullable().optional(),\n organization: z.record(z.string(), z.unknown()).describe(\"Organization details\").nullable().optional(),\n}).describe(\"End user information associated with a connection.\");\nconst NangoConnectionGet_ConnectionSchema = z.object({\n id: z.number().int().describe(\"Internal Nango connection identifier\").nullable(),\n errors: z.array(NangoConnectionGet_ConnectionErrorSchema).describe(\"List of connection errors (auth/sync issues)\").nullable().optional(),\n created: z.string().describe(\"Connection creation timestamp in ISO 8601 format\").nullable(),\n end_user: NangoConnectionGet_EndUserSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata attached to the connection\").nullable().optional(),\n provider: z.string().describe(\"Provider/integration name\").nullable(),\n connection_id: z.string().describe(\"The connection ID provided when creating the connection\").nullable(),\n provider_config_key: z.string().describe(\"Integration/provider configuration key (unique key)\").nullable(),\n}).describe(\"Represents a Nango connection object (without credentials).\");\nexport const NangoConnectionGetOutput = z.object({\n connections: z.array(NangoConnectionGet_ConnectionSchema).describe(\"List of connection objects without credentials\"),\n}).describe(\"Response model for listing Nango connections.\\nNote: This endpoint returns connections WITHOUT credentials.\\nUse 'Get Connection Details' to retrieve credentials for a specific connection.\");\n\nexport const nangoConnectionGet = action(\"NANGO_CONNECTION_GET\", {\n slug: \"nango-connection-get\",\n name: \"List Connections\",\n description: \"List all Nango connections without credentials. Use this to discover available connections, check connection status, and find connection IDs. Omitting all filters returns every connection across all integrations; use `connection_id`, `end_user_id`, or `end_user_organization_id` to narrow results. To retrieve credentials for a specific connection, use the 'Get Connection Details' action.\",\n input: NangoConnectionGetInput,\n output: NangoConnectionGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACtF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACtH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC1E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACpJ,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,mGAAmG;AAC/G,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,SAAS,mDAAmD;
|
|
1
|
+
{"version":3,"file":"connection-get.cjs","names":["z","action"],"sources":["../../src/actions/connection-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoConnectionGetInput = z.object({\n page: z.number().int().describe(\"Page number for paginated results.\").optional(),\n limit: z.number().int().describe(\"Maximum number of connections to return.\").optional(),\n search: z.string().describe(\"Search connections. Will partially match connection IDs or end user profiles.\").optional(),\n end_user_id: z.string().describe(\"Filter by exact end user ID.\").optional(),\n connection_id: z.string().describe(\"Filter by exact connection ID. Can return multiple connections with the same ID across integrations.\").optional(),\n end_user_organization_id: z.string().describe(\"Filter by exact end user organization ID.\").optional(),\n}).describe(\"Request model for listing Nango connections.\\nAll parameters are optional and used for filtering.\");\nconst NangoConnectionGet_ConnectionErrorSchema = z.object({\n type: z.string().describe(\"Error type (e.g., 'auth', 'sync')\").nullable(),\n log_id: z.string().describe(\"Associated log ID for debugging\").nullable().optional(),\n}).passthrough().describe(\"Represents an error associated with a connection.\");\nconst NangoConnectionGet_EndUserSchema = z.object({\n id: z.string().describe(\"End user ID\").nullable().optional(),\n email: z.string().describe(\"End user email\").nullable().optional(),\n display_name: z.string().describe(\"End user display name\").nullable().optional(),\n organization: z.record(z.string(), z.unknown()).describe(\"Organization details\").nullable().optional(),\n}).passthrough().describe(\"End user information associated with a connection.\");\nconst NangoConnectionGet_ConnectionSchema = z.object({\n id: z.number().int().describe(\"Internal Nango connection identifier\").nullable(),\n errors: z.array(NangoConnectionGet_ConnectionErrorSchema).describe(\"List of connection errors (auth/sync issues)\").nullable().optional(),\n created: z.string().describe(\"Connection creation timestamp in ISO 8601 format\").nullable(),\n end_user: NangoConnectionGet_EndUserSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata attached to the connection\").nullable().optional(),\n provider: z.string().describe(\"Provider/integration name\").nullable(),\n connection_id: z.string().describe(\"The connection ID provided when creating the connection\").nullable(),\n provider_config_key: z.string().describe(\"Integration/provider configuration key (unique key)\").nullable(),\n}).passthrough().describe(\"Represents a Nango connection object (without credentials).\");\nexport const NangoConnectionGetOutput = z.object({\n connections: z.array(NangoConnectionGet_ConnectionSchema).describe(\"List of connection objects without credentials\"),\n}).passthrough().describe(\"Response model for listing Nango connections.\\nNote: This endpoint returns connections WITHOUT credentials.\\nUse 'Get Connection Details' to retrieve credentials for a specific connection.\");\n\nexport const nangoConnectionGet = action(\"NANGO_CONNECTION_GET\", {\n slug: \"nango-connection-get\",\n name: \"List Connections\",\n description: \"List all Nango connections without credentials. Use this to discover available connections, check connection status, and find connection IDs. Omitting all filters returns every connection across all integrations; use `connection_id`, `end_user_id`, or `end_user_organization_id` to narrow results. To retrieve credentials for a specific connection, use the 'Get Connection Details' action.\",\n input: NangoConnectionGetInput,\n output: NangoConnectionGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACtF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACtH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC1E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACpJ,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,mGAAmG;AAC/G,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjE,cAAcA,IAAAA,EAAE,OAAO,CAAC,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L;AAExN,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -15,20 +15,20 @@ declare const NangoConnectionGetOutput: z.ZodObject<{
|
|
|
15
15
|
errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
16
16
|
type: z.ZodNullable<z.ZodString>;
|
|
17
17
|
log_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>>>>;
|
|
19
19
|
created: z.ZodNullable<z.ZodString>;
|
|
20
20
|
end_user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
21
21
|
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
22
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
23
|
display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
24
|
organization: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
25
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$loose>>>;
|
|
26
26
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
27
27
|
provider: z.ZodNullable<z.ZodString>;
|
|
28
28
|
connection_id: z.ZodNullable<z.ZodString>;
|
|
29
29
|
provider_config_key: z.ZodNullable<z.ZodString>;
|
|
30
|
-
}, z.core.$
|
|
31
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$loose>>;
|
|
31
|
+
}, z.core.$loose>;
|
|
32
32
|
declare const nangoConnectionGet: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
33
33
|
page?: number | undefined;
|
|
34
34
|
limit?: number | undefined;
|
|
@@ -15,20 +15,20 @@ declare const NangoConnectionGetOutput: z.ZodObject<{
|
|
|
15
15
|
errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
16
16
|
type: z.ZodNullable<z.ZodString>;
|
|
17
17
|
log_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>>>>;
|
|
19
19
|
created: z.ZodNullable<z.ZodString>;
|
|
20
20
|
end_user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
21
21
|
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
22
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
23
|
display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
24
|
organization: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
25
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$loose>>>;
|
|
26
26
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
27
27
|
provider: z.ZodNullable<z.ZodString>;
|
|
28
28
|
connection_id: z.ZodNullable<z.ZodString>;
|
|
29
29
|
provider_config_key: z.ZodNullable<z.ZodString>;
|
|
30
|
-
}, z.core.$
|
|
31
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$loose>>;
|
|
31
|
+
}, z.core.$loose>;
|
|
32
32
|
declare const nangoConnectionGet: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
33
33
|
page?: number | undefined;
|
|
34
34
|
limit?: number | undefined;
|
|
@@ -12,13 +12,13 @@ const NangoConnectionGetInput = z.object({
|
|
|
12
12
|
const NangoConnectionGet_ConnectionErrorSchema = z.object({
|
|
13
13
|
type: z.string().describe("Error type (e.g., 'auth', 'sync')").nullable(),
|
|
14
14
|
log_id: z.string().describe("Associated log ID for debugging").nullable().optional()
|
|
15
|
-
}).describe("Represents an error associated with a connection.");
|
|
15
|
+
}).passthrough().describe("Represents an error associated with a connection.");
|
|
16
16
|
const NangoConnectionGet_EndUserSchema = z.object({
|
|
17
17
|
id: z.string().describe("End user ID").nullable().optional(),
|
|
18
18
|
email: z.string().describe("End user email").nullable().optional(),
|
|
19
19
|
display_name: z.string().describe("End user display name").nullable().optional(),
|
|
20
20
|
organization: z.record(z.string(), z.unknown()).describe("Organization details").nullable().optional()
|
|
21
|
-
}).describe("End user information associated with a connection.");
|
|
21
|
+
}).passthrough().describe("End user information associated with a connection.");
|
|
22
22
|
const NangoConnectionGet_ConnectionSchema = z.object({
|
|
23
23
|
id: z.number().int().describe("Internal Nango connection identifier").nullable(),
|
|
24
24
|
errors: z.array(NangoConnectionGet_ConnectionErrorSchema).describe("List of connection errors (auth/sync issues)").nullable().optional(),
|
|
@@ -28,13 +28,13 @@ const NangoConnectionGet_ConnectionSchema = z.object({
|
|
|
28
28
|
provider: z.string().describe("Provider/integration name").nullable(),
|
|
29
29
|
connection_id: z.string().describe("The connection ID provided when creating the connection").nullable(),
|
|
30
30
|
provider_config_key: z.string().describe("Integration/provider configuration key (unique key)").nullable()
|
|
31
|
-
}).describe("Represents a Nango connection object (without credentials).");
|
|
31
|
+
}).passthrough().describe("Represents a Nango connection object (without credentials).");
|
|
32
32
|
const nangoConnectionGet = action("NANGO_CONNECTION_GET", {
|
|
33
33
|
slug: "nango-connection-get",
|
|
34
34
|
name: "List Connections",
|
|
35
35
|
description: "List all Nango connections without credentials. Use this to discover available connections, check connection status, and find connection IDs. Omitting all filters returns every connection across all integrations; use `connection_id`, `end_user_id`, or `end_user_organization_id` to narrow results. To retrieve credentials for a specific connection, use the 'Get Connection Details' action.",
|
|
36
36
|
input: NangoConnectionGetInput,
|
|
37
|
-
output: z.object({ connections: z.array(NangoConnectionGet_ConnectionSchema).describe("List of connection objects without credentials") }).describe("Response model for listing Nango connections.\nNote: This endpoint returns connections WITHOUT credentials.\nUse 'Get Connection Details' to retrieve credentials for a specific connection.")
|
|
37
|
+
output: z.object({ connections: z.array(NangoConnectionGet_ConnectionSchema).describe("List of connection objects without credentials") }).passthrough().describe("Response model for listing Nango connections.\nNote: This endpoint returns connections WITHOUT credentials.\nUse 'Get Connection Details' to retrieve credentials for a specific connection.")
|
|
38
38
|
});
|
|
39
39
|
//#endregion
|
|
40
40
|
export { nangoConnectionGet };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection-get.mjs","names":[],"sources":["../../src/actions/connection-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoConnectionGetInput = z.object({\n page: z.number().int().describe(\"Page number for paginated results.\").optional(),\n limit: z.number().int().describe(\"Maximum number of connections to return.\").optional(),\n search: z.string().describe(\"Search connections. Will partially match connection IDs or end user profiles.\").optional(),\n end_user_id: z.string().describe(\"Filter by exact end user ID.\").optional(),\n connection_id: z.string().describe(\"Filter by exact connection ID. Can return multiple connections with the same ID across integrations.\").optional(),\n end_user_organization_id: z.string().describe(\"Filter by exact end user organization ID.\").optional(),\n}).describe(\"Request model for listing Nango connections.\\nAll parameters are optional and used for filtering.\");\nconst NangoConnectionGet_ConnectionErrorSchema = z.object({\n type: z.string().describe(\"Error type (e.g., 'auth', 'sync')\").nullable(),\n log_id: z.string().describe(\"Associated log ID for debugging\").nullable().optional(),\n}).describe(\"Represents an error associated with a connection.\");\nconst NangoConnectionGet_EndUserSchema = z.object({\n id: z.string().describe(\"End user ID\").nullable().optional(),\n email: z.string().describe(\"End user email\").nullable().optional(),\n display_name: z.string().describe(\"End user display name\").nullable().optional(),\n organization: z.record(z.string(), z.unknown()).describe(\"Organization details\").nullable().optional(),\n}).describe(\"End user information associated with a connection.\");\nconst NangoConnectionGet_ConnectionSchema = z.object({\n id: z.number().int().describe(\"Internal Nango connection identifier\").nullable(),\n errors: z.array(NangoConnectionGet_ConnectionErrorSchema).describe(\"List of connection errors (auth/sync issues)\").nullable().optional(),\n created: z.string().describe(\"Connection creation timestamp in ISO 8601 format\").nullable(),\n end_user: NangoConnectionGet_EndUserSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata attached to the connection\").nullable().optional(),\n provider: z.string().describe(\"Provider/integration name\").nullable(),\n connection_id: z.string().describe(\"The connection ID provided when creating the connection\").nullable(),\n provider_config_key: z.string().describe(\"Integration/provider configuration key (unique key)\").nullable(),\n}).describe(\"Represents a Nango connection object (without credentials).\");\nexport const NangoConnectionGetOutput = z.object({\n connections: z.array(NangoConnectionGet_ConnectionSchema).describe(\"List of connection objects without credentials\"),\n}).describe(\"Response model for listing Nango connections.\\nNote: This endpoint returns connections WITHOUT credentials.\\nUse 'Get Connection Details' to retrieve credentials for a specific connection.\");\n\nexport const nangoConnectionGet = action(\"NANGO_CONNECTION_GET\", {\n slug: \"nango-connection-get\",\n name: \"List Connections\",\n description: \"List all Nango connections without credentials. Use this to discover available connections, check connection status, and find connection IDs. Omitting all filters returns every connection across all integrations; use `connection_id`, `end_user_id`, or `end_user_organization_id` to narrow results. To retrieve credentials for a specific connection, use the 'Get Connection Details' action.\",\n input: NangoConnectionGetInput,\n output: NangoConnectionGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACtH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC1E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACpJ,0BAA0B,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,mGAAmG;AAC/G,MAAM,2CAA2C,EAAE,OAAO;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,SAAS,mDAAmD;
|
|
1
|
+
{"version":3,"file":"connection-get.mjs","names":[],"sources":["../../src/actions/connection-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoConnectionGetInput = z.object({\n page: z.number().int().describe(\"Page number for paginated results.\").optional(),\n limit: z.number().int().describe(\"Maximum number of connections to return.\").optional(),\n search: z.string().describe(\"Search connections. Will partially match connection IDs or end user profiles.\").optional(),\n end_user_id: z.string().describe(\"Filter by exact end user ID.\").optional(),\n connection_id: z.string().describe(\"Filter by exact connection ID. Can return multiple connections with the same ID across integrations.\").optional(),\n end_user_organization_id: z.string().describe(\"Filter by exact end user organization ID.\").optional(),\n}).describe(\"Request model for listing Nango connections.\\nAll parameters are optional and used for filtering.\");\nconst NangoConnectionGet_ConnectionErrorSchema = z.object({\n type: z.string().describe(\"Error type (e.g., 'auth', 'sync')\").nullable(),\n log_id: z.string().describe(\"Associated log ID for debugging\").nullable().optional(),\n}).passthrough().describe(\"Represents an error associated with a connection.\");\nconst NangoConnectionGet_EndUserSchema = z.object({\n id: z.string().describe(\"End user ID\").nullable().optional(),\n email: z.string().describe(\"End user email\").nullable().optional(),\n display_name: z.string().describe(\"End user display name\").nullable().optional(),\n organization: z.record(z.string(), z.unknown()).describe(\"Organization details\").nullable().optional(),\n}).passthrough().describe(\"End user information associated with a connection.\");\nconst NangoConnectionGet_ConnectionSchema = z.object({\n id: z.number().int().describe(\"Internal Nango connection identifier\").nullable(),\n errors: z.array(NangoConnectionGet_ConnectionErrorSchema).describe(\"List of connection errors (auth/sync issues)\").nullable().optional(),\n created: z.string().describe(\"Connection creation timestamp in ISO 8601 format\").nullable(),\n end_user: NangoConnectionGet_EndUserSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata attached to the connection\").nullable().optional(),\n provider: z.string().describe(\"Provider/integration name\").nullable(),\n connection_id: z.string().describe(\"The connection ID provided when creating the connection\").nullable(),\n provider_config_key: z.string().describe(\"Integration/provider configuration key (unique key)\").nullable(),\n}).passthrough().describe(\"Represents a Nango connection object (without credentials).\");\nexport const NangoConnectionGetOutput = z.object({\n connections: z.array(NangoConnectionGet_ConnectionSchema).describe(\"List of connection objects without credentials\"),\n}).passthrough().describe(\"Response model for listing Nango connections.\\nNote: This endpoint returns connections WITHOUT credentials.\\nUse 'Get Connection Details' to retrieve credentials for a specific connection.\");\n\nexport const nangoConnectionGet = action(\"NANGO_CONNECTION_GET\", {\n slug: \"nango-connection-get\",\n name: \"List Connections\",\n description: \"List all Nango connections without credentials. Use this to discover available connections, check connection status, and find connection IDs. Omitting all filters returns every connection across all integrations; use `connection_id`, `end_user_id`, or `end_user_organization_id` to narrow results. To retrieve credentials for a specific connection, use the 'Get Connection Details' action.\",\n input: NangoConnectionGetInput,\n output: NangoConnectionGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACtH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC1E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACpJ,0BAA0B,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,mGAAmG;AAC/G,MAAM,2CAA2C,EAAE,OAAO;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AAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACvG,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AAKvF,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsC,EAAE,OAAO,EAC/C,aAAa,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,gDAAgD,EACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8LAOhB;AACV,CAAC"}
|
|
@@ -2,27 +2,27 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/create-connect-session.ts
|
|
4
4
|
const NangoCreateConnectSessionInput = zod.z.object({
|
|
5
|
-
tags: zod.z.
|
|
5
|
+
tags: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Connection tags as key/value pairs. Keys are normalized to lowercase. Maximum value length is 255 characters.").optional(),
|
|
6
6
|
end_user: zod.z.object({
|
|
7
7
|
id: zod.z.string().describe("Unique identifier for the end user. Required field."),
|
|
8
|
-
tags: zod.z.
|
|
8
|
+
tags: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Connection tags as key/value pairs. Keys are normalized to lowercase. Maximum value length is 255 characters.").optional(),
|
|
9
9
|
email: zod.z.string().describe("Email address of the end user.").optional(),
|
|
10
10
|
display_name: zod.z.string().describe("Display name for the end user.").optional()
|
|
11
11
|
}).describe("End user information object. The 'id' field is required."),
|
|
12
|
-
overrides: zod.z.
|
|
12
|
+
overrides: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Override settings for integrations, keyed by integration unique name.").optional(),
|
|
13
13
|
organization: zod.z.object({
|
|
14
14
|
id: zod.z.string().describe("Unique identifier for the organization the end user belongs to."),
|
|
15
15
|
display_name: zod.z.string().describe("Display name for the organization.").optional()
|
|
16
16
|
}).describe("Organization information for the connect session.").optional(),
|
|
17
17
|
allowed_integrations: zod.z.array(zod.z.string()).describe("List of integration IDs to filter which integrations the end user can interact with in the Connect UI.").optional(),
|
|
18
|
-
integrations_config_defaults: zod.z.
|
|
18
|
+
integrations_config_defaults: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Default configuration settings for integrations, keyed by integration unique name.").optional()
|
|
19
19
|
}).describe("Request model for creating a new connect session.");
|
|
20
20
|
const NangoCreateConnectSession_ConnectSessionDataSchema = zod.z.object({
|
|
21
21
|
token: zod.z.string().describe("The connect session token used for authentication.").nullable(),
|
|
22
22
|
expires_at: zod.z.string().describe("ISO 8601 timestamp indicating when the session token expires (typically 30 minutes from creation).").nullable(),
|
|
23
23
|
connect_link: zod.z.string().describe("Direct URL to connect the user to the integration. Can be used as a magic link.").nullable().optional()
|
|
24
|
-
}).describe("Data object containing the connect session details.");
|
|
25
|
-
const NangoCreateConnectSessionOutput = zod.z.object({ data: NangoCreateConnectSession_ConnectSessionDataSchema.nullable() }).describe("Response model for creating a connect session.");
|
|
24
|
+
}).passthrough().describe("Data object containing the connect session details.");
|
|
25
|
+
const NangoCreateConnectSessionOutput = zod.z.object({ data: NangoCreateConnectSession_ConnectSessionDataSchema.nullable() }).passthrough().describe("Response model for creating a connect session.");
|
|
26
26
|
const nangoCreateConnectSession = require_action.action("NANGO_CREATE_CONNECT_SESSION", {
|
|
27
27
|
slug: "nango-create-connect-session",
|
|
28
28
|
name: "Create Connect Session",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-connect-session.cjs","names":["z","action"],"sources":["../../src/actions/create-connect-session.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoCreateConnectSessionInput = z.object({\n tags: z.
|
|
1
|
+
{"version":3,"file":"create-connect-session.cjs","names":["z","action"],"sources":["../../src/actions/create-connect-session.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoCreateConnectSessionInput = z.object({\n tags: z.record(z.string(), z.unknown()).describe(\"Connection tags as key/value pairs. Keys are normalized to lowercase. Maximum value length is 255 characters.\").optional(),\n end_user: z.object({\n id: z.string().describe(\"Unique identifier for the end user. Required field.\"),\n tags: z.record(z.string(), z.unknown()).describe(\"Connection tags as key/value pairs. Keys are normalized to lowercase. Maximum value length is 255 characters.\").optional(),\n email: z.string().describe(\"Email address of the end user.\").optional(),\n display_name: z.string().describe(\"Display name for the end user.\").optional(),\n}).describe(\"End user information object. The 'id' field is required.\"),\n overrides: z.record(z.string(), z.unknown()).describe(\"Override settings for integrations, keyed by integration unique name.\").optional(),\n organization: z.object({\n id: z.string().describe(\"Unique identifier for 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 connect session.\").optional(),\n allowed_integrations: z.array(z.string()).describe(\"List of integration IDs to filter which integrations the end user can interact with in the Connect UI.\").optional(),\n integrations_config_defaults: z.record(z.string(), z.unknown()).describe(\"Default configuration settings for integrations, keyed by integration unique name.\").optional(),\n}).describe(\"Request model for creating a new connect session.\");\nconst NangoCreateConnectSession_ConnectSessionDataSchema = z.object({\n token: z.string().describe(\"The connect session token used for authentication.\").nullable(),\n expires_at: z.string().describe(\"ISO 8601 timestamp indicating when the session token expires (typically 30 minutes from creation).\").nullable(),\n connect_link: z.string().describe(\"Direct URL to connect the user to the integration. Can be used as a magic link.\").nullable().optional(),\n}).passthrough().describe(\"Data object containing the connect session details.\");\nexport const NangoCreateConnectSessionOutput = z.object({\n data: NangoCreateConnectSession_ConnectSessionDataSchema.nullable(),\n}).passthrough().describe(\"Response model for creating a connect session.\");\n\nexport const nangoCreateConnectSession = action(\"NANGO_CREATE_CONNECT_SESSION\", {\n slug: \"nango-create-connect-session\",\n name: \"Create Connect Session\",\n description: \"Tool to create a new connect session with a 30-minute lifespan for enabling connection creation via Connect UI. Use when you need to generate a session token for users to authorize integrations through Nango's Connect interface.\",\n input: Nang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,CAAC,SAAS;AAC1K,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,qDAAqDA,IAAAA,EAAE,OAAO;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC1F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC/I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,MAAM,mDAAmD,SAAS,EACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -2,43 +2,43 @@ import { z } from "zod";
|
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-connect-session.d.ts
|
|
4
4
|
declare const NangoCreateConnectSessionInput: z.ZodObject<{
|
|
5
|
-
tags: z.ZodOptional<z.
|
|
5
|
+
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6
6
|
end_user: 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
|
-
overrides: z.ZodOptional<z.
|
|
12
|
+
overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
13
|
organization: z.ZodOptional<z.ZodObject<{
|
|
14
14
|
id: z.ZodString;
|
|
15
15
|
display_name: z.ZodOptional<z.ZodString>;
|
|
16
16
|
}, z.core.$strip>>;
|
|
17
17
|
allowed_integrations: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18
|
-
integrations_config_defaults: z.ZodOptional<z.
|
|
18
|
+
integrations_config_defaults: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
19
19
|
}, z.core.$strip>;
|
|
20
20
|
declare const NangoCreateConnectSessionOutput: z.ZodObject<{
|
|
21
21
|
data: z.ZodNullable<z.ZodObject<{
|
|
22
22
|
token: z.ZodNullable<z.ZodString>;
|
|
23
23
|
expires_at: z.ZodNullable<z.ZodString>;
|
|
24
24
|
connect_link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
-
}, z.core.$
|
|
26
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$loose>>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
27
|
declare const nangoCreateConnectSession: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
28
|
end_user: {
|
|
29
29
|
id: string;
|
|
30
|
-
tags?: Record<string,
|
|
30
|
+
tags?: Record<string, unknown> | undefined;
|
|
31
31
|
email?: string | undefined;
|
|
32
32
|
display_name?: string | undefined;
|
|
33
33
|
};
|
|
34
|
-
tags?: Record<string,
|
|
35
|
-
overrides?: Record<string,
|
|
34
|
+
tags?: Record<string, unknown> | undefined;
|
|
35
|
+
overrides?: Record<string, unknown> | undefined;
|
|
36
36
|
organization?: {
|
|
37
37
|
id: string;
|
|
38
38
|
display_name?: string | undefined;
|
|
39
39
|
} | undefined;
|
|
40
40
|
allowed_integrations?: string[] | undefined;
|
|
41
|
-
integrations_config_defaults?: Record<string,
|
|
41
|
+
integrations_config_defaults?: Record<string, unknown> | undefined;
|
|
42
42
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
43
43
|
//#endregion
|
|
44
44
|
export { nangoCreateConnectSession };
|
|
@@ -2,43 +2,43 @@ import { z } from "zod";
|
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-connect-session.d.ts
|
|
4
4
|
declare const NangoCreateConnectSessionInput: z.ZodObject<{
|
|
5
|
-
tags: z.ZodOptional<z.
|
|
5
|
+
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6
6
|
end_user: 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
|
-
overrides: z.ZodOptional<z.
|
|
12
|
+
overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
13
|
organization: z.ZodOptional<z.ZodObject<{
|
|
14
14
|
id: z.ZodString;
|
|
15
15
|
display_name: z.ZodOptional<z.ZodString>;
|
|
16
16
|
}, z.core.$strip>>;
|
|
17
17
|
allowed_integrations: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18
|
-
integrations_config_defaults: z.ZodOptional<z.
|
|
18
|
+
integrations_config_defaults: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
19
19
|
}, z.core.$strip>;
|
|
20
20
|
declare const NangoCreateConnectSessionOutput: z.ZodObject<{
|
|
21
21
|
data: z.ZodNullable<z.ZodObject<{
|
|
22
22
|
token: z.ZodNullable<z.ZodString>;
|
|
23
23
|
expires_at: z.ZodNullable<z.ZodString>;
|
|
24
24
|
connect_link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
-
}, z.core.$
|
|
26
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$loose>>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
27
|
declare const nangoCreateConnectSession: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
28
|
end_user: {
|
|
29
29
|
id: string;
|
|
30
|
-
tags?: Record<string,
|
|
30
|
+
tags?: Record<string, unknown> | undefined;
|
|
31
31
|
email?: string | undefined;
|
|
32
32
|
display_name?: string | undefined;
|
|
33
33
|
};
|
|
34
|
-
tags?: Record<string,
|
|
35
|
-
overrides?: Record<string,
|
|
34
|
+
tags?: Record<string, unknown> | undefined;
|
|
35
|
+
overrides?: Record<string, unknown> | undefined;
|
|
36
36
|
organization?: {
|
|
37
37
|
id: string;
|
|
38
38
|
display_name?: string | undefined;
|
|
39
39
|
} | undefined;
|
|
40
40
|
allowed_integrations?: string[] | undefined;
|
|
41
|
-
integrations_config_defaults?: Record<string,
|
|
41
|
+
integrations_config_defaults?: Record<string, unknown> | undefined;
|
|
42
42
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
43
43
|
//#endregion
|
|
44
44
|
export { nangoCreateConnectSession };
|
|
@@ -2,32 +2,32 @@ import { action } from "../action.mjs";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/actions/create-connect-session.ts
|
|
4
4
|
const NangoCreateConnectSessionInput = z.object({
|
|
5
|
-
tags: z.
|
|
5
|
+
tags: z.record(z.string(), z.unknown()).describe("Connection tags as key/value pairs. Keys are normalized to lowercase. Maximum value length is 255 characters.").optional(),
|
|
6
6
|
end_user: z.object({
|
|
7
7
|
id: z.string().describe("Unique identifier for the end user. Required field."),
|
|
8
|
-
tags: z.
|
|
8
|
+
tags: z.record(z.string(), z.unknown()).describe("Connection tags as key/value pairs. Keys are normalized to lowercase. Maximum value length is 255 characters.").optional(),
|
|
9
9
|
email: z.string().describe("Email address of the end user.").optional(),
|
|
10
10
|
display_name: z.string().describe("Display name for the end user.").optional()
|
|
11
11
|
}).describe("End user information object. The 'id' field is required."),
|
|
12
|
-
overrides: z.
|
|
12
|
+
overrides: z.record(z.string(), z.unknown()).describe("Override settings for integrations, keyed by integration unique name.").optional(),
|
|
13
13
|
organization: z.object({
|
|
14
14
|
id: z.string().describe("Unique identifier for 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 connect session.").optional(),
|
|
17
17
|
allowed_integrations: z.array(z.string()).describe("List of integration IDs to filter which integrations the end user can interact with in the Connect UI.").optional(),
|
|
18
|
-
integrations_config_defaults: z.
|
|
18
|
+
integrations_config_defaults: z.record(z.string(), z.unknown()).describe("Default configuration settings for integrations, keyed by integration unique name.").optional()
|
|
19
19
|
}).describe("Request model for creating a new connect session.");
|
|
20
20
|
const NangoCreateConnectSession_ConnectSessionDataSchema = z.object({
|
|
21
21
|
token: z.string().describe("The connect session token used for authentication.").nullable(),
|
|
22
22
|
expires_at: z.string().describe("ISO 8601 timestamp indicating when the session token expires (typically 30 minutes from creation).").nullable(),
|
|
23
23
|
connect_link: z.string().describe("Direct URL to connect the user to the integration. Can be used as a magic link.").nullable().optional()
|
|
24
|
-
}).describe("Data object containing the connect session details.");
|
|
24
|
+
}).passthrough().describe("Data object containing the connect session details.");
|
|
25
25
|
const nangoCreateConnectSession = action("NANGO_CREATE_CONNECT_SESSION", {
|
|
26
26
|
slug: "nango-create-connect-session",
|
|
27
27
|
name: "Create Connect Session",
|
|
28
28
|
description: "Tool to create a new connect session with a 30-minute lifespan for enabling connection creation via Connect UI. Use when you need to generate a session token for users to authorize integrations through Nango's Connect interface.",
|
|
29
29
|
input: NangoCreateConnectSessionInput,
|
|
30
|
-
output: z.object({ data: NangoCreateConnectSession_ConnectSessionDataSchema.nullable() }).describe("Response model for creating a connect session.")
|
|
30
|
+
output: z.object({ data: NangoCreateConnectSession_ConnectSessionDataSchema.nullable() }).passthrough().describe("Response model for creating a connect session.")
|
|
31
31
|
});
|
|
32
32
|
//#endregion
|
|
33
33
|
export { nangoCreateConnectSession };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-connect-session.mjs","names":[],"sources":["../../src/actions/create-connect-session.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoCreateConnectSessionInput = z.object({\n tags: z.
|
|
1
|
+
{"version":3,"file":"create-connect-session.mjs","names":[],"sources":["../../src/actions/create-connect-session.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoCreateConnectSessionInput = z.object({\n tags: z.record(z.string(), z.unknown()).describe(\"Connection tags as key/value pairs. Keys are normalized to lowercase. Maximum value length is 255 characters.\").optional(),\n end_user: z.object({\n id: z.string().describe(\"Unique identifier for the end user. Required field.\"),\n tags: z.record(z.string(), z.unknown()).describe(\"Connection tags as key/value pairs. Keys are normalized to lowercase. Maximum value length is 255 characters.\").optional(),\n email: z.string().describe(\"Email address of the end user.\").optional(),\n display_name: z.string().describe(\"Display name for the end user.\").optional(),\n}).describe(\"End user information object. The 'id' field is required.\"),\n overrides: z.record(z.string(), z.unknown()).describe(\"Override settings for integrations, keyed by integration unique name.\").optional(),\n organization: z.object({\n id: z.string().describe(\"Unique identifier for 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 connect session.\").optional(),\n allowed_integrations: z.array(z.string()).describe(\"List of integration IDs to filter which integrations the end user can interact with in the Connect UI.\").optional(),\n integrations_config_defaults: z.record(z.string(), z.unknown()).describe(\"Default configuration settings for integrations, keyed by integration unique name.\").optional(),\n}).describe(\"Request model for creating a new connect session.\");\nconst NangoCreateConnectSession_ConnectSessionDataSchema = z.object({\n token: z.string().describe(\"The connect session token used for authentication.\").nullable(),\n expires_at: z.string().describe(\"ISO 8601 timestamp indicating when the session token expires (typically 30 minutes from creation).\").nullable(),\n connect_link: z.string().describe(\"Direct URL to connect the user to the integration. Can be used as a magic link.\").nullable().optional(),\n}).passthrough().describe(\"Data object containing the connect session details.\");\nexport const NangoCreateConnectSessionOutput = z.object({\n data: NangoCreateConnectSession_ConnectSessionDataSchema.nullable(),\n}).passthrough().describe(\"Response model for creating a connect session.\");\n\nexport const nangoCreateConnectSession = action(\"NANGO_CREATE_CONNECT_SESSION\", {\n slug: \"nango-create-connect-session\",\n name: \"Create Connect Session\",\n description: \"Tool to create a new connect session with a 30-minute lifespan for enabling connection creation via Connect UI. Use when you need to generate a session token for users to authorize integrations through Nango's Connect interface.\",\n input: NangoCreateConnectSessionInput,\n output: NangoCreateConnectSessionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CAC3K,UAAU,EAAE,OAAO;EACnB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;EAC7E,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;EAC3K,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACtE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC/E,CAAC,CAAC,CAAC,SAAS,0DAA0D;CACpE,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CACxI,cAAc,EAAE,OAAO;EACvB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;EACzF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACnF,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxE,sBAAsB,EAAE,MAAM,EAAE,OAAO,CAAC,C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