@squidcloud/local-backend 1.0.142 → 1.0.143

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