@keystrokehq/nango 0.1.4 → 0.1.6
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 -0
- package/dist/actions/action-trigger-post.cjs.map +1 -1
- package/dist/actions/action-trigger-post.d.cts +3 -6
- package/dist/actions/action-trigger-post.d.cts.map +1 -1
- package/dist/actions/action-trigger-post.d.mts +3 -6
- package/dist/actions/action-trigger-post.d.mts.map +1 -1
- package/dist/actions/action-trigger-post.mjs +1 -0
- package/dist/actions/action-trigger-post.mjs.map +1 -1
- package/dist/actions/add-connection.cjs +1 -0
- package/dist/actions/add-connection.cjs.map +1 -1
- package/dist/actions/add-connection.d.cts +3 -56
- package/dist/actions/add-connection.d.cts.map +1 -1
- package/dist/actions/add-connection.d.mts +3 -56
- package/dist/actions/add-connection.d.mts.map +1 -1
- package/dist/actions/add-connection.mjs +1 -0
- package/dist/actions/add-connection.mjs.map +1 -1
- package/dist/actions/connection-get.cjs +1 -0
- package/dist/actions/connection-get.cjs.map +1 -1
- package/dist/actions/connection-get.d.cts +3 -8
- package/dist/actions/connection-get.d.cts.map +1 -1
- package/dist/actions/connection-get.d.mts +3 -8
- package/dist/actions/connection-get.d.mts.map +1 -1
- package/dist/actions/connection-get.mjs +1 -0
- package/dist/actions/connection-get.mjs.map +1 -1
- package/dist/actions/create-connect-session.cjs +1 -0
- package/dist/actions/create-connect-session.cjs.map +1 -1
- package/dist/actions/create-connect-session.d.cts +3 -16
- package/dist/actions/create-connect-session.d.cts.map +1 -1
- package/dist/actions/create-connect-session.d.mts +3 -16
- package/dist/actions/create-connect-session.d.mts.map +1 -1
- package/dist/actions/create-connect-session.mjs +1 -0
- package/dist/actions/create-connect-session.mjs.map +1 -1
- package/dist/actions/create-integration.cjs +1 -0
- package/dist/actions/create-integration.cjs.map +1 -1
- package/dist/actions/create-integration.d.cts +3 -27
- package/dist/actions/create-integration.d.cts.map +1 -1
- package/dist/actions/create-integration.d.mts +3 -27
- package/dist/actions/create-integration.d.mts.map +1 -1
- package/dist/actions/create-integration.mjs +1 -0
- package/dist/actions/create-integration.mjs.map +1 -1
- package/dist/actions/delete-connection.cjs +1 -0
- package/dist/actions/delete-connection.cjs.map +1 -1
- package/dist/actions/delete-connection.d.cts +3 -4
- package/dist/actions/delete-connection.d.cts.map +1 -1
- package/dist/actions/delete-connection.d.mts +3 -4
- package/dist/actions/delete-connection.d.mts.map +1 -1
- package/dist/actions/delete-connection.mjs +1 -0
- package/dist/actions/delete-connection.mjs.map +1 -1
- package/dist/actions/delete-integration.cjs +1 -0
- package/dist/actions/delete-integration.cjs.map +1 -1
- package/dist/actions/delete-integration.d.cts +3 -3
- package/dist/actions/delete-integration.d.cts.map +1 -1
- package/dist/actions/delete-integration.d.mts +3 -3
- package/dist/actions/delete-integration.d.mts.map +1 -1
- package/dist/actions/delete-integration.mjs +1 -0
- package/dist/actions/delete-integration.mjs.map +1 -1
- package/dist/actions/edit-connection.cjs +1 -0
- package/dist/actions/edit-connection.cjs.map +1 -1
- package/dist/actions/edit-connection.d.cts +3 -11
- package/dist/actions/edit-connection.d.cts.map +1 -1
- package/dist/actions/edit-connection.d.mts +3 -11
- package/dist/actions/edit-connection.d.mts.map +1 -1
- package/dist/actions/edit-connection.mjs +1 -0
- package/dist/actions/edit-connection.mjs.map +1 -1
- package/dist/actions/get-connection.cjs +1 -0
- package/dist/actions/get-connection.cjs.map +1 -1
- package/dist/actions/get-connection.d.cts +3 -7
- package/dist/actions/get-connection.d.cts.map +1 -1
- package/dist/actions/get-connection.d.mts +3 -7
- package/dist/actions/get-connection.d.mts.map +1 -1
- package/dist/actions/get-connection.mjs +1 -0
- package/dist/actions/get-connection.mjs.map +1 -1
- package/dist/actions/get-environment-variables.cjs +1 -0
- package/dist/actions/get-environment-variables.cjs.map +1 -1
- package/dist/actions/get-environment-variables.d.cts +3 -1
- package/dist/actions/get-environment-variables.d.cts.map +1 -1
- package/dist/actions/get-environment-variables.d.mts +3 -1
- package/dist/actions/get-environment-variables.d.mts.map +1 -1
- package/dist/actions/get-environment-variables.mjs +1 -0
- package/dist/actions/get-environment-variables.mjs.map +1 -1
- package/dist/actions/get-integration.cjs +1 -0
- package/dist/actions/get-integration.cjs.map +1 -1
- package/dist/actions/get-integration.d.cts +3 -4
- package/dist/actions/get-integration.d.cts.map +1 -1
- package/dist/actions/get-integration.d.mts +3 -4
- package/dist/actions/get-integration.d.mts.map +1 -1
- package/dist/actions/get-integration.mjs +1 -0
- package/dist/actions/get-integration.mjs.map +1 -1
- package/dist/actions/get-proxy.cjs +1 -0
- package/dist/actions/get-proxy.cjs.map +1 -1
- package/dist/actions/get-proxy.d.cts +3 -11
- package/dist/actions/get-proxy.d.cts.map +1 -1
- package/dist/actions/get-proxy.d.mts +3 -11
- package/dist/actions/get-proxy.d.mts.map +1 -1
- package/dist/actions/get-proxy.mjs +1 -0
- package/dist/actions/get-proxy.mjs.map +1 -1
- package/dist/actions/get-sync-status.cjs +1 -0
- package/dist/actions/get-sync-status.cjs.map +1 -1
- package/dist/actions/get-sync-status.d.cts +3 -5
- package/dist/actions/get-sync-status.d.cts.map +1 -1
- package/dist/actions/get-sync-status.d.mts +3 -5
- package/dist/actions/get-sync-status.d.mts.map +1 -1
- package/dist/actions/get-sync-status.mjs +1 -0
- package/dist/actions/get-sync-status.mjs.map +1 -1
- package/dist/actions/list-connections.cjs +1 -0
- package/dist/actions/list-connections.cjs.map +1 -1
- package/dist/actions/list-connections.d.cts +3 -9
- package/dist/actions/list-connections.d.cts.map +1 -1
- package/dist/actions/list-connections.d.mts +3 -9
- package/dist/actions/list-connections.d.mts.map +1 -1
- package/dist/actions/list-connections.mjs +1 -0
- package/dist/actions/list-connections.mjs.map +1 -1
- package/dist/actions/list-integrations.cjs +1 -0
- package/dist/actions/list-integrations.cjs.map +1 -1
- package/dist/actions/list-integrations.d.cts +3 -1
- package/dist/actions/list-integrations.d.cts.map +1 -1
- package/dist/actions/list-integrations.d.mts +3 -1
- package/dist/actions/list-integrations.d.mts.map +1 -1
- package/dist/actions/list-integrations.mjs +1 -0
- package/dist/actions/list-integrations.mjs.map +1 -1
- package/dist/actions/providers-get-get.cjs +1 -0
- package/dist/actions/providers-get-get.cjs.map +1 -1
- package/dist/actions/providers-get-get.d.cts +3 -3
- package/dist/actions/providers-get-get.d.cts.map +1 -1
- package/dist/actions/providers-get-get.d.mts +3 -3
- package/dist/actions/providers-get-get.d.mts.map +1 -1
- package/dist/actions/providers-get-get.mjs +1 -0
- package/dist/actions/providers-get-get.mjs.map +1 -1
- package/dist/actions/providers-list-get.cjs +1 -0
- package/dist/actions/providers-list-get.cjs.map +1 -1
- package/dist/actions/providers-list-get.d.cts +3 -1
- package/dist/actions/providers-list-get.d.cts.map +1 -1
- package/dist/actions/providers-list-get.d.mts +3 -1
- package/dist/actions/providers-list-get.d.mts.map +1 -1
- package/dist/actions/providers-list-get.mjs +1 -0
- package/dist/actions/providers-list-get.mjs.map +1 -1
- package/dist/actions/put-proxy.cjs +1 -0
- package/dist/actions/put-proxy.cjs.map +1 -1
- package/dist/actions/put-proxy.d.cts +3 -10
- package/dist/actions/put-proxy.d.cts.map +1 -1
- package/dist/actions/put-proxy.d.mts +3 -10
- package/dist/actions/put-proxy.d.mts.map +1 -1
- package/dist/actions/put-proxy.mjs +1 -0
- package/dist/actions/put-proxy.mjs.map +1 -1
- package/dist/actions/reconnect-session-post.cjs +1 -0
- package/dist/actions/reconnect-session-post.cjs.map +1 -1
- package/dist/actions/reconnect-session-post.d.cts +3 -17
- package/dist/actions/reconnect-session-post.d.cts.map +1 -1
- package/dist/actions/reconnect-session-post.d.mts +3 -17
- package/dist/actions/reconnect-session-post.d.mts.map +1 -1
- package/dist/actions/reconnect-session-post.mjs +1 -0
- package/dist/actions/reconnect-session-post.mjs.map +1 -1
- package/dist/actions/scripts-config-get.cjs +1 -0
- package/dist/actions/scripts-config-get.cjs.map +1 -1
- package/dist/actions/scripts-config-get.d.cts +3 -1
- package/dist/actions/scripts-config-get.d.cts.map +1 -1
- package/dist/actions/scripts-config-get.d.mts +3 -1
- package/dist/actions/scripts-config-get.d.mts.map +1 -1
- package/dist/actions/scripts-config-get.mjs +1 -0
- package/dist/actions/scripts-config-get.mjs.map +1 -1
- package/dist/actions/set-connection-metadata.cjs +1 -0
- package/dist/actions/set-connection-metadata.cjs.map +1 -1
- package/dist/actions/set-connection-metadata.d.cts +3 -5
- package/dist/actions/set-connection-metadata.d.cts.map +1 -1
- package/dist/actions/set-connection-metadata.d.mts +3 -5
- package/dist/actions/set-connection-metadata.d.mts.map +1 -1
- package/dist/actions/set-connection-metadata.mjs +1 -0
- package/dist/actions/set-connection-metadata.mjs.map +1 -1
- package/dist/actions/sync-trigger-post.cjs +1 -0
- package/dist/actions/sync-trigger-post.cjs.map +1 -1
- package/dist/actions/sync-trigger-post.d.cts +3 -6
- package/dist/actions/sync-trigger-post.d.cts.map +1 -1
- package/dist/actions/sync-trigger-post.d.mts +3 -6
- package/dist/actions/sync-trigger-post.d.mts.map +1 -1
- package/dist/actions/sync-trigger-post.mjs +1 -0
- package/dist/actions/sync-trigger-post.mjs.map +1 -1
- package/dist/actions/update-connection-metadata.cjs +1 -0
- package/dist/actions/update-connection-metadata.cjs.map +1 -1
- package/dist/actions/update-connection-metadata.d.cts +3 -5
- package/dist/actions/update-connection-metadata.d.cts.map +1 -1
- package/dist/actions/update-connection-metadata.d.mts +3 -5
- package/dist/actions/update-connection-metadata.d.mts.map +1 -1
- package/dist/actions/update-connection-metadata.mjs +1 -0
- package/dist/actions/update-connection-metadata.mjs.map +1 -1
- package/dist/actions/update-integration.cjs +1 -0
- package/dist/actions/update-integration.cjs.map +1 -1
- package/dist/actions/update-integration.d.cts +3 -27
- package/dist/actions/update-integration.d.cts.map +1 -1
- package/dist/actions/update-integration.d.mts +3 -27
- package/dist/actions/update-integration.d.mts.map +1 -1
- package/dist/actions/update-integration.mjs +1 -0
- package/dist/actions/update-integration.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +7 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +7 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { nango } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-connect-session.d.ts
|
|
@@ -24,22 +26,7 @@ declare const NangoCreateConnectSessionOutput: z.ZodObject<{
|
|
|
24
26
|
connect_link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
27
|
}, z.core.$loose>>;
|
|
26
28
|
}, z.core.$loose>;
|
|
27
|
-
declare const nangoCreateConnectSession:
|
|
28
|
-
end_user: {
|
|
29
|
-
id: string;
|
|
30
|
-
tags?: Record<string, unknown> | undefined;
|
|
31
|
-
email?: string | undefined;
|
|
32
|
-
display_name?: string | undefined;
|
|
33
|
-
};
|
|
34
|
-
tags?: Record<string, unknown> | undefined;
|
|
35
|
-
overrides?: Record<string, unknown> | undefined;
|
|
36
|
-
organization?: {
|
|
37
|
-
id: string;
|
|
38
|
-
display_name?: string | undefined;
|
|
39
|
-
} | undefined;
|
|
40
|
-
allowed_integrations?: string[] | undefined;
|
|
41
|
-
integrations_config_defaults?: Record<string, unknown> | undefined;
|
|
42
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
29
|
+
declare const nangoCreateConnectSession: AppAction<typeof NangoCreateConnectSessionInput, typeof NangoCreateConnectSessionOutput, typeof nango.credential>;
|
|
43
30
|
//#endregion
|
|
44
31
|
export { nangoCreateConnectSession };
|
|
45
32
|
//# sourceMappingURL=create-connect-session.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-connect-session.d.mts","names":[],"sources":["../../src/actions/create-connect-session.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-connect-session.d.mts","names":[],"sources":["../../src/actions/create-connect-session.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAqB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cAI/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-connect-session.mjs","names":[],"sources":["../../src/actions/create-connect-session.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoCreateConnectSessionInput = z.object({\n tags: z.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":"
|
|
1
|
+
{"version":3,"file":"create-connect-session.mjs","names":[],"sources":["../../src/actions/create-connect-session.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nango } from \"../app\";\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: AppAction<\n typeof NangoCreateConnectSessionInput,\n typeof NangoCreateConnectSessionOutput,\n typeof nango.credential\n> = 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":";;;;AAMA,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,4BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb6C,EAAE,OAAO,EACtD,MAAM,mDAAmD,SAAS,EACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAWhB;AACV,CAAC"}
|
|
@@ -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 = 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":"
|
|
1
|
+
{"version":3,"file":"create-integration.cjs","names":["z","action"],"sources":["../../src/actions/create-integration.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nango } from \"../app\";\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: AppAction<\n typeof NangoCreateIntegrationInput,\n typeof NangoCreateIntegrationOutput,\n typeof nango.credential\n> = 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":"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"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { nango } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-integration.d.ts
|
|
@@ -36,33 +38,7 @@ declare const NangoCreateIntegrationOutput: z.ZodObject<{
|
|
|
36
38
|
forward_webhooks: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
37
39
|
}, z.core.$loose>>;
|
|
38
40
|
}, z.core.$loose>;
|
|
39
|
-
declare const nangoCreateIntegration:
|
|
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]>;
|
|
41
|
+
declare const nangoCreateIntegration: AppAction<typeof NangoCreateIntegrationInput, typeof NangoCreateIntegrationOutput, typeof nango.credential>;
|
|
66
42
|
//#endregion
|
|
67
43
|
export { nangoCreateIntegration };
|
|
68
44
|
//# sourceMappingURL=create-integration.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-integration.d.cts","names":[],"sources":["../../src/actions/create-integration.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-integration.d.cts","names":[],"sources":["../../src/actions/create-integration.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAiC3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;cAI5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { nango } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-integration.d.ts
|
|
@@ -36,33 +38,7 @@ declare const NangoCreateIntegrationOutput: z.ZodObject<{
|
|
|
36
38
|
forward_webhooks: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
37
39
|
}, z.core.$loose>>;
|
|
38
40
|
}, z.core.$loose>;
|
|
39
|
-
declare const nangoCreateIntegration:
|
|
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]>;
|
|
41
|
+
declare const nangoCreateIntegration: AppAction<typeof NangoCreateIntegrationInput, typeof NangoCreateIntegrationOutput, typeof nango.credential>;
|
|
66
42
|
//#endregion
|
|
67
43
|
export { nangoCreateIntegration };
|
|
68
44
|
//# sourceMappingURL=create-integration.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-integration.d.mts","names":[],"sources":["../../src/actions/create-integration.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-integration.d.mts","names":[],"sources":["../../src/actions/create-integration.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAiC3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;cAI5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -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 = 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":"
|
|
1
|
+
{"version":3,"file":"create-integration.mjs","names":[],"sources":["../../src/actions/create-integration.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nango } from \"../app\";\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: AppAction<\n typeof NangoCreateIntegrationInput,\n typeof NangoCreateIntegrationOutput,\n typeof nango.credential\n> = 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":";;;;AAMA,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,yBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb0C,EAAE,OAAO,EACnD,MAAM,6CAA6C,SAAS,EAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAWhB;AACV,CAAC"}
|
|
@@ -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 = 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":"
|
|
1
|
+
{"version":3,"file":"delete-connection.cjs","names":["z","action"],"sources":["../../src/actions/delete-connection.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nango } from \"../app\";\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: AppAction<\n typeof NangoDeleteConnectionInput,\n typeof NangoDeleteConnectionOutput,\n typeof nango.credential\n> = 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":";;;;AAMA,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,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { nango } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/delete-connection.d.ts
|
|
@@ -8,10 +10,7 @@ declare const NangoDeleteConnectionInput: z.ZodObject<{
|
|
|
8
10
|
declare const NangoDeleteConnectionOutput: z.ZodObject<{
|
|
9
11
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
10
12
|
}, z.core.$loose>;
|
|
11
|
-
declare const nangoDeleteConnection:
|
|
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]>;
|
|
13
|
+
declare const nangoDeleteConnection: AppAction<typeof NangoDeleteConnectionInput, typeof NangoDeleteConnectionOutput, typeof nango.credential>;
|
|
15
14
|
//#endregion
|
|
16
15
|
export { nangoDeleteConnection };
|
|
17
16
|
//# sourceMappingURL=delete-connection.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-connection.d.cts","names":[],"sources":["../../src/actions/delete-connection.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-connection.d.cts","names":[],"sources":["../../src/actions/delete-connection.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { nango } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/delete-connection.d.ts
|
|
@@ -8,10 +10,7 @@ declare const NangoDeleteConnectionInput: z.ZodObject<{
|
|
|
8
10
|
declare const NangoDeleteConnectionOutput: z.ZodObject<{
|
|
9
11
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
10
12
|
}, z.core.$loose>;
|
|
11
|
-
declare const nangoDeleteConnection:
|
|
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]>;
|
|
13
|
+
declare const nangoDeleteConnection: AppAction<typeof NangoDeleteConnectionInput, typeof NangoDeleteConnectionOutput, typeof nango.credential>;
|
|
15
14
|
//#endregion
|
|
16
15
|
export { nangoDeleteConnection };
|
|
17
16
|
//# sourceMappingURL=delete-connection.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-connection.d.mts","names":[],"sources":["../../src/actions/delete-connection.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-connection.d.mts","names":[],"sources":["../../src/actions/delete-connection.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -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 = 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":"
|
|
1
|
+
{"version":3,"file":"delete-connection.mjs","names":[],"sources":["../../src/actions/delete-connection.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nango } from \"../app\";\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: AppAction<\n typeof NangoDeleteConnectionInput,\n typeof NangoDeleteConnectionOutput,\n typeof nango.credential\n> = 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":";;;AAcA,MAAa,wBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBwC,EAAE,OAAO;EACjD,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;EACrF,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CAC/G,CAAC,CAAC,CAAC,SAAS,gDAaH;CACP,QAbyC,EAAE,OAAO,EAClD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,EACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAWhB;AACV,CAAC"}
|
|
@@ -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 = 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":"
|
|
1
|
+
{"version":3,"file":"delete-integration.cjs","names":["z","action"],"sources":["../../src/actions/delete-integration.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nango } from \"../app\";\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: AppAction<\n typeof NangoDeleteIntegrationInput,\n typeof NangoDeleteIntegrationOutput,\n typeof nango.credential\n> = 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":";;;;AAMA,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,yBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { nango } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/delete-integration.d.ts
|
|
@@ -7,9 +9,7 @@ declare const NangoDeleteIntegrationInput: z.ZodObject<{
|
|
|
7
9
|
declare const NangoDeleteIntegrationOutput: z.ZodObject<{
|
|
8
10
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
9
11
|
}, z.core.$loose>;
|
|
10
|
-
declare const nangoDeleteIntegration:
|
|
11
|
-
uniqueKey: string;
|
|
12
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
12
|
+
declare const nangoDeleteIntegration: AppAction<typeof NangoDeleteIntegrationInput, typeof NangoDeleteIntegrationOutput, typeof nango.credential>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { nangoDeleteIntegration };
|
|
15
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":"
|
|
1
|
+
{"version":3,"file":"delete-integration.d.cts","names":[],"sources":["../../src/actions/delete-integration.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { nango } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/delete-integration.d.ts
|
|
@@ -7,9 +9,7 @@ declare const NangoDeleteIntegrationInput: z.ZodObject<{
|
|
|
7
9
|
declare const NangoDeleteIntegrationOutput: z.ZodObject<{
|
|
8
10
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
9
11
|
}, z.core.$loose>;
|
|
10
|
-
declare const nangoDeleteIntegration:
|
|
11
|
-
uniqueKey: string;
|
|
12
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
12
|
+
declare const nangoDeleteIntegration: AppAction<typeof NangoDeleteIntegrationInput, typeof NangoDeleteIntegrationOutput, typeof nango.credential>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { nangoDeleteIntegration };
|
|
15
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":"
|
|
1
|
+
{"version":3,"file":"delete-integration.d.mts","names":[],"sources":["../../src/actions/delete-integration.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -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 = 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":"
|
|
1
|
+
{"version":3,"file":"delete-integration.mjs","names":[],"sources":["../../src/actions/delete-integration.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nango } from \"../app\";\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: AppAction<\n typeof NangoDeleteIntegrationInput,\n typeof NangoDeleteIntegrationOutput,\n typeof nango.credential\n> = 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":";;;AAaA,MAAa,yBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfyC,EAAE,OAAO,EAClD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,EAC7F,CAAC,CAAC,CAAC,SAAS,iDAaH;CACP,QAb0C,EAAE,OAAO,EACnD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,EACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-connection.cjs","names":["z","action"],"sources":["../../src/actions/edit-connection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoEditConnectionInput = z.object({\n tags: z.record(z.string(), z.unknown()).describe(\"Connection tags (key/value strings). Keys are normalized to lowercase. Max value length: 255 characters.\").optional(),\n end_user: z.object({\n id: z.string().describe(\"End user ID (required when updating end user)\"),\n tags: z.record(z.string(), z.unknown()).describe(\"Tags associated with the end user\").optional(),\n email: z.string().describe(\"End user email address\").optional(),\n display_name: z.string().describe(\"End user display name\").optional(),\n}).describe(\"End user information to update on the connection.\\nDeprecated - use tags instead for new implementations.\").optional(),\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 editing a Nango connection's tags and metadata.\");\nexport const NangoEditConnectionOutput = z.object({\n success: z.boolean().describe(\"Whether the connection was successfully updated\").nullable(),\n}).passthrough().describe(\"Response model for editing a Nango connection.\");\n\nexport const nangoEditConnection = action(\"NANGO_EDIT_CONNECTION\", {\n slug: \"nango-edit-connection\",\n name: \"Edit Connection\",\n description: \"Tool to edit a connection's tags and metadata. Use when you need to update connection attributes like environment tags, team assignments, or end user information.\",\n input: NangoEditConnectionInput,\n output: NangoEditConnectionOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"edit-connection.cjs","names":["z","action"],"sources":["../../src/actions/edit-connection.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nango } from \"../app\";\n\nexport const NangoEditConnectionInput = z.object({\n tags: z.record(z.string(), z.unknown()).describe(\"Connection tags (key/value strings). Keys are normalized to lowercase. Max value length: 255 characters.\").optional(),\n end_user: z.object({\n id: z.string().describe(\"End user ID (required when updating end user)\"),\n tags: z.record(z.string(), z.unknown()).describe(\"Tags associated with the end user\").optional(),\n email: z.string().describe(\"End user email address\").optional(),\n display_name: z.string().describe(\"End user display name\").optional(),\n}).describe(\"End user information to update on the connection.\\nDeprecated - use tags instead for new implementations.\").optional(),\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 editing a Nango connection's tags and metadata.\");\nexport const NangoEditConnectionOutput = z.object({\n success: z.boolean().describe(\"Whether the connection was successfully updated\").nullable(),\n}).passthrough().describe(\"Response model for editing a Nango connection.\");\n\nexport const nangoEditConnection: AppAction<\n typeof NangoEditConnectionInput,\n typeof NangoEditConnectionOutput,\n typeof nango.credential\n> = action(\"NANGO_EDIT_CONNECTION\", {\n slug: \"nango-edit-connection\",\n name: \"Edit Connection\",\n description: \"Tool to edit a connection's tags and metadata. Use when you need to update connection attributes like environment tags, team assignments, or end user information.\",\n input: NangoEditConnectionInput,\n output: NangoEditConnectionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACtK,UAAUA,IAAAA,EAAE,OAAO;EACnB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EACvE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC/F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EAC9D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACtE,CAAC,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CAChI,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CACpF,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;AAC9G,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,EAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { nango } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/edit-connection.d.ts
|
|
@@ -15,17 +17,7 @@ declare const NangoEditConnectionInput: z.ZodObject<{
|
|
|
15
17
|
declare const NangoEditConnectionOutput: z.ZodObject<{
|
|
16
18
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
17
19
|
}, z.core.$loose>;
|
|
18
|
-
declare const nangoEditConnection:
|
|
19
|
-
connection_id: string;
|
|
20
|
-
provider_config_key: string;
|
|
21
|
-
tags?: Record<string, unknown> | undefined;
|
|
22
|
-
end_user?: {
|
|
23
|
-
id: string;
|
|
24
|
-
tags?: Record<string, unknown> | undefined;
|
|
25
|
-
email?: string | undefined;
|
|
26
|
-
display_name?: string | undefined;
|
|
27
|
-
} | undefined;
|
|
28
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
20
|
+
declare const nangoEditConnection: AppAction<typeof NangoEditConnectionInput, typeof NangoEditConnectionOutput, typeof nango.credential>;
|
|
29
21
|
//#endregion
|
|
30
22
|
export { nangoEditConnection };
|
|
31
23
|
//# sourceMappingURL=edit-connection.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-connection.d.cts","names":[],"sources":["../../src/actions/edit-connection.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"edit-connection.d.cts","names":[],"sources":["../../src/actions/edit-connection.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { nango } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/edit-connection.d.ts
|
|
@@ -15,17 +17,7 @@ declare const NangoEditConnectionInput: z.ZodObject<{
|
|
|
15
17
|
declare const NangoEditConnectionOutput: z.ZodObject<{
|
|
16
18
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
17
19
|
}, z.core.$loose>;
|
|
18
|
-
declare const nangoEditConnection:
|
|
19
|
-
connection_id: string;
|
|
20
|
-
provider_config_key: string;
|
|
21
|
-
tags?: Record<string, unknown> | undefined;
|
|
22
|
-
end_user?: {
|
|
23
|
-
id: string;
|
|
24
|
-
tags?: Record<string, unknown> | undefined;
|
|
25
|
-
email?: string | undefined;
|
|
26
|
-
display_name?: string | undefined;
|
|
27
|
-
} | undefined;
|
|
28
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
20
|
+
declare const nangoEditConnection: AppAction<typeof NangoEditConnectionInput, typeof NangoEditConnectionOutput, typeof nango.credential>;
|
|
29
21
|
//#endregion
|
|
30
22
|
export { nangoEditConnection };
|
|
31
23
|
//# sourceMappingURL=edit-connection.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-connection.d.mts","names":[],"sources":["../../src/actions/edit-connection.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"edit-connection.d.mts","names":[],"sources":["../../src/actions/edit-connection.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-connection.mjs","names":[],"sources":["../../src/actions/edit-connection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoEditConnectionInput = z.object({\n tags: z.record(z.string(), z.unknown()).describe(\"Connection tags (key/value strings). Keys are normalized to lowercase. Max value length: 255 characters.\").optional(),\n end_user: z.object({\n id: z.string().describe(\"End user ID (required when updating end user)\"),\n tags: z.record(z.string(), z.unknown()).describe(\"Tags associated with the end user\").optional(),\n email: z.string().describe(\"End user email address\").optional(),\n display_name: z.string().describe(\"End user display name\").optional(),\n}).describe(\"End user information to update on the connection.\\nDeprecated - use tags instead for new implementations.\").optional(),\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 editing a Nango connection's tags and metadata.\");\nexport const NangoEditConnectionOutput = z.object({\n success: z.boolean().describe(\"Whether the connection was successfully updated\").nullable(),\n}).passthrough().describe(\"Response model for editing a Nango connection.\");\n\nexport const nangoEditConnection = action(\"NANGO_EDIT_CONNECTION\", {\n slug: \"nango-edit-connection\",\n name: \"Edit Connection\",\n description: \"Tool to edit a connection's tags and metadata. Use when you need to update connection attributes like environment tags, team assignments, or end user information.\",\n input: NangoEditConnectionInput,\n output: NangoEditConnectionOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"edit-connection.mjs","names":[],"sources":["../../src/actions/edit-connection.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nango } from \"../app\";\n\nexport const NangoEditConnectionInput = z.object({\n tags: z.record(z.string(), z.unknown()).describe(\"Connection tags (key/value strings). Keys are normalized to lowercase. Max value length: 255 characters.\").optional(),\n end_user: z.object({\n id: z.string().describe(\"End user ID (required when updating end user)\"),\n tags: z.record(z.string(), z.unknown()).describe(\"Tags associated with the end user\").optional(),\n email: z.string().describe(\"End user email address\").optional(),\n display_name: z.string().describe(\"End user display name\").optional(),\n}).describe(\"End user information to update on the connection.\\nDeprecated - use tags instead for new implementations.\").optional(),\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 editing a Nango connection's tags and metadata.\");\nexport const NangoEditConnectionOutput = z.object({\n success: z.boolean().describe(\"Whether the connection was successfully updated\").nullable(),\n}).passthrough().describe(\"Response model for editing a Nango connection.\");\n\nexport const nangoEditConnection: AppAction<\n typeof NangoEditConnectionInput,\n typeof NangoEditConnectionOutput,\n typeof nango.credential\n> = action(\"NANGO_EDIT_CONNECTION\", {\n slug: \"nango-edit-connection\",\n name: \"Edit Connection\",\n description: \"Tool to edit a connection's tags and metadata. Use when you need to update connection attributes like environment tags, team assignments, or end user information.\",\n input: NangoEditConnectionInput,\n output: NangoEditConnectionOutput,\n});\n"],"mappings":";;;AAqBA,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvBsC,EAAE,OAAO;EAC/C,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;EACtK,UAAU,EAAE,OAAO;GACnB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;GACvE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;GAC/F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;GAC9D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EACtE,CAAC,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;EAChI,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EACpF,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CAC9G,CAAC,CAAC,CAAC,SAAS,mEAaH;CACP,QAbuC,EAAE,OAAO,EAChD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,EAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-connection.cjs","names":["z","action"],"sources":["../../src/actions/get-connection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoGetConnectionInput = z.object({\n connection_id: z.string().describe(\"The connection ID used to create the connection. This identifies the specific connection to retrieve.\"),\n force_refresh: z.boolean().describe(\"If true, Nango will attempt to refresh the access token regardless of its expiration status. Default is false.\").optional(),\n refresh_token: z.boolean().describe(\"If true, return the refresh token as part of the response. Default is false.\").optional(),\n provider_config_key: z.string().describe(\"The integration ID (Unique Key) used to create the connection. Required to identify which integration this connection belongs to.\"),\n refresh_github_app_jwt_token: z.boolean().describe(\"If true, this will refresh the JWT token for GitHub App / GitHub App OAuth connections.\").optional(),\n}).describe(\"Request model for retrieving a specific connection with credentials.\");\nconst NangoGetConnection_ConnectionErrorSchema = z.object({\n type: z.string().describe(\"Error type identifier\").nullable(),\n log_id: z.string().describe(\"Associated log ID for debugging\").nullable(),\n}).passthrough().describe(\"Represents an error associated with a connection.\");\nconst NangoGetConnection_EndUserSchema = z.object({\n id: z.string().describe(\"End user ID\").nullable(),\n tags: z.record(z.string(), z.unknown()).describe(\"Tags associated with the end user\").nullable().optional(),\n email: z.string().describe(\"End user email\").nullable().optional(),\n display_name: z.string().describe(\"End user display name\").nullable().optional(),\n organization: z.record(z.string(), z.unknown()).describe(\"Organization details\").nullable().optional(),\n}).passthrough().describe(\"End user information associated with a connection.\");\nexport const NangoGetConnectionOutput = z.object({\n id: z.number().int().describe(\"Internal Nango connection identifier\").nullable(),\n tags: z.record(z.string(), z.unknown()).describe(\"Connection tags (key/value strings). Keys are normalized to lowercase.\"),\n errors: z.array(NangoGetConnection_ConnectionErrorSchema).describe(\"List of connection errors (auth/sync issues)\"),\n end_user: NangoGetConnection_EndUserSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata attached to the connection\"),\n provider: z.string().describe(\"Provider/integration name\").nullable(),\n created_at: z.string().describe(\"Connection creation timestamp in ISO 8601 format\").nullable(),\n updated_at: z.string().describe(\"Connection last update timestamp in ISO 8601 format\").nullable(),\n credentials: z.record(z.string(), z.unknown()).describe(\"Authentication credentials for this connection. Type varies by auth method (OAuth2, API Key, Basic, etc.). Contains fields like type, access_token, refresh_token, etc. depending on the auth method.\"),\n connection_id: z.string().describe(\"The connection ID provided when creating the connection\").nullable(),\n last_fetched_at: z.string().describe(\"Last time connection data was fetched\").nullable(),\n connection_config: z.record(z.string(), z.unknown()).describe(\"Connection configuration data\"),\n provider_config_key: z.string().describe(\"Integration/provider configuration key (unique key)\").nullable(),\n}).passthrough().describe(\"Response model for retrieving a connection with credentials.\\nContains full connection details including authentication credentials.\");\n\nexport const nangoGetConnection = action(\"NANGO_GET_CONNECTION\", {\n slug: \"nango-get-connection\",\n name: \"Get Connection with Credentials\",\n description: \"Retrieve a specific connection with its credentials. Automatically checks if the access token has expired and refreshes it if needed. Use this action when you need to access the authentication credentials for a connection to make API calls to the provider. The credentials returned depend on the auth type (OAuth2, API Key, Basic Auth, etc.). Returns 404 if the connection does not exist, 424 if token refresh is exhausted.\",\n input: NangoGetConnectionInput,\n output: NangoGetConnectionOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-connection.cjs","names":["z","action"],"sources":["../../src/actions/get-connection.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nango } from \"../app\";\n\nexport const NangoGetConnectionInput = z.object({\n connection_id: z.string().describe(\"The connection ID used to create the connection. This identifies the specific connection to retrieve.\"),\n force_refresh: z.boolean().describe(\"If true, Nango will attempt to refresh the access token regardless of its expiration status. Default is false.\").optional(),\n refresh_token: z.boolean().describe(\"If true, return the refresh token as part of the response. Default is false.\").optional(),\n provider_config_key: z.string().describe(\"The integration ID (Unique Key) used to create the connection. Required to identify which integration this connection belongs to.\"),\n refresh_github_app_jwt_token: z.boolean().describe(\"If true, this will refresh the JWT token for GitHub App / GitHub App OAuth connections.\").optional(),\n}).describe(\"Request model for retrieving a specific connection with credentials.\");\nconst NangoGetConnection_ConnectionErrorSchema = z.object({\n type: z.string().describe(\"Error type identifier\").nullable(),\n log_id: z.string().describe(\"Associated log ID for debugging\").nullable(),\n}).passthrough().describe(\"Represents an error associated with a connection.\");\nconst NangoGetConnection_EndUserSchema = z.object({\n id: z.string().describe(\"End user ID\").nullable(),\n tags: z.record(z.string(), z.unknown()).describe(\"Tags associated with the end user\").nullable().optional(),\n email: z.string().describe(\"End user email\").nullable().optional(),\n display_name: z.string().describe(\"End user display name\").nullable().optional(),\n organization: z.record(z.string(), z.unknown()).describe(\"Organization details\").nullable().optional(),\n}).passthrough().describe(\"End user information associated with a connection.\");\nexport const NangoGetConnectionOutput = z.object({\n id: z.number().int().describe(\"Internal Nango connection identifier\").nullable(),\n tags: z.record(z.string(), z.unknown()).describe(\"Connection tags (key/value strings). Keys are normalized to lowercase.\"),\n errors: z.array(NangoGetConnection_ConnectionErrorSchema).describe(\"List of connection errors (auth/sync issues)\"),\n end_user: NangoGetConnection_EndUserSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata attached to the connection\"),\n provider: z.string().describe(\"Provider/integration name\").nullable(),\n created_at: z.string().describe(\"Connection creation timestamp in ISO 8601 format\").nullable(),\n updated_at: z.string().describe(\"Connection last update timestamp in ISO 8601 format\").nullable(),\n credentials: z.record(z.string(), z.unknown()).describe(\"Authentication credentials for this connection. Type varies by auth method (OAuth2, API Key, Basic, etc.). Contains fields like type, access_token, refresh_token, etc. depending on the auth method.\"),\n connection_id: z.string().describe(\"The connection ID provided when creating the connection\").nullable(),\n last_fetched_at: z.string().describe(\"Last time connection data was fetched\").nullable(),\n connection_config: z.record(z.string(), z.unknown()).describe(\"Connection configuration data\"),\n provider_config_key: z.string().describe(\"Integration/provider configuration key (unique key)\").nullable(),\n}).passthrough().describe(\"Response model for retrieving a connection with credentials.\\nContains full connection details including authentication credentials.\");\n\nexport const nangoGetConnection: AppAction<\n typeof NangoGetConnectionInput,\n typeof NangoGetConnectionOutput,\n typeof nango.credential\n> = action(\"NANGO_GET_CONNECTION\", {\n slug: \"nango-get-connection\",\n name: \"Get Connection with Credentials\",\n description: \"Retrieve a specific connection with its credentials. Automatically checks if the access token has expired and refreshes it if needed. Use this action when you need to access the authentication credentials for a connection to make API calls to the provider. The credentials returned depend on the auth type (OAuth2, API Key, Basic Auth, etc.). Returns 404 if the connection does not exist, 424 if token refresh is exhausted.\",\n input: NangoGetConnectionInput,\n output: NangoGetConnectionOutput,\n});\n"],"mappings":"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"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { nango } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-connection.d.ts
|
|
@@ -32,13 +34,7 @@ declare const NangoGetConnectionOutput: z.ZodObject<{
|
|
|
32
34
|
connection_config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
33
35
|
provider_config_key: z.ZodNullable<z.ZodString>;
|
|
34
36
|
}, z.core.$loose>;
|
|
35
|
-
declare const nangoGetConnection:
|
|
36
|
-
connection_id: string;
|
|
37
|
-
provider_config_key: string;
|
|
38
|
-
force_refresh?: boolean | undefined;
|
|
39
|
-
refresh_token?: boolean | undefined;
|
|
40
|
-
refresh_github_app_jwt_token?: boolean | undefined;
|
|
41
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
37
|
+
declare const nangoGetConnection: AppAction<typeof NangoGetConnectionInput, typeof NangoGetConnectionOutput, typeof nango.credential>;
|
|
42
38
|
//#endregion
|
|
43
39
|
export { nangoGetConnection };
|
|
44
40
|
//# sourceMappingURL=get-connection.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-connection.d.cts","names":[],"sources":["../../src/actions/get-connection.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-connection.d.cts","names":[],"sources":["../../src/actions/get-connection.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;cAkBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAgBxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,KAAA,CAAM,UAAA"}
|