@keystrokehq/nango 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) 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 +1 -1
  4. package/dist/actions/action-trigger-post.cjs.map +1 -1
  5. package/dist/actions/action-trigger-post.d.cts +15 -3
  6. package/dist/actions/action-trigger-post.d.cts.map +1 -1
  7. package/dist/actions/action-trigger-post.d.mts +15 -3
  8. package/dist/actions/action-trigger-post.d.mts.map +1 -1
  9. package/dist/actions/action-trigger-post.mjs +1 -1
  10. package/dist/actions/action-trigger-post.mjs.map +1 -1
  11. package/dist/actions/add-connection.cjs +30 -30
  12. package/dist/actions/add-connection.cjs.map +1 -1
  13. package/dist/actions/add-connection.d.cts +122 -3
  14. package/dist/actions/add-connection.d.cts.map +1 -1
  15. package/dist/actions/add-connection.d.mts +122 -3
  16. package/dist/actions/add-connection.d.mts.map +1 -1
  17. package/dist/actions/add-connection.mjs +30 -30
  18. package/dist/actions/add-connection.mjs.map +1 -1
  19. package/dist/actions/connection-get.cjs +10 -10
  20. package/dist/actions/connection-get.cjs.map +1 -1
  21. package/dist/actions/connection-get.d.cts +36 -3
  22. package/dist/actions/connection-get.d.cts.map +1 -1
  23. package/dist/actions/connection-get.d.mts +36 -3
  24. package/dist/actions/connection-get.d.mts.map +1 -1
  25. package/dist/actions/connection-get.mjs +10 -10
  26. package/dist/actions/connection-get.mjs.map +1 -1
  27. package/dist/actions/create-connect-session.cjs +8 -8
  28. package/dist/actions/create-connect-session.cjs.map +1 -1
  29. package/dist/actions/create-connect-session.d.cts +39 -3
  30. package/dist/actions/create-connect-session.d.cts.map +1 -1
  31. package/dist/actions/create-connect-session.d.mts +39 -3
  32. package/dist/actions/create-connect-session.d.mts.map +1 -1
  33. package/dist/actions/create-connect-session.mjs +8 -8
  34. package/dist/actions/create-connect-session.mjs.map +1 -1
  35. package/dist/actions/create-integration.cjs +10 -10
  36. package/dist/actions/create-integration.cjs.map +1 -1
  37. package/dist/actions/create-integration.d.cts +62 -3
  38. package/dist/actions/create-integration.d.cts.map +1 -1
  39. package/dist/actions/create-integration.d.mts +62 -3
  40. package/dist/actions/create-integration.d.mts.map +1 -1
  41. package/dist/actions/create-integration.mjs +10 -10
  42. package/dist/actions/create-integration.mjs.map +1 -1
  43. package/dist/actions/delete-connection.cjs +1 -1
  44. package/dist/actions/delete-connection.cjs.map +1 -1
  45. package/dist/actions/delete-connection.d.cts +11 -3
  46. package/dist/actions/delete-connection.d.cts.map +1 -1
  47. package/dist/actions/delete-connection.d.mts +11 -3
  48. package/dist/actions/delete-connection.d.mts.map +1 -1
  49. package/dist/actions/delete-connection.mjs +1 -1
  50. package/dist/actions/delete-connection.mjs.map +1 -1
  51. package/dist/actions/delete-integration.cjs +1 -1
  52. package/dist/actions/delete-integration.cjs.map +1 -1
  53. package/dist/actions/delete-integration.d.cts +9 -3
  54. package/dist/actions/delete-integration.d.cts.map +1 -1
  55. package/dist/actions/delete-integration.d.mts +9 -3
  56. package/dist/actions/delete-integration.d.mts.map +1 -1
  57. package/dist/actions/delete-integration.mjs +1 -1
  58. package/dist/actions/delete-integration.mjs.map +1 -1
  59. package/dist/actions/edit-connection.cjs +3 -3
  60. package/dist/actions/edit-connection.cjs.map +1 -1
  61. package/dist/actions/edit-connection.d.cts +25 -3
  62. package/dist/actions/edit-connection.d.cts.map +1 -1
  63. package/dist/actions/edit-connection.d.mts +25 -3
  64. package/dist/actions/edit-connection.d.mts.map +1 -1
  65. package/dist/actions/edit-connection.mjs +3 -3
  66. package/dist/actions/edit-connection.mjs.map +1 -1
  67. package/dist/actions/get-connection.cjs +19 -19
  68. package/dist/actions/get-connection.cjs.map +1 -1
  69. package/dist/actions/get-connection.d.cts +38 -3
  70. package/dist/actions/get-connection.d.cts.map +1 -1
  71. package/dist/actions/get-connection.d.mts +38 -3
  72. package/dist/actions/get-connection.d.mts.map +1 -1
  73. package/dist/actions/get-connection.mjs +19 -19
  74. package/dist/actions/get-connection.mjs.map +1 -1
  75. package/dist/actions/get-environment-variables.cjs +4 -4
  76. package/dist/actions/get-environment-variables.cjs.map +1 -1
  77. package/dist/actions/get-environment-variables.d.cts +8 -3
  78. package/dist/actions/get-environment-variables.d.cts.map +1 -1
  79. package/dist/actions/get-environment-variables.d.mts +8 -3
  80. package/dist/actions/get-environment-variables.d.mts.map +1 -1
  81. package/dist/actions/get-environment-variables.mjs +4 -4
  82. package/dist/actions/get-environment-variables.mjs.map +1 -1
  83. package/dist/actions/get-integration.cjs +8 -8
  84. package/dist/actions/get-integration.cjs.map +1 -1
  85. package/dist/actions/get-integration.d.cts +26 -3
  86. package/dist/actions/get-integration.d.cts.map +1 -1
  87. package/dist/actions/get-integration.d.mts +26 -3
  88. package/dist/actions/get-integration.d.mts.map +1 -1
  89. package/dist/actions/get-integration.mjs +8 -8
  90. package/dist/actions/get-integration.mjs.map +1 -1
  91. package/dist/actions/get-proxy.cjs +5 -5
  92. package/dist/actions/get-proxy.cjs.map +1 -1
  93. package/dist/actions/get-proxy.d.cts +28 -3
  94. package/dist/actions/get-proxy.d.cts.map +1 -1
  95. package/dist/actions/get-proxy.d.mts +28 -3
  96. package/dist/actions/get-proxy.d.mts.map +1 -1
  97. package/dist/actions/get-proxy.mjs +5 -5
  98. package/dist/actions/get-proxy.mjs.map +1 -1
  99. package/dist/actions/get-sync-status.cjs +8 -8
  100. package/dist/actions/get-sync-status.cjs.map +1 -1
  101. package/dist/actions/get-sync-status.d.cts +35 -3
  102. package/dist/actions/get-sync-status.d.cts.map +1 -1
  103. package/dist/actions/get-sync-status.d.mts +35 -3
  104. package/dist/actions/get-sync-status.d.mts.map +1 -1
  105. package/dist/actions/get-sync-status.mjs +8 -8
  106. package/dist/actions/get-sync-status.mjs.map +1 -1
  107. package/dist/actions/list-connections.cjs +14 -14
  108. package/dist/actions/list-connections.cjs.map +1 -1
  109. package/dist/actions/list-connections.d.cts +39 -3
  110. package/dist/actions/list-connections.d.cts.map +1 -1
  111. package/dist/actions/list-connections.d.mts +39 -3
  112. package/dist/actions/list-connections.d.mts.map +1 -1
  113. package/dist/actions/list-connections.mjs +14 -14
  114. package/dist/actions/list-connections.mjs.map +1 -1
  115. package/dist/actions/list-integrations.cjs +7 -7
  116. package/dist/actions/list-integrations.cjs.map +1 -1
  117. package/dist/actions/list-integrations.d.cts +12 -3
  118. package/dist/actions/list-integrations.d.cts.map +1 -1
  119. package/dist/actions/list-integrations.d.mts +12 -3
  120. package/dist/actions/list-integrations.d.mts.map +1 -1
  121. package/dist/actions/list-integrations.mjs +7 -7
  122. package/dist/actions/list-integrations.mjs.map +1 -1
  123. package/dist/actions/providers-get-get.cjs +4 -4
  124. package/dist/actions/providers-get-get.cjs.map +1 -1
  125. package/dist/actions/providers-get-get.d.cts +21 -3
  126. package/dist/actions/providers-get-get.d.cts.map +1 -1
  127. package/dist/actions/providers-get-get.d.mts +21 -3
  128. package/dist/actions/providers-get-get.d.mts.map +1 -1
  129. package/dist/actions/providers-get-get.mjs +4 -4
  130. package/dist/actions/providers-get-get.mjs.map +1 -1
  131. package/dist/actions/providers-list-get.cjs +4 -4
  132. package/dist/actions/providers-list-get.cjs.map +1 -1
  133. package/dist/actions/providers-list-get.d.cts +13 -3
  134. package/dist/actions/providers-list-get.d.cts.map +1 -1
  135. package/dist/actions/providers-list-get.d.mts +13 -3
  136. package/dist/actions/providers-list-get.d.mts.map +1 -1
  137. package/dist/actions/providers-list-get.mjs +4 -4
  138. package/dist/actions/providers-list-get.mjs.map +1 -1
  139. package/dist/actions/put-proxy.cjs +4 -4
  140. package/dist/actions/put-proxy.cjs.map +1 -1
  141. package/dist/actions/put-proxy.d.cts +23 -3
  142. package/dist/actions/put-proxy.d.cts.map +1 -1
  143. package/dist/actions/put-proxy.d.mts +23 -3
  144. package/dist/actions/put-proxy.d.mts.map +1 -1
  145. package/dist/actions/put-proxy.mjs +4 -4
  146. package/dist/actions/put-proxy.mjs.map +1 -1
  147. package/dist/actions/reconnect-session-post.cjs +8 -8
  148. package/dist/actions/reconnect-session-post.cjs.map +1 -1
  149. package/dist/actions/reconnect-session-post.d.cts +41 -3
  150. package/dist/actions/reconnect-session-post.d.cts.map +1 -1
  151. package/dist/actions/reconnect-session-post.d.mts +41 -3
  152. package/dist/actions/reconnect-session-post.d.mts.map +1 -1
  153. package/dist/actions/reconnect-session-post.mjs +8 -8
  154. package/dist/actions/reconnect-session-post.mjs.map +1 -1
  155. package/dist/actions/scripts-config-get.cjs +13 -13
  156. package/dist/actions/scripts-config-get.cjs.map +1 -1
  157. package/dist/actions/scripts-config-get.d.cts +53 -3
  158. package/dist/actions/scripts-config-get.d.cts.map +1 -1
  159. package/dist/actions/scripts-config-get.d.mts +53 -3
  160. package/dist/actions/scripts-config-get.d.mts.map +1 -1
  161. package/dist/actions/scripts-config-get.mjs +13 -13
  162. package/dist/actions/scripts-config-get.mjs.map +1 -1
  163. package/dist/actions/set-connection-metadata.cjs +4 -4
  164. package/dist/actions/set-connection-metadata.cjs.map +1 -1
  165. package/dist/actions/set-connection-metadata.d.cts +15 -3
  166. package/dist/actions/set-connection-metadata.d.cts.map +1 -1
  167. package/dist/actions/set-connection-metadata.d.mts +15 -3
  168. package/dist/actions/set-connection-metadata.d.mts.map +1 -1
  169. package/dist/actions/set-connection-metadata.mjs +4 -4
  170. package/dist/actions/set-connection-metadata.mjs.map +1 -1
  171. package/dist/actions/sync-trigger-post.cjs +1 -1
  172. package/dist/actions/sync-trigger-post.cjs.map +1 -1
  173. package/dist/actions/sync-trigger-post.d.cts +19 -3
  174. package/dist/actions/sync-trigger-post.d.cts.map +1 -1
  175. package/dist/actions/sync-trigger-post.d.mts +19 -3
  176. package/dist/actions/sync-trigger-post.d.mts.map +1 -1
  177. package/dist/actions/sync-trigger-post.mjs +1 -1
  178. package/dist/actions/sync-trigger-post.mjs.map +1 -1
  179. package/dist/actions/update-connection-metadata.cjs +4 -4
  180. package/dist/actions/update-connection-metadata.cjs.map +1 -1
  181. package/dist/actions/update-connection-metadata.d.cts +15 -3
  182. package/dist/actions/update-connection-metadata.d.cts.map +1 -1
  183. package/dist/actions/update-connection-metadata.d.mts +15 -3
  184. package/dist/actions/update-connection-metadata.d.mts.map +1 -1
  185. package/dist/actions/update-connection-metadata.mjs +4 -4
  186. package/dist/actions/update-connection-metadata.mjs.map +1 -1
  187. package/dist/actions/update-integration.cjs +10 -10
  188. package/dist/actions/update-integration.cjs.map +1 -1
  189. package/dist/actions/update-integration.d.cts +61 -3
  190. package/dist/actions/update-integration.d.cts.map +1 -1
  191. package/dist/actions/update-integration.d.mts +61 -3
  192. package/dist/actions/update-integration.d.mts.map +1 -1
  193. package/dist/actions/update-integration.mjs +10 -10
  194. package/dist/actions/update-integration.mjs.map +1 -1
  195. package/dist/catalog.cjs +7 -1
  196. package/dist/catalog.cjs.map +1 -1
  197. package/dist/catalog.d.cts +8 -0
  198. package/dist/catalog.d.mts +8 -0
  199. package/dist/catalog.mjs +7 -1
  200. package/dist/catalog.mjs.map +1 -1
  201. package/package.json +2 -2
@@ -2,17 +2,17 @@ const require_action = require("../action.cjs");
2
2
  let zod = require("zod");
3
3
  //#region src/actions/edit-connection.ts
4
4
  const NangoEditConnectionInput = zod.z.object({
5
- tags: zod.z.object({}).describe("Connection tags (key/value strings). Keys are normalized to lowercase. Max value length: 255 characters.").optional(),
5
+ tags: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Connection tags (key/value strings). Keys are normalized to lowercase. Max value length: 255 characters.").optional(),
6
6
  end_user: zod.z.object({
7
7
  id: zod.z.string().describe("End user ID (required when updating end user)"),
8
- tags: zod.z.object({}).describe("Tags associated with the end user").optional(),
8
+ tags: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Tags associated with the end user").optional(),
9
9
  email: zod.z.string().describe("End user email address").optional(),
10
10
  display_name: zod.z.string().describe("End user display name").optional()
11
11
  }).describe("End user information to update on the connection.\nDeprecated - use tags instead for new implementations.").optional(),
12
12
  connection_id: zod.z.string().describe("The connection ID used to create the connection"),
13
13
  provider_config_key: zod.z.string().describe("The integration ID used to create the connection (aka Unique Key)")
14
14
  }).describe("Request model for editing a Nango connection's tags and metadata.");
15
- const NangoEditConnectionOutput = zod.z.object({ success: zod.z.boolean().describe("Whether the connection was successfully updated") }).describe("Response model for editing a Nango connection.");
15
+ const NangoEditConnectionOutput = zod.z.object({ success: zod.z.boolean().describe("Whether the connection was successfully updated").nullable() }).passthrough().describe("Response model for editing a Nango connection.");
16
16
  const nangoEditConnection = require_action.action("NANGO_EDIT_CONNECTION", {
17
17
  slug: "nango-edit-connection",
18
18
  name: "Edit Connection",
@@ -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.ZodTypeAny = z.object({\n tags: z.object({}).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.object({}).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.ZodTypeAny = z.object({\n success: z.boolean().describe(\"Whether the connection was successfully updated\"),\n}).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":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACjJ,UAAUA,IAAAA,EAAE,OAAO;EACnB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC1E,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,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,EACjF,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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":";;;AAIA,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,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,31 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/edit-connection.d.ts
4
- declare const NangoEditConnectionInput: z.ZodTypeAny;
5
- declare const NangoEditConnectionOutput: z.ZodTypeAny;
6
- declare const nangoEditConnection: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NangoEditConnectionInput: z.ZodObject<{
5
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6
+ end_user: z.ZodOptional<z.ZodObject<{
7
+ id: z.ZodString;
8
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9
+ email: z.ZodOptional<z.ZodString>;
10
+ display_name: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strip>>;
12
+ connection_id: z.ZodString;
13
+ provider_config_key: z.ZodString;
14
+ }, z.core.$strip>;
15
+ declare const NangoEditConnectionOutput: z.ZodObject<{
16
+ success: z.ZodNullable<z.ZodBoolean>;
17
+ }, z.core.$loose>;
18
+ declare const nangoEditConnection: import("@keystrokehq/action").WorkflowActionDefinition<{
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]>;
7
29
  //#endregion
8
30
  export { nangoEditConnection };
9
31
  //# sourceMappingURL=edit-connection.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"edit-connection.d.cts","names":[],"sources":["../../src/actions/edit-connection.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAUuC;AAAA,cACnE,yBAAA,EAA2B,CAAA,CAAE,UAEmB;AAAA,cAEhD,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"edit-connection.d.cts","names":[],"sources":["../../src/actions/edit-connection.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAIzB,mBAAA,gCAAmB,wBAAA;;;SAM9B,MAAA;;;WAAA,MAAA"}
@@ -1,9 +1,31 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/edit-connection.d.ts
4
- declare const NangoEditConnectionInput: z.ZodTypeAny;
5
- declare const NangoEditConnectionOutput: z.ZodTypeAny;
6
- declare const nangoEditConnection: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NangoEditConnectionInput: z.ZodObject<{
5
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6
+ end_user: z.ZodOptional<z.ZodObject<{
7
+ id: z.ZodString;
8
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9
+ email: z.ZodOptional<z.ZodString>;
10
+ display_name: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strip>>;
12
+ connection_id: z.ZodString;
13
+ provider_config_key: z.ZodString;
14
+ }, z.core.$strip>;
15
+ declare const NangoEditConnectionOutput: z.ZodObject<{
16
+ success: z.ZodNullable<z.ZodBoolean>;
17
+ }, z.core.$loose>;
18
+ declare const nangoEditConnection: import("@keystrokehq/action").WorkflowActionDefinition<{
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]>;
7
29
  //#endregion
8
30
  export { nangoEditConnection };
9
31
  //# sourceMappingURL=edit-connection.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"edit-connection.d.mts","names":[],"sources":["../../src/actions/edit-connection.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAUuC;AAAA,cACnE,yBAAA,EAA2B,CAAA,CAAE,UAEmB;AAAA,cAEhD,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"edit-connection.d.mts","names":[],"sources":["../../src/actions/edit-connection.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAIzB,mBAAA,gCAAmB,wBAAA;;;SAM9B,MAAA;;;WAAA,MAAA"}
@@ -5,17 +5,17 @@ const nangoEditConnection = action("NANGO_EDIT_CONNECTION", {
5
5
  name: "Edit Connection",
6
6
  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.",
7
7
  input: z.object({
8
- tags: z.object({}).describe("Connection tags (key/value strings). Keys are normalized to lowercase. Max value length: 255 characters.").optional(),
8
+ tags: z.record(z.string(), z.unknown()).describe("Connection tags (key/value strings). Keys are normalized to lowercase. Max value length: 255 characters.").optional(),
9
9
  end_user: z.object({
10
10
  id: z.string().describe("End user ID (required when updating end user)"),
11
- tags: z.object({}).describe("Tags associated with the end user").optional(),
11
+ tags: z.record(z.string(), z.unknown()).describe("Tags associated with the end user").optional(),
12
12
  email: z.string().describe("End user email address").optional(),
13
13
  display_name: z.string().describe("End user display name").optional()
14
14
  }).describe("End user information to update on the connection.\nDeprecated - use tags instead for new implementations.").optional(),
15
15
  connection_id: z.string().describe("The connection ID used to create the connection"),
16
16
  provider_config_key: z.string().describe("The integration ID used to create the connection (aka Unique Key)")
17
17
  }).describe("Request model for editing a Nango connection's tags and metadata."),
18
- output: z.object({ success: z.boolean().describe("Whether the connection was successfully updated") }).describe("Response model for editing a Nango connection.")
18
+ output: z.object({ success: z.boolean().describe("Whether the connection was successfully updated").nullable() }).passthrough().describe("Response model for editing a Nango connection.")
19
19
  });
20
20
  //#endregion
21
21
  export { nangoEditConnection };
@@ -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.ZodTypeAny = z.object({\n tags: z.object({}).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.object({}).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.ZodTypeAny = z.object({\n success: z.boolean().describe(\"Whether the connection was successfully updated\"),\n}).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":";;AAmBA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnBoD,EAAE,OAAO;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;EACjJ,UAAU,EAAE,OAAO;GACnB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;GACvE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;GAC1E,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,mEASH;CACP,QATqD,EAAE,OAAO,EAC9D,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,EACjF,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
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":";;AAmBA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnBsC,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,mEASH;CACP,QATuC,EAAE,OAAO,EAChD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,EAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
@@ -9,31 +9,31 @@ const NangoGetConnectionInput = zod.z.object({
9
9
  refresh_github_app_jwt_token: zod.z.boolean().describe("If true, this will refresh the JWT token for GitHub App / GitHub App OAuth connections.").optional()
10
10
  }).describe("Request model for retrieving a specific connection with credentials.");
11
11
  const NangoGetConnection_ConnectionErrorSchema = zod.z.object({
12
- type: zod.z.string().describe("Error type identifier"),
13
- log_id: zod.z.string().describe("Associated log ID for debugging")
14
- }).describe("Represents an error associated with a connection.");
12
+ type: zod.z.string().describe("Error type identifier").nullable(),
13
+ log_id: zod.z.string().describe("Associated log ID for debugging").nullable()
14
+ }).passthrough().describe("Represents an error associated with a connection.");
15
15
  const NangoGetConnection_EndUserSchema = zod.z.object({
16
- id: zod.z.string().describe("End user ID"),
17
- tags: zod.z.object({}).describe("Tags associated with the end user").nullable().optional(),
16
+ id: zod.z.string().describe("End user ID").nullable(),
17
+ tags: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Tags associated with the end user").nullable().optional(),
18
18
  email: zod.z.string().describe("End user email").nullable().optional(),
19
19
  display_name: zod.z.string().describe("End user display name").nullable().optional(),
20
- organization: zod.z.object({}).describe("Organization details").nullable().optional()
21
- }).describe("End user information associated with a connection.");
20
+ organization: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Organization details").nullable().optional()
21
+ }).passthrough().describe("End user information associated with a connection.");
22
22
  const NangoGetConnectionOutput = zod.z.object({
23
- id: zod.z.number().int().describe("Internal Nango connection identifier"),
24
- tags: zod.z.object({}).describe("Connection tags (key/value strings). Keys are normalized to lowercase."),
23
+ id: zod.z.number().int().describe("Internal Nango connection identifier").nullable(),
24
+ tags: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Connection tags (key/value strings). Keys are normalized to lowercase."),
25
25
  errors: zod.z.array(NangoGetConnection_ConnectionErrorSchema).describe("List of connection errors (auth/sync issues)"),
26
26
  end_user: NangoGetConnection_EndUserSchema.nullable().optional(),
27
- metadata: zod.z.object({}).describe("Custom metadata attached to the connection"),
28
- provider: zod.z.string().describe("Provider/integration name"),
29
- created_at: zod.z.string().describe("Connection creation timestamp in ISO 8601 format"),
30
- updated_at: zod.z.string().describe("Connection last update timestamp in ISO 8601 format"),
31
- credentials: zod.z.object({}).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."),
32
- connection_id: zod.z.string().describe("The connection ID provided when creating the connection"),
33
- last_fetched_at: zod.z.string().describe("Last time connection data was fetched"),
34
- connection_config: zod.z.object({}).describe("Connection configuration data"),
35
- provider_config_key: zod.z.string().describe("Integration/provider configuration key (unique key)")
36
- }).describe("Response model for retrieving a connection with credentials.\nContains full connection details including authentication credentials.");
27
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom metadata attached to the connection"),
28
+ provider: zod.z.string().describe("Provider/integration name").nullable(),
29
+ created_at: zod.z.string().describe("Connection creation timestamp in ISO 8601 format").nullable(),
30
+ updated_at: zod.z.string().describe("Connection last update timestamp in ISO 8601 format").nullable(),
31
+ credentials: zod.z.record(zod.z.string(), zod.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."),
32
+ connection_id: zod.z.string().describe("The connection ID provided when creating the connection").nullable(),
33
+ last_fetched_at: zod.z.string().describe("Last time connection data was fetched").nullable(),
34
+ connection_config: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Connection configuration data"),
35
+ provider_config_key: zod.z.string().describe("Integration/provider configuration key (unique key)").nullable()
36
+ }).passthrough().describe("Response model for retrieving a connection with credentials.\nContains full connection details including authentication credentials.");
37
37
  const nangoGetConnection = require_action.action("NANGO_GET_CONNECTION", {
38
38
  slug: "nango-get-connection",
39
39
  name: "Get Connection with Credentials",
@@ -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.ZodTypeAny = 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.ZodTypeAny = z.object({\n type: z.string().describe(\"Error type identifier\"),\n log_id: z.string().describe(\"Associated log ID for debugging\"),\n}).describe(\"Represents an error associated with a connection.\");\nconst NangoGetConnection_EndUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"End user ID\"),\n tags: z.object({}).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.object({}).describe(\"Organization details\").nullable().optional(),\n}).describe(\"End user information associated with a connection.\");\nexport const NangoGetConnectionOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Internal Nango connection identifier\"),\n tags: z.object({}).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.object({}).describe(\"Custom metadata attached to the connection\"),\n provider: z.string().describe(\"Provider/integration name\"),\n created_at: z.string().describe(\"Connection creation timestamp in ISO 8601 format\"),\n updated_at: z.string().describe(\"Connection last update timestamp in ISO 8601 format\"),\n credentials: z.object({}).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\"),\n last_fetched_at: z.string().describe(\"Last time connection data was fetched\"),\n connection_config: z.object({}).describe(\"Connection configuration data\"),\n provider_config_key: z.string().describe(\"Integration/provider configuration key (unique key)\"),\n}).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":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG;CAC1I,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CAC/J,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC7H,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI;CAC5K,8BAA8BA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;AACzJ,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,2CAAyDA,IAAAA,EAAE,OAAO;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;AAC/D,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,mCAAiDA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;CACrC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wEAAwE;CACpG,QAAQA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,8CAA8C;CACjH,UAAU,iCAAiC,SAAS,CAAC,CAAC,SAAS;CAC/D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4CAA4C;CAC5E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACzD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAClF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CACrF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uMAAuM;CAC1O,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAC5F,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC5E,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+BAA+B;CACxE,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;AAChG,CAAC,CAAC,CAAC,SAAS,sIAAsI;AAElJ,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG;CAC1I,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CAC/J,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC7H,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI;CAC5K,8BAA8BA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;AACzJ,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAChD,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAC9E,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC/E,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wEAAwE;CACzH,QAAQA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,8CAA8C;CACjH,UAAU,iCAAiC,SAAS,CAAC,CAAC,SAAS;CAC/D,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C;CACjG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACpE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC7F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAChG,aAAaA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uMAAuM;CAC/P,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACvG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACvF,mBAAmBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B;CAC7F,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sIAAsI;AAEhK,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,44 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-connection.d.ts
4
- declare const NangoGetConnectionInput: z.ZodTypeAny;
5
- declare const NangoGetConnectionOutput: z.ZodTypeAny;
6
- declare const nangoGetConnection: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NangoGetConnectionInput: z.ZodObject<{
5
+ connection_id: z.ZodString;
6
+ force_refresh: z.ZodOptional<z.ZodBoolean>;
7
+ refresh_token: z.ZodOptional<z.ZodBoolean>;
8
+ provider_config_key: z.ZodString;
9
+ refresh_github_app_jwt_token: z.ZodOptional<z.ZodBoolean>;
10
+ }, z.core.$strip>;
11
+ declare const NangoGetConnectionOutput: z.ZodObject<{
12
+ id: z.ZodNullable<z.ZodNumber>;
13
+ tags: z.ZodRecord<z.ZodString, z.ZodUnknown>;
14
+ errors: z.ZodArray<z.ZodObject<{
15
+ type: z.ZodNullable<z.ZodString>;
16
+ log_id: z.ZodNullable<z.ZodString>;
17
+ }, z.core.$loose>>;
18
+ end_user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
19
+ id: z.ZodNullable<z.ZodString>;
20
+ tags: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
21
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ organization: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
24
+ }, z.core.$loose>>>;
25
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
26
+ provider: z.ZodNullable<z.ZodString>;
27
+ created_at: z.ZodNullable<z.ZodString>;
28
+ updated_at: z.ZodNullable<z.ZodString>;
29
+ credentials: z.ZodRecord<z.ZodString, z.ZodUnknown>;
30
+ connection_id: z.ZodNullable<z.ZodString>;
31
+ last_fetched_at: z.ZodNullable<z.ZodString>;
32
+ connection_config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
33
+ provider_config_key: z.ZodNullable<z.ZodString>;
34
+ }, z.core.$loose>;
35
+ declare const nangoGetConnection: import("@keystrokehq/action").WorkflowActionDefinition<{
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]>;
7
42
  //#endregion
8
43
  export { nangoGetConnection };
9
44
  //# sourceMappingURL=get-connection.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-connection.d.cts","names":[],"sources":["../../src/actions/get-connection.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAM2C;AAAA,cAYtE,wBAAA,EAA0B,CAAA,CAAE,UAc0G;AAAA,cAEtI,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-connection.d.cts","names":[],"sources":["../../src/actions/get-connection.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;cAkBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAgBxB,kBAAA,gCAAkB,wBAAA"}
@@ -1,9 +1,44 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-connection.d.ts
4
- declare const NangoGetConnectionInput: z.ZodTypeAny;
5
- declare const NangoGetConnectionOutput: z.ZodTypeAny;
6
- declare const nangoGetConnection: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NangoGetConnectionInput: z.ZodObject<{
5
+ connection_id: z.ZodString;
6
+ force_refresh: z.ZodOptional<z.ZodBoolean>;
7
+ refresh_token: z.ZodOptional<z.ZodBoolean>;
8
+ provider_config_key: z.ZodString;
9
+ refresh_github_app_jwt_token: z.ZodOptional<z.ZodBoolean>;
10
+ }, z.core.$strip>;
11
+ declare const NangoGetConnectionOutput: z.ZodObject<{
12
+ id: z.ZodNullable<z.ZodNumber>;
13
+ tags: z.ZodRecord<z.ZodString, z.ZodUnknown>;
14
+ errors: z.ZodArray<z.ZodObject<{
15
+ type: z.ZodNullable<z.ZodString>;
16
+ log_id: z.ZodNullable<z.ZodString>;
17
+ }, z.core.$loose>>;
18
+ end_user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
19
+ id: z.ZodNullable<z.ZodString>;
20
+ tags: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
21
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ organization: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
24
+ }, z.core.$loose>>>;
25
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
26
+ provider: z.ZodNullable<z.ZodString>;
27
+ created_at: z.ZodNullable<z.ZodString>;
28
+ updated_at: z.ZodNullable<z.ZodString>;
29
+ credentials: z.ZodRecord<z.ZodString, z.ZodUnknown>;
30
+ connection_id: z.ZodNullable<z.ZodString>;
31
+ last_fetched_at: z.ZodNullable<z.ZodString>;
32
+ connection_config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
33
+ provider_config_key: z.ZodNullable<z.ZodString>;
34
+ }, z.core.$loose>;
35
+ declare const nangoGetConnection: import("@keystrokehq/action").WorkflowActionDefinition<{
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]>;
7
42
  //#endregion
8
43
  export { nangoGetConnection };
9
44
  //# sourceMappingURL=get-connection.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-connection.d.mts","names":[],"sources":["../../src/actions/get-connection.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAM2C;AAAA,cAYtE,wBAAA,EAA0B,CAAA,CAAE,UAc0G;AAAA,cAEtI,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-connection.d.mts","names":[],"sources":["../../src/actions/get-connection.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;cAkBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAgBxB,kBAAA,gCAAkB,wBAAA"}
@@ -9,36 +9,36 @@ const NangoGetConnectionInput = z.object({
9
9
  refresh_github_app_jwt_token: z.boolean().describe("If true, this will refresh the JWT token for GitHub App / GitHub App OAuth connections.").optional()
10
10
  }).describe("Request model for retrieving a specific connection with credentials.");
11
11
  const NangoGetConnection_ConnectionErrorSchema = z.object({
12
- type: z.string().describe("Error type identifier"),
13
- log_id: z.string().describe("Associated log ID for debugging")
14
- }).describe("Represents an error associated with a connection.");
12
+ type: z.string().describe("Error type identifier").nullable(),
13
+ log_id: z.string().describe("Associated log ID for debugging").nullable()
14
+ }).passthrough().describe("Represents an error associated with a connection.");
15
15
  const NangoGetConnection_EndUserSchema = z.object({
16
- id: z.string().describe("End user ID"),
17
- tags: z.object({}).describe("Tags associated with the end user").nullable().optional(),
16
+ id: z.string().describe("End user ID").nullable(),
17
+ tags: z.record(z.string(), z.unknown()).describe("Tags associated with the end user").nullable().optional(),
18
18
  email: z.string().describe("End user email").nullable().optional(),
19
19
  display_name: z.string().describe("End user display name").nullable().optional(),
20
- organization: z.object({}).describe("Organization details").nullable().optional()
21
- }).describe("End user information associated with a connection.");
20
+ organization: z.record(z.string(), z.unknown()).describe("Organization details").nullable().optional()
21
+ }).passthrough().describe("End user information associated with a connection.");
22
22
  const nangoGetConnection = action("NANGO_GET_CONNECTION", {
23
23
  slug: "nango-get-connection",
24
24
  name: "Get Connection with Credentials",
25
25
  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.",
26
26
  input: NangoGetConnectionInput,
27
27
  output: z.object({
28
- id: z.number().int().describe("Internal Nango connection identifier"),
29
- tags: z.object({}).describe("Connection tags (key/value strings). Keys are normalized to lowercase."),
28
+ id: z.number().int().describe("Internal Nango connection identifier").nullable(),
29
+ tags: z.record(z.string(), z.unknown()).describe("Connection tags (key/value strings). Keys are normalized to lowercase."),
30
30
  errors: z.array(NangoGetConnection_ConnectionErrorSchema).describe("List of connection errors (auth/sync issues)"),
31
31
  end_user: NangoGetConnection_EndUserSchema.nullable().optional(),
32
- metadata: z.object({}).describe("Custom metadata attached to the connection"),
33
- provider: z.string().describe("Provider/integration name"),
34
- created_at: z.string().describe("Connection creation timestamp in ISO 8601 format"),
35
- updated_at: z.string().describe("Connection last update timestamp in ISO 8601 format"),
36
- credentials: z.object({}).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."),
37
- connection_id: z.string().describe("The connection ID provided when creating the connection"),
38
- last_fetched_at: z.string().describe("Last time connection data was fetched"),
39
- connection_config: z.object({}).describe("Connection configuration data"),
40
- provider_config_key: z.string().describe("Integration/provider configuration key (unique key)")
41
- }).describe("Response model for retrieving a connection with credentials.\nContains full connection details including authentication credentials.")
32
+ metadata: z.record(z.string(), z.unknown()).describe("Custom metadata attached to the connection"),
33
+ provider: z.string().describe("Provider/integration name").nullable(),
34
+ created_at: z.string().describe("Connection creation timestamp in ISO 8601 format").nullable(),
35
+ updated_at: z.string().describe("Connection last update timestamp in ISO 8601 format").nullable(),
36
+ 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."),
37
+ connection_id: z.string().describe("The connection ID provided when creating the connection").nullable(),
38
+ last_fetched_at: z.string().describe("Last time connection data was fetched").nullable(),
39
+ connection_config: z.record(z.string(), z.unknown()).describe("Connection configuration data"),
40
+ provider_config_key: z.string().describe("Integration/provider configuration key (unique key)").nullable()
41
+ }).passthrough().describe("Response model for retrieving a connection with credentials.\nContains full connection details including authentication credentials.")
42
42
  });
43
43
  //#endregion
44
44
  export { nangoGetConnection };
@@ -1 +1 @@
1
- {"version":3,"file":"get-connection.mjs","names":[],"sources":["../../src/actions/get-connection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoGetConnectionInput: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n type: z.string().describe(\"Error type identifier\"),\n log_id: z.string().describe(\"Associated log ID for debugging\"),\n}).describe(\"Represents an error associated with a connection.\");\nconst NangoGetConnection_EndUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"End user ID\"),\n tags: z.object({}).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.object({}).describe(\"Organization details\").nullable().optional(),\n}).describe(\"End user information associated with a connection.\");\nexport const NangoGetConnectionOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Internal Nango connection identifier\"),\n tags: z.object({}).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.object({}).describe(\"Custom metadata attached to the connection\"),\n provider: z.string().describe(\"Provider/integration name\"),\n created_at: z.string().describe(\"Connection creation timestamp in ISO 8601 format\"),\n updated_at: z.string().describe(\"Connection last update timestamp in ISO 8601 format\"),\n credentials: z.object({}).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\"),\n last_fetched_at: z.string().describe(\"Last time connection data was fetched\"),\n connection_config: z.object({}).describe(\"Connection configuration data\"),\n provider_config_key: z.string().describe(\"Integration/provider configuration key (unique key)\"),\n}).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":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO;CAC5D,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG;CAC1I,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CAC/J,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC7H,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI;CAC5K,8BAA8B,EAAE,QAAQ,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;AACzJ,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,2CAAyD,EAAE,OAAO;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;AAC/D,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,mCAAiD,EAAE,OAAO;CAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;CACrC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,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,CAAC,CAAC,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAiBhE,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QArBoD,EAAE,OAAO;EAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC;EACpE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wEAAwE;EACpG,QAAQ,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,8CAA8C;EACjH,UAAU,iCAAiC,SAAS,CAAC,CAAC,SAAS;EAC/D,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4CAA4C;EAC5E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EACzD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;EAClF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;EACrF,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uMAAuM;EAC1O,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;EAC5F,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EAC5E,mBAAmB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+BAA+B;EACxE,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CAChG,CAAC,CAAC,CAAC,SAAS,sIAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-connection.mjs","names":[],"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":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG;CAC1I,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CAC/J,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC7H,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI;CAC5K,8BAA8B,EAAE,QAAQ,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;AACzJ,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,2CAA2C,EAAE,OAAO;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAM,mCAAmC,EAAE,OAAO;CAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAChD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,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,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAiB9E,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QArBsC,EAAE,OAAO;EAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC/E,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wEAAwE;EACzH,QAAQ,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,8CAA8C;EACjH,UAAU,iCAAiC,SAAS,CAAC,CAAC,SAAS;EAC/D,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C;EACjG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACpE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EAChG,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uMAAuM;EAC/P,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EACvG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACvF,mBAAmB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B;EAC7F,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sIAOhB;AACV,CAAC"}
@@ -3,10 +3,10 @@ let zod = require("zod");
3
3
  //#region src/actions/get-environment-variables.ts
4
4
  const NangoGetEnvironmentVariablesInput = zod.z.object({}).describe("Empty request model for retrieving environment variables.");
5
5
  const NangoGetEnvironmentVariables_EnvironmentVariableSchema = zod.z.object({
6
- name: zod.z.string().describe("The name of the environment variable"),
7
- value: zod.z.string().describe("The value of the environment variable")
8
- }).describe("Model representing a single environment variable.");
9
- const NangoGetEnvironmentVariablesOutput = zod.z.object({ variables: zod.z.array(NangoGetEnvironmentVariables_EnvironmentVariableSchema).describe("List of environment variables as configured in the Nango dashboard") }).describe("Response model containing list of environment variables.");
6
+ name: zod.z.string().describe("The name of the environment variable").nullable(),
7
+ value: zod.z.string().describe("The value of the environment variable").nullable()
8
+ }).passthrough().describe("Model representing a single environment variable.");
9
+ const NangoGetEnvironmentVariablesOutput = zod.z.object({ variables: zod.z.array(NangoGetEnvironmentVariables_EnvironmentVariableSchema).describe("List of environment variables as configured in the Nango dashboard") }).passthrough().describe("Response model containing list of environment variables.");
10
10
  const nangoGetEnvironmentVariables = require_action.action("NANGO_GET_ENVIRONMENT_VARIABLES", {
11
11
  slug: "nango-get-environment-variables",
12
12
  name: "Get Environment Variables",
@@ -1 +1 @@
1
- {"version":3,"file":"get-environment-variables.cjs","names":["z","action"],"sources":["../../src/actions/get-environment-variables.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoGetEnvironmentVariablesInput: z.ZodTypeAny = z.object({}).describe(\"Empty request model for retrieving environment variables.\");\nconst NangoGetEnvironmentVariables_EnvironmentVariableSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the environment variable\"),\n value: z.string().describe(\"The value of the environment variable\"),\n}).describe(\"Model representing a single environment variable.\");\nexport const NangoGetEnvironmentVariablesOutput: z.ZodTypeAny = z.object({\n variables: z.array(NangoGetEnvironmentVariables_EnvironmentVariableSchema).describe(\"List of environment variables as configured in the Nango dashboard\"),\n}).describe(\"Response model containing list of environment variables.\");\n\nexport const nangoGetEnvironmentVariables = action(\"NANGO_GET_ENVIRONMENT_VARIABLES\", {\n slug: \"nango-get-environment-variables\",\n name: \"Get Environment Variables\",\n description: \"Tool to retrieve environment variables from the Nango dashboard. Use when you need to access or list environment variables configured in Nango.\",\n input: NangoGetEnvironmentVariablesInput,\n output: NangoGetEnvironmentVariablesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAChJ,MAAM,yDAAuEA,IAAAA,EAAE,OAAO;CACpF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;AACpE,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,qCAAmDA,IAAAA,EAAE,OAAO,EACvE,WAAWA,IAAAA,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,oEAAoE,EAC1J,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAEtE,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-environment-variables.cjs","names":["z","action"],"sources":["../../src/actions/get-environment-variables.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoGetEnvironmentVariablesInput = z.object({}).describe(\"Empty request model for retrieving environment variables.\");\nconst NangoGetEnvironmentVariables_EnvironmentVariableSchema = z.object({\n name: z.string().describe(\"The name of the environment variable\").nullable(),\n value: z.string().describe(\"The value of the environment variable\").nullable(),\n}).passthrough().describe(\"Model representing a single environment variable.\");\nexport const NangoGetEnvironmentVariablesOutput = z.object({\n variables: z.array(NangoGetEnvironmentVariables_EnvironmentVariableSchema).describe(\"List of environment variables as configured in the Nango dashboard\"),\n}).passthrough().describe(\"Response model containing list of environment variables.\");\n\nexport const nangoGetEnvironmentVariables = action(\"NANGO_GET_ENVIRONMENT_VARIABLES\", {\n slug: \"nango-get-environment-variables\",\n name: \"Get Environment Variables\",\n description: \"Tool to retrieve environment variables from the Nango dashboard. Use when you need to access or list environment variables configured in Nango.\",\n input: NangoGetEnvironmentVariablesInput,\n output: NangoGetEnvironmentVariablesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAClI,MAAM,yDAAyDA,IAAAA,EAAE,OAAO;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,WAAWA,IAAAA,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,oEAAoE,EAC1J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAEpF,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,14 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-environment-variables.d.ts
4
- declare const NangoGetEnvironmentVariablesInput: z.ZodTypeAny;
5
- declare const NangoGetEnvironmentVariablesOutput: z.ZodTypeAny;
6
- declare const nangoGetEnvironmentVariables: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NangoGetEnvironmentVariablesInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const NangoGetEnvironmentVariablesOutput: z.ZodObject<{
6
+ variables: z.ZodArray<z.ZodObject<{
7
+ name: z.ZodNullable<z.ZodString>;
8
+ value: z.ZodNullable<z.ZodString>;
9
+ }, z.core.$loose>>;
10
+ }, z.core.$loose>;
11
+ declare const nangoGetEnvironmentVariables: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
12
  //#endregion
8
13
  export { nangoGetEnvironmentVariables };
9
14
  //# sourceMappingURL=get-environment-variables.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-environment-variables.d.cts","names":[],"sources":["../../src/actions/get-environment-variables.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAA+F;AAAA,cAKpI,kCAAA,EAAoC,CAAA,CAAE,UAEoB;AAAA,cAE1D,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-environment-variables.d.cts","names":[],"sources":["../../src/actions/get-environment-variables.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAKjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;cAIlC,4BAAA,gCAA4B,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -1,9 +1,14 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-environment-variables.d.ts
4
- declare const NangoGetEnvironmentVariablesInput: z.ZodTypeAny;
5
- declare const NangoGetEnvironmentVariablesOutput: z.ZodTypeAny;
6
- declare const nangoGetEnvironmentVariables: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NangoGetEnvironmentVariablesInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const NangoGetEnvironmentVariablesOutput: z.ZodObject<{
6
+ variables: z.ZodArray<z.ZodObject<{
7
+ name: z.ZodNullable<z.ZodString>;
8
+ value: z.ZodNullable<z.ZodString>;
9
+ }, z.core.$loose>>;
10
+ }, z.core.$loose>;
11
+ declare const nangoGetEnvironmentVariables: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
12
  //#endregion
8
13
  export { nangoGetEnvironmentVariables };
9
14
  //# sourceMappingURL=get-environment-variables.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-environment-variables.d.mts","names":[],"sources":["../../src/actions/get-environment-variables.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAA+F;AAAA,cAKpI,kCAAA,EAAoC,CAAA,CAAE,UAEoB;AAAA,cAE1D,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-environment-variables.d.mts","names":[],"sources":["../../src/actions/get-environment-variables.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAKjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;cAIlC,4BAAA,gCAA4B,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -3,15 +3,15 @@ import { z } from "zod";
3
3
  //#region src/actions/get-environment-variables.ts
4
4
  const NangoGetEnvironmentVariablesInput = z.object({}).describe("Empty request model for retrieving environment variables.");
5
5
  const NangoGetEnvironmentVariables_EnvironmentVariableSchema = z.object({
6
- name: z.string().describe("The name of the environment variable"),
7
- value: z.string().describe("The value of the environment variable")
8
- }).describe("Model representing a single environment variable.");
6
+ name: z.string().describe("The name of the environment variable").nullable(),
7
+ value: z.string().describe("The value of the environment variable").nullable()
8
+ }).passthrough().describe("Model representing a single environment variable.");
9
9
  const nangoGetEnvironmentVariables = action("NANGO_GET_ENVIRONMENT_VARIABLES", {
10
10
  slug: "nango-get-environment-variables",
11
11
  name: "Get Environment Variables",
12
12
  description: "Tool to retrieve environment variables from the Nango dashboard. Use when you need to access or list environment variables configured in Nango.",
13
13
  input: NangoGetEnvironmentVariablesInput,
14
- output: z.object({ variables: z.array(NangoGetEnvironmentVariables_EnvironmentVariableSchema).describe("List of environment variables as configured in the Nango dashboard") }).describe("Response model containing list of environment variables.")
14
+ output: z.object({ variables: z.array(NangoGetEnvironmentVariables_EnvironmentVariableSchema).describe("List of environment variables as configured in the Nango dashboard") }).passthrough().describe("Response model containing list of environment variables.")
15
15
  });
16
16
  //#endregion
17
17
  export { nangoGetEnvironmentVariables };
@@ -1 +1 @@
1
- {"version":3,"file":"get-environment-variables.mjs","names":[],"sources":["../../src/actions/get-environment-variables.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoGetEnvironmentVariablesInput: z.ZodTypeAny = z.object({}).describe(\"Empty request model for retrieving environment variables.\");\nconst NangoGetEnvironmentVariables_EnvironmentVariableSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the environment variable\"),\n value: z.string().describe(\"The value of the environment variable\"),\n}).describe(\"Model representing a single environment variable.\");\nexport const NangoGetEnvironmentVariablesOutput: z.ZodTypeAny = z.object({\n variables: z.array(NangoGetEnvironmentVariables_EnvironmentVariableSchema).describe(\"List of environment variables as configured in the Nango dashboard\"),\n}).describe(\"Response model containing list of environment variables.\");\n\nexport const nangoGetEnvironmentVariables = action(\"NANGO_GET_ENVIRONMENT_VARIABLES\", {\n slug: \"nango-get-environment-variables\",\n name: \"Get Environment Variables\",\n description: \"Tool to retrieve environment variables from the Nango dashboard. Use when you need to access or list environment variables configured in Nango.\",\n input: NangoGetEnvironmentVariablesInput,\n output: NangoGetEnvironmentVariablesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAChJ,MAAM,yDAAuE,EAAE,OAAO;CACpF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;AACpE,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAK/D,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT8D,EAAE,OAAO,EACvE,WAAW,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,oEAAoE,EAC1J,CAAC,CAAC,CAAC,SAAS,0DAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-environment-variables.mjs","names":[],"sources":["../../src/actions/get-environment-variables.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoGetEnvironmentVariablesInput = z.object({}).describe(\"Empty request model for retrieving environment variables.\");\nconst NangoGetEnvironmentVariables_EnvironmentVariableSchema = z.object({\n name: z.string().describe(\"The name of the environment variable\").nullable(),\n value: z.string().describe(\"The value of the environment variable\").nullable(),\n}).passthrough().describe(\"Model representing a single environment variable.\");\nexport const NangoGetEnvironmentVariablesOutput = z.object({\n variables: z.array(NangoGetEnvironmentVariables_EnvironmentVariableSchema).describe(\"List of environment variables as configured in the Nango dashboard\"),\n}).passthrough().describe(\"Response model containing list of environment variables.\");\n\nexport const nangoGetEnvironmentVariables = action(\"NANGO_GET_ENVIRONMENT_VARIABLES\", {\n slug: \"nango-get-environment-variables\",\n name: \"Get Environment Variables\",\n description: \"Tool to retrieve environment variables from the Nango dashboard. Use when you need to access or list environment variables configured in Nango.\",\n input: NangoGetEnvironmentVariablesInput,\n output: NangoGetEnvironmentVariablesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAClI,MAAM,yDAAyD,EAAE,OAAO;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAK7E,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATgD,EAAE,OAAO,EACzD,WAAW,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,oEAAoE,EAC1J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAOhB;AACV,CAAC"}