@veruna/api-contracts 12.5.0 → 13.0.0

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 (242) hide show
  1. package/build/controllers/connectors.controllers.d.ts +2 -0
  2. package/build/controllers/connectors.controllers.js +6 -0
  3. package/build/controllers/connectors.controllers.js.map +1 -0
  4. package/build/controllers/index.d.ts +2 -0
  5. package/build/controllers/index.js +7 -2
  6. package/build/controllers/index.js.map +1 -1
  7. package/build/controllers/seo-blocks.controllers.d.ts +1 -0
  8. package/build/controllers/seo-blocks.controllers.js +5 -0
  9. package/build/controllers/seo-blocks.controllers.js.map +1 -0
  10. package/build/locales/validation.d.ts +346 -16
  11. package/build/locales/validation.js +346 -16
  12. package/build/locales/validation.js.map +1 -1
  13. package/build/rest-api.d.ts +32 -0
  14. package/build/rest-api.js +32 -0
  15. package/build/rest-api.js.map +1 -1
  16. package/build/routes/connectors-admin.routes.d.ts +10 -0
  17. package/build/routes/connectors-admin.routes.js +14 -0
  18. package/build/routes/connectors-admin.routes.js.map +1 -0
  19. package/build/routes/connectors-reg.routes.d.ts +11 -0
  20. package/build/routes/connectors-reg.routes.js +15 -0
  21. package/build/routes/connectors-reg.routes.js.map +1 -0
  22. package/build/routes/index.d.ts +3 -0
  23. package/build/routes/index.js +8 -2
  24. package/build/routes/index.js.map +1 -1
  25. package/build/routes/seo-blocks-admin.routes.d.ts +7 -0
  26. package/build/routes/seo-blocks-admin.routes.js +11 -0
  27. package/build/routes/seo-blocks-admin.routes.js.map +1 -0
  28. package/build/tsconfig.tsbuildinfo +1 -1
  29. package/build/v1/connector/admin/commands/create-connector-provider.command.d.ts +49 -0
  30. package/build/v1/connector/admin/commands/create-connector-provider.command.js +14 -0
  31. package/build/v1/connector/admin/commands/create-connector-provider.command.js.map +1 -0
  32. package/build/v1/connector/admin/commands/delete-connector-provider.command.d.ts +11 -0
  33. package/build/v1/connector/admin/commands/delete-connector-provider.command.js +15 -0
  34. package/build/v1/connector/admin/commands/delete-connector-provider.command.js.map +1 -0
  35. package/build/v1/connector/admin/commands/grant-connector-access.command.d.ts +16 -0
  36. package/build/v1/connector/admin/commands/grant-connector-access.command.js +14 -0
  37. package/build/v1/connector/admin/commands/grant-connector-access.command.js.map +1 -0
  38. package/build/v1/connector/admin/commands/index.d.ts +5 -0
  39. package/build/v1/connector/admin/commands/index.js +22 -0
  40. package/build/v1/connector/admin/commands/index.js.map +1 -0
  41. package/build/v1/connector/admin/commands/revoke-connector-access.command.d.ts +12 -0
  42. package/build/v1/connector/admin/commands/revoke-connector-access.command.js +15 -0
  43. package/build/v1/connector/admin/commands/revoke-connector-access.command.js.map +1 -0
  44. package/build/v1/connector/admin/commands/update-connector-provider.command.d.ts +46 -0
  45. package/build/v1/connector/admin/commands/update-connector-provider.command.js +14 -0
  46. package/build/v1/connector/admin/commands/update-connector-provider.command.js.map +1 -0
  47. package/build/v1/connector/admin/index.d.ts +2 -0
  48. package/build/v1/connector/admin/index.js +19 -0
  49. package/build/v1/connector/admin/index.js.map +1 -0
  50. package/build/v1/connector/admin/queries/get-connector-access.query.d.ts +15 -0
  51. package/build/v1/connector/admin/queries/get-connector-access.query.js +15 -0
  52. package/build/v1/connector/admin/queries/get-connector-access.query.js.map +1 -0
  53. package/build/v1/connector/admin/queries/get-connector-provider-by-id.query.d.ts +30 -0
  54. package/build/v1/connector/admin/queries/get-connector-provider-by-id.query.js +15 -0
  55. package/build/v1/connector/admin/queries/get-connector-provider-by-id.query.js.map +1 -0
  56. package/build/v1/connector/admin/queries/get-connector-providers.query.d.ts +32 -0
  57. package/build/v1/connector/admin/queries/get-connector-providers.query.js +15 -0
  58. package/build/v1/connector/admin/queries/get-connector-providers.query.js.map +1 -0
  59. package/build/v1/connector/admin/queries/index.d.ts +3 -0
  60. package/build/v1/connector/admin/queries/index.js +20 -0
  61. package/build/v1/connector/admin/queries/index.js.map +1 -0
  62. package/build/v1/connector/connector-runtime.constants.d.ts +1 -0
  63. package/build/v1/connector/connector-runtime.constants.js +5 -0
  64. package/build/v1/connector/connector-runtime.constants.js.map +1 -0
  65. package/build/v1/connector/connector.errors.d.ts +28 -0
  66. package/build/v1/connector/connector.errors.js +129 -0
  67. package/build/v1/connector/connector.errors.js.map +1 -0
  68. package/build/v1/connector/index.d.ts +5 -0
  69. package/build/v1/connector/index.js +22 -0
  70. package/build/v1/connector/index.js.map +1 -0
  71. package/build/v1/connector/public/commands/authorize-connector.command.d.ts +11 -0
  72. package/build/v1/connector/public/commands/authorize-connector.command.js +15 -0
  73. package/build/v1/connector/public/commands/authorize-connector.command.js.map +1 -0
  74. package/build/v1/connector/public/commands/check-connection.command.d.ts +14 -0
  75. package/build/v1/connector/public/commands/check-connection.command.js +15 -0
  76. package/build/v1/connector/public/commands/check-connection.command.js.map +1 -0
  77. package/build/v1/connector/public/commands/connector-oauth-callback.command.d.ts +25 -0
  78. package/build/v1/connector/public/commands/connector-oauth-callback.command.js +14 -0
  79. package/build/v1/connector/public/commands/connector-oauth-callback.command.js.map +1 -0
  80. package/build/v1/connector/public/commands/create-custom-mcp.command.d.ts +32 -0
  81. package/build/v1/connector/public/commands/create-custom-mcp.command.js +14 -0
  82. package/build/v1/connector/public/commands/create-custom-mcp.command.js.map +1 -0
  83. package/build/v1/connector/public/commands/delete-connection.command.d.ts +11 -0
  84. package/build/v1/connector/public/commands/delete-connection.command.js +15 -0
  85. package/build/v1/connector/public/commands/delete-connection.command.js.map +1 -0
  86. package/build/v1/connector/public/commands/index.d.ts +7 -0
  87. package/build/v1/connector/public/commands/index.js +24 -0
  88. package/build/v1/connector/public/commands/index.js.map +1 -0
  89. package/build/v1/connector/public/commands/resync-custom-mcp.command.d.ts +23 -0
  90. package/build/v1/connector/public/commands/resync-custom-mcp.command.js +14 -0
  91. package/build/v1/connector/public/commands/resync-custom-mcp.command.js.map +1 -0
  92. package/build/v1/connector/public/commands/update-custom-mcp.command.d.ts +26 -0
  93. package/build/v1/connector/public/commands/update-custom-mcp.command.js +14 -0
  94. package/build/v1/connector/public/commands/update-custom-mcp.command.js.map +1 -0
  95. package/build/v1/connector/public/index.d.ts +2 -0
  96. package/build/v1/connector/public/index.js +19 -0
  97. package/build/v1/connector/public/index.js.map +1 -0
  98. package/build/v1/connector/public/queries/get-connector-catalog.query.d.ts +23 -0
  99. package/build/v1/connector/public/queries/get-connector-catalog.query.js +15 -0
  100. package/build/v1/connector/public/queries/get-connector-catalog.query.js.map +1 -0
  101. package/build/v1/connector/public/queries/get-my-connections.query.d.ts +23 -0
  102. package/build/v1/connector/public/queries/get-my-connections.query.js +15 -0
  103. package/build/v1/connector/public/queries/get-my-connections.query.js.map +1 -0
  104. package/build/v1/connector/public/queries/index.d.ts +2 -0
  105. package/build/v1/connector/public/queries/index.js +19 -0
  106. package/build/v1/connector/public/queries/index.js.map +1 -0
  107. package/build/v1/connector/schemas/connection.schema.d.ts +95 -0
  108. package/build/v1/connector/schemas/connection.schema.js +85 -0
  109. package/build/v1/connector/schemas/connection.schema.js.map +1 -0
  110. package/build/v1/connector/schemas/connector-access-mode.enum.d.ts +4 -0
  111. package/build/v1/connector/schemas/connector-access-mode.enum.js +9 -0
  112. package/build/v1/connector/schemas/connector-access-mode.enum.js.map +1 -0
  113. package/build/v1/connector/schemas/connector-access.schema.d.ts +24 -0
  114. package/build/v1/connector/schemas/connector-access.schema.js +23 -0
  115. package/build/v1/connector/schemas/connector-access.schema.js.map +1 -0
  116. package/build/v1/connector/schemas/connector-auth-type.enum.d.ts +5 -0
  117. package/build/v1/connector/schemas/connector-auth-type.enum.js +10 -0
  118. package/build/v1/connector/schemas/connector-auth-type.enum.js.map +1 -0
  119. package/build/v1/connector/schemas/connector-oauth-request-status.enum.d.ts +5 -0
  120. package/build/v1/connector/schemas/connector-oauth-request-status.enum.js +10 -0
  121. package/build/v1/connector/schemas/connector-oauth-request-status.enum.js.map +1 -0
  122. package/build/v1/connector/schemas/connector-provider-status.enum.d.ts +4 -0
  123. package/build/v1/connector/schemas/connector-provider-status.enum.js +9 -0
  124. package/build/v1/connector/schemas/connector-provider-status.enum.js.map +1 -0
  125. package/build/v1/connector/schemas/connector-provider.schema.d.ts +170 -0
  126. package/build/v1/connector/schemas/connector-provider.schema.js +151 -0
  127. package/build/v1/connector/schemas/connector-provider.schema.js.map +1 -0
  128. package/build/v1/connector/schemas/connector-selection.schema.d.ts +11 -0
  129. package/build/v1/connector/schemas/connector-selection.schema.js +29 -0
  130. package/build/v1/connector/schemas/connector-selection.schema.js.map +1 -0
  131. package/build/v1/connector/schemas/connector-sensitivity.enum.d.ts +4 -0
  132. package/build/v1/connector/schemas/connector-sensitivity.enum.js +9 -0
  133. package/build/v1/connector/schemas/connector-sensitivity.enum.js.map +1 -0
  134. package/build/v1/connector/schemas/connector-vendor.enum.d.ts +4 -0
  135. package/build/v1/connector/schemas/connector-vendor.enum.js +9 -0
  136. package/build/v1/connector/schemas/connector-vendor.enum.js.map +1 -0
  137. package/build/v1/connector/schemas/connector-visibility.enum.d.ts +4 -0
  138. package/build/v1/connector/schemas/connector-visibility.enum.js +9 -0
  139. package/build/v1/connector/schemas/connector-visibility.enum.js.map +1 -0
  140. package/build/v1/connector/schemas/index.d.ts +14 -0
  141. package/build/v1/connector/schemas/index.js +31 -0
  142. package/build/v1/connector/schemas/index.js.map +1 -0
  143. package/build/v1/connector/schemas/tool-snapshot.schema.d.ts +7 -0
  144. package/build/v1/connector/schemas/tool-snapshot.schema.js +10 -0
  145. package/build/v1/connector/schemas/tool-snapshot.schema.js.map +1 -0
  146. package/build/v1/connector/schemas/user-connection-status.enum.d.ts +6 -0
  147. package/build/v1/connector/schemas/user-connection-status.enum.js +11 -0
  148. package/build/v1/connector/schemas/user-connection-status.enum.js.map +1 -0
  149. package/build/v1/connector/schemas/user-connection-type.enum.d.ts +4 -0
  150. package/build/v1/connector/schemas/user-connection-type.enum.js +9 -0
  151. package/build/v1/connector/schemas/user-connection-type.enum.js.map +1 -0
  152. package/build/v1/index.d.ts +2 -0
  153. package/build/v1/index.js +2 -0
  154. package/build/v1/index.js.map +1 -1
  155. package/build/v1/message/commands/create-message.command.d.ts +5 -0
  156. package/build/v1/message/schemas/create-message-request.schema.d.ts +5 -0
  157. package/build/v1/message/schemas/create-message-request.schema.js +5 -0
  158. package/build/v1/message/schemas/create-message-request.schema.js.map +1 -1
  159. package/build/v1/seo-blocks/admin/commands/create-block.command.d.ts +24 -0
  160. package/build/v1/seo-blocks/admin/commands/create-block.command.js +14 -0
  161. package/build/v1/seo-blocks/admin/commands/create-block.command.js.map +1 -0
  162. package/build/v1/seo-blocks/admin/commands/delete-block.command.d.ts +12 -0
  163. package/build/v1/seo-blocks/admin/commands/delete-block.command.js +15 -0
  164. package/build/v1/seo-blocks/admin/commands/delete-block.command.js.map +1 -0
  165. package/build/v1/seo-blocks/admin/commands/index.d.ts +3 -0
  166. package/build/v1/seo-blocks/admin/commands/index.js +10 -0
  167. package/build/v1/seo-blocks/admin/commands/index.js.map +1 -0
  168. package/build/v1/seo-blocks/admin/commands/update-block.command.d.ts +24 -0
  169. package/build/v1/seo-blocks/admin/commands/update-block.command.js +14 -0
  170. package/build/v1/seo-blocks/admin/commands/update-block.command.js.map +1 -0
  171. package/build/v1/seo-blocks/admin/queries/get-block.query.d.ts +19 -0
  172. package/build/v1/seo-blocks/admin/queries/get-block.query.js +15 -0
  173. package/build/v1/seo-blocks/admin/queries/get-block.query.js.map +1 -0
  174. package/build/v1/seo-blocks/admin/queries/get-blocks.query.d.ts +38 -0
  175. package/build/v1/seo-blocks/admin/queries/get-blocks.query.js +20 -0
  176. package/build/v1/seo-blocks/admin/queries/get-blocks.query.js.map +1 -0
  177. package/build/v1/seo-blocks/admin/queries/index.d.ts +2 -0
  178. package/build/v1/seo-blocks/admin/queries/index.js +8 -0
  179. package/build/v1/seo-blocks/admin/queries/index.js.map +1 -0
  180. package/build/v1/seo-blocks/content-schemas/example-text.block.d.ts +6 -0
  181. package/build/v1/seo-blocks/content-schemas/example-text.block.js +9 -0
  182. package/build/v1/seo-blocks/content-schemas/example-text.block.js.map +1 -0
  183. package/build/v1/seo-blocks/content-schemas/index.d.ts +5 -0
  184. package/build/v1/seo-blocks/content-schemas/index.js +18 -0
  185. package/build/v1/seo-blocks/content-schemas/index.js.map +1 -0
  186. package/build/v1/seo-blocks/index.d.ts +5 -0
  187. package/build/v1/seo-blocks/index.js +29 -0
  188. package/build/v1/seo-blocks/index.js.map +1 -0
  189. package/build/v1/seo-blocks/schemas/admin-seo-block-sort.enum.d.ts +5 -0
  190. package/build/v1/seo-blocks/schemas/admin-seo-block-sort.enum.js +10 -0
  191. package/build/v1/seo-blocks/schemas/admin-seo-block-sort.enum.js.map +1 -0
  192. package/build/v1/seo-blocks/schemas/create-seo-block-request.schema.d.ts +8 -0
  193. package/build/v1/seo-blocks/schemas/create-seo-block-request.schema.js +31 -0
  194. package/build/v1/seo-blocks/schemas/create-seo-block-request.schema.js.map +1 -0
  195. package/build/v1/seo-blocks/schemas/get-seo-blocks-filters.schema.d.ts +11 -0
  196. package/build/v1/seo-blocks/schemas/get-seo-blocks-filters.schema.js +19 -0
  197. package/build/v1/seo-blocks/schemas/get-seo-blocks-filters.schema.js.map +1 -0
  198. package/build/v1/seo-blocks/schemas/index.d.ts +9 -0
  199. package/build/v1/seo-blocks/schemas/index.js +29 -0
  200. package/build/v1/seo-blocks/schemas/index.js.map +1 -0
  201. package/build/v1/seo-blocks/schemas/seo-block-content.schema.d.ts +6 -0
  202. package/build/v1/seo-blocks/schemas/seo-block-content.schema.js +28 -0
  203. package/build/v1/seo-blocks/schemas/seo-block-content.schema.js.map +1 -0
  204. package/build/v1/seo-blocks/schemas/seo-block-response.schema.d.ts +18 -0
  205. package/build/v1/seo-blocks/schemas/seo-block-response.schema.js +23 -0
  206. package/build/v1/seo-blocks/schemas/seo-block-response.schema.js.map +1 -0
  207. package/build/v1/seo-blocks/schemas/seo-block-status.enum.d.ts +5 -0
  208. package/build/v1/seo-blocks/schemas/seo-block-status.enum.js +10 -0
  209. package/build/v1/seo-blocks/schemas/seo-block-status.enum.js.map +1 -0
  210. package/build/v1/seo-blocks/schemas/seo-block-validation.d.ts +3 -0
  211. package/build/v1/seo-blocks/schemas/seo-block-validation.js +41 -0
  212. package/build/v1/seo-blocks/schemas/seo-block-validation.js.map +1 -0
  213. package/build/v1/seo-blocks/schemas/seo-block.constants.d.ts +4 -0
  214. package/build/v1/seo-blocks/schemas/seo-block.constants.js +8 -0
  215. package/build/v1/seo-blocks/schemas/seo-block.constants.js.map +1 -0
  216. package/build/v1/seo-blocks/schemas/update-seo-block-request.schema.d.ts +8 -0
  217. package/build/v1/seo-blocks/schemas/update-seo-block-request.schema.js +40 -0
  218. package/build/v1/seo-blocks/schemas/update-seo-block-request.schema.js.map +1 -0
  219. package/build/v1/seo-blocks/seo-blocks.errors.d.ts +6 -0
  220. package/build/v1/seo-blocks/seo-blocks.errors.js +19 -0
  221. package/build/v1/seo-blocks/seo-blocks.errors.js.map +1 -0
  222. package/build/v1/seo-pages/admin/commands/create-page.command.d.ts +10 -2
  223. package/build/v1/seo-pages/admin/commands/update-page.command.d.ts +10 -2
  224. package/build/v1/seo-pages/admin/queries/get-page.query.d.ts +10 -1
  225. package/build/v1/seo-pages/public/queries/get-index-page.query.d.ts +5 -1
  226. package/build/v1/seo-pages/public/queries/get-page-by-alias.query.d.ts +5 -1
  227. package/build/v1/seo-pages/schemas/create-page-request.schema.d.ts +0 -2
  228. package/build/v1/seo-pages/schemas/create-page-request.schema.js +0 -5
  229. package/build/v1/seo-pages/schemas/create-page-request.schema.js.map +1 -1
  230. package/build/v1/seo-pages/schemas/index.d.ts +0 -1
  231. package/build/v1/seo-pages/schemas/index.js +1 -3
  232. package/build/v1/seo-pages/schemas/index.js.map +1 -1
  233. package/build/v1/seo-pages/schemas/page-response.schema.d.ts +15 -3
  234. package/build/v1/seo-pages/schemas/page-response.schema.js +4 -2
  235. package/build/v1/seo-pages/schemas/page-response.schema.js.map +1 -1
  236. package/build/v1/seo-pages/schemas/update-page-request.schema.d.ts +0 -2
  237. package/build/v1/seo-pages/schemas/update-page-request.schema.js +0 -5
  238. package/build/v1/seo-pages/schemas/update-page-request.schema.js.map +1 -1
  239. package/package.json +1 -1
  240. package/build/v1/seo-pages/schemas/page-block.enum.d.ts +0 -10
  241. package/build/v1/seo-pages/schemas/page-block.enum.js +0 -15
  242. package/build/v1/seo-pages/schemas/page-block.enum.js.map +0 -1
@@ -0,0 +1,129 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CONNECTOR_ERRORS = exports.ConnectorErrorCode = void 0;
4
+ var ConnectorErrorCode;
5
+ (function (ConnectorErrorCode) {
6
+ ConnectorErrorCode["PROVIDER_NOT_FOUND"] = "PROVIDER_NOT_FOUND";
7
+ ConnectorErrorCode["CONNECTION_NOT_FOUND"] = "CONNECTION_NOT_FOUND";
8
+ ConnectorErrorCode["PROVIDER_DISABLED"] = "PROVIDER_DISABLED";
9
+ ConnectorErrorCode["CONNECTION_NOT_ACTIVE"] = "CONNECTION_NOT_ACTIVE";
10
+ ConnectorErrorCode["CONNECTION_ALREADY_EXISTS"] = "CONNECTION_ALREADY_EXISTS";
11
+ ConnectorErrorCode["PROVIDER_ALREADY_EXISTS"] = "PROVIDER_ALREADY_EXISTS";
12
+ ConnectorErrorCode["ACCESS_DENIED"] = "ACCESS_DENIED";
13
+ ConnectorErrorCode["OAUTH_REQUEST_NOT_FOUND"] = "OAUTH_REQUEST_NOT_FOUND";
14
+ ConnectorErrorCode["OAUTH_REQUEST_EXPIRED"] = "OAUTH_REQUEST_EXPIRED";
15
+ ConnectorErrorCode["OAUTH_STATE_MISMATCH"] = "OAUTH_STATE_MISMATCH";
16
+ ConnectorErrorCode["OAUTH_EXCHANGE_FAILED"] = "OAUTH_EXCHANGE_FAILED";
17
+ ConnectorErrorCode["MCP_HANDSHAKE_FAILED"] = "MCP_HANDSHAKE_FAILED";
18
+ ConnectorErrorCode["MCP_URL_FORBIDDEN"] = "MCP_URL_FORBIDDEN";
19
+ ConnectorErrorCode["CONNECTOR_URL_NOT_ALLOWED"] = "CONNECTOR_URL_NOT_ALLOWED";
20
+ ConnectorErrorCode["MCP_TOOLS_LIMIT_EXCEEDED"] = "MCP_TOOLS_LIMIT_EXCEEDED";
21
+ ConnectorErrorCode["MCP_SNAPSHOT_STALE"] = "MCP_SNAPSHOT_STALE";
22
+ ConnectorErrorCode["MIXED_TRUST_CONFIRMATION_REQUIRED"] = "MIXED_TRUST_CONFIRMATION_REQUIRED";
23
+ ConnectorErrorCode["MCP_SERVER_UNREACHABLE"] = "MCP_SERVER_UNREACHABLE";
24
+ ConnectorErrorCode["MCP_TOOL_UNAVAILABLE"] = "MCP_TOOL_UNAVAILABLE";
25
+ ConnectorErrorCode["CONNECTOR_LIMIT_EXCEEDED"] = "CONNECTOR_LIMIT_EXCEEDED";
26
+ ConnectorErrorCode["CONNECTOR_UPSTREAM_ERROR"] = "CONNECTOR_UPSTREAM_ERROR";
27
+ ConnectorErrorCode["CONNECTOR_RESOURCE_NOT_FOUND"] = "CONNECTOR_RESOURCE_NOT_FOUND";
28
+ ConnectorErrorCode["CONNECTOR_CONTENT_TOO_LARGE"] = "CONNECTOR_CONTENT_TOO_LARGE";
29
+ ConnectorErrorCode["VENDOR_REAUTH_REQUIRED"] = "VENDOR_REAUTH_REQUIRED";
30
+ })(ConnectorErrorCode || (exports.ConnectorErrorCode = ConnectorErrorCode = {}));
31
+ exports.CONNECTOR_ERRORS = {
32
+ [ConnectorErrorCode.PROVIDER_NOT_FOUND]: {
33
+ code: ConnectorErrorCode.PROVIDER_NOT_FOUND,
34
+ statusCode: 404,
35
+ },
36
+ [ConnectorErrorCode.CONNECTION_NOT_FOUND]: {
37
+ code: ConnectorErrorCode.CONNECTION_NOT_FOUND,
38
+ statusCode: 404,
39
+ },
40
+ [ConnectorErrorCode.PROVIDER_DISABLED]: {
41
+ code: ConnectorErrorCode.PROVIDER_DISABLED,
42
+ statusCode: 409,
43
+ },
44
+ [ConnectorErrorCode.CONNECTION_NOT_ACTIVE]: {
45
+ code: ConnectorErrorCode.CONNECTION_NOT_ACTIVE,
46
+ statusCode: 409,
47
+ },
48
+ [ConnectorErrorCode.CONNECTION_ALREADY_EXISTS]: {
49
+ code: ConnectorErrorCode.CONNECTION_ALREADY_EXISTS,
50
+ statusCode: 409,
51
+ },
52
+ [ConnectorErrorCode.PROVIDER_ALREADY_EXISTS]: {
53
+ code: ConnectorErrorCode.PROVIDER_ALREADY_EXISTS,
54
+ statusCode: 409,
55
+ },
56
+ [ConnectorErrorCode.ACCESS_DENIED]: {
57
+ code: ConnectorErrorCode.ACCESS_DENIED,
58
+ statusCode: 403,
59
+ },
60
+ [ConnectorErrorCode.OAUTH_REQUEST_NOT_FOUND]: {
61
+ code: ConnectorErrorCode.OAUTH_REQUEST_NOT_FOUND,
62
+ statusCode: 404,
63
+ },
64
+ [ConnectorErrorCode.OAUTH_REQUEST_EXPIRED]: {
65
+ code: ConnectorErrorCode.OAUTH_REQUEST_EXPIRED,
66
+ statusCode: 410,
67
+ },
68
+ [ConnectorErrorCode.OAUTH_STATE_MISMATCH]: {
69
+ code: ConnectorErrorCode.OAUTH_STATE_MISMATCH,
70
+ statusCode: 409,
71
+ },
72
+ [ConnectorErrorCode.OAUTH_EXCHANGE_FAILED]: {
73
+ code: ConnectorErrorCode.OAUTH_EXCHANGE_FAILED,
74
+ statusCode: 502,
75
+ },
76
+ [ConnectorErrorCode.MCP_HANDSHAKE_FAILED]: {
77
+ code: ConnectorErrorCode.MCP_HANDSHAKE_FAILED,
78
+ statusCode: 502,
79
+ },
80
+ [ConnectorErrorCode.MCP_URL_FORBIDDEN]: {
81
+ code: ConnectorErrorCode.MCP_URL_FORBIDDEN,
82
+ statusCode: 422,
83
+ },
84
+ [ConnectorErrorCode.CONNECTOR_URL_NOT_ALLOWED]: {
85
+ code: ConnectorErrorCode.CONNECTOR_URL_NOT_ALLOWED,
86
+ statusCode: 422,
87
+ },
88
+ [ConnectorErrorCode.MCP_TOOLS_LIMIT_EXCEEDED]: {
89
+ code: ConnectorErrorCode.MCP_TOOLS_LIMIT_EXCEEDED,
90
+ statusCode: 422,
91
+ },
92
+ [ConnectorErrorCode.MCP_SNAPSHOT_STALE]: {
93
+ code: ConnectorErrorCode.MCP_SNAPSHOT_STALE,
94
+ statusCode: 409,
95
+ },
96
+ [ConnectorErrorCode.MIXED_TRUST_CONFIRMATION_REQUIRED]: {
97
+ code: ConnectorErrorCode.MIXED_TRUST_CONFIRMATION_REQUIRED,
98
+ statusCode: 409,
99
+ },
100
+ [ConnectorErrorCode.MCP_SERVER_UNREACHABLE]: {
101
+ code: ConnectorErrorCode.MCP_SERVER_UNREACHABLE,
102
+ statusCode: 502,
103
+ },
104
+ [ConnectorErrorCode.MCP_TOOL_UNAVAILABLE]: {
105
+ code: ConnectorErrorCode.MCP_TOOL_UNAVAILABLE,
106
+ statusCode: 409,
107
+ },
108
+ [ConnectorErrorCode.CONNECTOR_LIMIT_EXCEEDED]: {
109
+ code: ConnectorErrorCode.CONNECTOR_LIMIT_EXCEEDED,
110
+ statusCode: 422,
111
+ },
112
+ [ConnectorErrorCode.CONNECTOR_UPSTREAM_ERROR]: {
113
+ code: ConnectorErrorCode.CONNECTOR_UPSTREAM_ERROR,
114
+ statusCode: 502,
115
+ },
116
+ [ConnectorErrorCode.CONNECTOR_RESOURCE_NOT_FOUND]: {
117
+ code: ConnectorErrorCode.CONNECTOR_RESOURCE_NOT_FOUND,
118
+ statusCode: 404,
119
+ },
120
+ [ConnectorErrorCode.CONNECTOR_CONTENT_TOO_LARGE]: {
121
+ code: ConnectorErrorCode.CONNECTOR_CONTENT_TOO_LARGE,
122
+ statusCode: 422,
123
+ },
124
+ [ConnectorErrorCode.VENDOR_REAUTH_REQUIRED]: {
125
+ code: ConnectorErrorCode.VENDOR_REAUTH_REQUIRED,
126
+ statusCode: 409,
127
+ },
128
+ };
129
+ //# sourceMappingURL=connector.errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connector.errors.js","sourceRoot":"","sources":["../../../v1/connector/connector.errors.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,5 @@
1
+ export * from './connector.errors';
2
+ export * from './connector-runtime.constants';
3
+ export * from './schemas';
4
+ export * from './public';
5
+ export * from './admin';
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./connector.errors"), exports);
18
+ __exportStar(require("./connector-runtime.constants"), exports);
19
+ __exportStar(require("./schemas"), exports);
20
+ __exportStar(require("./public"), exports);
21
+ __exportStar(require("./admin"), exports);
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/connector/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,gEAA8C;AAC9C,4CAA0B;AAC1B,2CAAyB;AACzB,0CAAwB"}
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../../shared/http-method.enum';
3
+ export declare namespace AuthorizeConnectorCommand {
4
+ const Request: z.ZodVoid;
5
+ const Response: z.ZodObject<{
6
+ authorizeUrl: z.ZodString;
7
+ }, z.core.$strip>;
8
+ const URL: (providerKey: string) => string;
9
+ const METHOD = HttpMethod.POST;
10
+ type ResponseType = z.infer<typeof Response>;
11
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuthorizeConnectorCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const schemas_1 = require("../../schemas");
6
+ const rest_api_1 = require("../../../../rest-api");
7
+ const http_method_enum_1 = require("../../../../shared/http-method.enum");
8
+ var AuthorizeConnectorCommand;
9
+ (function (AuthorizeConnectorCommand) {
10
+ AuthorizeConnectorCommand.Request = zod_1.z.void();
11
+ AuthorizeConnectorCommand.Response = schemas_1.AuthorizeConnectorResponseSchema;
12
+ AuthorizeConnectorCommand.URL = (providerKey) => rest_api_1.REST_API.V1.CONNECTORS.REG.AUTHORIZE(providerKey);
13
+ AuthorizeConnectorCommand.METHOD = http_method_enum_1.HttpMethod.POST;
14
+ })(AuthorizeConnectorCommand || (exports.AuthorizeConnectorCommand = AuthorizeConnectorCommand = {}));
15
+ //# sourceMappingURL=authorize-connector.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authorize-connector.command.js","sourceRoot":"","sources":["../../../../../v1/connector/public/commands/authorize-connector.command.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,2CAAiE;AACjE,mDAAgD;AAChD,0EAAiE;AAEjE,IAAiB,yBAAyB,CAMzC;AAND,WAAiB,yBAAyB;IACzB,iCAAO,GAAG,OAAC,CAAC,IAAI,EAAE,CAAC;IACnB,kCAAQ,GAAG,0CAAgC,CAAC;IAC5C,6BAAG,GAAG,CAAC,WAAmB,EAAE,EAAE,CAAC,mBAAQ,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACjF,gCAAM,GAAG,6BAAU,CAAC,IAAI,CAAC;AAE1C,CAAC,EANgB,yBAAyB,yCAAzB,yBAAyB,QAMzC"}
@@ -0,0 +1,14 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../../shared/http-method.enum';
3
+ export declare namespace CheckConnectionCommand {
4
+ const Request: z.ZodVoid;
5
+ const Response: z.ZodObject<{
6
+ uuid: z.ZodString;
7
+ status: z.ZodEnum<typeof import("../../schemas").UserConnectionStatus>;
8
+ lastCheckedAt: z.ZodString;
9
+ lastErrorCode: z.ZodNullable<z.ZodString>;
10
+ }, z.core.$strip>;
11
+ const URL: (uuid: string) => string;
12
+ const METHOD = HttpMethod.POST;
13
+ type ResponseType = z.infer<typeof Response>;
14
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CheckConnectionCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const schemas_1 = require("../../schemas");
6
+ const rest_api_1 = require("../../../../rest-api");
7
+ const http_method_enum_1 = require("../../../../shared/http-method.enum");
8
+ var CheckConnectionCommand;
9
+ (function (CheckConnectionCommand) {
10
+ CheckConnectionCommand.Request = zod_1.z.void();
11
+ CheckConnectionCommand.Response = schemas_1.CheckConnectionResponseSchema;
12
+ CheckConnectionCommand.URL = (uuid) => rest_api_1.REST_API.V1.CONNECTORS.REG.CHECK_CONNECTION(uuid);
13
+ CheckConnectionCommand.METHOD = http_method_enum_1.HttpMethod.POST;
14
+ })(CheckConnectionCommand || (exports.CheckConnectionCommand = CheckConnectionCommand = {}));
15
+ //# sourceMappingURL=check-connection.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-connection.command.js","sourceRoot":"","sources":["../../../../../v1/connector/public/commands/check-connection.command.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,2CAA8D;AAC9D,mDAAgD;AAChD,0EAAiE;AAEjE,IAAiB,sBAAsB,CAMtC;AAND,WAAiB,sBAAsB;IACtB,8BAAO,GAAG,OAAC,CAAC,IAAI,EAAE,CAAC;IACnB,+BAAQ,GAAG,uCAA6B,CAAC;IACzC,0BAAG,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,mBAAQ,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAC1E,6BAAM,GAAG,6BAAU,CAAC,IAAI,CAAC;AAE1C,CAAC,EANgB,sBAAsB,sCAAtB,sBAAsB,QAMtC"}
@@ -0,0 +1,25 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../../shared/http-method.enum';
3
+ export declare namespace ConnectorOauthCallbackCommand {
4
+ const Request: z.ZodObject<{
5
+ code: z.ZodString;
6
+ state: z.ZodString;
7
+ }, z.core.$strip>;
8
+ const Response: z.ZodObject<{
9
+ uuid: z.ZodString;
10
+ type: z.ZodEnum<typeof import("../../schemas").UserConnectionType>;
11
+ providerKey: z.ZodNullable<z.ZodString>;
12
+ providerTitle: z.ZodNullable<z.ZodString>;
13
+ title: z.ZodNullable<z.ZodString>;
14
+ mcpUrl: z.ZodNullable<z.ZodString>;
15
+ status: z.ZodEnum<typeof import("../../schemas").UserConnectionStatus>;
16
+ scopes: z.ZodArray<z.ZodString>;
17
+ lastCheckedAt: z.ZodNullable<z.ZodString>;
18
+ lastErrorCode: z.ZodNullable<z.ZodString>;
19
+ createdAt: z.ZodString;
20
+ }, z.core.$strip>;
21
+ const URL: "/api/v1/connectors/oauth/callback";
22
+ const METHOD = HttpMethod.POST;
23
+ type RequestType = z.infer<typeof Request>;
24
+ type ResponseType = z.infer<typeof Response>;
25
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConnectorOauthCallbackCommand = void 0;
4
+ const schemas_1 = require("../../schemas");
5
+ const rest_api_1 = require("../../../../rest-api");
6
+ const http_method_enum_1 = require("../../../../shared/http-method.enum");
7
+ var ConnectorOauthCallbackCommand;
8
+ (function (ConnectorOauthCallbackCommand) {
9
+ ConnectorOauthCallbackCommand.Request = schemas_1.ConnectorOauthCallbackRequestSchema;
10
+ ConnectorOauthCallbackCommand.Response = schemas_1.UserConnectionSchema;
11
+ ConnectorOauthCallbackCommand.URL = rest_api_1.REST_API.V1.CONNECTORS.REG.OAUTH_CALLBACK;
12
+ ConnectorOauthCallbackCommand.METHOD = http_method_enum_1.HttpMethod.POST;
13
+ })(ConnectorOauthCallbackCommand || (exports.ConnectorOauthCallbackCommand = ConnectorOauthCallbackCommand = {}));
14
+ //# sourceMappingURL=connector-oauth-callback.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connector-oauth-callback.command.js","sourceRoot":"","sources":["../../../../../v1/connector/public/commands/connector-oauth-callback.command.ts"],"names":[],"mappings":";;;AACA,2CAA0F;AAC1F,mDAAgD;AAChD,0EAAiE;AAEjE,IAAiB,6BAA6B,CAO7C;AAPD,WAAiB,6BAA6B;IAC7B,qCAAO,GAAG,6CAAmC,CAAC;IAC9C,sCAAQ,GAAG,8BAAoB,CAAC;IAChC,iCAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,cAAc,CAAC;IAChD,oCAAM,GAAG,6BAAU,CAAC,IAAI,CAAC;AAG1C,CAAC,EAPgB,6BAA6B,6CAA7B,6BAA6B,QAO7C"}
@@ -0,0 +1,32 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../../shared/http-method.enum';
3
+ export declare namespace CreateCustomMcpCommand {
4
+ const Request: z.ZodObject<{
5
+ title: z.ZodString;
6
+ url: z.ZodString;
7
+ token: z.ZodOptional<z.ZodString>;
8
+ headerName: z.ZodOptional<z.ZodString>;
9
+ }, z.core.$strip>;
10
+ const Response: z.ZodObject<{
11
+ uuid: z.ZodString;
12
+ type: z.ZodEnum<typeof import("../../schemas").UserConnectionType>;
13
+ providerKey: z.ZodNullable<z.ZodString>;
14
+ providerTitle: z.ZodNullable<z.ZodString>;
15
+ title: z.ZodNullable<z.ZodString>;
16
+ mcpUrl: z.ZodNullable<z.ZodString>;
17
+ status: z.ZodEnum<typeof import("../../schemas").UserConnectionStatus>;
18
+ scopes: z.ZodArray<z.ZodString>;
19
+ lastCheckedAt: z.ZodNullable<z.ZodString>;
20
+ lastErrorCode: z.ZodNullable<z.ZodString>;
21
+ createdAt: z.ZodString;
22
+ tools: z.ZodArray<z.ZodObject<{
23
+ name: z.ZodString;
24
+ description: z.ZodOptional<z.ZodString>;
25
+ inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
26
+ }, z.core.$strip>>;
27
+ }, z.core.$strip>;
28
+ const URL: "/api/v1/connectors/custom";
29
+ const METHOD = HttpMethod.POST;
30
+ type RequestType = z.infer<typeof Request>;
31
+ type ResponseType = z.infer<typeof Response>;
32
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateCustomMcpCommand = void 0;
4
+ const schemas_1 = require("../../schemas");
5
+ const rest_api_1 = require("../../../../rest-api");
6
+ const http_method_enum_1 = require("../../../../shared/http-method.enum");
7
+ var CreateCustomMcpCommand;
8
+ (function (CreateCustomMcpCommand) {
9
+ CreateCustomMcpCommand.Request = schemas_1.CreateCustomMcpRequestSchema;
10
+ CreateCustomMcpCommand.Response = schemas_1.CreateCustomMcpResponseSchema;
11
+ CreateCustomMcpCommand.URL = rest_api_1.REST_API.V1.CONNECTORS.REG.CREATE_CUSTOM;
12
+ CreateCustomMcpCommand.METHOD = http_method_enum_1.HttpMethod.POST;
13
+ })(CreateCustomMcpCommand || (exports.CreateCustomMcpCommand = CreateCustomMcpCommand = {}));
14
+ //# sourceMappingURL=create-custom-mcp.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-custom-mcp.command.js","sourceRoot":"","sources":["../../../../../v1/connector/public/commands/create-custom-mcp.command.ts"],"names":[],"mappings":";;;AACA,2CAA4F;AAC5F,mDAAgD;AAChD,0EAAiE;AAEjE,IAAiB,sBAAsB,CAOtC;AAPD,WAAiB,sBAAsB;IACtB,8BAAO,GAAG,sCAA4B,CAAC;IACvC,+BAAQ,GAAG,uCAA6B,CAAC;IACzC,0BAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,aAAa,CAAC;IAC/C,6BAAM,GAAG,6BAAU,CAAC,IAAI,CAAC;AAG1C,CAAC,EAPgB,sBAAsB,sCAAtB,sBAAsB,QAOtC"}
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../../shared/http-method.enum';
3
+ export declare namespace DeleteConnectionCommand {
4
+ const Request: z.ZodVoid;
5
+ const Response: z.ZodObject<{
6
+ uuid: z.ZodString;
7
+ }, z.core.$strip>;
8
+ const URL: (uuid: string) => string;
9
+ const METHOD = HttpMethod.DELETE;
10
+ type ResponseType = z.infer<typeof Response>;
11
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteConnectionCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const schemas_1 = require("../../schemas");
6
+ const rest_api_1 = require("../../../../rest-api");
7
+ const http_method_enum_1 = require("../../../../shared/http-method.enum");
8
+ var DeleteConnectionCommand;
9
+ (function (DeleteConnectionCommand) {
10
+ DeleteConnectionCommand.Request = zod_1.z.void();
11
+ DeleteConnectionCommand.Response = schemas_1.DeleteConnectionResponseSchema;
12
+ DeleteConnectionCommand.URL = (uuid) => rest_api_1.REST_API.V1.CONNECTORS.REG.DELETE_CONNECTION(uuid);
13
+ DeleteConnectionCommand.METHOD = http_method_enum_1.HttpMethod.DELETE;
14
+ })(DeleteConnectionCommand || (exports.DeleteConnectionCommand = DeleteConnectionCommand = {}));
15
+ //# sourceMappingURL=delete-connection.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-connection.command.js","sourceRoot":"","sources":["../../../../../v1/connector/public/commands/delete-connection.command.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,2CAA+D;AAC/D,mDAAgD;AAChD,0EAAiE;AAEjE,IAAiB,uBAAuB,CAMvC;AAND,WAAiB,uBAAuB;IACvB,+BAAO,GAAG,OAAC,CAAC,IAAI,EAAE,CAAC;IACnB,gCAAQ,GAAG,wCAA8B,CAAC;IAC1C,2BAAG,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,mBAAQ,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAC3E,8BAAM,GAAG,6BAAU,CAAC,MAAM,CAAC;AAE5C,CAAC,EANgB,uBAAuB,uCAAvB,uBAAuB,QAMvC"}
@@ -0,0 +1,7 @@
1
+ export * from './authorize-connector.command';
2
+ export * from './connector-oauth-callback.command';
3
+ export * from './delete-connection.command';
4
+ export * from './check-connection.command';
5
+ export * from './create-custom-mcp.command';
6
+ export * from './update-custom-mcp.command';
7
+ export * from './resync-custom-mcp.command';
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./authorize-connector.command"), exports);
18
+ __exportStar(require("./connector-oauth-callback.command"), exports);
19
+ __exportStar(require("./delete-connection.command"), exports);
20
+ __exportStar(require("./check-connection.command"), exports);
21
+ __exportStar(require("./create-custom-mcp.command"), exports);
22
+ __exportStar(require("./update-custom-mcp.command"), exports);
23
+ __exportStar(require("./resync-custom-mcp.command"), exports);
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../v1/connector/public/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,qEAAmD;AACnD,8DAA4C;AAC5C,6DAA2C;AAC3C,8DAA4C;AAC5C,8DAA4C;AAC5C,8DAA4C"}
@@ -0,0 +1,23 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../../shared/http-method.enum';
3
+ export declare namespace ResyncConnectionCommand {
4
+ const Request: z.ZodObject<{
5
+ confirmSnapshotHash: z.ZodOptional<z.ZodString>;
6
+ }, z.core.$strip>;
7
+ const Response: z.ZodObject<{
8
+ uuid: z.ZodString;
9
+ snapshotHash: z.ZodString;
10
+ added: z.ZodArray<z.ZodString>;
11
+ removed: z.ZodArray<z.ZodString>;
12
+ changed: z.ZodArray<z.ZodString>;
13
+ tools: z.ZodArray<z.ZodObject<{
14
+ name: z.ZodString;
15
+ description: z.ZodOptional<z.ZodString>;
16
+ inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
17
+ }, z.core.$strip>>;
18
+ }, z.core.$strip>;
19
+ const URL: (uuid: string) => string;
20
+ const METHOD = HttpMethod.POST;
21
+ type RequestType = z.infer<typeof Request>;
22
+ type ResponseType = z.infer<typeof Response>;
23
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ResyncConnectionCommand = void 0;
4
+ const schemas_1 = require("../../schemas");
5
+ const rest_api_1 = require("../../../../rest-api");
6
+ const http_method_enum_1 = require("../../../../shared/http-method.enum");
7
+ var ResyncConnectionCommand;
8
+ (function (ResyncConnectionCommand) {
9
+ ResyncConnectionCommand.Request = schemas_1.ResyncCustomMcpRequestSchema;
10
+ ResyncConnectionCommand.Response = schemas_1.ResyncCustomMcpResponseSchema;
11
+ ResyncConnectionCommand.URL = (uuid) => rest_api_1.REST_API.V1.CONNECTORS.REG.RESYNC_CONNECTION(uuid);
12
+ ResyncConnectionCommand.METHOD = http_method_enum_1.HttpMethod.POST;
13
+ })(ResyncConnectionCommand || (exports.ResyncConnectionCommand = ResyncConnectionCommand = {}));
14
+ //# sourceMappingURL=resync-custom-mcp.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resync-custom-mcp.command.js","sourceRoot":"","sources":["../../../../../v1/connector/public/commands/resync-custom-mcp.command.ts"],"names":[],"mappings":";;;AACA,2CAA4F;AAC5F,mDAAgD;AAChD,0EAAiE;AAEjE,IAAiB,uBAAuB,CAOvC;AAPD,WAAiB,uBAAuB;IACvB,+BAAO,GAAG,sCAA4B,CAAC;IACvC,gCAAQ,GAAG,uCAA6B,CAAC;IACzC,2BAAG,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,mBAAQ,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAC3E,8BAAM,GAAG,6BAAU,CAAC,IAAI,CAAC;AAG1C,CAAC,EAPgB,uBAAuB,uCAAvB,uBAAuB,QAOvC"}
@@ -0,0 +1,26 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../../shared/http-method.enum';
3
+ export declare namespace UpdateCustomMcpCommand {
4
+ const Request: z.ZodObject<{
5
+ title: z.ZodOptional<z.ZodString>;
6
+ token: z.ZodOptional<z.ZodString>;
7
+ headerName: z.ZodOptional<z.ZodString>;
8
+ }, z.core.$strip>;
9
+ const Response: z.ZodObject<{
10
+ uuid: z.ZodString;
11
+ type: z.ZodEnum<typeof import("../../schemas").UserConnectionType>;
12
+ providerKey: z.ZodNullable<z.ZodString>;
13
+ providerTitle: z.ZodNullable<z.ZodString>;
14
+ title: z.ZodNullable<z.ZodString>;
15
+ mcpUrl: z.ZodNullable<z.ZodString>;
16
+ status: z.ZodEnum<typeof import("../../schemas").UserConnectionStatus>;
17
+ scopes: z.ZodArray<z.ZodString>;
18
+ lastCheckedAt: z.ZodNullable<z.ZodString>;
19
+ lastErrorCode: z.ZodNullable<z.ZodString>;
20
+ createdAt: z.ZodString;
21
+ }, z.core.$strip>;
22
+ const URL: (uuid: string) => string;
23
+ const METHOD = HttpMethod.PATCH;
24
+ type RequestType = z.infer<typeof Request>;
25
+ type ResponseType = z.infer<typeof Response>;
26
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateCustomMcpCommand = void 0;
4
+ const schemas_1 = require("../../schemas");
5
+ const rest_api_1 = require("../../../../rest-api");
6
+ const http_method_enum_1 = require("../../../../shared/http-method.enum");
7
+ var UpdateCustomMcpCommand;
8
+ (function (UpdateCustomMcpCommand) {
9
+ UpdateCustomMcpCommand.Request = schemas_1.UpdateCustomMcpRequestSchema;
10
+ UpdateCustomMcpCommand.Response = schemas_1.UserConnectionSchema;
11
+ UpdateCustomMcpCommand.URL = (uuid) => rest_api_1.REST_API.V1.CONNECTORS.REG.UPDATE_CUSTOM(uuid);
12
+ UpdateCustomMcpCommand.METHOD = http_method_enum_1.HttpMethod.PATCH;
13
+ })(UpdateCustomMcpCommand || (exports.UpdateCustomMcpCommand = UpdateCustomMcpCommand = {}));
14
+ //# sourceMappingURL=update-custom-mcp.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-custom-mcp.command.js","sourceRoot":"","sources":["../../../../../v1/connector/public/commands/update-custom-mcp.command.ts"],"names":[],"mappings":";;;AACA,2CAAmF;AACnF,mDAAgD;AAChD,0EAAiE;AAEjE,IAAiB,sBAAsB,CAOtC;AAPD,WAAiB,sBAAsB;IACtB,8BAAO,GAAG,sCAA4B,CAAC;IACvC,+BAAQ,GAAG,8BAAoB,CAAC;IAChC,0BAAG,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,mBAAQ,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IACvE,6BAAM,GAAG,6BAAU,CAAC,KAAK,CAAC;AAG3C,CAAC,EAPgB,sBAAsB,sCAAtB,sBAAsB,QAOtC"}
@@ -0,0 +1,2 @@
1
+ export * from './queries';
2
+ export * from './commands';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./queries"), exports);
18
+ __exportStar(require("./commands"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/connector/public/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,6CAA2B"}
@@ -0,0 +1,23 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../../shared/http-method.enum';
3
+ export declare namespace GetConnectorCatalogQuery {
4
+ const Request: z.ZodVoid;
5
+ const Response: z.ZodObject<{
6
+ providers: z.ZodArray<z.ZodObject<{
7
+ uuid: z.ZodString;
8
+ key: z.ZodString;
9
+ title: z.ZodString;
10
+ description: z.ZodString;
11
+ authType: z.ZodEnum<typeof import("../../schemas").ConnectorAuthType>;
12
+ sensitivity: z.ZodEnum<typeof import("../../schemas").ConnectorSensitivity>;
13
+ order: z.ZodNumber;
14
+ myConnection: z.ZodNullable<z.ZodObject<{
15
+ uuid: z.ZodString;
16
+ status: z.ZodEnum<typeof import("../../schemas").UserConnectionStatus>;
17
+ }, z.core.$strip>>;
18
+ }, z.core.$strip>>;
19
+ }, z.core.$strip>;
20
+ const URL: "/api/v1/connectors/";
21
+ const METHOD = HttpMethod.GET;
22
+ type ResponseType = z.infer<typeof Response>;
23
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetConnectorCatalogQuery = void 0;
4
+ const zod_1 = require("zod");
5
+ const schemas_1 = require("../../schemas");
6
+ const rest_api_1 = require("../../../../rest-api");
7
+ const http_method_enum_1 = require("../../../../shared/http-method.enum");
8
+ var GetConnectorCatalogQuery;
9
+ (function (GetConnectorCatalogQuery) {
10
+ GetConnectorCatalogQuery.Request = zod_1.z.void();
11
+ GetConnectorCatalogQuery.Response = schemas_1.ConnectorCatalogResponseSchema;
12
+ GetConnectorCatalogQuery.URL = rest_api_1.REST_API.V1.CONNECTORS.REG.GET_CATALOG;
13
+ GetConnectorCatalogQuery.METHOD = http_method_enum_1.HttpMethod.GET;
14
+ })(GetConnectorCatalogQuery || (exports.GetConnectorCatalogQuery = GetConnectorCatalogQuery = {}));
15
+ //# sourceMappingURL=get-connector-catalog.query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-connector-catalog.query.js","sourceRoot":"","sources":["../../../../../v1/connector/public/queries/get-connector-catalog.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,2CAA+D;AAC/D,mDAAgD;AAChD,0EAAiE;AAEjE,IAAiB,wBAAwB,CAMxC;AAND,WAAiB,wBAAwB;IACxB,gCAAO,GAAG,OAAC,CAAC,IAAI,EAAE,CAAC;IACnB,iCAAQ,GAAG,wCAA8B,CAAC;IAC1C,4BAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,WAAW,CAAC;IAC7C,+BAAM,GAAG,6BAAU,CAAC,GAAG,CAAC;AAEzC,CAAC,EANgB,wBAAwB,wCAAxB,wBAAwB,QAMxC"}
@@ -0,0 +1,23 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../../shared/http-method.enum';
3
+ export declare namespace GetMyConnectionsQuery {
4
+ const Request: z.ZodVoid;
5
+ const Response: z.ZodObject<{
6
+ connections: z.ZodArray<z.ZodObject<{
7
+ uuid: z.ZodString;
8
+ type: z.ZodEnum<typeof import("../../schemas").UserConnectionType>;
9
+ providerKey: z.ZodNullable<z.ZodString>;
10
+ providerTitle: z.ZodNullable<z.ZodString>;
11
+ title: z.ZodNullable<z.ZodString>;
12
+ mcpUrl: z.ZodNullable<z.ZodString>;
13
+ status: z.ZodEnum<typeof import("../../schemas").UserConnectionStatus>;
14
+ scopes: z.ZodArray<z.ZodString>;
15
+ lastCheckedAt: z.ZodNullable<z.ZodString>;
16
+ lastErrorCode: z.ZodNullable<z.ZodString>;
17
+ createdAt: z.ZodString;
18
+ }, z.core.$strip>>;
19
+ }, z.core.$strip>;
20
+ const URL: "/api/v1/connectors/connections";
21
+ const METHOD = HttpMethod.GET;
22
+ type ResponseType = z.infer<typeof Response>;
23
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetMyConnectionsQuery = void 0;
4
+ const zod_1 = require("zod");
5
+ const schemas_1 = require("../../schemas");
6
+ const rest_api_1 = require("../../../../rest-api");
7
+ const http_method_enum_1 = require("../../../../shared/http-method.enum");
8
+ var GetMyConnectionsQuery;
9
+ (function (GetMyConnectionsQuery) {
10
+ GetMyConnectionsQuery.Request = zod_1.z.void();
11
+ GetMyConnectionsQuery.Response = schemas_1.UserConnectionListSchema;
12
+ GetMyConnectionsQuery.URL = rest_api_1.REST_API.V1.CONNECTORS.REG.GET_CONNECTIONS;
13
+ GetMyConnectionsQuery.METHOD = http_method_enum_1.HttpMethod.GET;
14
+ })(GetMyConnectionsQuery || (exports.GetMyConnectionsQuery = GetMyConnectionsQuery = {}));
15
+ //# sourceMappingURL=get-my-connections.query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-my-connections.query.js","sourceRoot":"","sources":["../../../../../v1/connector/public/queries/get-my-connections.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,2CAAyD;AACzD,mDAAgD;AAChD,0EAAiE;AAEjE,IAAiB,qBAAqB,CAMrC;AAND,WAAiB,qBAAqB;IACrB,6BAAO,GAAG,OAAC,CAAC,IAAI,EAAE,CAAC;IACnB,8BAAQ,GAAG,kCAAwB,CAAC;IACpC,yBAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,eAAe,CAAC;IACjD,4BAAM,GAAG,6BAAU,CAAC,GAAG,CAAC;AAEzC,CAAC,EANgB,qBAAqB,qCAArB,qBAAqB,QAMrC"}
@@ -0,0 +1,2 @@
1
+ export * from './get-connector-catalog.query';
2
+ export * from './get-my-connections.query';