@keystrokehq/nango 0.1.0 → 0.1.2

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.
Files changed (199) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/action-trigger-post.cjs.map +1 -1
  4. package/dist/actions/action-trigger-post.d.cts +15 -3
  5. package/dist/actions/action-trigger-post.d.cts.map +1 -1
  6. package/dist/actions/action-trigger-post.d.mts +15 -3
  7. package/dist/actions/action-trigger-post.d.mts.map +1 -1
  8. package/dist/actions/action-trigger-post.mjs.map +1 -1
  9. package/dist/actions/add-connection.cjs +9 -9
  10. package/dist/actions/add-connection.cjs.map +1 -1
  11. package/dist/actions/add-connection.d.cts +114 -3
  12. package/dist/actions/add-connection.d.cts.map +1 -1
  13. package/dist/actions/add-connection.d.mts +114 -3
  14. package/dist/actions/add-connection.d.mts.map +1 -1
  15. package/dist/actions/add-connection.mjs +9 -9
  16. package/dist/actions/add-connection.mjs.map +1 -1
  17. package/dist/actions/connection-get.cjs +6 -6
  18. package/dist/actions/connection-get.cjs.map +1 -1
  19. package/dist/actions/connection-get.d.cts +36 -3
  20. package/dist/actions/connection-get.d.cts.map +1 -1
  21. package/dist/actions/connection-get.d.mts +36 -3
  22. package/dist/actions/connection-get.d.mts.map +1 -1
  23. package/dist/actions/connection-get.mjs +6 -6
  24. package/dist/actions/connection-get.mjs.map +1 -1
  25. package/dist/actions/create-connect-session.cjs +2 -2
  26. package/dist/actions/create-connect-session.cjs.map +1 -1
  27. package/dist/actions/create-connect-session.d.cts +39 -3
  28. package/dist/actions/create-connect-session.d.cts.map +1 -1
  29. package/dist/actions/create-connect-session.d.mts +39 -3
  30. package/dist/actions/create-connect-session.d.mts.map +1 -1
  31. package/dist/actions/create-connect-session.mjs +2 -2
  32. package/dist/actions/create-connect-session.mjs.map +1 -1
  33. package/dist/actions/create-integration.cjs +5 -5
  34. package/dist/actions/create-integration.cjs.map +1 -1
  35. package/dist/actions/create-integration.d.cts +59 -3
  36. package/dist/actions/create-integration.d.cts.map +1 -1
  37. package/dist/actions/create-integration.d.mts +59 -3
  38. package/dist/actions/create-integration.d.mts.map +1 -1
  39. package/dist/actions/create-integration.mjs +5 -5
  40. package/dist/actions/create-integration.mjs.map +1 -1
  41. package/dist/actions/delete-connection.cjs +1 -1
  42. package/dist/actions/delete-connection.cjs.map +1 -1
  43. package/dist/actions/delete-connection.d.cts +11 -3
  44. package/dist/actions/delete-connection.d.cts.map +1 -1
  45. package/dist/actions/delete-connection.d.mts +11 -3
  46. package/dist/actions/delete-connection.d.mts.map +1 -1
  47. package/dist/actions/delete-connection.mjs +1 -1
  48. package/dist/actions/delete-connection.mjs.map +1 -1
  49. package/dist/actions/delete-integration.cjs +1 -1
  50. package/dist/actions/delete-integration.cjs.map +1 -1
  51. package/dist/actions/delete-integration.d.cts +9 -3
  52. package/dist/actions/delete-integration.d.cts.map +1 -1
  53. package/dist/actions/delete-integration.d.mts +9 -3
  54. package/dist/actions/delete-integration.d.mts.map +1 -1
  55. package/dist/actions/delete-integration.mjs +1 -1
  56. package/dist/actions/delete-integration.mjs.map +1 -1
  57. package/dist/actions/edit-connection.cjs +1 -1
  58. package/dist/actions/edit-connection.cjs.map +1 -1
  59. package/dist/actions/edit-connection.d.cts +25 -3
  60. package/dist/actions/edit-connection.d.cts.map +1 -1
  61. package/dist/actions/edit-connection.d.mts +25 -3
  62. package/dist/actions/edit-connection.d.mts.map +1 -1
  63. package/dist/actions/edit-connection.mjs +1 -1
  64. package/dist/actions/edit-connection.mjs.map +1 -1
  65. package/dist/actions/get-connection.cjs +10 -10
  66. package/dist/actions/get-connection.cjs.map +1 -1
  67. package/dist/actions/get-connection.d.cts +38 -3
  68. package/dist/actions/get-connection.d.cts.map +1 -1
  69. package/dist/actions/get-connection.d.mts +38 -3
  70. package/dist/actions/get-connection.d.mts.map +1 -1
  71. package/dist/actions/get-connection.mjs +10 -10
  72. package/dist/actions/get-connection.mjs.map +1 -1
  73. package/dist/actions/get-environment-variables.cjs +2 -2
  74. package/dist/actions/get-environment-variables.cjs.map +1 -1
  75. package/dist/actions/get-environment-variables.d.cts +8 -3
  76. package/dist/actions/get-environment-variables.d.cts.map +1 -1
  77. package/dist/actions/get-environment-variables.d.mts +8 -3
  78. package/dist/actions/get-environment-variables.d.mts.map +1 -1
  79. package/dist/actions/get-environment-variables.mjs +2 -2
  80. package/dist/actions/get-environment-variables.mjs.map +1 -1
  81. package/dist/actions/get-integration.cjs +5 -5
  82. package/dist/actions/get-integration.cjs.map +1 -1
  83. package/dist/actions/get-integration.d.cts +26 -3
  84. package/dist/actions/get-integration.d.cts.map +1 -1
  85. package/dist/actions/get-integration.d.mts +26 -3
  86. package/dist/actions/get-integration.d.mts.map +1 -1
  87. package/dist/actions/get-integration.mjs +5 -5
  88. package/dist/actions/get-integration.mjs.map +1 -1
  89. package/dist/actions/get-proxy.cjs +1 -1
  90. package/dist/actions/get-proxy.cjs.map +1 -1
  91. package/dist/actions/get-proxy.d.cts +28 -3
  92. package/dist/actions/get-proxy.d.cts.map +1 -1
  93. package/dist/actions/get-proxy.d.mts +28 -3
  94. package/dist/actions/get-proxy.d.mts.map +1 -1
  95. package/dist/actions/get-proxy.mjs +1 -1
  96. package/dist/actions/get-proxy.mjs.map +1 -1
  97. package/dist/actions/get-sync-status.cjs +3 -3
  98. package/dist/actions/get-sync-status.cjs.map +1 -1
  99. package/dist/actions/get-sync-status.d.cts +35 -3
  100. package/dist/actions/get-sync-status.d.cts.map +1 -1
  101. package/dist/actions/get-sync-status.d.mts +35 -3
  102. package/dist/actions/get-sync-status.d.mts.map +1 -1
  103. package/dist/actions/get-sync-status.mjs +3 -3
  104. package/dist/actions/get-sync-status.mjs.map +1 -1
  105. package/dist/actions/list-connections.cjs +6 -6
  106. package/dist/actions/list-connections.cjs.map +1 -1
  107. package/dist/actions/list-connections.d.cts +39 -3
  108. package/dist/actions/list-connections.d.cts.map +1 -1
  109. package/dist/actions/list-connections.d.mts +39 -3
  110. package/dist/actions/list-connections.d.mts.map +1 -1
  111. package/dist/actions/list-connections.mjs +6 -6
  112. package/dist/actions/list-connections.mjs.map +1 -1
  113. package/dist/actions/list-integrations.cjs +5 -5
  114. package/dist/actions/list-integrations.cjs.map +1 -1
  115. package/dist/actions/list-integrations.d.cts +12 -3
  116. package/dist/actions/list-integrations.d.cts.map +1 -1
  117. package/dist/actions/list-integrations.d.mts +12 -3
  118. package/dist/actions/list-integrations.d.mts.map +1 -1
  119. package/dist/actions/list-integrations.mjs +5 -5
  120. package/dist/actions/list-integrations.mjs.map +1 -1
  121. package/dist/actions/providers-get-get.cjs +3 -3
  122. package/dist/actions/providers-get-get.cjs.map +1 -1
  123. package/dist/actions/providers-get-get.d.cts +21 -3
  124. package/dist/actions/providers-get-get.d.cts.map +1 -1
  125. package/dist/actions/providers-get-get.d.mts +21 -3
  126. package/dist/actions/providers-get-get.d.mts.map +1 -1
  127. package/dist/actions/providers-get-get.mjs +3 -3
  128. package/dist/actions/providers-get-get.mjs.map +1 -1
  129. package/dist/actions/providers-list-get.cjs +2 -2
  130. package/dist/actions/providers-list-get.cjs.map +1 -1
  131. package/dist/actions/providers-list-get.d.cts +13 -3
  132. package/dist/actions/providers-list-get.d.cts.map +1 -1
  133. package/dist/actions/providers-list-get.d.mts +13 -3
  134. package/dist/actions/providers-list-get.d.mts.map +1 -1
  135. package/dist/actions/providers-list-get.mjs +2 -2
  136. package/dist/actions/providers-list-get.mjs.map +1 -1
  137. package/dist/actions/put-proxy.cjs +1 -1
  138. package/dist/actions/put-proxy.cjs.map +1 -1
  139. package/dist/actions/put-proxy.d.cts +23 -3
  140. package/dist/actions/put-proxy.d.cts.map +1 -1
  141. package/dist/actions/put-proxy.d.mts +23 -3
  142. package/dist/actions/put-proxy.d.mts.map +1 -1
  143. package/dist/actions/put-proxy.mjs +1 -1
  144. package/dist/actions/put-proxy.mjs.map +1 -1
  145. package/dist/actions/reconnect-session-post.cjs +2 -2
  146. package/dist/actions/reconnect-session-post.cjs.map +1 -1
  147. package/dist/actions/reconnect-session-post.d.cts +41 -3
  148. package/dist/actions/reconnect-session-post.d.cts.map +1 -1
  149. package/dist/actions/reconnect-session-post.d.mts +41 -3
  150. package/dist/actions/reconnect-session-post.d.mts.map +1 -1
  151. package/dist/actions/reconnect-session-post.mjs +2 -2
  152. package/dist/actions/reconnect-session-post.mjs.map +1 -1
  153. package/dist/actions/scripts-config-get.cjs +3 -3
  154. package/dist/actions/scripts-config-get.cjs.map +1 -1
  155. package/dist/actions/scripts-config-get.d.cts +53 -3
  156. package/dist/actions/scripts-config-get.d.cts.map +1 -1
  157. package/dist/actions/scripts-config-get.d.mts +53 -3
  158. package/dist/actions/scripts-config-get.d.mts.map +1 -1
  159. package/dist/actions/scripts-config-get.mjs +3 -3
  160. package/dist/actions/scripts-config-get.mjs.map +1 -1
  161. package/dist/actions/set-connection-metadata.cjs +1 -1
  162. package/dist/actions/set-connection-metadata.cjs.map +1 -1
  163. package/dist/actions/set-connection-metadata.d.cts +15 -3
  164. package/dist/actions/set-connection-metadata.d.cts.map +1 -1
  165. package/dist/actions/set-connection-metadata.d.mts +15 -3
  166. package/dist/actions/set-connection-metadata.d.mts.map +1 -1
  167. package/dist/actions/set-connection-metadata.mjs +1 -1
  168. package/dist/actions/set-connection-metadata.mjs.map +1 -1
  169. package/dist/actions/sync-trigger-post.cjs +1 -1
  170. package/dist/actions/sync-trigger-post.cjs.map +1 -1
  171. package/dist/actions/sync-trigger-post.d.cts +19 -3
  172. package/dist/actions/sync-trigger-post.d.cts.map +1 -1
  173. package/dist/actions/sync-trigger-post.d.mts +19 -3
  174. package/dist/actions/sync-trigger-post.d.mts.map +1 -1
  175. package/dist/actions/sync-trigger-post.mjs +1 -1
  176. package/dist/actions/sync-trigger-post.mjs.map +1 -1
  177. package/dist/actions/update-connection-metadata.cjs +1 -1
  178. package/dist/actions/update-connection-metadata.cjs.map +1 -1
  179. package/dist/actions/update-connection-metadata.d.cts +15 -3
  180. package/dist/actions/update-connection-metadata.d.cts.map +1 -1
  181. package/dist/actions/update-connection-metadata.d.mts +15 -3
  182. package/dist/actions/update-connection-metadata.d.mts.map +1 -1
  183. package/dist/actions/update-connection-metadata.mjs +1 -1
  184. package/dist/actions/update-connection-metadata.mjs.map +1 -1
  185. package/dist/actions/update-integration.cjs +5 -5
  186. package/dist/actions/update-integration.cjs.map +1 -1
  187. package/dist/actions/update-integration.d.cts +58 -3
  188. package/dist/actions/update-integration.d.cts.map +1 -1
  189. package/dist/actions/update-integration.d.mts +58 -3
  190. package/dist/actions/update-integration.d.mts.map +1 -1
  191. package/dist/actions/update-integration.mjs +5 -5
  192. package/dist/actions/update-integration.mjs.map +1 -1
  193. package/dist/catalog.cjs +7 -1
  194. package/dist/catalog.cjs.map +1 -1
  195. package/dist/catalog.d.cts +8 -0
  196. package/dist/catalog.d.mts +8 -0
  197. package/dist/catalog.mjs +7 -1
  198. package/dist/catalog.mjs.map +1 -1
  199. package/package.json +2 -2
@@ -1,9 +1,42 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/connection-get.d.ts
4
- declare const NangoConnectionGetInput: z.ZodTypeAny;
5
- declare const NangoConnectionGetOutput: z.ZodTypeAny;
6
- declare const nangoConnectionGet: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NangoConnectionGetInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodNumber>;
6
+ limit: z.ZodOptional<z.ZodNumber>;
7
+ search: z.ZodOptional<z.ZodString>;
8
+ end_user_id: z.ZodOptional<z.ZodString>;
9
+ connection_id: z.ZodOptional<z.ZodString>;
10
+ end_user_organization_id: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strip>;
12
+ declare const NangoConnectionGetOutput: z.ZodObject<{
13
+ connections: z.ZodArray<z.ZodObject<{
14
+ id: z.ZodNullable<z.ZodNumber>;
15
+ errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
16
+ type: z.ZodNullable<z.ZodString>;
17
+ log_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ }, z.core.$strip>>>>;
19
+ created: z.ZodNullable<z.ZodString>;
20
+ end_user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ organization: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
25
+ }, z.core.$strip>>>;
26
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
27
+ provider: z.ZodNullable<z.ZodString>;
28
+ connection_id: z.ZodNullable<z.ZodString>;
29
+ provider_config_key: z.ZodNullable<z.ZodString>;
30
+ }, z.core.$strip>>;
31
+ }, z.core.$strip>;
32
+ declare const nangoConnectionGet: import("@keystrokehq/action").WorkflowActionDefinition<{
33
+ page?: number | undefined;
34
+ limit?: number | undefined;
35
+ search?: string | undefined;
36
+ end_user_id?: string | undefined;
37
+ connection_id?: string | undefined;
38
+ end_user_organization_id?: string | undefined;
39
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
40
  //#endregion
8
41
  export { nangoConnectionGet };
9
42
  //# sourceMappingURL=connection-get.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"connection-get.d.cts","names":[],"sources":["../../src/actions/connection-get.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAOwE;AAAA,cAqBnG,wBAAA,EAA0B,CAAA,CAAE,UAEkK;AAAA,cAE9L,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"connection-get.d.cts","names":[],"sources":["../../src/actions/connection-get.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;cA4BvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA"}
@@ -1,9 +1,42 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/connection-get.d.ts
4
- declare const NangoConnectionGetInput: z.ZodTypeAny;
5
- declare const NangoConnectionGetOutput: z.ZodTypeAny;
6
- declare const nangoConnectionGet: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NangoConnectionGetInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodNumber>;
6
+ limit: z.ZodOptional<z.ZodNumber>;
7
+ search: z.ZodOptional<z.ZodString>;
8
+ end_user_id: z.ZodOptional<z.ZodString>;
9
+ connection_id: z.ZodOptional<z.ZodString>;
10
+ end_user_organization_id: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strip>;
12
+ declare const NangoConnectionGetOutput: z.ZodObject<{
13
+ connections: z.ZodArray<z.ZodObject<{
14
+ id: z.ZodNullable<z.ZodNumber>;
15
+ errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
16
+ type: z.ZodNullable<z.ZodString>;
17
+ log_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ }, z.core.$strip>>>>;
19
+ created: z.ZodNullable<z.ZodString>;
20
+ end_user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ organization: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
25
+ }, z.core.$strip>>>;
26
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
27
+ provider: z.ZodNullable<z.ZodString>;
28
+ connection_id: z.ZodNullable<z.ZodString>;
29
+ provider_config_key: z.ZodNullable<z.ZodString>;
30
+ }, z.core.$strip>>;
31
+ }, z.core.$strip>;
32
+ declare const nangoConnectionGet: import("@keystrokehq/action").WorkflowActionDefinition<{
33
+ page?: number | undefined;
34
+ limit?: number | undefined;
35
+ search?: string | undefined;
36
+ end_user_id?: string | undefined;
37
+ connection_id?: string | undefined;
38
+ end_user_organization_id?: string | undefined;
39
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
40
  //#endregion
8
41
  export { nangoConnectionGet };
9
42
  //# sourceMappingURL=connection-get.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"connection-get.d.mts","names":[],"sources":["../../src/actions/connection-get.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAOwE;AAAA,cAqBnG,wBAAA,EAA0B,CAAA,CAAE,UAEkK;AAAA,cAE9L,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"connection-get.d.mts","names":[],"sources":["../../src/actions/connection-get.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;cA4BvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA"}
@@ -10,7 +10,7 @@ const NangoConnectionGetInput = z.object({
10
10
  end_user_organization_id: z.string().describe("Filter by exact end user organization ID.").optional()
11
11
  }).describe("Request model for listing Nango connections.\nAll parameters are optional and used for filtering.");
12
12
  const NangoConnectionGet_ConnectionErrorSchema = z.object({
13
- type: z.string().describe("Error type (e.g., 'auth', 'sync')"),
13
+ type: z.string().describe("Error type (e.g., 'auth', 'sync')").nullable(),
14
14
  log_id: z.string().describe("Associated log ID for debugging").nullable().optional()
15
15
  }).describe("Represents an error associated with a connection.");
16
16
  const NangoConnectionGet_EndUserSchema = z.object({
@@ -20,14 +20,14 @@ const NangoConnectionGet_EndUserSchema = z.object({
20
20
  organization: z.record(z.string(), z.unknown()).describe("Organization details").nullable().optional()
21
21
  }).describe("End user information associated with a connection.");
22
22
  const NangoConnectionGet_ConnectionSchema = z.object({
23
- id: z.number().int().describe("Internal Nango connection identifier"),
23
+ id: z.number().int().describe("Internal Nango connection identifier").nullable(),
24
24
  errors: z.array(NangoConnectionGet_ConnectionErrorSchema).describe("List of connection errors (auth/sync issues)").nullable().optional(),
25
- created: z.string().describe("Connection creation timestamp in ISO 8601 format"),
25
+ created: z.string().describe("Connection creation timestamp in ISO 8601 format").nullable(),
26
26
  end_user: NangoConnectionGet_EndUserSchema.nullable().optional(),
27
27
  metadata: z.record(z.string(), z.unknown()).describe("Custom metadata attached to the connection").nullable().optional(),
28
- provider: z.string().describe("Provider/integration name"),
29
- connection_id: z.string().describe("The connection ID provided when creating the connection"),
30
- provider_config_key: z.string().describe("Integration/provider configuration key (unique key)")
28
+ provider: z.string().describe("Provider/integration name").nullable(),
29
+ connection_id: z.string().describe("The connection ID provided when creating the connection").nullable(),
30
+ provider_config_key: z.string().describe("Integration/provider configuration key (unique key)").nullable()
31
31
  }).describe("Represents a Nango connection object (without credentials).");
32
32
  const nangoConnectionGet = action("NANGO_CONNECTION_GET", {
33
33
  slug: "nango-connection-get",
@@ -1 +1 @@
1
- {"version":3,"file":"connection-get.mjs","names":[],"sources":["../../src/actions/connection-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoConnectionGetInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number for paginated results.\").optional(),\n limit: z.number().int().describe(\"Maximum number of connections to return.\").optional(),\n search: z.string().describe(\"Search connections. Will partially match connection IDs or end user profiles.\").optional(),\n end_user_id: z.string().describe(\"Filter by exact end user ID.\").optional(),\n connection_id: z.string().describe(\"Filter by exact connection ID. Can return multiple connections with the same ID across integrations.\").optional(),\n end_user_organization_id: z.string().describe(\"Filter by exact end user organization ID.\").optional(),\n}).describe(\"Request model for listing Nango connections.\\nAll parameters are optional and used for filtering.\");\nconst NangoConnectionGet_ConnectionErrorSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Error type (e.g., 'auth', 'sync')\"),\n log_id: z.string().describe(\"Associated log ID for debugging\").nullable().optional(),\n}).describe(\"Represents an error associated with a connection.\");\nconst NangoConnectionGet_EndUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"End user ID\").nullable().optional(),\n email: z.string().describe(\"End user email\").nullable().optional(),\n display_name: z.string().describe(\"End user display name\").nullable().optional(),\n organization: z.record(z.string(), z.unknown()).describe(\"Organization details\").nullable().optional(),\n}).describe(\"End user information associated with a connection.\");\nconst NangoConnectionGet_ConnectionSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Internal Nango connection identifier\"),\n errors: z.array(NangoConnectionGet_ConnectionErrorSchema).describe(\"List of connection errors (auth/sync issues)\").nullable().optional(),\n created: z.string().describe(\"Connection creation timestamp in ISO 8601 format\"),\n end_user: NangoConnectionGet_EndUserSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata attached to the connection\").nullable().optional(),\n provider: z.string().describe(\"Provider/integration name\"),\n connection_id: z.string().describe(\"The connection ID provided when creating the connection\"),\n provider_config_key: z.string().describe(\"Integration/provider configuration key (unique key)\"),\n}).describe(\"Represents a Nango connection object (without credentials).\");\nexport const NangoConnectionGetOutput: z.ZodTypeAny = z.object({\n connections: z.array(NangoConnectionGet_ConnectionSchema).describe(\"List of connection objects without credentials\"),\n}).describe(\"Response model for listing Nango connections.\\nNote: This endpoint returns connections WITHOUT credentials.\\nUse 'Get Connection Details' to retrieve credentials for a specific connection.\");\n\nexport const nangoConnectionGet = action(\"NANGO_CONNECTION_GET\", {\n slug: \"nango-connection-get\",\n name: \"List Connections\",\n description: \"List all Nango connections without credentials. Use this to discover available connections, check connection status, and find connection IDs. Omitting all filters returns every connection across all integrations; use `connection_id`, `end_user_id`, or `end_user_organization_id` to narrow results. To retrieve credentials for a specific connection, use the 'Get Connection Details' action.\",\n input: NangoConnectionGetInput,\n output: NangoConnectionGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACtH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC1E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACpJ,0BAA0B,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,mGAAmG;AAC/G,MAAM,2CAAyD,EAAE,OAAO;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,mCAAiD,EAAE,OAAO;CAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,sCAAoD,EAAE,OAAO;CACjE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC;CACpE,QAAQ,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAC/E,UAAU,iCAAiC,SAAS,CAAC,CAAC,SAAS;CAC/D,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACzD,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAC5F,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;AAChG,CAAC,CAAC,CAAC,SAAS,6DAA6D;AAKzE,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToD,EAAE,OAAO,EAC7D,aAAa,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,gDAAgD,EACrH,CAAC,CAAC,CAAC,SAAS,8LAOF;AACV,CAAC"}
1
+ {"version":3,"file":"connection-get.mjs","names":[],"sources":["../../src/actions/connection-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoConnectionGetInput = z.object({\n page: z.number().int().describe(\"Page number for paginated results.\").optional(),\n limit: z.number().int().describe(\"Maximum number of connections to return.\").optional(),\n search: z.string().describe(\"Search connections. Will partially match connection IDs or end user profiles.\").optional(),\n end_user_id: z.string().describe(\"Filter by exact end user ID.\").optional(),\n connection_id: z.string().describe(\"Filter by exact connection ID. Can return multiple connections with the same ID across integrations.\").optional(),\n end_user_organization_id: z.string().describe(\"Filter by exact end user organization ID.\").optional(),\n}).describe(\"Request model for listing Nango connections.\\nAll parameters are optional and used for filtering.\");\nconst NangoConnectionGet_ConnectionErrorSchema = z.object({\n type: z.string().describe(\"Error type (e.g., 'auth', 'sync')\").nullable(),\n log_id: z.string().describe(\"Associated log ID for debugging\").nullable().optional(),\n}).describe(\"Represents an error associated with a connection.\");\nconst NangoConnectionGet_EndUserSchema = z.object({\n id: z.string().describe(\"End user ID\").nullable().optional(),\n email: z.string().describe(\"End user email\").nullable().optional(),\n display_name: z.string().describe(\"End user display name\").nullable().optional(),\n organization: z.record(z.string(), z.unknown()).describe(\"Organization details\").nullable().optional(),\n}).describe(\"End user information associated with a connection.\");\nconst NangoConnectionGet_ConnectionSchema = z.object({\n id: z.number().int().describe(\"Internal Nango connection identifier\").nullable(),\n errors: z.array(NangoConnectionGet_ConnectionErrorSchema).describe(\"List of connection errors (auth/sync issues)\").nullable().optional(),\n created: z.string().describe(\"Connection creation timestamp in ISO 8601 format\").nullable(),\n end_user: NangoConnectionGet_EndUserSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata attached to the connection\").nullable().optional(),\n provider: z.string().describe(\"Provider/integration name\").nullable(),\n connection_id: z.string().describe(\"The connection ID provided when creating the connection\").nullable(),\n provider_config_key: z.string().describe(\"Integration/provider configuration key (unique key)\").nullable(),\n}).describe(\"Represents a Nango connection object (without credentials).\");\nexport const NangoConnectionGetOutput = z.object({\n connections: z.array(NangoConnectionGet_ConnectionSchema).describe(\"List of connection objects without credentials\"),\n}).describe(\"Response model for listing Nango connections.\\nNote: This endpoint returns connections WITHOUT credentials.\\nUse 'Get Connection Details' to retrieve credentials for a specific connection.\");\n\nexport const nangoConnectionGet = action(\"NANGO_CONNECTION_GET\", {\n slug: \"nango-connection-get\",\n name: \"List Connections\",\n description: \"List all Nango connections without credentials. Use this to discover available connections, check connection status, and find connection IDs. Omitting all filters returns every connection across all integrations; use `connection_id`, `end_user_id`, or `end_user_organization_id` to narrow results. To retrieve credentials for a specific connection, use the 'Get Connection Details' action.\",\n input: NangoConnectionGetInput,\n output: NangoConnectionGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACtH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC1E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACpJ,0BAA0B,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,mGAAmG;AAC/G,MAAM,2CAA2C,EAAE,OAAO;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,mCAAmC,EAAE,OAAO;CAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,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AAC,SAAS,8LAOF;AACV,CAAC"}
@@ -18,8 +18,8 @@ const NangoCreateConnectSessionInput = zod.z.object({
18
18
  integrations_config_defaults: zod.z.object({}).describe("Default configuration settings for integrations, keyed by integration unique name.").optional()
19
19
  }).describe("Request model for creating a new connect session.");
20
20
  const NangoCreateConnectSession_ConnectSessionDataSchema = zod.z.object({
21
- token: zod.z.string().describe("The connect session token used for authentication."),
22
- expires_at: zod.z.string().describe("ISO 8601 timestamp indicating when the session token expires (typically 30 minutes from creation)."),
21
+ token: zod.z.string().describe("The connect session token used for authentication.").nullable(),
22
+ expires_at: zod.z.string().describe("ISO 8601 timestamp indicating when the session token expires (typically 30 minutes from creation).").nullable(),
23
23
  connect_link: zod.z.string().describe("Direct URL to connect the user to the integration. Can be used as a magic link.").nullable().optional()
24
24
  }).describe("Data object containing the connect session details.");
25
25
  const NangoCreateConnectSessionOutput = zod.z.object({ data: NangoCreateConnectSession_ConnectSessionDataSchema.nullable() }).describe("Response model for creating a connect session.");
@@ -1 +1 @@
1
- {"version":3,"file":"create-connect-session.cjs","names":["z","action"],"sources":["../../src/actions/create-connect-session.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoCreateConnectSessionInput: z.ZodTypeAny = z.object({\n tags: z.object({}).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.object({}).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.object({}).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.object({}).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.ZodTypeAny = z.object({\n token: z.string().describe(\"The connect session token used for authentication.\"),\n expires_at: z.string().describe(\"ISO 8601 timestamp indicating when the session token expires (typically 30 minutes from creation).\"),\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}).describe(\"Data object containing the connect session details.\");\nexport const NangoCreateConnectSessionOutput: z.ZodTypeAny = z.object({\n data: NangoCreateConnectSession_ConnectSessionDataSchema.nullable(),\n}).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,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CACtJ,UAAUA,IAAAA,EAAE,OAAO;EACnB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;EAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;EACtJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACtE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC/E,CAAC,CAAC,CAAC,SAAS,0DAA0D;CACpE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CACnH,cAAcA,IAAAA,EAAE,OAAO;EACvB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;EACzF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACnF,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxE,sBAAsBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CACtK,8BAA8BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;AACrJ,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,qDAAmEA,IAAAA,EAAE,OAAO;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAC/E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG;CACpI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3I,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,kCAAgDA,IAAAA,EAAE,OAAO,EACpE,MAAM,mDAAmD,SAAS,EACpE,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-connect-session.cjs","names":["z","action"],"sources":["../../src/actions/create-connect-session.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoCreateConnectSessionInput = z.object({\n tags: z.object({}).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.object({}).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.object({}).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.object({}).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}).describe(\"Data object containing the connect session details.\");\nexport const NangoCreateConnectSessionOutput = z.object({\n data: NangoCreateConnectSession_ConnectSessionDataSchema.nullable(),\n}).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":";;;AA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oG,CAAC,CAAC,SAAS;CAC/I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3I,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,MAAM,mDAAmD,SAAS,EACpE,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,45 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-connect-session.d.ts
4
- declare const NangoCreateConnectSessionInput: z.ZodTypeAny;
5
- declare const NangoCreateConnectSessionOutput: z.ZodTypeAny;
6
- declare const nangoCreateConnectSession: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NangoCreateConnectSessionInput: z.ZodObject<{
5
+ tags: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
6
+ end_user: z.ZodObject<{
7
+ id: z.ZodString;
8
+ tags: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
9
+ email: z.ZodOptional<z.ZodString>;
10
+ display_name: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strip>;
12
+ overrides: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
13
+ organization: z.ZodOptional<z.ZodObject<{
14
+ id: z.ZodString;
15
+ display_name: z.ZodOptional<z.ZodString>;
16
+ }, z.core.$strip>>;
17
+ allowed_integrations: z.ZodOptional<z.ZodArray<z.ZodString>>;
18
+ integrations_config_defaults: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
19
+ }, z.core.$strip>;
20
+ declare const NangoCreateConnectSessionOutput: z.ZodObject<{
21
+ data: z.ZodNullable<z.ZodObject<{
22
+ token: z.ZodNullable<z.ZodString>;
23
+ expires_at: z.ZodNullable<z.ZodString>;
24
+ connect_link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ }, z.core.$strip>>;
26
+ }, z.core.$strip>;
27
+ declare const nangoCreateConnectSession: import("@keystrokehq/action").WorkflowActionDefinition<{
28
+ end_user: {
29
+ id: string;
30
+ tags?: Record<string, never> | undefined;
31
+ email?: string | undefined;
32
+ display_name?: string | undefined;
33
+ };
34
+ tags?: Record<string, never> | undefined;
35
+ overrides?: Record<string, never> | undefined;
36
+ organization?: {
37
+ id: string;
38
+ display_name?: string | undefined;
39
+ } | undefined;
40
+ allowed_integrations?: string[] | undefined;
41
+ integrations_config_defaults?: Record<string, never> | undefined;
42
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
43
  //#endregion
8
44
  export { nangoCreateConnectSession };
9
45
  //# sourceMappingURL=create-connect-session.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-connect-session.d.cts","names":[],"sources":["../../src/actions/create-connect-session.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAeiB;AAAA,cAMnD,+BAAA,EAAiC,CAAA,CAAE,UAEa;AAAA,cAEhD,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-connect-session.d.cts","names":[],"sources":["../../src/actions/create-connect-session.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAqB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cAI/B,yBAAA,gCAAyB,wBAAA"}
@@ -1,9 +1,45 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-connect-session.d.ts
4
- declare const NangoCreateConnectSessionInput: z.ZodTypeAny;
5
- declare const NangoCreateConnectSessionOutput: z.ZodTypeAny;
6
- declare const nangoCreateConnectSession: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NangoCreateConnectSessionInput: z.ZodObject<{
5
+ tags: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
6
+ end_user: z.ZodObject<{
7
+ id: z.ZodString;
8
+ tags: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
9
+ email: z.ZodOptional<z.ZodString>;
10
+ display_name: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strip>;
12
+ overrides: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
13
+ organization: z.ZodOptional<z.ZodObject<{
14
+ id: z.ZodString;
15
+ display_name: z.ZodOptional<z.ZodString>;
16
+ }, z.core.$strip>>;
17
+ allowed_integrations: z.ZodOptional<z.ZodArray<z.ZodString>>;
18
+ integrations_config_defaults: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
19
+ }, z.core.$strip>;
20
+ declare const NangoCreateConnectSessionOutput: z.ZodObject<{
21
+ data: z.ZodNullable<z.ZodObject<{
22
+ token: z.ZodNullable<z.ZodString>;
23
+ expires_at: z.ZodNullable<z.ZodString>;
24
+ connect_link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ }, z.core.$strip>>;
26
+ }, z.core.$strip>;
27
+ declare const nangoCreateConnectSession: import("@keystrokehq/action").WorkflowActionDefinition<{
28
+ end_user: {
29
+ id: string;
30
+ tags?: Record<string, never> | undefined;
31
+ email?: string | undefined;
32
+ display_name?: string | undefined;
33
+ };
34
+ tags?: Record<string, never> | undefined;
35
+ overrides?: Record<string, never> | undefined;
36
+ organization?: {
37
+ id: string;
38
+ display_name?: string | undefined;
39
+ } | undefined;
40
+ allowed_integrations?: string[] | undefined;
41
+ integrations_config_defaults?: Record<string, never> | undefined;
42
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
43
  //#endregion
8
44
  export { nangoCreateConnectSession };
9
45
  //# 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":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAeiB;AAAA,cAMnD,+BAAA,EAAiC,CAAA,CAAE,UAEa;AAAA,cAEhD,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-connect-session.d.mts","names":[],"sources":["../../src/actions/create-connect-session.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAqB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cAI/B,yBAAA,gCAAyB,wBAAA"}
@@ -18,8 +18,8 @@ const NangoCreateConnectSessionInput = z.object({
18
18
  integrations_config_defaults: z.object({}).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
24
  }).describe("Data object containing the connect session details.");
25
25
  const nangoCreateConnectSession = action("NANGO_CREATE_CONNECT_SESSION", {
@@ -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.ZodTypeAny = z.object({\n tags: z.object({}).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.object({}).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.object({}).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.object({}).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.ZodTypeAny = z.object({\n token: z.string().describe(\"The connect session token used for authentication.\"),\n expires_at: z.string().describe(\"ISO 8601 timestamp indicating when the session token expires (typically 30 minutes from creation).\"),\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}).describe(\"Data object containing the connect session details.\");\nexport const NangoCreateConnectSessionOutput: z.ZodTypeAny = z.object({\n data: NangoCreateConnectSession_ConnectSessionDataSchema.nullable(),\n}).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.\",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3I,CAAC,CAAC,CAAC,SAAS,qDAAqD;AAKjE,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT2D,EAAE,OAAO,EACpE,MAAM,mDAAmD,SAAS,EACpE,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
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.object({}).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.object({}).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.object({}).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.object({}).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}).describe(\"Data object containing the connect session details.\");\nexport const NangoCreateConnectSessionOutput = z.object({\n data: NangoCreateConnectSession_ConnectSessionDataSchema.nullable(),\n}).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,CAAC,CAAC,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CACtJ,UAAU,EAAE,OAAO;EACnB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;EAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;EACtJ,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,CAAC,CAAC,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CACnH,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,CAAC,CAAC,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;AACrJ,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,SAAS,qDAAqD;AAKjE,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT6C,EAAE,OAAO,EACtD,MAAM,mDAAmD,SAAS,EACpE,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
@@ -31,11 +31,11 @@ const NangoCreateIntegrationInput = zod.z.object({
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
40
  }).describe("Response data for a created integration.");
41
41
  const NangoCreateIntegrationOutput = zod.z.object({ data: NangoCreateIntegration_IntegrationDataSchema.nullable() }).describe("Response model for creating an 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: z.ZodTypeAny = 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}).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}).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}).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.ZodTypeAny = z.object({\n logo: z.string().describe(\"URL to the provider's logo.\").nullable().optional(),\n provider: z.string().describe(\"Provider name.\"),\n created_at: z.string().describe(\"Integration creation timestamp in ISO 8601 format.\"),\n unique_key: z.string().describe(\"The unique integration identifier.\"),\n updated_at: z.string().describe(\"Integration last update timestamp in ISO 8601 format.\"),\n display_name: z.string().describe(\"Display name of the integration.\"),\n forward_webhooks: z.boolean().describe(\"Whether webhooks should be forwarded for this integration.\").nullable().optional(),\n}).describe(\"Response data for a created integration.\");\nexport const NangoCreateIntegrationOutput: z.ZodTypeAny = z.object({\n data: NangoCreateIntegration_IntegrationDataSchema.nullable(),\n}).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,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,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,CA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AAoC;CACpE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACvF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CACpE,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,EACjE,MAAM,6CAA6C,SAAS,EAC9D,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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}).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}).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}).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}).describe(\"Response data for a created integration.\");\nexport const NangoCreateIntegrationOutput = z.object({\n data: NangoCreateIntegration_IntegrationDataSchema.nullable(),\n}).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,IAAA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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,SAAS,0CAA0C;AACtD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,MAAM,6CAA6C,SAAS,EAC9D,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,65 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-integration.d.ts
4
- declare const NangoCreateIntegrationInput: z.ZodTypeAny;
5
- declare const NangoCreateIntegrationOutput: z.ZodTypeAny;
6
- declare const nangoCreateIntegration: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
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.$strip>, z.ZodObject<{
14
+ type: z.ZodString;
15
+ app_id: z.ZodString;
16
+ app_link: z.ZodString;
17
+ private_key: z.ZodString;
18
+ }, z.core.$strip>, 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.$strip>]>>;
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.$strip>>;
38
+ }, z.core.$strip>;
39
+ declare const nangoCreateIntegration: import("@keystrokehq/action").WorkflowActionDefinition<{
40
+ provider: string;
41
+ unique_key: string;
42
+ credentials?: {
43
+ type: string;
44
+ client_id: string;
45
+ client_secret: string;
46
+ scopes?: string | string[] | null | undefined;
47
+ webhook_secret?: string | null | undefined;
48
+ } | {
49
+ type: string;
50
+ app_id: string;
51
+ app_link: string;
52
+ private_key: string;
53
+ } | {
54
+ type: string;
55
+ app_id: string;
56
+ app_link: string;
57
+ client_id: string;
58
+ private_key: string;
59
+ client_secret: string;
60
+ } | undefined;
61
+ display_name?: string | undefined;
62
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
63
  //#endregion
8
64
  export { nangoCreateIntegration };
9
65
  //# 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,EAA6B,CAAA,CAAE,UAuBsB;AAAA,cAUrD,4BAAA,EAA8B,CAAA,CAAE,UAEa;AAAA,cAE7C,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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,65 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-integration.d.ts
4
- declare const NangoCreateIntegrationInput: z.ZodTypeAny;
5
- declare const NangoCreateIntegrationOutput: z.ZodTypeAny;
6
- declare const nangoCreateIntegration: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
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.$strip>, z.ZodObject<{
14
+ type: z.ZodString;
15
+ app_id: z.ZodString;
16
+ app_link: z.ZodString;
17
+ private_key: z.ZodString;
18
+ }, z.core.$strip>, 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.$strip>]>>;
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.$strip>>;
38
+ }, z.core.$strip>;
39
+ declare const nangoCreateIntegration: import("@keystrokehq/action").WorkflowActionDefinition<{
40
+ provider: string;
41
+ unique_key: string;
42
+ credentials?: {
43
+ type: string;
44
+ client_id: string;
45
+ client_secret: string;
46
+ scopes?: string | string[] | null | undefined;
47
+ webhook_secret?: string | null | undefined;
48
+ } | {
49
+ type: string;
50
+ app_id: string;
51
+ app_link: string;
52
+ private_key: string;
53
+ } | {
54
+ type: string;
55
+ app_id: string;
56
+ app_link: string;
57
+ client_id: string;
58
+ private_key: string;
59
+ client_secret: string;
60
+ } | undefined;
61
+ display_name?: string | undefined;
62
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
63
  //#endregion
8
64
  export { nangoCreateIntegration };
9
65
  //# 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,EAA6B,CAAA,CAAE,UAuBsB;AAAA,cAUrD,4BAAA,EAA8B,CAAA,CAAE,UAEa;AAAA,cAE7C,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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"}
@@ -31,11 +31,11 @@ const NangoCreateIntegrationInput = z.object({
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
40
  }).describe("Response data for a created integration.");
41
41
  const nangoCreateIntegration = action("NANGO_CREATE_INTEGRATION", {
@@ -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.ZodTypeAny = 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}).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}).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}).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.ZodTypeAny = z.object({\n logo: z.string().describe(\"URL to the provider's logo.\").nullable().optional(),\n provider: z.string().describe(\"Provider name.\"),\n created_at: z.string().describe(\"Integration creation timestamp in ISO 8601 format.\"),\n unique_key: z.string().describe(\"The unique integration identifier.\"),\n updated_at: z.string().describe(\"Integration last update timestamp in ISO 8601 format.\"),\n display_name: z.string().describe(\"Display name of the integration.\"),\n forward_webhooks: z.boolean().describe(\"Whether webhooks should be forwarded for this integration.\").nullable().optional(),\n}).describe(\"Response data for a created integration.\");\nexport const NangoCreateIntegrationOutput: z.ZodTypeAny = z.object({\n data: NangoCreateIntegration_IntegrationDataSchema.nullable(),\n}).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,8BAA4C,EAAE,OAAO;CAChE,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,SAAS,2CAA2C;EAAG,EAAE,OAAO;GACjE,MAAM,EAAE,OAAO,CAAC,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AAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwD,EAAE,OAAO,EACjE,MAAM,6CAA6C,SAAS,EAC9D,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
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}).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}).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}).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}).describe(\"Response data for a created integration.\");\nexport const NangoCreateIntegrationOutput = z.object({\n data: NangoCreateIntegration_IntegrationDataSchema.nullable(),\n}).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,SAA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AC,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,SAAS,0CAA0C;AAKtD,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT0C,EAAE,OAAO,EACnD,MAAM,6CAA6C,SAAS,EAC9D,CAAC,CAAC,CAAC,SAAS,6CAOF;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() }).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",