@squidcloud/local-backend 1.0.155 → 1.0.157

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 (263) hide show
  1. package/dist/internal-common/src/code-executor.types.d.ts +3 -1
  2. package/dist/internal-common/src/local-dev.types.d.ts +3 -1
  3. package/dist/internal-common/src/local-dev.types.js.map +1 -1
  4. package/dist/internal-common/src/public-types/ai-chatbot.context.js.map +1 -0
  5. package/dist/{common/src → internal-common/src/public-types}/ai-chatbot.types.d.ts +1 -1
  6. package/dist/internal-common/src/public-types/ai-chatbot.types.js.map +1 -0
  7. package/dist/{common/src → internal-common/src/public-types}/api-call.context.d.ts +1 -1
  8. package/dist/internal-common/src/public-types/api-call.context.js.map +1 -0
  9. package/dist/{common/src → internal-common/src/public-types}/api.types.d.ts +1 -1
  10. package/dist/internal-common/src/public-types/api.types.js.map +1 -0
  11. package/dist/{common/src → internal-common/src/public-types}/application.types.d.ts +2 -1
  12. package/dist/internal-common/src/public-types/application.types.js.map +1 -0
  13. package/dist/{common/src → internal-common/src/public-types}/backend-run.types.d.ts +0 -2
  14. package/dist/internal-common/src/public-types/backend-run.types.js +28 -0
  15. package/dist/internal-common/src/public-types/backend-run.types.js.map +1 -0
  16. package/dist/{common/src → internal-common/src/public-types}/bundle-api.types.d.ts +12 -24
  17. package/dist/internal-common/src/public-types/bundle-api.types.js.map +1 -0
  18. package/dist/{common/src → internal-common/src/public-types}/bundle-data.types.d.ts +1 -1
  19. package/dist/internal-common/src/public-types/bundle-data.types.js.map +1 -0
  20. package/dist/internal-common/src/public-types/communication.types.js.map +1 -0
  21. package/dist/internal-common/src/public-types/context.types.js.map +1 -0
  22. package/dist/internal-common/src/public-types/distributed-lock.context.js.map +1 -0
  23. package/dist/{common/src → internal-common/src/public-types}/document.types.js +1 -1
  24. package/dist/internal-common/src/public-types/document.types.js.map +1 -0
  25. package/dist/internal-common/src/public-types/graphql.context.js.map +1 -0
  26. package/dist/{common/src → internal-common/src/public-types}/graphql.types.d.ts +2 -2
  27. package/dist/internal-common/src/public-types/graphql.types.js.map +1 -0
  28. package/dist/internal-common/src/public-types/http-status.enum.js.map +1 -0
  29. package/dist/internal-common/src/public-types/integration-types.d.ts +57 -0
  30. package/dist/{common/src/integrations/index.js → internal-common/src/public-types/integration-types.js} +2 -58
  31. package/dist/internal-common/src/public-types/integration-types.js.map +1 -0
  32. package/dist/{common/src → internal-common/src/public-types}/integrations/ai_chatbot.types.d.ts +2 -1
  33. package/dist/internal-common/src/public-types/integrations/ai_chatbot.types.js.map +1 -0
  34. package/dist/{common/src → internal-common/src/public-types}/integrations/api.types.d.ts +2 -1
  35. package/dist/internal-common/src/public-types/integrations/api.types.js.map +1 -0
  36. package/dist/{common/src → internal-common/src/public-types}/integrations/auth.types.d.ts +2 -1
  37. package/dist/internal-common/src/public-types/integrations/auth.types.js.map +1 -0
  38. package/dist/{common/src → internal-common/src/public-types}/integrations/database.types.d.ts +3 -2
  39. package/dist/internal-common/src/public-types/integrations/database.types.js.map +1 -0
  40. package/dist/{common/src → internal-common/src/public-types}/integrations/observability.types.d.ts +2 -1
  41. package/dist/internal-common/src/public-types/integrations/observability.types.js.map +1 -0
  42. package/dist/{common/src/integrations/index.d.ts → internal-common/src/public-types/integrations/schemas.d.ts} +2 -63
  43. package/dist/internal-common/src/public-types/integrations/schemas.js +42 -0
  44. package/dist/internal-common/src/public-types/integrations/schemas.js.map +1 -0
  45. package/dist/internal-common/src/public-types/logger.types.js.map +1 -0
  46. package/dist/internal-common/src/public-types/mutation.context.js.map +1 -0
  47. package/dist/{common/src → internal-common/src/public-types}/mutation.types.js +1 -1
  48. package/dist/internal-common/src/public-types/mutation.types.js.map +1 -0
  49. package/dist/internal-common/src/public-types/native-query.context.js.map +1 -0
  50. package/dist/internal-common/src/public-types/openapi.types.js.map +1 -0
  51. package/dist/{common/src/query → internal-common/src/public-types}/query-context.d.ts +4 -4
  52. package/dist/{common/src/query → internal-common/src/public-types}/query-context.js +1 -1
  53. package/dist/internal-common/src/public-types/query-context.js.map +1 -0
  54. package/dist/{common/src → internal-common/src/public-types}/query.types.js +1 -1
  55. package/dist/internal-common/src/public-types/query.types.js.map +1 -0
  56. package/dist/internal-common/src/public-types/secret.types.js.map +1 -0
  57. package/dist/internal-common/src/public-types/socket.types.js.map +1 -0
  58. package/dist/internal-common/src/public-types/types.js.map +1 -0
  59. package/dist/{common → internal-common}/src/schema/schema.types.d.ts +1 -1
  60. package/dist/{common → internal-common}/src/schema/schema.types.js +1 -1
  61. package/dist/internal-common/src/schema/schema.types.js.map +1 -0
  62. package/dist/internal-common/src/types/openapi-response.js.map +1 -0
  63. package/dist/internal-common/src/types/security-internal.types.d.ts +20 -0
  64. package/dist/{common/src/ai-assistant.types.js → internal-common/src/types/security-internal.types.js} +1 -1
  65. package/dist/internal-common/src/types/security-internal.types.js.map +1 -0
  66. package/dist/{common → internal-common}/src/utils/assert.js +1 -1
  67. package/dist/internal-common/src/utils/assert.js.map +1 -0
  68. package/dist/internal-common/src/utils/backend-transforms.d.ts +3 -0
  69. package/dist/{common/src/backend-run.types.js → internal-common/src/utils/backend-transforms.js} +12 -35
  70. package/dist/internal-common/src/utils/backend-transforms.js.map +1 -0
  71. package/dist/internal-common/src/utils/global.utils.js.map +1 -0
  72. package/dist/internal-common/src/utils/http.js.map +1 -0
  73. package/dist/internal-common/src/utils/object.js.map +1 -0
  74. package/dist/internal-common/src/utils/serialization.js.map +1 -0
  75. package/dist/{common → internal-common}/src/utils/validation.d.ts +4 -2
  76. package/dist/{common → internal-common}/src/utils/validation.js +11 -1
  77. package/dist/internal-common/src/utils/validation.js.map +1 -0
  78. package/dist/internal-common/src/websocket.impl.js.map +1 -0
  79. package/dist/local-backend/openapi-template.hbs +1 -1
  80. package/dist/local-backend/package.json +8 -3
  81. package/dist/local-backend/src/local-backend-socket.service.js +26 -22
  82. package/dist/local-backend/src/local-backend-socket.service.js.map +1 -1
  83. package/dist/local-backend/src/local-backend.module.js +2 -2
  84. package/dist/local-backend/src/local-backend.module.js.map +1 -1
  85. package/dist/local-backend/src/local-backend.service.d.ts +4 -2
  86. package/dist/local-backend/src/local-backend.service.js +5 -4
  87. package/dist/local-backend/src/local-backend.service.js.map +1 -1
  88. package/dist/tsconfig.build.tsbuildinfo +1 -1
  89. package/package.json +8 -3
  90. package/dist/common/src/ai-assistant.types.d.ts +0 -51
  91. package/dist/common/src/ai-assistant.types.js.map +0 -1
  92. package/dist/common/src/ai-chatbot.context.js.map +0 -1
  93. package/dist/common/src/ai-chatbot.schemas.d.ts +0 -18
  94. package/dist/common/src/ai-chatbot.schemas.js +0 -22
  95. package/dist/common/src/ai-chatbot.schemas.js.map +0 -1
  96. package/dist/common/src/ai-chatbot.types.js.map +0 -1
  97. package/dist/common/src/api-call.context.js.map +0 -1
  98. package/dist/common/src/api.types.js.map +0 -1
  99. package/dist/common/src/application.schemas.d.ts +0 -1648
  100. package/dist/common/src/application.schemas.js +0 -949
  101. package/dist/common/src/application.schemas.js.map +0 -1
  102. package/dist/common/src/application.types.js.map +0 -1
  103. package/dist/common/src/backend-function.schemas.d.ts +0 -3
  104. package/dist/common/src/backend-function.schemas.js +0 -12
  105. package/dist/common/src/backend-function.schemas.js.map +0 -1
  106. package/dist/common/src/backend-function.types.d.ts +0 -4
  107. package/dist/common/src/backend-function.types.js +0 -3
  108. package/dist/common/src/backend-function.types.js.map +0 -1
  109. package/dist/common/src/backend-run.types.js.map +0 -1
  110. package/dist/common/src/bundle-api.types.js.map +0 -1
  111. package/dist/common/src/bundle-data.types.js.map +0 -1
  112. package/dist/common/src/communication.types.js.map +0 -1
  113. package/dist/common/src/context.types.js.map +0 -1
  114. package/dist/common/src/distributed-lock.context.js.map +0 -1
  115. package/dist/common/src/document.types.js.map +0 -1
  116. package/dist/common/src/graphql.context.js.map +0 -1
  117. package/dist/common/src/graphql.types.js.map +0 -1
  118. package/dist/common/src/heartbeat.types.d.ts +0 -4
  119. package/dist/common/src/heartbeat.types.js +0 -17
  120. package/dist/common/src/heartbeat.types.js.map +0 -1
  121. package/dist/common/src/http-status.enum.js.map +0 -1
  122. package/dist/common/src/index.d.ts +0 -56
  123. package/dist/common/src/index.js +0 -73
  124. package/dist/common/src/index.js.map +0 -1
  125. package/dist/common/src/integrations/ai_chatbot.types.js.map +0 -1
  126. package/dist/common/src/integrations/api.types.js.map +0 -1
  127. package/dist/common/src/integrations/auth.types.js.map +0 -1
  128. package/dist/common/src/integrations/database.types.js.map +0 -1
  129. package/dist/common/src/integrations/index.js.map +0 -1
  130. package/dist/common/src/integrations/observability.types.js.map +0 -1
  131. package/dist/common/src/logger.types.js.map +0 -1
  132. package/dist/common/src/metrics.types.d.ts +0 -73
  133. package/dist/common/src/metrics.types.js +0 -12
  134. package/dist/common/src/metrics.types.js.map +0 -1
  135. package/dist/common/src/mutation.context.js.map +0 -1
  136. package/dist/common/src/mutation.schemas.d.ts +0 -5
  137. package/dist/common/src/mutation.schemas.js +0 -115
  138. package/dist/common/src/mutation.schemas.js.map +0 -1
  139. package/dist/common/src/mutation.types.js.map +0 -1
  140. package/dist/common/src/native-query.context.js.map +0 -1
  141. package/dist/common/src/native-query.types.d.ts +0 -16
  142. package/dist/common/src/native-query.types.js +0 -3
  143. package/dist/common/src/native-query.types.js.map +0 -1
  144. package/dist/common/src/openapi-response.js.map +0 -1
  145. package/dist/common/src/openapi.types.js.map +0 -1
  146. package/dist/common/src/query/base-query-builder.d.ts +0 -38
  147. package/dist/common/src/query/base-query-builder.js +0 -40
  148. package/dist/common/src/query/base-query-builder.js.map +0 -1
  149. package/dist/common/src/query/index.d.ts +0 -4
  150. package/dist/common/src/query/index.js +0 -21
  151. package/dist/common/src/query/index.js.map +0 -1
  152. package/dist/common/src/query/pagination.d.ts +0 -46
  153. package/dist/common/src/query/pagination.js +0 -214
  154. package/dist/common/src/query/pagination.js.map +0 -1
  155. package/dist/common/src/query/query-context.js.map +0 -1
  156. package/dist/common/src/query/serialized-query.types.d.ts +0 -24
  157. package/dist/common/src/query/serialized-query.types.js +0 -3
  158. package/dist/common/src/query/serialized-query.types.js.map +0 -1
  159. package/dist/common/src/query.types.js.map +0 -1
  160. package/dist/common/src/regions.d.ts +0 -21
  161. package/dist/common/src/regions.js +0 -47
  162. package/dist/common/src/regions.js.map +0 -1
  163. package/dist/common/src/schema/schema.types.js.map +0 -1
  164. package/dist/common/src/secret.schemas.d.ts +0 -4
  165. package/dist/common/src/secret.schemas.js +0 -18
  166. package/dist/common/src/secret.schemas.js.map +0 -1
  167. package/dist/common/src/secret.types.js.map +0 -1
  168. package/dist/common/src/security.types.d.ts +0 -3
  169. package/dist/common/src/security.types.js +0 -3
  170. package/dist/common/src/security.types.js.map +0 -1
  171. package/dist/common/src/socket.schemas.d.ts +0 -3
  172. package/dist/common/src/socket.schemas.js +0 -58
  173. package/dist/common/src/socket.schemas.js.map +0 -1
  174. package/dist/common/src/socket.types.js.map +0 -1
  175. package/dist/common/src/time-units.d.ts +0 -11
  176. package/dist/common/src/time-units.js +0 -15
  177. package/dist/common/src/time-units.js.map +0 -1
  178. package/dist/common/src/trigger.types.d.ts +0 -15
  179. package/dist/common/src/trigger.types.js +0 -3
  180. package/dist/common/src/trigger.types.js.map +0 -1
  181. package/dist/common/src/types.js.map +0 -1
  182. package/dist/common/src/utils/array.d.ts +0 -8
  183. package/dist/common/src/utils/array.js +0 -55
  184. package/dist/common/src/utils/array.js.map +0 -1
  185. package/dist/common/src/utils/assert.js.map +0 -1
  186. package/dist/common/src/utils/error.d.ts +0 -4
  187. package/dist/common/src/utils/error.js +0 -11
  188. package/dist/common/src/utils/error.js.map +0 -1
  189. package/dist/common/src/utils/global.utils.js.map +0 -1
  190. package/dist/common/src/utils/http.js.map +0 -1
  191. package/dist/common/src/utils/id.d.ts +0 -2
  192. package/dist/common/src/utils/id.js +0 -22
  193. package/dist/common/src/utils/id.js.map +0 -1
  194. package/dist/common/src/utils/lock.manager.d.ts +0 -9
  195. package/dist/common/src/utils/lock.manager.js +0 -40
  196. package/dist/common/src/utils/lock.manager.js.map +0 -1
  197. package/dist/common/src/utils/object.js.map +0 -1
  198. package/dist/common/src/utils/serialization.js.map +0 -1
  199. package/dist/common/src/utils/transforms.d.ts +0 -18
  200. package/dist/common/src/utils/transforms.js +0 -105
  201. package/dist/common/src/utils/transforms.js.map +0 -1
  202. package/dist/common/src/utils/url.d.ts +0 -1
  203. package/dist/common/src/utils/url.js +0 -16
  204. package/dist/common/src/utils/url.js.map +0 -1
  205. package/dist/common/src/utils/validation.js.map +0 -1
  206. package/dist/common/src/webhook-response.d.ts +0 -6
  207. package/dist/common/src/webhook-response.js +0 -3
  208. package/dist/common/src/webhook-response.js.map +0 -1
  209. package/dist/common/src/websocket.impl.js.map +0 -1
  210. package/dist/{common/src → internal-common/src/public-types}/ai-chatbot.context.d.ts +0 -0
  211. package/dist/{common/src → internal-common/src/public-types}/ai-chatbot.context.js +0 -0
  212. package/dist/{common/src → internal-common/src/public-types}/ai-chatbot.types.js +0 -0
  213. package/dist/{common/src → internal-common/src/public-types}/api-call.context.js +0 -0
  214. package/dist/{common/src → internal-common/src/public-types}/api.types.js +0 -0
  215. package/dist/{common/src → internal-common/src/public-types}/application.types.js +0 -0
  216. package/dist/{common/src → internal-common/src/public-types}/bundle-api.types.js +0 -0
  217. package/dist/{common/src → internal-common/src/public-types}/bundle-data.types.js +0 -0
  218. package/dist/{common/src → internal-common/src/public-types}/communication.types.d.ts +0 -0
  219. package/dist/{common/src → internal-common/src/public-types}/communication.types.js +0 -0
  220. package/dist/{common/src → internal-common/src/public-types}/context.types.d.ts +0 -0
  221. package/dist/{common/src → internal-common/src/public-types}/context.types.js +0 -0
  222. package/dist/{common/src → internal-common/src/public-types}/distributed-lock.context.d.ts +0 -0
  223. package/dist/{common/src → internal-common/src/public-types}/distributed-lock.context.js +0 -0
  224. package/dist/{common/src → internal-common/src/public-types}/document.types.d.ts +0 -0
  225. package/dist/{common/src → internal-common/src/public-types}/graphql.context.d.ts +0 -0
  226. package/dist/{common/src → internal-common/src/public-types}/graphql.context.js +0 -0
  227. package/dist/{common/src → internal-common/src/public-types}/graphql.types.js +0 -0
  228. package/dist/{common/src → internal-common/src/public-types}/http-status.enum.d.ts +0 -0
  229. package/dist/{common/src → internal-common/src/public-types}/http-status.enum.js +0 -0
  230. package/dist/{common/src → internal-common/src/public-types}/integrations/ai_chatbot.types.js +0 -0
  231. package/dist/{common/src → internal-common/src/public-types}/integrations/api.types.js +0 -0
  232. package/dist/{common/src → internal-common/src/public-types}/integrations/auth.types.js +0 -0
  233. package/dist/{common/src → internal-common/src/public-types}/integrations/database.types.js +0 -0
  234. package/dist/{common/src → internal-common/src/public-types}/integrations/observability.types.js +0 -0
  235. package/dist/{common/src → internal-common/src/public-types}/logger.types.d.ts +0 -0
  236. package/dist/{common/src → internal-common/src/public-types}/logger.types.js +0 -0
  237. package/dist/{common/src → internal-common/src/public-types}/mutation.context.d.ts +1 -1
  238. package/dist/{common/src → internal-common/src/public-types}/mutation.context.js +0 -0
  239. package/dist/{common/src → internal-common/src/public-types}/mutation.types.d.ts +0 -0
  240. package/dist/{common/src → internal-common/src/public-types}/native-query.context.d.ts +0 -0
  241. package/dist/{common/src → internal-common/src/public-types}/native-query.context.js +0 -0
  242. package/dist/{common/src → internal-common/src/public-types}/openapi.types.d.ts +0 -0
  243. package/dist/{common/src → internal-common/src/public-types}/openapi.types.js +0 -0
  244. package/dist/{common/src → internal-common/src/public-types}/query.types.d.ts +2 -2
  245. /package/dist/{common/src → internal-common/src/public-types}/secret.types.d.ts +0 -0
  246. /package/dist/{common/src → internal-common/src/public-types}/secret.types.js +0 -0
  247. /package/dist/{common/src → internal-common/src/public-types}/socket.types.d.ts +0 -0
  248. /package/dist/{common/src → internal-common/src/public-types}/socket.types.js +0 -0
  249. /package/dist/{common/src → internal-common/src/public-types}/types.d.ts +0 -0
  250. /package/dist/{common/src → internal-common/src/public-types}/types.js +0 -0
  251. /package/dist/{common/src → internal-common/src/types}/openapi-response.d.ts +0 -0
  252. /package/dist/{common/src → internal-common/src/types}/openapi-response.js +0 -0
  253. /package/dist/{common → internal-common}/src/utils/assert.d.ts +0 -0
  254. /package/dist/{common → internal-common}/src/utils/global.utils.d.ts +0 -0
  255. /package/dist/{common → internal-common}/src/utils/global.utils.js +0 -0
  256. /package/dist/{common → internal-common}/src/utils/http.d.ts +0 -0
  257. /package/dist/{common → internal-common}/src/utils/http.js +0 -0
  258. /package/dist/{common → internal-common}/src/utils/object.d.ts +0 -0
  259. /package/dist/{common → internal-common}/src/utils/object.js +0 -0
  260. /package/dist/{common → internal-common}/src/utils/serialization.d.ts +0 -0
  261. /package/dist/{common → internal-common}/src/utils/serialization.js +0 -0
  262. /package/dist/{common → internal-common}/src/websocket.impl.d.ts +0 -0
  263. /package/dist/{common → internal-common}/src/websocket.impl.js +0 -0
@@ -1,949 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetAiChatbotProfilesSchema = exports.GetSchemaSchema = exports.DiscoverOpenApiSchemaRequestSchema = exports.UpdateAllowedHostsRequestSchema = exports.DiscoverGraphQLConnectionSchemaRequestSchema = exports.DiscoverDataConnectionSchemaRequestSchema = exports.TestDataConnectionRequestSchema = exports.DeleteIntegrationRequestSchema = exports.UpsertIntegrationSchemaRequestSchema = exports.UpsertIntegrationRequestSchema = exports.UpdateOpenIdProviderRequestSchema = void 0;
4
- const integrations_1 = require("./integrations");
5
- exports.UpdateOpenIdProviderRequestSchema = {
6
- type: 'object',
7
- required: ['openIdProvider'],
8
- properties: {
9
- openIdProvider: {
10
- type: 'object',
11
- required: ['providerType', 'clientId', 'domain'],
12
- properties: {
13
- providerType: { type: 'string', const: 'auth0' },
14
- clientId: { type: 'string', nullable: false },
15
- domain: { type: 'string', nullable: false },
16
- },
17
- },
18
- },
19
- };
20
- const MysqlConnectionOptionsSchema = {
21
- type: 'object',
22
- nullable: false,
23
- required: ['secrets', 'host', 'user', 'database'],
24
- properties: {
25
- host: { type: 'string', nullable: false },
26
- user: { type: 'string', nullable: false },
27
- database: { type: 'string', nullable: false },
28
- secrets: {
29
- type: 'object',
30
- required: ['password'],
31
- nullable: false,
32
- properties: {
33
- password: { type: 'string', nullable: false, isSecret: {} },
34
- },
35
- },
36
- connectionLimit: { type: 'number', nullable: false },
37
- },
38
- };
39
- const BigQueryConnectionOptionsSchema = {
40
- type: 'object',
41
- nullable: false,
42
- required: ['secrets', 'projectId', 'datasetId', 'email'],
43
- properties: {
44
- projectId: { type: 'string', nullable: false },
45
- datasetId: { type: 'string', nullable: false },
46
- email: { type: 'string', nullable: false },
47
- secrets: {
48
- type: 'object',
49
- required: ['privateKey'],
50
- nullable: false,
51
- properties: {
52
- privateKey: { type: 'string', nullable: false, isSecret: {} },
53
- },
54
- },
55
- },
56
- };
57
- const OracleConnectionOptionsSchema = {
58
- type: 'object',
59
- nullable: false,
60
- required: ['secrets', 'host', 'user', 'database'],
61
- properties: {
62
- host: { type: 'string', nullable: false },
63
- user: { type: 'string', nullable: false },
64
- database: { type: 'string', nullable: false },
65
- secrets: {
66
- type: 'object',
67
- required: ['password'],
68
- nullable: false,
69
- properties: {
70
- password: { type: 'string', nullable: false, isSecret: {} },
71
- },
72
- },
73
- connectionLimit: { type: 'number', nullable: false },
74
- },
75
- };
76
- const PinotConnectionOptionsSchema = {
77
- type: 'object',
78
- nullable: false,
79
- required: ['brokerUrl', 'controllerUrl'],
80
- properties: {
81
- brokerUrl: { type: 'string', nullable: false },
82
- controllerUrl: { type: 'string', nullable: false },
83
- user: { type: 'string', nullable: false },
84
- secrets: {
85
- type: 'object',
86
- required: ['password'],
87
- nullable: false,
88
- properties: {
89
- password: { type: 'string', nullable: false, isSecret: {} },
90
- },
91
- },
92
- connectionLimit: { type: 'number', nullable: false },
93
- },
94
- };
95
- const MssqlConnectionOptionsSchema = {
96
- type: 'object',
97
- nullable: false,
98
- required: ['secrets', 'host', 'user', 'database'],
99
- properties: {
100
- host: { type: 'string', nullable: false },
101
- user: { type: 'string', nullable: false },
102
- database: { type: 'string', nullable: false },
103
- secrets: {
104
- type: 'object',
105
- required: ['password'],
106
- nullable: false,
107
- properties: {
108
- password: { type: 'string', nullable: false, isSecret: {} },
109
- },
110
- },
111
- connectionLimit: { type: 'number', nullable: false },
112
- sslEnabled: { type: 'boolean', nullable: false },
113
- },
114
- };
115
- const PostgresConnectionOptionsSchema = {
116
- type: 'object',
117
- nullable: false,
118
- required: ['secrets', 'host', 'user', 'database'],
119
- properties: {
120
- host: { type: 'string', nullable: false },
121
- user: { type: 'string', nullable: false },
122
- database: { type: 'string', nullable: false },
123
- schema: { type: 'string', nullable: true },
124
- sslEnabled: { type: 'boolean', nullable: true },
125
- secrets: {
126
- type: 'object',
127
- required: ['password'],
128
- nullable: false,
129
- properties: {
130
- password: { type: 'string', nullable: false, isSecret: {} },
131
- sslCertificate: { type: 'string', nullable: true, isSecret: {} },
132
- },
133
- },
134
- connectionLimit: { type: 'number', nullable: false },
135
- },
136
- };
137
- const MongoConnectionOptionsSchema = {
138
- type: 'object',
139
- nullable: false,
140
- required: ['connectionString'],
141
- properties: {
142
- connectionString: { type: 'string', nullable: false },
143
- user: { type: 'string', nullable: true },
144
- secrets: {
145
- type: 'object',
146
- nullable: false,
147
- properties: {
148
- password: { type: 'string', nullable: false, isSecret: {} },
149
- },
150
- },
151
- maxPoolSize: { type: 'number', nullable: false },
152
- minPoolSize: { type: 'number', nullable: false },
153
- socketTimeoutMS: { type: 'number', nullable: false },
154
- keepAlive: { type: 'boolean', nullable: false },
155
- directConnection: { type: 'boolean', nullable: false },
156
- ssl: {
157
- type: 'object',
158
- nullable: false,
159
- required: ['certificateFile', 'validate'],
160
- properties: {
161
- certificateFile: { type: 'string', nullable: false },
162
- validate: { type: 'boolean', nullable: false },
163
- },
164
- },
165
- },
166
- };
167
- const GraphQLConnectionOptionsSchema = {
168
- type: 'object',
169
- nullable: false,
170
- required: ['baseUrl'],
171
- properties: {
172
- baseUrl: { type: 'string', nullable: false, format: 'uri' },
173
- },
174
- };
175
- const OpenApiDiscoveryOptionsSchema = {
176
- type: 'object',
177
- nullable: false,
178
- properties: {
179
- openApiSpecUrl: { type: 'string', nullable: true },
180
- },
181
- };
182
- const SnowflakeConnectionOptionsSchema = {
183
- type: 'object',
184
- required: [],
185
- properties: {
186
- account: { type: 'string', nullable: false },
187
- username: { type: 'string', nullable: false },
188
- database: { type: 'string', nullable: false },
189
- schema: { type: 'string', nullable: false },
190
- warehouse: { type: 'string', nullable: false },
191
- role: { type: 'string', nullable: false },
192
- secrets: {
193
- type: 'object',
194
- required: ['password'],
195
- nullable: false,
196
- properties: {
197
- password: { type: 'string', nullable: false, isSecret: {} },
198
- },
199
- },
200
- },
201
- };
202
- const JwtValidationsSchema = {
203
- type: 'object',
204
- nullable: true,
205
- properties: {
206
- iss: { type: 'string', nullable: true },
207
- aud: { type: 'string', nullable: true },
208
- },
209
- };
210
- exports.UpsertIntegrationRequestSchema = {
211
- type: 'object',
212
- required: ['id', 'type', 'config'],
213
- properties: {
214
- id: { type: 'string', nullable: false },
215
- },
216
- oneOf: [
217
- {
218
- type: 'object',
219
- required: [],
220
- properties: {
221
- type: { const: integrations_1.IntegrationType.built_in_db },
222
- },
223
- },
224
- {
225
- type: 'object',
226
- properties: {
227
- type: { const: integrations_1.IntegrationType.mysql },
228
- config: {
229
- type: 'object',
230
- required: ['configuration'],
231
- properties: {
232
- supportsExternalChanges: { type: 'boolean', nullable: true },
233
- configuration: {
234
- type: 'object',
235
- nullable: false,
236
- required: ['connectionOptions'],
237
- properties: {
238
- connectionOptions: MysqlConnectionOptionsSchema,
239
- },
240
- },
241
- },
242
- },
243
- },
244
- },
245
- {
246
- type: 'object',
247
- properties: {
248
- type: { const: integrations_1.IntegrationType.bigquery },
249
- config: {
250
- type: 'object',
251
- required: ['configuration'],
252
- properties: {
253
- supportsExternalChanges: { type: 'boolean', nullable: true },
254
- configuration: {
255
- type: 'object',
256
- nullable: false,
257
- required: ['connectionOptions'],
258
- properties: {
259
- connectionOptions: BigQueryConnectionOptionsSchema,
260
- },
261
- },
262
- },
263
- },
264
- },
265
- },
266
- {
267
- type: 'object',
268
- properties: {
269
- type: { const: integrations_1.IntegrationType.oracledb },
270
- config: {
271
- type: 'object',
272
- required: ['configuration'],
273
- properties: {
274
- supportsExternalChanges: { type: 'boolean', nullable: true },
275
- configuration: {
276
- type: 'object',
277
- nullable: false,
278
- required: ['connectionOptions'],
279
- properties: {
280
- connectionOptions: OracleConnectionOptionsSchema,
281
- },
282
- },
283
- },
284
- },
285
- },
286
- },
287
- {
288
- type: 'object',
289
- properties: {
290
- type: { const: integrations_1.IntegrationType.pinot },
291
- config: {
292
- type: 'object',
293
- required: ['configuration'],
294
- properties: {
295
- supportsExternalChanges: { type: 'boolean', nullable: true },
296
- configuration: {
297
- type: 'object',
298
- nullable: false,
299
- required: ['connectionOptions'],
300
- properties: {
301
- connectionOptions: PinotConnectionOptionsSchema,
302
- },
303
- },
304
- },
305
- },
306
- },
307
- },
308
- {
309
- type: 'object',
310
- properties: {
311
- type: { const: integrations_1.IntegrationType.mssql },
312
- config: {
313
- type: 'object',
314
- required: ['configuration'],
315
- properties: {
316
- supportsExternalChanges: { type: 'boolean', nullable: true },
317
- configuration: {
318
- type: 'object',
319
- nullable: false,
320
- required: ['connectionOptions'],
321
- properties: {
322
- connectionOptions: MssqlConnectionOptionsSchema,
323
- },
324
- },
325
- },
326
- },
327
- },
328
- },
329
- {
330
- type: 'object',
331
- properties: {
332
- type: { const: integrations_1.IntegrationType.postgres },
333
- config: {
334
- type: 'object',
335
- required: ['configuration'],
336
- properties: {
337
- supportsExternalChanges: { type: 'boolean', nullable: true },
338
- configuration: {
339
- type: 'object',
340
- nullable: false,
341
- required: ['connectionOptions'],
342
- properties: {
343
- connectionOptions: PostgresConnectionOptionsSchema,
344
- },
345
- },
346
- },
347
- },
348
- },
349
- },
350
- {
351
- type: 'object',
352
- properties: {
353
- type: { const: integrations_1.IntegrationType.cockroach },
354
- config: {
355
- type: 'object',
356
- required: ['configuration'],
357
- properties: {
358
- configuration: {
359
- type: 'object',
360
- nullable: false,
361
- required: ['connectionOptions'],
362
- properties: {
363
- connectionOptions: PostgresConnectionOptionsSchema,
364
- },
365
- },
366
- },
367
- },
368
- },
369
- },
370
- {
371
- type: 'object',
372
- properties: {
373
- type: { const: integrations_1.IntegrationType.mongo },
374
- config: {
375
- type: 'object',
376
- required: ['configuration'],
377
- properties: {
378
- supportsExternalChanges: { type: 'boolean', nullable: true },
379
- configuration: {
380
- type: 'object',
381
- nullable: false,
382
- required: ['connectionOptions'],
383
- properties: {
384
- connectionOptions: MongoConnectionOptionsSchema,
385
- },
386
- },
387
- },
388
- },
389
- },
390
- },
391
- {
392
- type: 'object',
393
- properties: {
394
- type: { const: integrations_1.IntegrationType.api },
395
- config: {
396
- type: 'object',
397
- properties: {
398
- configuration: {
399
- type: 'object',
400
- nullable: true,
401
- required: ['discoveryOptions'],
402
- properties: {
403
- discoveryOptions: OpenApiDiscoveryOptionsSchema,
404
- },
405
- },
406
- },
407
- },
408
- },
409
- },
410
- {
411
- type: 'object',
412
- properties: {
413
- type: { const: integrations_1.IntegrationType.graphql },
414
- config: {
415
- type: 'object',
416
- required: ['configuration'],
417
- properties: {
418
- configuration: {
419
- type: 'object',
420
- nullable: false,
421
- required: ['connectionOptions'],
422
- properties: {
423
- connectionOptions: GraphQLConnectionOptionsSchema,
424
- },
425
- },
426
- },
427
- },
428
- },
429
- },
430
- {
431
- type: 'object',
432
- properties: {
433
- type: { const: integrations_1.IntegrationType.snowflake },
434
- config: {
435
- type: 'object',
436
- required: ['configuration'],
437
- properties: {
438
- configuration: {
439
- type: 'object',
440
- nullable: false,
441
- required: ['connectionOptions'],
442
- properties: {
443
- connectionOptions: SnowflakeConnectionOptionsSchema,
444
- },
445
- },
446
- },
447
- },
448
- },
449
- },
450
- {
451
- type: 'object',
452
- properties: {
453
- type: { const: integrations_1.IntegrationType.datadog },
454
- config: {
455
- type: 'object',
456
- required: ['configuration'],
457
- properties: {
458
- configuration: {
459
- type: 'object',
460
- nullable: false,
461
- required: ['apiKey', 'appKey', 'datadogRegion'],
462
- properties: {
463
- apiKey: { type: 'string', nullable: false, isSecret: {} },
464
- appKey: { type: 'string', nullable: false, isSecret: {} },
465
- datadogRegion: { type: 'string', nullable: false, enum: Object.keys(integrations_1.datadogRegionMap) },
466
- },
467
- },
468
- },
469
- },
470
- },
471
- },
472
- {
473
- type: 'object',
474
- properties: {
475
- type: { const: integrations_1.IntegrationType.newrelic },
476
- config: {
477
- type: 'object',
478
- required: ['configuration'],
479
- properties: {
480
- configuration: {
481
- type: 'object',
482
- nullable: false,
483
- required: ['apiKey', 'newRelicRegion'],
484
- properties: {
485
- apiKey: { type: 'string', nullable: false, isSecret: {} },
486
- newRelicRegion: { type: 'string', nullable: false, enum: Object.keys(integrations_1.newRelicRegionMap) },
487
- },
488
- },
489
- },
490
- },
491
- },
492
- },
493
- {
494
- type: 'object',
495
- properties: {
496
- type: { const: integrations_1.IntegrationType.auth0 },
497
- config: {
498
- type: 'object',
499
- required: ['configuration'],
500
- properties: {
501
- configuration: {
502
- type: 'object',
503
- nullable: false,
504
- required: ['clientId', 'domain'],
505
- properties: {
506
- clientId: { type: 'string', nullable: false },
507
- domain: { type: 'string', nullable: false },
508
- },
509
- },
510
- },
511
- },
512
- },
513
- },
514
- {
515
- type: 'object',
516
- properties: {
517
- type: { const: integrations_1.IntegrationType.jwt_rsa },
518
- config: {
519
- type: 'object',
520
- required: ['configuration'],
521
- properties: {
522
- configuration: {
523
- type: 'object',
524
- nullable: false,
525
- required: ['jwksUri'],
526
- properties: {
527
- jwksUri: { type: 'string', nullable: false },
528
- validations: JwtValidationsSchema,
529
- },
530
- },
531
- },
532
- },
533
- },
534
- },
535
- {
536
- type: 'object',
537
- properties: {
538
- type: { const: integrations_1.IntegrationType.jwt_hmac },
539
- config: {
540
- type: 'object',
541
- required: ['configuration'],
542
- properties: {
543
- configuration: {
544
- type: 'object',
545
- nullable: false,
546
- required: ['verifyUri'],
547
- properties: {
548
- verifyUri: { type: 'string', nullable: false },
549
- },
550
- },
551
- },
552
- },
553
- },
554
- },
555
- {
556
- type: 'object',
557
- properties: {
558
- type: { const: integrations_1.IntegrationType.ai_chatbot },
559
- config: {
560
- type: 'object',
561
- properties: {
562
- configuration: {
563
- type: 'object',
564
- nullable: false,
565
- required: [],
566
- properties: {
567
- apiKey: { type: 'string', nullable: false },
568
- },
569
- },
570
- },
571
- },
572
- },
573
- },
574
- {
575
- type: 'object',
576
- properties: {
577
- type: { const: integrations_1.IntegrationType.cognito },
578
- config: {
579
- type: 'object',
580
- required: ['configuration'],
581
- properties: {
582
- configuration: {
583
- type: 'object',
584
- required: ['region', 'userPoolId', 'appClientId'],
585
- properties: {
586
- region: { type: 'string' },
587
- userPoolId: { type: 'string' },
588
- appClientId: { type: 'string' },
589
- },
590
- },
591
- },
592
- },
593
- },
594
- },
595
- {
596
- type: 'object',
597
- properties: {
598
- type: { const: integrations_1.IntegrationType.okta },
599
- config: {
600
- type: 'object',
601
- required: ['configuration'],
602
- properties: {
603
- configuration: {
604
- type: 'object',
605
- required: ['domain', 'clientId'],
606
- properties: {
607
- domain: { type: 'string' },
608
- clientId: { type: 'string' },
609
- },
610
- },
611
- },
612
- },
613
- },
614
- },
615
- ],
616
- };
617
- exports.UpsertIntegrationSchemaRequestSchema = {
618
- type: 'object',
619
- required: ['id', 'type', 'schema'],
620
- properties: {
621
- id: { type: 'string', nullable: false },
622
- type: { type: 'string', nullable: false },
623
- schema: {
624
- oneOf: [
625
- {
626
- type: 'object',
627
- required: ['type', 'collections'],
628
- properties: {
629
- type: { const: integrations_1.IntegrationSchemaType.data },
630
- collections: { type: 'object', nullable: false },
631
- },
632
- },
633
- {
634
- type: 'object',
635
- required: ['type', 'baseUrl', 'endpoints'],
636
- properties: {
637
- type: { const: integrations_1.IntegrationSchemaType.api },
638
- baseUrl: { type: 'string', nullable: false },
639
- endpoints: { type: 'object', nullable: false },
640
- },
641
- },
642
- {
643
- type: 'object',
644
- required: ['type', 'introspection'],
645
- properties: {
646
- type: { const: integrations_1.IntegrationSchemaType.graphql },
647
- introspection: { type: 'object', nullable: false },
648
- },
649
- },
650
- ],
651
- },
652
- },
653
- };
654
- exports.DeleteIntegrationRequestSchema = {
655
- type: 'object',
656
- required: ['integrationId'],
657
- properties: {
658
- integrationId: { type: 'string', nullable: false },
659
- },
660
- };
661
- exports.TestDataConnectionRequestSchema = {
662
- type: 'object',
663
- required: ['type', 'configuration'],
664
- oneOf: [
665
- {
666
- type: 'object',
667
- required: ['configuration'],
668
- properties: {
669
- type: { const: integrations_1.IntegrationType.mysql },
670
- configuration: {
671
- type: 'object',
672
- required: ['connectionOptions'],
673
- properties: {
674
- connectionOptions: MysqlConnectionOptionsSchema,
675
- },
676
- },
677
- },
678
- },
679
- {
680
- type: 'object',
681
- required: ['configuration'],
682
- properties: {
683
- type: { const: integrations_1.IntegrationType.bigquery },
684
- configuration: {
685
- type: 'object',
686
- required: ['connectionOptions'],
687
- properties: {
688
- connectionOptions: BigQueryConnectionOptionsSchema,
689
- },
690
- },
691
- },
692
- },
693
- {
694
- type: 'object',
695
- required: ['configuration'],
696
- properties: {
697
- type: { const: integrations_1.IntegrationType.oracledb },
698
- configuration: {
699
- type: 'object',
700
- required: ['connectionOptions'],
701
- properties: {
702
- connectionOptions: OracleConnectionOptionsSchema,
703
- },
704
- },
705
- },
706
- },
707
- {
708
- type: 'object',
709
- required: ['configuration'],
710
- properties: {
711
- type: { const: integrations_1.IntegrationType.pinot },
712
- configuration: {
713
- type: 'object',
714
- required: ['connectionOptions'],
715
- properties: {
716
- connectionOptions: PinotConnectionOptionsSchema,
717
- },
718
- },
719
- },
720
- },
721
- {
722
- type: 'object',
723
- required: ['configuration'],
724
- properties: {
725
- type: { const: integrations_1.IntegrationType.mssql },
726
- configuration: {
727
- type: 'object',
728
- required: ['connectionOptions'],
729
- properties: {
730
- connectionOptions: MssqlConnectionOptionsSchema,
731
- },
732
- },
733
- },
734
- },
735
- {
736
- type: 'object',
737
- required: ['configuration'],
738
- properties: {
739
- type: { const: integrations_1.IntegrationType.postgres },
740
- configuration: {
741
- type: 'object',
742
- required: ['connectionOptions'],
743
- properties: {
744
- connectionOptions: PostgresConnectionOptionsSchema,
745
- },
746
- },
747
- },
748
- },
749
- {
750
- type: 'object',
751
- required: ['configuration'],
752
- properties: {
753
- type: { const: integrations_1.IntegrationType.cockroach },
754
- configuration: {
755
- type: 'object',
756
- required: ['connectionOptions'],
757
- properties: {
758
- connectionOptions: PostgresConnectionOptionsSchema,
759
- },
760
- },
761
- },
762
- },
763
- {
764
- type: 'object',
765
- required: ['configuration'],
766
- properties: {
767
- type: { const: integrations_1.IntegrationType.mongo },
768
- configuration: {
769
- type: 'object',
770
- required: ['connectionOptions'],
771
- properties: {
772
- connectionOptions: MongoConnectionOptionsSchema,
773
- },
774
- },
775
- },
776
- },
777
- {
778
- type: 'object',
779
- required: ['configuration'],
780
- properties: {
781
- type: { const: integrations_1.IntegrationType.snowflake },
782
- configuration: {
783
- type: 'object',
784
- required: ['connectionOptions'],
785
- properties: {
786
- connectionOptions: SnowflakeConnectionOptionsSchema,
787
- },
788
- },
789
- },
790
- },
791
- {
792
- type: 'object',
793
- required: ['configuration'],
794
- properties: {
795
- type: { const: integrations_1.IntegrationType.graphql },
796
- configuration: {
797
- type: 'object',
798
- required: ['connectionOptions'],
799
- properties: {
800
- connectionOptions: GraphQLConnectionOptionsSchema,
801
- },
802
- },
803
- },
804
- },
805
- ],
806
- };
807
- exports.DiscoverDataConnectionSchemaRequestSchema = {
808
- type: 'object',
809
- required: ['integrationType'],
810
- oneOf: [
811
- {
812
- type: 'object',
813
- required: ['connectionOptions'],
814
- properties: {
815
- integrationType: { const: integrations_1.IntegrationType.mysql },
816
- connectionOptions: MysqlConnectionOptionsSchema,
817
- },
818
- },
819
- {
820
- type: 'object',
821
- required: ['connectionOptions'],
822
- properties: {
823
- integrationType: { const: integrations_1.IntegrationType.bigquery },
824
- connectionOptions: BigQueryConnectionOptionsSchema,
825
- },
826
- },
827
- {
828
- type: 'object',
829
- required: ['connectionOptions'],
830
- properties: {
831
- integrationType: { const: integrations_1.IntegrationType.oracledb },
832
- connectionOptions: OracleConnectionOptionsSchema,
833
- },
834
- },
835
- {
836
- type: 'object',
837
- required: ['connectionOptions'],
838
- properties: {
839
- integrationType: { const: integrations_1.IntegrationType.pinot },
840
- connectionOptions: PinotConnectionOptionsSchema,
841
- },
842
- },
843
- {
844
- type: 'object',
845
- required: ['connectionOptions'],
846
- properties: {
847
- integrationType: { const: integrations_1.IntegrationType.mssql },
848
- connectionOptions: MssqlConnectionOptionsSchema,
849
- },
850
- },
851
- {
852
- type: 'object',
853
- required: ['connectionOptions'],
854
- properties: {
855
- integrationType: { const: integrations_1.IntegrationType.snowflake },
856
- connectionOptions: SnowflakeConnectionOptionsSchema,
857
- },
858
- },
859
- {
860
- type: 'object',
861
- required: ['connectionOptions'],
862
- properties: {
863
- integrationType: { const: integrations_1.IntegrationType.postgres },
864
- connectionOptions: PostgresConnectionOptionsSchema,
865
- },
866
- },
867
- {
868
- type: 'object',
869
- required: ['connectionOptions'],
870
- properties: {
871
- integrationType: { const: integrations_1.IntegrationType.cockroach },
872
- connectionOptions: PostgresConnectionOptionsSchema,
873
- },
874
- },
875
- {
876
- type: 'object',
877
- required: ['connectionOptions'],
878
- properties: {
879
- integrationType: { const: integrations_1.IntegrationType.mongo },
880
- connectionOptions: MongoConnectionOptionsSchema,
881
- },
882
- },
883
- {
884
- type: 'object',
885
- properties: {
886
- integrationType: { const: integrations_1.IntegrationType.built_in_db },
887
- },
888
- },
889
- ],
890
- };
891
- exports.DiscoverGraphQLConnectionSchemaRequestSchema = {
892
- type: 'object',
893
- required: ['integrationType'],
894
- properties: {
895
- integrationType: { const: integrations_1.IntegrationType.graphql },
896
- connectionOptions: GraphQLConnectionOptionsSchema,
897
- },
898
- };
899
- exports.UpdateAllowedHostsRequestSchema = {
900
- type: 'object',
901
- required: ['allowedHosts'],
902
- properties: {
903
- allowedHosts: {
904
- type: 'array',
905
- nullable: false,
906
- minItems: 1,
907
- items: {
908
- type: 'string',
909
- nullable: false,
910
- },
911
- },
912
- },
913
- };
914
- exports.DiscoverOpenApiSchemaRequestSchema = {
915
- type: 'object',
916
- required: ['discoveryOptions'],
917
- properties: {
918
- discoveryOptions: {
919
- type: 'object',
920
- properties: {
921
- openApiSpecUrl: {
922
- type: 'string',
923
- format: 'uri',
924
- },
925
- },
926
- },
927
- },
928
- };
929
- exports.GetSchemaSchema = {
930
- type: 'object',
931
- required: ['integrationId'],
932
- properties: {
933
- integrationId: {
934
- type: 'string',
935
- nullable: false,
936
- },
937
- },
938
- };
939
- exports.GetAiChatbotProfilesSchema = {
940
- type: 'object',
941
- required: ['integrationId'],
942
- properties: {
943
- integrationId: {
944
- type: 'string',
945
- nullable: false,
946
- },
947
- },
948
- };
949
- //# sourceMappingURL=application.schemas.js.map