@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,3 +1,5 @@
1
+ import { nango } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/edit-connection.d.ts
@@ -15,29 +17,7 @@ declare const NangoEditConnectionInput: z.ZodObject<{
15
17
  declare const NangoEditConnectionOutput: z.ZodObject<{
16
18
  success: z.ZodNullable<z.ZodBoolean>;
17
19
  }, z.core.$loose>;
18
- declare const nangoEditConnection: 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<"nango", z.ZodObject<{
29
- connectionId: z.ZodString;
30
- entityId: z.ZodString;
31
- instanceId: z.ZodString;
32
- }, z.core.$strip>, z.ZodObject<{
33
- generic_api_key: z.ZodString;
34
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
35
- connectionId: z.ZodString;
36
- entityId: z.ZodString;
37
- instanceId: z.ZodString;
38
- }, z.core.$strip>, z.ZodObject<{
39
- generic_api_key: z.ZodString;
40
- }, z.core.$strip>>]>;
20
+ declare const nangoEditConnection: AppAction<typeof NangoEditConnectionInput, typeof NangoEditConnectionOutput, typeof nango.credential>;
41
21
  //#endregion
42
22
  export { nangoEditConnection };
43
23
  //# sourceMappingURL=edit-connection.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"edit-connection.d.cts","names":[],"sources":["../../src/actions/edit-connection.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"edit-connection.d.cts","names":[],"sources":["../../src/actions/edit-connection.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { nango } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/edit-connection.d.ts
@@ -15,29 +17,7 @@ declare const NangoEditConnectionInput: z.ZodObject<{
15
17
  declare const NangoEditConnectionOutput: z.ZodObject<{
16
18
  success: z.ZodNullable<z.ZodBoolean>;
17
19
  }, z.core.$loose>;
18
- declare const nangoEditConnection: 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<"nango", z.ZodObject<{
29
- connectionId: z.ZodString;
30
- entityId: z.ZodString;
31
- instanceId: z.ZodString;
32
- }, z.core.$strip>, z.ZodObject<{
33
- generic_api_key: z.ZodString;
34
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
35
- connectionId: z.ZodString;
36
- entityId: z.ZodString;
37
- instanceId: z.ZodString;
38
- }, z.core.$strip>, z.ZodObject<{
39
- generic_api_key: z.ZodString;
40
- }, z.core.$strip>>]>;
20
+ declare const nangoEditConnection: AppAction<typeof NangoEditConnectionInput, typeof NangoEditConnectionOutput, typeof nango.credential>;
41
21
  //#endregion
42
22
  export { nangoEditConnection };
43
23
  //# sourceMappingURL=edit-connection.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"edit-connection.d.mts","names":[],"sources":["../../src/actions/edit-connection.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"edit-connection.d.mts","names":[],"sources":["../../src/actions/edit-connection.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const nangoEditConnection = action("NANGO_EDIT_CONNECTION", {
@@ -1 +1 @@
1
- {"version":3,"file":"edit-connection.mjs","names":[],"sources":["../../src/actions/edit-connection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoEditConnectionInput = z.object({\n tags: z.record(z.string(), z.unknown()).describe(\"Connection tags (key/value strings). Keys are normalized to lowercase. Max value length: 255 characters.\").optional(),\n end_user: z.object({\n id: z.string().describe(\"End user ID (required when updating end user)\"),\n tags: z.record(z.string(), z.unknown()).describe(\"Tags associated with the end user\").optional(),\n email: z.string().describe(\"End user email address\").optional(),\n display_name: z.string().describe(\"End user display name\").optional(),\n}).describe(\"End user information to update on the connection.\\nDeprecated - use tags instead for new implementations.\").optional(),\n connection_id: z.string().describe(\"The connection ID used to create the connection\"),\n provider_config_key: z.string().describe(\"The integration ID used to create the connection (aka Unique Key)\"),\n}).describe(\"Request model for editing a Nango connection's tags and metadata.\");\nexport const NangoEditConnectionOutput = z.object({\n success: z.boolean().describe(\"Whether the connection was successfully updated\").nullable(),\n}).passthrough().describe(\"Response model for editing a Nango connection.\");\n\nexport const nangoEditConnection = action(\"NANGO_EDIT_CONNECTION\", {\n slug: \"nango-edit-connection\",\n name: \"Edit Connection\",\n description: \"Tool to edit a connection's tags and metadata. Use when you need to update connection attributes like environment tags, team assignments, or end user information.\",\n input: NangoEditConnectionInput,\n output: NangoEditConnectionOutput,\n});\n"],"mappings":";;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"}
1
+ {"version":3,"file":"edit-connection.mjs","names":[],"sources":["../../src/actions/edit-connection.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nango } from \"../app\";\n\nexport const NangoEditConnectionInput = z.object({\n tags: z.record(z.string(), z.unknown()).describe(\"Connection tags (key/value strings). Keys are normalized to lowercase. Max value length: 255 characters.\").optional(),\n end_user: z.object({\n id: z.string().describe(\"End user ID (required when updating end user)\"),\n tags: z.record(z.string(), z.unknown()).describe(\"Tags associated with the end user\").optional(),\n email: z.string().describe(\"End user email address\").optional(),\n display_name: z.string().describe(\"End user display name\").optional(),\n}).describe(\"End user information to update on the connection.\\nDeprecated - use tags instead for new implementations.\").optional(),\n connection_id: z.string().describe(\"The connection ID used to create the connection\"),\n provider_config_key: z.string().describe(\"The integration ID used to create the connection (aka Unique Key)\"),\n}).describe(\"Request model for editing a Nango connection's tags and metadata.\");\nexport const NangoEditConnectionOutput = z.object({\n success: z.boolean().describe(\"Whether the connection was successfully updated\").nullable(),\n}).passthrough().describe(\"Response model for editing a Nango connection.\");\n\nexport const nangoEditConnection: AppAction<\n typeof NangoEditConnectionInput,\n typeof NangoEditConnectionOutput,\n typeof nango.credential\n> = action(\"NANGO_EDIT_CONNECTION\", {\n slug: \"nango-edit-connection\",\n name: \"Edit Connection\",\n description: \"Tool to edit a connection's tags and metadata. Use when you need to update connection attributes like environment tags, team assignments, or end user information.\",\n input: NangoEditConnectionInput,\n output: NangoEditConnectionOutput,\n});\n"],"mappings":";;;AAqBA,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvBsC,EAAE,OAAO;EAC/C,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;EACtK,UAAU,EAAE,OAAO;GACnB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;GACvE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;GAC/F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;GAC9D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EACtE,CAAC,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;EAChI,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EACpF,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CAC9G,CAAC,CAAC,CAAC,SAAS,mEAaH;CACP,QAbuC,EAAE,OAAO,EAChD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,EAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAWhB;AACV,CAAC"}
@@ -1,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/get-connection.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-connection.cjs","names":["z","action"],"sources":["../../src/actions/get-connection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoGetConnectionInput = z.object({\n connection_id: z.string().describe(\"The connection ID used to create the connection. This identifies the specific connection to retrieve.\"),\n force_refresh: z.boolean().describe(\"If true, Nango will attempt to refresh the access token regardless of its expiration status. Default is false.\").optional(),\n refresh_token: z.boolean().describe(\"If true, return the refresh token as part of the response. Default is false.\").optional(),\n provider_config_key: z.string().describe(\"The integration ID (Unique Key) used to create the connection. Required to identify which integration this connection belongs to.\"),\n refresh_github_app_jwt_token: z.boolean().describe(\"If true, this will refresh the JWT token for GitHub App / GitHub App OAuth connections.\").optional(),\n}).describe(\"Request model for retrieving a specific connection with credentials.\");\nconst NangoGetConnection_ConnectionErrorSchema = z.object({\n type: z.string().describe(\"Error type identifier\").nullable(),\n log_id: z.string().describe(\"Associated log ID for debugging\").nullable(),\n}).passthrough().describe(\"Represents an error associated with a connection.\");\nconst NangoGetConnection_EndUserSchema = z.object({\n id: z.string().describe(\"End user ID\").nullable(),\n tags: z.record(z.string(), z.unknown()).describe(\"Tags associated with the end user\").nullable().optional(),\n email: z.string().describe(\"End user email\").nullable().optional(),\n display_name: z.string().describe(\"End user display name\").nullable().optional(),\n organization: z.record(z.string(), z.unknown()).describe(\"Organization details\").nullable().optional(),\n}).passthrough().describe(\"End user information associated with a connection.\");\nexport const NangoGetConnectionOutput = z.object({\n id: z.number().int().describe(\"Internal Nango connection identifier\").nullable(),\n tags: z.record(z.string(), z.unknown()).describe(\"Connection tags (key/value strings). Keys are normalized to lowercase.\"),\n errors: z.array(NangoGetConnection_ConnectionErrorSchema).describe(\"List of connection errors (auth/sync issues)\"),\n end_user: NangoGetConnection_EndUserSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata attached to the connection\"),\n provider: z.string().describe(\"Provider/integration name\").nullable(),\n created_at: z.string().describe(\"Connection creation timestamp in ISO 8601 format\").nullable(),\n updated_at: z.string().describe(\"Connection last update timestamp in ISO 8601 format\").nullable(),\n credentials: z.record(z.string(), z.unknown()).describe(\"Authentication credentials for this connection. Type varies by auth method (OAuth2, API Key, Basic, etc.). Contains fields like type, access_token, refresh_token, etc. depending on the auth method.\"),\n connection_id: z.string().describe(\"The connection ID provided when creating the connection\").nullable(),\n last_fetched_at: z.string().describe(\"Last time connection data was fetched\").nullable(),\n connection_config: z.record(z.string(), z.unknown()).describe(\"Connection configuration data\"),\n provider_config_key: z.string().describe(\"Integration/provider configuration key (unique key)\").nullable(),\n}).passthrough().describe(\"Response model for retrieving a connection with credentials.\\nContains full connection details including authentication credentials.\");\n\nexport const nangoGetConnection = action(\"NANGO_GET_CONNECTION\", {\n slug: \"nango-get-connection\",\n name: \"Get Connection with Credentials\",\n description: \"Retrieve a specific connection with its credentials. Automatically checks if the access token has expired and refreshes it if needed. Use this action when you need to access the authentication credentials for a connection to make API calls to the provider. The credentials returned depend on the auth type (OAuth2, API Key, Basic Auth, etc.). Returns 404 if the connection does not exist, 424 if token refresh is exhausted.\",\n input: NangoGetConnectionInput,\n output: NangoGetConnectionOutput,\n});\n"],"mappings":";;;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,SAA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EAAwE;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
+ {"version":3,"file":"get-connection.cjs","names":["z","action"],"sources":["../../src/actions/get-connection.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nango } from \"../app\";\n\nexport const NangoGetConnectionInput = z.object({\n connection_id: z.string().describe(\"The connection ID used to create the connection. This identifies the specific connection to retrieve.\"),\n force_refresh: z.boolean().describe(\"If true, Nango will attempt to refresh the access token regardless of its expiration status. Default is false.\").optional(),\n refresh_token: z.boolean().describe(\"If true, return the refresh token as part of the response. Default is false.\").optional(),\n provider_config_key: z.string().describe(\"The integration ID (Unique Key) used to create the connection. Required to identify which integration this connection belongs to.\"),\n refresh_github_app_jwt_token: z.boolean().describe(\"If true, this will refresh the JWT token for GitHub App / GitHub App OAuth connections.\").optional(),\n}).describe(\"Request model for retrieving a specific connection with credentials.\");\nconst NangoGetConnection_ConnectionErrorSchema = z.object({\n type: z.string().describe(\"Error type identifier\").nullable(),\n log_id: z.string().describe(\"Associated log ID for debugging\").nullable(),\n}).passthrough().describe(\"Represents an error associated with a connection.\");\nconst NangoGetConnection_EndUserSchema = z.object({\n id: z.string().describe(\"End user ID\").nullable(),\n tags: z.record(z.string(), z.unknown()).describe(\"Tags associated with the end user\").nullable().optional(),\n email: z.string().describe(\"End user email\").nullable().optional(),\n display_name: z.string().describe(\"End user display name\").nullable().optional(),\n organization: z.record(z.string(), z.unknown()).describe(\"Organization details\").nullable().optional(),\n}).passthrough().describe(\"End user information associated with a connection.\");\nexport const NangoGetConnectionOutput = z.object({\n id: z.number().int().describe(\"Internal Nango connection identifier\").nullable(),\n tags: z.record(z.string(), z.unknown()).describe(\"Connection tags (key/value strings). Keys are normalized to lowercase.\"),\n errors: z.array(NangoGetConnection_ConnectionErrorSchema).describe(\"List of connection errors (auth/sync issues)\"),\n end_user: NangoGetConnection_EndUserSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata attached to the connection\"),\n provider: z.string().describe(\"Provider/integration name\").nullable(),\n created_at: z.string().describe(\"Connection creation timestamp in ISO 8601 format\").nullable(),\n updated_at: z.string().describe(\"Connection last update timestamp in ISO 8601 format\").nullable(),\n credentials: z.record(z.string(), z.unknown()).describe(\"Authentication credentials for this connection. Type varies by auth method (OAuth2, API Key, Basic, etc.). Contains fields like type, access_token, refresh_token, etc. depending on the auth method.\"),\n connection_id: z.string().describe(\"The connection ID provided when creating the connection\").nullable(),\n last_fetched_at: z.string().describe(\"Last time connection data was fetched\").nullable(),\n connection_config: z.record(z.string(), z.unknown()).describe(\"Connection configuration data\"),\n provider_config_key: z.string().describe(\"Integration/provider configuration key (unique key)\").nullable(),\n}).passthrough().describe(\"Response model for retrieving a connection with credentials.\\nContains full connection details including authentication credentials.\");\n\nexport const nangoGetConnection: AppAction<\n typeof NangoGetConnectionInput,\n typeof NangoGetConnectionOutput,\n typeof nango.credential\n> = action(\"NANGO_GET_CONNECTION\", {\n slug: \"nango-get-connection\",\n name: \"Get Connection with Credentials\",\n description: \"Retrieve a specific connection with its credentials. Automatically checks if the access token has expired and refreshes it if needed. Use this action when you need to access the authentication credentials for a connection to make API calls to the provider. The credentials returned depend on the auth type (OAuth2, API Key, Basic Auth, etc.). Returns 404 if the connection does not exist, 424 if token refresh is exhausted.\",\n input: NangoGetConnectionInput,\n output: NangoGetConnectionOutput,\n});\n"],"mappings":";;;;AAMA,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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C/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,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/get-connection.d.ts
@@ -32,25 +34,7 @@ declare const NangoGetConnectionOutput: z.ZodObject<{
32
34
  connection_config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
33
35
  provider_config_key: z.ZodNullable<z.ZodString>;
34
36
  }, z.core.$loose>;
35
- declare const nangoGetConnection: 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<"nango", z.ZodObject<{
42
- connectionId: z.ZodString;
43
- entityId: z.ZodString;
44
- instanceId: z.ZodString;
45
- }, z.core.$strip>, z.ZodObject<{
46
- generic_api_key: z.ZodString;
47
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
48
- connectionId: z.ZodString;
49
- entityId: z.ZodString;
50
- instanceId: z.ZodString;
51
- }, z.core.$strip>, z.ZodObject<{
52
- generic_api_key: z.ZodString;
53
- }, z.core.$strip>>]>;
37
+ declare const nangoGetConnection: AppAction<typeof NangoGetConnectionInput, typeof NangoGetConnectionOutput, typeof nango.credential>;
54
38
  //#endregion
55
39
  export { nangoGetConnection };
56
40
  //# sourceMappingURL=get-connection.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-connection.d.cts","names":[],"sources":["../../src/actions/get-connection.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;cAkBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAgBxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"get-connection.d.cts","names":[],"sources":["../../src/actions/get-connection.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;cAkBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAgBxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -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/get-connection.d.ts
@@ -32,25 +34,7 @@ declare const NangoGetConnectionOutput: z.ZodObject<{
32
34
  connection_config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
33
35
  provider_config_key: z.ZodNullable<z.ZodString>;
34
36
  }, z.core.$loose>;
35
- declare const nangoGetConnection: 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<"nango", z.ZodObject<{
42
- connectionId: z.ZodString;
43
- entityId: z.ZodString;
44
- instanceId: z.ZodString;
45
- }, z.core.$strip>, z.ZodObject<{
46
- generic_api_key: z.ZodString;
47
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
48
- connectionId: z.ZodString;
49
- entityId: z.ZodString;
50
- instanceId: z.ZodString;
51
- }, z.core.$strip>, z.ZodObject<{
52
- generic_api_key: z.ZodString;
53
- }, z.core.$strip>>]>;
37
+ declare const nangoGetConnection: AppAction<typeof NangoGetConnectionInput, typeof NangoGetConnectionOutput, typeof nango.credential>;
54
38
  //#endregion
55
39
  export { nangoGetConnection };
56
40
  //# 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,EAAuB,CAAA,CAAA,SAAA;;;;;;;cAkBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAgBxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"get-connection.d.mts","names":[],"sources":["../../src/actions/get-connection.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;cAkBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAgBxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -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/get-connection.ts
@@ -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.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,CA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,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"}
1
+ {"version":3,"file":"get-connection.mjs","names":[],"sources":["../../src/actions/get-connection.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nango } from \"../app\";\n\nexport const NangoGetConnectionInput = z.object({\n connection_id: z.string().describe(\"The connection ID used to create the connection. This identifies the specific connection to retrieve.\"),\n force_refresh: z.boolean().describe(\"If true, Nango will attempt to refresh the access token regardless of its expiration status. Default is false.\").optional(),\n refresh_token: z.boolean().describe(\"If true, return the refresh token as part of the response. Default is false.\").optional(),\n provider_config_key: z.string().describe(\"The integration ID (Unique Key) used to create the connection. Required to identify which integration this connection belongs to.\"),\n refresh_github_app_jwt_token: z.boolean().describe(\"If true, this will refresh the JWT token for GitHub App / GitHub App OAuth connections.\").optional(),\n}).describe(\"Request model for retrieving a specific connection with credentials.\");\nconst NangoGetConnection_ConnectionErrorSchema = z.object({\n type: z.string().describe(\"Error type identifier\").nullable(),\n log_id: z.string().describe(\"Associated log ID for debugging\").nullable(),\n}).passthrough().describe(\"Represents an error associated with a connection.\");\nconst NangoGetConnection_EndUserSchema = z.object({\n id: z.string().describe(\"End user ID\").nullable(),\n tags: z.record(z.string(), z.unknown()).describe(\"Tags associated with the end user\").nullable().optional(),\n email: z.string().describe(\"End user email\").nullable().optional(),\n display_name: z.string().describe(\"End user display name\").nullable().optional(),\n organization: z.record(z.string(), z.unknown()).describe(\"Organization details\").nullable().optional(),\n}).passthrough().describe(\"End user information associated with a connection.\");\nexport const NangoGetConnectionOutput = z.object({\n id: z.number().int().describe(\"Internal Nango connection identifier\").nullable(),\n tags: z.record(z.string(), z.unknown()).describe(\"Connection tags (key/value strings). Keys are normalized to lowercase.\"),\n errors: z.array(NangoGetConnection_ConnectionErrorSchema).describe(\"List of connection errors (auth/sync issues)\"),\n end_user: NangoGetConnection_EndUserSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata attached to the connection\"),\n provider: z.string().describe(\"Provider/integration name\").nullable(),\n created_at: z.string().describe(\"Connection creation timestamp in ISO 8601 format\").nullable(),\n updated_at: z.string().describe(\"Connection last update timestamp in ISO 8601 format\").nullable(),\n credentials: z.record(z.string(), z.unknown()).describe(\"Authentication credentials for this connection. Type varies by auth method (OAuth2, API Key, Basic, etc.). Contains fields like type, access_token, refresh_token, etc. depending on the auth method.\"),\n connection_id: z.string().describe(\"The connection ID provided when creating the connection\").nullable(),\n last_fetched_at: z.string().describe(\"Last time connection data was fetched\").nullable(),\n connection_config: z.record(z.string(), z.unknown()).describe(\"Connection configuration data\"),\n provider_config_key: z.string().describe(\"Integration/provider configuration key (unique key)\").nullable(),\n}).passthrough().describe(\"Response model for retrieving a connection with credentials.\\nContains full connection details including authentication credentials.\");\n\nexport const nangoGetConnection: AppAction<\n typeof NangoGetConnectionInput,\n typeof NangoGetConnectionOutput,\n typeof nango.credential\n> = action(\"NANGO_GET_CONNECTION\", {\n slug: \"nango-get-connection\",\n name: \"Get Connection with Credentials\",\n description: \"Retrieve a specific connection with its credentials. Automatically checks if the access token has expired and refreshes it if needed. Use this action when you need to access the authentication credentials for a connection to make API calls to the provider. The credentials returned depend on the auth type (OAuth2, API Key, Basic Auth, etc.). Returns 404 if the connection does not exist, 424 if token refresh is exhausted.\",\n input: NangoGetConnectionInput,\n output: NangoGetConnectionOutput,\n});\n"],"mappings":";;;;AAMA,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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AAO,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,sIAWhB;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/get-environment-variables.ts
@@ -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.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
+ {"version":3,"file":"get-environment-variables.cjs","names":["z","action"],"sources":["../../src/actions/get-environment-variables.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 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: AppAction<\n typeof NangoGetEnvironmentVariablesInput,\n typeof NangoGetEnvironmentVariablesOutput,\n typeof nango.credential\n> = 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":";;;;AAMA,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,+BAITC,eAAAA,OAAO,mCAAmC;CAC5C,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/get-environment-variables.d.ts
@@ -8,19 +10,7 @@ declare const NangoGetEnvironmentVariablesOutput: z.ZodObject<{
8
10
  value: z.ZodNullable<z.ZodString>;
9
11
  }, z.core.$loose>>;
10
12
  }, z.core.$loose>;
11
- declare const nangoGetEnvironmentVariables: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
12
- connectionId: z.ZodString;
13
- entityId: z.ZodString;
14
- instanceId: z.ZodString;
15
- }, z.core.$strip>, z.ZodObject<{
16
- generic_api_key: z.ZodString;
17
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
18
- connectionId: z.ZodString;
19
- entityId: z.ZodString;
20
- instanceId: z.ZodString;
21
- }, z.core.$strip>, z.ZodObject<{
22
- generic_api_key: z.ZodString;
23
- }, z.core.$strip>>]>;
13
+ declare const nangoGetEnvironmentVariables: AppAction<typeof NangoGetEnvironmentVariablesInput, typeof NangoGetEnvironmentVariablesOutput, typeof nango.credential>;
24
14
  //#endregion
25
15
  export { nangoGetEnvironmentVariables };
26
16
  //# 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,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,UAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"get-environment-variables.d.cts","names":[],"sources":["../../src/actions/get-environment-variables.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAKjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;cAIlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,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/get-environment-variables.d.ts
@@ -8,19 +10,7 @@ declare const NangoGetEnvironmentVariablesOutput: z.ZodObject<{
8
10
  value: z.ZodNullable<z.ZodString>;
9
11
  }, z.core.$loose>>;
10
12
  }, z.core.$loose>;
11
- declare const nangoGetEnvironmentVariables: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
12
- connectionId: z.ZodString;
13
- entityId: z.ZodString;
14
- instanceId: z.ZodString;
15
- }, z.core.$strip>, z.ZodObject<{
16
- generic_api_key: z.ZodString;
17
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
18
- connectionId: z.ZodString;
19
- entityId: z.ZodString;
20
- instanceId: z.ZodString;
21
- }, z.core.$strip>, z.ZodObject<{
22
- generic_api_key: z.ZodString;
23
- }, z.core.$strip>>]>;
13
+ declare const nangoGetEnvironmentVariables: AppAction<typeof NangoGetEnvironmentVariablesInput, typeof NangoGetEnvironmentVariablesOutput, typeof nango.credential>;
24
14
  //#endregion
25
15
  export { nangoGetEnvironmentVariables };
26
16
  //# 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,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,UAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"get-environment-variables.d.mts","names":[],"sources":["../../src/actions/get-environment-variables.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAKjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;cAIlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,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/get-environment-variables.ts
@@ -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.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"}
1
+ {"version":3,"file":"get-environment-variables.mjs","names":[],"sources":["../../src/actions/get-environment-variables.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 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: AppAction<\n typeof NangoGetEnvironmentVariablesInput,\n typeof NangoGetEnvironmentVariablesOutput,\n typeof nango.credential\n> = 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":";;;;AAMA,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,+BAIT,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbgD,EAAE,OAAO,EACzD,WAAW,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,oEAAoE,EAC1J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAWhB;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/get-integration.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-integration.cjs","names":["z","action"],"sources":["../../src/actions/get-integration.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoGetIntegrationInput = z.object({\n include: z.array(z.string()).describe(\"Optional list of additional sensitive data to include in the response (e.g., credentials, webhook_url).\").optional(),\n unique_key: z.string().describe(\"The integration ID (unique_key) that you created in Nango. This is the identifier for your integration configuration.\"),\n}).describe(\"Request model for retrieving a specific integration by its unique key.\");\nconst NangoGetIntegration_IntegrationCredentialsSchema = z.object({\n type: z.string().describe(\"OAuth type (e.g., 'OAUTH2')\").nullable().optional(),\n scopes: z.string().describe(\"OAuth scopes\").nullable().optional(),\n client_id: z.string().describe(\"Client ID for the integration\").nullable().optional(),\n client_secret: z.string().describe(\"Client secret for the integration\").nullable().optional(),\n webhook_secret: z.string().describe(\"Webhook secret key\").nullable().optional(),\n}).passthrough().describe(\"Model representing integration credentials.\");\nconst NangoGetIntegration_IntegrationDataSchema = z.object({\n logo: z.string().describe(\"URL to the integration's logo image.\").nullable().optional(),\n provider: z.string().describe(\"The provider identifier (e.g., 'github', 'slack', 'salesforce').\").nullable(),\n created_at: z.string().describe(\"Timestamp when the integration was created in ISO 8601 format.\").nullable(),\n unique_key: z.string().describe(\"The integration ID (unique_key) that you created in Nango.\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the integration was last updated in ISO 8601 format.\").nullable(),\n credentials: NangoGetIntegration_IntegrationCredentialsSchema.nullable().optional(),\n webhook_url: z.string().describe(\"Configured webhook URL for the integration (only included if requested via 'include' parameter).\").nullable().optional(),\n display_name: z.string().describe(\"Human-readable display name of the integration.\").nullable(),\n}).passthrough().describe(\"Model representing an integration configuration in Nango.\");\nexport const NangoGetIntegrationOutput = z.object({\n data: NangoGetIntegration_IntegrationDataSchema.nullable(),\n}).passthrough().describe(\"Response model for retrieving an integration.\");\n\nexport const nangoGetIntegration = action(\"NANGO_GET_INTEGRATION\", {\n slug: \"nango-get-integration\",\n name: \"Get Integration\",\n description: \"Retrieve detailed configuration for a specific Nango integration by its unique key. Returns integration details including provider, display name, creation/update timestamps, and optionally sensitive data like credentials or webhook URLs if requested via the 'include' parameter. Use this to inspect integration configuration, verify setup, or retrieve credentials for a specific integration. Returns 404 error if the integration unique key does not exist.\",\n input: NangoGetIntegrationInput,\n output: NangoGetIntegrationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CAC1J,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH;AACzJ,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CA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,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-integration.cjs","names":["z","action"],"sources":["../../src/actions/get-integration.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nango } from \"../app\";\n\nexport const NangoGetIntegrationInput = z.object({\n include: z.array(z.string()).describe(\"Optional list of additional sensitive data to include in the response (e.g., credentials, webhook_url).\").optional(),\n unique_key: z.string().describe(\"The integration ID (unique_key) that you created in Nango. This is the identifier for your integration configuration.\"),\n}).describe(\"Request model for retrieving a specific integration by its unique key.\");\nconst NangoGetIntegration_IntegrationCredentialsSchema = z.object({\n type: z.string().describe(\"OAuth type (e.g., 'OAUTH2')\").nullable().optional(),\n scopes: z.string().describe(\"OAuth scopes\").nullable().optional(),\n client_id: z.string().describe(\"Client ID for the integration\").nullable().optional(),\n client_secret: z.string().describe(\"Client secret for the integration\").nullable().optional(),\n webhook_secret: z.string().describe(\"Webhook secret key\").nullable().optional(),\n}).passthrough().describe(\"Model representing integration credentials.\");\nconst NangoGetIntegration_IntegrationDataSchema = z.object({\n logo: z.string().describe(\"URL to the integration's logo image.\").nullable().optional(),\n provider: z.string().describe(\"The provider identifier (e.g., 'github', 'slack', 'salesforce').\").nullable(),\n created_at: z.string().describe(\"Timestamp when the integration was created in ISO 8601 format.\").nullable(),\n unique_key: z.string().describe(\"The integration ID (unique_key) that you created in Nango.\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the integration was last updated in ISO 8601 format.\").nullable(),\n credentials: NangoGetIntegration_IntegrationCredentialsSchema.nullable().optional(),\n webhook_url: z.string().describe(\"Configured webhook URL for the integration (only included if requested via 'include' parameter).\").nullable().optional(),\n display_name: z.string().describe(\"Human-readable display name of the integration.\").nullable(),\n}).passthrough().describe(\"Model representing an integration configuration in Nango.\");\nexport const NangoGetIntegrationOutput = z.object({\n data: NangoGetIntegration_IntegrationDataSchema.nullable(),\n}).passthrough().describe(\"Response model for retrieving an integration.\");\n\nexport const nangoGetIntegration: AppAction<\n typeof NangoGetIntegrationInput,\n typeof NangoGetIntegrationOutput,\n typeof nango.credential\n> = action(\"NANGO_GET_INTEGRATION\", {\n slug: \"nango-get-integration\",\n name: \"Get Integration\",\n description: \"Retrieve detailed configuration for a specific Nango integration by its unique key. Returns integration details including provider, display name, creation/update timestamps, and optionally sensitive data like credentials or webhook URLs if requested via the 'include' parameter. Use this to inspect integration configuration, verify setup, or retrieve credentials for a specific integration. Returns 404 error if the integration unique key does not exist.\",\n input: NangoGetIntegrationInput,\n output: NangoGetIntegrationOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CAC1J,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH;AACzJ,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC3G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC3G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACvG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAChH,aAAa,iDAAiD,SAAS,CAAC,CAAC,SAAS;CAClF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzJ,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AACrF,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,MAAM,0CAA0C,SAAS,EAC3D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAEzE,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { nango } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-integration.d.ts
@@ -23,22 +25,7 @@ declare const NangoGetIntegrationOutput: z.ZodObject<{
23
25
  display_name: z.ZodNullable<z.ZodString>;
24
26
  }, z.core.$loose>>;
25
27
  }, z.core.$loose>;
26
- declare const nangoGetIntegration: import("@keystrokehq/action").WorkflowActionDefinition<{
27
- unique_key: string;
28
- include?: string[] | undefined;
29
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
30
- connectionId: z.ZodString;
31
- entityId: z.ZodString;
32
- instanceId: z.ZodString;
33
- }, z.core.$strip>, z.ZodObject<{
34
- generic_api_key: z.ZodString;
35
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
36
- connectionId: z.ZodString;
37
- entityId: z.ZodString;
38
- instanceId: z.ZodString;
39
- }, z.core.$strip>, z.ZodObject<{
40
- generic_api_key: z.ZodString;
41
- }, z.core.$strip>>]>;
28
+ declare const nangoGetIntegration: AppAction<typeof NangoGetIntegrationInput, typeof NangoGetIntegrationOutput, typeof nango.credential>;
42
29
  //#endregion
43
30
  export { nangoGetIntegration };
44
31
  //# sourceMappingURL=get-integration.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-integration.d.cts","names":[],"sources":["../../src/actions/get-integration.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAqBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"get-integration.d.cts","names":[],"sources":["../../src/actions/get-integration.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAqBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { nango } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-integration.d.ts
@@ -23,22 +25,7 @@ declare const NangoGetIntegrationOutput: z.ZodObject<{
23
25
  display_name: z.ZodNullable<z.ZodString>;
24
26
  }, z.core.$loose>>;
25
27
  }, z.core.$loose>;
26
- declare const nangoGetIntegration: import("@keystrokehq/action").WorkflowActionDefinition<{
27
- unique_key: string;
28
- include?: string[] | undefined;
29
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
30
- connectionId: z.ZodString;
31
- entityId: z.ZodString;
32
- instanceId: z.ZodString;
33
- }, z.core.$strip>, z.ZodObject<{
34
- generic_api_key: z.ZodString;
35
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
36
- connectionId: z.ZodString;
37
- entityId: z.ZodString;
38
- instanceId: z.ZodString;
39
- }, z.core.$strip>, z.ZodObject<{
40
- generic_api_key: z.ZodString;
41
- }, z.core.$strip>>]>;
28
+ declare const nangoGetIntegration: AppAction<typeof NangoGetIntegrationInput, typeof NangoGetIntegrationOutput, typeof nango.credential>;
42
29
  //#endregion
43
30
  export { nangoGetIntegration };
44
31
  //# sourceMappingURL=get-integration.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-integration.d.mts","names":[],"sources":["../../src/actions/get-integration.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAqBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"get-integration.d.mts","names":[],"sources":["../../src/actions/get-integration.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAqBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,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/get-integration.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-integration.mjs","names":[],"sources":["../../src/actions/get-integration.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoGetIntegrationInput = z.object({\n include: z.array(z.string()).describe(\"Optional list of additional sensitive data to include in the response (e.g., credentials, webhook_url).\").optional(),\n unique_key: z.string().describe(\"The integration ID (unique_key) that you created in Nango. This is the identifier for your integration configuration.\"),\n}).describe(\"Request model for retrieving a specific integration by its unique key.\");\nconst NangoGetIntegration_IntegrationCredentialsSchema = z.object({\n type: z.string().describe(\"OAuth type (e.g., 'OAUTH2')\").nullable().optional(),\n scopes: z.string().describe(\"OAuth scopes\").nullable().optional(),\n client_id: z.string().describe(\"Client ID for the integration\").nullable().optional(),\n client_secret: z.string().describe(\"Client secret for the integration\").nullable().optional(),\n webhook_secret: z.string().describe(\"Webhook secret key\").nullable().optional(),\n}).passthrough().describe(\"Model representing integration credentials.\");\nconst NangoGetIntegration_IntegrationDataSchema = z.object({\n logo: z.string().describe(\"URL to the integration's logo image.\").nullable().optional(),\n provider: z.string().describe(\"The provider identifier (e.g., 'github', 'slack', 'salesforce').\").nullable(),\n created_at: z.string().describe(\"Timestamp when the integration was created in ISO 8601 format.\").nullable(),\n unique_key: z.string().describe(\"The integration ID (unique_key) that you created in Nango.\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the integration was last updated in ISO 8601 format.\").nullable(),\n credentials: NangoGetIntegration_IntegrationCredentialsSchema.nullable().optional(),\n webhook_url: z.string().describe(\"Configured webhook URL for the integration (only included if requested via 'include' parameter).\").nullable().optional(),\n display_name: z.string().describe(\"Human-readable display name of the integration.\").nullable(),\n}).passthrough().describe(\"Model representing an integration configuration in Nango.\");\nexport const NangoGetIntegrationOutput = z.object({\n data: NangoGetIntegration_IntegrationDataSchema.nullable(),\n}).passthrough().describe(\"Response model for retrieving an integration.\");\n\nexport const nangoGetIntegration = action(\"NANGO_GET_INTEGRATION\", {\n slug: \"nango-get-integration\",\n name: \"Get Integration\",\n description: \"Retrieve detailed configuration for a specific Nango integration by its unique key. Returns integration details including provider, display name, creation/update timestamps, and optionally sensitive data like credentials or webhook URLs if requested via the 'include' parameter. Use this to inspect integration configuration, verify setup, or retrieve credentials for a specific integration. Returns 404 error if the integration unique key does not exist.\",\n input: NangoGetIntegrationInput,\n output: NangoGetIntegrationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CAC1J,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH;AACzJ,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAM,mDAAmD,EAAE,OAAO;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,MAAM,4CAA4C,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC3G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC3G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACvG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAChH,aAAa,iDAAiD,SAAS,CAAC,CAAC,SAAS;CAClF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzJ,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAKrF,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuC,EAAE,OAAO,EAChD,MAAM,0CAA0C,SAAS,EAC3D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-integration.mjs","names":[],"sources":["../../src/actions/get-integration.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nango } from \"../app\";\n\nexport const NangoGetIntegrationInput = z.object({\n include: z.array(z.string()).describe(\"Optional list of additional sensitive data to include in the response (e.g., credentials, webhook_url).\").optional(),\n unique_key: z.string().describe(\"The integration ID (unique_key) that you created in Nango. This is the identifier for your integration configuration.\"),\n}).describe(\"Request model for retrieving a specific integration by its unique key.\");\nconst NangoGetIntegration_IntegrationCredentialsSchema = z.object({\n type: z.string().describe(\"OAuth type (e.g., 'OAUTH2')\").nullable().optional(),\n scopes: z.string().describe(\"OAuth scopes\").nullable().optional(),\n client_id: z.string().describe(\"Client ID for the integration\").nullable().optional(),\n client_secret: z.string().describe(\"Client secret for the integration\").nullable().optional(),\n webhook_secret: z.string().describe(\"Webhook secret key\").nullable().optional(),\n}).passthrough().describe(\"Model representing integration credentials.\");\nconst NangoGetIntegration_IntegrationDataSchema = z.object({\n logo: z.string().describe(\"URL to the integration's logo image.\").nullable().optional(),\n provider: z.string().describe(\"The provider identifier (e.g., 'github', 'slack', 'salesforce').\").nullable(),\n created_at: z.string().describe(\"Timestamp when the integration was created in ISO 8601 format.\").nullable(),\n unique_key: z.string().describe(\"The integration ID (unique_key) that you created in Nango.\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the integration was last updated in ISO 8601 format.\").nullable(),\n credentials: NangoGetIntegration_IntegrationCredentialsSchema.nullable().optional(),\n webhook_url: z.string().describe(\"Configured webhook URL for the integration (only included if requested via 'include' parameter).\").nullable().optional(),\n display_name: z.string().describe(\"Human-readable display name of the integration.\").nullable(),\n}).passthrough().describe(\"Model representing an integration configuration in Nango.\");\nexport const NangoGetIntegrationOutput = z.object({\n data: NangoGetIntegration_IntegrationDataSchema.nullable(),\n}).passthrough().describe(\"Response model for retrieving an integration.\");\n\nexport const nangoGetIntegration: AppAction<\n typeof NangoGetIntegrationInput,\n typeof NangoGetIntegrationOutput,\n typeof nango.credential\n> = action(\"NANGO_GET_INTEGRATION\", {\n slug: \"nango-get-integration\",\n name: \"Get Integration\",\n description: \"Retrieve detailed configuration for a specific Nango integration by its unique key. Returns integration details including provider, display name, creation/update timestamps, and optionally sensitive data like credentials or webhook URLs if requested via the 'include' parameter. Use this to inspect integration configuration, verify setup, or retrieve credentials for a specific integration. Returns 404 error if the integration unique key does not exist.\",\n input: NangoGetIntegrationInput,\n output: NangoGetIntegrationOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CAC1J,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH;AACzJ,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAM,mDAAmD,EAAE,OAAO;CA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uC,EAAE,OAAO,EAChD,MAAM,0CAA0C,SAAS,EAC3D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAWhB;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/get-proxy.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-proxy.cjs","names":["z","action"],"sources":["../../src/actions/get-proxy.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoGetProxyInput = z.object({\n retries: z.number().int().describe(\"The number of retries in case of failure (with exponential back-off). Optional, default 0.\").optional(),\n any_path: z.string().describe(\"The path to the external API endpoint to proxy the request to (e.g., 'users', 'repos/owner/repo', 'api/v2/tasks'). Do not include leading slash.\"),\n retry_on: z.string().describe(\"Comma separated status codes to explicitly retry on in addition to the default 5xx and 429.\").optional(),\n decompress: z.boolean().describe(\"Override the decompress option when making requests. Optional, defaults to false.\").optional(),\n query_params: z.record(z.string(), z.unknown()).describe(\"Optional query parameters to pass to the external API endpoint.\").optional(),\n connection_id: z.string().describe(\"The connection ID used to create the connection in Nango.\"),\n custom_headers: z.record(z.string(), z.unknown()).describe(\"Additional custom headers to pass to the external API. These will be prefixed with 'nango-proxy-' automatically.\").optional(),\n base_url_override: z.string().describe(\"Provide an API base URL when the base API is not listed in the providers.yaml or it needs to be overridden.\").optional(),\n provider_config_key: z.string().describe(\"The integration ID used to create the connection (aka Unique Key).\"),\n}).describe(\"Request model for making a GET request through Nango's proxy.\");\nexport const NangoGetProxyOutput = z.object({\n data: z.union([z.number(), z.number().int(), z.string(), z.boolean(), z.array(z.unknown()), z.record(z.string(), z.unknown())]).nullable().optional(),\n text: z.string().describe(\"The raw text response from the external API (if not JSON).\").nullable().optional(),\n headers: z.record(z.string(), z.unknown()).describe(\"Response headers returned by the external API.\").nullable().optional(),\n status_code: z.number().int().describe(\"HTTP status code returned by the external API.\").nullable(),\n}).passthrough().describe(\"Response model for proxy GET requests.\");\n\nexport const nangoGetProxy = action(\"NANGO_GET_PROXY\", {\n slug: \"nango-get-proxy\",\n name: \"Proxy GET Request\",\n description: \"Tool to make a GET request with Nango's Proxy to forward requests to external APIs while managing authentication. Use when you need to make authenticated API calls to external services through Nango's proxy infrastructure.\",\n input: NangoGetProxyInput,\n output: NangoGetProxyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAqBA,IAAAA,EAAE,OAAO;CACzC,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CAC1I,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kJAAkJ;CAChL,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CACtI,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CAC/H,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACrI,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CAC9F,gBAAgBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CACxL,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CAC/J,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;AAC/G,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,MAAMA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,QAAQ;EAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpJ,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,gBAAgBC,eAAAA,OAAO,mBAAmB;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-proxy.cjs","names":["z","action"],"sources":["../../src/actions/get-proxy.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 NangoGetProxyInput = z.object({\n retries: z.number().int().describe(\"The number of retries in case of failure (with exponential back-off). Optional, default 0.\").optional(),\n any_path: z.string().describe(\"The path to the external API endpoint to proxy the request to (e.g., 'users', 'repos/owner/repo', 'api/v2/tasks'). Do not include leading slash.\"),\n retry_on: z.string().describe(\"Comma separated status codes to explicitly retry on in addition to the default 5xx and 429.\").optional(),\n decompress: z.boolean().describe(\"Override the decompress option when making requests. Optional, defaults to false.\").optional(),\n query_params: z.record(z.string(), z.unknown()).describe(\"Optional query parameters to pass to the external API endpoint.\").optional(),\n connection_id: z.string().describe(\"The connection ID used to create the connection in Nango.\"),\n custom_headers: z.record(z.string(), z.unknown()).describe(\"Additional custom headers to pass to the external API. These will be prefixed with 'nango-proxy-' automatically.\").optional(),\n base_url_override: z.string().describe(\"Provide an API base URL when the base API is not listed in the providers.yaml or it needs to be overridden.\").optional(),\n provider_config_key: z.string().describe(\"The integration ID used to create the connection (aka Unique Key).\"),\n}).describe(\"Request model for making a GET request through Nango's proxy.\");\nexport const NangoGetProxyOutput = z.object({\n data: z.union([z.number(), z.number().int(), z.string(), z.boolean(), z.array(z.unknown()), z.record(z.string(), z.unknown())]).nullable().optional(),\n text: z.string().describe(\"The raw text response from the external API (if not JSON).\").nullable().optional(),\n headers: z.record(z.string(), z.unknown()).describe(\"Response headers returned by the external API.\").nullable().optional(),\n status_code: z.number().int().describe(\"HTTP status code returned by the external API.\").nullable(),\n}).passthrough().describe(\"Response model for proxy GET requests.\");\n\nexport const nangoGetProxy: AppAction<\n typeof NangoGetProxyInput,\n typeof NangoGetProxyOutput,\n typeof nango.credential\n> = action(\"NANGO_GET_PROXY\", {\n slug: \"nango-get-proxy\",\n name: \"Proxy GET Request\",\n description: \"Tool to make a GET request with Nango's Proxy to forward requests to external APIs while managing authentication. Use when you need to make authenticated API calls to external services through Nango's proxy infrastructure.\",\n input: NangoGetProxyInput,\n output: NangoGetProxyOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qBAAqBA,IAAAA,EAAE,OAAO;CACzC,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CAC1I,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kJAAkJ;CAChL,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CACtI,YAAYA,IAAAA,EAAE,QAAQ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I,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,gBAITC,eAAAA,OAAO,mBAAmB;CAC5B,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/get-proxy.d.ts
@@ -18,29 +20,7 @@ declare const NangoGetProxyOutput: z.ZodObject<{
18
20
  headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
19
21
  status_code: z.ZodNullable<z.ZodNumber>;
20
22
  }, z.core.$loose>;
21
- declare const nangoGetProxy: import("@keystrokehq/action").WorkflowActionDefinition<{
22
- any_path: string;
23
- connection_id: string;
24
- provider_config_key: string;
25
- retries?: number | undefined;
26
- retry_on?: string | undefined;
27
- decompress?: boolean | undefined;
28
- query_params?: Record<string, unknown> | undefined;
29
- custom_headers?: Record<string, unknown> | undefined;
30
- base_url_override?: string | undefined;
31
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
32
- connectionId: z.ZodString;
33
- entityId: z.ZodString;
34
- instanceId: z.ZodString;
35
- }, z.core.$strip>, z.ZodObject<{
36
- generic_api_key: z.ZodString;
37
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"nango", z.ZodObject<{
38
- connectionId: z.ZodString;
39
- entityId: z.ZodString;
40
- instanceId: z.ZodString;
41
- }, z.core.$strip>, z.ZodObject<{
42
- generic_api_key: z.ZodString;
43
- }, z.core.$strip>>]>;
23
+ declare const nangoGetProxy: AppAction<typeof NangoGetProxyInput, typeof NangoGetProxyOutput, typeof nango.credential>;
44
24
  //#endregion
45
25
  export { nangoGetProxy };
46
26
  //# sourceMappingURL=get-proxy.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-proxy.d.cts","names":[],"sources":["../../src/actions/get-proxy.ts"],"mappings":";;;cAIa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;cAOnB,aAAA,gCAAa,wBAAA"}
1
+ {"version":3,"file":"get-proxy.d.cts","names":[],"sources":["../../src/actions/get-proxy.ts"],"mappings":";;;;;cAMa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;cAOnB,aAAA,EAAe,SAAA,QACnB,kBAAA,SACA,mBAAA,SACA,KAAA,CAAM,UAAA"}