@keystrokehq/nango 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/dist/actions/action-trigger-post.cjs +1 -1
  2. package/dist/actions/action-trigger-post.cjs.map +1 -1
  3. package/dist/actions/action-trigger-post.d.cts +1 -1
  4. package/dist/actions/action-trigger-post.d.mts +1 -1
  5. package/dist/actions/action-trigger-post.mjs +1 -1
  6. package/dist/actions/action-trigger-post.mjs.map +1 -1
  7. package/dist/actions/add-connection.cjs +21 -21
  8. package/dist/actions/add-connection.cjs.map +1 -1
  9. package/dist/actions/add-connection.d.cts +35 -27
  10. package/dist/actions/add-connection.d.mts +35 -27
  11. package/dist/actions/add-connection.mjs +21 -21
  12. package/dist/actions/add-connection.mjs.map +1 -1
  13. package/dist/actions/connection-get.cjs +4 -4
  14. package/dist/actions/connection-get.cjs.map +1 -1
  15. package/dist/actions/connection-get.d.cts +4 -4
  16. package/dist/actions/connection-get.d.mts +4 -4
  17. package/dist/actions/connection-get.mjs +4 -4
  18. package/dist/actions/connection-get.mjs.map +1 -1
  19. package/dist/actions/create-connect-session.cjs +6 -6
  20. package/dist/actions/create-connect-session.cjs.map +1 -1
  21. package/dist/actions/create-connect-session.d.cts +10 -10
  22. package/dist/actions/create-connect-session.d.mts +10 -10
  23. package/dist/actions/create-connect-session.mjs +6 -6
  24. package/dist/actions/create-connect-session.mjs.map +1 -1
  25. package/dist/actions/create-integration.cjs +5 -5
  26. package/dist/actions/create-integration.cjs.map +1 -1
  27. package/dist/actions/create-integration.d.cts +8 -5
  28. package/dist/actions/create-integration.d.mts +8 -5
  29. package/dist/actions/create-integration.mjs +5 -5
  30. package/dist/actions/create-integration.mjs.map +1 -1
  31. package/dist/actions/delete-connection.cjs +1 -1
  32. package/dist/actions/delete-connection.cjs.map +1 -1
  33. package/dist/actions/delete-connection.d.cts +1 -1
  34. package/dist/actions/delete-connection.d.mts +1 -1
  35. package/dist/actions/delete-connection.mjs +1 -1
  36. package/dist/actions/delete-connection.mjs.map +1 -1
  37. package/dist/actions/delete-integration.cjs +1 -1
  38. package/dist/actions/delete-integration.cjs.map +1 -1
  39. package/dist/actions/delete-integration.d.cts +1 -1
  40. package/dist/actions/delete-integration.d.mts +1 -1
  41. package/dist/actions/delete-integration.mjs +1 -1
  42. package/dist/actions/delete-integration.mjs.map +1 -1
  43. package/dist/actions/edit-connection.cjs +3 -3
  44. package/dist/actions/edit-connection.cjs.map +1 -1
  45. package/dist/actions/edit-connection.d.cts +5 -5
  46. package/dist/actions/edit-connection.d.mts +5 -5
  47. package/dist/actions/edit-connection.mjs +3 -3
  48. package/dist/actions/edit-connection.mjs.map +1 -1
  49. package/dist/actions/get-connection.cjs +9 -9
  50. package/dist/actions/get-connection.cjs.map +1 -1
  51. package/dist/actions/get-connection.d.cts +9 -9
  52. package/dist/actions/get-connection.d.mts +9 -9
  53. package/dist/actions/get-connection.mjs +9 -9
  54. package/dist/actions/get-connection.mjs.map +1 -1
  55. package/dist/actions/get-environment-variables.cjs +2 -2
  56. package/dist/actions/get-environment-variables.cjs.map +1 -1
  57. package/dist/actions/get-environment-variables.d.cts +2 -2
  58. package/dist/actions/get-environment-variables.d.mts +2 -2
  59. package/dist/actions/get-environment-variables.mjs +2 -2
  60. package/dist/actions/get-environment-variables.mjs.map +1 -1
  61. package/dist/actions/get-integration.cjs +3 -3
  62. package/dist/actions/get-integration.cjs.map +1 -1
  63. package/dist/actions/get-integration.d.cts +3 -3
  64. package/dist/actions/get-integration.d.mts +3 -3
  65. package/dist/actions/get-integration.mjs +3 -3
  66. package/dist/actions/get-integration.mjs.map +1 -1
  67. package/dist/actions/get-proxy.cjs +4 -4
  68. package/dist/actions/get-proxy.cjs.map +1 -1
  69. package/dist/actions/get-proxy.d.cts +6 -6
  70. package/dist/actions/get-proxy.d.mts +6 -6
  71. package/dist/actions/get-proxy.mjs +4 -4
  72. package/dist/actions/get-proxy.mjs.map +1 -1
  73. package/dist/actions/get-sync-status.cjs +5 -5
  74. package/dist/actions/get-sync-status.cjs.map +1 -1
  75. package/dist/actions/get-sync-status.d.cts +5 -5
  76. package/dist/actions/get-sync-status.d.mts +5 -5
  77. package/dist/actions/get-sync-status.mjs +5 -5
  78. package/dist/actions/get-sync-status.mjs.map +1 -1
  79. package/dist/actions/list-connections.cjs +8 -8
  80. package/dist/actions/list-connections.cjs.map +1 -1
  81. package/dist/actions/list-connections.d.cts +9 -9
  82. package/dist/actions/list-connections.d.mts +9 -9
  83. package/dist/actions/list-connections.mjs +8 -8
  84. package/dist/actions/list-connections.mjs.map +1 -1
  85. package/dist/actions/list-integrations.cjs +2 -2
  86. package/dist/actions/list-integrations.cjs.map +1 -1
  87. package/dist/actions/list-integrations.d.cts +2 -2
  88. package/dist/actions/list-integrations.d.mts +2 -2
  89. package/dist/actions/list-integrations.mjs +2 -2
  90. package/dist/actions/list-integrations.mjs.map +1 -1
  91. package/dist/actions/providers-get-get.cjs +1 -1
  92. package/dist/actions/providers-get-get.cjs.map +1 -1
  93. package/dist/actions/providers-get-get.d.cts +1 -1
  94. package/dist/actions/providers-get-get.d.mts +1 -1
  95. package/dist/actions/providers-get-get.mjs +1 -1
  96. package/dist/actions/providers-get-get.mjs.map +1 -1
  97. package/dist/actions/providers-list-get.cjs +2 -2
  98. package/dist/actions/providers-list-get.cjs.map +1 -1
  99. package/dist/actions/providers-list-get.d.cts +2 -2
  100. package/dist/actions/providers-list-get.d.mts +2 -2
  101. package/dist/actions/providers-list-get.mjs +2 -2
  102. package/dist/actions/providers-list-get.mjs.map +1 -1
  103. package/dist/actions/put-proxy.cjs +4 -4
  104. package/dist/actions/put-proxy.cjs.map +1 -1
  105. package/dist/actions/put-proxy.d.cts +6 -6
  106. package/dist/actions/put-proxy.d.mts +6 -6
  107. package/dist/actions/put-proxy.mjs +4 -4
  108. package/dist/actions/put-proxy.mjs.map +1 -1
  109. package/dist/actions/reconnect-session-post.cjs +6 -6
  110. package/dist/actions/reconnect-session-post.cjs.map +1 -1
  111. package/dist/actions/reconnect-session-post.d.cts +10 -10
  112. package/dist/actions/reconnect-session-post.d.mts +10 -10
  113. package/dist/actions/reconnect-session-post.mjs +6 -6
  114. package/dist/actions/reconnect-session-post.mjs.map +1 -1
  115. package/dist/actions/scripts-config-get.cjs +10 -10
  116. package/dist/actions/scripts-config-get.cjs.map +1 -1
  117. package/dist/actions/scripts-config-get.d.cts +11 -11
  118. package/dist/actions/scripts-config-get.d.mts +11 -11
  119. package/dist/actions/scripts-config-get.mjs +10 -10
  120. package/dist/actions/scripts-config-get.mjs.map +1 -1
  121. package/dist/actions/set-connection-metadata.cjs +3 -3
  122. package/dist/actions/set-connection-metadata.cjs.map +1 -1
  123. package/dist/actions/set-connection-metadata.d.cts +4 -4
  124. package/dist/actions/set-connection-metadata.d.mts +4 -4
  125. package/dist/actions/set-connection-metadata.mjs +3 -3
  126. package/dist/actions/set-connection-metadata.mjs.map +1 -1
  127. package/dist/actions/sync-trigger-post.cjs +1 -1
  128. package/dist/actions/sync-trigger-post.cjs.map +1 -1
  129. package/dist/actions/sync-trigger-post.d.cts +1 -1
  130. package/dist/actions/sync-trigger-post.d.mts +1 -1
  131. package/dist/actions/sync-trigger-post.mjs +1 -1
  132. package/dist/actions/sync-trigger-post.mjs.map +1 -1
  133. package/dist/actions/update-connection-metadata.cjs +3 -3
  134. package/dist/actions/update-connection-metadata.cjs.map +1 -1
  135. package/dist/actions/update-connection-metadata.d.cts +4 -4
  136. package/dist/actions/update-connection-metadata.d.mts +4 -4
  137. package/dist/actions/update-connection-metadata.mjs +3 -3
  138. package/dist/actions/update-connection-metadata.mjs.map +1 -1
  139. package/dist/actions/update-integration.cjs +5 -5
  140. package/dist/actions/update-integration.cjs.map +1 -1
  141. package/dist/actions/update-integration.d.cts +8 -5
  142. package/dist/actions/update-integration.d.mts +8 -5
  143. package/dist/actions/update-integration.mjs +5 -5
  144. package/dist/actions/update-integration.mjs.map +1 -1
  145. package/package.json +1 -1
@@ -10,28 +10,28 @@ declare const NangoGetConnectionInput: z.ZodObject<{
10
10
  }, z.core.$strip>;
11
11
  declare const NangoGetConnectionOutput: z.ZodObject<{
12
12
  id: z.ZodNullable<z.ZodNumber>;
13
- tags: z.ZodObject<{}, z.core.$strip>;
13
+ tags: z.ZodRecord<z.ZodString, z.ZodUnknown>;
14
14
  errors: z.ZodArray<z.ZodObject<{
15
15
  type: z.ZodNullable<z.ZodString>;
16
16
  log_id: z.ZodNullable<z.ZodString>;
17
- }, z.core.$strip>>;
17
+ }, z.core.$loose>>;
18
18
  end_user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
19
19
  id: z.ZodNullable<z.ZodString>;
20
- tags: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
20
+ tags: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
21
21
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
22
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
- organization: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
24
- }, z.core.$strip>>>;
25
- metadata: z.ZodObject<{}, z.core.$strip>;
23
+ organization: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
24
+ }, z.core.$loose>>>;
25
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
26
26
  provider: z.ZodNullable<z.ZodString>;
27
27
  created_at: z.ZodNullable<z.ZodString>;
28
28
  updated_at: z.ZodNullable<z.ZodString>;
29
- credentials: z.ZodObject<{}, z.core.$strip>;
29
+ credentials: z.ZodRecord<z.ZodString, z.ZodUnknown>;
30
30
  connection_id: z.ZodNullable<z.ZodString>;
31
31
  last_fetched_at: z.ZodNullable<z.ZodString>;
32
- connection_config: z.ZodObject<{}, z.core.$strip>;
32
+ connection_config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
33
33
  provider_config_key: z.ZodNullable<z.ZodString>;
34
- }, z.core.$strip>;
34
+ }, z.core.$loose>;
35
35
  declare const nangoGetConnection: import("@keystrokehq/action").WorkflowActionDefinition<{
36
36
  connection_id: string;
37
37
  provider_config_key: string;
@@ -10,28 +10,28 @@ declare const NangoGetConnectionInput: z.ZodObject<{
10
10
  }, z.core.$strip>;
11
11
  declare const NangoGetConnectionOutput: z.ZodObject<{
12
12
  id: z.ZodNullable<z.ZodNumber>;
13
- tags: z.ZodObject<{}, z.core.$strip>;
13
+ tags: z.ZodRecord<z.ZodString, z.ZodUnknown>;
14
14
  errors: z.ZodArray<z.ZodObject<{
15
15
  type: z.ZodNullable<z.ZodString>;
16
16
  log_id: z.ZodNullable<z.ZodString>;
17
- }, z.core.$strip>>;
17
+ }, z.core.$loose>>;
18
18
  end_user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
19
19
  id: z.ZodNullable<z.ZodString>;
20
- tags: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
20
+ tags: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
21
21
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
22
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
- organization: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
24
- }, z.core.$strip>>>;
25
- metadata: z.ZodObject<{}, z.core.$strip>;
23
+ organization: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
24
+ }, z.core.$loose>>>;
25
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
26
26
  provider: z.ZodNullable<z.ZodString>;
27
27
  created_at: z.ZodNullable<z.ZodString>;
28
28
  updated_at: z.ZodNullable<z.ZodString>;
29
- credentials: z.ZodObject<{}, z.core.$strip>;
29
+ credentials: z.ZodRecord<z.ZodString, z.ZodUnknown>;
30
30
  connection_id: z.ZodNullable<z.ZodString>;
31
31
  last_fetched_at: z.ZodNullable<z.ZodString>;
32
- connection_config: z.ZodObject<{}, z.core.$strip>;
32
+ connection_config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
33
33
  provider_config_key: z.ZodNullable<z.ZodString>;
34
- }, z.core.$strip>;
34
+ }, z.core.$loose>;
35
35
  declare const nangoGetConnection: import("@keystrokehq/action").WorkflowActionDefinition<{
36
36
  connection_id: string;
37
37
  provider_config_key: string;
@@ -11,14 +11,14 @@ const NangoGetConnectionInput = z.object({
11
11
  const NangoGetConnection_ConnectionErrorSchema = z.object({
12
12
  type: z.string().describe("Error type identifier").nullable(),
13
13
  log_id: z.string().describe("Associated log ID for debugging").nullable()
14
- }).describe("Represents an error associated with a connection.");
14
+ }).passthrough().describe("Represents an error associated with a connection.");
15
15
  const NangoGetConnection_EndUserSchema = z.object({
16
16
  id: z.string().describe("End user ID").nullable(),
17
- tags: z.object({}).describe("Tags associated with the end user").nullable().optional(),
17
+ tags: z.record(z.string(), z.unknown()).describe("Tags associated with the end user").nullable().optional(),
18
18
  email: z.string().describe("End user email").nullable().optional(),
19
19
  display_name: z.string().describe("End user display name").nullable().optional(),
20
- organization: z.object({}).describe("Organization details").nullable().optional()
21
- }).describe("End user information associated with a connection.");
20
+ organization: z.record(z.string(), z.unknown()).describe("Organization details").nullable().optional()
21
+ }).passthrough().describe("End user information associated with a connection.");
22
22
  const nangoGetConnection = action("NANGO_GET_CONNECTION", {
23
23
  slug: "nango-get-connection",
24
24
  name: "Get Connection with Credentials",
@@ -26,19 +26,19 @@ const nangoGetConnection = action("NANGO_GET_CONNECTION", {
26
26
  input: NangoGetConnectionInput,
27
27
  output: z.object({
28
28
  id: z.number().int().describe("Internal Nango connection identifier").nullable(),
29
- tags: z.object({}).describe("Connection tags (key/value strings). Keys are normalized to lowercase."),
29
+ tags: z.record(z.string(), z.unknown()).describe("Connection tags (key/value strings). Keys are normalized to lowercase."),
30
30
  errors: z.array(NangoGetConnection_ConnectionErrorSchema).describe("List of connection errors (auth/sync issues)"),
31
31
  end_user: NangoGetConnection_EndUserSchema.nullable().optional(),
32
- metadata: z.object({}).describe("Custom metadata attached to the connection"),
32
+ metadata: z.record(z.string(), z.unknown()).describe("Custom metadata attached to the connection"),
33
33
  provider: z.string().describe("Provider/integration name").nullable(),
34
34
  created_at: z.string().describe("Connection creation timestamp in ISO 8601 format").nullable(),
35
35
  updated_at: z.string().describe("Connection last update timestamp in ISO 8601 format").nullable(),
36
- credentials: z.object({}).describe("Authentication credentials for this connection. Type varies by auth method (OAuth2, API Key, Basic, etc.). Contains fields like type, access_token, refresh_token, etc. depending on the auth method."),
36
+ credentials: z.record(z.string(), z.unknown()).describe("Authentication credentials for this connection. Type varies by auth method (OAuth2, API Key, Basic, etc.). Contains fields like type, access_token, refresh_token, etc. depending on the auth method."),
37
37
  connection_id: z.string().describe("The connection ID provided when creating the connection").nullable(),
38
38
  last_fetched_at: z.string().describe("Last time connection data was fetched").nullable(),
39
- connection_config: z.object({}).describe("Connection configuration data"),
39
+ connection_config: z.record(z.string(), z.unknown()).describe("Connection configuration data"),
40
40
  provider_config_key: z.string().describe("Integration/provider configuration key (unique key)").nullable()
41
- }).describe("Response model for retrieving a connection with credentials.\nContains full connection details including authentication credentials.")
41
+ }).passthrough().describe("Response model for retrieving a connection with credentials.\nContains full connection details including authentication credentials.")
42
42
  });
43
43
  //#endregion
44
44
  export { nangoGetConnection };
@@ -1 +1 @@
1
- {"version":3,"file":"get-connection.mjs","names":[],"sources":["../../src/actions/get-connection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoGetConnectionInput = z.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}).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.object({}).describe(\"Tags associated with the end user\").nullable().optional(),\n email: z.string().describe(\"End user email\").nullable().optional(),\n display_name: z.string().describe(\"End user display name\").nullable().optional(),\n organization: z.object({}).describe(\"Organization details\").nullable().optional(),\n}).describe(\"End user information associated with a connection.\");\nexport const NangoGetConnectionOutput = z.object({\n id: z.number().int().describe(\"Internal Nango connection identifier\").nullable(),\n tags: z.object({}).describe(\"Connection tags (key/value strings). Keys are normalized to lowercase.\"),\n errors: z.array(NangoGetConnection_ConnectionErrorSchema).describe(\"List of connection errors (auth/sync issues)\"),\n end_user: NangoGetConnection_EndUserSchema.nullable().optional(),\n metadata: z.object({}).describe(\"Custom metadata attached to the connection\"),\n provider: z.string().describe(\"Provider/integration name\").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.object({}).describe(\"Authentication credentials for this connection. Type varies by auth method (OAuth2, API Key, Basic, etc.). Contains fields like type, access_token, refresh_token, etc. depending on the auth method.\"),\n connection_id: z.string().describe(\"The connection ID provided when creating the connection\").nullable(),\n last_fetched_at: z.string().describe(\"Last time connection data was fetched\").nullable(),\n connection_config: z.object({}).describe(\"Connection configuration data\"),\n provider_config_key: z.string().describe(\"Integration/provider configuration key (unique key)\").nullable(),\n}).describe(\"Response model for retrieving a connection with credentials.\\nContains full connection details including authentication credentials.\");\n\nexport const nangoGetConnection = action(\"NANGO_GET_CONNECTION\", {\n slug: \"nango-get-connection\",\n name: \"Get Connection with Credentials\",\n description: \"Retrieve a specific connection with its credentials. Automatically checks if the access token has expired and refreshes it if needed. Use this action when you need to access the authentication credentials for a connection to make API calls to the provider. The credentials returned depend on the auth type (OAuth2, API Key, Basic Auth, etc.). Returns 404 if the connection does not exist, 424 if token refresh is exhausted.\",\n input: NangoGetConnectionInput,\n output: NangoGetConnectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,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,SAAS,mDAAmD;AAC/D,MAAM,mCAAmC,EAAE,OAAO;CAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CA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.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoGetConnectionInput = z.object({\n connection_id: z.string().describe(\"The connection ID used to create the connection. This identifies the specific connection to retrieve.\"),\n force_refresh: z.boolean().describe(\"If true, Nango will attempt to refresh the access token regardless of its expiration status. Default is false.\").optional(),\n refresh_token: z.boolean().describe(\"If true, return the refresh token as part of the response. Default is false.\").optional(),\n provider_config_key: z.string().describe(\"The integration ID (Unique Key) used to create the connection. Required to identify which integration this connection belongs to.\"),\n refresh_github_app_jwt_token: z.boolean().describe(\"If true, this will refresh the JWT token for GitHub App / GitHub App OAuth connections.\").optional(),\n}).describe(\"Request model for retrieving a specific connection with credentials.\");\nconst NangoGetConnection_ConnectionErrorSchema = z.object({\n type: z.string().describe(\"Error type identifier\").nullable(),\n log_id: z.string().describe(\"Associated log ID for debugging\").nullable(),\n}).passthrough().describe(\"Represents an error associated with a connection.\");\nconst NangoGetConnection_EndUserSchema = z.object({\n id: z.string().describe(\"End user ID\").nullable(),\n tags: z.record(z.string(), z.unknown()).describe(\"Tags associated with the end user\").nullable().optional(),\n email: z.string().describe(\"End user email\").nullable().optional(),\n display_name: z.string().describe(\"End user display name\").nullable().optional(),\n organization: z.record(z.string(), z.unknown()).describe(\"Organization details\").nullable().optional(),\n}).passthrough().describe(\"End user information associated with a connection.\");\nexport const NangoGetConnectionOutput = z.object({\n id: z.number().int().describe(\"Internal Nango connection identifier\").nullable(),\n tags: z.record(z.string(), z.unknown()).describe(\"Connection tags (key/value strings). Keys are normalized to lowercase.\"),\n errors: z.array(NangoGetConnection_ConnectionErrorSchema).describe(\"List of connection errors (auth/sync issues)\"),\n end_user: NangoGetConnection_EndUserSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata attached to the connection\"),\n provider: z.string().describe(\"Provider/integration name\").nullable(),\n created_at: z.string().describe(\"Connection creation timestamp in ISO 8601 format\").nullable(),\n updated_at: z.string().describe(\"Connection last update timestamp in ISO 8601 format\").nullable(),\n credentials: z.record(z.string(), z.unknown()).describe(\"Authentication credentials for this connection. Type varies by auth method (OAuth2, API Key, Basic, etc.). Contains fields like type, access_token, refresh_token, etc. depending on the auth method.\"),\n connection_id: z.string().describe(\"The connection ID provided when creating the connection\").nullable(),\n last_fetched_at: z.string().describe(\"Last time connection data was fetched\").nullable(),\n connection_config: z.record(z.string(), z.unknown()).describe(\"Connection configuration data\"),\n provider_config_key: z.string().describe(\"Integration/provider configuration key (unique key)\").nullable(),\n}).passthrough().describe(\"Response model for retrieving a connection with credentials.\\nContains full connection details including authentication credentials.\");\n\nexport const nangoGetConnection = action(\"NANGO_GET_CONNECTION\", {\n slug: \"nango-get-connection\",\n name: \"Get Connection with Credentials\",\n description: \"Retrieve a specific connection with its credentials. Automatically checks if the access token has expired and refreshes it if needed. Use this action when you need to access the authentication credentials for a connection to make API calls to the provider. The credentials returned depend on the auth type (OAuth2, API Key, Basic Auth, etc.). Returns 404 if the connection does not exist, 424 if token refresh is exhausted.\",\n input: NangoGetConnectionInput,\n output: NangoGetConnectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG;CAC1I,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CAC/J,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC7H,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI;CAC5K,8BAA8B,EAAE,QAAQ,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;AACzJ,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,2CAA2C,EAAE,OAAO;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,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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"}
@@ -5,8 +5,8 @@ const NangoGetEnvironmentVariablesInput = zod.z.object({}).describe("Empty reque
5
5
  const NangoGetEnvironmentVariables_EnvironmentVariableSchema = zod.z.object({
6
6
  name: zod.z.string().describe("The name of the environment variable").nullable(),
7
7
  value: zod.z.string().describe("The value of the environment variable").nullable()
8
- }).describe("Model representing a single environment variable.");
9
- const NangoGetEnvironmentVariablesOutput = zod.z.object({ variables: zod.z.array(NangoGetEnvironmentVariables_EnvironmentVariableSchema).describe("List of environment variables as configured in the Nango dashboard") }).describe("Response model containing list of environment variables.");
8
+ }).passthrough().describe("Model representing a single environment variable.");
9
+ const NangoGetEnvironmentVariablesOutput = zod.z.object({ variables: zod.z.array(NangoGetEnvironmentVariables_EnvironmentVariableSchema).describe("List of environment variables as configured in the Nango dashboard") }).passthrough().describe("Response model containing list of environment variables.");
10
10
  const nangoGetEnvironmentVariables = require_action.action("NANGO_GET_ENVIRONMENT_VARIABLES", {
11
11
  slug: "nango-get-environment-variables",
12
12
  name: "Get Environment Variables",
@@ -1 +1 @@
1
- {"version":3,"file":"get-environment-variables.cjs","names":["z","action"],"sources":["../../src/actions/get-environment-variables.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoGetEnvironmentVariablesInput = z.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}).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}).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,SAAS,mDAAmD;AAC/D,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,WAAWA,IAAAA,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,oEAAoE,EAC1J,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAEtE,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-environment-variables.cjs","names":["z","action"],"sources":["../../src/actions/get-environment-variables.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoGetEnvironmentVariablesInput = z.object({}).describe(\"Empty request model for retrieving environment variables.\");\nconst NangoGetEnvironmentVariables_EnvironmentVariableSchema = z.object({\n name: z.string().describe(\"The name of the environment variable\").nullable(),\n value: z.string().describe(\"The value of the environment variable\").nullable(),\n}).passthrough().describe(\"Model representing a single environment variable.\");\nexport const NangoGetEnvironmentVariablesOutput = z.object({\n variables: z.array(NangoGetEnvironmentVariables_EnvironmentVariableSchema).describe(\"List of environment variables as configured in the Nango dashboard\"),\n}).passthrough().describe(\"Response model containing list of environment variables.\");\n\nexport const nangoGetEnvironmentVariables = action(\"NANGO_GET_ENVIRONMENT_VARIABLES\", {\n slug: \"nango-get-environment-variables\",\n name: \"Get Environment Variables\",\n description: \"Tool to retrieve environment variables from the Nango dashboard. Use when you need to access or list environment variables configured in Nango.\",\n input: NangoGetEnvironmentVariablesInput,\n output: NangoGetEnvironmentVariablesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAClI,MAAM,yDAAyDA,IAAAA,EAAE,OAAO;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,WAAWA,IAAAA,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,oEAAoE,EAC1J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAEpF,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -6,8 +6,8 @@ declare const NangoGetEnvironmentVariablesOutput: z.ZodObject<{
6
6
  variables: z.ZodArray<z.ZodObject<{
7
7
  name: z.ZodNullable<z.ZodString>;
8
8
  value: z.ZodNullable<z.ZodString>;
9
- }, z.core.$strip>>;
10
- }, z.core.$strip>;
9
+ }, z.core.$loose>>;
10
+ }, z.core.$loose>;
11
11
  declare const nangoGetEnvironmentVariables: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
12
12
  //#endregion
13
13
  export { nangoGetEnvironmentVariables };
@@ -6,8 +6,8 @@ declare const NangoGetEnvironmentVariablesOutput: z.ZodObject<{
6
6
  variables: z.ZodArray<z.ZodObject<{
7
7
  name: z.ZodNullable<z.ZodString>;
8
8
  value: z.ZodNullable<z.ZodString>;
9
- }, z.core.$strip>>;
10
- }, z.core.$strip>;
9
+ }, z.core.$loose>>;
10
+ }, z.core.$loose>;
11
11
  declare const nangoGetEnvironmentVariables: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
12
12
  //#endregion
13
13
  export { nangoGetEnvironmentVariables };
@@ -5,13 +5,13 @@ const NangoGetEnvironmentVariablesInput = z.object({}).describe("Empty request m
5
5
  const NangoGetEnvironmentVariables_EnvironmentVariableSchema = z.object({
6
6
  name: z.string().describe("The name of the environment variable").nullable(),
7
7
  value: z.string().describe("The value of the environment variable").nullable()
8
- }).describe("Model representing a single environment variable.");
8
+ }).passthrough().describe("Model representing a single environment variable.");
9
9
  const nangoGetEnvironmentVariables = action("NANGO_GET_ENVIRONMENT_VARIABLES", {
10
10
  slug: "nango-get-environment-variables",
11
11
  name: "Get Environment Variables",
12
12
  description: "Tool to retrieve environment variables from the Nango dashboard. Use when you need to access or list environment variables configured in Nango.",
13
13
  input: NangoGetEnvironmentVariablesInput,
14
- output: z.object({ variables: z.array(NangoGetEnvironmentVariables_EnvironmentVariableSchema).describe("List of environment variables as configured in the Nango dashboard") }).describe("Response model containing list of environment variables.")
14
+ output: z.object({ variables: z.array(NangoGetEnvironmentVariables_EnvironmentVariableSchema).describe("List of environment variables as configured in the Nango dashboard") }).passthrough().describe("Response model containing list of environment variables.")
15
15
  });
16
16
  //#endregion
17
17
  export { nangoGetEnvironmentVariables };
@@ -1 +1 @@
1
- {"version":3,"file":"get-environment-variables.mjs","names":[],"sources":["../../src/actions/get-environment-variables.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoGetEnvironmentVariablesInput = z.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}).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}).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,SAAS,mDAAmD;AAK/D,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,SAAS,0DAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-environment-variables.mjs","names":[],"sources":["../../src/actions/get-environment-variables.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NangoGetEnvironmentVariablesInput = z.object({}).describe(\"Empty request model for retrieving environment variables.\");\nconst NangoGetEnvironmentVariables_EnvironmentVariableSchema = z.object({\n name: z.string().describe(\"The name of the environment variable\").nullable(),\n value: z.string().describe(\"The value of the environment variable\").nullable(),\n}).passthrough().describe(\"Model representing a single environment variable.\");\nexport const NangoGetEnvironmentVariablesOutput = z.object({\n variables: z.array(NangoGetEnvironmentVariables_EnvironmentVariableSchema).describe(\"List of environment variables as configured in the Nango dashboard\"),\n}).passthrough().describe(\"Response model containing list of environment variables.\");\n\nexport const nangoGetEnvironmentVariables = action(\"NANGO_GET_ENVIRONMENT_VARIABLES\", {\n slug: \"nango-get-environment-variables\",\n name: \"Get Environment Variables\",\n description: \"Tool to retrieve environment variables from the Nango dashboard. Use when you need to access or list environment variables configured in Nango.\",\n input: NangoGetEnvironmentVariablesInput,\n output: NangoGetEnvironmentVariablesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAClI,MAAM,yDAAyD,EAAE,OAAO;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAK7E,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATgD,EAAE,OAAO,EACzD,WAAW,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,oEAAoE,EAC1J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAOhB;AACV,CAAC"}
@@ -11,7 +11,7 @@ const NangoGetIntegration_IntegrationCredentialsSchema = zod.z.object({
11
11
  client_id: zod.z.string().describe("Client ID for the integration").nullable().optional(),
12
12
  client_secret: zod.z.string().describe("Client secret for the integration").nullable().optional(),
13
13
  webhook_secret: zod.z.string().describe("Webhook secret key").nullable().optional()
14
- }).describe("Model representing integration credentials.");
14
+ }).passthrough().describe("Model representing integration credentials.");
15
15
  const NangoGetIntegration_IntegrationDataSchema = zod.z.object({
16
16
  logo: zod.z.string().describe("URL to the integration's logo image.").nullable().optional(),
17
17
  provider: zod.z.string().describe("The provider identifier (e.g., 'github', 'slack', 'salesforce').").nullable(),
@@ -21,8 +21,8 @@ const NangoGetIntegration_IntegrationDataSchema = zod.z.object({
21
21
  credentials: NangoGetIntegration_IntegrationCredentialsSchema.nullable().optional(),
22
22
  webhook_url: zod.z.string().describe("Configured webhook URL for the integration (only included if requested via 'include' parameter).").nullable().optional(),
23
23
  display_name: zod.z.string().describe("Human-readable display name of the integration.").nullable()
24
- }).describe("Model representing an integration configuration in Nango.");
25
- const NangoGetIntegrationOutput = zod.z.object({ data: NangoGetIntegration_IntegrationDataSchema.nullable() }).describe("Response model for retrieving an integration.");
24
+ }).passthrough().describe("Model representing an integration configuration in Nango.");
25
+ const NangoGetIntegrationOutput = zod.z.object({ data: NangoGetIntegration_IntegrationDataSchema.nullable() }).passthrough().describe("Response model for retrieving an integration.");
26
26
  const nangoGetIntegration = require_action.action("NANGO_GET_INTEGRATION", {
27
27
  slug: "nango-get-integration",
28
28
  name: "Get Integration",
@@ -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}).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}).describe(\"Model representing an integration configuration in Nango.\");\nexport const NangoGetIntegrationOutput = z.object({\n data: NangoGetIntegration_IntegrationDataSchema.nullable(),\n}).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,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,SAAS,6CAA6C;AACzD,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,SAAS,2DAA2D;AACvE,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,MAAM,0CAA0C,SAAS,EAC3D,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAE3D,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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,IAAA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AC,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,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -18,11 +18,11 @@ declare const NangoGetIntegrationOutput: z.ZodObject<{
18
18
  client_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
19
  client_secret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
20
  webhook_secret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
- }, z.core.$strip>>>;
21
+ }, z.core.$loose>>>;
22
22
  webhook_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
23
  display_name: z.ZodNullable<z.ZodString>;
24
- }, z.core.$strip>>;
25
- }, z.core.$strip>;
24
+ }, z.core.$loose>>;
25
+ }, z.core.$loose>;
26
26
  declare const nangoGetIntegration: import("@keystrokehq/action").WorkflowActionDefinition<{
27
27
  unique_key: string;
28
28
  include?: string[] | undefined;
@@ -18,11 +18,11 @@ declare const NangoGetIntegrationOutput: z.ZodObject<{
18
18
  client_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
19
  client_secret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
20
  webhook_secret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
- }, z.core.$strip>>>;
21
+ }, z.core.$loose>>>;
22
22
  webhook_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
23
  display_name: z.ZodNullable<z.ZodString>;
24
- }, z.core.$strip>>;
25
- }, z.core.$strip>;
24
+ }, z.core.$loose>>;
25
+ }, z.core.$loose>;
26
26
  declare const nangoGetIntegration: import("@keystrokehq/action").WorkflowActionDefinition<{
27
27
  unique_key: string;
28
28
  include?: string[] | undefined;
@@ -11,7 +11,7 @@ const NangoGetIntegration_IntegrationCredentialsSchema = z.object({
11
11
  client_id: z.string().describe("Client ID for the integration").nullable().optional(),
12
12
  client_secret: z.string().describe("Client secret for the integration").nullable().optional(),
13
13
  webhook_secret: z.string().describe("Webhook secret key").nullable().optional()
14
- }).describe("Model representing integration credentials.");
14
+ }).passthrough().describe("Model representing integration credentials.");
15
15
  const NangoGetIntegration_IntegrationDataSchema = z.object({
16
16
  logo: z.string().describe("URL to the integration's logo image.").nullable().optional(),
17
17
  provider: z.string().describe("The provider identifier (e.g., 'github', 'slack', 'salesforce').").nullable(),
@@ -21,13 +21,13 @@ const NangoGetIntegration_IntegrationDataSchema = z.object({
21
21
  credentials: NangoGetIntegration_IntegrationCredentialsSchema.nullable().optional(),
22
22
  webhook_url: z.string().describe("Configured webhook URL for the integration (only included if requested via 'include' parameter).").nullable().optional(),
23
23
  display_name: z.string().describe("Human-readable display name of the integration.").nullable()
24
- }).describe("Model representing an integration configuration in Nango.");
24
+ }).passthrough().describe("Model representing an integration configuration in Nango.");
25
25
  const nangoGetIntegration = action("NANGO_GET_INTEGRATION", {
26
26
  slug: "nango-get-integration",
27
27
  name: "Get Integration",
28
28
  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.",
29
29
  input: NangoGetIntegrationInput,
30
- output: z.object({ data: NangoGetIntegration_IntegrationDataSchema.nullable() }).describe("Response model for retrieving an integration.")
30
+ output: z.object({ data: NangoGetIntegration_IntegrationDataSchema.nullable() }).passthrough().describe("Response model for retrieving an integration.")
31
31
  });
32
32
  //#endregion
33
33
  export { nangoGetIntegration };
@@ -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}).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}).describe(\"Model representing an integration configuration in Nango.\");\nexport const NangoGetIntegrationOutput = z.object({\n data: NangoGetIntegration_IntegrationDataSchema.nullable(),\n}).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,SAAS,6CAA6C;AACzD,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,SAAS,2DAA2D;AAKvE,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuC,EAAE,OAAO,EAChD,MAAM,0CAA0C,SAAS,EAC3D,CAAC,CAAC,CAAC,SAAS,+CAOF;AACV,CAAC"}
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"}
@@ -6,9 +6,9 @@ const NangoGetProxyInput = zod.z.object({
6
6
  any_path: zod.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."),
7
7
  retry_on: zod.z.string().describe("Comma separated status codes to explicitly retry on in addition to the default 5xx and 429.").optional(),
8
8
  decompress: zod.z.boolean().describe("Override the decompress option when making requests. Optional, defaults to false.").optional(),
9
- query_params: zod.z.object({}).describe("Optional query parameters to pass to the external API endpoint.").optional(),
9
+ query_params: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Optional query parameters to pass to the external API endpoint.").optional(),
10
10
  connection_id: zod.z.string().describe("The connection ID used to create the connection in Nango."),
11
- custom_headers: zod.z.object({}).describe("Additional custom headers to pass to the external API. These will be prefixed with 'nango-proxy-' automatically.").optional(),
11
+ custom_headers: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional custom headers to pass to the external API. These will be prefixed with 'nango-proxy-' automatically.").optional(),
12
12
  base_url_override: zod.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(),
13
13
  provider_config_key: zod.z.string().describe("The integration ID used to create the connection (aka Unique Key).")
14
14
  }).describe("Request model for making a GET request through Nango's proxy.");
@@ -22,9 +22,9 @@ const NangoGetProxyOutput = zod.z.object({
22
22
  zod.z.record(zod.z.string(), zod.z.unknown())
23
23
  ]).nullable().optional(),
24
24
  text: zod.z.string().describe("The raw text response from the external API (if not JSON).").nullable().optional(),
25
- headers: zod.z.object({}).describe("Response headers returned by the external API.").nullable().optional(),
25
+ headers: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Response headers returned by the external API.").nullable().optional(),
26
26
  status_code: zod.z.number().int().describe("HTTP status code returned by the external API.").nullable()
27
- }).describe("Response model for proxy GET requests.");
27
+ }).passthrough().describe("Response model for proxy GET requests.");
28
28
  const nangoGetProxy = require_action.action("NANGO_GET_PROXY", {
29
29
  slug: "nango-get-proxy",
30
30
  name: "Proxy GET Request",
@@ -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.object({}).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.object({}).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.object({}).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}).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,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C,SAAS,CAAC,CAAC,SAAS;CACrG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAEpD,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 { 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"}
@@ -6,18 +6,18 @@ declare const NangoGetProxyInput: z.ZodObject<{
6
6
  any_path: z.ZodString;
7
7
  retry_on: z.ZodOptional<z.ZodString>;
8
8
  decompress: z.ZodOptional<z.ZodBoolean>;
9
- query_params: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
9
+ query_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
10
10
  connection_id: z.ZodString;
11
- custom_headers: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
11
+ custom_headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12
12
  base_url_override: z.ZodOptional<z.ZodString>;
13
13
  provider_config_key: z.ZodString;
14
14
  }, z.core.$strip>;
15
15
  declare const NangoGetProxyOutput: z.ZodObject<{
16
16
  data: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
17
17
  text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
- headers: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
18
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
19
19
  status_code: z.ZodNullable<z.ZodNumber>;
20
- }, z.core.$strip>;
20
+ }, z.core.$loose>;
21
21
  declare const nangoGetProxy: import("@keystrokehq/action").WorkflowActionDefinition<{
22
22
  any_path: string;
23
23
  connection_id: string;
@@ -25,8 +25,8 @@ declare const nangoGetProxy: import("@keystrokehq/action").WorkflowActionDefinit
25
25
  retries?: number | undefined;
26
26
  retry_on?: string | undefined;
27
27
  decompress?: boolean | undefined;
28
- query_params?: Record<string, never> | undefined;
29
- custom_headers?: Record<string, never> | undefined;
28
+ query_params?: Record<string, unknown> | undefined;
29
+ custom_headers?: Record<string, unknown> | undefined;
30
30
  base_url_override?: string | undefined;
31
31
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
32
32
  //#endregion
@@ -6,18 +6,18 @@ declare const NangoGetProxyInput: z.ZodObject<{
6
6
  any_path: z.ZodString;
7
7
  retry_on: z.ZodOptional<z.ZodString>;
8
8
  decompress: z.ZodOptional<z.ZodBoolean>;
9
- query_params: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
9
+ query_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
10
10
  connection_id: z.ZodString;
11
- custom_headers: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
11
+ custom_headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12
12
  base_url_override: z.ZodOptional<z.ZodString>;
13
13
  provider_config_key: z.ZodString;
14
14
  }, z.core.$strip>;
15
15
  declare const NangoGetProxyOutput: z.ZodObject<{
16
16
  data: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
17
17
  text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
- headers: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
18
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
19
19
  status_code: z.ZodNullable<z.ZodNumber>;
20
- }, z.core.$strip>;
20
+ }, z.core.$loose>;
21
21
  declare const nangoGetProxy: import("@keystrokehq/action").WorkflowActionDefinition<{
22
22
  any_path: string;
23
23
  connection_id: string;
@@ -25,8 +25,8 @@ declare const nangoGetProxy: import("@keystrokehq/action").WorkflowActionDefinit
25
25
  retries?: number | undefined;
26
26
  retry_on?: string | undefined;
27
27
  decompress?: boolean | undefined;
28
- query_params?: Record<string, never> | undefined;
29
- custom_headers?: Record<string, never> | undefined;
28
+ query_params?: Record<string, unknown> | undefined;
29
+ custom_headers?: Record<string, unknown> | undefined;
30
30
  base_url_override?: string | undefined;
31
31
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
32
32
  //#endregion
@@ -9,9 +9,9 @@ const nangoGetProxy = action("NANGO_GET_PROXY", {
9
9
  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."),
10
10
  retry_on: z.string().describe("Comma separated status codes to explicitly retry on in addition to the default 5xx and 429.").optional(),
11
11
  decompress: z.boolean().describe("Override the decompress option when making requests. Optional, defaults to false.").optional(),
12
- query_params: z.object({}).describe("Optional query parameters to pass to the external API endpoint.").optional(),
12
+ query_params: z.record(z.string(), z.unknown()).describe("Optional query parameters to pass to the external API endpoint.").optional(),
13
13
  connection_id: z.string().describe("The connection ID used to create the connection in Nango."),
14
- custom_headers: z.object({}).describe("Additional custom headers to pass to the external API. These will be prefixed with 'nango-proxy-' automatically.").optional(),
14
+ 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(),
15
15
  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(),
16
16
  provider_config_key: z.string().describe("The integration ID used to create the connection (aka Unique Key).")
17
17
  }).describe("Request model for making a GET request through Nango's proxy."),
@@ -25,9 +25,9 @@ const nangoGetProxy = action("NANGO_GET_PROXY", {
25
25
  z.record(z.string(), z.unknown())
26
26
  ]).nullable().optional(),
27
27
  text: z.string().describe("The raw text response from the external API (if not JSON).").nullable().optional(),
28
- headers: z.object({}).describe("Response headers returned by the external API.").nullable().optional(),
28
+ headers: z.record(z.string(), z.unknown()).describe("Response headers returned by the external API.").nullable().optional(),
29
29
  status_code: z.number().int().describe("HTTP status code returned by the external API.").nullable()
30
- }).describe("Response model for proxy GET requests.")
30
+ }).passthrough().describe("Response model for proxy GET requests.")
31
31
  });
32
32
  //#endregion
33
33
  export { nangoGetProxy };
@@ -1 +1 @@
1
- {"version":3,"file":"get-proxy.mjs","names":[],"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.object({}).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.object({}).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.object({}).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}).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":";;AAsBA,MAAa,gBAAgB,OAAO,mBAAmB;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtBgC,EAAE,OAAO;EACzC,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;EAC1I,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kJAAkJ;EAChL,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;EACtI,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;EAC/H,cAAc,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EAChH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;EAC9F,gBAAgB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;EACnK,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;EAC/J,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CAC/G,CAAC,CAAC,CAAC,SAAS,+DAYH;CACP,QAZiC,EAAE,OAAO;EAC1C,MAAM,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,OAAO;GAAG,EAAE,QAAQ;GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC;GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;EAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpJ,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACpG,CAAC,CAAC,CAAC,SAAS,wCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-proxy.mjs","names":[],"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":";;AAsBA,MAAa,gBAAgB,OAAO,mBAAmB;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtBgC,EAAE,OAAO;EACzC,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;EAC1I,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,CAAC,SAAS,wCAOhB;AACV,CAAC"}
@@ -21,14 +21,14 @@ const NangoGetSyncStatus_SyncStatusItemSchema = zod.z.object({
21
21
  status: NangoGetSyncStatus_SyncStatusSchema.nullable(),
22
22
  variant: zod.z.string().describe("The variant of the sync.").nullable().optional(),
23
23
  frequency: zod.z.string().describe("The execution frequency of the sync.").nullable().optional(),
24
- checkpoint: zod.z.object({}).describe("Last checkpoint saved during sync execution. Null if no checkpoint exists.").nullable().optional(),
24
+ checkpoint: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Last checkpoint saved during sync execution. Null if no checkpoint exists.").nullable().optional(),
25
25
  finishedAt: zod.z.string().describe("ISO timestamp of last completion.").nullable().optional(),
26
- recordCount: zod.z.object({}).describe("Total count of records for each model synced by the sync.").nullable().optional(),
27
- latestResult: zod.z.object({}).describe("Additional information regarding the latest result of the sync. Contains a model name with added, updated and deleted records.").nullable().optional(),
26
+ recordCount: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Total count of records for each model synced by the sync.").nullable().optional(),
27
+ latestResult: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional information regarding the latest result of the sync. Contains a model name with added, updated and deleted records.").nullable().optional(),
28
28
  connection_id: zod.z.string().describe("The ID of the connection.").nullable(),
29
29
  nextScheduledSyncAt: zod.z.string().describe("ISO timestamp of next scheduled run.").nullable().optional()
30
- }).describe("Model representing the status of a single sync.");
31
- const NangoGetSyncStatusOutput = zod.z.object({ syncs: zod.z.array(NangoGetSyncStatus_SyncStatusItemSchema).describe("List of sync status objects.") }).describe("Response model for getting sync status.");
30
+ }).passthrough().describe("Model representing the status of a single sync.");
31
+ const NangoGetSyncStatusOutput = zod.z.object({ syncs: zod.z.array(NangoGetSyncStatus_SyncStatusItemSchema).describe("List of sync status objects.") }).passthrough().describe("Response model for getting sync status.");
32
32
  const nangoGetSyncStatus = require_action.action("NANGO_GET_SYNC_STATUS", {
33
33
  slug: "nango-get-sync-status",
34
34
  name: "Get Sync Status",