@squidcloud/backend 1.0.9 → 1.0.10

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 (88) hide show
  1. package/dist/backend/src/actions.d.ts +13 -0
  2. package/dist/backend/src/index.d.ts +3 -0
  3. package/dist/backend/src/metadata.d.ts +234 -0
  4. package/dist/backend/src/project.d.ts +4 -0
  5. package/dist/backend/src/service.d.ts +18 -0
  6. package/dist/common/src/api-call.context.d.ts +17 -0
  7. package/dist/common/src/api.types.d.ts +10 -0
  8. package/dist/common/src/application.schemas.d.ts +608 -0
  9. package/dist/common/src/application.types.d.ts +197 -0
  10. package/dist/common/src/backend-function.schemas.d.ts +3 -0
  11. package/dist/common/src/backend-function.types.d.ts +7 -0
  12. package/dist/common/src/backend-run.types.d.ts +60 -0
  13. package/dist/common/src/bundle-api.types.d.ts +66 -0
  14. package/dist/common/src/bundle-data.types.d.ts +47 -0
  15. package/dist/common/src/communication.types.d.ts +4 -0
  16. package/dist/common/src/context.types.d.ts +21 -0
  17. package/dist/common/src/document.types.d.ts +35 -0
  18. package/dist/common/src/executable.context.d.ts +4 -0
  19. package/dist/common/src/graphql.context.d.ts +14 -0
  20. package/dist/common/src/graphql.types.d.ts +8 -0
  21. package/dist/common/src/http-status.enum.d.ts +50 -0
  22. package/dist/common/src/index.d.ts +50 -0
  23. package/dist/common/src/integration.types.d.ts +249 -0
  24. package/dist/common/src/logger.types.d.ts +22 -0
  25. package/dist/common/src/metrics.schemas.d.ts +3 -0
  26. package/dist/common/src/metrics.types.d.ts +65 -0
  27. package/dist/common/src/mutation.context.d.ts +11 -0
  28. package/dist/common/src/mutation.schemas.d.ts +5 -0
  29. package/dist/common/src/mutation.types.d.ts +72 -0
  30. package/dist/common/src/named-query.context.d.ts +4 -0
  31. package/dist/common/src/named-query.schemas.d.ts +3 -0
  32. package/dist/common/src/named-query.types.d.ts +9 -0
  33. package/dist/common/src/query/index.d.ts +2 -0
  34. package/dist/common/src/query/query-context.d.ts +38 -0
  35. package/dist/common/src/query/simple-query-builder.d.ts +14 -0
  36. package/dist/common/src/query.schemas.d.ts +5 -0
  37. package/dist/common/src/query.types.d.ts +118 -0
  38. package/dist/common/src/regions.d.ts +22 -0
  39. package/dist/common/src/schema/schema.types.d.ts +54 -0
  40. package/dist/common/src/secret.schemas.d.ts +6 -0
  41. package/dist/common/src/secret.types.d.ts +38 -0
  42. package/dist/common/src/socket.schemas.d.ts +3 -0
  43. package/dist/common/src/socket.types.d.ts +68 -0
  44. package/dist/common/src/time-units.d.ts +5 -0
  45. package/dist/common/src/trigger.types.d.ts +15 -0
  46. package/dist/common/src/types.d.ts +15 -0
  47. package/dist/common/src/utils/array.d.ts +8 -0
  48. package/dist/common/src/utils/assert.d.ts +8 -0
  49. package/dist/common/src/utils/error.d.ts +4 -0
  50. package/dist/common/src/utils/id.d.ts +1 -0
  51. package/dist/common/src/utils/lock.manager.d.ts +14 -0
  52. package/dist/common/src/utils/nullish.d.ts +1 -0
  53. package/dist/common/src/utils/object.d.ts +6 -0
  54. package/dist/common/src/utils/serialization.d.ts +6 -0
  55. package/dist/common/src/utils/transforms.d.ts +18 -0
  56. package/dist/common/src/utils/url.d.ts +1 -0
  57. package/dist/common/src/utils/validation.d.ts +30 -0
  58. package/dist/common/src/webhook-response.d.ts +7 -0
  59. package/dist/index.js.LICENSE.txt +25 -0
  60. package/dist/node_modules/json-schema-typed/draft-2020-12.d.ts +1239 -0
  61. package/dist/typescript-client/src/api.manager.d.ts +14 -0
  62. package/dist/typescript-client/src/backend-function.manager.d.ts +13 -0
  63. package/dist/typescript-client/src/collection-reference.d.ts +19 -0
  64. package/dist/typescript-client/src/collection-reference.factory.d.ts +16 -0
  65. package/dist/typescript-client/src/data.manager.d.ts +164 -0
  66. package/dist/typescript-client/src/destruct.manager.d.ts +9 -0
  67. package/dist/typescript-client/src/document-identity.service.d.ts +12 -0
  68. package/dist/typescript-client/src/document-reference.d.ts +23 -0
  69. package/dist/typescript-client/src/document-reference.factory.d.ts +9 -0
  70. package/dist/typescript-client/src/document-store.d.ts +11 -0
  71. package/dist/typescript-client/src/graphql-client.d.ts +9 -0
  72. package/dist/typescript-client/src/graphql-client.factory.d.ts +9 -0
  73. package/dist/typescript-client/src/index.d.ts +7 -0
  74. package/dist/typescript-client/src/mutation/mutation-sender.d.ts +11 -0
  75. package/dist/typescript-client/src/named-query.manager.d.ts +13 -0
  76. package/dist/typescript-client/src/query/join-query-builder.factory.d.ts +35 -0
  77. package/dist/typescript-client/src/query/query-builder.factory.d.ts +37 -0
  78. package/dist/typescript-client/src/query/query-subscription.manager.d.ts +59 -0
  79. package/dist/typescript-client/src/query/query.types.d.ts +7 -0
  80. package/dist/typescript-client/src/rpc.manager.d.ts +24 -0
  81. package/dist/typescript-client/src/socket.manager.d.ts +27 -0
  82. package/dist/typescript-client/src/squid.d.ts +51 -0
  83. package/dist/typescript-client/src/state/action.applier.d.ts +7 -0
  84. package/dist/typescript-client/src/state/actions.d.ts +29 -0
  85. package/dist/typescript-client/src/state/path_trie.d.ts +27 -0
  86. package/dist/typescript-client/src/state/state.service.d.ts +22 -0
  87. package/dist/typescript-client/src/types.d.ts +2 -0
  88. package/package.json +2 -2
@@ -0,0 +1,608 @@
1
+ import { JSONSchemaType } from 'ajv';
2
+ import { UpdateOpenIdProviderRequest } from './application.types';
3
+ import { IntegrationType } from './integration.types';
4
+ export declare const UpdateOpenIdProviderRequestSchema: JSONSchemaType<UpdateOpenIdProviderRequest>;
5
+ export declare const UpsertIntegrationRequestSchema: {
6
+ type: string;
7
+ required: string[];
8
+ properties: {
9
+ id: {
10
+ type: string;
11
+ nullable: boolean;
12
+ };
13
+ secured: {
14
+ type: string;
15
+ nullable: boolean;
16
+ };
17
+ schema: {
18
+ type: string;
19
+ nullable: boolean;
20
+ };
21
+ };
22
+ oneOf: ({
23
+ type: string;
24
+ required: never[];
25
+ properties: {
26
+ type: {
27
+ const: IntegrationType;
28
+ };
29
+ supportsExternalChanges?: undefined;
30
+ configuration?: undefined;
31
+ baseUrl?: undefined;
32
+ endpoints?: undefined;
33
+ };
34
+ } | {
35
+ type: string;
36
+ required: string[];
37
+ properties: {
38
+ type: {
39
+ const: IntegrationType;
40
+ };
41
+ supportsExternalChanges: {
42
+ type: string;
43
+ nullable: boolean;
44
+ };
45
+ configuration: {
46
+ type: string;
47
+ nullable: boolean;
48
+ required: string[];
49
+ properties: {
50
+ connectionOptions: {
51
+ type: string;
52
+ nullable: boolean;
53
+ required: string[];
54
+ properties: {
55
+ host: {
56
+ type: string;
57
+ nullable: boolean;
58
+ };
59
+ user: {
60
+ type: string;
61
+ nullable: boolean;
62
+ };
63
+ database: {
64
+ type: string;
65
+ nullable: boolean;
66
+ };
67
+ secrets: {
68
+ type: string;
69
+ required: string[];
70
+ nullable: boolean;
71
+ properties: {
72
+ password: {
73
+ type: string;
74
+ nullable: boolean;
75
+ isSecret: {};
76
+ };
77
+ };
78
+ };
79
+ connectionLimit: {
80
+ type: string;
81
+ nullable: boolean;
82
+ };
83
+ };
84
+ };
85
+ };
86
+ };
87
+ baseUrl?: undefined;
88
+ endpoints?: undefined;
89
+ };
90
+ } | {
91
+ type: string;
92
+ required: string[];
93
+ properties: {
94
+ type: {
95
+ const: IntegrationType;
96
+ };
97
+ supportsExternalChanges: {
98
+ type: string;
99
+ nullable: boolean;
100
+ };
101
+ configuration: {
102
+ type: string;
103
+ nullable: boolean;
104
+ required: string[];
105
+ properties: {
106
+ connectionOptions: {
107
+ type: string;
108
+ nullable: boolean;
109
+ required: string[];
110
+ properties: {
111
+ connectionString: {
112
+ type: string;
113
+ nullable: boolean;
114
+ };
115
+ user: {
116
+ type: string;
117
+ nullable: boolean;
118
+ };
119
+ secrets: {
120
+ type: string;
121
+ nullable: boolean;
122
+ properties: {
123
+ password: {
124
+ type: string;
125
+ nullable: boolean;
126
+ isSecret: {};
127
+ };
128
+ };
129
+ };
130
+ maxPoolSize: {
131
+ type: string;
132
+ nullable: boolean;
133
+ };
134
+ minPoolSize: {
135
+ type: string;
136
+ nullable: boolean;
137
+ };
138
+ socketTimeoutMS: {
139
+ type: string;
140
+ nullable: boolean;
141
+ };
142
+ keepAlive: {
143
+ type: string;
144
+ nullable: boolean;
145
+ };
146
+ directConnection: {
147
+ type: string;
148
+ nullable: boolean;
149
+ };
150
+ ssl: {
151
+ type: string;
152
+ nullable: boolean;
153
+ required: string[];
154
+ properties: {
155
+ certificateFile: {
156
+ type: string;
157
+ nullable: boolean;
158
+ };
159
+ validate: {
160
+ type: string;
161
+ nullable: boolean;
162
+ };
163
+ };
164
+ };
165
+ };
166
+ };
167
+ };
168
+ };
169
+ baseUrl?: undefined;
170
+ endpoints?: undefined;
171
+ };
172
+ } | {
173
+ type: string;
174
+ required: string[];
175
+ properties: {
176
+ type: {
177
+ const: IntegrationType;
178
+ };
179
+ baseUrl: {
180
+ type: string;
181
+ nullable: boolean;
182
+ format: string;
183
+ };
184
+ endpoints: {
185
+ type: string;
186
+ patternProperties: {
187
+ '^\\S+$': {
188
+ type: string;
189
+ required: string[];
190
+ properties: {
191
+ relativePath: {
192
+ type: string;
193
+ };
194
+ method: {
195
+ type: string;
196
+ enum: string[];
197
+ };
198
+ requestSchema: {
199
+ type: string;
200
+ patternProperties: {
201
+ '^\\S+$': {
202
+ type: string;
203
+ properties: {
204
+ paramLocation: {
205
+ type: string;
206
+ enum: string[];
207
+ };
208
+ fieldNameInRequest: {
209
+ type: string;
210
+ };
211
+ };
212
+ };
213
+ };
214
+ };
215
+ responseSchema: {
216
+ type: string;
217
+ patternProperties: {
218
+ '^\\S+$': {
219
+ type: string;
220
+ required: string[];
221
+ properties: {
222
+ paramLocation: {
223
+ type: string;
224
+ enum: string[];
225
+ };
226
+ fieldPathInResponse: {
227
+ type: string;
228
+ };
229
+ };
230
+ };
231
+ };
232
+ };
233
+ };
234
+ };
235
+ };
236
+ };
237
+ supportsExternalChanges?: undefined;
238
+ configuration?: undefined;
239
+ };
240
+ } | {
241
+ type: string;
242
+ required: string[];
243
+ properties: {
244
+ type: {
245
+ const: IntegrationType;
246
+ };
247
+ configuration: {
248
+ type: string;
249
+ nullable: boolean;
250
+ required: string[];
251
+ properties: {
252
+ connectionOptions: {
253
+ type: string;
254
+ nullable: boolean;
255
+ required: string[];
256
+ properties: {
257
+ baseUrl: {
258
+ type: string;
259
+ nullable: boolean;
260
+ format: string;
261
+ };
262
+ };
263
+ };
264
+ };
265
+ };
266
+ supportsExternalChanges?: undefined;
267
+ baseUrl?: undefined;
268
+ endpoints?: undefined;
269
+ };
270
+ })[];
271
+ };
272
+ export declare const DeleteIntegrationRequestSchema: {
273
+ type: string;
274
+ required: string[];
275
+ properties: {
276
+ integrationId: {
277
+ type: string;
278
+ nullable: boolean;
279
+ };
280
+ };
281
+ };
282
+ export declare const TestDataConnectionRequestSchema: {
283
+ type: string;
284
+ required: string[];
285
+ oneOf: ({
286
+ type: string;
287
+ required: string[];
288
+ properties: {
289
+ type: {
290
+ const: IntegrationType;
291
+ };
292
+ configuration: {
293
+ type: string;
294
+ required: string[];
295
+ properties: {
296
+ connectionOptions: {
297
+ type: string;
298
+ nullable: boolean;
299
+ required: string[];
300
+ properties: {
301
+ host: {
302
+ type: string;
303
+ nullable: boolean;
304
+ };
305
+ user: {
306
+ type: string;
307
+ nullable: boolean;
308
+ };
309
+ database: {
310
+ type: string;
311
+ nullable: boolean;
312
+ };
313
+ secrets: {
314
+ type: string;
315
+ required: string[];
316
+ nullable: boolean;
317
+ properties: {
318
+ password: {
319
+ type: string;
320
+ nullable: boolean;
321
+ isSecret: {};
322
+ };
323
+ };
324
+ };
325
+ connectionLimit: {
326
+ type: string;
327
+ nullable: boolean;
328
+ };
329
+ };
330
+ };
331
+ };
332
+ };
333
+ };
334
+ } | {
335
+ type: string;
336
+ required: string[];
337
+ properties: {
338
+ type: {
339
+ const: IntegrationType;
340
+ };
341
+ configuration: {
342
+ type: string;
343
+ required: string[];
344
+ properties: {
345
+ connectionOptions: {
346
+ type: string;
347
+ nullable: boolean;
348
+ required: string[];
349
+ properties: {
350
+ connectionString: {
351
+ type: string;
352
+ nullable: boolean;
353
+ };
354
+ user: {
355
+ type: string;
356
+ nullable: boolean;
357
+ };
358
+ secrets: {
359
+ type: string;
360
+ nullable: boolean;
361
+ properties: {
362
+ password: {
363
+ type: string;
364
+ nullable: boolean;
365
+ isSecret: {};
366
+ };
367
+ };
368
+ };
369
+ maxPoolSize: {
370
+ type: string;
371
+ nullable: boolean;
372
+ };
373
+ minPoolSize: {
374
+ type: string;
375
+ nullable: boolean;
376
+ };
377
+ socketTimeoutMS: {
378
+ type: string;
379
+ nullable: boolean;
380
+ };
381
+ keepAlive: {
382
+ type: string;
383
+ nullable: boolean;
384
+ };
385
+ directConnection: {
386
+ type: string;
387
+ nullable: boolean;
388
+ };
389
+ ssl: {
390
+ type: string;
391
+ nullable: boolean;
392
+ required: string[];
393
+ properties: {
394
+ certificateFile: {
395
+ type: string;
396
+ nullable: boolean;
397
+ };
398
+ validate: {
399
+ type: string;
400
+ nullable: boolean;
401
+ };
402
+ };
403
+ };
404
+ };
405
+ };
406
+ };
407
+ };
408
+ };
409
+ } | {
410
+ type: string;
411
+ required: string[];
412
+ properties: {
413
+ type: {
414
+ const: IntegrationType;
415
+ };
416
+ configuration: {
417
+ type: string;
418
+ required: string[];
419
+ properties: {
420
+ connectionOptions: {
421
+ type: string;
422
+ nullable: boolean;
423
+ required: string[];
424
+ properties: {
425
+ baseUrl: {
426
+ type: string;
427
+ nullable: boolean;
428
+ format: string;
429
+ };
430
+ };
431
+ };
432
+ };
433
+ };
434
+ };
435
+ })[];
436
+ };
437
+ export declare const DiscoverDataConnectionSchemaRequestSchema: {
438
+ type: string;
439
+ required: string[];
440
+ oneOf: ({
441
+ type: string;
442
+ required: string[];
443
+ properties: {
444
+ integrationType: {
445
+ const: IntegrationType;
446
+ };
447
+ connectionOptions: {
448
+ type: string;
449
+ nullable: boolean;
450
+ required: string[];
451
+ properties: {
452
+ host: {
453
+ type: string;
454
+ nullable: boolean;
455
+ };
456
+ user: {
457
+ type: string;
458
+ nullable: boolean;
459
+ };
460
+ database: {
461
+ type: string;
462
+ nullable: boolean;
463
+ };
464
+ secrets: {
465
+ type: string;
466
+ required: string[];
467
+ nullable: boolean;
468
+ properties: {
469
+ password: {
470
+ type: string;
471
+ nullable: boolean;
472
+ isSecret: {};
473
+ };
474
+ };
475
+ };
476
+ connectionLimit: {
477
+ type: string;
478
+ nullable: boolean;
479
+ };
480
+ };
481
+ };
482
+ };
483
+ } | {
484
+ type: string;
485
+ required: string[];
486
+ properties: {
487
+ integrationType: {
488
+ const: IntegrationType;
489
+ };
490
+ connectionOptions: {
491
+ type: string;
492
+ nullable: boolean;
493
+ required: string[];
494
+ properties: {
495
+ connectionString: {
496
+ type: string;
497
+ nullable: boolean;
498
+ };
499
+ user: {
500
+ type: string;
501
+ nullable: boolean;
502
+ };
503
+ secrets: {
504
+ type: string;
505
+ nullable: boolean;
506
+ properties: {
507
+ password: {
508
+ type: string;
509
+ nullable: boolean;
510
+ isSecret: {};
511
+ };
512
+ };
513
+ };
514
+ maxPoolSize: {
515
+ type: string;
516
+ nullable: boolean;
517
+ };
518
+ minPoolSize: {
519
+ type: string;
520
+ nullable: boolean;
521
+ };
522
+ socketTimeoutMS: {
523
+ type: string;
524
+ nullable: boolean;
525
+ };
526
+ keepAlive: {
527
+ type: string;
528
+ nullable: boolean;
529
+ };
530
+ directConnection: {
531
+ type: string;
532
+ nullable: boolean;
533
+ };
534
+ ssl: {
535
+ type: string;
536
+ nullable: boolean;
537
+ required: string[];
538
+ properties: {
539
+ certificateFile: {
540
+ type: string;
541
+ nullable: boolean;
542
+ };
543
+ validate: {
544
+ type: string;
545
+ nullable: boolean;
546
+ };
547
+ };
548
+ };
549
+ };
550
+ };
551
+ };
552
+ } | {
553
+ type: string;
554
+ properties: {
555
+ integrationType: {
556
+ const: IntegrationType;
557
+ };
558
+ connectionOptions?: undefined;
559
+ };
560
+ required?: undefined;
561
+ })[];
562
+ };
563
+ export declare const DiscoverGraphQLConnectionSchemaRequestSchema: {
564
+ type: string;
565
+ required: string[];
566
+ properties: {
567
+ integrationType: {
568
+ const: IntegrationType;
569
+ };
570
+ connectionOptions: {
571
+ type: string;
572
+ nullable: boolean;
573
+ required: string[];
574
+ properties: {
575
+ baseUrl: {
576
+ type: string;
577
+ nullable: boolean;
578
+ format: string;
579
+ };
580
+ };
581
+ };
582
+ };
583
+ };
584
+ export declare const UpdateAllowedHostsRequestSchema: {
585
+ type: string;
586
+ required: string[];
587
+ properties: {
588
+ allowedHosts: {
589
+ type: string;
590
+ nullable: boolean;
591
+ minItems: number;
592
+ items: {
593
+ type: string;
594
+ nullable: boolean;
595
+ };
596
+ };
597
+ };
598
+ };
599
+ export declare const DiscoverOpenApiEndpointsRequestSchema: {
600
+ type: string;
601
+ required: string[];
602
+ properties: {
603
+ openApiSpecUrl: {
604
+ type: string;
605
+ format: string;
606
+ };
607
+ };
608
+ };