@squidcloud/local-backend 1.0.147 → 1.0.150

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 (174) hide show
  1. package/dist/common/src/ai-assistant.types.d.ts +50 -50
  2. package/dist/common/src/ai-assistant.types.js +2 -2
  3. package/dist/common/src/ai-chatbot.context.d.ts +13 -13
  4. package/dist/common/src/ai-chatbot.context.js +19 -19
  5. package/dist/common/src/ai-chatbot.schemas.d.ts +18 -18
  6. package/dist/common/src/ai-chatbot.schemas.js +21 -21
  7. package/dist/common/src/ai-chatbot.types.d.ts +123 -123
  8. package/dist/common/src/ai-chatbot.types.js +18 -18
  9. package/dist/common/src/api-call.context.d.ts +13 -13
  10. package/dist/common/src/api-call.context.js +16 -16
  11. package/dist/common/src/api.types.d.ts +22 -22
  12. package/dist/common/src/api.types.js +2 -2
  13. package/dist/common/src/application.schemas.d.ts +1648 -1648
  14. package/dist/common/src/application.schemas.js +948 -948
  15. package/dist/common/src/application.types.d.ts +192 -193
  16. package/dist/common/src/application.types.js +89 -89
  17. package/dist/common/src/application.types.js.map +1 -1
  18. package/dist/common/src/backend-function.schemas.d.ts +3 -3
  19. package/dist/common/src/backend-function.schemas.js +11 -11
  20. package/dist/common/src/backend-function.types.d.ts +4 -4
  21. package/dist/common/src/backend-function.types.js +2 -2
  22. package/dist/common/src/backend-run.types.d.ts +54 -54
  23. package/dist/common/src/backend-run.types.js +92 -95
  24. package/dist/common/src/backend-run.types.js.map +1 -1
  25. package/dist/common/src/bundle-api.types.d.ts +65 -69
  26. package/dist/common/src/bundle-api.types.js +2 -2
  27. package/dist/common/src/bundle-data.types.d.ts +69 -74
  28. package/dist/common/src/bundle-data.types.js +2 -2
  29. package/dist/common/src/communication.types.d.ts +20 -19
  30. package/dist/common/src/communication.types.js +41 -40
  31. package/dist/common/src/communication.types.js.map +1 -1
  32. package/dist/common/src/context.types.d.ts +24 -24
  33. package/dist/common/src/context.types.js +2 -2
  34. package/dist/common/src/distributed-lock.context.d.ts +4 -4
  35. package/dist/common/src/distributed-lock.context.js +9 -9
  36. package/dist/common/src/document.types.d.ts +32 -32
  37. package/dist/common/src/document.types.js +50 -50
  38. package/dist/common/src/graphql.context.d.ts +14 -14
  39. package/dist/common/src/graphql.context.js +12 -12
  40. package/dist/common/src/graphql.types.d.ts +11 -11
  41. package/dist/common/src/graphql.types.js +34 -34
  42. package/dist/common/src/heartbeat.types.d.ts +4 -4
  43. package/dist/common/src/heartbeat.types.js +16 -16
  44. package/dist/common/src/http-status.enum.d.ts +50 -50
  45. package/dist/common/src/http-status.enum.js +54 -54
  46. package/dist/common/src/http-status.enum.js.map +1 -1
  47. package/dist/common/src/index.d.ts +54 -57
  48. package/dist/common/src/index.js +70 -73
  49. package/dist/common/src/index.js.map +1 -1
  50. package/dist/common/src/integrations/ai_chatbot.types.d.ts +31 -31
  51. package/dist/common/src/integrations/ai_chatbot.types.js +2 -2
  52. package/dist/common/src/integrations/api.types.d.ts +80 -80
  53. package/dist/common/src/integrations/api.types.js +2 -2
  54. package/dist/common/src/integrations/auth.types.d.ts +39 -39
  55. package/dist/common/src/integrations/auth.types.js +2 -2
  56. package/dist/common/src/integrations/database.types.d.ts +274 -274
  57. package/dist/common/src/integrations/database.types.js +2 -2
  58. package/dist/common/src/integrations/index.d.ts +134 -134
  59. package/dist/common/src/integrations/index.js +119 -119
  60. package/dist/common/src/integrations/index.js.map +1 -1
  61. package/dist/common/src/integrations/observability.types.d.ts +23 -23
  62. package/dist/common/src/integrations/observability.types.js +23 -23
  63. package/dist/common/src/logger.types.d.ts +21 -21
  64. package/dist/common/src/logger.types.js +11 -11
  65. package/dist/common/src/logger.types.js.map +1 -1
  66. package/dist/common/src/metrics.types.d.ts +73 -73
  67. package/dist/common/src/metrics.types.js +11 -11
  68. package/dist/common/src/mutation.context.d.ts +13 -13
  69. package/dist/common/src/mutation.context.js +26 -26
  70. package/dist/common/src/mutation.schemas.d.ts +5 -5
  71. package/dist/common/src/mutation.schemas.js +114 -114
  72. package/dist/common/src/mutation.types.d.ts +63 -63
  73. package/dist/common/src/mutation.types.js +142 -142
  74. package/dist/common/src/native-query.context.d.ts +7 -7
  75. package/dist/common/src/native-query.context.js +11 -11
  76. package/dist/common/src/native-query.types.d.ts +16 -16
  77. package/dist/common/src/native-query.types.js +2 -2
  78. package/dist/common/src/query/base-query-builder.d.ts +38 -38
  79. package/dist/common/src/query/base-query-builder.js +39 -39
  80. package/dist/common/src/query/index.d.ts +4 -4
  81. package/dist/common/src/query/index.js +20 -20
  82. package/dist/common/src/query/pagination.d.ts +46 -46
  83. package/dist/common/src/query/pagination.js +211 -211
  84. package/dist/common/src/query/query-context.d.ts +47 -47
  85. package/dist/common/src/query/query-context.js +159 -159
  86. package/dist/common/src/query/serialized-query.types.d.ts +24 -24
  87. package/dist/common/src/query/serialized-query.types.js +2 -2
  88. package/dist/common/src/query.types.d.ts +86 -86
  89. package/dist/common/src/query.types.js +97 -97
  90. package/dist/common/src/regions.d.ts +21 -21
  91. package/dist/common/src/regions.js +46 -46
  92. package/dist/common/src/schema/schema.types.d.ts +30 -30
  93. package/dist/common/src/schema/schema.types.js +173 -173
  94. package/dist/common/src/secret.schemas.d.ts +4 -4
  95. package/dist/common/src/secret.schemas.js +17 -17
  96. package/dist/common/src/secret.types.d.ts +68 -68
  97. package/dist/common/src/secret.types.js +5 -5
  98. package/dist/common/src/security.types.d.ts +3 -3
  99. package/dist/common/src/security.types.js +2 -2
  100. package/dist/common/src/socket.schemas.d.ts +3 -3
  101. package/dist/common/src/socket.schemas.js +57 -57
  102. package/dist/common/src/socket.types.d.ts +126 -126
  103. package/dist/common/src/socket.types.js +9 -9
  104. package/dist/common/src/socket.types.js.map +1 -1
  105. package/dist/common/src/time-units.d.ts +11 -11
  106. package/dist/common/src/time-units.js +14 -14
  107. package/dist/common/src/trigger.types.d.ts +15 -15
  108. package/dist/common/src/trigger.types.js +2 -2
  109. package/dist/common/src/types.d.ts +21 -21
  110. package/dist/common/src/types.js +2 -2
  111. package/dist/common/src/utils/array.d.ts +8 -8
  112. package/dist/common/src/utils/array.js +54 -54
  113. package/dist/common/src/utils/assert.d.ts +3 -3
  114. package/dist/common/src/utils/assert.js +14 -14
  115. package/dist/common/src/utils/error.d.ts +4 -4
  116. package/dist/common/src/utils/error.js +10 -10
  117. package/dist/common/src/utils/global.utils.d.ts +11 -11
  118. package/dist/common/src/utils/global.utils.js +50 -50
  119. package/dist/common/src/utils/http.d.ts +2 -2
  120. package/dist/common/src/utils/http.js +51 -51
  121. package/dist/common/src/utils/id.d.ts +2 -2
  122. package/dist/common/src/utils/id.js +21 -21
  123. package/dist/common/src/utils/lock.manager.d.ts +9 -9
  124. package/dist/common/src/utils/lock.manager.js +39 -39
  125. package/dist/common/src/utils/object.d.ts +5 -5
  126. package/dist/common/src/utils/object.js +75 -75
  127. package/dist/common/src/utils/serialization.d.ts +5 -6
  128. package/dist/common/src/utils/serialization.js +73 -77
  129. package/dist/common/src/utils/serialization.js.map +1 -1
  130. package/dist/common/src/utils/transforms.d.ts +18 -18
  131. package/dist/common/src/utils/transforms.js +104 -104
  132. package/dist/common/src/utils/url.d.ts +1 -1
  133. package/dist/common/src/utils/url.js +15 -15
  134. package/dist/common/src/utils/validation.d.ts +17 -17
  135. package/dist/common/src/utils/validation.js +199 -199
  136. package/dist/common/src/webhook-response.d.ts +6 -6
  137. package/dist/common/src/webhook-response.js +2 -2
  138. package/dist/common/src/websocket.impl.d.ts +21 -21
  139. package/dist/common/src/websocket.impl.js +79 -79
  140. package/dist/internal-common/src/code-executor.types.d.ts +13 -13
  141. package/dist/internal-common/src/code-executor.types.js +2 -2
  142. package/dist/internal-common/src/local-dev.types.d.ts +35 -35
  143. package/dist/internal-common/src/local-dev.types.js +2 -2
  144. package/dist/local-backend/package.json +48 -48
  145. package/dist/local-backend/src/index.d.ts +4 -4
  146. package/dist/local-backend/src/index.js +26 -26
  147. package/dist/local-backend/src/local-backend-socket.service.d.ts +18 -18
  148. package/dist/local-backend/src/local-backend-socket.service.js +107 -108
  149. package/dist/local-backend/src/local-backend-socket.service.js.map +1 -1
  150. package/dist/local-backend/src/local-backend.app.d.ts +2 -2
  151. package/dist/local-backend/src/local-backend.app.js +19 -19
  152. package/dist/local-backend/src/local-backend.controller.d.ts +8 -8
  153. package/dist/local-backend/src/local-backend.controller.js +48 -49
  154. package/dist/local-backend/src/local-backend.controller.js.map +1 -1
  155. package/dist/local-backend/src/local-backend.module.d.ts +8 -8
  156. package/dist/local-backend/src/local-backend.module.js +51 -53
  157. package/dist/local-backend/src/local-backend.module.js.map +1 -1
  158. package/dist/local-backend/src/local-backend.service.d.ts +15 -15
  159. package/dist/local-backend/src/local-backend.service.js +173 -176
  160. package/dist/local-backend/src/local-backend.service.js.map +1 -1
  161. package/dist/tsconfig.build.tsbuildinfo +1 -1
  162. package/package.json +1 -1
  163. package/dist/common/src/named-query.context.d.ts +0 -4
  164. package/dist/common/src/named-query.context.js +0 -10
  165. package/dist/common/src/named-query.context.js.map +0 -1
  166. package/dist/common/src/named-query.schemas.d.ts +0 -3
  167. package/dist/common/src/named-query.schemas.js +0 -14
  168. package/dist/common/src/named-query.schemas.js.map +0 -1
  169. package/dist/common/src/named-query.types.d.ts +0 -8
  170. package/dist/common/src/named-query.types.js +0 -3
  171. package/dist/common/src/named-query.types.js.map +0 -1
  172. package/dist/internal-common/src/utils/logger-utils.d.ts +0 -3
  173. package/dist/internal-common/src/utils/logger-utils.js +0 -29
  174. package/dist/internal-common/src/utils/logger-utils.js.map +0 -1
@@ -1,949 +1,949 @@
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
- };
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
949
  //# sourceMappingURL=application.schemas.js.map