@explo-tech/fido-api 3.0.0-jordan-testing.2 → 3.0.0-jordan-testing.4

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 (2) hide show
  1. package/index.ts +347 -1078
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -1,809 +1,7 @@
1
1
  import { makeApi, Zodios } from "@zodios/core";
2
2
  import { z } from "zod";
3
3
 
4
- type AggregateProperty = {
5
- targetPropertyId: string | null;
6
- "@type": string;
7
- propertyId: string | null;
8
- aggregation: Aggregation;
9
- aggregationOption?: AggregationOption | undefined;
10
- };
11
- type Aggregation =
12
- | "avg"
13
- | "count"
14
- | "count-distinct"
15
- | "max"
16
- | "min"
17
- | "percentile"
18
- | "sum";
19
- type AggregationOption = {
20
- decimalValue: number;
21
- };
22
- type And = {
23
- "@type": string;
24
- values: Array<Filter>;
25
- };
26
- type Equal = {
27
- "@type": string;
28
- propertyId: string;
29
- value: PropertyValue;
30
- };
31
- type PropertyValue =
32
- | BooleanPropertyValue
33
- | DatePropertyValue
34
- | DateTimePropertyValue
35
- | DecimalPropertyValue
36
- | DoublePropertyValue
37
- | IntegerPropertyValue
38
- | StringPropertyValue;
39
- type BooleanPropertyValue = {
40
- "@type": string;
41
- value: boolean;
42
- };
43
- type DatePropertyValue = {
44
- "@type": string;
45
- value: string;
46
- };
47
- type DateTimePropertyValue = {
48
- "@type": string;
49
- value: string;
50
- };
51
- type DecimalPropertyValue = {
52
- "@type": string;
53
- value: number;
54
- };
55
- type DoublePropertyValue = {
56
- "@type": string;
57
- value: number;
58
- };
59
- type IntegerPropertyValue = {
60
- "@type": string;
61
- value: number;
62
- };
63
- type StringPropertyValue = {
64
- "@type": string;
65
- value: string;
66
- };
67
- type LateBoundEqual = {
68
- "@type": string;
69
- propertyId: string;
70
- valueVariableReference: string;
71
- };
72
- type In = {
73
- "@type": string;
74
- propertyId: string;
75
- values: Array<PropertyValue>;
76
- };
77
- type LateBoundIn = {
78
- "@type": string;
79
- propertyId: string;
80
- valueVariableReference: string;
81
- };
82
- type LessThan = {
83
- "@type": string;
84
- propertyId: string;
85
- value: PropertyValue;
86
- };
87
- type LessThanOrEqual = {
88
- "@type": string;
89
- propertyId: string;
90
- value: PropertyValue;
91
- };
92
- type GreaterThan = {
93
- "@type": string;
94
- propertyId: string;
95
- value: PropertyValue;
96
- };
97
- type GreaterThanOrEqual = {
98
- "@type": string;
99
- propertyId: string;
100
- value: PropertyValue;
101
- };
102
- type LateBoundLessThan = {
103
- "@type": string;
104
- propertyId: string;
105
- valueVariableReference: string;
106
- };
107
- type LateBoundLessThanOrEqual = {
108
- "@type": string;
109
- propertyId: string;
110
- valueVariableReference: string;
111
- };
112
- type LateBoundGreaterThan = {
113
- "@type": string;
114
- propertyId: string;
115
- valueVariableReference: string;
116
- };
117
- type LateBoundGreaterThanOrEqual = {
118
- "@type": string;
119
- propertyId: string;
120
- valueVariableReference: string;
121
- };
122
- type Null = {
123
- "@type": string;
124
- propertyId: string;
125
- };
126
- type StringContains = {
127
- "@type": string;
128
- propertyId: string;
129
- value: StringPropertyValue;
130
- caseInsensitive: boolean;
131
- };
132
- type LateBoundStringContains = {
133
- "@type": string;
134
- propertyId: string;
135
- valueVariableReference: string;
136
- caseInsensitive: boolean;
137
- };
138
- type And1 = {
139
- "@type": string;
140
- values: Array<Having>;
141
- };
142
- type Equal1 = {
143
- "@type": string;
144
- property: Property;
145
- value: PropertyValue;
146
- };
147
- type Property = AggregateProperty | SourceProperty | FormulaProperty;
148
- type SourceProperty = {
149
- targetPropertyId: string | null;
150
- "@type": string;
151
- propertyId: string;
152
- };
153
- type FormulaProperty = {
154
- targetPropertyId: string | null;
155
- "@type": string;
156
- formula: string;
157
- };
158
- type LateBoundEqual1 = {
159
- "@type": string;
160
- property: Property;
161
- valueVariableReference: string;
162
- };
163
- type In1 = {
164
- "@type": string;
165
- property: Property;
166
- values: Array<PropertyValue>;
167
- };
168
- type LateBoundIn1 = {
169
- "@type": string;
170
- property: Property;
171
- valueVariableReference: string;
172
- };
173
- type LessThan1 = {
174
- "@type": string;
175
- property: Property;
176
- value: PropertyValue;
177
- };
178
- type LessThanOrEqual1 = {
179
- "@type": string;
180
- property: Property;
181
- value: PropertyValue;
182
- };
183
- type GreaterThan1 = {
184
- "@type": string;
185
- property: Property;
186
- value: PropertyValue;
187
- };
188
- type GreaterThanOrEqual1 = {
189
- "@type": string;
190
- property: Property;
191
- value: PropertyValue;
192
- };
193
- type LateBoundLessThan1 = {
194
- "@type": string;
195
- property: Property;
196
- valueVariableReference: string;
197
- };
198
- type LateBoundLessThanOrEqual1 = {
199
- "@type": string;
200
- property: Property;
201
- valueVariableReference: string;
202
- };
203
- type LateBoundGreaterThan1 = {
204
- "@type": string;
205
- property: Property;
206
- valueVariableReference: string;
207
- };
208
- type LateBoundGreaterThanOrEqual1 = {
209
- "@type": string;
210
- property: Property;
211
- valueVariableReference: string;
212
- };
213
- type Null1 = {
214
- "@type": string;
215
- property: Property;
216
- };
217
- type StringContains1 = {
218
- "@type": string;
219
- property: Property;
220
- value: StringPropertyValue;
221
- caseInsensitive: boolean;
222
- };
223
- type LateBoundStringContains1 = {
224
- "@type": string;
225
- property: Property;
226
- valueVariableReference: string;
227
- caseInsensitive: boolean;
228
- };
229
- type BigQuery = {
230
- tunnel: Tunnel;
231
- "@type": string;
232
- authentication: BigQueryAuthentication;
233
- };
234
- type PublicTunnel = {
235
- "@type": string;
236
- };
237
- type SSHAuthentication =
238
- | VendorPrivateKeyAuthentication
239
- | TenantPrivateKeyAuthentication;
240
- type VendorPrivateKeyAuthentication = {
241
- username: string;
242
- "@type": string;
243
- };
244
- type TenantPrivateKeyAuthentication = {
245
- username: string;
246
- "@type": string;
247
- privateKey?: (string | null) | undefined;
248
- };
249
- type BigQueryAuthentication = Partial<{
250
- projectId: string | null;
251
- jsonKeyFile: string | null;
252
- }>;
253
- type BranchRequest = {
254
- branch: Branch;
255
- };
256
- type Branch = {
257
- id?: string | undefined;
258
- name: string;
259
- headId: string;
260
- };
261
- type BranchResponse = {
262
- branch: Branch;
263
- meta: BranchResponseMetadata;
264
- };
265
- type BranchResponseMetadata = {
266
- diff: Array<ResourceDiff> | null;
267
- };
268
- type ResourceDiff =
269
- | CreateResourceDiff
270
- | DeleteResourceDiff
271
- | UpdateResourceDiff;
272
- type CreateResourceDiff = {
273
- "@type": string;
274
- resource: Resource;
275
- };
276
- type ComputedView = {
277
- columnDefinitions: Array<PropertySchema>;
278
- namespaceId?: (string | null) | undefined;
279
- name: string;
280
- path: string | null;
281
- description: string | null;
282
- id?: (string | null) | undefined;
283
- versionId?: (string | null) | undefined;
284
- "@type": string;
285
- query: string;
286
- cacheable?: boolean | undefined;
287
- parameters: Array<Parameter>;
288
- cacheEvictionPolicy: EvictionPolicy;
289
- };
290
- type PropertySchema = {
291
- array?: boolean | undefined;
292
- id: string;
293
- name?: (string | null) | undefined;
294
- type: PropertyType;
295
- };
296
- type PropertyType =
297
- | "boolean"
298
- | "date"
299
- | "datetime"
300
- | "decimal"
301
- | "double"
302
- | "integer"
303
- | "long"
304
- | "string"
305
- | "unsupported";
306
- type Parameter = {
307
- name: string;
308
- description: string | null;
309
- required: boolean;
310
- };
311
- type EvictionPolicy = ScheduledEviction | TtlEviction;
312
- type ScheduledEviction = {
313
- "@type": string;
314
- evictionSchedule: string;
315
- };
316
- type TtlEviction = {
317
- "@type": string;
318
- ttl: string;
319
- };
320
- type TableView = {
321
- columnDefinitions: Array<PropertySchema>;
322
- namespaceId?: (string | null) | undefined;
323
- name: string;
324
- path: string | null;
325
- description: string | null;
326
- id?: (string | null) | undefined;
327
- versionId?: (string | null) | undefined;
328
- "@type": string;
329
- tableName: string;
330
- schemaName?: (string | null) | undefined;
331
- };
332
- type DeleteResourceDiff = {
333
- "@type": string;
334
- originalResource: Resource;
335
- };
336
- type UpdateResourceDiff = {
337
- "@type": string;
338
- originalResource: Resource;
339
- updatedResource: Resource;
340
- };
341
- type CalendarIntervalGrouping = {
342
- propertyId: string;
343
- targetPropertyId: string | null;
344
- "@type": string;
345
- calendarInterval: CalendarInterval;
346
- targetTimezone?: string | undefined;
347
- };
348
- type CalendarInterval = "year" | "month" | "week" | "day" | "hour" | "minute";
349
- type Clickhouse = {
350
- authentication: JdbcAuthentication;
351
- database: string;
352
- host: string;
353
- tunnel: Tunnel;
354
- "@type": string;
355
- port?: number | undefined;
356
- connectionType?: ClickhouseConnectionType | undefined;
357
- };
358
- type JdbcAuthentication = PasswordAuthentication;
359
- type PasswordAuthentication = {
360
- "@type": string;
361
- username: string;
362
- password?: (string | null) | undefined;
363
- };
364
- type ClickhouseConnectionType = "HTTP" | "NATIVE";
365
- type ColumnFormat =
366
- | DateTimeColumnFormat
367
- | DecimalColumnFormat
368
- | DurationColumnFormat;
369
- type DateTimeColumnFormat = {
370
- "@type": string;
371
- dateTimeFormatPattern?: DateTimeFormat | undefined;
372
- pattern?: (string | null) | undefined;
373
- locale: string | null;
374
- targetTimezone?: string | undefined;
375
- };
376
- type DateTimeFormat = {
377
- pattern: string;
378
- exportFormat?: string | undefined;
379
- };
380
- type DecimalColumnFormat = {
381
- "@type": string;
382
- decimalFormat: string | null;
383
- locale: string | null;
384
- unitOfMeasurement?: UnitOfMeasurement | undefined;
385
- zeroReplacement: string | null;
386
- multiplier: number | null;
387
- };
388
- type UnitOfMeasurement = "CURRENCY";
389
- type DurationColumnFormat = {
390
- "@type": string;
391
- durationPattern: string | null;
392
- };
393
- type CommitResponse = {
394
- commit: Commit;
395
- };
396
- type Commit = {
397
- id?: string | undefined;
398
- commitMessage: string;
399
- parentId: string | null;
400
- };
401
- type Computation = {
402
- filter: Filter;
403
- properties: Array<Property>;
404
- groupings: Array<Grouping>;
405
- sorts: Array<Sort>;
406
- having: Having;
407
- includeRollup?: boolean | undefined;
408
- };
409
- type Grouping =
410
- | CalendarIntervalGrouping
411
- | DatePartGrouping
412
- | DecimalIntervalGrouping
413
- | IntegerIntervalGrouping
414
- | ValueGrouping;
415
- type DatePartGrouping = {
416
- propertyId: string;
417
- targetPropertyId: string | null;
418
- "@type": string;
419
- datePart: DatePart;
420
- targetTimezone?: string | undefined;
421
- };
422
- type DatePart =
423
- | "day-of-week"
424
- | "day-of-month"
425
- | "month-of-year"
426
- | "hour-of-day";
427
- type DecimalIntervalGrouping = {
428
- propertyId: string;
429
- targetPropertyId: string | null;
430
- "@type": string;
431
- interval: number;
432
- };
433
- type IntegerIntervalGrouping = {
434
- propertyId: string;
435
- targetPropertyId: string | null;
436
- "@type": string;
437
- interval: number;
438
- };
439
- type ValueGrouping = {
440
- propertyId: string;
441
- targetPropertyId: string | null;
442
- "@type": string;
443
- };
444
- type Sort = {
445
- sortDirection: SortDirection;
446
- propertyId: string;
447
- };
448
- type SortDirection = "asc" | "desc";
449
- type CreateCommitRequest = {
450
- commitMessage: string;
451
- parentCommitId: UUID;
452
- changes: Array<ResourceChange>;
453
- };
454
- type UUID = string;
455
- type ResourceChange =
456
- | CreateResourceChange
457
- | UpdateResourceChange
458
- | DeleteResourceChange;
459
- type CreateResourceChange = {
460
- "@type": string;
461
- resource: Resource;
462
- };
463
- type UpdateResourceChange = {
464
- "@type": string;
465
- resource: Resource;
466
- };
467
- type DeleteResourceChange = {
468
- "@type": string;
469
- id: string;
470
- };
471
- type CreateCommitResponse = {
472
- commitId: string;
473
- changes: Array<ResourceChange>;
474
- };
475
- type DataPage = {
476
- dataRecords: Array<DataRecord>;
477
- };
478
- type DataRecord = {
479
- propertyValues: {};
480
- };
481
- type DataRequestParameters = Partial<{
482
- pagingConfiguration: PagingConfiguration;
483
- includeTotalResults: boolean;
484
- }>;
485
- type PagingConfiguration = Partial<{
486
- perPage: number;
487
- page: number;
488
- }>;
489
- type DataResponseMetadata = {
490
- schema: DataSchema;
491
- totalResults: number | null;
492
- renderedQuery: string | null;
493
- };
494
- type DataSchema = {
495
- propertySchema: Array<PropertySchema>;
496
- };
497
- type DataSource = {
498
- name: string;
499
- externalId: string;
500
- id?: string | undefined;
501
- namespaceId?: string | undefined;
502
- configuration: DataSourceConfiguration;
503
- };
504
- type DataSourceConfiguration =
505
- | Postgres
506
- | MySql
507
- | MSS
508
- | BigQuery
509
- | Redshift
510
- | Snowflake
511
- | Clickhouse;
512
- type Postgres = {
513
- authentication: JdbcAuthentication;
514
- database: string;
515
- host: string;
516
- tunnel: Tunnel;
517
- "@type": string;
518
- port?: number | undefined;
519
- };
520
- type MySql = {
521
- authentication: JdbcAuthentication;
522
- database: string;
523
- host: string;
524
- tunnel: Tunnel;
525
- "@type": string;
526
- port?: number | undefined;
527
- };
528
- type MSS = {
529
- authentication: JdbcAuthentication;
530
- database: string;
531
- host: string;
532
- tunnel: Tunnel;
533
- "@type": string;
534
- port?: number | undefined;
535
- };
536
- type Redshift = {
537
- authentication: JdbcAuthentication;
538
- database: string;
539
- host: string;
540
- tunnel: Tunnel;
541
- "@type": string;
542
- port?: number | undefined;
543
- };
544
- type Snowflake = {
545
- tunnel: Tunnel;
546
- "@type": string;
547
- user: string;
548
- account: string;
549
- schema: string | null;
550
- database: string | null;
551
- authentication: SnowflakeAuthentication;
552
- };
553
- type SnowflakeAuthentication = SnowflakePasswordAuthentication;
554
- type SnowflakePasswordAuthentication = {
555
- "@type": string;
556
- password?: (string | null) | undefined;
557
- };
558
- type DataSourceError = QueryExecutionError | QueryTimeoutError;
559
- type QueryExecutionError = {
560
- renderedQuery: string | null;
561
- requestTelemetry: RequestTelemetry;
562
- message: string | null;
563
- "@type": string;
564
- };
565
- type RequestTelemetry = {
566
- requestTime: string | null;
567
- queryTime: string | null;
568
- processingTime: string | null;
569
- cacheTelemetry?: CacheTelemetry | undefined;
570
- };
571
- type CacheTelemetry = {
572
- cacheHit: boolean;
573
- recordedAt: string | null;
574
- ttl: string | null;
575
- };
576
- type QueryTimeoutError = {
577
- renderedQuery: string | null;
578
- requestTelemetry: RequestTelemetry;
579
- message: string | null;
580
- "@type": string;
581
- };
582
- type DataSourceRequest = {
583
- dataSource: DataSource;
584
- };
585
- type DataSourceResponse = {
586
- dataSource: DataSource;
587
- };
588
- type DiffBranchResponse = {
589
- diff: Array<ResourceDiff>;
590
- };
591
- type ExportColumnOptions = {
592
- targetPropertyId: string;
593
- displayName: string | null;
594
- columnFormat: ColumnFormat;
595
- };
596
- type ExportTargetConfiguration = {
597
- fileName: string | null;
598
- exportFormat: ExportFormat;
599
- columnDisplayOptions: Array<ExportColumnOptions>;
600
- };
601
- type ExportFormat = "CSV" | "TSV" | "XLSX";
602
- type Filter =
603
- | And
604
- | Or
605
- | Not
606
- | Equal
607
- | LateBoundEqual
608
- | In
609
- | LateBoundIn
610
- | LessThan
611
- | LessThanOrEqual
612
- | GreaterThan
613
- | GreaterThanOrEqual
614
- | LateBoundLessThan
615
- | LateBoundLessThanOrEqual
616
- | LateBoundGreaterThan
617
- | LateBoundGreaterThanOrEqual
618
- | Null
619
- | StringContains
620
- | LateBoundStringContains;
621
- type Folder = {
622
- name: string;
623
- path: string | null;
624
- description: string | null;
625
- id?: (string | null) | undefined;
626
- versionId?: (string | null) | undefined;
627
- "@type": string;
628
- children: Array<Resource> | null;
629
- };
630
- type Having =
631
- | And1
632
- | Or1
633
- | Not1
634
- | Equal1
635
- | LateBoundEqual1
636
- | In1
637
- | LateBoundIn1
638
- | LessThan1
639
- | LessThanOrEqual1
640
- | GreaterThan1
641
- | GreaterThanOrEqual1
642
- | LateBoundLessThan1
643
- | LateBoundLessThanOrEqual1
644
- | LateBoundGreaterThan1
645
- | LateBoundGreaterThanOrEqual1
646
- | Null1
647
- | StringContains1
648
- | LateBoundStringContains1;
649
- type ListBranchContentResponse = {
650
- content: Resource;
651
- };
652
- type ListBranchResponse = {
653
- branches: Array<Branch>;
654
- };
655
- type ListNamespacesResponse = {
656
- namespaces: Array<NamespaceResponse>;
657
- };
658
- type NamespaceResponse = {
659
- namespace: Namespace;
660
- meta: NamespaceResponseMetadata;
661
- };
662
- type Namespace = {
663
- name: string;
664
- ignoreTableList?: Array<string> | undefined;
665
- id?: string | undefined;
666
- };
667
- type NamespaceResponseMetadata = {
668
- dataSources: Array<DataSource> | null;
669
- resources: Array<Resource> | null;
670
- views: Array<Resource> | null;
671
- };
672
- type ListVersionedViewsRequest = {
673
- requests: Array<VersionedViewRequest>;
674
- };
675
- type VersionedViewRequest = {
676
- id: UUID;
677
- versionId: UUID;
678
- };
679
- type ListViewsResponse = {
680
- views: Array<ViewResponse>;
681
- };
682
- type ViewResponse = {
683
- view: View;
684
- };
685
- type View = {
686
- name: string;
687
- path: string | null;
688
- description: string | null;
689
- id?: (string | null) | undefined;
690
- versionId?: (string | null) | undefined;
691
- columnDefinitions: Array<PropertySchema>;
692
- namespaceId?: (string | null) | undefined;
693
- };
694
- type MergeBranchRequest = {
695
- commitMessage: string;
696
- sourceBranchId: UUID;
697
- };
698
- type NamespaceRequest = {
699
- namespace: Namespace;
700
- };
701
- type Not = {
702
- "@type": string;
703
- value: Filter;
704
- };
705
- type Not1 = {
706
- "@type": string;
707
- value: Having;
708
- };
709
- type Or = {
710
- "@type": string;
711
- values: Array<Filter>;
712
- };
713
- type Or1 = {
714
- "@type": string;
715
- values: Array<Having>;
716
- };
717
- type QueryExecutionResponse = {
718
- data: DataPage;
719
- meta: DataResponseMetadata;
720
- requestTelemetry: RequestTelemetry;
721
- };
722
- type QueryExportResponse = QueryExportEmailResponse | QueryExportLinkResponse;
723
- type QueryExportEmailResponse = {
724
- "@type": string;
725
- };
726
- type QueryExportLinkResponse = {
727
- "@type": string;
728
- url: string;
729
- };
730
- type QueryPreviewRequest = {
731
- query: string;
732
- dataRequestParameters: DataRequestParameters;
733
- queryContext: {};
734
- computation: Computation;
735
- };
736
- type Resource = ComputedView | TableView | Folder;
737
- type SSHTunnel = {
738
- "@type": string;
739
- tunnel: Tunnel;
740
- host: string;
741
- port?: number | undefined;
742
- authentication: SSHAuthentication;
743
- };
744
- type SearchBranchContentResponse = {
745
- results: Array<Resource>;
746
- };
747
- type TablePreviewRequest = {
748
- tableIdentifier: string;
749
- dataRequestParameters: DataRequestParameters;
750
- };
751
- type Tenant = {
752
- id: string;
753
- keys?: Array<TenantKey> | undefined;
754
- configurationOverrides?: {} | undefined;
755
- s3Configuration: TenantS3Configuration;
756
- };
757
- type TenantKey = {
758
- id: string;
759
- createdAt: string;
760
- value: string | null;
761
- };
762
- type TenantS3Configuration = {
763
- prefix: string;
764
- bucket: string;
765
- region: string;
766
- roleArn: string;
767
- };
768
- type TenantRequest = {
769
- configurationOverrides?: {} | undefined;
770
- s3Configuration: TenantS3Configuration;
771
- };
772
- type TenantResponse = {
773
- tenant: Tenant;
774
- };
775
- type TestConnectionRequest = {
776
- configuration: DataSourceConfiguration;
777
- };
778
- type Tunnel = PublicTunnel | SSHTunnel;
779
- type ViewExportRequest = {
780
- queryContext: {};
781
- computation: Computation;
782
- exportConfiguration: ExportTargetConfiguration;
783
- emailConfiguration: EmailConfiguration;
784
- };
785
- type EmailConfiguration = {
786
- recipientEmails: Array<string>;
787
- subject: string | null;
788
- body: string | null;
789
- };
790
- type ViewRequest = {
791
- view: TableView | ComputedView;
792
- };
793
- type ViewResponse1 = {
794
- resource: Resource;
795
- };
796
- type ViewRunRequest = {
797
- dataRequestParameters: DataRequestParameters;
798
- requestExecutionParameters: RequestExecutionParameters;
799
- queryContext: {};
800
- computation: Computation;
801
- };
802
- type RequestExecutionParameters = Partial<{
803
- forceRefresh: boolean;
804
- }>;
805
-
806
- const Branch: z.ZodType<Branch> = z
4
+ const Branch = z
807
5
  .object({
808
6
  id: z
809
7
  .string()
@@ -824,7 +22,7 @@ const Branch: z.ZodType<Branch> = z
824
22
  .uuid(),
825
23
  })
826
24
  .passthrough();
827
- const ListBranchResponse: z.ZodType<ListBranchResponse> = z
25
+ const ListBranchResponse = z
828
26
  .object({ branches: z.array(Branch) })
829
27
  .passthrough();
830
28
  const ClientError = z
@@ -833,9 +31,7 @@ const ClientError = z
833
31
  message: z.string().regex(/\S/),
834
32
  })
835
33
  .passthrough();
836
- const BranchRequest: z.ZodType<BranchRequest> = z
837
- .object({ branch: Branch })
838
- .passthrough();
34
+ const BranchRequest = z.object({ branch: Branch }).passthrough();
839
35
  const PropertyType = z.enum([
840
36
  "boolean",
841
37
  "date",
@@ -847,7 +43,7 @@ const PropertyType = z.enum([
847
43
  "string",
848
44
  "unsupported",
849
45
  ]);
850
- const PropertySchema: z.ZodType<PropertySchema> = z
46
+ const PropertySchema = z
851
47
  .object({
852
48
  array: z.boolean().optional(),
853
49
  id: z.string().regex(/\S/),
@@ -855,24 +51,24 @@ const PropertySchema: z.ZodType<PropertySchema> = z
855
51
  type: PropertyType,
856
52
  })
857
53
  .passthrough();
858
- const Parameter: z.ZodType<Parameter> = z
54
+ const Parameter = z
859
55
  .object({
860
56
  name: z.string().regex(/\S/),
861
57
  description: z.string().nullable(),
862
58
  required: z.boolean(),
863
59
  })
864
60
  .passthrough();
865
- const ScheduledEviction: z.ZodType<ScheduledEviction> = z
61
+ const ScheduledEviction = z
866
62
  .object({ "@type": z.string(), evictionSchedule: z.string() })
867
63
  .passthrough();
868
- const TtlEviction: z.ZodType<TtlEviction> = z
64
+ const TtlEviction = z
869
65
  .object({ "@type": z.string(), ttl: z.string() })
870
66
  .passthrough();
871
- const EvictionPolicy: z.ZodType<EvictionPolicy> = z.discriminatedUnion(
872
- "@type",
873
- [ScheduledEviction, TtlEviction]
874
- );
875
- const ComputedView: z.ZodType<ComputedView> = z
67
+ const EvictionPolicy = z.discriminatedUnion("@type", [
68
+ ScheduledEviction,
69
+ TtlEviction,
70
+ ]);
71
+ const ComputedView = z
876
72
  .object({
877
73
  columnDefinitions: z.array(PropertySchema),
878
74
  namespaceId: z
@@ -906,7 +102,7 @@ const ComputedView: z.ZodType<ComputedView> = z
906
102
  cacheEvictionPolicy: EvictionPolicy.nullable(),
907
103
  })
908
104
  .passthrough();
909
- const TableView: z.ZodType<TableView> = z
105
+ const TableView = z
910
106
  .object({
911
107
  columnDefinitions: z.array(PropertySchema),
912
108
  namespaceId: z
@@ -938,7 +134,7 @@ const TableView: z.ZodType<TableView> = z
938
134
  schemaName: z.string().nullish(),
939
135
  })
940
136
  .passthrough();
941
- const Folder: z.ZodType<Folder> = z.lazy(() =>
137
+ const Folder = z.lazy(() =>
942
138
  z
943
139
  .object({
944
140
  name: z.string().max(200).regex(/\S/),
@@ -963,44 +159,44 @@ const Folder: z.ZodType<Folder> = z.lazy(() =>
963
159
  })
964
160
  .passthrough()
965
161
  );
966
- const Resource: z.ZodType<Resource> = z.lazy(() =>
162
+ const Resource = z.lazy(() =>
967
163
  z.discriminatedUnion("@type", [ComputedView, TableView, Folder])
968
164
  );
969
- const CreateResourceDiff: z.ZodType<CreateResourceDiff> = z
165
+ const CreateResourceDiff = z
970
166
  .object({ "@type": z.string(), resource: Resource })
971
167
  .passthrough();
972
- const DeleteResourceDiff: z.ZodType<DeleteResourceDiff> = z
168
+ const DeleteResourceDiff = z
973
169
  .object({ "@type": z.string(), originalResource: Resource })
974
170
  .passthrough();
975
- const UpdateResourceDiff: z.ZodType<UpdateResourceDiff> = z
171
+ const UpdateResourceDiff = z
976
172
  .object({
977
173
  "@type": z.string(),
978
174
  originalResource: Resource,
979
175
  updatedResource: Resource,
980
176
  })
981
177
  .passthrough();
982
- const ResourceDiff: z.ZodType<ResourceDiff> = z.discriminatedUnion("@type", [
178
+ const ResourceDiff = z.discriminatedUnion("@type", [
983
179
  CreateResourceDiff,
984
180
  DeleteResourceDiff,
985
181
  UpdateResourceDiff,
986
182
  ]);
987
- const BranchResponseMetadata: z.ZodType<BranchResponseMetadata> = z
183
+ const BranchResponseMetadata = z
988
184
  .object({ diff: z.array(ResourceDiff).nullable() })
989
185
  .passthrough();
990
- const BranchResponse: z.ZodType<BranchResponse> = z
186
+ const BranchResponse = z
991
187
  .object({ branch: Branch, meta: BranchResponseMetadata.nullable() })
992
188
  .passthrough();
993
- const DiffBranchResponse: z.ZodType<DiffBranchResponse> = z
189
+ const DiffBranchResponse = z
994
190
  .object({ diff: z.array(ResourceDiff) })
995
191
  .passthrough();
996
192
  const UUID = z.string();
997
- const CreateResourceChange: z.ZodType<CreateResourceChange> = z
193
+ const CreateResourceChange = z
998
194
  .object({ "@type": z.string(), resource: Resource })
999
195
  .passthrough();
1000
- const UpdateResourceChange: z.ZodType<UpdateResourceChange> = z
196
+ const UpdateResourceChange = z
1001
197
  .object({ "@type": z.string(), resource: Resource })
1002
198
  .passthrough();
1003
- const DeleteResourceChange: z.ZodType<DeleteResourceChange> = z
199
+ const DeleteResourceChange = z
1004
200
  .object({
1005
201
  "@type": z.string(),
1006
202
  id: z
@@ -1011,11 +207,12 @@ const DeleteResourceChange: z.ZodType<DeleteResourceChange> = z
1011
207
  .uuid(),
1012
208
  })
1013
209
  .passthrough();
1014
- const ResourceChange: z.ZodType<ResourceChange> = z.discriminatedUnion(
1015
- "@type",
1016
- [CreateResourceChange, UpdateResourceChange, DeleteResourceChange]
1017
- );
1018
- const CreateCommitRequest: z.ZodType<CreateCommitRequest> = z
210
+ const ResourceChange = z.discriminatedUnion("@type", [
211
+ CreateResourceChange,
212
+ UpdateResourceChange,
213
+ DeleteResourceChange,
214
+ ]);
215
+ const CreateCommitRequest = z
1019
216
  .object({
1020
217
  commitMessage: z.string().max(1000).regex(/\S/),
1021
218
  parentCommitId: UUID.regex(
@@ -1024,7 +221,7 @@ const CreateCommitRequest: z.ZodType<CreateCommitRequest> = z
1024
221
  changes: z.array(ResourceChange),
1025
222
  })
1026
223
  .passthrough();
1027
- const CreateCommitResponse: z.ZodType<CreateCommitResponse> = z
224
+ const CreateCommitResponse = z
1028
225
  .object({
1029
226
  commitId: z
1030
227
  .string()
@@ -1035,10 +232,8 @@ const CreateCommitResponse: z.ZodType<CreateCommitResponse> = z
1035
232
  changes: z.array(ResourceChange),
1036
233
  })
1037
234
  .passthrough();
1038
- const ListBranchContentResponse: z.ZodType<ListBranchContentResponse> = z
1039
- .object({ content: Resource })
1040
- .passthrough();
1041
- const MergeBranchRequest: z.ZodType<MergeBranchRequest> = z
235
+ const ListBranchContentResponse = z.object({ content: Resource }).passthrough();
236
+ const MergeBranchRequest = z
1042
237
  .object({
1043
238
  commitMessage: z.string(),
1044
239
  sourceBranchId: UUID.regex(
@@ -1046,35 +241,30 @@ const MergeBranchRequest: z.ZodType<MergeBranchRequest> = z
1046
241
  ).uuid(),
1047
242
  })
1048
243
  .passthrough();
1049
- const PasswordAuthentication: z.ZodType<PasswordAuthentication> = z
244
+ const PasswordAuthentication = z
1050
245
  .object({
1051
246
  "@type": z.string(),
1052
247
  username: z.string().regex(/\S/),
1053
248
  password: z.string().nullish(),
1054
249
  })
1055
250
  .passthrough();
1056
- const JdbcAuthentication: z.ZodType<JdbcAuthentication> =
1057
- PasswordAuthentication;
1058
- const PublicTunnel: z.ZodType<PublicTunnel> = z
1059
- .object({ "@type": z.string() })
251
+ const JdbcAuthentication = PasswordAuthentication;
252
+ const PublicTunnel = z.object({ "@type": z.string() }).passthrough();
253
+ const VendorPrivateKeyAuthentication = z
254
+ .object({ username: z.string().regex(/\S/), "@type": z.string() })
1060
255
  .passthrough();
1061
- const VendorPrivateKeyAuthentication: z.ZodType<VendorPrivateKeyAuthentication> =
1062
- z
1063
- .object({ username: z.string().regex(/\S/), "@type": z.string() })
1064
- .passthrough();
1065
- const TenantPrivateKeyAuthentication: z.ZodType<TenantPrivateKeyAuthentication> =
1066
- z
1067
- .object({
1068
- username: z.string().regex(/\S/),
1069
- "@type": z.string(),
1070
- privateKey: z.string().nullish(),
1071
- })
1072
- .passthrough();
1073
- const SSHAuthentication: z.ZodType<SSHAuthentication> = z.discriminatedUnion(
1074
- "@type",
1075
- [VendorPrivateKeyAuthentication, TenantPrivateKeyAuthentication]
1076
- );
1077
- const SSHTunnel: z.ZodType<SSHTunnel> = z.lazy(() =>
256
+ const TenantPrivateKeyAuthentication = z
257
+ .object({
258
+ username: z.string().regex(/\S/),
259
+ "@type": z.string(),
260
+ privateKey: z.string().nullish(),
261
+ })
262
+ .passthrough();
263
+ const SSHAuthentication = z.discriminatedUnion("@type", [
264
+ VendorPrivateKeyAuthentication,
265
+ TenantPrivateKeyAuthentication,
266
+ ]);
267
+ const SSHTunnel = z.lazy(() =>
1078
268
  z
1079
269
  .object({
1080
270
  "@type": z.string(),
@@ -1085,10 +275,10 @@ const SSHTunnel: z.ZodType<SSHTunnel> = z.lazy(() =>
1085
275
  })
1086
276
  .passthrough()
1087
277
  );
1088
- const Tunnel: z.ZodType<Tunnel> = z.lazy(() =>
278
+ const Tunnel = z.lazy(() =>
1089
279
  z.discriminatedUnion("@type", [PublicTunnel, SSHTunnel])
1090
280
  );
1091
- const Postgres: z.ZodType<Postgres> = z
281
+ const Postgres = z
1092
282
  .object({
1093
283
  authentication: JdbcAuthentication,
1094
284
  database: z.string().regex(/\S/),
@@ -1098,7 +288,7 @@ const Postgres: z.ZodType<Postgres> = z
1098
288
  port: z.number().int().optional(),
1099
289
  })
1100
290
  .passthrough();
1101
- const MySql: z.ZodType<MySql> = z
291
+ const MySql = z
1102
292
  .object({
1103
293
  authentication: JdbcAuthentication,
1104
294
  database: z.string().regex(/\S/),
@@ -1108,7 +298,7 @@ const MySql: z.ZodType<MySql> = z
1108
298
  port: z.number().int().optional(),
1109
299
  })
1110
300
  .passthrough();
1111
- const MSS: z.ZodType<MSS> = z
301
+ const MSS = z
1112
302
  .object({
1113
303
  authentication: JdbcAuthentication,
1114
304
  database: z.string().regex(/\S/),
@@ -1118,21 +308,21 @@ const MSS: z.ZodType<MSS> = z
1118
308
  port: z.number().int().optional(),
1119
309
  })
1120
310
  .passthrough();
1121
- const BigQueryAuthentication: z.ZodType<BigQueryAuthentication> = z
311
+ const BigQueryAuthentication = z
1122
312
  .object({
1123
313
  projectId: z.string().nullable(),
1124
314
  jsonKeyFile: z.string().nullable(),
1125
315
  })
1126
316
  .partial()
1127
317
  .passthrough();
1128
- const BigQuery: z.ZodType<BigQuery> = z
318
+ const BigQuery = z
1129
319
  .object({
1130
320
  tunnel: Tunnel,
1131
321
  "@type": z.string(),
1132
322
  authentication: BigQueryAuthentication,
1133
323
  })
1134
324
  .passthrough();
1135
- const Redshift: z.ZodType<Redshift> = z
325
+ const Redshift = z
1136
326
  .object({
1137
327
  authentication: JdbcAuthentication,
1138
328
  database: z.string().regex(/\S/),
@@ -1142,13 +332,11 @@ const Redshift: z.ZodType<Redshift> = z
1142
332
  port: z.number().int().optional(),
1143
333
  })
1144
334
  .passthrough();
1145
- const SnowflakePasswordAuthentication: z.ZodType<SnowflakePasswordAuthentication> =
1146
- z
1147
- .object({ "@type": z.string(), password: z.string().nullish() })
1148
- .passthrough();
1149
- const SnowflakeAuthentication: z.ZodType<SnowflakeAuthentication> =
1150
- SnowflakePasswordAuthentication;
1151
- const Snowflake: z.ZodType<Snowflake> = z
335
+ const SnowflakePasswordAuthentication = z
336
+ .object({ "@type": z.string(), password: z.string().nullish() })
337
+ .passthrough();
338
+ const SnowflakeAuthentication = SnowflakePasswordAuthentication;
339
+ const Snowflake = z
1152
340
  .object({
1153
341
  tunnel: Tunnel,
1154
342
  "@type": z.string(),
@@ -1160,7 +348,7 @@ const Snowflake: z.ZodType<Snowflake> = z
1160
348
  })
1161
349
  .passthrough();
1162
350
  const ClickhouseConnectionType = z.enum(["HTTP", "NATIVE"]);
1163
- const Clickhouse: z.ZodType<Clickhouse> = z
351
+ const Clickhouse = z
1164
352
  .object({
1165
353
  authentication: JdbcAuthentication,
1166
354
  database: z.string().regex(/\S/),
@@ -1171,20 +359,19 @@ const Clickhouse: z.ZodType<Clickhouse> = z
1171
359
  connectionType: ClickhouseConnectionType.optional(),
1172
360
  })
1173
361
  .passthrough();
1174
- const DataSourceConfiguration: z.ZodType<DataSourceConfiguration> =
1175
- z.discriminatedUnion("@type", [
1176
- Postgres,
1177
- MySql,
1178
- MSS,
1179
- BigQuery,
1180
- Redshift,
1181
- Snowflake,
1182
- Clickhouse,
1183
- ]);
1184
- const TestConnectionRequest: z.ZodType<TestConnectionRequest> = z
362
+ const DataSourceConfiguration = z.discriminatedUnion("@type", [
363
+ Postgres,
364
+ MySql,
365
+ MSS,
366
+ BigQuery,
367
+ Redshift,
368
+ Snowflake,
369
+ Clickhouse,
370
+ ]);
371
+ const TestConnectionRequest = z
1185
372
  .object({ configuration: DataSourceConfiguration })
1186
373
  .passthrough();
1187
- const Namespace: z.ZodType<Namespace> = z
374
+ const Namespace = z
1188
375
  .object({
1189
376
  name: z.string().max(200).regex(/\S/),
1190
377
  ignoreTableList: z.array(z.string()).optional(),
@@ -1197,10 +384,8 @@ const Namespace: z.ZodType<Namespace> = z
1197
384
  .optional(),
1198
385
  })
1199
386
  .passthrough();
1200
- const NamespaceRequest: z.ZodType<NamespaceRequest> = z
1201
- .object({ namespace: Namespace })
1202
- .passthrough();
1203
- const DataSource: z.ZodType<DataSource> = z
387
+ const NamespaceRequest = z.object({ namespace: Namespace }).passthrough();
388
+ const DataSource = z
1204
389
  .object({
1205
390
  name: z.string().max(200).regex(/\S/),
1206
391
  externalId: z.string().max(200).regex(/\S/),
@@ -1221,68 +406,64 @@ const DataSource: z.ZodType<DataSource> = z
1221
406
  configuration: DataSourceConfiguration,
1222
407
  })
1223
408
  .passthrough();
1224
- const NamespaceResponseMetadata: z.ZodType<NamespaceResponseMetadata> = z
409
+ const NamespaceResponseMetadata = z
1225
410
  .object({
1226
411
  dataSources: z.array(DataSource).nullable(),
1227
412
  resources: z.array(Resource).nullable(),
1228
413
  views: z.array(Resource).nullable(),
1229
414
  })
1230
415
  .passthrough();
1231
- const NamespaceResponse: z.ZodType<NamespaceResponse> = z
416
+ const NamespaceResponse = z
1232
417
  .object({ namespace: Namespace, meta: NamespaceResponseMetadata.nullable() })
1233
418
  .passthrough();
1234
- const DataSourceRequest: z.ZodType<DataSourceRequest> = z
1235
- .object({ dataSource: DataSource })
1236
- .passthrough();
1237
- const DataSourceResponse: z.ZodType<DataSourceResponse> = z
1238
- .object({ dataSource: DataSource })
1239
- .passthrough();
1240
- const PagingConfiguration: z.ZodType<PagingConfiguration> = z
419
+ const DataSourceRequest = z.object({ dataSource: DataSource }).passthrough();
420
+ const DataSourceResponse = z.object({ dataSource: DataSource }).passthrough();
421
+ const PagingConfiguration = z
1241
422
  .object({ perPage: z.number().int().gte(1), page: z.number().int().gte(0) })
1242
423
  .partial()
1243
424
  .passthrough();
1244
- const DataRequestParameters: z.ZodType<DataRequestParameters> = z
425
+ const DataRequestParameters = z
1245
426
  .object({
1246
427
  pagingConfiguration: PagingConfiguration,
1247
428
  includeTotalResults: z.boolean(),
1248
429
  })
1249
430
  .partial()
1250
431
  .passthrough();
1251
- const And: z.ZodType<And> = z.lazy(() =>
432
+ const And = z.lazy(() =>
1252
433
  z
1253
434
  .object({ "@type": z.string(), values: z.array(Filter).min(1) })
1254
435
  .passthrough()
1255
436
  );
1256
- const Or: z.ZodType<Or> = z.lazy(() =>
437
+ const Or = z.lazy(() =>
1257
438
  z
1258
439
  .object({ "@type": z.string(), values: z.array(Filter).min(1) })
1259
440
  .passthrough()
1260
441
  );
1261
- const Not: z.ZodType<Not> = z.lazy(() =>
442
+ const Not = z.lazy(() =>
1262
443
  z.object({ "@type": z.string(), value: Filter }).passthrough()
1263
444
  );
1264
- const BooleanPropertyValue: z.ZodType<BooleanPropertyValue> = z
445
+ const BooleanPropertyValue = z
1265
446
  .object({ "@type": z.string(), value: z.boolean() })
1266
447
  .passthrough();
1267
- const DatePropertyValue: z.ZodType<DatePropertyValue> = z
448
+ const DatePropertyValue = z
1268
449
  .object({ "@type": z.string(), value: z.string() })
1269
450
  .passthrough();
1270
- const DateTimePropertyValue: z.ZodType<DateTimePropertyValue> = z
451
+ const DateTimePropertyValue = z
1271
452
  .object({ "@type": z.string(), value: z.string().datetime({ offset: true }) })
1272
453
  .passthrough();
1273
- const DecimalPropertyValue: z.ZodType<DecimalPropertyValue> = z
454
+ const DecimalPropertyValue = z
1274
455
  .object({ "@type": z.string(), value: z.number() })
1275
456
  .passthrough();
1276
- const DoublePropertyValue: z.ZodType<DoublePropertyValue> = z
457
+ const DoublePropertyValue = z
1277
458
  .object({ "@type": z.string(), value: z.number() })
1278
459
  .passthrough();
1279
- const IntegerPropertyValue: z.ZodType<IntegerPropertyValue> = z
460
+ const IntegerPropertyValue = z
1280
461
  .object({ "@type": z.string(), value: z.number().int() })
1281
462
  .passthrough();
1282
- const StringPropertyValue: z.ZodType<StringPropertyValue> = z
463
+ const StringPropertyValue = z
1283
464
  .object({ "@type": z.string(), value: z.string() })
1284
465
  .passthrough();
1285
- const PropertyValue: z.ZodType<PropertyValue> = z.discriminatedUnion("@type", [
466
+ const PropertyValue = z.discriminatedUnion("@type", [
1286
467
  BooleanPropertyValue,
1287
468
  DatePropertyValue,
1288
469
  DateTimePropertyValue,
@@ -1291,94 +472,94 @@ const PropertyValue: z.ZodType<PropertyValue> = z.discriminatedUnion("@type", [
1291
472
  IntegerPropertyValue,
1292
473
  StringPropertyValue,
1293
474
  ]);
1294
- const Equal: z.ZodType<Equal> = z
475
+ const Equal = z
1295
476
  .object({
1296
477
  "@type": z.string(),
1297
478
  propertyId: z.string().regex(/\S/),
1298
479
  value: PropertyValue,
1299
480
  })
1300
481
  .passthrough();
1301
- const LateBoundEqual: z.ZodType<LateBoundEqual> = z
482
+ const LateBoundEqual = z
1302
483
  .object({
1303
484
  "@type": z.string(),
1304
485
  propertyId: z.string().regex(/\S/),
1305
486
  valueVariableReference: z.string().regex(/\S/),
1306
487
  })
1307
488
  .passthrough();
1308
- const In: z.ZodType<In> = z
489
+ const In = z
1309
490
  .object({
1310
491
  "@type": z.string(),
1311
492
  propertyId: z.string().regex(/\S/),
1312
493
  values: z.array(PropertyValue),
1313
494
  })
1314
495
  .passthrough();
1315
- const LateBoundIn: z.ZodType<LateBoundIn> = z
496
+ const LateBoundIn = z
1316
497
  .object({
1317
498
  "@type": z.string(),
1318
499
  propertyId: z.string().regex(/\S/),
1319
500
  valueVariableReference: z.string().regex(/\S/),
1320
501
  })
1321
502
  .passthrough();
1322
- const LessThan: z.ZodType<LessThan> = z
503
+ const LessThan = z
1323
504
  .object({
1324
505
  "@type": z.string(),
1325
506
  propertyId: z.string().regex(/\S/),
1326
507
  value: PropertyValue,
1327
508
  })
1328
509
  .passthrough();
1329
- const LessThanOrEqual: z.ZodType<LessThanOrEqual> = z
510
+ const LessThanOrEqual = z
1330
511
  .object({
1331
512
  "@type": z.string(),
1332
513
  propertyId: z.string().regex(/\S/),
1333
514
  value: PropertyValue,
1334
515
  })
1335
516
  .passthrough();
1336
- const GreaterThan: z.ZodType<GreaterThan> = z
517
+ const GreaterThan = z
1337
518
  .object({
1338
519
  "@type": z.string(),
1339
520
  propertyId: z.string().regex(/\S/),
1340
521
  value: PropertyValue,
1341
522
  })
1342
523
  .passthrough();
1343
- const GreaterThanOrEqual: z.ZodType<GreaterThanOrEqual> = z
524
+ const GreaterThanOrEqual = z
1344
525
  .object({
1345
526
  "@type": z.string(),
1346
527
  propertyId: z.string().regex(/\S/),
1347
528
  value: PropertyValue,
1348
529
  })
1349
530
  .passthrough();
1350
- const LateBoundLessThan: z.ZodType<LateBoundLessThan> = z
531
+ const LateBoundLessThan = z
1351
532
  .object({
1352
533
  "@type": z.string(),
1353
534
  propertyId: z.string().regex(/\S/),
1354
535
  valueVariableReference: z.string().regex(/\S/),
1355
536
  })
1356
537
  .passthrough();
1357
- const LateBoundLessThanOrEqual: z.ZodType<LateBoundLessThanOrEqual> = z
538
+ const LateBoundLessThanOrEqual = z
1358
539
  .object({
1359
540
  "@type": z.string(),
1360
541
  propertyId: z.string().regex(/\S/),
1361
542
  valueVariableReference: z.string().regex(/\S/),
1362
543
  })
1363
544
  .passthrough();
1364
- const LateBoundGreaterThan: z.ZodType<LateBoundGreaterThan> = z
545
+ const LateBoundGreaterThan = z
1365
546
  .object({
1366
547
  "@type": z.string(),
1367
548
  propertyId: z.string().regex(/\S/),
1368
549
  valueVariableReference: z.string().regex(/\S/),
1369
550
  })
1370
551
  .passthrough();
1371
- const LateBoundGreaterThanOrEqual: z.ZodType<LateBoundGreaterThanOrEqual> = z
552
+ const LateBoundGreaterThanOrEqual = z
1372
553
  .object({
1373
554
  "@type": z.string(),
1374
555
  propertyId: z.string().regex(/\S/),
1375
556
  valueVariableReference: z.string().regex(/\S/),
1376
557
  })
1377
558
  .passthrough();
1378
- const Null: z.ZodType<Null> = z
559
+ const Null = z
1379
560
  .object({ "@type": z.string(), propertyId: z.string().regex(/\S/) })
1380
561
  .passthrough();
1381
- const StringContains: z.ZodType<StringContains> = z
562
+ const StringContains = z
1382
563
  .object({
1383
564
  "@type": z.string(),
1384
565
  propertyId: z.string().regex(/\S/),
@@ -1386,7 +567,7 @@ const StringContains: z.ZodType<StringContains> = z
1386
567
  caseInsensitive: z.boolean(),
1387
568
  })
1388
569
  .passthrough();
1389
- const LateBoundStringContains: z.ZodType<LateBoundStringContains> = z
570
+ const LateBoundStringContains = z
1390
571
  .object({
1391
572
  "@type": z.string(),
1392
573
  propertyId: z.string().regex(/\S/),
@@ -1394,7 +575,7 @@ const LateBoundStringContains: z.ZodType<LateBoundStringContains> = z
1394
575
  caseInsensitive: z.boolean(),
1395
576
  })
1396
577
  .passthrough();
1397
- const Filter: z.ZodType<Filter> = z.lazy(() =>
578
+ const Filter = z.lazy(() =>
1398
579
  z.discriminatedUnion("@type", [
1399
580
  And,
1400
581
  Or,
@@ -1425,10 +606,8 @@ const Aggregation = z.enum([
1425
606
  "percentile",
1426
607
  "sum",
1427
608
  ]);
1428
- const AggregationOption: z.ZodType<AggregationOption> = z
1429
- .object({ decimalValue: z.number() })
1430
- .passthrough();
1431
- const AggregateProperty: z.ZodType<AggregateProperty> = z
609
+ const AggregationOption = z.object({ decimalValue: z.number() }).passthrough();
610
+ const AggregateProperty = z
1432
611
  .object({
1433
612
  targetPropertyId: z.string().nullable(),
1434
613
  "@type": z.string(),
@@ -1437,21 +616,21 @@ const AggregateProperty: z.ZodType<AggregateProperty> = z
1437
616
  aggregationOption: AggregationOption.nullish(),
1438
617
  })
1439
618
  .passthrough();
1440
- const SourceProperty: z.ZodType<SourceProperty> = z
619
+ const SourceProperty = z
1441
620
  .object({
1442
621
  targetPropertyId: z.string().nullable(),
1443
622
  "@type": z.string(),
1444
623
  propertyId: z.string().regex(/\S/),
1445
624
  })
1446
625
  .passthrough();
1447
- const FormulaProperty: z.ZodType<FormulaProperty> = z
626
+ const FormulaProperty = z
1448
627
  .object({
1449
628
  targetPropertyId: z.string().nullable(),
1450
629
  "@type": z.string(),
1451
630
  formula: z.string(),
1452
631
  })
1453
632
  .passthrough();
1454
- const Property: z.ZodType<Property> = z.discriminatedUnion("@type", [
633
+ const Property = z.discriminatedUnion("@type", [
1455
634
  AggregateProperty,
1456
635
  SourceProperty,
1457
636
  FormulaProperty,
@@ -1464,7 +643,7 @@ const CalendarInterval = z.enum([
1464
643
  "hour",
1465
644
  "minute",
1466
645
  ]);
1467
- const CalendarIntervalGrouping: z.ZodType<CalendarIntervalGrouping> = z
646
+ const CalendarIntervalGrouping = z
1468
647
  .object({
1469
648
  propertyId: z.string().regex(/\S/),
1470
649
  targetPropertyId: z.string().nullable(),
@@ -1479,7 +658,7 @@ const DatePart = z.enum([
1479
658
  "month-of-year",
1480
659
  "hour-of-day",
1481
660
  ]);
1482
- const DatePartGrouping: z.ZodType<DatePartGrouping> = z
661
+ const DatePartGrouping = z
1483
662
  .object({
1484
663
  propertyId: z.string().regex(/\S/),
1485
664
  targetPropertyId: z.string().nullable(),
@@ -1488,7 +667,7 @@ const DatePartGrouping: z.ZodType<DatePartGrouping> = z
1488
667
  targetTimezone: z.string().optional(),
1489
668
  })
1490
669
  .passthrough();
1491
- const DecimalIntervalGrouping: z.ZodType<DecimalIntervalGrouping> = z
670
+ const DecimalIntervalGrouping = z
1492
671
  .object({
1493
672
  propertyId: z.string().regex(/\S/),
1494
673
  targetPropertyId: z.string().nullable(),
@@ -1496,7 +675,7 @@ const DecimalIntervalGrouping: z.ZodType<DecimalIntervalGrouping> = z
1496
675
  interval: z.number().gt(0),
1497
676
  })
1498
677
  .passthrough();
1499
- const IntegerIntervalGrouping: z.ZodType<IntegerIntervalGrouping> = z
678
+ const IntegerIntervalGrouping = z
1500
679
  .object({
1501
680
  propertyId: z.string().regex(/\S/),
1502
681
  targetPropertyId: z.string().nullable(),
@@ -1504,14 +683,14 @@ const IntegerIntervalGrouping: z.ZodType<IntegerIntervalGrouping> = z
1504
683
  interval: z.number().int().gt(0),
1505
684
  })
1506
685
  .passthrough();
1507
- const ValueGrouping: z.ZodType<ValueGrouping> = z
686
+ const ValueGrouping = z
1508
687
  .object({
1509
688
  propertyId: z.string().regex(/\S/),
1510
689
  targetPropertyId: z.string().nullable(),
1511
690
  "@type": z.string(),
1512
691
  })
1513
692
  .passthrough();
1514
- const Grouping: z.ZodType<Grouping> = z.discriminatedUnion("@type", [
693
+ const Grouping = z.discriminatedUnion("@type", [
1515
694
  CalendarIntervalGrouping,
1516
695
  DatePartGrouping,
1517
696
  DecimalIntervalGrouping,
@@ -1519,90 +698,90 @@ const Grouping: z.ZodType<Grouping> = z.discriminatedUnion("@type", [
1519
698
  ValueGrouping,
1520
699
  ]);
1521
700
  const SortDirection = z.enum(["asc", "desc"]);
1522
- const Sort: z.ZodType<Sort> = z
701
+ const Sort = z
1523
702
  .object({ sortDirection: SortDirection, propertyId: z.string().regex(/\S/) })
1524
703
  .passthrough();
1525
- const And1: z.ZodType<And1> = z.lazy(() =>
704
+ const And1 = z.lazy(() =>
1526
705
  z
1527
706
  .object({ "@type": z.string(), values: z.array(Having).min(1) })
1528
707
  .passthrough()
1529
708
  );
1530
- const Or1: z.ZodType<Or1> = z.lazy(() =>
709
+ const Or1 = z.lazy(() =>
1531
710
  z
1532
711
  .object({ "@type": z.string(), values: z.array(Having).min(1) })
1533
712
  .passthrough()
1534
713
  );
1535
- const Not1: z.ZodType<Not1> = z.lazy(() =>
714
+ const Not1 = z.lazy(() =>
1536
715
  z.object({ "@type": z.string(), value: Having }).passthrough()
1537
716
  );
1538
- const Equal1: z.ZodType<Equal1> = z
717
+ const Equal1 = z
1539
718
  .object({ "@type": z.string(), property: Property, value: PropertyValue })
1540
719
  .passthrough();
1541
- const LateBoundEqual1: z.ZodType<LateBoundEqual1> = z
720
+ const LateBoundEqual1 = z
1542
721
  .object({
1543
722
  "@type": z.string(),
1544
723
  property: Property,
1545
724
  valueVariableReference: z.string().regex(/\S/),
1546
725
  })
1547
726
  .passthrough();
1548
- const In1: z.ZodType<In1> = z
727
+ const In1 = z
1549
728
  .object({
1550
729
  "@type": z.string(),
1551
730
  property: Property,
1552
731
  values: z.array(PropertyValue),
1553
732
  })
1554
733
  .passthrough();
1555
- const LateBoundIn1: z.ZodType<LateBoundIn1> = z
734
+ const LateBoundIn1 = z
1556
735
  .object({
1557
736
  "@type": z.string(),
1558
737
  property: Property,
1559
738
  valueVariableReference: z.string().regex(/\S/),
1560
739
  })
1561
740
  .passthrough();
1562
- const LessThan1: z.ZodType<LessThan1> = z
741
+ const LessThan1 = z
1563
742
  .object({ "@type": z.string(), property: Property, value: PropertyValue })
1564
743
  .passthrough();
1565
- const LessThanOrEqual1: z.ZodType<LessThanOrEqual1> = z
744
+ const LessThanOrEqual1 = z
1566
745
  .object({ "@type": z.string(), property: Property, value: PropertyValue })
1567
746
  .passthrough();
1568
- const GreaterThan1: z.ZodType<GreaterThan1> = z
747
+ const GreaterThan1 = z
1569
748
  .object({ "@type": z.string(), property: Property, value: PropertyValue })
1570
749
  .passthrough();
1571
- const GreaterThanOrEqual1: z.ZodType<GreaterThanOrEqual1> = z
750
+ const GreaterThanOrEqual1 = z
1572
751
  .object({ "@type": z.string(), property: Property, value: PropertyValue })
1573
752
  .passthrough();
1574
- const LateBoundLessThan1: z.ZodType<LateBoundLessThan1> = z
753
+ const LateBoundLessThan1 = z
1575
754
  .object({
1576
755
  "@type": z.string(),
1577
756
  property: Property,
1578
757
  valueVariableReference: z.string().regex(/\S/),
1579
758
  })
1580
759
  .passthrough();
1581
- const LateBoundLessThanOrEqual1: z.ZodType<LateBoundLessThanOrEqual1> = z
760
+ const LateBoundLessThanOrEqual1 = z
1582
761
  .object({
1583
762
  "@type": z.string(),
1584
763
  property: Property,
1585
764
  valueVariableReference: z.string().regex(/\S/),
1586
765
  })
1587
766
  .passthrough();
1588
- const LateBoundGreaterThan1: z.ZodType<LateBoundGreaterThan1> = z
767
+ const LateBoundGreaterThan1 = z
1589
768
  .object({
1590
769
  "@type": z.string(),
1591
770
  property: Property,
1592
771
  valueVariableReference: z.string().regex(/\S/),
1593
772
  })
1594
773
  .passthrough();
1595
- const LateBoundGreaterThanOrEqual1: z.ZodType<LateBoundGreaterThanOrEqual1> = z
774
+ const LateBoundGreaterThanOrEqual1 = z
1596
775
  .object({
1597
776
  "@type": z.string(),
1598
777
  property: Property,
1599
778
  valueVariableReference: z.string().regex(/\S/),
1600
779
  })
1601
780
  .passthrough();
1602
- const Null1: z.ZodType<Null1> = z
781
+ const Null1 = z
1603
782
  .object({ "@type": z.string(), property: Property })
1604
783
  .passthrough();
1605
- const StringContains1: z.ZodType<StringContains1> = z
784
+ const StringContains1 = z
1606
785
  .object({
1607
786
  "@type": z.string(),
1608
787
  property: Property,
@@ -1610,7 +789,7 @@ const StringContains1: z.ZodType<StringContains1> = z
1610
789
  caseInsensitive: z.boolean(),
1611
790
  })
1612
791
  .passthrough();
1613
- const LateBoundStringContains1: z.ZodType<LateBoundStringContains1> = z
792
+ const LateBoundStringContains1 = z
1614
793
  .object({
1615
794
  "@type": z.string(),
1616
795
  property: Property,
@@ -1618,7 +797,7 @@ const LateBoundStringContains1: z.ZodType<LateBoundStringContains1> = z
1618
797
  caseInsensitive: z.boolean(),
1619
798
  })
1620
799
  .passthrough();
1621
- const Having: z.ZodType<Having> = z.lazy(() =>
800
+ const Having = z.lazy(() =>
1622
801
  z.discriminatedUnion("@type", [
1623
802
  And1,
1624
803
  Or1,
@@ -1640,7 +819,7 @@ const Having: z.ZodType<Having> = z.lazy(() =>
1640
819
  LateBoundStringContains1,
1641
820
  ])
1642
821
  );
1643
- const Computation: z.ZodType<Computation> = z
822
+ const Computation = z
1644
823
  .object({
1645
824
  filter: Filter.nullable(),
1646
825
  properties: z.array(Property),
@@ -1650,7 +829,7 @@ const Computation: z.ZodType<Computation> = z
1650
829
  includeRollup: z.boolean().optional(),
1651
830
  })
1652
831
  .passthrough();
1653
- const QueryPreviewRequest: z.ZodType<QueryPreviewRequest> = z
832
+ const QueryPreviewRequest = z
1654
833
  .object({
1655
834
  query: z.string().regex(/\S/),
1656
835
  dataRequestParameters: DataRequestParameters,
@@ -1658,30 +837,28 @@ const QueryPreviewRequest: z.ZodType<QueryPreviewRequest> = z
1658
837
  computation: Computation.nullable(),
1659
838
  })
1660
839
  .passthrough();
1661
- const DataRecord: z.ZodType<DataRecord> = z
840
+ const DataRecord = z
1662
841
  .object({ propertyValues: z.record(z.array(PropertyValue)) })
1663
842
  .passthrough();
1664
- const DataPage: z.ZodType<DataPage> = z
1665
- .object({ dataRecords: z.array(DataRecord) })
1666
- .passthrough();
1667
- const DataSchema: z.ZodType<DataSchema> = z
843
+ const DataPage = z.object({ dataRecords: z.array(DataRecord) }).passthrough();
844
+ const DataSchema = z
1668
845
  .object({ propertySchema: z.array(PropertySchema) })
1669
846
  .passthrough();
1670
- const DataResponseMetadata: z.ZodType<DataResponseMetadata> = z
847
+ const DataResponseMetadata = z
1671
848
  .object({
1672
849
  schema: DataSchema,
1673
850
  totalResults: z.number().int().nullable(),
1674
851
  renderedQuery: z.string().nullable(),
1675
852
  })
1676
853
  .passthrough();
1677
- const CacheTelemetry: z.ZodType<CacheTelemetry> = z
854
+ const CacheTelemetry = z
1678
855
  .object({
1679
856
  cacheHit: z.boolean(),
1680
857
  recordedAt: z.string().datetime({ offset: true }).nullable(),
1681
858
  ttl: z.string().nullable(),
1682
859
  })
1683
860
  .passthrough();
1684
- const RequestTelemetry: z.ZodType<RequestTelemetry> = z
861
+ const RequestTelemetry = z
1685
862
  .object({
1686
863
  requestTime: z.string().nullable(),
1687
864
  queryTime: z.string().nullable(),
@@ -1689,14 +866,14 @@ const RequestTelemetry: z.ZodType<RequestTelemetry> = z
1689
866
  cacheTelemetry: CacheTelemetry.nullish(),
1690
867
  })
1691
868
  .passthrough();
1692
- const QueryExecutionResponse: z.ZodType<QueryExecutionResponse> = z
869
+ const QueryExecutionResponse = z
1693
870
  .object({
1694
871
  data: DataPage,
1695
872
  meta: DataResponseMetadata,
1696
873
  requestTelemetry: RequestTelemetry.nullable(),
1697
874
  })
1698
875
  .passthrough();
1699
- const QueryExecutionError: z.ZodType<QueryExecutionError> = z
876
+ const QueryExecutionError = z
1700
877
  .object({
1701
878
  renderedQuery: z.string().nullable(),
1702
879
  requestTelemetry: RequestTelemetry.nullable(),
@@ -1704,17 +881,17 @@ const QueryExecutionError: z.ZodType<QueryExecutionError> = z
1704
881
  "@type": z.string(),
1705
882
  })
1706
883
  .passthrough();
1707
- const TablePreviewRequest: z.ZodType<TablePreviewRequest> = z
884
+ const TablePreviewRequest = z
1708
885
  .object({
1709
886
  tableIdentifier: z.string().regex(/\S/),
1710
887
  dataRequestParameters: DataRequestParameters,
1711
888
  })
1712
889
  .passthrough();
1713
890
  const ExportFormat = z.enum(["CSV", "TSV", "XLSX"]);
1714
- const DateTimeFormat: z.ZodType<DateTimeFormat> = z
891
+ const DateTimeFormat = z
1715
892
  .object({ pattern: z.string(), exportFormat: z.string().optional() })
1716
893
  .passthrough();
1717
- const DateTimeColumnFormat: z.ZodType<DateTimeColumnFormat> = z
894
+ const DateTimeColumnFormat = z
1718
895
  .object({
1719
896
  "@type": z.string(),
1720
897
  dateTimeFormatPattern: DateTimeFormat.nullish(),
@@ -1724,7 +901,7 @@ const DateTimeColumnFormat: z.ZodType<DateTimeColumnFormat> = z
1724
901
  })
1725
902
  .passthrough();
1726
903
  const UnitOfMeasurement = z.literal("CURRENCY");
1727
- const DecimalColumnFormat: z.ZodType<DecimalColumnFormat> = z
904
+ const DecimalColumnFormat = z
1728
905
  .object({
1729
906
  "@type": z.string(),
1730
907
  decimalFormat: z.string().nullable(),
@@ -1734,36 +911,36 @@ const DecimalColumnFormat: z.ZodType<DecimalColumnFormat> = z
1734
911
  multiplier: z.number().nullable(),
1735
912
  })
1736
913
  .passthrough();
1737
- const DurationColumnFormat: z.ZodType<DurationColumnFormat> = z
914
+ const DurationColumnFormat = z
1738
915
  .object({ "@type": z.string(), durationPattern: z.string().nullable() })
1739
916
  .passthrough();
1740
- const ColumnFormat: z.ZodType<ColumnFormat> = z.discriminatedUnion("@type", [
917
+ const ColumnFormat = z.discriminatedUnion("@type", [
1741
918
  DateTimeColumnFormat,
1742
919
  DecimalColumnFormat,
1743
920
  DurationColumnFormat,
1744
921
  ]);
1745
- const ExportColumnOptions: z.ZodType<ExportColumnOptions> = z
922
+ const ExportColumnOptions = z
1746
923
  .object({
1747
924
  targetPropertyId: z.string(),
1748
925
  displayName: z.string().nullable(),
1749
926
  columnFormat: ColumnFormat.nullable(),
1750
927
  })
1751
928
  .passthrough();
1752
- const ExportTargetConfiguration: z.ZodType<ExportTargetConfiguration> = z
929
+ const ExportTargetConfiguration = z
1753
930
  .object({
1754
931
  fileName: z.string().nullable(),
1755
932
  exportFormat: ExportFormat,
1756
933
  columnDisplayOptions: z.array(ExportColumnOptions),
1757
934
  })
1758
935
  .passthrough();
1759
- const EmailConfiguration: z.ZodType<EmailConfiguration> = z
936
+ const EmailConfiguration = z
1760
937
  .object({
1761
938
  recipientEmails: z.array(z.string()).min(1),
1762
939
  subject: z.string().nullable(),
1763
940
  body: z.string().nullable(),
1764
941
  })
1765
942
  .passthrough();
1766
- const ViewExportRequest: z.ZodType<ViewExportRequest> = z
943
+ const ViewExportRequest = z
1767
944
  .object({
1768
945
  queryContext: z.object({}).partial().passthrough(),
1769
946
  computation: Computation.nullable(),
@@ -1771,22 +948,21 @@ const ViewExportRequest: z.ZodType<ViewExportRequest> = z
1771
948
  emailConfiguration: EmailConfiguration.nullable(),
1772
949
  })
1773
950
  .passthrough();
1774
- const QueryExportEmailResponse: z.ZodType<QueryExportEmailResponse> = z
951
+ const QueryExportEmailResponse = z
1775
952
  .object({ "@type": z.string() })
1776
953
  .passthrough();
1777
- const QueryExportLinkResponse: z.ZodType<QueryExportLinkResponse> = z
954
+ const QueryExportLinkResponse = z
1778
955
  .object({ "@type": z.string(), url: z.string().regex(/\S/) })
1779
956
  .passthrough();
1780
- const QueryExportResponse: z.ZodType<QueryExportResponse> =
1781
- z.discriminatedUnion("@type", [
1782
- QueryExportEmailResponse,
1783
- QueryExportLinkResponse,
1784
- ]);
1785
- const RequestExecutionParameters: z.ZodType<RequestExecutionParameters> = z
957
+ const QueryExportResponse = z.discriminatedUnion("@type", [
958
+ QueryExportEmailResponse,
959
+ QueryExportLinkResponse,
960
+ ]);
961
+ const RequestExecutionParameters = z
1786
962
  .object({ forceRefresh: z.boolean() })
1787
963
  .partial()
1788
964
  .passthrough();
1789
- const ViewRunRequest: z.ZodType<ViewRunRequest> = z
965
+ const ViewRunRequest = z
1790
966
  .object({
1791
967
  dataRequestParameters: DataRequestParameters,
1792
968
  requestExecutionParameters: RequestExecutionParameters.nullable(),
@@ -1794,7 +970,7 @@ const ViewRunRequest: z.ZodType<ViewRunRequest> = z
1794
970
  computation: Computation.nullable(),
1795
971
  })
1796
972
  .passthrough();
1797
- const View: z.ZodType<View> = z
973
+ const View = z
1798
974
  .object({
1799
975
  name: z.string().max(200).regex(/\S/),
1800
976
  path: z.string().nullable(),
@@ -1823,13 +999,11 @@ const View: z.ZodType<View> = z
1823
999
  .nullish(),
1824
1000
  })
1825
1001
  .passthrough();
1826
- const ViewResponse: z.ZodType<ViewResponse> = z
1827
- .object({ view: View })
1828
- .passthrough();
1829
- const ListViewsResponse: z.ZodType<ListViewsResponse> = z
1002
+ const ViewResponse = z.object({ view: View }).passthrough();
1003
+ const ListViewsResponse = z
1830
1004
  .object({ views: z.array(ViewResponse) })
1831
1005
  .passthrough();
1832
- const TenantS3Configuration: z.ZodType<TenantS3Configuration> = z
1006
+ const TenantS3Configuration = z
1833
1007
  .object({
1834
1008
  prefix: z.string(),
1835
1009
  bucket: z.string(),
@@ -1837,13 +1011,13 @@ const TenantS3Configuration: z.ZodType<TenantS3Configuration> = z
1837
1011
  roleArn: z.string(),
1838
1012
  })
1839
1013
  .passthrough();
1840
- const TenantRequest: z.ZodType<TenantRequest> = z
1014
+ const TenantRequest = z
1841
1015
  .object({
1842
1016
  configurationOverrides: z.record(z.string()).optional(),
1843
1017
  s3Configuration: TenantS3Configuration.nullable(),
1844
1018
  })
1845
1019
  .passthrough();
1846
- const TenantKey: z.ZodType<TenantKey> = z
1020
+ const TenantKey = z
1847
1021
  .object({
1848
1022
  id: z
1849
1023
  .string()
@@ -1855,7 +1029,7 @@ const TenantKey: z.ZodType<TenantKey> = z
1855
1029
  value: z.string().nullable(),
1856
1030
  })
1857
1031
  .passthrough();
1858
- const Tenant: z.ZodType<Tenant> = z
1032
+ const Tenant = z
1859
1033
  .object({
1860
1034
  id: z
1861
1035
  .string()
@@ -1868,10 +1042,8 @@ const Tenant: z.ZodType<Tenant> = z
1868
1042
  s3Configuration: TenantS3Configuration.nullable(),
1869
1043
  })
1870
1044
  .passthrough();
1871
- const TenantResponse: z.ZodType<TenantResponse> = z
1872
- .object({ tenant: Tenant })
1873
- .passthrough();
1874
- const VersionedViewRequest: z.ZodType<VersionedViewRequest> = z
1045
+ const TenantResponse = z.object({ tenant: Tenant }).passthrough();
1046
+ const VersionedViewRequest = z
1875
1047
  .object({
1876
1048
  id: UUID.regex(
1877
1049
  /[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/
@@ -1881,70 +1053,9 @@ const VersionedViewRequest: z.ZodType<VersionedViewRequest> = z
1881
1053
  ).uuid(),
1882
1054
  })
1883
1055
  .passthrough();
1884
- const ListVersionedViewsRequest: z.ZodType<ListVersionedViewsRequest> = z
1056
+ const ListVersionedViewsRequest = z
1885
1057
  .object({ requests: z.array(VersionedViewRequest) })
1886
1058
  .passthrough();
1887
- const Commit: z.ZodType<Commit> = z
1888
- .object({
1889
- id: z
1890
- .string()
1891
- .regex(
1892
- /[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/
1893
- )
1894
- .uuid()
1895
- .optional(),
1896
- commitMessage: z.string().max(200).regex(/\S/),
1897
- parentId: z
1898
- .string()
1899
- .regex(
1900
- /[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/
1901
- )
1902
- .uuid()
1903
- .nullable(),
1904
- })
1905
- .passthrough();
1906
- const CommitResponse: z.ZodType<CommitResponse> = z
1907
- .object({ commit: Commit })
1908
- .passthrough();
1909
- const QueryTimeoutError: z.ZodType<QueryTimeoutError> = z
1910
- .object({
1911
- renderedQuery: z.string().nullable(),
1912
- requestTelemetry: RequestTelemetry.nullable(),
1913
- message: z.string().nullable(),
1914
- "@type": z.string(),
1915
- })
1916
- .passthrough();
1917
- const DataSourceError: z.ZodType<DataSourceError> = z.discriminatedUnion(
1918
- "@type",
1919
- [QueryExecutionError, QueryTimeoutError]
1920
- );
1921
- const ListNamespacesResponse: z.ZodType<ListNamespacesResponse> = z
1922
- .object({ namespaces: z.array(NamespaceResponse) })
1923
- .passthrough();
1924
- const ListViewsRequest = z
1925
- .object({
1926
- viewIds: z.array(
1927
- z
1928
- .string()
1929
- .regex(
1930
- /[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/
1931
- )
1932
- .uuid()
1933
- ),
1934
- })
1935
- .passthrough();
1936
- const SearchBranchContentResponse: z.ZodType<SearchBranchContentResponse> = z
1937
- .object({ results: z.array(Resource) })
1938
- .passthrough();
1939
- const TestConnectionResponse = z
1940
- .object({ numberOfTables: z.number().int().gte(0) })
1941
- .passthrough();
1942
- const ViewRequest: z.ZodType<ViewRequest> = z
1943
- .object({ view: z.discriminatedUnion("@type", [TableView, ComputedView]) })
1944
- .passthrough();
1945
- const ViewResponse1: z.ZodType<ViewResponse1> = z
1946
- .object({ resource: Resource })
1947
- .passthrough();
1948
1059
 
1949
1060
  export const schemas = {
1950
1061
  Branch,
@@ -2106,16 +1217,174 @@ export const schemas = {
2106
1217
  TenantResponse,
2107
1218
  VersionedViewRequest,
2108
1219
  ListVersionedViewsRequest,
2109
- Commit,
2110
- CommitResponse,
2111
- QueryTimeoutError,
2112
- DataSourceError,
2113
- ListNamespacesResponse,
2114
- ListViewsRequest,
2115
- SearchBranchContentResponse,
2116
- TestConnectionResponse,
2117
- ViewRequest,
2118
- ViewResponse1,
1220
+ };
1221
+
1222
+ export const types = {
1223
+ Branch: z.infer<typeof Branch>,
1224
+ ListBranchResponse: z.infer<typeof ListBranchResponse>,
1225
+ ClientError: z.infer<typeof ClientError>,
1226
+ BranchRequest: z.infer<typeof BranchRequest>,
1227
+ PropertyType: z.infer<typeof PropertyType>,
1228
+ PropertySchema: z.infer<typeof PropertySchema>,
1229
+ Parameter: z.infer<typeof Parameter>,
1230
+ ScheduledEviction: z.infer<typeof ScheduledEviction>,
1231
+ TtlEviction: z.infer<typeof TtlEviction>,
1232
+ EvictionPolicy: z.infer<typeof EvictionPolicy>,
1233
+ ComputedView: z.infer<typeof ComputedView>,
1234
+ TableView: z.infer<typeof TableView>,
1235
+ Folder: z.infer<typeof Folder>,
1236
+ Resource: z.infer<typeof Resource>,
1237
+ CreateResourceDiff: z.infer<typeof CreateResourceDiff>,
1238
+ DeleteResourceDiff: z.infer<typeof DeleteResourceDiff>,
1239
+ UpdateResourceDiff: z.infer<typeof UpdateResourceDiff>,
1240
+ ResourceDiff: z.infer<typeof ResourceDiff>,
1241
+ BranchResponseMetadata: z.infer<typeof BranchResponseMetadata>,
1242
+ BranchResponse: z.infer<typeof BranchResponse>,
1243
+ DiffBranchResponse: z.infer<typeof DiffBranchResponse>,
1244
+ UUID: z.infer<typeof UUID>,
1245
+ CreateResourceChange: z.infer<typeof CreateResourceChange>,
1246
+ UpdateResourceChange: z.infer<typeof UpdateResourceChange>,
1247
+ DeleteResourceChange: z.infer<typeof DeleteResourceChange>,
1248
+ ResourceChange: z.infer<typeof ResourceChange>,
1249
+ CreateCommitRequest: z.infer<typeof CreateCommitRequest>,
1250
+ CreateCommitResponse: z.infer<typeof CreateCommitResponse>,
1251
+ ListBranchContentResponse: z.infer<typeof ListBranchContentResponse>,
1252
+ MergeBranchRequest: z.infer<typeof MergeBranchRequest>,
1253
+ PasswordAuthentication: z.infer<typeof PasswordAuthentication>,
1254
+ JdbcAuthentication: z.infer<typeof JdbcAuthentication>,
1255
+ PublicTunnel: z.infer<typeof PublicTunnel>,
1256
+ VendorPrivateKeyAuthentication: z.infer<
1257
+ typeof VendorPrivateKeyAuthentication
1258
+ >,
1259
+ TenantPrivateKeyAuthentication: z.infer<
1260
+ typeof TenantPrivateKeyAuthentication
1261
+ >,
1262
+ SSHAuthentication: z.infer<typeof SSHAuthentication>,
1263
+ SSHTunnel: z.infer<typeof SSHTunnel>,
1264
+ Tunnel: z.infer<typeof Tunnel>,
1265
+ Postgres: z.infer<typeof Postgres>,
1266
+ MySql: z.infer<typeof MySql>,
1267
+ MSS: z.infer<typeof MSS>,
1268
+ BigQueryAuthentication: z.infer<typeof BigQueryAuthentication>,
1269
+ BigQuery: z.infer<typeof BigQuery>,
1270
+ Redshift: z.infer<typeof Redshift>,
1271
+ SnowflakePasswordAuthentication: z.infer<
1272
+ typeof SnowflakePasswordAuthentication
1273
+ >,
1274
+ SnowflakeAuthentication: z.infer<typeof SnowflakeAuthentication>,
1275
+ Snowflake: z.infer<typeof Snowflake>,
1276
+ ClickhouseConnectionType: z.infer<typeof ClickhouseConnectionType>,
1277
+ Clickhouse: z.infer<typeof Clickhouse>,
1278
+ DataSourceConfiguration: z.infer<typeof DataSourceConfiguration>,
1279
+ TestConnectionRequest: z.infer<typeof TestConnectionRequest>,
1280
+ Namespace: z.infer<typeof Namespace>,
1281
+ NamespaceRequest: z.infer<typeof NamespaceRequest>,
1282
+ DataSource: z.infer<typeof DataSource>,
1283
+ NamespaceResponseMetadata: z.infer<typeof NamespaceResponseMetadata>,
1284
+ NamespaceResponse: z.infer<typeof NamespaceResponse>,
1285
+ DataSourceRequest: z.infer<typeof DataSourceRequest>,
1286
+ DataSourceResponse: z.infer<typeof DataSourceResponse>,
1287
+ PagingConfiguration: z.infer<typeof PagingConfiguration>,
1288
+ DataRequestParameters: z.infer<typeof DataRequestParameters>,
1289
+ And: z.infer<typeof And>,
1290
+ Or: z.infer<typeof Or>,
1291
+ Not: z.infer<typeof Not>,
1292
+ BooleanPropertyValue: z.infer<typeof BooleanPropertyValue>,
1293
+ DatePropertyValue: z.infer<typeof DatePropertyValue>,
1294
+ DateTimePropertyValue: z.infer<typeof DateTimePropertyValue>,
1295
+ DecimalPropertyValue: z.infer<typeof DecimalPropertyValue>,
1296
+ DoublePropertyValue: z.infer<typeof DoublePropertyValue>,
1297
+ IntegerPropertyValue: z.infer<typeof IntegerPropertyValue>,
1298
+ StringPropertyValue: z.infer<typeof StringPropertyValue>,
1299
+ PropertyValue: z.infer<typeof PropertyValue>,
1300
+ Equal: z.infer<typeof Equal>,
1301
+ LateBoundEqual: z.infer<typeof LateBoundEqual>,
1302
+ In: z.infer<typeof In>,
1303
+ LateBoundIn: z.infer<typeof LateBoundIn>,
1304
+ LessThan: z.infer<typeof LessThan>,
1305
+ LessThanOrEqual: z.infer<typeof LessThanOrEqual>,
1306
+ GreaterThan: z.infer<typeof GreaterThan>,
1307
+ GreaterThanOrEqual: z.infer<typeof GreaterThanOrEqual>,
1308
+ LateBoundLessThan: z.infer<typeof LateBoundLessThan>,
1309
+ LateBoundLessThanOrEqual: z.infer<typeof LateBoundLessThanOrEqual>,
1310
+ LateBoundGreaterThan: z.infer<typeof LateBoundGreaterThan>,
1311
+ LateBoundGreaterThanOrEqual: z.infer<typeof LateBoundGreaterThanOrEqual>,
1312
+ Null: z.infer<typeof Null>,
1313
+ StringContains: z.infer<typeof StringContains>,
1314
+ LateBoundStringContains: z.infer<typeof LateBoundStringContains>,
1315
+ Filter: z.infer<typeof Filter>,
1316
+ Aggregation: z.infer<typeof Aggregation>,
1317
+ AggregationOption: z.infer<typeof AggregationOption>,
1318
+ AggregateProperty: z.infer<typeof AggregateProperty>,
1319
+ SourceProperty: z.infer<typeof SourceProperty>,
1320
+ FormulaProperty: z.infer<typeof FormulaProperty>,
1321
+ Property: z.infer<typeof Property>,
1322
+ CalendarInterval: z.infer<typeof CalendarInterval>,
1323
+ CalendarIntervalGrouping: z.infer<typeof CalendarIntervalGrouping>,
1324
+ DatePart: z.infer<typeof DatePart>,
1325
+ DatePartGrouping: z.infer<typeof DatePartGrouping>,
1326
+ DecimalIntervalGrouping: z.infer<typeof DecimalIntervalGrouping>,
1327
+ IntegerIntervalGrouping: z.infer<typeof IntegerIntervalGrouping>,
1328
+ ValueGrouping: z.infer<typeof ValueGrouping>,
1329
+ Grouping: z.infer<typeof Grouping>,
1330
+ SortDirection: z.infer<typeof SortDirection>,
1331
+ Sort: z.infer<typeof Sort>,
1332
+ And1: z.infer<typeof And1>,
1333
+ Or1: z.infer<typeof Or1>,
1334
+ Not1: z.infer<typeof Not1>,
1335
+ Equal1: z.infer<typeof Equal1>,
1336
+ LateBoundEqual1: z.infer<typeof LateBoundEqual1>,
1337
+ In1: z.infer<typeof In1>,
1338
+ LateBoundIn1: z.infer<typeof LateBoundIn1>,
1339
+ LessThan1: z.infer<typeof LessThan1>,
1340
+ LessThanOrEqual1: z.infer<typeof LessThanOrEqual1>,
1341
+ GreaterThan1: z.infer<typeof GreaterThan1>,
1342
+ GreaterThanOrEqual1: z.infer<typeof GreaterThanOrEqual1>,
1343
+ LateBoundLessThan1: z.infer<typeof LateBoundLessThan1>,
1344
+ LateBoundLessThanOrEqual1: z.infer<typeof LateBoundLessThanOrEqual1>,
1345
+ LateBoundGreaterThan1: z.infer<typeof LateBoundGreaterThan1>,
1346
+ LateBoundGreaterThanOrEqual1: z.infer<typeof LateBoundGreaterThanOrEqual1>,
1347
+ Null1: z.infer<typeof Null1>,
1348
+ StringContains1: z.infer<typeof StringContains1>,
1349
+ LateBoundStringContains1: z.infer<typeof LateBoundStringContains1>,
1350
+ Having: z.infer<typeof Having>,
1351
+ Computation: z.infer<typeof Computation>,
1352
+ QueryPreviewRequest: z.infer<typeof QueryPreviewRequest>,
1353
+ DataRecord: z.infer<typeof DataRecord>,
1354
+ DataPage: z.infer<typeof DataPage>,
1355
+ DataSchema: z.infer<typeof DataSchema>,
1356
+ DataResponseMetadata: z.infer<typeof DataResponseMetadata>,
1357
+ CacheTelemetry: z.infer<typeof CacheTelemetry>,
1358
+ RequestTelemetry: z.infer<typeof RequestTelemetry>,
1359
+ QueryExecutionResponse: z.infer<typeof QueryExecutionResponse>,
1360
+ QueryExecutionError: z.infer<typeof QueryExecutionError>,
1361
+ TablePreviewRequest: z.infer<typeof TablePreviewRequest>,
1362
+ ExportFormat: z.infer<typeof ExportFormat>,
1363
+ DateTimeFormat: z.infer<typeof DateTimeFormat>,
1364
+ DateTimeColumnFormat: z.infer<typeof DateTimeColumnFormat>,
1365
+ UnitOfMeasurement: z.infer<typeof UnitOfMeasurement>,
1366
+ DecimalColumnFormat: z.infer<typeof DecimalColumnFormat>,
1367
+ DurationColumnFormat: z.infer<typeof DurationColumnFormat>,
1368
+ ColumnFormat: z.infer<typeof ColumnFormat>,
1369
+ ExportColumnOptions: z.infer<typeof ExportColumnOptions>,
1370
+ ExportTargetConfiguration: z.infer<typeof ExportTargetConfiguration>,
1371
+ EmailConfiguration: z.infer<typeof EmailConfiguration>,
1372
+ ViewExportRequest: z.infer<typeof ViewExportRequest>,
1373
+ QueryExportEmailResponse: z.infer<typeof QueryExportEmailResponse>,
1374
+ QueryExportLinkResponse: z.infer<typeof QueryExportLinkResponse>,
1375
+ QueryExportResponse: z.infer<typeof QueryExportResponse>,
1376
+ RequestExecutionParameters: z.infer<typeof RequestExecutionParameters>,
1377
+ ViewRunRequest: z.infer<typeof ViewRunRequest>,
1378
+ View: z.infer<typeof View>,
1379
+ ViewResponse: z.infer<typeof ViewResponse>,
1380
+ ListViewsResponse: z.infer<typeof ListViewsResponse>,
1381
+ TenantS3Configuration: z.infer<typeof TenantS3Configuration>,
1382
+ TenantRequest: z.infer<typeof TenantRequest>,
1383
+ TenantKey: z.infer<typeof TenantKey>,
1384
+ Tenant: z.infer<typeof Tenant>,
1385
+ TenantResponse: z.infer<typeof TenantResponse>,
1386
+ VersionedViewRequest: z.infer<typeof VersionedViewRequest>,
1387
+ ListVersionedViewsRequest: z.infer<typeof ListVersionedViewsRequest>,
2119
1388
  };
2120
1389
 
2121
1390
  const Branch_ResourceEndpoints = makeApi([