@squidcloud/local-backend 1.0.49 → 1.0.50

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 (175) hide show
  1. package/dist/common/src/ai-assistant.context.d.ts +13 -13
  2. package/dist/common/src/ai-assistant.context.js +19 -19
  3. package/dist/common/src/ai-assistant.schemas.d.ts +243 -243
  4. package/dist/common/src/ai-assistant.schemas.js +210 -210
  5. package/dist/common/src/ai-assistant.types.d.ts +90 -90
  6. package/dist/common/src/ai-assistant.types.js +11 -11
  7. package/dist/common/src/api-call.context.d.ts +13 -13
  8. package/dist/common/src/api-call.context.js +16 -16
  9. package/dist/common/src/api.types.d.ts +23 -23
  10. package/dist/common/src/api.types.js +2 -2
  11. package/dist/common/src/application.schemas.d.ts +1168 -1168
  12. package/dist/common/src/application.schemas.js +741 -741
  13. package/dist/common/src/application.types.d.ts +228 -228
  14. package/dist/common/src/application.types.js +89 -89
  15. package/dist/common/src/backend-function.schemas.d.ts +3 -3
  16. package/dist/common/src/backend-function.schemas.js +12 -12
  17. package/dist/common/src/backend-function.types.d.ts +6 -6
  18. package/dist/common/src/backend-function.types.js +2 -2
  19. package/dist/common/src/backend-run.types.d.ts +54 -54
  20. package/dist/common/src/backend-run.types.js +73 -73
  21. package/dist/common/src/bundle-api.types.d.ts +62 -62
  22. package/dist/common/src/bundle-api.types.js +2 -2
  23. package/dist/common/src/bundle-data.types.d.ts +59 -59
  24. package/dist/common/src/bundle-data.types.js +2 -2
  25. package/dist/common/src/communication.types.d.ts +18 -18
  26. package/dist/common/src/communication.types.js +40 -40
  27. package/dist/common/src/context.types.d.ts +24 -24
  28. package/dist/common/src/context.types.js +2 -2
  29. package/dist/common/src/distributed-lock.context.d.ts +5 -5
  30. package/dist/common/src/distributed-lock.context.js +10 -10
  31. package/dist/common/src/document.types.d.ts +32 -32
  32. package/dist/common/src/document.types.js +50 -50
  33. package/dist/common/src/graphql.context.d.ts +14 -14
  34. package/dist/common/src/graphql.context.js +12 -12
  35. package/dist/common/src/graphql.types.d.ts +11 -11
  36. package/dist/common/src/graphql.types.js +34 -34
  37. package/dist/common/src/heartbeat.types.d.ts +4 -4
  38. package/dist/common/src/heartbeat.types.js +16 -16
  39. package/dist/common/src/http-status.enum.d.ts +50 -50
  40. package/dist/common/src/http-status.enum.js +54 -54
  41. package/dist/common/src/index.d.ts +53 -53
  42. package/dist/common/src/index.js +69 -69
  43. package/dist/common/src/integrations/ai_assistant.types.d.ts +30 -30
  44. package/dist/common/src/integrations/ai_assistant.types.js +2 -2
  45. package/dist/common/src/integrations/api.types.d.ts +80 -80
  46. package/dist/common/src/integrations/api.types.js +2 -2
  47. package/dist/common/src/integrations/auth.types.d.ts +39 -39
  48. package/dist/common/src/integrations/auth.types.js +2 -2
  49. package/dist/common/src/integrations/database.types.d.ts +236 -236
  50. package/dist/common/src/integrations/database.types.js +2 -2
  51. package/dist/common/src/integrations/index.d.ts +101 -101
  52. package/dist/common/src/integrations/index.js +105 -105
  53. package/dist/common/src/integrations/observability.types.d.ts +23 -23
  54. package/dist/common/src/integrations/observability.types.js +23 -23
  55. package/dist/common/src/integrations/observability.types.js.map +1 -1
  56. package/dist/common/src/logger.types.d.ts +21 -21
  57. package/dist/common/src/logger.types.js +11 -11
  58. package/dist/common/src/metrics.types.d.ts +73 -73
  59. package/dist/common/src/metrics.types.js +11 -11
  60. package/dist/common/src/mutation.context.d.ts +13 -13
  61. package/dist/common/src/mutation.context.js +26 -26
  62. package/dist/common/src/mutation.schemas.d.ts +5 -5
  63. package/dist/common/src/mutation.schemas.js +114 -114
  64. package/dist/common/src/mutation.types.d.ts +63 -63
  65. package/dist/common/src/mutation.types.js +142 -142
  66. package/dist/common/src/named-query.context.d.ts +4 -4
  67. package/dist/common/src/named-query.context.js +9 -9
  68. package/dist/common/src/named-query.schemas.d.ts +3 -3
  69. package/dist/common/src/named-query.schemas.js +13 -13
  70. package/dist/common/src/named-query.types.d.ts +8 -8
  71. package/dist/common/src/named-query.types.js +2 -2
  72. package/dist/common/src/query/base-query-builder.d.ts +65 -65
  73. package/dist/common/src/query/base-query-builder.js +294 -294
  74. package/dist/common/src/query/index.d.ts +3 -3
  75. package/dist/common/src/query/index.js +19 -19
  76. package/dist/common/src/query/query-context.d.ts +47 -47
  77. package/dist/common/src/query/query-context.js +159 -159
  78. package/dist/common/src/query/serialized-query.types.d.ts +24 -24
  79. package/dist/common/src/query/serialized-query.types.js +2 -2
  80. package/dist/common/src/query.types.d.ts +81 -81
  81. package/dist/common/src/query.types.js +153 -153
  82. package/dist/common/src/regions.d.ts +21 -21
  83. package/dist/common/src/regions.js +46 -46
  84. package/dist/common/src/schema/schema.types.d.ts +30 -30
  85. package/dist/common/src/schema/schema.types.js +172 -172
  86. package/dist/common/src/secret.schemas.d.ts +6 -6
  87. package/dist/common/src/secret.schemas.js +32 -32
  88. package/dist/common/src/secret.types.d.ts +49 -49
  89. package/dist/common/src/secret.types.js +5 -5
  90. package/dist/common/src/security.types.d.ts +3 -3
  91. package/dist/common/src/security.types.js +2 -2
  92. package/dist/common/src/socket.schemas.d.ts +3 -3
  93. package/dist/common/src/socket.schemas.js +58 -58
  94. package/dist/common/src/socket.types.d.ts +108 -108
  95. package/dist/common/src/socket.types.js +2 -2
  96. package/dist/common/src/time-units.d.ts +5 -5
  97. package/dist/common/src/time-units.js +8 -8
  98. package/dist/common/src/trigger.types.d.ts +15 -15
  99. package/dist/common/src/trigger.types.js +2 -2
  100. package/dist/common/src/types.d.ts +21 -21
  101. package/dist/common/src/types.js +2 -2
  102. package/dist/common/src/utils/array.d.ts +8 -8
  103. package/dist/common/src/utils/array.js +51 -51
  104. package/dist/common/src/utils/assert.d.ts +8 -8
  105. package/dist/common/src/utils/assert.js +49 -49
  106. package/dist/common/src/utils/error.d.ts +4 -4
  107. package/dist/common/src/utils/error.js +10 -10
  108. package/dist/common/src/utils/http.d.ts +2 -2
  109. package/dist/common/src/utils/http.js +38 -38
  110. package/dist/common/src/utils/id.d.ts +2 -2
  111. package/dist/common/src/utils/id.js +21 -21
  112. package/dist/common/src/utils/lock.manager.d.ts +9 -9
  113. package/dist/common/src/utils/lock.manager.js +39 -39
  114. package/dist/common/src/utils/nullish.d.ts +2 -2
  115. package/dist/common/src/utils/nullish.js +11 -11
  116. package/dist/common/src/utils/object.d.ts +6 -6
  117. package/dist/common/src/utils/object.js +89 -89
  118. package/dist/common/src/utils/serialization.d.ts +6 -6
  119. package/dist/common/src/utils/serialization.js +77 -77
  120. package/dist/common/src/utils/transforms.d.ts +18 -18
  121. package/dist/common/src/utils/transforms.js +92 -92
  122. package/dist/common/src/utils/url.d.ts +1 -1
  123. package/dist/common/src/utils/url.js +15 -15
  124. package/dist/common/src/utils/validation.d.ts +17 -17
  125. package/dist/common/src/utils/validation.js +209 -209
  126. package/dist/common/src/utils/validation.js.map +1 -1
  127. package/dist/common/src/webhook-response.d.ts +7 -7
  128. package/dist/common/src/webhook-response.js +7 -7
  129. package/dist/internal-common/src/async-queue.d.ts +4 -4
  130. package/dist/internal-common/src/async-queue.js +17 -17
  131. package/dist/internal-common/src/code-executor.types.d.ts +13 -13
  132. package/dist/internal-common/src/code-executor.types.js +2 -2
  133. package/dist/internal-common/src/environment/environment.types.d.ts +74 -74
  134. package/dist/internal-common/src/environment/environment.types.js +2 -2
  135. package/dist/internal-common/src/environment/index.d.ts +6 -6
  136. package/dist/internal-common/src/environment/index.js +27 -27
  137. package/dist/internal-common/src/environment/local.environment.d.ts +2 -2
  138. package/dist/internal-common/src/environment/local.environment.js +62 -62
  139. package/dist/internal-common/src/filters/custom-exception.filter.d.ts +6 -6
  140. package/dist/internal-common/src/filters/custom-exception.filter.js +44 -44
  141. package/dist/internal-common/src/index.d.ts +14 -14
  142. package/dist/internal-common/src/index.js +32 -32
  143. package/dist/internal-common/src/interceptors/body.interceptor.d.ts +5 -5
  144. package/dist/internal-common/src/interceptors/body.interceptor.js +24 -24
  145. package/dist/internal-common/src/kafka/kafka.manager.d.ts +22 -22
  146. package/dist/internal-common/src/kafka/kafka.manager.js +129 -129
  147. package/dist/internal-common/src/kafka/kafka.types.d.ts +17 -17
  148. package/dist/internal-common/src/kafka/kafka.types.js +2 -2
  149. package/dist/internal-common/src/kafka-observability-publisher.d.ts +11 -11
  150. package/dist/internal-common/src/kafka-observability-publisher.js +20 -20
  151. package/dist/internal-common/src/local-dev.types.d.ts +31 -31
  152. package/dist/internal-common/src/local-dev.types.js +2 -2
  153. package/dist/internal-common/src/observability-publisher.d.ts +9 -9
  154. package/dist/internal-common/src/observability-publisher.js +58 -58
  155. package/dist/internal-common/src/observability.types.d.ts +17 -17
  156. package/dist/internal-common/src/observability.types.js +2 -2
  157. package/dist/internal-common/src/shutdown.manager.d.ts +20 -20
  158. package/dist/internal-common/src/shutdown.manager.js +75 -75
  159. package/dist/internal-common/src/utils.d.ts +5 -5
  160. package/dist/internal-common/src/utils.js +29 -29
  161. package/dist/local-backend/src/index.d.ts +4 -4
  162. package/dist/local-backend/src/index.js +20 -20
  163. package/dist/local-backend/src/local-backend-socket.service.d.ts +18 -18
  164. package/dist/local-backend/src/local-backend-socket.service.js +107 -108
  165. package/dist/local-backend/src/local-backend-socket.service.js.map +1 -1
  166. package/dist/local-backend/src/local-backend.app.d.ts +2 -2
  167. package/dist/local-backend/src/local-backend.app.js +19 -19
  168. package/dist/local-backend/src/local-backend.controller.d.ts +8 -8
  169. package/dist/local-backend/src/local-backend.controller.js +49 -49
  170. package/dist/local-backend/src/local-backend.module.d.ts +8 -8
  171. package/dist/local-backend/src/local-backend.module.js +53 -53
  172. package/dist/local-backend/src/local-backend.service.d.ts +15 -15
  173. package/dist/local-backend/src/local-backend.service.js +165 -165
  174. package/dist/tsconfig.build.tsbuildinfo +1 -1
  175. package/package.json +2 -1
@@ -1,742 +1,742 @@
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
- type: 'object',
479
- required: ['configuration'],
480
- properties: {
481
- type: { const: integrations_1.IntegrationType.cognito },
482
- configuration: {
483
- type: 'object',
484
- required: ['region', 'userPoolId', 'appClientId'],
485
- properties: {
486
- region: { type: 'string' },
487
- userPoolId: { type: 'string' },
488
- appClientId: { type: 'string' },
489
- },
490
- },
491
- },
492
- },
493
- {
494
- type: 'object',
495
- required: ['configuration'],
496
- properties: {
497
- type: { const: integrations_1.IntegrationType.okta },
498
- configuration: {
499
- type: 'object',
500
- required: ['domain', 'clientId'],
501
- properties: {
502
- domain: { type: 'string' },
503
- clientId: { type: 'string' },
504
- },
505
- },
506
- },
507
- },
508
- ],
509
- };
510
- exports.DeleteIntegrationRequestSchema = {
511
- type: 'object',
512
- required: ['integrationId'],
513
- properties: {
514
- integrationId: { type: 'string', nullable: false },
515
- },
516
- };
517
- exports.TestDataConnectionRequestSchema = {
518
- type: 'object',
519
- required: ['type', 'configuration'],
520
- oneOf: [
521
- {
522
- type: 'object',
523
- required: ['configuration'],
524
- properties: {
525
- type: { const: integrations_1.IntegrationType.mysql },
526
- configuration: {
527
- type: 'object',
528
- required: ['connectionOptions'],
529
- properties: {
530
- connectionOptions: MysqlConnectionOptionsSchema,
531
- },
532
- },
533
- },
534
- },
535
- {
536
- type: 'object',
537
- required: ['configuration'],
538
- properties: {
539
- type: { const: integrations_1.IntegrationType.oracledb },
540
- configuration: {
541
- type: 'object',
542
- required: ['connectionOptions'],
543
- properties: {
544
- connectionOptions: OracleConnectionOptionsSchema,
545
- },
546
- },
547
- },
548
- },
549
- {
550
- type: 'object',
551
- required: ['configuration'],
552
- properties: {
553
- type: { const: integrations_1.IntegrationType.mssql },
554
- configuration: {
555
- type: 'object',
556
- required: ['connectionOptions'],
557
- properties: {
558
- connectionOptions: MssqlConnectionOptionsSchema,
559
- },
560
- },
561
- },
562
- },
563
- {
564
- type: 'object',
565
- required: ['configuration'],
566
- properties: {
567
- type: { const: integrations_1.IntegrationType.postgres },
568
- configuration: {
569
- type: 'object',
570
- required: ['connectionOptions'],
571
- properties: {
572
- connectionOptions: PostgresConnectionOptionsSchema,
573
- },
574
- },
575
- },
576
- },
577
- {
578
- type: 'object',
579
- required: ['configuration'],
580
- properties: {
581
- type: { const: integrations_1.IntegrationType.cockroach },
582
- configuration: {
583
- type: 'object',
584
- required: ['connectionOptions'],
585
- properties: {
586
- connectionOptions: PostgresConnectionOptionsSchema,
587
- },
588
- },
589
- },
590
- },
591
- {
592
- type: 'object',
593
- required: ['configuration'],
594
- properties: {
595
- type: { const: integrations_1.IntegrationType.mongo },
596
- configuration: {
597
- type: 'object',
598
- required: ['connectionOptions'],
599
- properties: {
600
- connectionOptions: MongoConnectionOptionsSchema,
601
- },
602
- },
603
- },
604
- },
605
- {
606
- type: 'object',
607
- required: ['configuration'],
608
- properties: {
609
- type: { const: integrations_1.IntegrationType.snowflake },
610
- configuration: {
611
- type: 'object',
612
- required: ['connectionOptions'],
613
- properties: {
614
- connectionOptions: SnowflakeConnectionOptionsSchema,
615
- },
616
- },
617
- },
618
- },
619
- {
620
- type: 'object',
621
- required: ['configuration'],
622
- properties: {
623
- type: { const: integrations_1.IntegrationType.graphql },
624
- configuration: {
625
- type: 'object',
626
- required: ['connectionOptions'],
627
- properties: {
628
- connectionOptions: GraphQLConnectionOptionsSchema,
629
- },
630
- },
631
- },
632
- },
633
- ],
634
- };
635
- exports.DiscoverDataConnectionSchemaRequestSchema = {
636
- type: 'object',
637
- required: ['integrationType'],
638
- oneOf: [
639
- {
640
- type: 'object',
641
- required: ['connectionOptions'],
642
- properties: {
643
- integrationType: { const: integrations_1.IntegrationType.mysql },
644
- connectionOptions: MysqlConnectionOptionsSchema,
645
- },
646
- },
647
- {
648
- type: 'object',
649
- required: ['connectionOptions'],
650
- properties: {
651
- integrationType: { const: integrations_1.IntegrationType.oracledb },
652
- connectionOptions: OracleConnectionOptionsSchema,
653
- },
654
- },
655
- {
656
- type: 'object',
657
- required: ['connectionOptions'],
658
- properties: {
659
- integrationType: { const: integrations_1.IntegrationType.mssql },
660
- connectionOptions: MssqlConnectionOptionsSchema,
661
- },
662
- },
663
- {
664
- type: 'object',
665
- required: ['connectionOptions'],
666
- properties: {
667
- integrationType: { const: integrations_1.IntegrationType.snowflake },
668
- connectionOptions: SnowflakeConnectionOptionsSchema,
669
- },
670
- },
671
- {
672
- type: 'object',
673
- required: ['connectionOptions'],
674
- properties: {
675
- integrationType: { const: integrations_1.IntegrationType.postgres },
676
- connectionOptions: PostgresConnectionOptionsSchema,
677
- },
678
- },
679
- {
680
- type: 'object',
681
- required: ['connectionOptions'],
682
- properties: {
683
- integrationType: { const: integrations_1.IntegrationType.cockroach },
684
- connectionOptions: PostgresConnectionOptionsSchema,
685
- },
686
- },
687
- {
688
- type: 'object',
689
- required: ['connectionOptions'],
690
- properties: {
691
- integrationType: { const: integrations_1.IntegrationType.mongo },
692
- connectionOptions: MongoConnectionOptionsSchema,
693
- },
694
- },
695
- {
696
- type: 'object',
697
- properties: {
698
- integrationType: { const: integrations_1.IntegrationType.built_in_db },
699
- },
700
- },
701
- ],
702
- };
703
- exports.DiscoverGraphQLConnectionSchemaRequestSchema = {
704
- type: 'object',
705
- required: ['integrationType'],
706
- properties: {
707
- integrationType: { const: integrations_1.IntegrationType.graphql },
708
- connectionOptions: GraphQLConnectionOptionsSchema,
709
- },
710
- };
711
- exports.UpdateAllowedHostsRequestSchema = {
712
- type: 'object',
713
- required: ['allowedHosts'],
714
- properties: {
715
- allowedHosts: {
716
- type: 'array',
717
- nullable: false,
718
- minItems: 1,
719
- items: {
720
- type: 'string',
721
- nullable: false,
722
- },
723
- },
724
- },
725
- };
726
- exports.DiscoverOpenApiSchemaRequestSchema = {
727
- type: 'object',
728
- required: ['discoveryOptions'],
729
- properties: {
730
- discoveryOptions: {
731
- type: 'object',
732
- required: ['openApiSpecUrl'],
733
- properties: {
734
- openApiSpecUrl: {
735
- type: 'string',
736
- format: 'uri',
737
- },
738
- },
739
- },
740
- },
741
- };
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
+ type: 'object',
479
+ required: ['configuration'],
480
+ properties: {
481
+ type: { const: integrations_1.IntegrationType.cognito },
482
+ configuration: {
483
+ type: 'object',
484
+ required: ['region', 'userPoolId', 'appClientId'],
485
+ properties: {
486
+ region: { type: 'string' },
487
+ userPoolId: { type: 'string' },
488
+ appClientId: { type: 'string' },
489
+ },
490
+ },
491
+ },
492
+ },
493
+ {
494
+ type: 'object',
495
+ required: ['configuration'],
496
+ properties: {
497
+ type: { const: integrations_1.IntegrationType.okta },
498
+ configuration: {
499
+ type: 'object',
500
+ required: ['domain', 'clientId'],
501
+ properties: {
502
+ domain: { type: 'string' },
503
+ clientId: { type: 'string' },
504
+ },
505
+ },
506
+ },
507
+ },
508
+ ],
509
+ };
510
+ exports.DeleteIntegrationRequestSchema = {
511
+ type: 'object',
512
+ required: ['integrationId'],
513
+ properties: {
514
+ integrationId: { type: 'string', nullable: false },
515
+ },
516
+ };
517
+ exports.TestDataConnectionRequestSchema = {
518
+ type: 'object',
519
+ required: ['type', 'configuration'],
520
+ oneOf: [
521
+ {
522
+ type: 'object',
523
+ required: ['configuration'],
524
+ properties: {
525
+ type: { const: integrations_1.IntegrationType.mysql },
526
+ configuration: {
527
+ type: 'object',
528
+ required: ['connectionOptions'],
529
+ properties: {
530
+ connectionOptions: MysqlConnectionOptionsSchema,
531
+ },
532
+ },
533
+ },
534
+ },
535
+ {
536
+ type: 'object',
537
+ required: ['configuration'],
538
+ properties: {
539
+ type: { const: integrations_1.IntegrationType.oracledb },
540
+ configuration: {
541
+ type: 'object',
542
+ required: ['connectionOptions'],
543
+ properties: {
544
+ connectionOptions: OracleConnectionOptionsSchema,
545
+ },
546
+ },
547
+ },
548
+ },
549
+ {
550
+ type: 'object',
551
+ required: ['configuration'],
552
+ properties: {
553
+ type: { const: integrations_1.IntegrationType.mssql },
554
+ configuration: {
555
+ type: 'object',
556
+ required: ['connectionOptions'],
557
+ properties: {
558
+ connectionOptions: MssqlConnectionOptionsSchema,
559
+ },
560
+ },
561
+ },
562
+ },
563
+ {
564
+ type: 'object',
565
+ required: ['configuration'],
566
+ properties: {
567
+ type: { const: integrations_1.IntegrationType.postgres },
568
+ configuration: {
569
+ type: 'object',
570
+ required: ['connectionOptions'],
571
+ properties: {
572
+ connectionOptions: PostgresConnectionOptionsSchema,
573
+ },
574
+ },
575
+ },
576
+ },
577
+ {
578
+ type: 'object',
579
+ required: ['configuration'],
580
+ properties: {
581
+ type: { const: integrations_1.IntegrationType.cockroach },
582
+ configuration: {
583
+ type: 'object',
584
+ required: ['connectionOptions'],
585
+ properties: {
586
+ connectionOptions: PostgresConnectionOptionsSchema,
587
+ },
588
+ },
589
+ },
590
+ },
591
+ {
592
+ type: 'object',
593
+ required: ['configuration'],
594
+ properties: {
595
+ type: { const: integrations_1.IntegrationType.mongo },
596
+ configuration: {
597
+ type: 'object',
598
+ required: ['connectionOptions'],
599
+ properties: {
600
+ connectionOptions: MongoConnectionOptionsSchema,
601
+ },
602
+ },
603
+ },
604
+ },
605
+ {
606
+ type: 'object',
607
+ required: ['configuration'],
608
+ properties: {
609
+ type: { const: integrations_1.IntegrationType.snowflake },
610
+ configuration: {
611
+ type: 'object',
612
+ required: ['connectionOptions'],
613
+ properties: {
614
+ connectionOptions: SnowflakeConnectionOptionsSchema,
615
+ },
616
+ },
617
+ },
618
+ },
619
+ {
620
+ type: 'object',
621
+ required: ['configuration'],
622
+ properties: {
623
+ type: { const: integrations_1.IntegrationType.graphql },
624
+ configuration: {
625
+ type: 'object',
626
+ required: ['connectionOptions'],
627
+ properties: {
628
+ connectionOptions: GraphQLConnectionOptionsSchema,
629
+ },
630
+ },
631
+ },
632
+ },
633
+ ],
634
+ };
635
+ exports.DiscoverDataConnectionSchemaRequestSchema = {
636
+ type: 'object',
637
+ required: ['integrationType'],
638
+ oneOf: [
639
+ {
640
+ type: 'object',
641
+ required: ['connectionOptions'],
642
+ properties: {
643
+ integrationType: { const: integrations_1.IntegrationType.mysql },
644
+ connectionOptions: MysqlConnectionOptionsSchema,
645
+ },
646
+ },
647
+ {
648
+ type: 'object',
649
+ required: ['connectionOptions'],
650
+ properties: {
651
+ integrationType: { const: integrations_1.IntegrationType.oracledb },
652
+ connectionOptions: OracleConnectionOptionsSchema,
653
+ },
654
+ },
655
+ {
656
+ type: 'object',
657
+ required: ['connectionOptions'],
658
+ properties: {
659
+ integrationType: { const: integrations_1.IntegrationType.mssql },
660
+ connectionOptions: MssqlConnectionOptionsSchema,
661
+ },
662
+ },
663
+ {
664
+ type: 'object',
665
+ required: ['connectionOptions'],
666
+ properties: {
667
+ integrationType: { const: integrations_1.IntegrationType.snowflake },
668
+ connectionOptions: SnowflakeConnectionOptionsSchema,
669
+ },
670
+ },
671
+ {
672
+ type: 'object',
673
+ required: ['connectionOptions'],
674
+ properties: {
675
+ integrationType: { const: integrations_1.IntegrationType.postgres },
676
+ connectionOptions: PostgresConnectionOptionsSchema,
677
+ },
678
+ },
679
+ {
680
+ type: 'object',
681
+ required: ['connectionOptions'],
682
+ properties: {
683
+ integrationType: { const: integrations_1.IntegrationType.cockroach },
684
+ connectionOptions: PostgresConnectionOptionsSchema,
685
+ },
686
+ },
687
+ {
688
+ type: 'object',
689
+ required: ['connectionOptions'],
690
+ properties: {
691
+ integrationType: { const: integrations_1.IntegrationType.mongo },
692
+ connectionOptions: MongoConnectionOptionsSchema,
693
+ },
694
+ },
695
+ {
696
+ type: 'object',
697
+ properties: {
698
+ integrationType: { const: integrations_1.IntegrationType.built_in_db },
699
+ },
700
+ },
701
+ ],
702
+ };
703
+ exports.DiscoverGraphQLConnectionSchemaRequestSchema = {
704
+ type: 'object',
705
+ required: ['integrationType'],
706
+ properties: {
707
+ integrationType: { const: integrations_1.IntegrationType.graphql },
708
+ connectionOptions: GraphQLConnectionOptionsSchema,
709
+ },
710
+ };
711
+ exports.UpdateAllowedHostsRequestSchema = {
712
+ type: 'object',
713
+ required: ['allowedHosts'],
714
+ properties: {
715
+ allowedHosts: {
716
+ type: 'array',
717
+ nullable: false,
718
+ minItems: 1,
719
+ items: {
720
+ type: 'string',
721
+ nullable: false,
722
+ },
723
+ },
724
+ },
725
+ };
726
+ exports.DiscoverOpenApiSchemaRequestSchema = {
727
+ type: 'object',
728
+ required: ['discoveryOptions'],
729
+ properties: {
730
+ discoveryOptions: {
731
+ type: 'object',
732
+ required: ['openApiSpecUrl'],
733
+ properties: {
734
+ openApiSpecUrl: {
735
+ type: 'string',
736
+ format: 'uri',
737
+ },
738
+ },
739
+ },
740
+ },
741
+ };
742
742
  //# sourceMappingURL=application.schemas.js.map