@squidcloud/local-backend 1.0.25 → 1.0.27

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 (254) hide show
  1. package/dist/common/src/ai-assistant.context.d.ts +13 -0
  2. package/dist/common/src/ai-assistant.context.js +20 -0
  3. package/dist/common/src/ai-assistant.context.js.map +1 -0
  4. package/dist/common/src/ai-assistant.schemas.d.ts +210 -0
  5. package/dist/common/src/ai-assistant.schemas.js +200 -0
  6. package/dist/common/src/ai-assistant.schemas.js.map +1 -0
  7. package/dist/common/src/ai-assistant.types.d.ts +81 -0
  8. package/dist/common/src/ai-assistant.types.js +12 -0
  9. package/dist/common/src/ai-assistant.types.js.map +1 -0
  10. package/dist/common/src/api-call.context.d.ts +13 -0
  11. package/dist/common/src/api-call.context.js +17 -0
  12. package/dist/common/src/api-call.context.js.map +1 -0
  13. package/dist/common/src/api.types.d.ts +24 -0
  14. package/dist/common/src/api.types.js +3 -0
  15. package/dist/common/src/api.types.js.map +1 -0
  16. package/dist/common/src/application.schemas.d.ts +1060 -0
  17. package/dist/common/src/application.schemas.js +711 -0
  18. package/dist/common/src/application.schemas.js.map +1 -0
  19. package/dist/common/src/application.types.d.ts +228 -0
  20. package/dist/common/src/application.types.js +90 -0
  21. package/dist/common/src/application.types.js.map +1 -0
  22. package/dist/common/src/auth.types.d.ts +4 -0
  23. package/dist/common/src/auth.types.js +3 -0
  24. package/dist/common/src/auth.types.js.map +1 -0
  25. package/dist/common/src/backend-function.schemas.d.ts +3 -0
  26. package/dist/common/src/backend-function.schemas.js +14 -0
  27. package/dist/common/src/backend-function.schemas.js.map +1 -0
  28. package/dist/common/src/backend-function.types.d.ts +7 -0
  29. package/dist/common/src/backend-function.types.js +3 -0
  30. package/dist/common/src/backend-function.types.js.map +1 -0
  31. package/dist/common/src/backend-run.types.d.ts +54 -0
  32. package/dist/common/src/backend-run.types.js +74 -0
  33. package/dist/common/src/backend-run.types.js.map +1 -0
  34. package/dist/common/src/bundle-api.types.d.ts +71 -0
  35. package/dist/common/src/bundle-api.types.js +3 -0
  36. package/dist/common/src/bundle-api.types.js.map +1 -0
  37. package/dist/common/src/bundle-data.types.d.ts +59 -0
  38. package/dist/common/src/bundle-data.types.js +3 -0
  39. package/dist/common/src/bundle-data.types.js.map +1 -0
  40. package/dist/common/src/communication.types.d.ts +17 -0
  41. package/dist/common/src/communication.types.js +37 -0
  42. package/dist/common/src/communication.types.js.map +1 -0
  43. package/dist/common/src/context.types.d.ts +22 -0
  44. package/dist/common/src/context.types.js +3 -0
  45. package/dist/common/src/context.types.js.map +1 -0
  46. package/dist/common/src/distributed-lock.context.d.ts +5 -0
  47. package/dist/common/src/distributed-lock.context.js +11 -0
  48. package/dist/common/src/distributed-lock.context.js.map +1 -0
  49. package/dist/common/src/document.types.d.ts +31 -0
  50. package/dist/common/src/document.types.js +50 -0
  51. package/dist/common/src/document.types.js.map +1 -0
  52. package/dist/common/src/graphql.context.d.ts +14 -0
  53. package/dist/common/src/graphql.context.js +13 -0
  54. package/dist/common/src/graphql.context.js.map +1 -0
  55. package/dist/common/src/graphql.types.d.ts +11 -0
  56. package/dist/common/src/graphql.types.js +35 -0
  57. package/dist/common/src/graphql.types.js.map +1 -0
  58. package/dist/common/src/http-status.enum.d.ts +50 -0
  59. package/dist/common/src/http-status.enum.js +55 -0
  60. package/dist/common/src/http-status.enum.js.map +1 -0
  61. package/dist/common/src/index.d.ts +54 -0
  62. package/dist/common/src/index.js +71 -0
  63. package/dist/common/src/index.js.map +1 -0
  64. package/dist/common/src/integrations/ai_assistant.types.d.ts +30 -0
  65. package/dist/common/src/integrations/ai_assistant.types.js +3 -0
  66. package/dist/common/src/integrations/ai_assistant.types.js.map +1 -0
  67. package/dist/common/src/integrations/api.types.d.ts +80 -0
  68. package/dist/common/src/integrations/api.types.js +3 -0
  69. package/dist/common/src/integrations/api.types.js.map +1 -0
  70. package/dist/common/src/integrations/auth.types.d.ts +22 -0
  71. package/dist/common/src/integrations/auth.types.js +3 -0
  72. package/dist/common/src/integrations/auth.types.js.map +1 -0
  73. package/dist/common/src/integrations/database.types.d.ts +236 -0
  74. package/dist/common/src/integrations/database.types.js +3 -0
  75. package/dist/common/src/integrations/database.types.js.map +1 -0
  76. package/dist/common/src/integrations/index.d.ts +97 -0
  77. package/dist/common/src/integrations/index.js +98 -0
  78. package/dist/common/src/integrations/index.js.map +1 -0
  79. package/dist/common/src/integrations/observability.types.d.ts +22 -0
  80. package/dist/common/src/integrations/observability.types.js +15 -0
  81. package/dist/common/src/integrations/observability.types.js.map +1 -0
  82. package/dist/common/src/logger.types.d.ts +21 -0
  83. package/dist/common/src/logger.types.js +12 -0
  84. package/dist/common/src/logger.types.js.map +1 -0
  85. package/dist/common/src/metrics.types.d.ts +58 -0
  86. package/dist/common/src/metrics.types.js +12 -0
  87. package/dist/common/src/metrics.types.js.map +1 -0
  88. package/dist/common/src/mutation.context.d.ts +11 -0
  89. package/dist/common/src/mutation.context.js +21 -0
  90. package/dist/common/src/mutation.context.js.map +1 -0
  91. package/dist/common/src/mutation.schemas.d.ts +5 -0
  92. package/dist/common/src/mutation.schemas.js +116 -0
  93. package/dist/common/src/mutation.schemas.js.map +1 -0
  94. package/dist/common/src/mutation.types.d.ts +64 -0
  95. package/dist/common/src/mutation.types.js +143 -0
  96. package/dist/common/src/mutation.types.js.map +1 -0
  97. package/dist/common/src/named-query.context.d.ts +4 -0
  98. package/dist/common/src/named-query.context.js +10 -0
  99. package/dist/common/src/named-query.context.js.map +1 -0
  100. package/dist/common/src/named-query.schemas.d.ts +3 -0
  101. package/dist/common/src/named-query.schemas.js +15 -0
  102. package/dist/common/src/named-query.schemas.js.map +1 -0
  103. package/dist/common/src/named-query.types.d.ts +9 -0
  104. package/dist/common/src/named-query.types.js +3 -0
  105. package/dist/common/src/named-query.types.js.map +1 -0
  106. package/dist/common/src/query/index.d.ts +2 -0
  107. package/dist/common/src/query/index.js +19 -0
  108. package/dist/common/src/query/index.js.map +1 -0
  109. package/dist/common/src/query/query-context.d.ts +28 -0
  110. package/dist/common/src/query/query-context.js +161 -0
  111. package/dist/common/src/query/query-context.js.map +1 -0
  112. package/dist/common/src/query/simple-query-builder.d.ts +39 -0
  113. package/dist/common/src/query/simple-query-builder.js +111 -0
  114. package/dist/common/src/query/simple-query-builder.js.map +1 -0
  115. package/dist/common/src/query.schemas.d.ts +5 -0
  116. package/dist/common/src/query.schemas.js +90 -0
  117. package/dist/common/src/query.schemas.js.map +1 -0
  118. package/dist/common/src/query.types.d.ts +89 -0
  119. package/dist/common/src/query.types.js +135 -0
  120. package/dist/common/src/query.types.js.map +1 -0
  121. package/dist/common/src/regions.d.ts +21 -0
  122. package/dist/common/src/regions.js +44 -0
  123. package/dist/common/src/regions.js.map +1 -0
  124. package/dist/common/src/schema/schema.types.d.ts +30 -0
  125. package/dist/common/src/schema/schema.types.js +173 -0
  126. package/dist/common/src/schema/schema.types.js.map +1 -0
  127. package/dist/common/src/secret.schemas.d.ts +6 -0
  128. package/dist/common/src/secret.schemas.js +33 -0
  129. package/dist/common/src/secret.schemas.js.map +1 -0
  130. package/dist/common/src/secret.types.d.ts +49 -0
  131. package/dist/common/src/secret.types.js +6 -0
  132. package/dist/common/src/secret.types.js.map +1 -0
  133. package/dist/common/src/security.types.d.ts +3 -0
  134. package/dist/common/src/security.types.js +3 -0
  135. package/dist/common/src/security.types.js.map +1 -0
  136. package/dist/common/src/socket.schemas.d.ts +3 -0
  137. package/dist/common/src/socket.schemas.js +59 -0
  138. package/dist/common/src/socket.schemas.js.map +1 -0
  139. package/dist/common/src/socket.types.d.ts +108 -0
  140. package/dist/common/src/socket.types.js +3 -0
  141. package/dist/common/src/socket.types.js.map +1 -0
  142. package/dist/common/src/time-units.d.ts +5 -0
  143. package/dist/common/src/time-units.js +9 -0
  144. package/dist/common/src/time-units.js.map +1 -0
  145. package/dist/common/src/trigger.types.d.ts +15 -0
  146. package/dist/common/src/trigger.types.js +3 -0
  147. package/dist/common/src/trigger.types.js.map +1 -0
  148. package/dist/common/src/types.d.ts +15 -0
  149. package/dist/common/src/types.js +3 -0
  150. package/dist/common/src/types.js.map +1 -0
  151. package/dist/common/src/utils/array.d.ts +8 -0
  152. package/dist/common/src/utils/array.js +52 -0
  153. package/dist/common/src/utils/array.js.map +1 -0
  154. package/dist/common/src/utils/assert.d.ts +8 -0
  155. package/dist/common/src/utils/assert.js +50 -0
  156. package/dist/common/src/utils/assert.js.map +1 -0
  157. package/dist/common/src/utils/error.d.ts +4 -0
  158. package/dist/common/src/utils/error.js +11 -0
  159. package/dist/common/src/utils/error.js.map +1 -0
  160. package/dist/common/src/utils/http.d.ts +2 -0
  161. package/dist/common/src/utils/http.js +39 -0
  162. package/dist/common/src/utils/http.js.map +1 -0
  163. package/dist/common/src/utils/id.d.ts +2 -0
  164. package/dist/common/src/utils/id.js +22 -0
  165. package/dist/common/src/utils/id.js.map +1 -0
  166. package/dist/common/src/utils/lock.manager.d.ts +9 -0
  167. package/dist/common/src/utils/lock.manager.js +40 -0
  168. package/dist/common/src/utils/lock.manager.js.map +1 -0
  169. package/dist/common/src/utils/nullish.d.ts +1 -0
  170. package/dist/common/src/utils/nullish.js +8 -0
  171. package/dist/common/src/utils/nullish.js.map +1 -0
  172. package/dist/common/src/utils/object.d.ts +6 -0
  173. package/dist/common/src/utils/object.js +90 -0
  174. package/dist/common/src/utils/object.js.map +1 -0
  175. package/dist/common/src/utils/serialization.d.ts +6 -0
  176. package/dist/common/src/utils/serialization.js +51 -0
  177. package/dist/common/src/utils/serialization.js.map +1 -0
  178. package/dist/common/src/utils/transforms.d.ts +18 -0
  179. package/dist/common/src/utils/transforms.js +93 -0
  180. package/dist/common/src/utils/transforms.js.map +1 -0
  181. package/dist/common/src/utils/url.d.ts +1 -0
  182. package/dist/common/src/utils/url.js +16 -0
  183. package/dist/common/src/utils/url.js.map +1 -0
  184. package/dist/common/src/utils/validation.d.ts +17 -0
  185. package/dist/common/src/utils/validation.js +210 -0
  186. package/dist/common/src/utils/validation.js.map +1 -0
  187. package/dist/common/src/webhook-response.d.ts +7 -0
  188. package/dist/common/src/webhook-response.js +8 -0
  189. package/dist/common/src/webhook-response.js.map +1 -0
  190. package/dist/internal-common/src/code-executor.types.d.ts +13 -0
  191. package/dist/internal-common/src/code-executor.types.js +3 -0
  192. package/dist/internal-common/src/code-executor.types.js.map +1 -0
  193. package/dist/internal-common/src/environment/environment.types.d.ts +71 -0
  194. package/dist/internal-common/src/environment/environment.types.js +3 -0
  195. package/dist/internal-common/src/environment/environment.types.js.map +1 -0
  196. package/dist/internal-common/src/environment/index.d.ts +6 -0
  197. package/dist/internal-common/src/environment/index.js +26 -0
  198. package/dist/internal-common/src/environment/index.js.map +1 -0
  199. package/dist/internal-common/src/environment/local.environment.d.ts +2 -0
  200. package/dist/internal-common/src/environment/local.environment.js +60 -0
  201. package/dist/internal-common/src/environment/local.environment.js.map +1 -0
  202. package/dist/internal-common/src/index.d.ts +10 -0
  203. package/dist/internal-common/src/index.js +27 -0
  204. package/dist/internal-common/src/index.js.map +1 -0
  205. package/dist/internal-common/src/kafka/kafka.manager.d.ts +17 -0
  206. package/dist/internal-common/src/kafka/kafka.manager.interface.d.ts +10 -0
  207. package/dist/internal-common/src/kafka/kafka.manager.interface.js +7 -0
  208. package/dist/internal-common/src/kafka/kafka.manager.interface.js.map +1 -0
  209. package/dist/internal-common/src/kafka/kafka.manager.js +104 -0
  210. package/dist/internal-common/src/kafka/kafka.manager.js.map +1 -0
  211. package/dist/internal-common/src/kafka/kafka.types.d.ts +17 -0
  212. package/dist/internal-common/src/kafka/kafka.types.js +3 -0
  213. package/dist/internal-common/src/kafka/kafka.types.js.map +1 -0
  214. package/dist/internal-common/src/local-dev.types.d.ts +31 -0
  215. package/dist/internal-common/src/local-dev.types.js +3 -0
  216. package/dist/internal-common/src/local-dev.types.js.map +1 -0
  217. package/dist/internal-common/src/observability-publisher.d.ts +14 -0
  218. package/dist/internal-common/src/observability-publisher.js +71 -0
  219. package/dist/internal-common/src/observability-publisher.js.map +1 -0
  220. package/dist/internal-common/src/observability.types.d.ts +17 -0
  221. package/dist/internal-common/src/observability.types.js +3 -0
  222. package/dist/internal-common/src/observability.types.js.map +1 -0
  223. package/dist/internal-common/src/shutdown.manager.d.ts +20 -0
  224. package/dist/internal-common/src/shutdown.manager.js +77 -0
  225. package/dist/internal-common/src/shutdown.manager.js.map +1 -0
  226. package/dist/internal-common/src/utils.d.ts +5 -0
  227. package/dist/internal-common/src/utils.js +30 -0
  228. package/dist/internal-common/src/utils.js.map +1 -0
  229. package/dist/{index.d.ts → local-backend/src/index.d.ts} +4 -4
  230. package/dist/{index.js → local-backend/src/index.js} +20 -20
  231. package/dist/local-backend/src/index.js.map +1 -0
  232. package/dist/local-backend/src/local-backend-socket.service.d.ts +18 -0
  233. package/dist/local-backend/src/local-backend-socket.service.js +110 -0
  234. package/dist/local-backend/src/local-backend-socket.service.js.map +1 -0
  235. package/dist/{local-backend.app.d.ts → local-backend/src/local-backend.app.d.ts} +2 -2
  236. package/dist/{local-backend.app.js → local-backend/src/local-backend.app.js} +25 -15
  237. package/dist/local-backend/src/local-backend.app.js.map +1 -0
  238. package/dist/{local-backend.controller.d.ts → local-backend/src/local-backend.controller.d.ts} +8 -8
  239. package/dist/{local-backend.controller.js → local-backend/src/local-backend.controller.js} +49 -49
  240. package/dist/local-backend/src/local-backend.controller.js.map +1 -0
  241. package/dist/{local-backend.module.d.ts → local-backend/src/local-backend.module.d.ts} +8 -8
  242. package/dist/{local-backend.module.js → local-backend/src/local-backend.module.js} +53 -51
  243. package/dist/local-backend/src/local-backend.module.js.map +1 -0
  244. package/dist/local-backend/src/local-backend.service.d.ts +15 -0
  245. package/dist/{local-backend.service.js → local-backend/src/local-backend.service.js} +165 -143
  246. package/dist/local-backend/src/local-backend.service.js.map +1 -0
  247. package/dist/tsconfig.build.tsbuildinfo +1 -1
  248. package/package.json +6 -4
  249. package/dist/index.js.map +0 -1
  250. package/dist/local-backend.app.js.map +0 -1
  251. package/dist/local-backend.controller.js.map +0 -1
  252. package/dist/local-backend.module.js.map +0 -1
  253. package/dist/local-backend.service.d.ts +0 -7
  254. package/dist/local-backend.service.js.map +0 -1
@@ -0,0 +1,711 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DiscoverOpenApiSchemaRequestSchema = exports.UpdateAllowedHostsRequestSchema = exports.DiscoverGraphQLConnectionSchemaRequestSchema = exports.DiscoverDataConnectionSchemaRequestSchema = exports.TestDataConnectionRequestSchema = exports.DeleteIntegrationRequestSchema = 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 OracleConnectionOptionsSchema = {
40
+ type: 'object',
41
+ nullable: false,
42
+ required: ['secrets', 'host', 'user', 'database'],
43
+ properties: {
44
+ host: { type: 'string', nullable: false },
45
+ user: { type: 'string', nullable: false },
46
+ database: { type: 'string', nullable: false },
47
+ secrets: {
48
+ type: 'object',
49
+ required: ['password'],
50
+ nullable: false,
51
+ properties: {
52
+ password: { type: 'string', nullable: false, isSecret: {} },
53
+ },
54
+ },
55
+ connectionLimit: { type: 'number', nullable: false },
56
+ },
57
+ };
58
+ const MssqlConnectionOptionsSchema = {
59
+ type: 'object',
60
+ nullable: false,
61
+ required: ['secrets', 'host', 'user', 'database'],
62
+ properties: {
63
+ host: { type: 'string', nullable: false },
64
+ user: { type: 'string', nullable: false },
65
+ database: { type: 'string', nullable: false },
66
+ secrets: {
67
+ type: 'object',
68
+ required: ['password'],
69
+ nullable: false,
70
+ properties: {
71
+ password: { type: 'string', nullable: false, isSecret: {} },
72
+ },
73
+ },
74
+ connectionLimit: { type: 'number', nullable: false },
75
+ sslEnabled: { type: 'boolean', nullable: false },
76
+ },
77
+ };
78
+ const PostgresConnectionOptionsSchema = {
79
+ type: 'object',
80
+ nullable: false,
81
+ required: ['secrets', 'host', 'user', 'database'],
82
+ properties: {
83
+ host: { type: 'string', nullable: false },
84
+ user: { type: 'string', nullable: false },
85
+ database: { type: 'string', nullable: false },
86
+ schema: { type: 'string', nullable: true },
87
+ sslEnabled: { type: 'boolean', nullable: true },
88
+ secrets: {
89
+ type: 'object',
90
+ required: ['password'],
91
+ nullable: false,
92
+ properties: {
93
+ password: { type: 'string', nullable: false, isSecret: {} },
94
+ sslCertificate: { type: 'string', nullable: true, isSecret: {} },
95
+ },
96
+ },
97
+ connectionLimit: { type: 'number', nullable: false },
98
+ },
99
+ };
100
+ const MongoConnectionOptionsSchema = {
101
+ type: 'object',
102
+ nullable: false,
103
+ required: ['connectionString'],
104
+ properties: {
105
+ connectionString: { type: 'string', nullable: false },
106
+ user: { type: 'string', nullable: true },
107
+ secrets: {
108
+ type: 'object',
109
+ nullable: false,
110
+ properties: {
111
+ password: { type: 'string', nullable: false, isSecret: {} },
112
+ },
113
+ },
114
+ maxPoolSize: { type: 'number', nullable: false },
115
+ minPoolSize: { type: 'number', nullable: false },
116
+ socketTimeoutMS: { type: 'number', nullable: false },
117
+ keepAlive: { type: 'boolean', nullable: false },
118
+ directConnection: { type: 'boolean', nullable: false },
119
+ ssl: {
120
+ type: 'object',
121
+ nullable: false,
122
+ required: ['certificateFile', 'validate'],
123
+ properties: {
124
+ certificateFile: { type: 'string', nullable: false },
125
+ validate: { type: 'boolean', nullable: false },
126
+ },
127
+ },
128
+ },
129
+ };
130
+ const GraphQLConnectionOptionsSchema = {
131
+ type: 'object',
132
+ nullable: false,
133
+ required: ['baseUrl'],
134
+ properties: {
135
+ baseUrl: { type: 'string', nullable: false, format: 'uri' },
136
+ },
137
+ };
138
+ const OpenApiDiscoveryOptionsSchema = {
139
+ type: 'object',
140
+ nullable: false,
141
+ required: ['openApiSpecUrl'],
142
+ properties: {
143
+ openApiSpecUrl: { type: 'string', nullable: false },
144
+ },
145
+ };
146
+ const ApiEndpointsSchema = {
147
+ type: 'object',
148
+ patternProperties: {
149
+ '^\\S+$': {
150
+ type: 'object',
151
+ required: ['relativePath', 'method'],
152
+ properties: {
153
+ relativePath: {
154
+ type: 'string',
155
+ },
156
+ method: {
157
+ type: 'string',
158
+ enum: ['post', 'get', 'delete', 'patch', 'put'],
159
+ },
160
+ requestSchema: {
161
+ type: 'object',
162
+ patternProperties: {
163
+ '^\\S+$': {
164
+ type: 'object',
165
+ properties: {
166
+ location: {
167
+ type: 'string',
168
+ enum: ['query', 'body', 'header', 'path'],
169
+ },
170
+ fieldNameInRequest: {
171
+ type: 'string',
172
+ },
173
+ },
174
+ },
175
+ },
176
+ },
177
+ responseSchema: {
178
+ type: 'object',
179
+ patternProperties: {
180
+ '^\\S+$': {
181
+ type: 'object',
182
+ required: ['location'],
183
+ properties: {
184
+ location: {
185
+ type: 'string',
186
+ enum: ['body', 'header'],
187
+ },
188
+ path: {
189
+ type: 'string',
190
+ },
191
+ },
192
+ },
193
+ },
194
+ },
195
+ },
196
+ },
197
+ },
198
+ };
199
+ const SnowflakeConnectionOptionsSchema = {
200
+ type: 'object',
201
+ required: [],
202
+ properties: {
203
+ account: { type: 'string', nullable: false },
204
+ username: { type: 'string', nullable: false },
205
+ database: { type: 'string', nullable: false },
206
+ schema: { type: 'string', nullable: false },
207
+ warehouse: { type: 'string', nullable: false },
208
+ role: { type: 'string', nullable: false },
209
+ secrets: {
210
+ type: 'object',
211
+ required: ['password'],
212
+ nullable: false,
213
+ properties: {
214
+ password: { type: 'string', nullable: false, isSecret: {} },
215
+ },
216
+ },
217
+ },
218
+ };
219
+ const JwtValidationsSchema = {
220
+ type: 'object',
221
+ nullable: true,
222
+ properties: {
223
+ iss: { type: 'string', nullable: true },
224
+ aud: { type: 'string', nullable: true },
225
+ },
226
+ };
227
+ exports.UpsertIntegrationRequestSchema = {
228
+ type: 'object',
229
+ required: ['type', 'id'],
230
+ properties: {
231
+ id: { type: 'string', nullable: false },
232
+ schema: { type: 'object', nullable: true },
233
+ },
234
+ oneOf: [
235
+ {
236
+ type: 'object',
237
+ required: [],
238
+ properties: {
239
+ type: { const: integrations_1.IntegrationType.built_in_db },
240
+ },
241
+ },
242
+ {
243
+ type: 'object',
244
+ required: ['configuration'],
245
+ properties: {
246
+ type: { const: integrations_1.IntegrationType.mysql },
247
+ supportsExternalChanges: { type: 'boolean', nullable: true },
248
+ configuration: {
249
+ type: 'object',
250
+ nullable: false,
251
+ required: ['connectionOptions'],
252
+ properties: {
253
+ connectionOptions: MysqlConnectionOptionsSchema,
254
+ },
255
+ },
256
+ },
257
+ },
258
+ {
259
+ type: 'object',
260
+ required: ['configuration'],
261
+ properties: {
262
+ type: { const: integrations_1.IntegrationType.oracledb },
263
+ supportsExternalChanges: { type: 'boolean', nullable: true },
264
+ configuration: {
265
+ type: 'object',
266
+ nullable: false,
267
+ required: ['connectionOptions'],
268
+ properties: {
269
+ connectionOptions: OracleConnectionOptionsSchema,
270
+ },
271
+ },
272
+ },
273
+ },
274
+ {
275
+ type: 'object',
276
+ required: ['configuration'],
277
+ properties: {
278
+ type: { const: integrations_1.IntegrationType.mssql },
279
+ supportsExternalChanges: { type: 'boolean', nullable: true },
280
+ configuration: {
281
+ type: 'object',
282
+ nullable: false,
283
+ required: ['connectionOptions'],
284
+ properties: {
285
+ connectionOptions: MssqlConnectionOptionsSchema,
286
+ },
287
+ },
288
+ },
289
+ },
290
+ {
291
+ type: 'object',
292
+ required: ['configuration'],
293
+ properties: {
294
+ type: { const: integrations_1.IntegrationType.postgres },
295
+ supportsExternalChanges: { type: 'boolean', nullable: true },
296
+ configuration: {
297
+ type: 'object',
298
+ nullable: false,
299
+ required: ['connectionOptions'],
300
+ properties: {
301
+ connectionOptions: PostgresConnectionOptionsSchema,
302
+ },
303
+ },
304
+ },
305
+ },
306
+ {
307
+ type: 'object',
308
+ required: ['configuration'],
309
+ properties: {
310
+ type: { const: integrations_1.IntegrationType.cockroach },
311
+ configuration: {
312
+ type: 'object',
313
+ nullable: false,
314
+ required: ['connectionOptions'],
315
+ properties: {
316
+ connectionOptions: PostgresConnectionOptionsSchema,
317
+ },
318
+ },
319
+ },
320
+ },
321
+ {
322
+ type: 'object',
323
+ required: ['configuration'],
324
+ properties: {
325
+ type: { const: integrations_1.IntegrationType.mongo },
326
+ supportsExternalChanges: { type: 'boolean', nullable: true },
327
+ configuration: {
328
+ type: 'object',
329
+ nullable: false,
330
+ required: ['connectionOptions'],
331
+ properties: {
332
+ connectionOptions: MongoConnectionOptionsSchema,
333
+ },
334
+ },
335
+ },
336
+ },
337
+ {
338
+ type: 'object',
339
+ required: [],
340
+ properties: {
341
+ type: { const: integrations_1.IntegrationType.api },
342
+ configuration: {
343
+ type: 'object',
344
+ nullable: true,
345
+ required: ['discoveryOptions'],
346
+ properties: {
347
+ discoveryOptions: OpenApiDiscoveryOptionsSchema,
348
+ },
349
+ },
350
+ },
351
+ },
352
+ {
353
+ type: 'object',
354
+ required: ['configuration'],
355
+ properties: {
356
+ type: { const: integrations_1.IntegrationType.graphql },
357
+ configuration: {
358
+ type: 'object',
359
+ nullable: false,
360
+ required: ['connectionOptions'],
361
+ properties: {
362
+ connectionOptions: GraphQLConnectionOptionsSchema,
363
+ },
364
+ },
365
+ },
366
+ },
367
+ {
368
+ type: 'object',
369
+ required: ['configuration'],
370
+ properties: {
371
+ type: { const: integrations_1.IntegrationType.snowflake },
372
+ configuration: {
373
+ type: 'object',
374
+ nullable: false,
375
+ required: ['connectionOptions'],
376
+ properties: {
377
+ connectionOptions: SnowflakeConnectionOptionsSchema,
378
+ },
379
+ },
380
+ },
381
+ },
382
+ {
383
+ type: 'object',
384
+ required: ['configuration'],
385
+ properties: {
386
+ type: { const: integrations_1.IntegrationType.datadog },
387
+ configuration: {
388
+ type: 'object',
389
+ nullable: false,
390
+ required: ['apiKey', 'appKey', 'datadogRegion'],
391
+ properties: {
392
+ apiKey: { type: 'string', nullable: false, isSecret: {} },
393
+ appKey: { type: 'string', nullable: false, isSecret: {} },
394
+ datadogRegion: { type: 'string', nullable: false, enum: Object.keys(integrations_1.datadogRegionMap) },
395
+ },
396
+ },
397
+ },
398
+ },
399
+ {
400
+ type: 'object',
401
+ required: ['configuration'],
402
+ properties: {
403
+ type: { const: integrations_1.IntegrationType.newrelic },
404
+ configuration: {
405
+ type: 'object',
406
+ nullable: false,
407
+ required: ['apiKey', 'newRelicRegion'],
408
+ properties: {
409
+ apiKey: { type: 'string', nullable: false, isSecret: {} },
410
+ newRelicRegion: { type: 'string', nullable: false, enum: Object.keys(integrations_1.newRelicRegionMap) },
411
+ },
412
+ },
413
+ },
414
+ },
415
+ {
416
+ type: 'object',
417
+ required: ['configuration'],
418
+ properties: {
419
+ type: { const: integrations_1.IntegrationType.auth0 },
420
+ configuration: {
421
+ type: 'object',
422
+ nullable: false,
423
+ required: ['clientId', 'domain'],
424
+ properties: {
425
+ clientId: { type: 'string', nullable: false },
426
+ domain: { type: 'string', nullable: false },
427
+ },
428
+ },
429
+ },
430
+ },
431
+ {
432
+ type: 'object',
433
+ required: ['configuration'],
434
+ properties: {
435
+ type: { const: integrations_1.IntegrationType.jwt_rsa },
436
+ configuration: {
437
+ type: 'object',
438
+ nullable: false,
439
+ required: ['jwksUri'],
440
+ properties: {
441
+ jwksUri: { type: 'string', nullable: false },
442
+ validations: JwtValidationsSchema,
443
+ },
444
+ },
445
+ },
446
+ },
447
+ {
448
+ type: 'object',
449
+ required: ['configuration'],
450
+ properties: {
451
+ type: { const: integrations_1.IntegrationType.jwt_hmac },
452
+ configuration: {
453
+ type: 'object',
454
+ nullable: false,
455
+ required: ['verifyUri'],
456
+ properties: {
457
+ verifyUri: { type: 'string', nullable: false },
458
+ },
459
+ },
460
+ },
461
+ },
462
+ {
463
+ type: 'object',
464
+ required: [],
465
+ properties: {
466
+ type: { const: integrations_1.IntegrationType.ai_assistant },
467
+ configuration: {
468
+ type: 'object',
469
+ nullable: false,
470
+ required: [],
471
+ properties: {
472
+ apiKey: { type: 'string', nullable: false },
473
+ },
474
+ },
475
+ },
476
+ },
477
+ ],
478
+ };
479
+ exports.DeleteIntegrationRequestSchema = {
480
+ type: 'object',
481
+ required: ['integrationId'],
482
+ properties: {
483
+ integrationId: { type: 'string', nullable: false },
484
+ },
485
+ };
486
+ exports.TestDataConnectionRequestSchema = {
487
+ type: 'object',
488
+ required: ['type', 'configuration'],
489
+ oneOf: [
490
+ {
491
+ type: 'object',
492
+ required: ['configuration'],
493
+ properties: {
494
+ type: { const: integrations_1.IntegrationType.mysql },
495
+ configuration: {
496
+ type: 'object',
497
+ required: ['connectionOptions'],
498
+ properties: {
499
+ connectionOptions: MysqlConnectionOptionsSchema,
500
+ },
501
+ },
502
+ },
503
+ },
504
+ {
505
+ type: 'object',
506
+ required: ['configuration'],
507
+ properties: {
508
+ type: { const: integrations_1.IntegrationType.oracledb },
509
+ configuration: {
510
+ type: 'object',
511
+ required: ['connectionOptions'],
512
+ properties: {
513
+ connectionOptions: OracleConnectionOptionsSchema,
514
+ },
515
+ },
516
+ },
517
+ },
518
+ {
519
+ type: 'object',
520
+ required: ['configuration'],
521
+ properties: {
522
+ type: { const: integrations_1.IntegrationType.mssql },
523
+ configuration: {
524
+ type: 'object',
525
+ required: ['connectionOptions'],
526
+ properties: {
527
+ connectionOptions: MssqlConnectionOptionsSchema,
528
+ },
529
+ },
530
+ },
531
+ },
532
+ {
533
+ type: 'object',
534
+ required: ['configuration'],
535
+ properties: {
536
+ type: { const: integrations_1.IntegrationType.postgres },
537
+ configuration: {
538
+ type: 'object',
539
+ required: ['connectionOptions'],
540
+ properties: {
541
+ connectionOptions: PostgresConnectionOptionsSchema,
542
+ },
543
+ },
544
+ },
545
+ },
546
+ {
547
+ type: 'object',
548
+ required: ['configuration'],
549
+ properties: {
550
+ type: { const: integrations_1.IntegrationType.cockroach },
551
+ configuration: {
552
+ type: 'object',
553
+ required: ['connectionOptions'],
554
+ properties: {
555
+ connectionOptions: PostgresConnectionOptionsSchema,
556
+ },
557
+ },
558
+ },
559
+ },
560
+ {
561
+ type: 'object',
562
+ required: ['configuration'],
563
+ properties: {
564
+ type: { const: integrations_1.IntegrationType.mongo },
565
+ configuration: {
566
+ type: 'object',
567
+ required: ['connectionOptions'],
568
+ properties: {
569
+ connectionOptions: MongoConnectionOptionsSchema,
570
+ },
571
+ },
572
+ },
573
+ },
574
+ {
575
+ type: 'object',
576
+ required: ['configuration'],
577
+ properties: {
578
+ type: { const: integrations_1.IntegrationType.snowflake },
579
+ configuration: {
580
+ type: 'object',
581
+ required: ['connectionOptions'],
582
+ properties: {
583
+ connectionOptions: SnowflakeConnectionOptionsSchema,
584
+ },
585
+ },
586
+ },
587
+ },
588
+ {
589
+ type: 'object',
590
+ required: ['configuration'],
591
+ properties: {
592
+ type: { const: integrations_1.IntegrationType.graphql },
593
+ configuration: {
594
+ type: 'object',
595
+ required: ['connectionOptions'],
596
+ properties: {
597
+ connectionOptions: GraphQLConnectionOptionsSchema,
598
+ },
599
+ },
600
+ },
601
+ },
602
+ ],
603
+ };
604
+ exports.DiscoverDataConnectionSchemaRequestSchema = {
605
+ type: 'object',
606
+ required: ['integrationType'],
607
+ oneOf: [
608
+ {
609
+ type: 'object',
610
+ required: ['connectionOptions'],
611
+ properties: {
612
+ integrationType: { const: integrations_1.IntegrationType.mysql },
613
+ connectionOptions: MysqlConnectionOptionsSchema,
614
+ },
615
+ },
616
+ {
617
+ type: 'object',
618
+ required: ['connectionOptions'],
619
+ properties: {
620
+ integrationType: { const: integrations_1.IntegrationType.oracledb },
621
+ connectionOptions: OracleConnectionOptionsSchema,
622
+ },
623
+ },
624
+ {
625
+ type: 'object',
626
+ required: ['connectionOptions'],
627
+ properties: {
628
+ integrationType: { const: integrations_1.IntegrationType.mssql },
629
+ connectionOptions: MssqlConnectionOptionsSchema,
630
+ },
631
+ },
632
+ {
633
+ type: 'object',
634
+ required: ['connectionOptions'],
635
+ properties: {
636
+ integrationType: { const: integrations_1.IntegrationType.snowflake },
637
+ connectionOptions: SnowflakeConnectionOptionsSchema,
638
+ },
639
+ },
640
+ {
641
+ type: 'object',
642
+ required: ['connectionOptions'],
643
+ properties: {
644
+ integrationType: { const: integrations_1.IntegrationType.postgres },
645
+ connectionOptions: PostgresConnectionOptionsSchema,
646
+ },
647
+ },
648
+ {
649
+ type: 'object',
650
+ required: ['connectionOptions'],
651
+ properties: {
652
+ integrationType: { const: integrations_1.IntegrationType.cockroach },
653
+ connectionOptions: PostgresConnectionOptionsSchema,
654
+ },
655
+ },
656
+ {
657
+ type: 'object',
658
+ required: ['connectionOptions'],
659
+ properties: {
660
+ integrationType: { const: integrations_1.IntegrationType.mongo },
661
+ connectionOptions: MongoConnectionOptionsSchema,
662
+ },
663
+ },
664
+ {
665
+ type: 'object',
666
+ properties: {
667
+ integrationType: { const: integrations_1.IntegrationType.built_in_db },
668
+ },
669
+ },
670
+ ],
671
+ };
672
+ exports.DiscoverGraphQLConnectionSchemaRequestSchema = {
673
+ type: 'object',
674
+ required: ['integrationType'],
675
+ properties: {
676
+ integrationType: { const: integrations_1.IntegrationType.graphql },
677
+ connectionOptions: GraphQLConnectionOptionsSchema,
678
+ },
679
+ };
680
+ exports.UpdateAllowedHostsRequestSchema = {
681
+ type: 'object',
682
+ required: ['allowedHosts'],
683
+ properties: {
684
+ allowedHosts: {
685
+ type: 'array',
686
+ nullable: false,
687
+ minItems: 1,
688
+ items: {
689
+ type: 'string',
690
+ nullable: false,
691
+ },
692
+ },
693
+ },
694
+ };
695
+ exports.DiscoverOpenApiSchemaRequestSchema = {
696
+ type: 'object',
697
+ required: ['discoveryOptions'],
698
+ properties: {
699
+ discoveryOptions: {
700
+ type: 'object',
701
+ required: ['openApiSpecUrl'],
702
+ properties: {
703
+ openApiSpecUrl: {
704
+ type: 'string',
705
+ format: 'uri',
706
+ },
707
+ },
708
+ },
709
+ },
710
+ };
711
+ //# sourceMappingURL=application.schemas.js.map