@squidcloud/client 1.0.32 → 1.0.33

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 (92) hide show
  1. package/dist/common/src/api-call.context.d.ts +12 -12
  2. package/dist/common/src/api.types.d.ts +23 -23
  3. package/dist/common/src/application.schemas.d.ts +883 -896
  4. package/dist/common/src/application.types.d.ts +205 -202
  5. package/dist/common/src/backend-function.schemas.d.ts +3 -3
  6. package/dist/common/src/backend-function.types.d.ts +7 -7
  7. package/dist/common/src/backend-run.types.d.ts +66 -66
  8. package/dist/common/src/bundle-api.types.d.ts +64 -64
  9. package/dist/common/src/bundle-data.types.d.ts +46 -46
  10. package/dist/common/src/communication.types.d.ts +4 -4
  11. package/dist/common/src/context.types.d.ts +31 -31
  12. package/dist/common/src/document.types.d.ts +35 -35
  13. package/dist/common/src/graphql.context.d.ts +6 -6
  14. package/dist/common/src/graphql.types.d.ts +16 -16
  15. package/dist/common/src/http-status.enum.d.ts +50 -50
  16. package/dist/common/src/index.d.ts +49 -49
  17. package/dist/common/src/integration.types.d.ts +319 -328
  18. package/dist/common/src/logger.types.d.ts +21 -21
  19. package/dist/common/src/metrics.types.d.ts +58 -58
  20. package/dist/common/src/mutation.context.d.ts +10 -10
  21. package/dist/common/src/mutation.schemas.d.ts +5 -5
  22. package/dist/common/src/mutation.types.d.ts +72 -72
  23. package/dist/common/src/named-query.context.d.ts +4 -4
  24. package/dist/common/src/named-query.schemas.d.ts +3 -3
  25. package/dist/common/src/named-query.types.d.ts +9 -9
  26. package/dist/common/src/query/index.d.ts +2 -2
  27. package/dist/common/src/query/query-context.d.ts +37 -37
  28. package/dist/common/src/query/simple-query-builder.d.ts +90 -90
  29. package/dist/common/src/query.schemas.d.ts +5 -5
  30. package/dist/common/src/query.types.d.ts +118 -118
  31. package/dist/common/src/regions.d.ts +22 -23
  32. package/dist/common/src/schema/schema.types.d.ts +54 -54
  33. package/dist/common/src/secret.schemas.d.ts +6 -6
  34. package/dist/common/src/secret.types.d.ts +40 -40
  35. package/dist/common/src/security.types.d.ts +3 -3
  36. package/dist/common/src/socket.schemas.d.ts +3 -3
  37. package/dist/common/src/socket.types.d.ts +68 -68
  38. package/dist/common/src/time-units.d.ts +5 -5
  39. package/dist/common/src/trigger.types.d.ts +15 -15
  40. package/dist/common/src/types.d.ts +15 -15
  41. package/dist/common/src/utils/array.d.ts +8 -8
  42. package/dist/common/src/utils/assert.d.ts +8 -8
  43. package/dist/common/src/utils/error.d.ts +4 -4
  44. package/dist/common/src/utils/http.d.ts +2 -0
  45. package/dist/common/src/utils/id.d.ts +2 -2
  46. package/dist/common/src/utils/lock.manager.d.ts +14 -14
  47. package/dist/common/src/utils/nullish.d.ts +1 -1
  48. package/dist/common/src/utils/object.d.ts +6 -6
  49. package/dist/common/src/utils/serialization.d.ts +6 -6
  50. package/dist/common/src/utils/transforms.d.ts +18 -18
  51. package/dist/common/src/utils/validation.d.ts +30 -30
  52. package/dist/common/src/webhook-response.d.ts +7 -7
  53. package/dist/index.js +2 -2
  54. package/dist/node_modules/json-schema-typed/draft-2020-12.d.ts +1239 -1239
  55. package/dist/package.json +1 -1
  56. package/dist/typescript-client/src/api.manager.d.ts +14 -14
  57. package/dist/typescript-client/src/backend-function.manager.d.ts +13 -13
  58. package/dist/typescript-client/src/collection-reference.d.ts +51 -51
  59. package/dist/typescript-client/src/collection-reference.factory.d.ts +16 -16
  60. package/dist/typescript-client/src/data.manager.d.ts +166 -166
  61. package/dist/typescript-client/src/destruct.manager.d.ts +12 -9
  62. package/dist/typescript-client/src/document-identity.service.d.ts +12 -12
  63. package/dist/typescript-client/src/document-reference.d.ts +90 -90
  64. package/dist/typescript-client/src/document-reference.factory.d.ts +9 -9
  65. package/dist/typescript-client/src/document-store.d.ts +11 -11
  66. package/dist/typescript-client/src/graphql-client.d.ts +12 -12
  67. package/dist/typescript-client/src/graphql-client.factory.d.ts +9 -9
  68. package/dist/typescript-client/src/index.d.ts +7 -7
  69. package/dist/typescript-client/src/mutation/mutation-sender.d.ts +11 -11
  70. package/dist/typescript-client/src/mutation/mutation.spec.d.ts +1 -1
  71. package/dist/typescript-client/src/named-query.manager.d.ts +13 -13
  72. package/dist/typescript-client/src/query/join-query-builder.factory.d.ts +71 -71
  73. package/dist/typescript-client/src/query/query-builder.factory.d.ts +53 -53
  74. package/dist/typescript-client/src/query/query-subscription.manager.d.ts +59 -59
  75. package/dist/typescript-client/src/query/query-subscription.manager.spec.d.ts +1 -1
  76. package/dist/typescript-client/src/query/query.spec.d.ts +1 -1
  77. package/dist/typescript-client/src/query/query.types.d.ts +14 -14
  78. package/dist/typescript-client/src/rpc.manager.d.ts +30 -24
  79. package/dist/typescript-client/src/socket.manager.d.ts +27 -27
  80. package/dist/typescript-client/src/squid.d.ts +173 -171
  81. package/dist/typescript-client/src/state/action.applier.d.ts +7 -7
  82. package/dist/typescript-client/src/state/actions.d.ts +29 -29
  83. package/dist/typescript-client/src/state/path_trie.d.ts +27 -27
  84. package/dist/typescript-client/src/state/state.service.d.ts +22 -22
  85. package/dist/typescript-client/src/state/state.service.spec.d.ts +1 -1
  86. package/dist/typescript-client/src/testing/fake-rpc.manager.d.ts +20 -20
  87. package/dist/typescript-client/src/testing/fake-socket.manager.d.ts +9 -9
  88. package/dist/typescript-client/src/testing/setup-tests.d.ts +1 -1
  89. package/dist/typescript-client/src/testing/squid-env-setup.d.ts +79 -79
  90. package/dist/typescript-client/src/types.d.ts +2 -2
  91. package/package.json +1 -1
  92. package/dist/common/src/utils/url.d.ts +0 -1
@@ -1,896 +1,883 @@
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
- schema: {
14
- type: string;
15
- nullable: boolean;
16
- };
17
- };
18
- oneOf: ({
19
- type: string;
20
- required: never[];
21
- properties: {
22
- type: {
23
- const: IntegrationType;
24
- };
25
- supportsExternalChanges?: undefined;
26
- configuration?: undefined;
27
- schema?: undefined;
28
- };
29
- } | {
30
- type: string;
31
- required: string[];
32
- properties: {
33
- type: {
34
- const: IntegrationType;
35
- };
36
- supportsExternalChanges: {
37
- type: string;
38
- nullable: boolean;
39
- };
40
- configuration: {
41
- type: string;
42
- nullable: boolean;
43
- required: string[];
44
- properties: {
45
- connectionOptions: {
46
- type: string;
47
- nullable: boolean;
48
- required: string[];
49
- properties: {
50
- host: {
51
- type: string;
52
- nullable: boolean;
53
- };
54
- user: {
55
- type: string;
56
- nullable: boolean;
57
- };
58
- database: {
59
- type: string;
60
- nullable: boolean;
61
- };
62
- secrets: {
63
- type: string;
64
- required: string[];
65
- nullable: boolean;
66
- properties: {
67
- password: {
68
- type: string;
69
- nullable: boolean;
70
- isSecret: {};
71
- };
72
- };
73
- };
74
- connectionLimit: {
75
- type: string;
76
- nullable: boolean;
77
- };
78
- };
79
- };
80
- discoveryOptions?: undefined;
81
- apiKey?: undefined;
82
- appKey?: undefined;
83
- datadogRegion?: undefined;
84
- newRelicRegion?: undefined;
85
- };
86
- };
87
- schema?: undefined;
88
- };
89
- } | {
90
- type: string;
91
- required: string[];
92
- properties: {
93
- type: {
94
- const: IntegrationType;
95
- };
96
- supportsExternalChanges: {
97
- type: string;
98
- nullable: boolean;
99
- };
100
- configuration: {
101
- type: string;
102
- nullable: boolean;
103
- required: string[];
104
- properties: {
105
- connectionOptions: {
106
- type: string;
107
- nullable: boolean;
108
- required: string[];
109
- properties: {
110
- connectionString: {
111
- type: string;
112
- nullable: boolean;
113
- };
114
- user: {
115
- type: string;
116
- nullable: boolean;
117
- };
118
- secrets: {
119
- type: string;
120
- nullable: boolean;
121
- properties: {
122
- password: {
123
- type: string;
124
- nullable: boolean;
125
- isSecret: {};
126
- };
127
- };
128
- };
129
- maxPoolSize: {
130
- type: string;
131
- nullable: boolean;
132
- };
133
- minPoolSize: {
134
- type: string;
135
- nullable: boolean;
136
- };
137
- socketTimeoutMS: {
138
- type: string;
139
- nullable: boolean;
140
- };
141
- keepAlive: {
142
- type: string;
143
- nullable: boolean;
144
- };
145
- directConnection: {
146
- type: string;
147
- nullable: boolean;
148
- };
149
- ssl: {
150
- type: string;
151
- nullable: boolean;
152
- required: string[];
153
- properties: {
154
- certificateFile: {
155
- type: string;
156
- nullable: boolean;
157
- };
158
- validate: {
159
- type: string;
160
- nullable: boolean;
161
- };
162
- };
163
- };
164
- };
165
- };
166
- discoveryOptions?: undefined;
167
- apiKey?: undefined;
168
- appKey?: undefined;
169
- datadogRegion?: undefined;
170
- newRelicRegion?: undefined;
171
- };
172
- };
173
- schema?: undefined;
174
- };
175
- } | {
176
- type: string;
177
- required: never[];
178
- properties: {
179
- type: {
180
- const: IntegrationType;
181
- };
182
- schema: {
183
- type: string;
184
- required: never[];
185
- properties: {
186
- baseUrl: {
187
- type: string;
188
- nullable: boolean;
189
- format: string;
190
- };
191
- endpoints: {
192
- type: string;
193
- patternProperties: {
194
- '^\\S+$': {
195
- type: string;
196
- required: string[];
197
- properties: {
198
- relativePath: {
199
- type: string;
200
- };
201
- method: {
202
- type: string;
203
- enum: string[];
204
- };
205
- requestSchema: {
206
- type: string;
207
- patternProperties: {
208
- '^\\S+$': {
209
- type: string;
210
- properties: {
211
- location: {
212
- type: string;
213
- enum: string[];
214
- };
215
- fieldNameInRequest: {
216
- type: string;
217
- };
218
- };
219
- };
220
- };
221
- };
222
- responseSchema: {
223
- type: string;
224
- patternProperties: {
225
- '^\\S+$': {
226
- type: string;
227
- required: string[];
228
- properties: {
229
- location: {
230
- type: string;
231
- enum: string[];
232
- };
233
- path: {
234
- type: string;
235
- };
236
- };
237
- };
238
- };
239
- };
240
- };
241
- };
242
- };
243
- };
244
- };
245
- };
246
- supportsExternalChanges?: undefined;
247
- configuration?: undefined;
248
- };
249
- } | {
250
- type: string;
251
- required: string[];
252
- properties: {
253
- type: {
254
- const: IntegrationType;
255
- };
256
- configuration: {
257
- type: string;
258
- nullable: boolean;
259
- required: string[];
260
- properties: {
261
- discoveryOptions: {
262
- type: string;
263
- nullable: boolean;
264
- required: string[];
265
- properties: {
266
- openApiSpecUrl: {
267
- type: string;
268
- nullable: boolean;
269
- };
270
- };
271
- };
272
- connectionOptions?: undefined;
273
- apiKey?: undefined;
274
- appKey?: undefined;
275
- datadogRegion?: undefined;
276
- newRelicRegion?: undefined;
277
- };
278
- };
279
- supportsExternalChanges?: undefined;
280
- schema?: undefined;
281
- };
282
- } | {
283
- type: string;
284
- required: string[];
285
- properties: {
286
- type: {
287
- const: IntegrationType;
288
- };
289
- configuration: {
290
- type: string;
291
- nullable: boolean;
292
- required: string[];
293
- properties: {
294
- connectionOptions: {
295
- type: string;
296
- nullable: boolean;
297
- required: string[];
298
- properties: {
299
- baseUrl: {
300
- type: string;
301
- nullable: boolean;
302
- format: string;
303
- };
304
- };
305
- };
306
- discoveryOptions?: undefined;
307
- apiKey?: undefined;
308
- appKey?: undefined;
309
- datadogRegion?: undefined;
310
- newRelicRegion?: undefined;
311
- };
312
- };
313
- supportsExternalChanges?: undefined;
314
- schema?: undefined;
315
- };
316
- } | {
317
- type: string;
318
- required: string[];
319
- properties: {
320
- type: {
321
- const: IntegrationType;
322
- };
323
- configuration: {
324
- type: string;
325
- nullable: boolean;
326
- required: string[];
327
- properties: {
328
- connectionOptions: {
329
- type: string;
330
- required: never[];
331
- properties: {
332
- account: {
333
- type: string;
334
- nullable: boolean;
335
- };
336
- username: {
337
- type: string;
338
- nullable: boolean;
339
- };
340
- database: {
341
- type: string;
342
- nullable: boolean;
343
- };
344
- schema: {
345
- type: string;
346
- nullable: boolean;
347
- };
348
- warehouse: {
349
- type: string;
350
- nullable: boolean;
351
- };
352
- role: {
353
- type: string;
354
- nullable: boolean;
355
- };
356
- secrets: {
357
- type: string;
358
- required: string[];
359
- nullable: boolean;
360
- properties: {
361
- password: {
362
- type: string;
363
- nullable: boolean;
364
- isSecret: {};
365
- };
366
- };
367
- };
368
- };
369
- };
370
- discoveryOptions?: undefined;
371
- apiKey?: undefined;
372
- appKey?: undefined;
373
- datadogRegion?: undefined;
374
- newRelicRegion?: undefined;
375
- };
376
- };
377
- supportsExternalChanges?: undefined;
378
- schema?: undefined;
379
- };
380
- } | {
381
- type: string;
382
- required: string[];
383
- properties: {
384
- type: {
385
- const: IntegrationType;
386
- };
387
- configuration: {
388
- type: string;
389
- nullable: boolean;
390
- required: string[];
391
- properties: {
392
- apiKey: {
393
- type: string;
394
- nullable: boolean;
395
- isSecret: {};
396
- };
397
- appKey: {
398
- type: string;
399
- nullable: boolean;
400
- isSecret: {};
401
- };
402
- datadogRegion: {
403
- type: string;
404
- nullable: boolean;
405
- enum: string[];
406
- };
407
- connectionOptions?: undefined;
408
- discoveryOptions?: undefined;
409
- newRelicRegion?: undefined;
410
- };
411
- };
412
- supportsExternalChanges?: undefined;
413
- schema?: undefined;
414
- };
415
- } | {
416
- type: string;
417
- required: string[];
418
- properties: {
419
- type: {
420
- const: IntegrationType;
421
- };
422
- configuration: {
423
- type: string;
424
- nullable: boolean;
425
- required: string[];
426
- properties: {
427
- apiKey: {
428
- type: string;
429
- nullable: boolean;
430
- isSecret: {};
431
- };
432
- newRelicRegion: {
433
- type: string;
434
- nullable: boolean;
435
- enum: string[];
436
- };
437
- connectionOptions?: undefined;
438
- discoveryOptions?: undefined;
439
- appKey?: undefined;
440
- datadogRegion?: undefined;
441
- };
442
- };
443
- supportsExternalChanges?: undefined;
444
- schema?: undefined;
445
- };
446
- })[];
447
- };
448
- export declare const DeleteIntegrationRequestSchema: {
449
- type: string;
450
- required: string[];
451
- properties: {
452
- integrationId: {
453
- type: string;
454
- nullable: boolean;
455
- };
456
- };
457
- };
458
- export declare const TestDataConnectionRequestSchema: {
459
- type: string;
460
- required: string[];
461
- oneOf: ({
462
- type: string;
463
- required: string[];
464
- properties: {
465
- type: {
466
- const: IntegrationType;
467
- };
468
- configuration: {
469
- type: string;
470
- required: string[];
471
- properties: {
472
- connectionOptions: {
473
- type: string;
474
- nullable: boolean;
475
- required: string[];
476
- properties: {
477
- host: {
478
- type: string;
479
- nullable: boolean;
480
- };
481
- user: {
482
- type: string;
483
- nullable: boolean;
484
- };
485
- database: {
486
- type: string;
487
- nullable: boolean;
488
- };
489
- secrets: {
490
- type: string;
491
- required: string[];
492
- nullable: boolean;
493
- properties: {
494
- password: {
495
- type: string;
496
- nullable: boolean;
497
- isSecret: {};
498
- };
499
- };
500
- };
501
- connectionLimit: {
502
- type: string;
503
- nullable: boolean;
504
- };
505
- };
506
- };
507
- };
508
- };
509
- };
510
- } | {
511
- type: string;
512
- required: string[];
513
- properties: {
514
- type: {
515
- const: IntegrationType;
516
- };
517
- configuration: {
518
- type: string;
519
- required: string[];
520
- properties: {
521
- connectionOptions: {
522
- type: string;
523
- nullable: boolean;
524
- required: string[];
525
- properties: {
526
- connectionString: {
527
- type: string;
528
- nullable: boolean;
529
- };
530
- user: {
531
- type: string;
532
- nullable: boolean;
533
- };
534
- secrets: {
535
- type: string;
536
- nullable: boolean;
537
- properties: {
538
- password: {
539
- type: string;
540
- nullable: boolean;
541
- isSecret: {};
542
- };
543
- };
544
- };
545
- maxPoolSize: {
546
- type: string;
547
- nullable: boolean;
548
- };
549
- minPoolSize: {
550
- type: string;
551
- nullable: boolean;
552
- };
553
- socketTimeoutMS: {
554
- type: string;
555
- nullable: boolean;
556
- };
557
- keepAlive: {
558
- type: string;
559
- nullable: boolean;
560
- };
561
- directConnection: {
562
- type: string;
563
- nullable: boolean;
564
- };
565
- ssl: {
566
- type: string;
567
- nullable: boolean;
568
- required: string[];
569
- properties: {
570
- certificateFile: {
571
- type: string;
572
- nullable: boolean;
573
- };
574
- validate: {
575
- type: string;
576
- nullable: boolean;
577
- };
578
- };
579
- };
580
- };
581
- };
582
- };
583
- };
584
- };
585
- } | {
586
- type: string;
587
- required: string[];
588
- properties: {
589
- type: {
590
- const: IntegrationType;
591
- };
592
- configuration: {
593
- type: string;
594
- required: string[];
595
- properties: {
596
- connectionOptions: {
597
- type: string;
598
- required: never[];
599
- properties: {
600
- account: {
601
- type: string;
602
- nullable: boolean;
603
- };
604
- username: {
605
- type: string;
606
- nullable: boolean;
607
- };
608
- database: {
609
- type: string;
610
- nullable: boolean;
611
- };
612
- schema: {
613
- type: string;
614
- nullable: boolean;
615
- };
616
- warehouse: {
617
- type: string;
618
- nullable: boolean;
619
- };
620
- role: {
621
- type: string;
622
- nullable: boolean;
623
- };
624
- secrets: {
625
- type: string;
626
- required: string[];
627
- nullable: boolean;
628
- properties: {
629
- password: {
630
- type: string;
631
- nullable: boolean;
632
- isSecret: {};
633
- };
634
- };
635
- };
636
- };
637
- };
638
- };
639
- };
640
- };
641
- } | {
642
- type: string;
643
- required: string[];
644
- properties: {
645
- type: {
646
- const: IntegrationType;
647
- };
648
- configuration: {
649
- type: string;
650
- required: string[];
651
- properties: {
652
- connectionOptions: {
653
- type: string;
654
- nullable: boolean;
655
- required: string[];
656
- properties: {
657
- baseUrl: {
658
- type: string;
659
- nullable: boolean;
660
- format: string;
661
- };
662
- };
663
- };
664
- };
665
- };
666
- };
667
- })[];
668
- };
669
- export declare const DiscoverDataConnectionSchemaRequestSchema: {
670
- type: string;
671
- required: string[];
672
- oneOf: ({
673
- type: string;
674
- required: string[];
675
- properties: {
676
- integrationType: {
677
- const: IntegrationType;
678
- };
679
- connectionOptions: {
680
- type: string;
681
- nullable: boolean;
682
- required: string[];
683
- properties: {
684
- host: {
685
- type: string;
686
- nullable: boolean;
687
- };
688
- user: {
689
- type: string;
690
- nullable: boolean;
691
- };
692
- database: {
693
- type: string;
694
- nullable: boolean;
695
- };
696
- secrets: {
697
- type: string;
698
- required: string[];
699
- nullable: boolean;
700
- properties: {
701
- password: {
702
- type: string;
703
- nullable: boolean;
704
- isSecret: {};
705
- };
706
- };
707
- };
708
- connectionLimit: {
709
- type: string;
710
- nullable: boolean;
711
- };
712
- };
713
- };
714
- };
715
- } | {
716
- type: string;
717
- required: string[];
718
- properties: {
719
- integrationType: {
720
- const: IntegrationType;
721
- };
722
- connectionOptions: {
723
- type: string;
724
- required: never[];
725
- properties: {
726
- account: {
727
- type: string;
728
- nullable: boolean;
729
- };
730
- username: {
731
- type: string;
732
- nullable: boolean;
733
- };
734
- database: {
735
- type: string;
736
- nullable: boolean;
737
- };
738
- schema: {
739
- type: string;
740
- nullable: boolean;
741
- };
742
- warehouse: {
743
- type: string;
744
- nullable: boolean;
745
- };
746
- role: {
747
- type: string;
748
- nullable: boolean;
749
- };
750
- secrets: {
751
- type: string;
752
- required: string[];
753
- nullable: boolean;
754
- properties: {
755
- password: {
756
- type: string;
757
- nullable: boolean;
758
- isSecret: {};
759
- };
760
- };
761
- };
762
- };
763
- };
764
- };
765
- } | {
766
- type: string;
767
- required: string[];
768
- properties: {
769
- integrationType: {
770
- const: IntegrationType;
771
- };
772
- connectionOptions: {
773
- type: string;
774
- nullable: boolean;
775
- required: string[];
776
- properties: {
777
- connectionString: {
778
- type: string;
779
- nullable: boolean;
780
- };
781
- user: {
782
- type: string;
783
- nullable: boolean;
784
- };
785
- secrets: {
786
- type: string;
787
- nullable: boolean;
788
- properties: {
789
- password: {
790
- type: string;
791
- nullable: boolean;
792
- isSecret: {};
793
- };
794
- };
795
- };
796
- maxPoolSize: {
797
- type: string;
798
- nullable: boolean;
799
- };
800
- minPoolSize: {
801
- type: string;
802
- nullable: boolean;
803
- };
804
- socketTimeoutMS: {
805
- type: string;
806
- nullable: boolean;
807
- };
808
- keepAlive: {
809
- type: string;
810
- nullable: boolean;
811
- };
812
- directConnection: {
813
- type: string;
814
- nullable: boolean;
815
- };
816
- ssl: {
817
- type: string;
818
- nullable: boolean;
819
- required: string[];
820
- properties: {
821
- certificateFile: {
822
- type: string;
823
- nullable: boolean;
824
- };
825
- validate: {
826
- type: string;
827
- nullable: boolean;
828
- };
829
- };
830
- };
831
- };
832
- };
833
- };
834
- } | {
835
- type: string;
836
- properties: {
837
- integrationType: {
838
- const: IntegrationType;
839
- };
840
- connectionOptions?: undefined;
841
- };
842
- required?: undefined;
843
- })[];
844
- };
845
- export declare const DiscoverGraphQLConnectionSchemaRequestSchema: {
846
- type: string;
847
- required: string[];
848
- properties: {
849
- integrationType: {
850
- const: IntegrationType;
851
- };
852
- connectionOptions: {
853
- type: string;
854
- nullable: boolean;
855
- required: string[];
856
- properties: {
857
- baseUrl: {
858
- type: string;
859
- nullable: boolean;
860
- format: string;
861
- };
862
- };
863
- };
864
- };
865
- };
866
- export declare const UpdateAllowedHostsRequestSchema: {
867
- type: string;
868
- required: string[];
869
- properties: {
870
- allowedHosts: {
871
- type: string;
872
- nullable: boolean;
873
- minItems: number;
874
- items: {
875
- type: string;
876
- nullable: boolean;
877
- };
878
- };
879
- };
880
- };
881
- export declare const DiscoverOpenApiSchemaRequestSchema: {
882
- type: string;
883
- required: string[];
884
- properties: {
885
- discoveryOptions: {
886
- type: string;
887
- required: string[];
888
- properties: {
889
- openApiSpecUrl: {
890
- type: string;
891
- format: string;
892
- };
893
- };
894
- };
895
- };
896
- };
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
+ schema: {
14
+ type: string;
15
+ nullable: boolean;
16
+ };
17
+ };
18
+ oneOf: ({
19
+ type: string;
20
+ required: never[];
21
+ properties: {
22
+ type: {
23
+ const: IntegrationType;
24
+ };
25
+ supportsExternalChanges?: undefined;
26
+ configuration?: undefined;
27
+ };
28
+ } | {
29
+ type: string;
30
+ required: string[];
31
+ properties: {
32
+ type: {
33
+ const: IntegrationType;
34
+ };
35
+ supportsExternalChanges: {
36
+ type: string;
37
+ nullable: boolean;
38
+ };
39
+ configuration: {
40
+ type: string;
41
+ nullable: boolean;
42
+ required: string[];
43
+ properties: {
44
+ connectionOptions: {
45
+ type: string;
46
+ nullable: boolean;
47
+ required: string[];
48
+ properties: {
49
+ host: {
50
+ type: string;
51
+ nullable: boolean;
52
+ };
53
+ user: {
54
+ type: string;
55
+ nullable: boolean;
56
+ };
57
+ database: {
58
+ type: string;
59
+ nullable: boolean;
60
+ };
61
+ secrets: {
62
+ type: string;
63
+ required: string[];
64
+ nullable: boolean;
65
+ properties: {
66
+ password: {
67
+ type: string;
68
+ nullable: boolean;
69
+ isSecret: {};
70
+ };
71
+ };
72
+ };
73
+ connectionLimit: {
74
+ type: string;
75
+ nullable: boolean;
76
+ };
77
+ };
78
+ };
79
+ discoveryOptions?: undefined;
80
+ apiKey?: undefined;
81
+ appKey?: undefined;
82
+ datadogRegion?: undefined;
83
+ newRelicRegion?: undefined;
84
+ };
85
+ };
86
+ };
87
+ } | {
88
+ type: string;
89
+ required: string[];
90
+ properties: {
91
+ type: {
92
+ const: IntegrationType;
93
+ };
94
+ configuration: {
95
+ type: string;
96
+ nullable: boolean;
97
+ required: string[];
98
+ properties: {
99
+ connectionOptions: {
100
+ type: string;
101
+ nullable: boolean;
102
+ required: string[];
103
+ properties: {
104
+ host: {
105
+ type: string;
106
+ nullable: boolean;
107
+ };
108
+ user: {
109
+ type: string;
110
+ nullable: boolean;
111
+ };
112
+ database: {
113
+ type: string;
114
+ nullable: boolean;
115
+ };
116
+ schema: {
117
+ type: string;
118
+ nullable: boolean;
119
+ };
120
+ sslEnabled: {
121
+ type: string;
122
+ nullable: boolean;
123
+ };
124
+ secrets: {
125
+ type: string;
126
+ required: string[];
127
+ nullable: boolean;
128
+ properties: {
129
+ password: {
130
+ type: string;
131
+ nullable: boolean;
132
+ isSecret: {};
133
+ };
134
+ sslCertificate: {
135
+ type: string;
136
+ nullable: boolean;
137
+ isSecret: {};
138
+ };
139
+ };
140
+ };
141
+ connectionLimit: {
142
+ type: string;
143
+ nullable: boolean;
144
+ };
145
+ };
146
+ };
147
+ discoveryOptions?: undefined;
148
+ apiKey?: undefined;
149
+ appKey?: undefined;
150
+ datadogRegion?: undefined;
151
+ newRelicRegion?: undefined;
152
+ };
153
+ };
154
+ supportsExternalChanges?: undefined;
155
+ };
156
+ } | {
157
+ type: string;
158
+ required: string[];
159
+ properties: {
160
+ type: {
161
+ const: IntegrationType;
162
+ };
163
+ supportsExternalChanges: {
164
+ type: string;
165
+ nullable: boolean;
166
+ };
167
+ configuration: {
168
+ type: string;
169
+ nullable: boolean;
170
+ required: string[];
171
+ properties: {
172
+ connectionOptions: {
173
+ type: string;
174
+ nullable: boolean;
175
+ required: string[];
176
+ properties: {
177
+ connectionString: {
178
+ type: string;
179
+ nullable: boolean;
180
+ };
181
+ user: {
182
+ type: string;
183
+ nullable: boolean;
184
+ };
185
+ secrets: {
186
+ type: string;
187
+ nullable: boolean;
188
+ properties: {
189
+ password: {
190
+ type: string;
191
+ nullable: boolean;
192
+ isSecret: {};
193
+ };
194
+ };
195
+ };
196
+ maxPoolSize: {
197
+ type: string;
198
+ nullable: boolean;
199
+ };
200
+ minPoolSize: {
201
+ type: string;
202
+ nullable: boolean;
203
+ };
204
+ socketTimeoutMS: {
205
+ type: string;
206
+ nullable: boolean;
207
+ };
208
+ keepAlive: {
209
+ type: string;
210
+ nullable: boolean;
211
+ };
212
+ directConnection: {
213
+ type: string;
214
+ nullable: boolean;
215
+ };
216
+ ssl: {
217
+ type: string;
218
+ nullable: boolean;
219
+ required: string[];
220
+ properties: {
221
+ certificateFile: {
222
+ type: string;
223
+ nullable: boolean;
224
+ };
225
+ validate: {
226
+ type: string;
227
+ nullable: boolean;
228
+ };
229
+ };
230
+ };
231
+ };
232
+ };
233
+ discoveryOptions?: undefined;
234
+ apiKey?: undefined;
235
+ appKey?: undefined;
236
+ datadogRegion?: undefined;
237
+ newRelicRegion?: undefined;
238
+ };
239
+ };
240
+ };
241
+ } | {
242
+ type: string;
243
+ required: never[];
244
+ properties: {
245
+ type: {
246
+ const: IntegrationType;
247
+ };
248
+ configuration: {
249
+ type: string;
250
+ nullable: boolean;
251
+ required: string[];
252
+ properties: {
253
+ discoveryOptions: {
254
+ type: string;
255
+ nullable: boolean;
256
+ required: string[];
257
+ properties: {
258
+ openApiSpecUrl: {
259
+ type: string;
260
+ nullable: boolean;
261
+ };
262
+ };
263
+ };
264
+ connectionOptions?: undefined;
265
+ apiKey?: undefined;
266
+ appKey?: undefined;
267
+ datadogRegion?: undefined;
268
+ newRelicRegion?: undefined;
269
+ };
270
+ };
271
+ supportsExternalChanges?: undefined;
272
+ };
273
+ } | {
274
+ type: string;
275
+ required: string[];
276
+ properties: {
277
+ type: {
278
+ const: IntegrationType;
279
+ };
280
+ configuration: {
281
+ type: string;
282
+ nullable: boolean;
283
+ required: string[];
284
+ properties: {
285
+ connectionOptions: {
286
+ type: string;
287
+ nullable: boolean;
288
+ required: string[];
289
+ properties: {
290
+ baseUrl: {
291
+ type: string;
292
+ nullable: boolean;
293
+ format: string;
294
+ };
295
+ };
296
+ };
297
+ discoveryOptions?: undefined;
298
+ apiKey?: undefined;
299
+ appKey?: undefined;
300
+ datadogRegion?: undefined;
301
+ newRelicRegion?: undefined;
302
+ };
303
+ };
304
+ supportsExternalChanges?: undefined;
305
+ };
306
+ } | {
307
+ type: string;
308
+ required: string[];
309
+ properties: {
310
+ type: {
311
+ const: IntegrationType;
312
+ };
313
+ configuration: {
314
+ type: string;
315
+ nullable: boolean;
316
+ required: string[];
317
+ properties: {
318
+ connectionOptions: {
319
+ type: string;
320
+ required: never[];
321
+ properties: {
322
+ account: {
323
+ type: string;
324
+ nullable: boolean;
325
+ };
326
+ username: {
327
+ type: string;
328
+ nullable: boolean;
329
+ };
330
+ database: {
331
+ type: string;
332
+ nullable: boolean;
333
+ };
334
+ schema: {
335
+ type: string;
336
+ nullable: boolean;
337
+ };
338
+ warehouse: {
339
+ type: string;
340
+ nullable: boolean;
341
+ };
342
+ role: {
343
+ type: string;
344
+ nullable: boolean;
345
+ };
346
+ secrets: {
347
+ type: string;
348
+ required: string[];
349
+ nullable: boolean;
350
+ properties: {
351
+ password: {
352
+ type: string;
353
+ nullable: boolean;
354
+ isSecret: {};
355
+ };
356
+ };
357
+ };
358
+ };
359
+ };
360
+ discoveryOptions?: undefined;
361
+ apiKey?: undefined;
362
+ appKey?: undefined;
363
+ datadogRegion?: undefined;
364
+ newRelicRegion?: undefined;
365
+ };
366
+ };
367
+ supportsExternalChanges?: undefined;
368
+ };
369
+ } | {
370
+ type: string;
371
+ required: string[];
372
+ properties: {
373
+ type: {
374
+ const: IntegrationType;
375
+ };
376
+ configuration: {
377
+ type: string;
378
+ nullable: boolean;
379
+ required: string[];
380
+ properties: {
381
+ apiKey: {
382
+ type: string;
383
+ nullable: boolean;
384
+ isSecret: {};
385
+ };
386
+ appKey: {
387
+ type: string;
388
+ nullable: boolean;
389
+ isSecret: {};
390
+ };
391
+ datadogRegion: {
392
+ type: string;
393
+ nullable: boolean;
394
+ enum: string[];
395
+ };
396
+ connectionOptions?: undefined;
397
+ discoveryOptions?: undefined;
398
+ newRelicRegion?: undefined;
399
+ };
400
+ };
401
+ supportsExternalChanges?: undefined;
402
+ };
403
+ } | {
404
+ type: string;
405
+ required: string[];
406
+ properties: {
407
+ type: {
408
+ const: IntegrationType;
409
+ };
410
+ configuration: {
411
+ type: string;
412
+ nullable: boolean;
413
+ required: string[];
414
+ properties: {
415
+ apiKey: {
416
+ type: string;
417
+ nullable: boolean;
418
+ isSecret: {};
419
+ };
420
+ newRelicRegion: {
421
+ type: string;
422
+ nullable: boolean;
423
+ enum: string[];
424
+ };
425
+ connectionOptions?: undefined;
426
+ discoveryOptions?: undefined;
427
+ appKey?: undefined;
428
+ datadogRegion?: undefined;
429
+ };
430
+ };
431
+ supportsExternalChanges?: undefined;
432
+ };
433
+ })[];
434
+ };
435
+ export declare const DeleteIntegrationRequestSchema: {
436
+ type: string;
437
+ required: string[];
438
+ properties: {
439
+ integrationId: {
440
+ type: string;
441
+ nullable: boolean;
442
+ };
443
+ };
444
+ };
445
+ export declare const TestDataConnectionRequestSchema: {
446
+ type: string;
447
+ required: string[];
448
+ oneOf: ({
449
+ type: string;
450
+ required: string[];
451
+ properties: {
452
+ type: {
453
+ const: IntegrationType;
454
+ };
455
+ configuration: {
456
+ type: string;
457
+ required: string[];
458
+ properties: {
459
+ connectionOptions: {
460
+ type: string;
461
+ nullable: boolean;
462
+ required: string[];
463
+ properties: {
464
+ host: {
465
+ type: string;
466
+ nullable: boolean;
467
+ };
468
+ user: {
469
+ type: string;
470
+ nullable: boolean;
471
+ };
472
+ database: {
473
+ type: string;
474
+ nullable: boolean;
475
+ };
476
+ secrets: {
477
+ type: string;
478
+ required: string[];
479
+ nullable: boolean;
480
+ properties: {
481
+ password: {
482
+ type: string;
483
+ nullable: boolean;
484
+ isSecret: {};
485
+ };
486
+ };
487
+ };
488
+ connectionLimit: {
489
+ type: string;
490
+ nullable: boolean;
491
+ };
492
+ };
493
+ };
494
+ };
495
+ };
496
+ };
497
+ } | {
498
+ type: string;
499
+ required: string[];
500
+ properties: {
501
+ type: {
502
+ const: IntegrationType;
503
+ };
504
+ configuration: {
505
+ type: string;
506
+ required: string[];
507
+ properties: {
508
+ connectionOptions: {
509
+ type: string;
510
+ nullable: boolean;
511
+ required: string[];
512
+ properties: {
513
+ connectionString: {
514
+ type: string;
515
+ nullable: boolean;
516
+ };
517
+ user: {
518
+ type: string;
519
+ nullable: boolean;
520
+ };
521
+ secrets: {
522
+ type: string;
523
+ nullable: boolean;
524
+ properties: {
525
+ password: {
526
+ type: string;
527
+ nullable: boolean;
528
+ isSecret: {};
529
+ };
530
+ };
531
+ };
532
+ maxPoolSize: {
533
+ type: string;
534
+ nullable: boolean;
535
+ };
536
+ minPoolSize: {
537
+ type: string;
538
+ nullable: boolean;
539
+ };
540
+ socketTimeoutMS: {
541
+ type: string;
542
+ nullable: boolean;
543
+ };
544
+ keepAlive: {
545
+ type: string;
546
+ nullable: boolean;
547
+ };
548
+ directConnection: {
549
+ type: string;
550
+ nullable: boolean;
551
+ };
552
+ ssl: {
553
+ type: string;
554
+ nullable: boolean;
555
+ required: string[];
556
+ properties: {
557
+ certificateFile: {
558
+ type: string;
559
+ nullable: boolean;
560
+ };
561
+ validate: {
562
+ type: string;
563
+ nullable: boolean;
564
+ };
565
+ };
566
+ };
567
+ };
568
+ };
569
+ };
570
+ };
571
+ };
572
+ } | {
573
+ type: string;
574
+ required: string[];
575
+ properties: {
576
+ type: {
577
+ const: IntegrationType;
578
+ };
579
+ configuration: {
580
+ type: string;
581
+ required: string[];
582
+ properties: {
583
+ connectionOptions: {
584
+ type: string;
585
+ required: never[];
586
+ properties: {
587
+ account: {
588
+ type: string;
589
+ nullable: boolean;
590
+ };
591
+ username: {
592
+ type: string;
593
+ nullable: boolean;
594
+ };
595
+ database: {
596
+ type: string;
597
+ nullable: boolean;
598
+ };
599
+ schema: {
600
+ type: string;
601
+ nullable: boolean;
602
+ };
603
+ warehouse: {
604
+ type: string;
605
+ nullable: boolean;
606
+ };
607
+ role: {
608
+ type: string;
609
+ nullable: boolean;
610
+ };
611
+ secrets: {
612
+ type: string;
613
+ required: string[];
614
+ nullable: boolean;
615
+ properties: {
616
+ password: {
617
+ type: string;
618
+ nullable: boolean;
619
+ isSecret: {};
620
+ };
621
+ };
622
+ };
623
+ };
624
+ };
625
+ };
626
+ };
627
+ };
628
+ } | {
629
+ type: string;
630
+ required: string[];
631
+ properties: {
632
+ type: {
633
+ const: IntegrationType;
634
+ };
635
+ configuration: {
636
+ type: string;
637
+ required: string[];
638
+ properties: {
639
+ connectionOptions: {
640
+ type: string;
641
+ nullable: boolean;
642
+ required: string[];
643
+ properties: {
644
+ baseUrl: {
645
+ type: string;
646
+ nullable: boolean;
647
+ format: string;
648
+ };
649
+ };
650
+ };
651
+ };
652
+ };
653
+ };
654
+ })[];
655
+ };
656
+ export declare const DiscoverDataConnectionSchemaRequestSchema: {
657
+ type: string;
658
+ required: string[];
659
+ oneOf: ({
660
+ type: string;
661
+ required: string[];
662
+ properties: {
663
+ integrationType: {
664
+ const: IntegrationType;
665
+ };
666
+ connectionOptions: {
667
+ type: string;
668
+ nullable: boolean;
669
+ required: string[];
670
+ properties: {
671
+ host: {
672
+ type: string;
673
+ nullable: boolean;
674
+ };
675
+ user: {
676
+ type: string;
677
+ nullable: boolean;
678
+ };
679
+ database: {
680
+ type: string;
681
+ nullable: boolean;
682
+ };
683
+ secrets: {
684
+ type: string;
685
+ required: string[];
686
+ nullable: boolean;
687
+ properties: {
688
+ password: {
689
+ type: string;
690
+ nullable: boolean;
691
+ isSecret: {};
692
+ };
693
+ };
694
+ };
695
+ connectionLimit: {
696
+ type: string;
697
+ nullable: boolean;
698
+ };
699
+ };
700
+ };
701
+ };
702
+ } | {
703
+ type: string;
704
+ required: string[];
705
+ properties: {
706
+ integrationType: {
707
+ const: IntegrationType;
708
+ };
709
+ connectionOptions: {
710
+ type: string;
711
+ required: never[];
712
+ properties: {
713
+ account: {
714
+ type: string;
715
+ nullable: boolean;
716
+ };
717
+ username: {
718
+ type: string;
719
+ nullable: boolean;
720
+ };
721
+ database: {
722
+ type: string;
723
+ nullable: boolean;
724
+ };
725
+ schema: {
726
+ type: string;
727
+ nullable: boolean;
728
+ };
729
+ warehouse: {
730
+ type: string;
731
+ nullable: boolean;
732
+ };
733
+ role: {
734
+ type: string;
735
+ nullable: boolean;
736
+ };
737
+ secrets: {
738
+ type: string;
739
+ required: string[];
740
+ nullable: boolean;
741
+ properties: {
742
+ password: {
743
+ type: string;
744
+ nullable: boolean;
745
+ isSecret: {};
746
+ };
747
+ };
748
+ };
749
+ };
750
+ };
751
+ };
752
+ } | {
753
+ type: string;
754
+ required: string[];
755
+ properties: {
756
+ integrationType: {
757
+ const: IntegrationType;
758
+ };
759
+ connectionOptions: {
760
+ type: string;
761
+ nullable: boolean;
762
+ required: string[];
763
+ properties: {
764
+ connectionString: {
765
+ type: string;
766
+ nullable: boolean;
767
+ };
768
+ user: {
769
+ type: string;
770
+ nullable: boolean;
771
+ };
772
+ secrets: {
773
+ type: string;
774
+ nullable: boolean;
775
+ properties: {
776
+ password: {
777
+ type: string;
778
+ nullable: boolean;
779
+ isSecret: {};
780
+ };
781
+ };
782
+ };
783
+ maxPoolSize: {
784
+ type: string;
785
+ nullable: boolean;
786
+ };
787
+ minPoolSize: {
788
+ type: string;
789
+ nullable: boolean;
790
+ };
791
+ socketTimeoutMS: {
792
+ type: string;
793
+ nullable: boolean;
794
+ };
795
+ keepAlive: {
796
+ type: string;
797
+ nullable: boolean;
798
+ };
799
+ directConnection: {
800
+ type: string;
801
+ nullable: boolean;
802
+ };
803
+ ssl: {
804
+ type: string;
805
+ nullable: boolean;
806
+ required: string[];
807
+ properties: {
808
+ certificateFile: {
809
+ type: string;
810
+ nullable: boolean;
811
+ };
812
+ validate: {
813
+ type: string;
814
+ nullable: boolean;
815
+ };
816
+ };
817
+ };
818
+ };
819
+ };
820
+ };
821
+ } | {
822
+ type: string;
823
+ properties: {
824
+ integrationType: {
825
+ const: IntegrationType;
826
+ };
827
+ connectionOptions?: undefined;
828
+ };
829
+ required?: undefined;
830
+ })[];
831
+ };
832
+ export declare const DiscoverGraphQLConnectionSchemaRequestSchema: {
833
+ type: string;
834
+ required: string[];
835
+ properties: {
836
+ integrationType: {
837
+ const: IntegrationType;
838
+ };
839
+ connectionOptions: {
840
+ type: string;
841
+ nullable: boolean;
842
+ required: string[];
843
+ properties: {
844
+ baseUrl: {
845
+ type: string;
846
+ nullable: boolean;
847
+ format: string;
848
+ };
849
+ };
850
+ };
851
+ };
852
+ };
853
+ export declare const UpdateAllowedHostsRequestSchema: {
854
+ type: string;
855
+ required: string[];
856
+ properties: {
857
+ allowedHosts: {
858
+ type: string;
859
+ nullable: boolean;
860
+ minItems: number;
861
+ items: {
862
+ type: string;
863
+ nullable: boolean;
864
+ };
865
+ };
866
+ };
867
+ };
868
+ export declare const DiscoverOpenApiSchemaRequestSchema: {
869
+ type: string;
870
+ required: string[];
871
+ properties: {
872
+ discoveryOptions: {
873
+ type: string;
874
+ required: string[];
875
+ properties: {
876
+ openApiSpecUrl: {
877
+ type: string;
878
+ format: string;
879
+ };
880
+ };
881
+ };
882
+ };
883
+ };