@keystrokehq/nango 0.1.2 → 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/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/package.json +1 -1
|
@@ -9,7 +9,7 @@ declare const NangoScriptsConfigGetOutput: z.ZodObject<{
|
|
|
9
9
|
name: z.ZodNullable<z.ZodString>;
|
|
10
10
|
runs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
11
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
-
input: z.ZodOptional<z.ZodNullable<z.
|
|
12
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
13
13
|
models: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
14
14
|
scopes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
15
15
|
enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -18,20 +18,20 @@ declare const NangoScriptsConfigGetOutput: z.ZodObject<{
|
|
|
18
18
|
endpoints: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
19
19
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>>>>;
|
|
22
22
|
is_public: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
23
23
|
pre_built: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
24
24
|
sync_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
auto_start: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
26
26
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
-
json_schema: z.ZodOptional<z.ZodNullable<z.
|
|
27
|
+
json_schema: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
28
28
|
track_deletes: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
29
|
-
}, z.core.$
|
|
29
|
+
}, z.core.$loose>>>>;
|
|
30
30
|
actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
31
31
|
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
32
32
|
name: z.ZodNullable<z.ZodString>;
|
|
33
33
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
-
input: z.ZodOptional<z.ZodNullable<z.
|
|
34
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
35
35
|
scopes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
36
36
|
enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
37
37
|
returns: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
@@ -39,20 +39,20 @@ declare const NangoScriptsConfigGetOutput: z.ZodObject<{
|
|
|
39
39
|
endpoints: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
40
40
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
41
|
method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
-
}, z.core.$
|
|
42
|
+
}, z.core.$loose>>>>;
|
|
43
43
|
is_public: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
44
44
|
pre_built: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
45
45
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
-
json_schema: z.ZodOptional<z.ZodNullable<z.
|
|
47
|
-
}, z.core.$
|
|
46
|
+
json_schema: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
47
|
+
}, z.core.$loose>>>>;
|
|
48
48
|
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
49
|
"on-events": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
50
50
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
51
|
event: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
-
}, z.core.$
|
|
52
|
+
}, z.core.$loose>>>>;
|
|
53
53
|
providerConfigKey: z.ZodNullable<z.ZodString>;
|
|
54
|
-
}, z.core.$
|
|
55
|
-
}, z.core.$
|
|
54
|
+
}, z.core.$loose>>>>;
|
|
55
|
+
}, z.core.$loose>;
|
|
56
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]>;
|
|
57
57
|
//#endregion
|
|
58
58
|
export { nangoScriptsConfigGet };
|
|
@@ -9,7 +9,7 @@ declare const NangoScriptsConfigGetOutput: z.ZodObject<{
|
|
|
9
9
|
name: z.ZodNullable<z.ZodString>;
|
|
10
10
|
runs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
11
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
-
input: z.ZodOptional<z.ZodNullable<z.
|
|
12
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
13
13
|
models: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
14
14
|
scopes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
15
15
|
enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -18,20 +18,20 @@ declare const NangoScriptsConfigGetOutput: z.ZodObject<{
|
|
|
18
18
|
endpoints: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
19
19
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>>>>;
|
|
22
22
|
is_public: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
23
23
|
pre_built: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
24
24
|
sync_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
auto_start: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
26
26
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
-
json_schema: z.ZodOptional<z.ZodNullable<z.
|
|
27
|
+
json_schema: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
28
28
|
track_deletes: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
29
|
-
}, z.core.$
|
|
29
|
+
}, z.core.$loose>>>>;
|
|
30
30
|
actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
31
31
|
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
32
32
|
name: z.ZodNullable<z.ZodString>;
|
|
33
33
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
-
input: z.ZodOptional<z.ZodNullable<z.
|
|
34
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
35
35
|
scopes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
36
36
|
enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
37
37
|
returns: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
@@ -39,20 +39,20 @@ declare const NangoScriptsConfigGetOutput: z.ZodObject<{
|
|
|
39
39
|
endpoints: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
40
40
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
41
|
method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
-
}, z.core.$
|
|
42
|
+
}, z.core.$loose>>>>;
|
|
43
43
|
is_public: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
44
44
|
pre_built: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
45
45
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
-
json_schema: z.ZodOptional<z.ZodNullable<z.
|
|
47
|
-
}, z.core.$
|
|
46
|
+
json_schema: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
47
|
+
}, z.core.$loose>>>>;
|
|
48
48
|
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
49
|
"on-events": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
50
50
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
51
|
event: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
-
}, z.core.$
|
|
52
|
+
}, z.core.$loose>>>>;
|
|
53
53
|
providerConfigKey: z.ZodNullable<z.ZodString>;
|
|
54
|
-
}, z.core.$
|
|
55
|
-
}, z.core.$
|
|
54
|
+
}, z.core.$loose>>>>;
|
|
55
|
+
}, z.core.$loose>;
|
|
56
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]>;
|
|
57
57
|
//#endregion
|
|
58
58
|
export { nangoScriptsConfigGet };
|
|
@@ -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
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
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
53
|
providerConfigKey: z.string().describe("Unique configuration key for this integration.").nullable()
|
|
54
|
-
}).describe("Model representing a single integration's configuration.");
|
|
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 = 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}).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.
|
|
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":"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"}
|
|
@@ -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
12
|
provider_config_key: zod.z.string().describe("The integration's unique key").nullable()
|
|
13
|
-
}).describe("Response model for setting connection metadata.\nReturns the updated connection information.");
|
|
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 = z.object({\n metadata: z.
|
|
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"}
|
|
@@ -2,17 +2,17 @@ import { z } from "zod";
|
|
|
2
2
|
|
|
3
3
|
//#region src/actions/set-connection-metadata.d.ts
|
|
4
4
|
declare const NangoSetConnectionMetadataInput: z.ZodObject<{
|
|
5
|
-
metadata: z.
|
|
5
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6
6
|
connection_id: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
7
7
|
provider_config_key: z.ZodString;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
declare const NangoSetConnectionMetadataOutput: z.ZodObject<{
|
|
10
|
-
metadata: z.
|
|
10
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
11
11
|
connection_id: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
12
12
|
provider_config_key: z.ZodNullable<z.ZodString>;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>;
|
|
14
14
|
declare const nangoSetConnectionMetadata: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
|
-
metadata: Record<string,
|
|
15
|
+
metadata: Record<string, unknown>;
|
|
16
16
|
connection_id: string | string[];
|
|
17
17
|
provider_config_key: string;
|
|
18
18
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -2,17 +2,17 @@ import { z } from "zod";
|
|
|
2
2
|
|
|
3
3
|
//#region src/actions/set-connection-metadata.d.ts
|
|
4
4
|
declare const NangoSetConnectionMetadataInput: z.ZodObject<{
|
|
5
|
-
metadata: z.
|
|
5
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6
6
|
connection_id: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
7
7
|
provider_config_key: z.ZodString;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
declare const NangoSetConnectionMetadataOutput: z.ZodObject<{
|
|
10
|
-
metadata: z.
|
|
10
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
11
11
|
connection_id: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
12
12
|
provider_config_key: z.ZodNullable<z.ZodString>;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>;
|
|
14
14
|
declare const nangoSetConnectionMetadata: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
|
-
metadata: Record<string,
|
|
15
|
+
metadata: Record<string, unknown>;
|
|
16
16
|
connection_id: string | string[];
|
|
17
17
|
provider_config_key: string;
|
|
18
18
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -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
15
|
provider_config_key: z.string().describe("The integration's unique key").nullable()
|
|
16
|
-
}).describe("Response model for setting connection metadata.\nReturns the updated connection information.")
|
|
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 = z.object({\n metadata: z.
|
|
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"}
|
|
@@ -11,7 +11,7 @@ const NangoSyncTriggerPostInput = zod.z.object({
|
|
|
11
11
|
connection_id: zod.z.string().describe("The ID of the specific connection. If omitted, the syncs will be triggered for all relevant connections under the integration.").optional(),
|
|
12
12
|
provider_config_key: zod.z.string().describe("The ID of the integration (provider configuration) established within Nango. This is required.")
|
|
13
13
|
}).describe("Request schema for triggering sync process(es) in Nango.\n\nTriggers one-off execution of specified sync(s) for a given connection or all\napplicable connections if no connection is specified.");
|
|
14
|
-
const NangoSyncTriggerPostOutput = zod.z.object({ success: zod.z.boolean().describe("Indicates if the sync trigger was successful.").nullable() }).describe("Response schema returned after triggering a sync.");
|
|
14
|
+
const NangoSyncTriggerPostOutput = zod.z.object({ success: zod.z.boolean().describe("Indicates if the sync trigger was successful.").nullable() }).passthrough().describe("Response schema returned after triggering a sync.");
|
|
15
15
|
const nangoSyncTriggerPost = require_action.action("NANGO_SYNC_TRIGGER_POST", {
|
|
16
16
|
slug: "nango-sync-trigger-post",
|
|
17
17
|
name: "Trigger Sync",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-trigger-post.cjs","names":["z","action"],"sources":["../../src/actions/sync-trigger-post.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoSyncTriggerPostInput = z.object({\n syncs: z.array(z.string()).describe(\"List of sync names to trigger. Use an empty list [] to trigger all syncs for the integration.\"),\n sync_mode: z.enum([\"incremental\", \"full_refresh\", \"full_refresh_and_clear_cache\"]).describe(\"Execution mode for the sync trigger.\").optional(),\n connection_id: z.string().describe(\"The ID of the specific connection. If omitted, the syncs will be triggered for all relevant connections under the integration.\").optional(),\n provider_config_key: z.string().describe(\"The ID of the integration (provider configuration) established within Nango. This is required.\"),\n}).describe(\"Request schema for triggering sync process(es) in Nango.\\n\\nTriggers one-off execution of specified sync(s) for a given connection or all\\napplicable connections if no connection is specified.\");\nexport const NangoSyncTriggerPostOutput = z.object({\n success: z.boolean().describe(\"Indicates if the sync trigger was successful.\").nullable(),\n}).describe(\"Response schema returned after triggering a sync.\");\n\nexport const nangoSyncTriggerPost = action(\"NANGO_SYNC_TRIGGER_POST\", {\n slug: \"nango-sync-trigger-post\",\n name: \"Trigger Sync\",\n description: \"Tool to trigger sync process(es) manually. Use after establishing a connection and defining syncs. This triggers an additional, one-off execution of the specified sync(s) for a given connection or all applicable connections. Useful when you changed metadata for a connection and want to re-import data.\",\n input: NangoSyncTriggerPostInput,\n output: NangoSyncTriggerPostOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+FAA+F;CACnI,WAAWA,IAAAA,EAAE,KAAK;EAAC;EAAe;EAAgB;CAA8B,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC7I,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CAC9K,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;AAC3I,CAAC,CAAC,CAAC,SAAS,kMAAkM;AAC9M,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,EAC1F,CAAC,CAAC,CAAC,SAAS,mDAAmD;
|
|
1
|
+
{"version":3,"file":"sync-trigger-post.cjs","names":["z","action"],"sources":["../../src/actions/sync-trigger-post.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoSyncTriggerPostInput = z.object({\n syncs: z.array(z.string()).describe(\"List of sync names to trigger. Use an empty list [] to trigger all syncs for the integration.\"),\n sync_mode: z.enum([\"incremental\", \"full_refresh\", \"full_refresh_and_clear_cache\"]).describe(\"Execution mode for the sync trigger.\").optional(),\n connection_id: z.string().describe(\"The ID of the specific connection. If omitted, the syncs will be triggered for all relevant connections under the integration.\").optional(),\n provider_config_key: z.string().describe(\"The ID of the integration (provider configuration) established within Nango. This is required.\"),\n}).describe(\"Request schema for triggering sync process(es) in Nango.\\n\\nTriggers one-off execution of specified sync(s) for a given connection or all\\napplicable connections if no connection is specified.\");\nexport const NangoSyncTriggerPostOutput = z.object({\n success: z.boolean().describe(\"Indicates if the sync trigger was successful.\").nullable(),\n}).passthrough().describe(\"Response schema returned after triggering a sync.\");\n\nexport const nangoSyncTriggerPost = action(\"NANGO_SYNC_TRIGGER_POST\", {\n slug: \"nango-sync-trigger-post\",\n name: \"Trigger Sync\",\n description: \"Tool to trigger sync process(es) manually. Use after establishing a connection and defining syncs. This triggers an additional, one-off execution of the specified sync(s) for a given connection or all applicable connections. Useful when you changed metadata for a connection and want to re-import data.\",\n input: NangoSyncTriggerPostInput,\n output: NangoSyncTriggerPostOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+FAA+F;CACnI,WAAWA,IAAAA,EAAE,KAAK;EAAC;EAAe;EAAgB;CAA8B,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC7I,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CAC9K,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;AAC3I,CAAC,CAAC,CAAC,SAAS,kMAAkM;AAC9M,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,EAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -13,7 +13,7 @@ declare const NangoSyncTriggerPostInput: z.ZodObject<{
|
|
|
13
13
|
}, z.core.$strip>;
|
|
14
14
|
declare const NangoSyncTriggerPostOutput: z.ZodObject<{
|
|
15
15
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
16
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>;
|
|
17
17
|
declare const nangoSyncTriggerPost: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
18
18
|
syncs: string[];
|
|
19
19
|
provider_config_key: string;
|
|
@@ -13,7 +13,7 @@ declare const NangoSyncTriggerPostInput: z.ZodObject<{
|
|
|
13
13
|
}, z.core.$strip>;
|
|
14
14
|
declare const NangoSyncTriggerPostOutput: z.ZodObject<{
|
|
15
15
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
16
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>;
|
|
17
17
|
declare const nangoSyncTriggerPost: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
18
18
|
syncs: string[];
|
|
19
19
|
provider_config_key: string;
|
|
@@ -14,7 +14,7 @@ const nangoSyncTriggerPost = action("NANGO_SYNC_TRIGGER_POST", {
|
|
|
14
14
|
connection_id: z.string().describe("The ID of the specific connection. If omitted, the syncs will be triggered for all relevant connections under the integration.").optional(),
|
|
15
15
|
provider_config_key: z.string().describe("The ID of the integration (provider configuration) established within Nango. This is required.")
|
|
16
16
|
}).describe("Request schema for triggering sync process(es) in Nango.\n\nTriggers one-off execution of specified sync(s) for a given connection or all\napplicable connections if no connection is specified."),
|
|
17
|
-
output: z.object({ success: z.boolean().describe("Indicates if the sync trigger was successful.").nullable() }).describe("Response schema returned after triggering a sync.")
|
|
17
|
+
output: z.object({ success: z.boolean().describe("Indicates if the sync trigger was successful.").nullable() }).passthrough().describe("Response schema returned after triggering a sync.")
|
|
18
18
|
});
|
|
19
19
|
//#endregion
|
|
20
20
|
export { nangoSyncTriggerPost };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-trigger-post.mjs","names":[],"sources":["../../src/actions/sync-trigger-post.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoSyncTriggerPostInput = z.object({\n syncs: z.array(z.string()).describe(\"List of sync names to trigger. Use an empty list [] to trigger all syncs for the integration.\"),\n sync_mode: z.enum([\"incremental\", \"full_refresh\", \"full_refresh_and_clear_cache\"]).describe(\"Execution mode for the sync trigger.\").optional(),\n connection_id: z.string().describe(\"The ID of the specific connection. If omitted, the syncs will be triggered for all relevant connections under the integration.\").optional(),\n provider_config_key: z.string().describe(\"The ID of the integration (provider configuration) established within Nango. This is required.\"),\n}).describe(\"Request schema for triggering sync process(es) in Nango.\\n\\nTriggers one-off execution of specified sync(s) for a given connection or all\\napplicable connections if no connection is specified.\");\nexport const NangoSyncTriggerPostOutput = z.object({\n success: z.boolean().describe(\"Indicates if the sync trigger was successful.\").nullable(),\n}).describe(\"Response schema returned after triggering a sync.\");\n\nexport const nangoSyncTriggerPost = action(\"NANGO_SYNC_TRIGGER_POST\", {\n slug: \"nango-sync-trigger-post\",\n name: \"Trigger Sync\",\n description: \"Tool to trigger sync process(es) manually. Use after establishing a connection and defining syncs. This triggers an additional, one-off execution of the specified sync(s) for a given connection or all applicable connections. Useful when you changed metadata for a connection and want to re-import data.\",\n input: NangoSyncTriggerPostInput,\n output: NangoSyncTriggerPostOutput,\n});\n"],"mappings":";;AAcA,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAduC,EAAE,OAAO;EAChD,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+FAA+F;EACnI,WAAW,EAAE,KAAK;GAAC;GAAe;GAAgB;EAA8B,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC7I,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;EAC9K,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;CAC3I,CAAC,CAAC,CAAC,SAAS,kMASH;CACP,QATwC,EAAE,OAAO,EACjD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,EAC1F,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"sync-trigger-post.mjs","names":[],"sources":["../../src/actions/sync-trigger-post.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoSyncTriggerPostInput = z.object({\n syncs: z.array(z.string()).describe(\"List of sync names to trigger. Use an empty list [] to trigger all syncs for the integration.\"),\n sync_mode: z.enum([\"incremental\", \"full_refresh\", \"full_refresh_and_clear_cache\"]).describe(\"Execution mode for the sync trigger.\").optional(),\n connection_id: z.string().describe(\"The ID of the specific connection. If omitted, the syncs will be triggered for all relevant connections under the integration.\").optional(),\n provider_config_key: z.string().describe(\"The ID of the integration (provider configuration) established within Nango. This is required.\"),\n}).describe(\"Request schema for triggering sync process(es) in Nango.\\n\\nTriggers one-off execution of specified sync(s) for a given connection or all\\napplicable connections if no connection is specified.\");\nexport const NangoSyncTriggerPostOutput = z.object({\n success: z.boolean().describe(\"Indicates if the sync trigger was successful.\").nullable(),\n}).passthrough().describe(\"Response schema returned after triggering a sync.\");\n\nexport const nangoSyncTriggerPost = action(\"NANGO_SYNC_TRIGGER_POST\", {\n slug: \"nango-sync-trigger-post\",\n name: \"Trigger Sync\",\n description: \"Tool to trigger sync process(es) manually. Use after establishing a connection and defining syncs. This triggers an additional, one-off execution of the specified sync(s) for a given connection or all applicable connections. Useful when you changed metadata for a connection and want to re-import data.\",\n input: NangoSyncTriggerPostInput,\n output: NangoSyncTriggerPostOutput,\n});\n"],"mappings":";;AAcA,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAduC,EAAE,OAAO;EAChD,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+FAA+F;EACnI,WAAW,EAAE,KAAK;GAAC;GAAe;GAAgB;EAA8B,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC7I,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;EAC9K,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;CAC3I,CAAC,CAAC,CAAC,SAAS,kMASH;CACP,QATwC,EAAE,OAAO,EACjD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,EAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
|
|
@@ -2,15 +2,15 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/update-connection-metadata.ts
|
|
4
4
|
const NangoUpdateConnectionMetadataInput = zod.z.object({
|
|
5
|
-
metadata: zod.z.
|
|
5
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The metadata properties to update. Only specified properties will be overridden; existing properties not included will remain unchanged."),
|
|
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 ID (unique key) used to create the connection.")
|
|
8
8
|
}).describe("Request model for updating connection metadata.\nUpdates only the specified metadata properties without overwriting the entire metadata object.");
|
|
9
9
|
const NangoUpdateConnectionMetadataOutput = zod.z.object({
|
|
10
|
-
metadata: zod.z.
|
|
10
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The updated metadata object with all properties."),
|
|
11
11
|
connection_id: zod.z.union([zod.z.string(), zod.z.array(zod.z.string())]),
|
|
12
12
|
provider_config_key: zod.z.string().describe("The integration ID used to create the connection.").nullable()
|
|
13
|
-
}).describe("Response model for updating connection metadata.\nReturns the updated connection details.");
|
|
13
|
+
}).passthrough().describe("Response model for updating connection metadata.\nReturns the updated connection details.");
|
|
14
14
|
const nangoUpdateConnectionMetadata = require_action.action("NANGO_UPDATE_CONNECTION_METADATA", {
|
|
15
15
|
slug: "nango-update-connection-metadata",
|
|
16
16
|
name: "Update Connection Metadata",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-connection-metadata.cjs","names":["z","action"],"sources":["../../src/actions/update-connection-metadata.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoUpdateConnectionMetadataInput = z.object({\n metadata: z.
|
|
1
|
+
{"version":3,"file":"update-connection-metadata.cjs","names":["z","action"],"sources":["../../src/actions/update-connection-metadata.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoUpdateConnectionMetadataInput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"The metadata properties to update. Only specified properties will be overridden; existing properties not included will remain unchanged.\"),\n connection_id: z.union([z.string(), z.array(z.string())]),\n provider_config_key: z.string().describe(\"The integration ID (unique key) used to create the connection.\"),\n}).describe(\"Request model for updating connection metadata.\\nUpdates only the specified metadata properties without overwriting the entire metadata object.\");\nexport const NangoUpdateConnectionMetadataOutput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"The updated metadata object with all properties.\"),\n connection_id: z.union([z.string(), z.array(z.string())]),\n provider_config_key: z.string().describe(\"The integration ID used to create the connection.\").nullable(),\n}).passthrough().describe(\"Response model for updating connection metadata.\\nReturns the updated connection details.\");\n\nexport const nangoUpdateConnectionMetadata = action(\"NANGO_UPDATE_CONNECTION_METADATA\", {\n slug: \"nango-update-connection-metadata\",\n name: \"Update Connection Metadata\",\n description: \"Tool to edit custom metadata for one or multiple connections. Use when you need to update specific metadata properties without overwriting the entire metadata object.\",\n input: NangoUpdateConnectionMetadataInput,\n output: NangoUpdateConnectionMetadataOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0IAA0I;CAC/L,eAAeA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC;CACxD,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;AAC3G,CAAC,CAAC,CAAC,SAAS,iJAAiJ;AAC7J,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD;CACvG,eAAeA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC;CACxD,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2FAA2F;AAErH,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -2,17 +2,17 @@ import { z } from "zod";
|
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-connection-metadata.d.ts
|
|
4
4
|
declare const NangoUpdateConnectionMetadataInput: z.ZodObject<{
|
|
5
|
-
metadata: z.
|
|
5
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6
6
|
connection_id: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
7
7
|
provider_config_key: z.ZodString;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
declare const NangoUpdateConnectionMetadataOutput: z.ZodObject<{
|
|
10
|
-
metadata: z.
|
|
10
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
11
11
|
connection_id: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
12
12
|
provider_config_key: z.ZodNullable<z.ZodString>;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>;
|
|
14
14
|
declare const nangoUpdateConnectionMetadata: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
|
-
metadata: Record<string,
|
|
15
|
+
metadata: Record<string, unknown>;
|
|
16
16
|
connection_id: string | string[];
|
|
17
17
|
provider_config_key: string;
|
|
18
18
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -2,17 +2,17 @@ import { z } from "zod";
|
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-connection-metadata.d.ts
|
|
4
4
|
declare const NangoUpdateConnectionMetadataInput: z.ZodObject<{
|
|
5
|
-
metadata: z.
|
|
5
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6
6
|
connection_id: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
7
7
|
provider_config_key: z.ZodString;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
declare const NangoUpdateConnectionMetadataOutput: z.ZodObject<{
|
|
10
|
-
metadata: z.
|
|
10
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
11
11
|
connection_id: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
12
12
|
provider_config_key: z.ZodNullable<z.ZodString>;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>;
|
|
14
14
|
declare const nangoUpdateConnectionMetadata: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
|
-
metadata: Record<string,
|
|
15
|
+
metadata: Record<string, unknown>;
|
|
16
16
|
connection_id: string | string[];
|
|
17
17
|
provider_config_key: string;
|
|
18
18
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -5,15 +5,15 @@ const nangoUpdateConnectionMetadata = action("NANGO_UPDATE_CONNECTION_METADATA",
|
|
|
5
5
|
name: "Update Connection Metadata",
|
|
6
6
|
description: "Tool to edit custom metadata for one or multiple connections. Use when you need to update specific metadata properties without overwriting the entire metadata object.",
|
|
7
7
|
input: z.object({
|
|
8
|
-
metadata: z.
|
|
8
|
+
metadata: z.record(z.string(), z.unknown()).describe("The metadata properties to update. Only specified properties will be overridden; existing properties not included will remain unchanged."),
|
|
9
9
|
connection_id: z.union([z.string(), z.array(z.string())]),
|
|
10
10
|
provider_config_key: z.string().describe("The integration ID (unique key) used to create the connection.")
|
|
11
11
|
}).describe("Request model for updating connection metadata.\nUpdates only the specified metadata properties without overwriting the entire metadata object."),
|
|
12
12
|
output: z.object({
|
|
13
|
-
metadata: z.
|
|
13
|
+
metadata: z.record(z.string(), z.unknown()).describe("The updated metadata object with all properties."),
|
|
14
14
|
connection_id: z.union([z.string(), z.array(z.string())]),
|
|
15
15
|
provider_config_key: z.string().describe("The integration ID used to create the connection.").nullable()
|
|
16
|
-
}).describe("Response model for updating connection metadata.\nReturns the updated connection details.")
|
|
16
|
+
}).passthrough().describe("Response model for updating connection metadata.\nReturns the updated connection details.")
|
|
17
17
|
});
|
|
18
18
|
//#endregion
|
|
19
19
|
export { nangoUpdateConnectionMetadata };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-connection-metadata.mjs","names":[],"sources":["../../src/actions/update-connection-metadata.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoUpdateConnectionMetadataInput = z.object({\n metadata: z.
|
|
1
|
+
{"version":3,"file":"update-connection-metadata.mjs","names":[],"sources":["../../src/actions/update-connection-metadata.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoUpdateConnectionMetadataInput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"The metadata properties to update. Only specified properties will be overridden; existing properties not included will remain unchanged.\"),\n connection_id: z.union([z.string(), z.array(z.string())]),\n provider_config_key: z.string().describe(\"The integration ID (unique key) used to create the connection.\"),\n}).describe(\"Request model for updating connection metadata.\\nUpdates only the specified metadata properties without overwriting the entire metadata object.\");\nexport const NangoUpdateConnectionMetadataOutput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"The updated metadata object with all properties.\"),\n connection_id: z.union([z.string(), z.array(z.string())]),\n provider_config_key: z.string().describe(\"The integration ID used to create the connection.\").nullable(),\n}).passthrough().describe(\"Response model for updating connection metadata.\\nReturns the updated connection details.\");\n\nexport const nangoUpdateConnectionMetadata = action(\"NANGO_UPDATE_CONNECTION_METADATA\", {\n slug: \"nango-update-connection-metadata\",\n name: \"Update Connection Metadata\",\n description: \"Tool to edit custom metadata for one or multiple connections. Use when you need to update specific metadata properties without overwriting the entire metadata object.\",\n input: NangoUpdateConnectionMetadataInput,\n output: NangoUpdateConnectionMetadataOutput,\n});\n"],"mappings":";;AAeA,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfgD,EAAE,OAAO;EACzD,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0IAA0I;EAC/L,eAAe,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;EACxD,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CAC3G,CAAC,CAAC,CAAC,SAAS,iJAWH;CACP,QAXiD,EAAE,OAAO;EAC1D,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD;EACvG,eAAe,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;EACxD,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2FAOhB;AACV,CAAC"}
|
|
@@ -10,13 +10,13 @@ const NangoUpdateIntegrationInput = zod.z.object({
|
|
|
10
10
|
client_id: zod.z.string().describe("OAuth2 client ID"),
|
|
11
11
|
client_secret: zod.z.string().describe("OAuth2 client secret"),
|
|
12
12
|
webhook_secret: zod.z.string().nullable().optional()
|
|
13
|
-
}).describe("OAuth2 credentials schema."),
|
|
13
|
+
}).passthrough().describe("OAuth2 credentials schema."),
|
|
14
14
|
zod.z.object({
|
|
15
15
|
type: zod.z.string().describe("Credential type (must be 'APP')"),
|
|
16
16
|
app_id: zod.z.string().describe("Application ID"),
|
|
17
17
|
app_link: zod.z.string().describe("Application link/URL"),
|
|
18
18
|
private_key: zod.z.string().describe("Private key for the app")
|
|
19
|
-
}).describe("App credentials schema (e.g., GitHub App)."),
|
|
19
|
+
}).passthrough().describe("App credentials schema (e.g., GitHub App)."),
|
|
20
20
|
zod.z.object({
|
|
21
21
|
type: zod.z.string().describe("Credential type (must be 'APP')"),
|
|
22
22
|
app_id: zod.z.string().describe("Application ID"),
|
|
@@ -24,7 +24,7 @@ const NangoUpdateIntegrationInput = zod.z.object({
|
|
|
24
24
|
client_id: zod.z.string().describe("OAuth2 client ID"),
|
|
25
25
|
private_key: zod.z.string().describe("Private key for the app"),
|
|
26
26
|
client_secret: zod.z.string().describe("OAuth2 client secret")
|
|
27
|
-
}).describe("Hybrid app credentials schema combining OAuth2 and App credentials.")
|
|
27
|
+
}).passthrough().describe("Hybrid app credentials schema combining OAuth2 and App credentials.")
|
|
28
28
|
]).optional(),
|
|
29
29
|
display_name: zod.z.string().describe("The integration display name").optional(),
|
|
30
30
|
new_unique_key: zod.z.string().describe("New unique integration ID if you want to rename the integration key").optional()
|
|
@@ -36,8 +36,8 @@ const NangoUpdateIntegration_IntegrationDataSchema = zod.z.object({
|
|
|
36
36
|
unique_key: zod.z.string().describe("The integration ID that you created in Nango").nullable(),
|
|
37
37
|
updated_at: zod.z.string().describe("Last time it was updated").nullable(),
|
|
38
38
|
display_name: zod.z.string().describe("The provider display name").nullable()
|
|
39
|
-
}).describe("Integration data model.");
|
|
40
|
-
const NangoUpdateIntegrationOutput = zod.z.object({ data: NangoUpdateIntegration_IntegrationDataSchema.nullable() }).describe("Response model for updating an integration.");
|
|
39
|
+
}).passthrough().describe("Integration data model.");
|
|
40
|
+
const NangoUpdateIntegrationOutput = zod.z.object({ data: NangoUpdateIntegration_IntegrationDataSchema.nullable() }).passthrough().describe("Response model for updating an integration.");
|
|
41
41
|
const nangoUpdateIntegration = require_action.action("NANGO_UPDATE_INTEGRATION", {
|
|
42
42
|
slug: "nango-update-integration",
|
|
43
43
|
name: "Update Integration",
|