@keystrokehq/nango 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) 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 -0
  4. package/dist/actions/action-trigger-post.cjs.map +1 -1
  5. package/dist/actions/action-trigger-post.d.cts +3 -18
  6. package/dist/actions/action-trigger-post.d.cts.map +1 -1
  7. package/dist/actions/action-trigger-post.d.mts +3 -18
  8. package/dist/actions/action-trigger-post.d.mts.map +1 -1
  9. package/dist/actions/action-trigger-post.mjs +1 -0
  10. package/dist/actions/action-trigger-post.mjs.map +1 -1
  11. package/dist/actions/add-connection.cjs +1 -0
  12. package/dist/actions/add-connection.cjs.map +1 -1
  13. package/dist/actions/add-connection.d.cts +3 -68
  14. package/dist/actions/add-connection.d.cts.map +1 -1
  15. package/dist/actions/add-connection.d.mts +3 -68
  16. package/dist/actions/add-connection.d.mts.map +1 -1
  17. package/dist/actions/add-connection.mjs +1 -0
  18. package/dist/actions/add-connection.mjs.map +1 -1
  19. package/dist/actions/connection-get.cjs +1 -0
  20. package/dist/actions/connection-get.cjs.map +1 -1
  21. package/dist/actions/connection-get.d.cts +3 -20
  22. package/dist/actions/connection-get.d.cts.map +1 -1
  23. package/dist/actions/connection-get.d.mts +3 -20
  24. package/dist/actions/connection-get.d.mts.map +1 -1
  25. package/dist/actions/connection-get.mjs +1 -0
  26. package/dist/actions/connection-get.mjs.map +1 -1
  27. package/dist/actions/create-connect-session.cjs +1 -0
  28. package/dist/actions/create-connect-session.cjs.map +1 -1
  29. package/dist/actions/create-connect-session.d.cts +3 -28
  30. package/dist/actions/create-connect-session.d.cts.map +1 -1
  31. package/dist/actions/create-connect-session.d.mts +3 -28
  32. package/dist/actions/create-connect-session.d.mts.map +1 -1
  33. package/dist/actions/create-connect-session.mjs +1 -0
  34. package/dist/actions/create-connect-session.mjs.map +1 -1
  35. package/dist/actions/create-integration.cjs +1 -0
  36. package/dist/actions/create-integration.cjs.map +1 -1
  37. package/dist/actions/create-integration.d.cts +3 -39
  38. package/dist/actions/create-integration.d.cts.map +1 -1
  39. package/dist/actions/create-integration.d.mts +3 -39
  40. package/dist/actions/create-integration.d.mts.map +1 -1
  41. package/dist/actions/create-integration.mjs +1 -0
  42. package/dist/actions/create-integration.mjs.map +1 -1
  43. package/dist/actions/delete-connection.cjs +1 -0
  44. package/dist/actions/delete-connection.cjs.map +1 -1
  45. package/dist/actions/delete-connection.d.cts +3 -16
  46. package/dist/actions/delete-connection.d.cts.map +1 -1
  47. package/dist/actions/delete-connection.d.mts +3 -16
  48. package/dist/actions/delete-connection.d.mts.map +1 -1
  49. package/dist/actions/delete-connection.mjs +1 -0
  50. package/dist/actions/delete-connection.mjs.map +1 -1
  51. package/dist/actions/delete-integration.cjs +1 -0
  52. package/dist/actions/delete-integration.cjs.map +1 -1
  53. package/dist/actions/delete-integration.d.cts +3 -15
  54. package/dist/actions/delete-integration.d.cts.map +1 -1
  55. package/dist/actions/delete-integration.d.mts +3 -15
  56. package/dist/actions/delete-integration.d.mts.map +1 -1
  57. package/dist/actions/delete-integration.mjs +1 -0
  58. package/dist/actions/delete-integration.mjs.map +1 -1
  59. package/dist/actions/edit-connection.cjs +1 -0
  60. package/dist/actions/edit-connection.cjs.map +1 -1
  61. package/dist/actions/edit-connection.d.cts +3 -23
  62. package/dist/actions/edit-connection.d.cts.map +1 -1
  63. package/dist/actions/edit-connection.d.mts +3 -23
  64. package/dist/actions/edit-connection.d.mts.map +1 -1
  65. package/dist/actions/edit-connection.mjs +1 -0
  66. package/dist/actions/edit-connection.mjs.map +1 -1
  67. package/dist/actions/get-connection.cjs +1 -0
  68. package/dist/actions/get-connection.cjs.map +1 -1
  69. package/dist/actions/get-connection.d.cts +3 -19
  70. package/dist/actions/get-connection.d.cts.map +1 -1
  71. package/dist/actions/get-connection.d.mts +3 -19
  72. package/dist/actions/get-connection.d.mts.map +1 -1
  73. package/dist/actions/get-connection.mjs +1 -0
  74. package/dist/actions/get-connection.mjs.map +1 -1
  75. package/dist/actions/get-environment-variables.cjs +1 -0
  76. package/dist/actions/get-environment-variables.cjs.map +1 -1
  77. package/dist/actions/get-environment-variables.d.cts +3 -13
  78. package/dist/actions/get-environment-variables.d.cts.map +1 -1
  79. package/dist/actions/get-environment-variables.d.mts +3 -13
  80. package/dist/actions/get-environment-variables.d.mts.map +1 -1
  81. package/dist/actions/get-environment-variables.mjs +1 -0
  82. package/dist/actions/get-environment-variables.mjs.map +1 -1
  83. package/dist/actions/get-integration.cjs +1 -0
  84. package/dist/actions/get-integration.cjs.map +1 -1
  85. package/dist/actions/get-integration.d.cts +3 -16
  86. package/dist/actions/get-integration.d.cts.map +1 -1
  87. package/dist/actions/get-integration.d.mts +3 -16
  88. package/dist/actions/get-integration.d.mts.map +1 -1
  89. package/dist/actions/get-integration.mjs +1 -0
  90. package/dist/actions/get-integration.mjs.map +1 -1
  91. package/dist/actions/get-proxy.cjs +1 -0
  92. package/dist/actions/get-proxy.cjs.map +1 -1
  93. package/dist/actions/get-proxy.d.cts +3 -23
  94. package/dist/actions/get-proxy.d.cts.map +1 -1
  95. package/dist/actions/get-proxy.d.mts +3 -23
  96. package/dist/actions/get-proxy.d.mts.map +1 -1
  97. package/dist/actions/get-proxy.mjs +1 -0
  98. package/dist/actions/get-proxy.mjs.map +1 -1
  99. package/dist/actions/get-sync-status.cjs +1 -0
  100. package/dist/actions/get-sync-status.cjs.map +1 -1
  101. package/dist/actions/get-sync-status.d.cts +3 -17
  102. package/dist/actions/get-sync-status.d.cts.map +1 -1
  103. package/dist/actions/get-sync-status.d.mts +3 -17
  104. package/dist/actions/get-sync-status.d.mts.map +1 -1
  105. package/dist/actions/get-sync-status.mjs +1 -0
  106. package/dist/actions/get-sync-status.mjs.map +1 -1
  107. package/dist/actions/list-connections.cjs +1 -0
  108. package/dist/actions/list-connections.cjs.map +1 -1
  109. package/dist/actions/list-connections.d.cts +3 -21
  110. package/dist/actions/list-connections.d.cts.map +1 -1
  111. package/dist/actions/list-connections.d.mts +3 -21
  112. package/dist/actions/list-connections.d.mts.map +1 -1
  113. package/dist/actions/list-connections.mjs +1 -0
  114. package/dist/actions/list-connections.mjs.map +1 -1
  115. package/dist/actions/list-integrations.cjs +1 -0
  116. package/dist/actions/list-integrations.cjs.map +1 -1
  117. package/dist/actions/list-integrations.d.cts +3 -13
  118. package/dist/actions/list-integrations.d.cts.map +1 -1
  119. package/dist/actions/list-integrations.d.mts +3 -13
  120. package/dist/actions/list-integrations.d.mts.map +1 -1
  121. package/dist/actions/list-integrations.mjs +1 -0
  122. package/dist/actions/list-integrations.mjs.map +1 -1
  123. package/dist/actions/providers-get-get.cjs +1 -0
  124. package/dist/actions/providers-get-get.cjs.map +1 -1
  125. package/dist/actions/providers-get-get.d.cts +3 -15
  126. package/dist/actions/providers-get-get.d.cts.map +1 -1
  127. package/dist/actions/providers-get-get.d.mts +3 -15
  128. package/dist/actions/providers-get-get.d.mts.map +1 -1
  129. package/dist/actions/providers-get-get.mjs +1 -0
  130. package/dist/actions/providers-get-get.mjs.map +1 -1
  131. package/dist/actions/providers-list-get.cjs +1 -0
  132. package/dist/actions/providers-list-get.cjs.map +1 -1
  133. package/dist/actions/providers-list-get.d.cts +3 -13
  134. package/dist/actions/providers-list-get.d.cts.map +1 -1
  135. package/dist/actions/providers-list-get.d.mts +3 -13
  136. package/dist/actions/providers-list-get.d.mts.map +1 -1
  137. package/dist/actions/providers-list-get.mjs +1 -0
  138. package/dist/actions/providers-list-get.mjs.map +1 -1
  139. package/dist/actions/put-proxy.cjs +1 -0
  140. package/dist/actions/put-proxy.cjs.map +1 -1
  141. package/dist/actions/put-proxy.d.cts +3 -22
  142. package/dist/actions/put-proxy.d.cts.map +1 -1
  143. package/dist/actions/put-proxy.d.mts +3 -22
  144. package/dist/actions/put-proxy.d.mts.map +1 -1
  145. package/dist/actions/put-proxy.mjs +1 -0
  146. package/dist/actions/put-proxy.mjs.map +1 -1
  147. package/dist/actions/reconnect-session-post.cjs +1 -0
  148. package/dist/actions/reconnect-session-post.cjs.map +1 -1
  149. package/dist/actions/reconnect-session-post.d.cts +3 -29
  150. package/dist/actions/reconnect-session-post.d.cts.map +1 -1
  151. package/dist/actions/reconnect-session-post.d.mts +3 -29
  152. package/dist/actions/reconnect-session-post.d.mts.map +1 -1
  153. package/dist/actions/reconnect-session-post.mjs +1 -0
  154. package/dist/actions/reconnect-session-post.mjs.map +1 -1
  155. package/dist/actions/scripts-config-get.cjs +1 -0
  156. package/dist/actions/scripts-config-get.cjs.map +1 -1
  157. package/dist/actions/scripts-config-get.d.cts +3 -13
  158. package/dist/actions/scripts-config-get.d.cts.map +1 -1
  159. package/dist/actions/scripts-config-get.d.mts +3 -13
  160. package/dist/actions/scripts-config-get.d.mts.map +1 -1
  161. package/dist/actions/scripts-config-get.mjs +1 -0
  162. package/dist/actions/scripts-config-get.mjs.map +1 -1
  163. package/dist/actions/set-connection-metadata.cjs +1 -0
  164. package/dist/actions/set-connection-metadata.cjs.map +1 -1
  165. package/dist/actions/set-connection-metadata.d.cts +3 -17
  166. package/dist/actions/set-connection-metadata.d.cts.map +1 -1
  167. package/dist/actions/set-connection-metadata.d.mts +3 -17
  168. package/dist/actions/set-connection-metadata.d.mts.map +1 -1
  169. package/dist/actions/set-connection-metadata.mjs +1 -0
  170. package/dist/actions/set-connection-metadata.mjs.map +1 -1
  171. package/dist/actions/sync-trigger-post.cjs +1 -0
  172. package/dist/actions/sync-trigger-post.cjs.map +1 -1
  173. package/dist/actions/sync-trigger-post.d.cts +3 -18
  174. package/dist/actions/sync-trigger-post.d.cts.map +1 -1
  175. package/dist/actions/sync-trigger-post.d.mts +3 -18
  176. package/dist/actions/sync-trigger-post.d.mts.map +1 -1
  177. package/dist/actions/sync-trigger-post.mjs +1 -0
  178. package/dist/actions/sync-trigger-post.mjs.map +1 -1
  179. package/dist/actions/update-connection-metadata.cjs +1 -0
  180. package/dist/actions/update-connection-metadata.cjs.map +1 -1
  181. package/dist/actions/update-connection-metadata.d.cts +3 -17
  182. package/dist/actions/update-connection-metadata.d.cts.map +1 -1
  183. package/dist/actions/update-connection-metadata.d.mts +3 -17
  184. package/dist/actions/update-connection-metadata.d.mts.map +1 -1
  185. package/dist/actions/update-connection-metadata.mjs +1 -0
  186. package/dist/actions/update-connection-metadata.mjs.map +1 -1
  187. package/dist/actions/update-integration.cjs +1 -0
  188. package/dist/actions/update-integration.cjs.map +1 -1
  189. package/dist/actions/update-integration.d.cts +3 -39
  190. package/dist/actions/update-integration.d.cts.map +1 -1
  191. package/dist/actions/update-integration.d.mts +3 -39
  192. package/dist/actions/update-integration.d.mts.map +1 -1
  193. package/dist/actions/update-integration.mjs +1 -0
  194. package/dist/actions/update-integration.mjs.map +1 -1
  195. package/dist/app.cjs +2 -2
  196. package/dist/app.cjs.map +1 -1
  197. package/dist/app.d.cts +4 -6
  198. package/dist/app.d.cts.map +1 -1
  199. package/dist/app.d.mts +4 -6
  200. package/dist/app.d.mts.map +1 -1
  201. package/dist/app.mjs +0 -1
  202. package/dist/app.mjs.map +1 -1
  203. package/dist/index.d.cts +1 -1
  204. package/dist/index.d.mts +1 -1
  205. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["nango","executeNangoTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { nango } from \"./app\";\nimport { executeNangoTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return nango.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeNangoTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,MAAM,OAAO;EAClB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["nango","executeNangoTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { nango } from \"./app\";\nimport { executeNangoTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof nango.credential> {\n return nango.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeNangoTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOqD;CACrD,OAAOA,YAAAA,MAAM,OAAO;EAClB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { nango } from \"./app\";\nimport { executeNangoTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return nango.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeNangoTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,MAAM,OAAO;EAClB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { nango } from \"./app\";\nimport { executeNangoTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof nango.credential> {\n return nango.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeNangoTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOqD;CACrD,OAAO,MAAM,OAAO;EAClB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/action-trigger-post.ts
@@ -1 +1 @@
1
- {"version":3,"file":"action-trigger-post.cjs","names":["z","action"],"sources":["../../src/actions/action-trigger-post.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoActionTriggerPostInput = z.object({\n input: z.record(z.string(), z.unknown()).describe(\"Optional input payload for the action's exec function. The structure depends on the specific action being triggered.\").optional(),\n action_name: z.string().describe(\"The name of the action to trigger as defined in your Nango integration.\"),\n connection_id: z.string().describe(\"The connection identifier used when creating the connection in Nango.\"),\n provider_config_key: z.string().describe(\"The integration's unique key (provider config key) in Nango.\"),\n});\nexport const NangoActionTriggerPostOutput = z.object({\n result: z.unknown().describe(\"The result returned by the action. Structure depends on the specific action triggered.\").nullable().optional(),\n}).passthrough();\n\nexport const nangoActionTriggerPost = action(\"NANGO_ACTION_TRIGGER_POST\", {\n slug: \"nango-action-trigger-post\",\n name: \"Trigger Nango Action\",\n description: \"Trigger a Nango action to execute a workflow or operation. Use this to run pre-defined actions in your Nango integrations, such as creating issues, sending messages, or fetching data from external APIs. All three of `connection_id`, `provider_config_key`, and `action_name` must simultaneously match a pre-configured integration and connection in Nango — a valid `connection_id` alone is insufficient if the other two don't correspond to an existing setup. Actions may have real upstream side effects (e.g., creating records, sending messages); confirm intent before triggering non-read-only operations.\",\n input: NangoActionTriggerPostInput,\n output: NangoActionTriggerPostOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CACnL,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;CAC1G,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;CAC1G,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;AACzG,CAAC;AACD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC7I,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"action-trigger-post.cjs","names":["z","action"],"sources":["../../src/actions/action-trigger-post.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nango } from \"../app\";\n\nexport const NangoActionTriggerPostInput = z.object({\n input: z.record(z.string(), z.unknown()).describe(\"Optional input payload for the action's exec function. The structure depends on the specific action being triggered.\").optional(),\n action_name: z.string().describe(\"The name of the action to trigger as defined in your Nango integration.\"),\n connection_id: z.string().describe(\"The connection identifier used when creating the connection in Nango.\"),\n provider_config_key: z.string().describe(\"The integration's unique key (provider config key) in Nango.\"),\n});\nexport const NangoActionTriggerPostOutput = z.object({\n result: z.unknown().describe(\"The result returned by the action. Structure depends on the specific action triggered.\").nullable().optional(),\n}).passthrough();\n\nexport const nangoActionTriggerPost: AppAction<\n typeof NangoActionTriggerPostInput,\n typeof NangoActionTriggerPostOutput,\n typeof nango.credential\n> = action(\"NANGO_ACTION_TRIGGER_POST\", {\n slug: \"nango-action-trigger-post\",\n name: \"Trigger Nango Action\",\n description: \"Trigger a Nango action to execute a workflow or operation. Use this to run pre-defined actions in your Nango integrations, such as creating issues, sending messages, or fetching data from external APIs. All three of `connection_id`, `provider_config_key`, and `action_name` must simultaneously match a pre-configured integration and connection in Nango — a valid `connection_id` alone is insufficient if the other two don't correspond to an existing setup. Actions may have real upstream side effects (e.g., creating records, sending messages); confirm intent before triggering non-read-only operations.\",\n input: NangoActionTriggerPostInput,\n output: NangoActionTriggerPostOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CACnL,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;CAC1G,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;CAC1G,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;AACzG,CAAC;AACD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC7I,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,yBAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { nango } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/action-trigger-post.d.ts
@@ -10,24 +12,7 @@ declare const NangoActionTriggerPostInput: z.ZodObject<{
10
12
  declare const NangoActionTriggerPostOutput: z.ZodObject<{
11
13
  result: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
12
14
  }, z.core.$loose>;
13
- declare const nangoActionTriggerPost: import("@keystrokehq/action").WorkflowActionDefinition<{
14
- action_name: string;
15
- connection_id: string;
16
- provider_config_key: string;
17
- input?: Record<string, unknown> | undefined;
18
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
19
- connectionId: z.ZodString;
20
- entityId: z.ZodString;
21
- instanceId: z.ZodString;
22
- }, z.core.$strip>, z.ZodObject<{
23
- generic_api_key: z.ZodString;
24
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
25
- connectionId: z.ZodString;
26
- entityId: z.ZodString;
27
- instanceId: z.ZodString;
28
- }, z.core.$strip>, z.ZodObject<{
29
- generic_api_key: z.ZodString;
30
- }, z.core.$strip>>]>;
15
+ declare const nangoActionTriggerPost: AppAction<typeof NangoActionTriggerPostInput, typeof NangoActionTriggerPostOutput, typeof nango.credential>;
31
16
  //#endregion
32
17
  export { nangoActionTriggerPost };
33
18
  //# sourceMappingURL=action-trigger-post.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"action-trigger-post.d.cts","names":[],"sources":["../../src/actions/action-trigger-post.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;cAM3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"action-trigger-post.d.cts","names":[],"sources":["../../src/actions/action-trigger-post.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;cAM3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { nango } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/action-trigger-post.d.ts
@@ -10,24 +12,7 @@ declare const NangoActionTriggerPostInput: z.ZodObject<{
10
12
  declare const NangoActionTriggerPostOutput: z.ZodObject<{
11
13
  result: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
12
14
  }, z.core.$loose>;
13
- declare const nangoActionTriggerPost: import("@keystrokehq/action").WorkflowActionDefinition<{
14
- action_name: string;
15
- connection_id: string;
16
- provider_config_key: string;
17
- input?: Record<string, unknown> | undefined;
18
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
19
- connectionId: z.ZodString;
20
- entityId: z.ZodString;
21
- instanceId: z.ZodString;
22
- }, z.core.$strip>, z.ZodObject<{
23
- generic_api_key: z.ZodString;
24
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
25
- connectionId: z.ZodString;
26
- entityId: z.ZodString;
27
- instanceId: z.ZodString;
28
- }, z.core.$strip>, z.ZodObject<{
29
- generic_api_key: z.ZodString;
30
- }, z.core.$strip>>]>;
15
+ declare const nangoActionTriggerPost: AppAction<typeof NangoActionTriggerPostInput, typeof NangoActionTriggerPostOutput, typeof nango.credential>;
31
16
  //#endregion
32
17
  export { nangoActionTriggerPost };
33
18
  //# sourceMappingURL=action-trigger-post.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"action-trigger-post.d.mts","names":[],"sources":["../../src/actions/action-trigger-post.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;cAM3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"action-trigger-post.d.mts","names":[],"sources":["../../src/actions/action-trigger-post.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;cAM3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const nangoActionTriggerPost = action("NANGO_ACTION_TRIGGER_POST", {
@@ -1 +1 @@
1
- {"version":3,"file":"action-trigger-post.mjs","names":[],"sources":["../../src/actions/action-trigger-post.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoActionTriggerPostInput = z.object({\n input: z.record(z.string(), z.unknown()).describe(\"Optional input payload for the action's exec function. The structure depends on the specific action being triggered.\").optional(),\n action_name: z.string().describe(\"The name of the action to trigger as defined in your Nango integration.\"),\n connection_id: z.string().describe(\"The connection identifier used when creating the connection in Nango.\"),\n provider_config_key: z.string().describe(\"The integration's unique key (provider config key) in Nango.\"),\n});\nexport const NangoActionTriggerPostOutput = z.object({\n result: z.unknown().describe(\"The result returned by the action. Structure depends on the specific action triggered.\").nullable().optional(),\n}).passthrough();\n\nexport const nangoActionTriggerPost = action(\"NANGO_ACTION_TRIGGER_POST\", {\n slug: \"nango-action-trigger-post\",\n name: \"Trigger Nango Action\",\n description: \"Trigger a Nango action to execute a workflow or operation. Use this to run pre-defined actions in your Nango integrations, such as creating issues, sending messages, or fetching data from external APIs. All three of `connection_id`, `provider_config_key`, and `action_name` must simultaneously match a pre-configured integration and connection in Nango — a valid `connection_id` alone is insufficient if the other two don't correspond to an existing setup. Actions may have real upstream side effects (e.g., creating records, sending messages); confirm intent before triggering non-read-only operations.\",\n input: NangoActionTriggerPostInput,\n output: NangoActionTriggerPostOutput,\n});\n"],"mappings":";;AAcA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdyC,EAAE,OAAO;EAClD,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;EACnL,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;EAC1G,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;EAC1G,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACzG,CASS;CACP,QAT0C,EAAE,OAAO,EACnD,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC7I,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"action-trigger-post.mjs","names":[],"sources":["../../src/actions/action-trigger-post.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nango } from \"../app\";\n\nexport const NangoActionTriggerPostInput = z.object({\n input: z.record(z.string(), z.unknown()).describe(\"Optional input payload for the action's exec function. The structure depends on the specific action being triggered.\").optional(),\n action_name: z.string().describe(\"The name of the action to trigger as defined in your Nango integration.\"),\n connection_id: z.string().describe(\"The connection identifier used when creating the connection in Nango.\"),\n provider_config_key: z.string().describe(\"The integration's unique key (provider config key) in Nango.\"),\n});\nexport const NangoActionTriggerPostOutput = z.object({\n result: z.unknown().describe(\"The result returned by the action. Structure depends on the specific action triggered.\").nullable().optional(),\n}).passthrough();\n\nexport const nangoActionTriggerPost: AppAction<\n typeof NangoActionTriggerPostInput,\n typeof NangoActionTriggerPostOutput,\n typeof nango.credential\n> = action(\"NANGO_ACTION_TRIGGER_POST\", {\n slug: \"nango-action-trigger-post\",\n name: \"Trigger Nango Action\",\n description: \"Trigger a Nango action to execute a workflow or operation. Use this to run pre-defined actions in your Nango integrations, such as creating issues, sending messages, or fetching data from external APIs. All three of `connection_id`, `provider_config_key`, and `action_name` must simultaneously match a pre-configured integration and connection in Nango — a valid `connection_id` alone is insufficient if the other two don't correspond to an existing setup. Actions may have real upstream side effects (e.g., creating records, sending messages); confirm intent before triggering non-read-only operations.\",\n input: NangoActionTriggerPostInput,\n output: NangoActionTriggerPostOutput,\n});\n"],"mappings":";;;AAgBA,MAAa,yBAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlByC,EAAE,OAAO;EAClD,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;EACnL,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;EAC1G,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;EAC1G,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACzG,CAaS;CACP,QAb0C,EAAE,OAAO,EACnD,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC7I,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/add-connection.ts
@@ -1 +1 @@
1
- {"version":3,"file":"add-connection.cjs","names":["z","action"],"sources":["../../src/actions/add-connection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoAddConnectionInput = z.object({\n tags: z.record(z.string(), z.unknown()).describe(\"Connection tags as key/value string pairs. Keys are normalized to lowercase. Values max length is 255 chars.\").optional(),\n end_user: z.object({\n id: z.string().describe(\"End user ID\"),\n tags: z.record(z.string(), z.unknown()).describe(\"End user tags\").optional(),\n email: z.string().describe(\"End user email\").optional(),\n display_name: z.string().describe(\"End user display name\").optional(),\n}).describe(\"End user information (deprecated, use tags instead).\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata to be attached to the connection (required for some OAuth APIs).\").optional(),\n credentials: z.union([z.object({\n type: z.string().describe(\"Credential type, must be 'OAUTH1'\"),\n oauth_token: z.string().describe(\"OAuth 1.0 token\"),\n oauth_token_secret: z.string().describe(\"OAuth 1.0 token secret\"),\n}).passthrough().describe(\"OAuth1 credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'OAUTH2'\"),\n expires_at: z.string().nullable().optional(),\n access_token: z.string().describe(\"OAuth 2.0 access token\"),\n refresh_token: z.string().nullable().optional(),\n config_override: z.record(z.string(), z.unknown()).nullable().optional(),\n}).passthrough().describe(\"OAuth2 credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'BASIC'\"),\n password: z.string().describe(\"Password for basic authentication\"),\n username: z.string().describe(\"Username for basic authentication\"),\n}).passthrough().describe(\"Basic authentication credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'API_KEY'\"),\n apiKey: z.string().describe(\"API key for authentication\"),\n}).passthrough().describe(\"API Key credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'OAUTH2_CC'\"),\n token: z.string().describe(\"OAuth 2.0 token\"),\n client_id: z.string().describe(\"OAuth 2.0 client ID\"),\n expires_at: z.string().nullable().optional(),\n client_secret: z.string().describe(\"OAuth 2.0 client secret\"),\n}).passthrough().describe(\"OAuth2 Client credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'NONE' for unauthenticated\"),\n}).passthrough().describe(\"Unauthenticated credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'TBA'\"),\n token_id: z.string().describe(\"Token ID\"),\n token_secret: z.string().describe(\"Token secret\"),\n config_override: z.record(z.string(), z.unknown()).describe(\"Configuration override\"),\n}).passthrough().describe(\"TBA (Token-Based Authentication) credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'APP'\"),\n app_id: z.string().describe(\"GitHub app ID\"),\n installation_id: z.string().describe(\"GitHub installation ID\"),\n}).passthrough().describe(\"GitHub App credentials for the connection.\")]),\n connection_id: z.string().describe(\"The connection ID to use for this connection. If not provided, Nango will generate one.\").optional(),\n connection_config: z.record(z.string(), z.unknown()).describe(\"Additional configuration to be attached to the connection (required for some OAuth APIs).\").optional(),\n provider_config_key: z.string().describe(\"The integration ID that you created on Nango (also called provider config key).\"),\n}).describe(\"Request model for adding a connection to Nango.\");\nconst NangoAddConnection_ConnectionErrorSchema = z.object({\n type: z.string().describe(\"Error type (e.g., 'auth', 'sync').\").nullable(),\n log_id: z.string().describe(\"Log ID for this error.\").nullable(),\n}).passthrough().describe(\"Model for connection errors.\");\nexport const NangoAddConnectionOutput = 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).\"),\n errors: z.array(NangoAddConnection_ConnectionErrorSchema).describe(\"List of connection errors if any.\"),\n end_user: z.record(z.string(), z.unknown()).describe(\"End user information if available.\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Connection metadata.\"),\n provider: z.string().describe(\"Provider/integration name (e.g., 'github', 'slack').\").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(\"The credentials attached to the connection.\"),\n connection_id: z.string().describe(\"The connection ID used to create the connection.\").nullable(),\n last_fetched_at: z.string().describe(\"Last fetched timestamp in ISO 8601 format.\").nullable(),\n connection_config: z.record(z.string(), z.unknown()).describe(\"Connection configuration.\"),\n provider_config_key: z.string().describe(\"The integration ID that was used.\").nullable(),\n}).passthrough().describe(\"Response model for adding a connection.\");\n\nexport const nangoAddConnection = action(\"NANGO_ADD_CONNECTION\", {\n slug: \"nango-add-connection\",\n name: \"Add Connection\",\n description: \"Tool to add a connection with existing credentials to Nango. Use when you want to bulk import existing access tokens into Nango.\",\n input: NangoAddConnectionInput,\n output: NangoAddConnectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;CAC1K,UAAUA,IAAAA,EAAE,OAAO;EACnB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;EACrC,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAA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mCAAmC;CACtG,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sBAAsB;CAC3E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC/F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC9F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6CAA6C;CACrG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAChG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC5F,mBAAmBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2BAA2B;CACzF,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"add-connection.cjs","names":["z","action"],"sources":["../../src/actions/add-connection.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nango } from \"../app\";\n\nexport const NangoAddConnectionInput = z.object({\n tags: z.record(z.string(), z.unknown()).describe(\"Connection tags as key/value string pairs. Keys are normalized to lowercase. Values max length is 255 chars.\").optional(),\n end_user: z.object({\n id: z.string().describe(\"End user ID\"),\n tags: z.record(z.string(), z.unknown()).describe(\"End user tags\").optional(),\n email: z.string().describe(\"End user email\").optional(),\n display_name: z.string().describe(\"End user display name\").optional(),\n}).describe(\"End user information (deprecated, use tags instead).\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata to be attached to the connection (required for some OAuth APIs).\").optional(),\n credentials: z.union([z.object({\n type: z.string().describe(\"Credential type, must be 'OAUTH1'\"),\n oauth_token: z.string().describe(\"OAuth 1.0 token\"),\n oauth_token_secret: z.string().describe(\"OAuth 1.0 token secret\"),\n}).passthrough().describe(\"OAuth1 credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'OAUTH2'\"),\n expires_at: z.string().nullable().optional(),\n access_token: z.string().describe(\"OAuth 2.0 access token\"),\n refresh_token: z.string().nullable().optional(),\n config_override: z.record(z.string(), z.unknown()).nullable().optional(),\n}).passthrough().describe(\"OAuth2 credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'BASIC'\"),\n password: z.string().describe(\"Password for basic authentication\"),\n username: z.string().describe(\"Username for basic authentication\"),\n}).passthrough().describe(\"Basic authentication credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'API_KEY'\"),\n apiKey: z.string().describe(\"API key for authentication\"),\n}).passthrough().describe(\"API Key credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'OAUTH2_CC'\"),\n token: z.string().describe(\"OAuth 2.0 token\"),\n client_id: z.string().describe(\"OAuth 2.0 client ID\"),\n expires_at: z.string().nullable().optional(),\n client_secret: z.string().describe(\"OAuth 2.0 client secret\"),\n}).passthrough().describe(\"OAuth2 Client credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'NONE' for unauthenticated\"),\n}).passthrough().describe(\"Unauthenticated credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'TBA'\"),\n token_id: z.string().describe(\"Token ID\"),\n token_secret: z.string().describe(\"Token secret\"),\n config_override: z.record(z.string(), z.unknown()).describe(\"Configuration override\"),\n}).passthrough().describe(\"TBA (Token-Based Authentication) credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'APP'\"),\n app_id: z.string().describe(\"GitHub app ID\"),\n installation_id: z.string().describe(\"GitHub installation ID\"),\n}).passthrough().describe(\"GitHub App credentials for the connection.\")]),\n connection_id: z.string().describe(\"The connection ID to use for this connection. If not provided, Nango will generate one.\").optional(),\n connection_config: z.record(z.string(), z.unknown()).describe(\"Additional configuration to be attached to the connection (required for some OAuth APIs).\").optional(),\n provider_config_key: z.string().describe(\"The integration ID that you created on Nango (also called provider config key).\"),\n}).describe(\"Request model for adding a connection to Nango.\");\nconst NangoAddConnection_ConnectionErrorSchema = z.object({\n type: z.string().describe(\"Error type (e.g., 'auth', 'sync').\").nullable(),\n log_id: z.string().describe(\"Log ID for this error.\").nullable(),\n}).passthrough().describe(\"Model for connection errors.\");\nexport const NangoAddConnectionOutput = 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).\"),\n errors: z.array(NangoAddConnection_ConnectionErrorSchema).describe(\"List of connection errors if any.\"),\n end_user: z.record(z.string(), z.unknown()).describe(\"End user information if available.\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Connection metadata.\"),\n provider: z.string().describe(\"Provider/integration name (e.g., 'github', 'slack').\").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(\"The credentials attached to the connection.\"),\n connection_id: z.string().describe(\"The connection ID used to create the connection.\").nullable(),\n last_fetched_at: z.string().describe(\"Last fetched timestamp in ISO 8601 format.\").nullable(),\n connection_config: z.record(z.string(), z.unknown()).describe(\"Connection configuration.\"),\n provider_config_key: z.string().describe(\"The integration ID that was used.\").nullable(),\n}).passthrough().describe(\"Response model for adding a connection.\");\n\nexport const nangoAddConnection: AppAction<\n typeof NangoAddConnectionInput,\n typeof NangoAddConnectionOutput,\n typeof nango.credential\n> = action(\"NANGO_ADD_CONNECTION\", {\n slug: \"nango-add-connection\",\n name: \"Add Connection\",\n description: \"Tool to add a connection with existing credentials to Nango. Use when you want to bulk import existing access tokens into Nango.\",\n input: NangoAddConnectionInput,\n output: NangoAddConnectionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;CAC1K,UAAUA,IAAAA,EAAE,OAAO;EACnB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;EACrC,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;EAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EACtD,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACtE,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC3E,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CA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CAAC,CAAC,SAAS;CAC9F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6CAA6C;CACrG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAChG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC5F,mBAAmBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2BAA2B;CACzF,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,qBAITC,eAAAA,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { nango } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/add-connection.d.ts
@@ -67,74 +69,7 @@ declare const NangoAddConnectionOutput: z.ZodObject<{
67
69
  connection_config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
68
70
  provider_config_key: z.ZodNullable<z.ZodString>;
69
71
  }, z.core.$loose>;
70
- declare const nangoAddConnection: import("@keystrokehq/action").WorkflowActionDefinition<{
71
- credentials: {
72
- [x: string]: unknown;
73
- type: string;
74
- oauth_token: string;
75
- oauth_token_secret: string;
76
- } | {
77
- [x: string]: unknown;
78
- type: string;
79
- access_token: string;
80
- expires_at?: string | null | undefined;
81
- refresh_token?: string | null | undefined;
82
- config_override?: Record<string, unknown> | null | undefined;
83
- } | {
84
- [x: string]: unknown;
85
- type: string;
86
- password: string;
87
- username: string;
88
- } | {
89
- [x: string]: unknown;
90
- type: string;
91
- apiKey: string;
92
- } | {
93
- [x: string]: unknown;
94
- type: string;
95
- token: string;
96
- client_id: string;
97
- client_secret: string;
98
- expires_at?: string | null | undefined;
99
- } | {
100
- [x: string]: unknown;
101
- type: string;
102
- } | {
103
- [x: string]: unknown;
104
- type: string;
105
- token_id: string;
106
- token_secret: string;
107
- config_override: Record<string, unknown>;
108
- } | {
109
- [x: string]: unknown;
110
- type: string;
111
- app_id: string;
112
- installation_id: string;
113
- };
114
- provider_config_key: string;
115
- tags?: Record<string, unknown> | undefined;
116
- end_user?: {
117
- id: string;
118
- tags?: Record<string, unknown> | undefined;
119
- email?: string | undefined;
120
- display_name?: string | undefined;
121
- } | undefined;
122
- metadata?: Record<string, unknown> | undefined;
123
- connection_id?: string | undefined;
124
- connection_config?: Record<string, unknown> | undefined;
125
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
126
- connectionId: z.ZodString;
127
- entityId: z.ZodString;
128
- instanceId: z.ZodString;
129
- }, z.core.$strip>, z.ZodObject<{
130
- generic_api_key: z.ZodString;
131
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
132
- connectionId: z.ZodString;
133
- entityId: z.ZodString;
134
- instanceId: z.ZodString;
135
- }, z.core.$strip>, z.ZodObject<{
136
- generic_api_key: z.ZodString;
137
- }, z.core.$strip>>]>;
72
+ declare const nangoAddConnection: AppAction<typeof NangoAddConnectionInput, typeof NangoAddConnectionOutput, typeof nango.credential>;
138
73
  //#endregion
139
74
  export { nangoAddConnection };
140
75
  //# sourceMappingURL=add-connection.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-connection.d.cts","names":[],"sources":["../../src/actions/add-connection.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoDvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAgBxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"add-connection.d.cts","names":[],"sources":["../../src/actions/add-connection.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoDvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAgBxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { nango } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/add-connection.d.ts
@@ -67,74 +69,7 @@ declare const NangoAddConnectionOutput: z.ZodObject<{
67
69
  connection_config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
68
70
  provider_config_key: z.ZodNullable<z.ZodString>;
69
71
  }, z.core.$loose>;
70
- declare const nangoAddConnection: import("@keystrokehq/action").WorkflowActionDefinition<{
71
- credentials: {
72
- [x: string]: unknown;
73
- type: string;
74
- oauth_token: string;
75
- oauth_token_secret: string;
76
- } | {
77
- [x: string]: unknown;
78
- type: string;
79
- access_token: string;
80
- expires_at?: string | null | undefined;
81
- refresh_token?: string | null | undefined;
82
- config_override?: Record<string, unknown> | null | undefined;
83
- } | {
84
- [x: string]: unknown;
85
- type: string;
86
- password: string;
87
- username: string;
88
- } | {
89
- [x: string]: unknown;
90
- type: string;
91
- apiKey: string;
92
- } | {
93
- [x: string]: unknown;
94
- type: string;
95
- token: string;
96
- client_id: string;
97
- client_secret: string;
98
- expires_at?: string | null | undefined;
99
- } | {
100
- [x: string]: unknown;
101
- type: string;
102
- } | {
103
- [x: string]: unknown;
104
- type: string;
105
- token_id: string;
106
- token_secret: string;
107
- config_override: Record<string, unknown>;
108
- } | {
109
- [x: string]: unknown;
110
- type: string;
111
- app_id: string;
112
- installation_id: string;
113
- };
114
- provider_config_key: string;
115
- tags?: Record<string, unknown> | undefined;
116
- end_user?: {
117
- id: string;
118
- tags?: Record<string, unknown> | undefined;
119
- email?: string | undefined;
120
- display_name?: string | undefined;
121
- } | undefined;
122
- metadata?: Record<string, unknown> | undefined;
123
- connection_id?: string | undefined;
124
- connection_config?: Record<string, unknown> | undefined;
125
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
126
- connectionId: z.ZodString;
127
- entityId: z.ZodString;
128
- instanceId: z.ZodString;
129
- }, z.core.$strip>, z.ZodObject<{
130
- generic_api_key: z.ZodString;
131
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
132
- connectionId: z.ZodString;
133
- entityId: z.ZodString;
134
- instanceId: z.ZodString;
135
- }, z.core.$strip>, z.ZodObject<{
136
- generic_api_key: z.ZodString;
137
- }, z.core.$strip>>]>;
72
+ declare const nangoAddConnection: AppAction<typeof NangoAddConnectionInput, typeof NangoAddConnectionOutput, typeof nango.credential>;
138
73
  //#endregion
139
74
  export { nangoAddConnection };
140
75
  //# sourceMappingURL=add-connection.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-connection.d.mts","names":[],"sources":["../../src/actions/add-connection.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoDvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAgBxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"add-connection.d.mts","names":[],"sources":["../../src/actions/add-connection.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoDvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAgBxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/add-connection.ts
@@ -1 +1 @@
1
- {"version":3,"file":"add-connection.mjs","names":[],"sources":["../../src/actions/add-connection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoAddConnectionInput = z.object({\n tags: z.record(z.string(), z.unknown()).describe(\"Connection tags as key/value string pairs. Keys are normalized to lowercase. Values max length is 255 chars.\").optional(),\n end_user: z.object({\n id: z.string().describe(\"End user ID\"),\n tags: z.record(z.string(), z.unknown()).describe(\"End user tags\").optional(),\n email: z.string().describe(\"End user email\").optional(),\n display_name: z.string().describe(\"End user display name\").optional(),\n}).describe(\"End user information (deprecated, use tags instead).\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata to be attached to the connection (required for some OAuth APIs).\").optional(),\n credentials: z.union([z.object({\n type: z.string().describe(\"Credential type, must be 'OAUTH1'\"),\n oauth_token: z.string().describe(\"OAuth 1.0 token\"),\n oauth_token_secret: z.string().describe(\"OAuth 1.0 token secret\"),\n}).passthrough().describe(\"OAuth1 credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'OAUTH2'\"),\n expires_at: z.string().nullable().optional(),\n access_token: z.string().describe(\"OAuth 2.0 access token\"),\n refresh_token: z.string().nullable().optional(),\n config_override: z.record(z.string(), z.unknown()).nullable().optional(),\n}).passthrough().describe(\"OAuth2 credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'BASIC'\"),\n password: z.string().describe(\"Password for basic authentication\"),\n username: z.string().describe(\"Username for basic authentication\"),\n}).passthrough().describe(\"Basic authentication credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'API_KEY'\"),\n apiKey: z.string().describe(\"API key for authentication\"),\n}).passthrough().describe(\"API Key credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'OAUTH2_CC'\"),\n token: z.string().describe(\"OAuth 2.0 token\"),\n client_id: z.string().describe(\"OAuth 2.0 client ID\"),\n expires_at: z.string().nullable().optional(),\n client_secret: z.string().describe(\"OAuth 2.0 client secret\"),\n}).passthrough().describe(\"OAuth2 Client credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'NONE' for unauthenticated\"),\n}).passthrough().describe(\"Unauthenticated credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'TBA'\"),\n token_id: z.string().describe(\"Token ID\"),\n token_secret: z.string().describe(\"Token secret\"),\n config_override: z.record(z.string(), z.unknown()).describe(\"Configuration override\"),\n}).passthrough().describe(\"TBA (Token-Based Authentication) credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'APP'\"),\n app_id: z.string().describe(\"GitHub app ID\"),\n installation_id: z.string().describe(\"GitHub installation ID\"),\n}).passthrough().describe(\"GitHub App credentials for the connection.\")]),\n connection_id: z.string().describe(\"The connection ID to use for this connection. If not provided, Nango will generate one.\").optional(),\n connection_config: z.record(z.string(), z.unknown()).describe(\"Additional configuration to be attached to the connection (required for some OAuth APIs).\").optional(),\n provider_config_key: z.string().describe(\"The integration ID that you created on Nango (also called provider config key).\"),\n}).describe(\"Request model for adding a connection to Nango.\");\nconst NangoAddConnection_ConnectionErrorSchema = z.object({\n type: z.string().describe(\"Error type (e.g., 'auth', 'sync').\").nullable(),\n log_id: z.string().describe(\"Log ID for this error.\").nullable(),\n}).passthrough().describe(\"Model for connection errors.\");\nexport const NangoAddConnectionOutput = 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).\"),\n errors: z.array(NangoAddConnection_ConnectionErrorSchema).describe(\"List of connection errors if any.\"),\n end_user: z.record(z.string(), z.unknown()).describe(\"End user information if available.\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Connection metadata.\"),\n provider: z.string().describe(\"Provider/integration name (e.g., 'github', 'slack').\").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(\"The credentials attached to the connection.\"),\n connection_id: z.string().describe(\"The connection ID used to create the connection.\").nullable(),\n last_fetched_at: z.string().describe(\"Last fetched timestamp in ISO 8601 format.\").nullable(),\n connection_config: z.record(z.string(), z.unknown()).describe(\"Connection configuration.\"),\n provider_config_key: z.string().describe(\"The integration ID that was used.\").nullable(),\n}).passthrough().describe(\"Response model for adding a connection.\");\n\nexport const nangoAddConnection = action(\"NANGO_ADD_CONNECTION\", {\n slug: \"nango-add-connection\",\n name: \"Add Connection\",\n description: \"Tool to add a connection with existing credentials to Nango. Use when you want to bulk import existing access tokens into Nango.\",\n input: NangoAddConnectionInput,\n output: NangoAddConnectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;CAC1K,UAAU,EAAE,OAAO;EACnB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;EACrC,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;EAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EACtD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uBAA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AChG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAC5F,mBAAmB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2BAA2B;EACzF,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"add-connection.mjs","names":[],"sources":["../../src/actions/add-connection.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nango } from \"../app\";\n\nexport const NangoAddConnectionInput = z.object({\n tags: z.record(z.string(), z.unknown()).describe(\"Connection tags as key/value string pairs. Keys are normalized to lowercase. Values max length is 255 chars.\").optional(),\n end_user: z.object({\n id: z.string().describe(\"End user ID\"),\n tags: z.record(z.string(), z.unknown()).describe(\"End user tags\").optional(),\n email: z.string().describe(\"End user email\").optional(),\n display_name: z.string().describe(\"End user display name\").optional(),\n}).describe(\"End user information (deprecated, use tags instead).\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata to be attached to the connection (required for some OAuth APIs).\").optional(),\n credentials: z.union([z.object({\n type: z.string().describe(\"Credential type, must be 'OAUTH1'\"),\n oauth_token: z.string().describe(\"OAuth 1.0 token\"),\n oauth_token_secret: z.string().describe(\"OAuth 1.0 token secret\"),\n}).passthrough().describe(\"OAuth1 credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'OAUTH2'\"),\n expires_at: z.string().nullable().optional(),\n access_token: z.string().describe(\"OAuth 2.0 access token\"),\n refresh_token: z.string().nullable().optional(),\n config_override: z.record(z.string(), z.unknown()).nullable().optional(),\n}).passthrough().describe(\"OAuth2 credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'BASIC'\"),\n password: z.string().describe(\"Password for basic authentication\"),\n username: z.string().describe(\"Username for basic authentication\"),\n}).passthrough().describe(\"Basic authentication credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'API_KEY'\"),\n apiKey: z.string().describe(\"API key for authentication\"),\n}).passthrough().describe(\"API Key credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'OAUTH2_CC'\"),\n token: z.string().describe(\"OAuth 2.0 token\"),\n client_id: z.string().describe(\"OAuth 2.0 client ID\"),\n expires_at: z.string().nullable().optional(),\n client_secret: z.string().describe(\"OAuth 2.0 client secret\"),\n}).passthrough().describe(\"OAuth2 Client credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'NONE' for unauthenticated\"),\n}).passthrough().describe(\"Unauthenticated credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'TBA'\"),\n token_id: z.string().describe(\"Token ID\"),\n token_secret: z.string().describe(\"Token secret\"),\n config_override: z.record(z.string(), z.unknown()).describe(\"Configuration override\"),\n}).passthrough().describe(\"TBA (Token-Based Authentication) credentials for the connection.\"), z.object({\n type: z.string().describe(\"Credential type, must be 'APP'\"),\n app_id: z.string().describe(\"GitHub app ID\"),\n installation_id: z.string().describe(\"GitHub installation ID\"),\n}).passthrough().describe(\"GitHub App credentials for the connection.\")]),\n connection_id: z.string().describe(\"The connection ID to use for this connection. If not provided, Nango will generate one.\").optional(),\n connection_config: z.record(z.string(), z.unknown()).describe(\"Additional configuration to be attached to the connection (required for some OAuth APIs).\").optional(),\n provider_config_key: z.string().describe(\"The integration ID that you created on Nango (also called provider config key).\"),\n}).describe(\"Request model for adding a connection to Nango.\");\nconst NangoAddConnection_ConnectionErrorSchema = z.object({\n type: z.string().describe(\"Error type (e.g., 'auth', 'sync').\").nullable(),\n log_id: z.string().describe(\"Log ID for this error.\").nullable(),\n}).passthrough().describe(\"Model for connection errors.\");\nexport const NangoAddConnectionOutput = 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).\"),\n errors: z.array(NangoAddConnection_ConnectionErrorSchema).describe(\"List of connection errors if any.\"),\n end_user: z.record(z.string(), z.unknown()).describe(\"End user information if available.\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Connection metadata.\"),\n provider: z.string().describe(\"Provider/integration name (e.g., 'github', 'slack').\").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(\"The credentials attached to the connection.\"),\n connection_id: z.string().describe(\"The connection ID used to create the connection.\").nullable(),\n last_fetched_at: z.string().describe(\"Last fetched timestamp in ISO 8601 format.\").nullable(),\n connection_config: z.record(z.string(), z.unknown()).describe(\"Connection configuration.\"),\n provider_config_key: z.string().describe(\"The integration ID that was used.\").nullable(),\n}).passthrough().describe(\"Response model for adding a connection.\");\n\nexport const nangoAddConnection: AppAction<\n typeof NangoAddConnectionInput,\n typeof NangoAddConnectionOutput,\n typeof nango.credential\n> = action(\"NANGO_ADD_CONNECTION\", {\n slug: \"nango-add-connection\",\n name: \"Add Connection\",\n description: \"Tool to add a connection with existing credentials to Nango. Use when you want to bulk import existing access tokens into Nango.\",\n input: NangoAddConnectionInput,\n output: NangoAddConnectionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;CAC1K,UAAU,EAAE,OAAO;EACnB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;EACrC,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;EAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,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6CAA6C;EACrG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAChG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAC5F,mBAAmB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2BAA2B;EACzF,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/connection-get.ts
@@ -1 +1 @@
1
- {"version":3,"file":"connection-get.cjs","names":["z","action"],"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}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().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,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CA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,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC/E,QAAQA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC1F,UAAU,iCAAiC,SAAS,CAAC,CAAC,SAAS;CAC/D,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACpE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACvG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AACvF,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,aAAaA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,gDAAgD,EACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8LAA8L;AAExN,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"connection-get.cjs","names":["z","action"],"sources":["../../src/actions/connection-get.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nango } from \"../app\";\n\nexport const 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}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().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: AppAction<\n typeof NangoConnectionGetInput,\n typeof NangoConnectionGetOutput,\n typeof nango.credential\n> = 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":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACtF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACtH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC1E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACpJ,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,mGAAmG;AAC/G,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAA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AC,SAAS;CACvG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AACvF,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,aAAaA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,gDAAgD,EACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8LAA8L;AAExN,MAAa,qBAITC,eAAAA,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { nango } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/connection-get.d.ts
@@ -29,26 +31,7 @@ declare const NangoConnectionGetOutput: z.ZodObject<{
29
31
  provider_config_key: z.ZodNullable<z.ZodString>;
30
32
  }, z.core.$loose>>;
31
33
  }, z.core.$loose>;
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<"nango", z.ZodObject<{
40
- connectionId: z.ZodString;
41
- entityId: z.ZodString;
42
- instanceId: z.ZodString;
43
- }, z.core.$strip>, z.ZodObject<{
44
- generic_api_key: z.ZodString;
45
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
46
- connectionId: z.ZodString;
47
- entityId: z.ZodString;
48
- instanceId: z.ZodString;
49
- }, z.core.$strip>, z.ZodObject<{
50
- generic_api_key: z.ZodString;
51
- }, z.core.$strip>>]>;
34
+ declare const nangoConnectionGet: AppAction<typeof NangoConnectionGetInput, typeof NangoConnectionGetOutput, typeof nango.credential>;
52
35
  //#endregion
53
36
  export { nangoConnectionGet };
54
37
  //# 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,EAAuB,CAAA,CAAA,SAAA;;;;;;;;cA4BvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"connection-get.d.cts","names":[],"sources":["../../src/actions/connection-get.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;cA4BvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAIxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { nango } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/connection-get.d.ts
@@ -29,26 +31,7 @@ declare const NangoConnectionGetOutput: z.ZodObject<{
29
31
  provider_config_key: z.ZodNullable<z.ZodString>;
30
32
  }, z.core.$loose>>;
31
33
  }, z.core.$loose>;
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<"nango", z.ZodObject<{
40
- connectionId: z.ZodString;
41
- entityId: z.ZodString;
42
- instanceId: z.ZodString;
43
- }, z.core.$strip>, z.ZodObject<{
44
- generic_api_key: z.ZodString;
45
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
46
- connectionId: z.ZodString;
47
- entityId: z.ZodString;
48
- instanceId: z.ZodString;
49
- }, z.core.$strip>, z.ZodObject<{
50
- generic_api_key: z.ZodString;
51
- }, z.core.$strip>>]>;
34
+ declare const nangoConnectionGet: AppAction<typeof NangoConnectionGetInput, typeof NangoConnectionGetOutput, typeof nango.credential>;
52
35
  //#endregion
53
36
  export { nangoConnectionGet };
54
37
  //# 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,EAAuB,CAAA,CAAA,SAAA;;;;;;;;cA4BvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"connection-get.d.mts","names":[],"sources":["../../src/actions/connection-get.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;cA4BvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAIxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/connection-get.ts
@@ -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.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}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAM,mCAAmC,EAAE,OAAO;CAChD,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,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ection-get.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nango } from \"../app\";\n\nexport const 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}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().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: AppAction<\n typeof NangoConnectionGetInput,\n typeof NangoConnectionGetOutput,\n typeof nango.credential\n> = 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":";;;;AAMA,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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,qDAAqD,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AAKvF,MAAa,qBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbsC,EAAE,OAAO,EAC/C,aAAa,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,gDAAgD,EACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8LAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-connect-session.ts