@keystrokehq/nango 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/action-trigger-post.cjs +1 -1
- package/dist/actions/action-trigger-post.cjs.map +1 -1
- package/dist/actions/action-trigger-post.d.cts +15 -3
- package/dist/actions/action-trigger-post.d.cts.map +1 -1
- package/dist/actions/action-trigger-post.d.mts +15 -3
- package/dist/actions/action-trigger-post.d.mts.map +1 -1
- package/dist/actions/action-trigger-post.mjs +1 -1
- package/dist/actions/action-trigger-post.mjs.map +1 -1
- package/dist/actions/add-connection.cjs +30 -30
- package/dist/actions/add-connection.cjs.map +1 -1
- package/dist/actions/add-connection.d.cts +122 -3
- package/dist/actions/add-connection.d.cts.map +1 -1
- package/dist/actions/add-connection.d.mts +122 -3
- package/dist/actions/add-connection.d.mts.map +1 -1
- package/dist/actions/add-connection.mjs +30 -30
- package/dist/actions/add-connection.mjs.map +1 -1
- package/dist/actions/connection-get.cjs +10 -10
- package/dist/actions/connection-get.cjs.map +1 -1
- package/dist/actions/connection-get.d.cts +36 -3
- package/dist/actions/connection-get.d.cts.map +1 -1
- package/dist/actions/connection-get.d.mts +36 -3
- package/dist/actions/connection-get.d.mts.map +1 -1
- package/dist/actions/connection-get.mjs +10 -10
- package/dist/actions/connection-get.mjs.map +1 -1
- package/dist/actions/create-connect-session.cjs +8 -8
- package/dist/actions/create-connect-session.cjs.map +1 -1
- package/dist/actions/create-connect-session.d.cts +39 -3
- package/dist/actions/create-connect-session.d.cts.map +1 -1
- package/dist/actions/create-connect-session.d.mts +39 -3
- package/dist/actions/create-connect-session.d.mts.map +1 -1
- package/dist/actions/create-connect-session.mjs +8 -8
- package/dist/actions/create-connect-session.mjs.map +1 -1
- package/dist/actions/create-integration.cjs +10 -10
- package/dist/actions/create-integration.cjs.map +1 -1
- package/dist/actions/create-integration.d.cts +62 -3
- package/dist/actions/create-integration.d.cts.map +1 -1
- package/dist/actions/create-integration.d.mts +62 -3
- package/dist/actions/create-integration.d.mts.map +1 -1
- package/dist/actions/create-integration.mjs +10 -10
- package/dist/actions/create-integration.mjs.map +1 -1
- package/dist/actions/delete-connection.cjs +1 -1
- package/dist/actions/delete-connection.cjs.map +1 -1
- package/dist/actions/delete-connection.d.cts +11 -3
- package/dist/actions/delete-connection.d.cts.map +1 -1
- package/dist/actions/delete-connection.d.mts +11 -3
- package/dist/actions/delete-connection.d.mts.map +1 -1
- package/dist/actions/delete-connection.mjs +1 -1
- package/dist/actions/delete-connection.mjs.map +1 -1
- package/dist/actions/delete-integration.cjs +1 -1
- package/dist/actions/delete-integration.cjs.map +1 -1
- package/dist/actions/delete-integration.d.cts +9 -3
- package/dist/actions/delete-integration.d.cts.map +1 -1
- package/dist/actions/delete-integration.d.mts +9 -3
- package/dist/actions/delete-integration.d.mts.map +1 -1
- package/dist/actions/delete-integration.mjs +1 -1
- package/dist/actions/delete-integration.mjs.map +1 -1
- package/dist/actions/edit-connection.cjs +3 -3
- package/dist/actions/edit-connection.cjs.map +1 -1
- package/dist/actions/edit-connection.d.cts +25 -3
- package/dist/actions/edit-connection.d.cts.map +1 -1
- package/dist/actions/edit-connection.d.mts +25 -3
- package/dist/actions/edit-connection.d.mts.map +1 -1
- package/dist/actions/edit-connection.mjs +3 -3
- package/dist/actions/edit-connection.mjs.map +1 -1
- package/dist/actions/get-connection.cjs +19 -19
- package/dist/actions/get-connection.cjs.map +1 -1
- package/dist/actions/get-connection.d.cts +38 -3
- package/dist/actions/get-connection.d.cts.map +1 -1
- package/dist/actions/get-connection.d.mts +38 -3
- package/dist/actions/get-connection.d.mts.map +1 -1
- package/dist/actions/get-connection.mjs +19 -19
- package/dist/actions/get-connection.mjs.map +1 -1
- package/dist/actions/get-environment-variables.cjs +4 -4
- package/dist/actions/get-environment-variables.cjs.map +1 -1
- package/dist/actions/get-environment-variables.d.cts +8 -3
- package/dist/actions/get-environment-variables.d.cts.map +1 -1
- package/dist/actions/get-environment-variables.d.mts +8 -3
- package/dist/actions/get-environment-variables.d.mts.map +1 -1
- package/dist/actions/get-environment-variables.mjs +4 -4
- package/dist/actions/get-environment-variables.mjs.map +1 -1
- package/dist/actions/get-integration.cjs +8 -8
- package/dist/actions/get-integration.cjs.map +1 -1
- package/dist/actions/get-integration.d.cts +26 -3
- package/dist/actions/get-integration.d.cts.map +1 -1
- package/dist/actions/get-integration.d.mts +26 -3
- package/dist/actions/get-integration.d.mts.map +1 -1
- package/dist/actions/get-integration.mjs +8 -8
- package/dist/actions/get-integration.mjs.map +1 -1
- package/dist/actions/get-proxy.cjs +5 -5
- package/dist/actions/get-proxy.cjs.map +1 -1
- package/dist/actions/get-proxy.d.cts +28 -3
- package/dist/actions/get-proxy.d.cts.map +1 -1
- package/dist/actions/get-proxy.d.mts +28 -3
- package/dist/actions/get-proxy.d.mts.map +1 -1
- package/dist/actions/get-proxy.mjs +5 -5
- package/dist/actions/get-proxy.mjs.map +1 -1
- package/dist/actions/get-sync-status.cjs +8 -8
- package/dist/actions/get-sync-status.cjs.map +1 -1
- package/dist/actions/get-sync-status.d.cts +35 -3
- package/dist/actions/get-sync-status.d.cts.map +1 -1
- package/dist/actions/get-sync-status.d.mts +35 -3
- package/dist/actions/get-sync-status.d.mts.map +1 -1
- package/dist/actions/get-sync-status.mjs +8 -8
- package/dist/actions/get-sync-status.mjs.map +1 -1
- package/dist/actions/list-connections.cjs +14 -14
- package/dist/actions/list-connections.cjs.map +1 -1
- package/dist/actions/list-connections.d.cts +39 -3
- package/dist/actions/list-connections.d.cts.map +1 -1
- package/dist/actions/list-connections.d.mts +39 -3
- package/dist/actions/list-connections.d.mts.map +1 -1
- package/dist/actions/list-connections.mjs +14 -14
- package/dist/actions/list-connections.mjs.map +1 -1
- package/dist/actions/list-integrations.cjs +7 -7
- package/dist/actions/list-integrations.cjs.map +1 -1
- package/dist/actions/list-integrations.d.cts +12 -3
- package/dist/actions/list-integrations.d.cts.map +1 -1
- package/dist/actions/list-integrations.d.mts +12 -3
- package/dist/actions/list-integrations.d.mts.map +1 -1
- package/dist/actions/list-integrations.mjs +7 -7
- package/dist/actions/list-integrations.mjs.map +1 -1
- package/dist/actions/providers-get-get.cjs +4 -4
- package/dist/actions/providers-get-get.cjs.map +1 -1
- package/dist/actions/providers-get-get.d.cts +21 -3
- package/dist/actions/providers-get-get.d.cts.map +1 -1
- package/dist/actions/providers-get-get.d.mts +21 -3
- package/dist/actions/providers-get-get.d.mts.map +1 -1
- package/dist/actions/providers-get-get.mjs +4 -4
- package/dist/actions/providers-get-get.mjs.map +1 -1
- package/dist/actions/providers-list-get.cjs +4 -4
- package/dist/actions/providers-list-get.cjs.map +1 -1
- package/dist/actions/providers-list-get.d.cts +13 -3
- package/dist/actions/providers-list-get.d.cts.map +1 -1
- package/dist/actions/providers-list-get.d.mts +13 -3
- package/dist/actions/providers-list-get.d.mts.map +1 -1
- package/dist/actions/providers-list-get.mjs +4 -4
- package/dist/actions/providers-list-get.mjs.map +1 -1
- package/dist/actions/put-proxy.cjs +4 -4
- package/dist/actions/put-proxy.cjs.map +1 -1
- package/dist/actions/put-proxy.d.cts +23 -3
- package/dist/actions/put-proxy.d.cts.map +1 -1
- package/dist/actions/put-proxy.d.mts +23 -3
- package/dist/actions/put-proxy.d.mts.map +1 -1
- package/dist/actions/put-proxy.mjs +4 -4
- package/dist/actions/put-proxy.mjs.map +1 -1
- package/dist/actions/reconnect-session-post.cjs +8 -8
- package/dist/actions/reconnect-session-post.cjs.map +1 -1
- package/dist/actions/reconnect-session-post.d.cts +41 -3
- package/dist/actions/reconnect-session-post.d.cts.map +1 -1
- package/dist/actions/reconnect-session-post.d.mts +41 -3
- package/dist/actions/reconnect-session-post.d.mts.map +1 -1
- package/dist/actions/reconnect-session-post.mjs +8 -8
- package/dist/actions/reconnect-session-post.mjs.map +1 -1
- package/dist/actions/scripts-config-get.cjs +13 -13
- package/dist/actions/scripts-config-get.cjs.map +1 -1
- package/dist/actions/scripts-config-get.d.cts +53 -3
- package/dist/actions/scripts-config-get.d.cts.map +1 -1
- package/dist/actions/scripts-config-get.d.mts +53 -3
- package/dist/actions/scripts-config-get.d.mts.map +1 -1
- package/dist/actions/scripts-config-get.mjs +13 -13
- package/dist/actions/scripts-config-get.mjs.map +1 -1
- package/dist/actions/set-connection-metadata.cjs +4 -4
- package/dist/actions/set-connection-metadata.cjs.map +1 -1
- package/dist/actions/set-connection-metadata.d.cts +15 -3
- package/dist/actions/set-connection-metadata.d.cts.map +1 -1
- package/dist/actions/set-connection-metadata.d.mts +15 -3
- package/dist/actions/set-connection-metadata.d.mts.map +1 -1
- package/dist/actions/set-connection-metadata.mjs +4 -4
- package/dist/actions/set-connection-metadata.mjs.map +1 -1
- package/dist/actions/sync-trigger-post.cjs +1 -1
- package/dist/actions/sync-trigger-post.cjs.map +1 -1
- package/dist/actions/sync-trigger-post.d.cts +19 -3
- package/dist/actions/sync-trigger-post.d.cts.map +1 -1
- package/dist/actions/sync-trigger-post.d.mts +19 -3
- package/dist/actions/sync-trigger-post.d.mts.map +1 -1
- package/dist/actions/sync-trigger-post.mjs +1 -1
- package/dist/actions/sync-trigger-post.mjs.map +1 -1
- package/dist/actions/update-connection-metadata.cjs +4 -4
- package/dist/actions/update-connection-metadata.cjs.map +1 -1
- package/dist/actions/update-connection-metadata.d.cts +15 -3
- package/dist/actions/update-connection-metadata.d.cts.map +1 -1
- package/dist/actions/update-connection-metadata.d.mts +15 -3
- package/dist/actions/update-connection-metadata.d.mts.map +1 -1
- package/dist/actions/update-connection-metadata.mjs +4 -4
- package/dist/actions/update-connection-metadata.mjs.map +1 -1
- package/dist/actions/update-integration.cjs +10 -10
- package/dist/actions/update-integration.cjs.map +1 -1
- package/dist/actions/update-integration.d.cts +61 -3
- package/dist/actions/update-integration.d.cts.map +1 -1
- package/dist/actions/update-integration.d.mts +61 -3
- package/dist/actions/update-integration.d.mts.map +1 -1
- package/dist/actions/update-integration.mjs +10 -10
- package/dist/actions/update-integration.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -2,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
|
-
token: z.string().describe("The connect session token used for authentication."),
|
|
22
|
-
expires_at: z.string().describe("ISO 8601 timestamp indicating when the session token expires (typically 30 minutes from creation)."),
|
|
21
|
+
token: z.string().describe("The connect session token used for authentication.").nullable(),
|
|
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
|
|
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,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CACtK,8BAA8B,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;AAC1K,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,qDAAqD,EAAE,OAAO;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC/I,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAK/E,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT6C,EAAE,OAAO,EACtD,MAAM,mDAAmD,SAAS,EACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
|
|
@@ -11,13 +11,13 @@ const NangoCreateIntegrationInput = zod.z.object({
|
|
|
11
11
|
client_id: zod.z.string().describe("OAuth2 client ID from the provider's app configuration."),
|
|
12
12
|
client_secret: zod.z.string().describe("OAuth2 client secret from the provider's app configuration."),
|
|
13
13
|
webhook_secret: zod.z.string().nullable().optional()
|
|
14
|
-
}).describe("OAuth2 authentication credentials schema."),
|
|
14
|
+
}).passthrough().describe("OAuth2 authentication credentials schema."),
|
|
15
15
|
zod.z.object({
|
|
16
16
|
type: zod.z.string().describe("Credential type, must be 'APP'."),
|
|
17
17
|
app_id: zod.z.string().describe("Application ID from the provider."),
|
|
18
18
|
app_link: zod.z.string().describe("Link to the application in the provider's dashboard."),
|
|
19
19
|
private_key: zod.z.string().describe("Private key for the application, typically in PEM format.")
|
|
20
|
-
}).describe("App-based authentication credentials schema (e.g., GitHub App)."),
|
|
20
|
+
}).passthrough().describe("App-based authentication credentials schema (e.g., GitHub App)."),
|
|
21
21
|
zod.z.object({
|
|
22
22
|
type: zod.z.string().describe("Credential type, must be 'HYBRID'."),
|
|
23
23
|
app_id: zod.z.string().describe("Application ID."),
|
|
@@ -25,20 +25,20 @@ const NangoCreateIntegrationInput = zod.z.object({
|
|
|
25
25
|
client_id: zod.z.string().describe("OAuth2 client ID."),
|
|
26
26
|
private_key: zod.z.string().describe("Private key for the application."),
|
|
27
27
|
client_secret: zod.z.string().describe("OAuth2 client secret.")
|
|
28
|
-
}).describe("Hybrid authentication credentials combining OAuth2 and App authentication.")
|
|
28
|
+
}).passthrough().describe("Hybrid authentication credentials combining OAuth2 and App authentication.")
|
|
29
29
|
]).optional(),
|
|
30
30
|
display_name: zod.z.string().describe("Human-readable display name for the integration. If not provided, defaults to the provider name.").optional()
|
|
31
31
|
}).describe("Request model for creating a new Nango integration.");
|
|
32
32
|
const NangoCreateIntegration_IntegrationDataSchema = zod.z.object({
|
|
33
33
|
logo: zod.z.string().describe("URL to the provider's logo.").nullable().optional(),
|
|
34
|
-
provider: zod.z.string().describe("Provider name."),
|
|
35
|
-
created_at: zod.z.string().describe("Integration creation timestamp in ISO 8601 format."),
|
|
36
|
-
unique_key: zod.z.string().describe("The unique integration identifier."),
|
|
37
|
-
updated_at: zod.z.string().describe("Integration last update timestamp in ISO 8601 format."),
|
|
38
|
-
display_name: zod.z.string().describe("Display name of the integration."),
|
|
34
|
+
provider: zod.z.string().describe("Provider name.").nullable(),
|
|
35
|
+
created_at: zod.z.string().describe("Integration creation timestamp in ISO 8601 format.").nullable(),
|
|
36
|
+
unique_key: zod.z.string().describe("The unique integration identifier.").nullable(),
|
|
37
|
+
updated_at: zod.z.string().describe("Integration last update timestamp in ISO 8601 format.").nullable(),
|
|
38
|
+
display_name: zod.z.string().describe("Display name of the integration.").nullable(),
|
|
39
39
|
forward_webhooks: zod.z.boolean().describe("Whether webhooks should be forwarded for this integration.").nullable().optional()
|
|
40
|
-
}).describe("Response data for a created integration.");
|
|
41
|
-
const NangoCreateIntegrationOutput = zod.z.object({ data: NangoCreateIntegration_IntegrationDataSchema.nullable() }).describe("Response model for creating an integration.");
|
|
40
|
+
}).passthrough().describe("Response data for a created integration.");
|
|
41
|
+
const NangoCreateIntegrationOutput = zod.z.object({ data: NangoCreateIntegration_IntegrationDataSchema.nullable() }).passthrough().describe("Response model for creating an integration.");
|
|
42
42
|
const nangoCreateIntegration = require_action.action("NANGO_CREATE_INTEGRATION", {
|
|
43
43
|
slug: "nango-create-integration",
|
|
44
44
|
name: "Create Integration",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-integration.cjs","names":["z","action"],"sources":["../../src/actions/create-integration.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoCreateIntegrationInput
|
|
1
|
+
{"version":3,"file":"create-integration.cjs","names":["z","action"],"sources":["../../src/actions/create-integration.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoCreateIntegrationInput = z.object({\n provider: z.string().describe(\"The provider unique name (e.g., github, slack, salesforce). Use List Providers to get valid provider names.\"),\n unique_key: z.string().describe(\"A unique integration ID, which you will use in other API calls to reference this integration. Must be unique across your Nango account.\"),\n credentials: z.union([z.object({\n type: z.string().describe(\"Credential type, must be 'OAUTH2'.\"),\n scopes: z.union([z.string(), z.array(z.string())]).nullable().optional(),\n client_id: z.string().describe(\"OAuth2 client ID from the provider's app configuration.\"),\n client_secret: z.string().describe(\"OAuth2 client secret from the provider's app configuration.\"),\n webhook_secret: z.string().nullable().optional(),\n}).passthrough().describe(\"OAuth2 authentication credentials schema.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'APP'.\"),\n app_id: z.string().describe(\"Application ID from the provider.\"),\n app_link: z.string().describe(\"Link to the application in the provider's dashboard.\"),\n private_key: z.string().describe(\"Private key for the application, typically in PEM format.\"),\n}).passthrough().describe(\"App-based authentication credentials schema (e.g., GitHub App).\"), z.object({\n type: z.string().describe(\"Credential type, must be 'HYBRID'.\"),\n app_id: z.string().describe(\"Application ID.\"),\n app_link: z.string().describe(\"Link to the application.\"),\n client_id: z.string().describe(\"OAuth2 client ID.\"),\n private_key: z.string().describe(\"Private key for the application.\"),\n client_secret: z.string().describe(\"OAuth2 client secret.\"),\n}).passthrough().describe(\"Hybrid authentication credentials combining OAuth2 and App authentication.\")]).optional(),\n display_name: z.string().describe(\"Human-readable display name for the integration. If not provided, defaults to the provider name.\").optional(),\n}).describe(\"Request model for creating a new Nango integration.\");\nconst NangoCreateIntegration_IntegrationDataSchema = z.object({\n logo: z.string().describe(\"URL to the provider's logo.\").nullable().optional(),\n provider: z.string().describe(\"Provider name.\").nullable(),\n created_at: z.string().describe(\"Integration creation timestamp in ISO 8601 format.\").nullable(),\n unique_key: z.string().describe(\"The unique integration identifier.\").nullable(),\n updated_at: z.string().describe(\"Integration last update timestamp in ISO 8601 format.\").nullable(),\n display_name: z.string().describe(\"Display name of the integration.\").nullable(),\n forward_webhooks: z.boolean().describe(\"Whether webhooks should be forwarded for this integration.\").nullable().optional(),\n}).passthrough().describe(\"Response data for a created integration.\");\nexport const NangoCreateIntegrationOutput = z.object({\n data: NangoCreateIntegration_IntegrationDataSchema.nullable(),\n}).passthrough().describe(\"Response model for creating an integration.\");\n\nexport const nangoCreateIntegration = action(\"NANGO_CREATE_INTEGRATION\", {\n slug: \"nango-create-integration\",\n name: \"Create Integration\",\n description: \"Tool to create a new integration in Nango. Use when setting up a new provider connection configuration. Creates an integration with specified credentials (OAuth2, App-based, or Hybrid authentication). The unique_key will be used to reference this integration in subsequent API calls. Returns the created integration details including timestamps and provider information.\",\n input: NangoCreateIntegrationInput,\n output: NangoCreateIntegrationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G;CAC3I,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI;CACzK,aAAaA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;GAC/B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;GAC9D,QAAQA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GACvE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;GACxF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;GAChG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;EAAGA,IAAAA,EAAE,OAAO;GAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;GAC3D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;GAC/D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;GACpF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;EAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE;EAAGA,IAAAA,EAAE,OAAO;GACrG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;GAC9D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;GAC7C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;GACxD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;GAClD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;GACnE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4EAA4E;CAAC,CAAC,CAAC,CAAC,SAAS;CACjH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;AACjJ,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACzD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC/E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC/E,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,MAAM,6CAA6C,SAAS,EAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,68 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-integration.d.ts
|
|
4
|
-
declare const NangoCreateIntegrationInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NangoCreateIntegrationInput: z.ZodObject<{
|
|
5
|
+
provider: z.ZodString;
|
|
6
|
+
unique_key: z.ZodString;
|
|
7
|
+
credentials: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
8
|
+
type: z.ZodString;
|
|
9
|
+
scopes: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>;
|
|
10
|
+
client_id: z.ZodString;
|
|
11
|
+
client_secret: z.ZodString;
|
|
12
|
+
webhook_secret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
14
|
+
type: z.ZodString;
|
|
15
|
+
app_id: z.ZodString;
|
|
16
|
+
app_link: z.ZodString;
|
|
17
|
+
private_key: z.ZodString;
|
|
18
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
19
|
+
type: z.ZodString;
|
|
20
|
+
app_id: z.ZodString;
|
|
21
|
+
app_link: z.ZodString;
|
|
22
|
+
client_id: z.ZodString;
|
|
23
|
+
private_key: z.ZodString;
|
|
24
|
+
client_secret: z.ZodString;
|
|
25
|
+
}, z.core.$loose>]>>;
|
|
26
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
declare const NangoCreateIntegrationOutput: z.ZodObject<{
|
|
29
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
30
|
+
logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
32
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
33
|
+
unique_key: z.ZodNullable<z.ZodString>;
|
|
34
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
35
|
+
display_name: z.ZodNullable<z.ZodString>;
|
|
36
|
+
forward_webhooks: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
37
|
+
}, z.core.$loose>>;
|
|
38
|
+
}, z.core.$loose>;
|
|
39
|
+
declare const nangoCreateIntegration: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
40
|
+
provider: string;
|
|
41
|
+
unique_key: string;
|
|
42
|
+
credentials?: {
|
|
43
|
+
[x: string]: unknown;
|
|
44
|
+
type: string;
|
|
45
|
+
client_id: string;
|
|
46
|
+
client_secret: string;
|
|
47
|
+
scopes?: string | string[] | null | undefined;
|
|
48
|
+
webhook_secret?: string | null | undefined;
|
|
49
|
+
} | {
|
|
50
|
+
[x: string]: unknown;
|
|
51
|
+
type: string;
|
|
52
|
+
app_id: string;
|
|
53
|
+
app_link: string;
|
|
54
|
+
private_key: string;
|
|
55
|
+
} | {
|
|
56
|
+
[x: string]: unknown;
|
|
57
|
+
type: string;
|
|
58
|
+
app_id: string;
|
|
59
|
+
app_link: string;
|
|
60
|
+
client_id: string;
|
|
61
|
+
private_key: string;
|
|
62
|
+
client_secret: string;
|
|
63
|
+
} | undefined;
|
|
64
|
+
display_name?: string | undefined;
|
|
65
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
66
|
//#endregion
|
|
8
67
|
export { nangoCreateIntegration };
|
|
9
68
|
//# sourceMappingURL=create-integration.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-integration.d.cts","names":[],"sources":["../../src/actions/create-integration.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"create-integration.d.cts","names":[],"sources":["../../src/actions/create-integration.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAiC3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -1,9 +1,68 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-integration.d.ts
|
|
4
|
-
declare const NangoCreateIntegrationInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NangoCreateIntegrationInput: z.ZodObject<{
|
|
5
|
+
provider: z.ZodString;
|
|
6
|
+
unique_key: z.ZodString;
|
|
7
|
+
credentials: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
8
|
+
type: z.ZodString;
|
|
9
|
+
scopes: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>;
|
|
10
|
+
client_id: z.ZodString;
|
|
11
|
+
client_secret: z.ZodString;
|
|
12
|
+
webhook_secret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
14
|
+
type: z.ZodString;
|
|
15
|
+
app_id: z.ZodString;
|
|
16
|
+
app_link: z.ZodString;
|
|
17
|
+
private_key: z.ZodString;
|
|
18
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
19
|
+
type: z.ZodString;
|
|
20
|
+
app_id: z.ZodString;
|
|
21
|
+
app_link: z.ZodString;
|
|
22
|
+
client_id: z.ZodString;
|
|
23
|
+
private_key: z.ZodString;
|
|
24
|
+
client_secret: z.ZodString;
|
|
25
|
+
}, z.core.$loose>]>>;
|
|
26
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
declare const NangoCreateIntegrationOutput: z.ZodObject<{
|
|
29
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
30
|
+
logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
32
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
33
|
+
unique_key: z.ZodNullable<z.ZodString>;
|
|
34
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
35
|
+
display_name: z.ZodNullable<z.ZodString>;
|
|
36
|
+
forward_webhooks: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
37
|
+
}, z.core.$loose>>;
|
|
38
|
+
}, z.core.$loose>;
|
|
39
|
+
declare const nangoCreateIntegration: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
40
|
+
provider: string;
|
|
41
|
+
unique_key: string;
|
|
42
|
+
credentials?: {
|
|
43
|
+
[x: string]: unknown;
|
|
44
|
+
type: string;
|
|
45
|
+
client_id: string;
|
|
46
|
+
client_secret: string;
|
|
47
|
+
scopes?: string | string[] | null | undefined;
|
|
48
|
+
webhook_secret?: string | null | undefined;
|
|
49
|
+
} | {
|
|
50
|
+
[x: string]: unknown;
|
|
51
|
+
type: string;
|
|
52
|
+
app_id: string;
|
|
53
|
+
app_link: string;
|
|
54
|
+
private_key: string;
|
|
55
|
+
} | {
|
|
56
|
+
[x: string]: unknown;
|
|
57
|
+
type: string;
|
|
58
|
+
app_id: string;
|
|
59
|
+
app_link: string;
|
|
60
|
+
client_id: string;
|
|
61
|
+
private_key: string;
|
|
62
|
+
client_secret: string;
|
|
63
|
+
} | undefined;
|
|
64
|
+
display_name?: string | undefined;
|
|
65
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
66
|
//#endregion
|
|
8
67
|
export { nangoCreateIntegration };
|
|
9
68
|
//# sourceMappingURL=create-integration.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-integration.d.mts","names":[],"sources":["../../src/actions/create-integration.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"create-integration.d.mts","names":[],"sources":["../../src/actions/create-integration.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAiC3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -11,13 +11,13 @@ const NangoCreateIntegrationInput = z.object({
|
|
|
11
11
|
client_id: z.string().describe("OAuth2 client ID from the provider's app configuration."),
|
|
12
12
|
client_secret: z.string().describe("OAuth2 client secret from the provider's app configuration."),
|
|
13
13
|
webhook_secret: z.string().nullable().optional()
|
|
14
|
-
}).describe("OAuth2 authentication credentials schema."),
|
|
14
|
+
}).passthrough().describe("OAuth2 authentication credentials schema."),
|
|
15
15
|
z.object({
|
|
16
16
|
type: z.string().describe("Credential type, must be 'APP'."),
|
|
17
17
|
app_id: z.string().describe("Application ID from the provider."),
|
|
18
18
|
app_link: z.string().describe("Link to the application in the provider's dashboard."),
|
|
19
19
|
private_key: z.string().describe("Private key for the application, typically in PEM format.")
|
|
20
|
-
}).describe("App-based authentication credentials schema (e.g., GitHub App)."),
|
|
20
|
+
}).passthrough().describe("App-based authentication credentials schema (e.g., GitHub App)."),
|
|
21
21
|
z.object({
|
|
22
22
|
type: z.string().describe("Credential type, must be 'HYBRID'."),
|
|
23
23
|
app_id: z.string().describe("Application ID."),
|
|
@@ -25,25 +25,25 @@ const NangoCreateIntegrationInput = z.object({
|
|
|
25
25
|
client_id: z.string().describe("OAuth2 client ID."),
|
|
26
26
|
private_key: z.string().describe("Private key for the application."),
|
|
27
27
|
client_secret: z.string().describe("OAuth2 client secret.")
|
|
28
|
-
}).describe("Hybrid authentication credentials combining OAuth2 and App authentication.")
|
|
28
|
+
}).passthrough().describe("Hybrid authentication credentials combining OAuth2 and App authentication.")
|
|
29
29
|
]).optional(),
|
|
30
30
|
display_name: z.string().describe("Human-readable display name for the integration. If not provided, defaults to the provider name.").optional()
|
|
31
31
|
}).describe("Request model for creating a new Nango integration.");
|
|
32
32
|
const NangoCreateIntegration_IntegrationDataSchema = z.object({
|
|
33
33
|
logo: z.string().describe("URL to the provider's logo.").nullable().optional(),
|
|
34
|
-
provider: z.string().describe("Provider name."),
|
|
35
|
-
created_at: z.string().describe("Integration creation timestamp in ISO 8601 format."),
|
|
36
|
-
unique_key: z.string().describe("The unique integration identifier."),
|
|
37
|
-
updated_at: z.string().describe("Integration last update timestamp in ISO 8601 format."),
|
|
38
|
-
display_name: z.string().describe("Display name of the integration."),
|
|
34
|
+
provider: z.string().describe("Provider name.").nullable(),
|
|
35
|
+
created_at: z.string().describe("Integration creation timestamp in ISO 8601 format.").nullable(),
|
|
36
|
+
unique_key: z.string().describe("The unique integration identifier.").nullable(),
|
|
37
|
+
updated_at: z.string().describe("Integration last update timestamp in ISO 8601 format.").nullable(),
|
|
38
|
+
display_name: z.string().describe("Display name of the integration.").nullable(),
|
|
39
39
|
forward_webhooks: z.boolean().describe("Whether webhooks should be forwarded for this integration.").nullable().optional()
|
|
40
|
-
}).describe("Response data for a created integration.");
|
|
40
|
+
}).passthrough().describe("Response data for a created integration.");
|
|
41
41
|
const nangoCreateIntegration = action("NANGO_CREATE_INTEGRATION", {
|
|
42
42
|
slug: "nango-create-integration",
|
|
43
43
|
name: "Create Integration",
|
|
44
44
|
description: "Tool to create a new integration in Nango. Use when setting up a new provider connection configuration. Creates an integration with specified credentials (OAuth2, App-based, or Hybrid authentication). The unique_key will be used to reference this integration in subsequent API calls. Returns the created integration details including timestamps and provider information.",
|
|
45
45
|
input: NangoCreateIntegrationInput,
|
|
46
|
-
output: z.object({ data: NangoCreateIntegration_IntegrationDataSchema.nullable() }).describe("Response model for creating an integration.")
|
|
46
|
+
output: z.object({ data: NangoCreateIntegration_IntegrationDataSchema.nullable() }).passthrough().describe("Response model for creating an integration.")
|
|
47
47
|
});
|
|
48
48
|
//#endregion
|
|
49
49
|
export { nangoCreateIntegration };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-integration.mjs","names":[],"sources":["../../src/actions/create-integration.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoCreateIntegrationInput
|
|
1
|
+
{"version":3,"file":"create-integration.mjs","names":[],"sources":["../../src/actions/create-integration.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoCreateIntegrationInput = z.object({\n provider: z.string().describe(\"The provider unique name (e.g., github, slack, salesforce). Use List Providers to get valid provider names.\"),\n unique_key: z.string().describe(\"A unique integration ID, which you will use in other API calls to reference this integration. Must be unique across your Nango account.\"),\n credentials: z.union([z.object({\n type: z.string().describe(\"Credential type, must be 'OAUTH2'.\"),\n scopes: z.union([z.string(), z.array(z.string())]).nullable().optional(),\n client_id: z.string().describe(\"OAuth2 client ID from the provider's app configuration.\"),\n client_secret: z.string().describe(\"OAuth2 client secret from the provider's app configuration.\"),\n webhook_secret: z.string().nullable().optional(),\n}).passthrough().describe(\"OAuth2 authentication credentials schema.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'APP'.\"),\n app_id: z.string().describe(\"Application ID from the provider.\"),\n app_link: z.string().describe(\"Link to the application in the provider's dashboard.\"),\n private_key: z.string().describe(\"Private key for the application, typically in PEM format.\"),\n}).passthrough().describe(\"App-based authentication credentials schema (e.g., GitHub App).\"), z.object({\n type: z.string().describe(\"Credential type, must be 'HYBRID'.\"),\n app_id: z.string().describe(\"Application ID.\"),\n app_link: z.string().describe(\"Link to the application.\"),\n client_id: z.string().describe(\"OAuth2 client ID.\"),\n private_key: z.string().describe(\"Private key for the application.\"),\n client_secret: z.string().describe(\"OAuth2 client secret.\"),\n}).passthrough().describe(\"Hybrid authentication credentials combining OAuth2 and App authentication.\")]).optional(),\n display_name: z.string().describe(\"Human-readable display name for the integration. If not provided, defaults to the provider name.\").optional(),\n}).describe(\"Request model for creating a new Nango integration.\");\nconst NangoCreateIntegration_IntegrationDataSchema = z.object({\n logo: z.string().describe(\"URL to the provider's logo.\").nullable().optional(),\n provider: z.string().describe(\"Provider name.\").nullable(),\n created_at: z.string().describe(\"Integration creation timestamp in ISO 8601 format.\").nullable(),\n unique_key: z.string().describe(\"The unique integration identifier.\").nullable(),\n updated_at: z.string().describe(\"Integration last update timestamp in ISO 8601 format.\").nullable(),\n display_name: z.string().describe(\"Display name of the integration.\").nullable(),\n forward_webhooks: z.boolean().describe(\"Whether webhooks should be forwarded for this integration.\").nullable().optional(),\n}).passthrough().describe(\"Response data for a created integration.\");\nexport const NangoCreateIntegrationOutput = z.object({\n data: NangoCreateIntegration_IntegrationDataSchema.nullable(),\n}).passthrough().describe(\"Response model for creating an integration.\");\n\nexport const nangoCreateIntegration = action(\"NANGO_CREATE_INTEGRATION\", {\n slug: \"nango-create-integration\",\n name: \"Create Integration\",\n description: \"Tool to create a new integration in Nango. Use when setting up a new provider connection configuration. Creates an integration with specified credentials (OAuth2, App-based, or Hybrid authentication). The unique_key will be used to reference this integration in subsequent API calls. Returns the created integration details including timestamps and provider information.\",\n input: NangoCreateIntegrationInput,\n output: NangoCreateIntegrationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G;CAC3I,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI;CACzK,aAAa,EAAE,MAAM;EAAC,EAAE,OAAO;GAC/B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;GAC9D,QAAQ,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GACvE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;GACxF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;GAChG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;EAAG,EAAE,OAAO;GAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;GAC3D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;GAC/D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;GACpF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;EAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE;EAAG,EAAE,OAAO;GACrG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;GAC9D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;GAC7C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;GACxD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;GAClD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;GACnE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4EAA4E;CAAC,CAAC,CAAC,CAAC,SAAS;CACjH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;AACjJ,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,+CAA+C,EAAE,OAAO;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACzD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC/E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC/E,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAKpE,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT0C,EAAE,OAAO,EACnD,MAAM,6CAA6C,SAAS,EAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
|
|
@@ -5,7 +5,7 @@ const NangoDeleteConnectionInput = zod.z.object({
|
|
|
5
5
|
connection_id: zod.z.string().describe("The connection ID used to create the connection."),
|
|
6
6
|
provider_config_key: zod.z.string().describe("The integration ID used to create the connection (aka Unique Key).")
|
|
7
7
|
}).describe("Request model for deleting a Nango connection.");
|
|
8
|
-
const NangoDeleteConnectionOutput = zod.z.object({ success: zod.z.boolean().describe("Indicates whether the connection was successfully deleted.") }).describe("Response model for deleting a Nango connection.");
|
|
8
|
+
const NangoDeleteConnectionOutput = zod.z.object({ success: zod.z.boolean().describe("Indicates whether the connection was successfully deleted.").nullable() }).passthrough().describe("Response model for deleting a Nango connection.");
|
|
9
9
|
const nangoDeleteConnection = require_action.action("NANGO_DELETE_CONNECTION", {
|
|
10
10
|
slug: "nango-delete-connection",
|
|
11
11
|
name: "Delete Connection",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-connection.cjs","names":["z","action"],"sources":["../../src/actions/delete-connection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoDeleteConnectionInput
|
|
1
|
+
{"version":3,"file":"delete-connection.cjs","names":["z","action"],"sources":["../../src/actions/delete-connection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoDeleteConnectionInput = z.object({\n connection_id: z.string().describe(\"The connection ID used to create the connection.\"),\n provider_config_key: z.string().describe(\"The integration ID used to create the connection (aka Unique Key).\"),\n}).describe(\"Request model for deleting a Nango connection.\");\nexport const NangoDeleteConnectionOutput = z.object({\n success: z.boolean().describe(\"Indicates whether the connection was successfully deleted.\").nullable(),\n}).passthrough().describe(\"Response model for deleting a Nango connection.\");\n\nexport const nangoDeleteConnection = action(\"NANGO_DELETE_CONNECTION\", {\n slug: \"nango-delete-connection\",\n name: \"Delete Connection\",\n description: \"Tool to delete a specific Nango connection. Use when you need to remove an existing connection permanently.\",\n input: NangoDeleteConnectionInput,\n output: NangoDeleteConnectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CACrF,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;AAC/G,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,EACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/delete-connection.d.ts
|
|
4
|
-
declare const NangoDeleteConnectionInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NangoDeleteConnectionInput: z.ZodObject<{
|
|
5
|
+
connection_id: z.ZodString;
|
|
6
|
+
provider_config_key: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const NangoDeleteConnectionOutput: z.ZodObject<{
|
|
9
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
declare const nangoDeleteConnection: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
|
+
connection_id: string;
|
|
13
|
+
provider_config_key: string;
|
|
14
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
15
|
//#endregion
|
|
8
16
|
export { nangoDeleteConnection };
|
|
9
17
|
//# sourceMappingURL=delete-connection.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-connection.d.cts","names":[],"sources":["../../src/actions/delete-connection.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"delete-connection.d.cts","names":[],"sources":["../../src/actions/delete-connection.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/delete-connection.d.ts
|
|
4
|
-
declare const NangoDeleteConnectionInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NangoDeleteConnectionInput: z.ZodObject<{
|
|
5
|
+
connection_id: z.ZodString;
|
|
6
|
+
provider_config_key: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const NangoDeleteConnectionOutput: z.ZodObject<{
|
|
9
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
declare const nangoDeleteConnection: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
|
+
connection_id: string;
|
|
13
|
+
provider_config_key: string;
|
|
14
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
15
|
//#endregion
|
|
8
16
|
export { nangoDeleteConnection };
|
|
9
17
|
//# sourceMappingURL=delete-connection.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-connection.d.mts","names":[],"sources":["../../src/actions/delete-connection.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"delete-connection.d.mts","names":[],"sources":["../../src/actions/delete-connection.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -8,7 +8,7 @@ const nangoDeleteConnection = action("NANGO_DELETE_CONNECTION", {
|
|
|
8
8
|
connection_id: z.string().describe("The connection ID used to create the connection."),
|
|
9
9
|
provider_config_key: z.string().describe("The integration ID used to create the connection (aka Unique Key).")
|
|
10
10
|
}).describe("Request model for deleting a Nango connection."),
|
|
11
|
-
output: z.object({ success: z.boolean().describe("Indicates whether the connection was successfully deleted.") }).describe("Response model for deleting a Nango connection.")
|
|
11
|
+
output: z.object({ success: z.boolean().describe("Indicates whether the connection was successfully deleted.").nullable() }).passthrough().describe("Response model for deleting a Nango connection.")
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { nangoDeleteConnection };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-connection.mjs","names":[],"sources":["../../src/actions/delete-connection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoDeleteConnectionInput
|
|
1
|
+
{"version":3,"file":"delete-connection.mjs","names":[],"sources":["../../src/actions/delete-connection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoDeleteConnectionInput = z.object({\n connection_id: z.string().describe(\"The connection ID used to create the connection.\"),\n provider_config_key: z.string().describe(\"The integration ID used to create the connection (aka Unique Key).\"),\n}).describe(\"Request model for deleting a Nango connection.\");\nexport const NangoDeleteConnectionOutput = z.object({\n success: z.boolean().describe(\"Indicates whether the connection was successfully deleted.\").nullable(),\n}).passthrough().describe(\"Response model for deleting a Nango connection.\");\n\nexport const nangoDeleteConnection = action(\"NANGO_DELETE_CONNECTION\", {\n slug: \"nango-delete-connection\",\n name: \"Delete Connection\",\n description: \"Tool to delete a specific Nango connection. Use when you need to remove an existing connection permanently.\",\n input: NangoDeleteConnectionInput,\n output: NangoDeleteConnectionOutput,\n});\n"],"mappings":";;AAYA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZwC,EAAE,OAAO;EACjD,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;EACrF,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CAC/G,CAAC,CAAC,CAAC,SAAS,gDASH;CACP,QATyC,EAAE,OAAO,EAClD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,EACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAOhB;AACV,CAAC"}
|
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/delete-integration.ts
|
|
4
4
|
const NangoDeleteIntegrationInput = zod.z.object({ uniqueKey: zod.z.string().describe("The integration ID (unique_key) that you created in Nango.") }).describe("Request model for deleting a Nango integration.");
|
|
5
|
-
const NangoDeleteIntegrationOutput = zod.z.object({ success: zod.z.boolean().describe("Indicates whether the integration was successfully deleted") }).describe("Response model for deleting an integration.");
|
|
5
|
+
const NangoDeleteIntegrationOutput = zod.z.object({ success: zod.z.boolean().describe("Indicates whether the integration was successfully deleted").nullable() }).passthrough().describe("Response model for deleting an integration.");
|
|
6
6
|
const nangoDeleteIntegration = require_action.action("NANGO_DELETE_INTEGRATION", {
|
|
7
7
|
slug: "nango-delete-integration",
|
|
8
8
|
name: "Delete Integration",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-integration.cjs","names":["z","action"],"sources":["../../src/actions/delete-integration.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoDeleteIntegrationInput
|
|
1
|
+
{"version":3,"file":"delete-integration.cjs","names":["z","action"],"sources":["../../src/actions/delete-integration.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoDeleteIntegrationInput = z.object({\n uniqueKey: z.string().describe(\"The integration ID (unique_key) that you created in Nango.\"),\n}).describe(\"Request model for deleting a Nango integration.\");\nexport const NangoDeleteIntegrationOutput = z.object({\n success: z.boolean().describe(\"Indicates whether the integration was successfully deleted\").nullable(),\n}).passthrough().describe(\"Response model for deleting an integration.\");\n\nexport const nangoDeleteIntegration = action(\"NANGO_DELETE_INTEGRATION\", {\n slug: \"nango-delete-integration\",\n name: \"Delete Integration\",\n description: \"Tool to delete a specific integration by its unique key. Use when you need to remove an integration configuration from Nango.\",\n input: NangoDeleteIntegrationInput,\n output: NangoDeleteIntegrationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,EAC7F,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,EACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/delete-integration.d.ts
|
|
4
|
-
declare const NangoDeleteIntegrationInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NangoDeleteIntegrationInput: z.ZodObject<{
|
|
5
|
+
uniqueKey: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const NangoDeleteIntegrationOutput: z.ZodObject<{
|
|
8
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
9
|
+
}, z.core.$loose>;
|
|
10
|
+
declare const nangoDeleteIntegration: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
|
+
uniqueKey: string;
|
|
12
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
13
|
//#endregion
|
|
8
14
|
export { nangoDeleteIntegration };
|
|
9
15
|
//# sourceMappingURL=delete-integration.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-integration.d.cts","names":[],"sources":["../../src/actions/delete-integration.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"delete-integration.d.cts","names":[],"sources":["../../src/actions/delete-integration.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/delete-integration.d.ts
|
|
4
|
-
declare const NangoDeleteIntegrationInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NangoDeleteIntegrationInput: z.ZodObject<{
|
|
5
|
+
uniqueKey: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const NangoDeleteIntegrationOutput: z.ZodObject<{
|
|
8
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
9
|
+
}, z.core.$loose>;
|
|
10
|
+
declare const nangoDeleteIntegration: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
|
+
uniqueKey: string;
|
|
12
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
13
|
//#endregion
|
|
8
14
|
export { nangoDeleteIntegration };
|
|
9
15
|
//# sourceMappingURL=delete-integration.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-integration.d.mts","names":[],"sources":["../../src/actions/delete-integration.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"delete-integration.d.mts","names":[],"sources":["../../src/actions/delete-integration.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -5,7 +5,7 @@ const nangoDeleteIntegration = action("NANGO_DELETE_INTEGRATION", {
|
|
|
5
5
|
name: "Delete Integration",
|
|
6
6
|
description: "Tool to delete a specific integration by its unique key. Use when you need to remove an integration configuration from Nango.",
|
|
7
7
|
input: z.object({ uniqueKey: z.string().describe("The integration ID (unique_key) that you created in Nango.") }).describe("Request model for deleting a Nango integration."),
|
|
8
|
-
output: z.object({ success: z.boolean().describe("Indicates whether the integration was successfully deleted") }).describe("Response model for deleting an integration.")
|
|
8
|
+
output: z.object({ success: z.boolean().describe("Indicates whether the integration was successfully deleted").nullable() }).passthrough().describe("Response model for deleting an integration.")
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { nangoDeleteIntegration };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-integration.mjs","names":[],"sources":["../../src/actions/delete-integration.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoDeleteIntegrationInput
|
|
1
|
+
{"version":3,"file":"delete-integration.mjs","names":[],"sources":["../../src/actions/delete-integration.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoDeleteIntegrationInput = z.object({\n uniqueKey: z.string().describe(\"The integration ID (unique_key) that you created in Nango.\"),\n}).describe(\"Request model for deleting a Nango integration.\");\nexport const NangoDeleteIntegrationOutput = z.object({\n success: z.boolean().describe(\"Indicates whether the integration was successfully deleted\").nullable(),\n}).passthrough().describe(\"Response model for deleting an integration.\");\n\nexport const nangoDeleteIntegration = action(\"NANGO_DELETE_INTEGRATION\", {\n slug: \"nango-delete-integration\",\n name: \"Delete Integration\",\n description: \"Tool to delete a specific integration by its unique key. Use when you need to remove an integration configuration from Nango.\",\n input: NangoDeleteIntegrationInput,\n output: NangoDeleteIntegrationOutput,\n});\n"],"mappings":";;AAWA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXyC,EAAE,OAAO,EAClD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,EAC7F,CAAC,CAAC,CAAC,SAAS,iDASH;CACP,QAT0C,EAAE,OAAO,EACnD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,EACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
|