@explo-tech/fido-api 3.0.0-jordan-testing.3 → 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 +327 -431
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { makeApi, Zodios } from "@zodios/core";
2
2
  import { z } from "zod";
3
3
 
4
- export const Branch = z
4
+ const Branch = z
5
5
  .object({
6
6
  id: z
7
7
  .string()
@@ -22,21 +22,17 @@ export const Branch = z
22
22
  .uuid(),
23
23
  })
24
24
  .passthrough();
25
- export type Branch = z.infer<typeof Branch>;
26
- export const ListBranchResponse = z
25
+ const ListBranchResponse = z
27
26
  .object({ branches: z.array(Branch) })
28
27
  .passthrough();
29
- export type ListBranchResponse = z.infer<typeof ListBranchResponse>;
30
- export const ClientError = z
28
+ const ClientError = z
31
29
  .object({
32
30
  status: z.number().int().gte(100).lte(599),
33
31
  message: z.string().regex(/\S/),
34
32
  })
35
33
  .passthrough();
36
- export type ClientError = z.infer<typeof ClientError>;
37
- export const BranchRequest = z.object({ branch: Branch }).passthrough();
38
- export type BranchRequest = z.infer<typeof BranchRequest>;
39
- export const PropertyType = z.enum([
34
+ const BranchRequest = z.object({ branch: Branch }).passthrough();
35
+ const PropertyType = z.enum([
40
36
  "boolean",
41
37
  "date",
42
38
  "datetime",
@@ -47,8 +43,7 @@ export const PropertyType = z.enum([
47
43
  "string",
48
44
  "unsupported",
49
45
  ]);
50
- export type PropertyType = z.infer<typeof PropertyType>;
51
- export const PropertySchema = z
46
+ const PropertySchema = z
52
47
  .object({
53
48
  array: z.boolean().optional(),
54
49
  id: z.string().regex(/\S/),
@@ -56,29 +51,24 @@ export const PropertySchema = z
56
51
  type: PropertyType,
57
52
  })
58
53
  .passthrough();
59
- export type PropertySchema = z.infer<typeof PropertySchema>;
60
- export const Parameter = z
54
+ const Parameter = z
61
55
  .object({
62
56
  name: z.string().regex(/\S/),
63
57
  description: z.string().nullable(),
64
58
  required: z.boolean(),
65
59
  })
66
60
  .passthrough();
67
- export type Parameter = z.infer<typeof Parameter>;
68
- export const ScheduledEviction = z
61
+ const ScheduledEviction = z
69
62
  .object({ "@type": z.string(), evictionSchedule: z.string() })
70
63
  .passthrough();
71
- export type ScheduledEviction = z.infer<typeof ScheduledEviction>;
72
- export const TtlEviction = z
64
+ const TtlEviction = z
73
65
  .object({ "@type": z.string(), ttl: z.string() })
74
66
  .passthrough();
75
- export type TtlEviction = z.infer<typeof TtlEviction>;
76
- export const EvictionPolicy = z.discriminatedUnion("@type", [
67
+ const EvictionPolicy = z.discriminatedUnion("@type", [
77
68
  ScheduledEviction,
78
69
  TtlEviction,
79
70
  ]);
80
- export type EvictionPolicy = z.infer<typeof EvictionPolicy>;
81
- export const ComputedView = z
71
+ const ComputedView = z
82
72
  .object({
83
73
  columnDefinitions: z.array(PropertySchema),
84
74
  namespaceId: z
@@ -112,8 +102,7 @@ export const ComputedView = z
112
102
  cacheEvictionPolicy: EvictionPolicy.nullable(),
113
103
  })
114
104
  .passthrough();
115
- export type ComputedView = z.infer<typeof ComputedView>;
116
- export const TableView = z
105
+ const TableView = z
117
106
  .object({
118
107
  columnDefinitions: z.array(PropertySchema),
119
108
  namespaceId: z
@@ -145,8 +134,7 @@ export const TableView = z
145
134
  schemaName: z.string().nullish(),
146
135
  })
147
136
  .passthrough();
148
- export type TableView = z.infer<typeof TableView>;
149
- export const Folder = z.lazy(() =>
137
+ const Folder = z.lazy(() =>
150
138
  z
151
139
  .object({
152
140
  name: z.string().max(200).regex(/\S/),
@@ -171,56 +159,44 @@ export const Folder = z.lazy(() =>
171
159
  })
172
160
  .passthrough()
173
161
  );
174
- export type Folder = z.infer<typeof Folder>;
175
- export const Resource = z.lazy(() =>
162
+ const Resource = z.lazy(() =>
176
163
  z.discriminatedUnion("@type", [ComputedView, TableView, Folder])
177
164
  );
178
- export type Resource = z.infer<typeof Resource>;
179
- export const CreateResourceDiff = z
165
+ const CreateResourceDiff = z
180
166
  .object({ "@type": z.string(), resource: Resource })
181
167
  .passthrough();
182
- export type CreateResourceDiff = z.infer<typeof CreateResourceDiff>;
183
- export const DeleteResourceDiff = z
168
+ const DeleteResourceDiff = z
184
169
  .object({ "@type": z.string(), originalResource: Resource })
185
170
  .passthrough();
186
- export type DeleteResourceDiff = z.infer<typeof DeleteResourceDiff>;
187
- export const UpdateResourceDiff = z
171
+ const UpdateResourceDiff = z
188
172
  .object({
189
173
  "@type": z.string(),
190
174
  originalResource: Resource,
191
175
  updatedResource: Resource,
192
176
  })
193
177
  .passthrough();
194
- export type UpdateResourceDiff = z.infer<typeof UpdateResourceDiff>;
195
- export const ResourceDiff = z.discriminatedUnion("@type", [
178
+ const ResourceDiff = z.discriminatedUnion("@type", [
196
179
  CreateResourceDiff,
197
180
  DeleteResourceDiff,
198
181
  UpdateResourceDiff,
199
182
  ]);
200
- export type ResourceDiff = z.infer<typeof ResourceDiff>;
201
- export const BranchResponseMetadata = z
183
+ const BranchResponseMetadata = z
202
184
  .object({ diff: z.array(ResourceDiff).nullable() })
203
185
  .passthrough();
204
- export type BranchResponseMetadata = z.infer<typeof BranchResponseMetadata>;
205
- export const BranchResponse = z
186
+ const BranchResponse = z
206
187
  .object({ branch: Branch, meta: BranchResponseMetadata.nullable() })
207
188
  .passthrough();
208
- export type BranchResponse = z.infer<typeof BranchResponse>;
209
- export const DiffBranchResponse = z
189
+ const DiffBranchResponse = z
210
190
  .object({ diff: z.array(ResourceDiff) })
211
191
  .passthrough();
212
- export type DiffBranchResponse = z.infer<typeof DiffBranchResponse>;
213
- export const UUID = z.string();
214
- export type UUID = z.infer<typeof UUID>;
215
- export const CreateResourceChange = z
192
+ const UUID = z.string();
193
+ const CreateResourceChange = z
216
194
  .object({ "@type": z.string(), resource: Resource })
217
195
  .passthrough();
218
- export type CreateResourceChange = z.infer<typeof CreateResourceChange>;
219
- export const UpdateResourceChange = z
196
+ const UpdateResourceChange = z
220
197
  .object({ "@type": z.string(), resource: Resource })
221
198
  .passthrough();
222
- export type UpdateResourceChange = z.infer<typeof UpdateResourceChange>;
223
- export const DeleteResourceChange = z
199
+ const DeleteResourceChange = z
224
200
  .object({
225
201
  "@type": z.string(),
226
202
  id: z
@@ -231,14 +207,12 @@ export const DeleteResourceChange = z
231
207
  .uuid(),
232
208
  })
233
209
  .passthrough();
234
- export type DeleteResourceChange = z.infer<typeof DeleteResourceChange>;
235
- export const ResourceChange = z.discriminatedUnion("@type", [
210
+ const ResourceChange = z.discriminatedUnion("@type", [
236
211
  CreateResourceChange,
237
212
  UpdateResourceChange,
238
213
  DeleteResourceChange,
239
214
  ]);
240
- export type ResourceChange = z.infer<typeof ResourceChange>;
241
- export const CreateCommitRequest = z
215
+ const CreateCommitRequest = z
242
216
  .object({
243
217
  commitMessage: z.string().max(1000).regex(/\S/),
244
218
  parentCommitId: UUID.regex(
@@ -247,8 +221,7 @@ export const CreateCommitRequest = z
247
221
  changes: z.array(ResourceChange),
248
222
  })
249
223
  .passthrough();
250
- export type CreateCommitRequest = z.infer<typeof CreateCommitRequest>;
251
- export const CreateCommitResponse = z
224
+ const CreateCommitResponse = z
252
225
  .object({
253
226
  commitId: z
254
227
  .string()
@@ -259,14 +232,8 @@ export const CreateCommitResponse = z
259
232
  changes: z.array(ResourceChange),
260
233
  })
261
234
  .passthrough();
262
- export type CreateCommitResponse = z.infer<typeof CreateCommitResponse>;
263
- export const ListBranchContentResponse = z
264
- .object({ content: Resource })
265
- .passthrough();
266
- export type ListBranchContentResponse = z.infer<
267
- typeof ListBranchContentResponse
268
- >;
269
- export const MergeBranchRequest = z
235
+ const ListBranchContentResponse = z.object({ content: Resource }).passthrough();
236
+ const MergeBranchRequest = z
270
237
  .object({
271
238
  commitMessage: z.string(),
272
239
  sourceBranchId: UUID.regex(
@@ -274,41 +241,30 @@ export const MergeBranchRequest = z
274
241
  ).uuid(),
275
242
  })
276
243
  .passthrough();
277
- export type MergeBranchRequest = z.infer<typeof MergeBranchRequest>;
278
- export const PasswordAuthentication = z
244
+ const PasswordAuthentication = z
279
245
  .object({
280
246
  "@type": z.string(),
281
247
  username: z.string().regex(/\S/),
282
248
  password: z.string().nullish(),
283
249
  })
284
250
  .passthrough();
285
- export type PasswordAuthentication = z.infer<typeof PasswordAuthentication>;
286
- export const JdbcAuthentication = PasswordAuthentication;
287
- export type JdbcAuthentication = z.infer<typeof JdbcAuthentication>;
288
- export const PublicTunnel = z.object({ "@type": z.string() }).passthrough();
289
- export type PublicTunnel = z.infer<typeof PublicTunnel>;
290
- export const VendorPrivateKeyAuthentication = z
251
+ const JdbcAuthentication = PasswordAuthentication;
252
+ const PublicTunnel = z.object({ "@type": z.string() }).passthrough();
253
+ const VendorPrivateKeyAuthentication = z
291
254
  .object({ username: z.string().regex(/\S/), "@type": z.string() })
292
255
  .passthrough();
293
- export type VendorPrivateKeyAuthentication = z.infer<
294
- typeof VendorPrivateKeyAuthentication
295
- >;
296
- export const TenantPrivateKeyAuthentication = z
256
+ const TenantPrivateKeyAuthentication = z
297
257
  .object({
298
258
  username: z.string().regex(/\S/),
299
259
  "@type": z.string(),
300
260
  privateKey: z.string().nullish(),
301
261
  })
302
262
  .passthrough();
303
- export type TenantPrivateKeyAuthentication = z.infer<
304
- typeof TenantPrivateKeyAuthentication
305
- >;
306
- export const SSHAuthentication = z.discriminatedUnion("@type", [
263
+ const SSHAuthentication = z.discriminatedUnion("@type", [
307
264
  VendorPrivateKeyAuthentication,
308
265
  TenantPrivateKeyAuthentication,
309
266
  ]);
310
- export type SSHAuthentication = z.infer<typeof SSHAuthentication>;
311
- export const SSHTunnel = z.lazy(() =>
267
+ const SSHTunnel = z.lazy(() =>
312
268
  z
313
269
  .object({
314
270
  "@type": z.string(),
@@ -319,12 +275,10 @@ export const SSHTunnel = z.lazy(() =>
319
275
  })
320
276
  .passthrough()
321
277
  );
322
- export type SSHTunnel = z.infer<typeof SSHTunnel>;
323
- export const Tunnel = z.lazy(() =>
278
+ const Tunnel = z.lazy(() =>
324
279
  z.discriminatedUnion("@type", [PublicTunnel, SSHTunnel])
325
280
  );
326
- export type Tunnel = z.infer<typeof Tunnel>;
327
- export const Postgres = z
281
+ const Postgres = z
328
282
  .object({
329
283
  authentication: JdbcAuthentication,
330
284
  database: z.string().regex(/\S/),
@@ -334,8 +288,7 @@ export const Postgres = z
334
288
  port: z.number().int().optional(),
335
289
  })
336
290
  .passthrough();
337
- export type Postgres = z.infer<typeof Postgres>;
338
- export const MySql = z
291
+ const MySql = z
339
292
  .object({
340
293
  authentication: JdbcAuthentication,
341
294
  database: z.string().regex(/\S/),
@@ -345,8 +298,7 @@ export const MySql = z
345
298
  port: z.number().int().optional(),
346
299
  })
347
300
  .passthrough();
348
- export type MySql = z.infer<typeof MySql>;
349
- export const MSS = z
301
+ const MSS = z
350
302
  .object({
351
303
  authentication: JdbcAuthentication,
352
304
  database: z.string().regex(/\S/),
@@ -356,24 +308,21 @@ export const MSS = z
356
308
  port: z.number().int().optional(),
357
309
  })
358
310
  .passthrough();
359
- export type MSS = z.infer<typeof MSS>;
360
- export const BigQueryAuthentication = z
311
+ const BigQueryAuthentication = z
361
312
  .object({
362
313
  projectId: z.string().nullable(),
363
314
  jsonKeyFile: z.string().nullable(),
364
315
  })
365
316
  .partial()
366
317
  .passthrough();
367
- export type BigQueryAuthentication = z.infer<typeof BigQueryAuthentication>;
368
- export const BigQuery = z
318
+ const BigQuery = z
369
319
  .object({
370
320
  tunnel: Tunnel,
371
321
  "@type": z.string(),
372
322
  authentication: BigQueryAuthentication,
373
323
  })
374
324
  .passthrough();
375
- export type BigQuery = z.infer<typeof BigQuery>;
376
- export const Redshift = z
325
+ const Redshift = z
377
326
  .object({
378
327
  authentication: JdbcAuthentication,
379
328
  database: z.string().regex(/\S/),
@@ -383,16 +332,11 @@ export const Redshift = z
383
332
  port: z.number().int().optional(),
384
333
  })
385
334
  .passthrough();
386
- export type Redshift = z.infer<typeof Redshift>;
387
- export const SnowflakePasswordAuthentication = z
335
+ const SnowflakePasswordAuthentication = z
388
336
  .object({ "@type": z.string(), password: z.string().nullish() })
389
337
  .passthrough();
390
- export type SnowflakePasswordAuthentication = z.infer<
391
- typeof SnowflakePasswordAuthentication
392
- >;
393
- export const SnowflakeAuthentication = SnowflakePasswordAuthentication;
394
- export type SnowflakeAuthentication = z.infer<typeof SnowflakeAuthentication>;
395
- export const Snowflake = z
338
+ const SnowflakeAuthentication = SnowflakePasswordAuthentication;
339
+ const Snowflake = z
396
340
  .object({
397
341
  tunnel: Tunnel,
398
342
  "@type": z.string(),
@@ -403,10 +347,8 @@ export const Snowflake = z
403
347
  authentication: SnowflakeAuthentication,
404
348
  })
405
349
  .passthrough();
406
- export type Snowflake = z.infer<typeof Snowflake>;
407
- export const ClickhouseConnectionType = z.enum(["HTTP", "NATIVE"]);
408
- export type ClickhouseConnectionType = z.infer<typeof ClickhouseConnectionType>;
409
- export const Clickhouse = z
350
+ const ClickhouseConnectionType = z.enum(["HTTP", "NATIVE"]);
351
+ const Clickhouse = z
410
352
  .object({
411
353
  authentication: JdbcAuthentication,
412
354
  database: z.string().regex(/\S/),
@@ -417,8 +359,7 @@ export const Clickhouse = z
417
359
  connectionType: ClickhouseConnectionType.optional(),
418
360
  })
419
361
  .passthrough();
420
- export type Clickhouse = z.infer<typeof Clickhouse>;
421
- export const DataSourceConfiguration = z.discriminatedUnion("@type", [
362
+ const DataSourceConfiguration = z.discriminatedUnion("@type", [
422
363
  Postgres,
423
364
  MySql,
424
365
  MSS,
@@ -427,12 +368,10 @@ export const DataSourceConfiguration = z.discriminatedUnion("@type", [
427
368
  Snowflake,
428
369
  Clickhouse,
429
370
  ]);
430
- export type DataSourceConfiguration = z.infer<typeof DataSourceConfiguration>;
431
- export const TestConnectionRequest = z
371
+ const TestConnectionRequest = z
432
372
  .object({ configuration: DataSourceConfiguration })
433
373
  .passthrough();
434
- export type TestConnectionRequest = z.infer<typeof TestConnectionRequest>;
435
- export const Namespace = z
374
+ const Namespace = z
436
375
  .object({
437
376
  name: z.string().max(200).regex(/\S/),
438
377
  ignoreTableList: z.array(z.string()).optional(),
@@ -445,12 +384,8 @@ export const Namespace = z
445
384
  .optional(),
446
385
  })
447
386
  .passthrough();
448
- export type Namespace = z.infer<typeof Namespace>;
449
- export const NamespaceRequest = z
450
- .object({ namespace: Namespace })
451
- .passthrough();
452
- export type NamespaceRequest = z.infer<typeof NamespaceRequest>;
453
- export const DataSource = z
387
+ const NamespaceRequest = z.object({ namespace: Namespace }).passthrough();
388
+ const DataSource = z
454
389
  .object({
455
390
  name: z.string().max(200).regex(/\S/),
456
391
  externalId: z.string().max(200).regex(/\S/),
@@ -471,87 +406,64 @@ export const DataSource = z
471
406
  configuration: DataSourceConfiguration,
472
407
  })
473
408
  .passthrough();
474
- export type DataSource = z.infer<typeof DataSource>;
475
- export const NamespaceResponseMetadata = z
409
+ const NamespaceResponseMetadata = z
476
410
  .object({
477
411
  dataSources: z.array(DataSource).nullable(),
478
412
  resources: z.array(Resource).nullable(),
479
413
  views: z.array(Resource).nullable(),
480
414
  })
481
415
  .passthrough();
482
- export type NamespaceResponseMetadata = z.infer<
483
- typeof NamespaceResponseMetadata
484
- >;
485
- export const NamespaceResponse = z
416
+ const NamespaceResponse = z
486
417
  .object({ namespace: Namespace, meta: NamespaceResponseMetadata.nullable() })
487
418
  .passthrough();
488
- export type NamespaceResponse = z.infer<typeof NamespaceResponse>;
489
- export const DataSourceRequest = z
490
- .object({ dataSource: DataSource })
491
- .passthrough();
492
- export type DataSourceRequest = z.infer<typeof DataSourceRequest>;
493
- export const DataSourceResponse = z
494
- .object({ dataSource: DataSource })
495
- .passthrough();
496
- export type DataSourceResponse = z.infer<typeof DataSourceResponse>;
497
- export const PagingConfiguration = z
419
+ const DataSourceRequest = z.object({ dataSource: DataSource }).passthrough();
420
+ const DataSourceResponse = z.object({ dataSource: DataSource }).passthrough();
421
+ const PagingConfiguration = z
498
422
  .object({ perPage: z.number().int().gte(1), page: z.number().int().gte(0) })
499
423
  .partial()
500
424
  .passthrough();
501
- export type PagingConfiguration = z.infer<typeof PagingConfiguration>;
502
- export const DataRequestParameters = z
425
+ const DataRequestParameters = z
503
426
  .object({
504
427
  pagingConfiguration: PagingConfiguration,
505
428
  includeTotalResults: z.boolean(),
506
429
  })
507
430
  .partial()
508
431
  .passthrough();
509
- export type DataRequestParameters = z.infer<typeof DataRequestParameters>;
510
- export const And = z.lazy(() =>
432
+ const And = z.lazy(() =>
511
433
  z
512
434
  .object({ "@type": z.string(), values: z.array(Filter).min(1) })
513
435
  .passthrough()
514
436
  );
515
- export type And = z.infer<typeof And>;
516
- export const Or = z.lazy(() =>
437
+ const Or = z.lazy(() =>
517
438
  z
518
439
  .object({ "@type": z.string(), values: z.array(Filter).min(1) })
519
440
  .passthrough()
520
441
  );
521
- export type Or = z.infer<typeof Or>;
522
- export const Not = z.lazy(() =>
442
+ const Not = z.lazy(() =>
523
443
  z.object({ "@type": z.string(), value: Filter }).passthrough()
524
444
  );
525
- export type Not = z.infer<typeof Not>;
526
- export const BooleanPropertyValue = z
445
+ const BooleanPropertyValue = z
527
446
  .object({ "@type": z.string(), value: z.boolean() })
528
447
  .passthrough();
529
- export type BooleanPropertyValue = z.infer<typeof BooleanPropertyValue>;
530
- export const DatePropertyValue = z
448
+ const DatePropertyValue = z
531
449
  .object({ "@type": z.string(), value: z.string() })
532
450
  .passthrough();
533
- export type DatePropertyValue = z.infer<typeof DatePropertyValue>;
534
- export const DateTimePropertyValue = z
451
+ const DateTimePropertyValue = z
535
452
  .object({ "@type": z.string(), value: z.string().datetime({ offset: true }) })
536
453
  .passthrough();
537
- export type DateTimePropertyValue = z.infer<typeof DateTimePropertyValue>;
538
- export const DecimalPropertyValue = z
454
+ const DecimalPropertyValue = z
539
455
  .object({ "@type": z.string(), value: z.number() })
540
456
  .passthrough();
541
- export type DecimalPropertyValue = z.infer<typeof DecimalPropertyValue>;
542
- export const DoublePropertyValue = z
457
+ const DoublePropertyValue = z
543
458
  .object({ "@type": z.string(), value: z.number() })
544
459
  .passthrough();
545
- export type DoublePropertyValue = z.infer<typeof DoublePropertyValue>;
546
- export const IntegerPropertyValue = z
460
+ const IntegerPropertyValue = z
547
461
  .object({ "@type": z.string(), value: z.number().int() })
548
462
  .passthrough();
549
- export type IntegerPropertyValue = z.infer<typeof IntegerPropertyValue>;
550
- export const StringPropertyValue = z
463
+ const StringPropertyValue = z
551
464
  .object({ "@type": z.string(), value: z.string() })
552
465
  .passthrough();
553
- export type StringPropertyValue = z.infer<typeof StringPropertyValue>;
554
- export const PropertyValue = z.discriminatedUnion("@type", [
466
+ const PropertyValue = z.discriminatedUnion("@type", [
555
467
  BooleanPropertyValue,
556
468
  DatePropertyValue,
557
469
  DateTimePropertyValue,
@@ -560,110 +472,94 @@ export const PropertyValue = z.discriminatedUnion("@type", [
560
472
  IntegerPropertyValue,
561
473
  StringPropertyValue,
562
474
  ]);
563
- export type PropertyValue = z.infer<typeof PropertyValue>;
564
- export const Equal = z
475
+ const Equal = z
565
476
  .object({
566
477
  "@type": z.string(),
567
478
  propertyId: z.string().regex(/\S/),
568
479
  value: PropertyValue,
569
480
  })
570
481
  .passthrough();
571
- export type Equal = z.infer<typeof Equal>;
572
- export const LateBoundEqual = z
482
+ const LateBoundEqual = z
573
483
  .object({
574
484
  "@type": z.string(),
575
485
  propertyId: z.string().regex(/\S/),
576
486
  valueVariableReference: z.string().regex(/\S/),
577
487
  })
578
488
  .passthrough();
579
- export type LateBoundEqual = z.infer<typeof LateBoundEqual>;
580
- export const In = z
489
+ const In = z
581
490
  .object({
582
491
  "@type": z.string(),
583
492
  propertyId: z.string().regex(/\S/),
584
493
  values: z.array(PropertyValue),
585
494
  })
586
495
  .passthrough();
587
- export type In = z.infer<typeof In>;
588
- export const LateBoundIn = z
496
+ const LateBoundIn = z
589
497
  .object({
590
498
  "@type": z.string(),
591
499
  propertyId: z.string().regex(/\S/),
592
500
  valueVariableReference: z.string().regex(/\S/),
593
501
  })
594
502
  .passthrough();
595
- export type LateBoundIn = z.infer<typeof LateBoundIn>;
596
- export const LessThan = z
503
+ const LessThan = z
597
504
  .object({
598
505
  "@type": z.string(),
599
506
  propertyId: z.string().regex(/\S/),
600
507
  value: PropertyValue,
601
508
  })
602
509
  .passthrough();
603
- export type LessThan = z.infer<typeof LessThan>;
604
- export const LessThanOrEqual = z
510
+ const LessThanOrEqual = z
605
511
  .object({
606
512
  "@type": z.string(),
607
513
  propertyId: z.string().regex(/\S/),
608
514
  value: PropertyValue,
609
515
  })
610
516
  .passthrough();
611
- export type LessThanOrEqual = z.infer<typeof LessThanOrEqual>;
612
- export const GreaterThan = z
517
+ const GreaterThan = z
613
518
  .object({
614
519
  "@type": z.string(),
615
520
  propertyId: z.string().regex(/\S/),
616
521
  value: PropertyValue,
617
522
  })
618
523
  .passthrough();
619
- export type GreaterThan = z.infer<typeof GreaterThan>;
620
- export const GreaterThanOrEqual = z
524
+ const GreaterThanOrEqual = z
621
525
  .object({
622
526
  "@type": z.string(),
623
527
  propertyId: z.string().regex(/\S/),
624
528
  value: PropertyValue,
625
529
  })
626
530
  .passthrough();
627
- export type GreaterThanOrEqual = z.infer<typeof GreaterThanOrEqual>;
628
- export const LateBoundLessThan = z
531
+ const LateBoundLessThan = z
629
532
  .object({
630
533
  "@type": z.string(),
631
534
  propertyId: z.string().regex(/\S/),
632
535
  valueVariableReference: z.string().regex(/\S/),
633
536
  })
634
537
  .passthrough();
635
- export type LateBoundLessThan = z.infer<typeof LateBoundLessThan>;
636
- export const LateBoundLessThanOrEqual = z
538
+ const LateBoundLessThanOrEqual = z
637
539
  .object({
638
540
  "@type": z.string(),
639
541
  propertyId: z.string().regex(/\S/),
640
542
  valueVariableReference: z.string().regex(/\S/),
641
543
  })
642
544
  .passthrough();
643
- export type LateBoundLessThanOrEqual = z.infer<typeof LateBoundLessThanOrEqual>;
644
- export const LateBoundGreaterThan = z
545
+ const LateBoundGreaterThan = z
645
546
  .object({
646
547
  "@type": z.string(),
647
548
  propertyId: z.string().regex(/\S/),
648
549
  valueVariableReference: z.string().regex(/\S/),
649
550
  })
650
551
  .passthrough();
651
- export type LateBoundGreaterThan = z.infer<typeof LateBoundGreaterThan>;
652
- export const LateBoundGreaterThanOrEqual = z
552
+ const LateBoundGreaterThanOrEqual = z
653
553
  .object({
654
554
  "@type": z.string(),
655
555
  propertyId: z.string().regex(/\S/),
656
556
  valueVariableReference: z.string().regex(/\S/),
657
557
  })
658
558
  .passthrough();
659
- export type LateBoundGreaterThanOrEqual = z.infer<
660
- typeof LateBoundGreaterThanOrEqual
661
- >;
662
- export const Null = z
559
+ const Null = z
663
560
  .object({ "@type": z.string(), propertyId: z.string().regex(/\S/) })
664
561
  .passthrough();
665
- export type Null = z.infer<typeof Null>;
666
- export const StringContains = z
562
+ const StringContains = z
667
563
  .object({
668
564
  "@type": z.string(),
669
565
  propertyId: z.string().regex(/\S/),
@@ -671,8 +567,7 @@ export const StringContains = z
671
567
  caseInsensitive: z.boolean(),
672
568
  })
673
569
  .passthrough();
674
- export type StringContains = z.infer<typeof StringContains>;
675
- export const LateBoundStringContains = z
570
+ const LateBoundStringContains = z
676
571
  .object({
677
572
  "@type": z.string(),
678
573
  propertyId: z.string().regex(/\S/),
@@ -680,8 +575,7 @@ export const LateBoundStringContains = z
680
575
  caseInsensitive: z.boolean(),
681
576
  })
682
577
  .passthrough();
683
- export type LateBoundStringContains = z.infer<typeof LateBoundStringContains>;
684
- export const Filter = z.lazy(() =>
578
+ const Filter = z.lazy(() =>
685
579
  z.discriminatedUnion("@type", [
686
580
  And,
687
581
  Or,
@@ -703,8 +597,7 @@ export const Filter = z.lazy(() =>
703
597
  LateBoundStringContains,
704
598
  ])
705
599
  );
706
- export type Filter = z.infer<typeof Filter>;
707
- export const Aggregation = z.enum([
600
+ const Aggregation = z.enum([
708
601
  "avg",
709
602
  "count",
710
603
  "count-distinct",
@@ -713,12 +606,8 @@ export const Aggregation = z.enum([
713
606
  "percentile",
714
607
  "sum",
715
608
  ]);
716
- export type Aggregation = z.infer<typeof Aggregation>;
717
- export const AggregationOption = z
718
- .object({ decimalValue: z.number() })
719
- .passthrough();
720
- export type AggregationOption = z.infer<typeof AggregationOption>;
721
- export const AggregateProperty = z
609
+ const AggregationOption = z.object({ decimalValue: z.number() }).passthrough();
610
+ const AggregateProperty = z
722
611
  .object({
723
612
  targetPropertyId: z.string().nullable(),
724
613
  "@type": z.string(),
@@ -727,30 +616,26 @@ export const AggregateProperty = z
727
616
  aggregationOption: AggregationOption.nullish(),
728
617
  })
729
618
  .passthrough();
730
- export type AggregateProperty = z.infer<typeof AggregateProperty>;
731
- export const SourceProperty = z
619
+ const SourceProperty = z
732
620
  .object({
733
621
  targetPropertyId: z.string().nullable(),
734
622
  "@type": z.string(),
735
623
  propertyId: z.string().regex(/\S/),
736
624
  })
737
625
  .passthrough();
738
- export type SourceProperty = z.infer<typeof SourceProperty>;
739
- export const FormulaProperty = z
626
+ const FormulaProperty = z
740
627
  .object({
741
628
  targetPropertyId: z.string().nullable(),
742
629
  "@type": z.string(),
743
630
  formula: z.string(),
744
631
  })
745
632
  .passthrough();
746
- export type FormulaProperty = z.infer<typeof FormulaProperty>;
747
- export const Property = z.discriminatedUnion("@type", [
633
+ const Property = z.discriminatedUnion("@type", [
748
634
  AggregateProperty,
749
635
  SourceProperty,
750
636
  FormulaProperty,
751
637
  ]);
752
- export type Property = z.infer<typeof Property>;
753
- export const CalendarInterval = z.enum([
638
+ const CalendarInterval = z.enum([
754
639
  "year",
755
640
  "month",
756
641
  "week",
@@ -758,8 +643,7 @@ export const CalendarInterval = z.enum([
758
643
  "hour",
759
644
  "minute",
760
645
  ]);
761
- export type CalendarInterval = z.infer<typeof CalendarInterval>;
762
- export const CalendarIntervalGrouping = z
646
+ const CalendarIntervalGrouping = z
763
647
  .object({
764
648
  propertyId: z.string().regex(/\S/),
765
649
  targetPropertyId: z.string().nullable(),
@@ -768,15 +652,13 @@ export const CalendarIntervalGrouping = z
768
652
  targetTimezone: z.string().optional(),
769
653
  })
770
654
  .passthrough();
771
- export type CalendarIntervalGrouping = z.infer<typeof CalendarIntervalGrouping>;
772
- export const DatePart = z.enum([
655
+ const DatePart = z.enum([
773
656
  "day-of-week",
774
657
  "day-of-month",
775
658
  "month-of-year",
776
659
  "hour-of-day",
777
660
  ]);
778
- export type DatePart = z.infer<typeof DatePart>;
779
- export const DatePartGrouping = z
661
+ const DatePartGrouping = z
780
662
  .object({
781
663
  propertyId: z.string().regex(/\S/),
782
664
  targetPropertyId: z.string().nullable(),
@@ -785,8 +667,7 @@ export const DatePartGrouping = z
785
667
  targetTimezone: z.string().optional(),
786
668
  })
787
669
  .passthrough();
788
- export type DatePartGrouping = z.infer<typeof DatePartGrouping>;
789
- export const DecimalIntervalGrouping = z
670
+ const DecimalIntervalGrouping = z
790
671
  .object({
791
672
  propertyId: z.string().regex(/\S/),
792
673
  targetPropertyId: z.string().nullable(),
@@ -794,8 +675,7 @@ export const DecimalIntervalGrouping = z
794
675
  interval: z.number().gt(0),
795
676
  })
796
677
  .passthrough();
797
- export type DecimalIntervalGrouping = z.infer<typeof DecimalIntervalGrouping>;
798
- export const IntegerIntervalGrouping = z
678
+ const IntegerIntervalGrouping = z
799
679
  .object({
800
680
  propertyId: z.string().regex(/\S/),
801
681
  targetPropertyId: z.string().nullable(),
@@ -803,130 +683,105 @@ export const IntegerIntervalGrouping = z
803
683
  interval: z.number().int().gt(0),
804
684
  })
805
685
  .passthrough();
806
- export type IntegerIntervalGrouping = z.infer<typeof IntegerIntervalGrouping>;
807
- export const ValueGrouping = z
686
+ const ValueGrouping = z
808
687
  .object({
809
688
  propertyId: z.string().regex(/\S/),
810
689
  targetPropertyId: z.string().nullable(),
811
690
  "@type": z.string(),
812
691
  })
813
692
  .passthrough();
814
- export type ValueGrouping = z.infer<typeof ValueGrouping>;
815
- export const Grouping = z.discriminatedUnion("@type", [
693
+ const Grouping = z.discriminatedUnion("@type", [
816
694
  CalendarIntervalGrouping,
817
695
  DatePartGrouping,
818
696
  DecimalIntervalGrouping,
819
697
  IntegerIntervalGrouping,
820
698
  ValueGrouping,
821
699
  ]);
822
- export type Grouping = z.infer<typeof Grouping>;
823
- export const SortDirection = z.enum(["asc", "desc"]);
824
- export type SortDirection = z.infer<typeof SortDirection>;
825
- export const Sort = z
700
+ const SortDirection = z.enum(["asc", "desc"]);
701
+ const Sort = z
826
702
  .object({ sortDirection: SortDirection, propertyId: z.string().regex(/\S/) })
827
703
  .passthrough();
828
- export type Sort = z.infer<typeof Sort>;
829
- export const And1 = z.lazy(() =>
704
+ const And1 = z.lazy(() =>
830
705
  z
831
706
  .object({ "@type": z.string(), values: z.array(Having).min(1) })
832
707
  .passthrough()
833
708
  );
834
- export type And1 = z.infer<typeof And1>;
835
- export const Or1 = z.lazy(() =>
709
+ const Or1 = z.lazy(() =>
836
710
  z
837
711
  .object({ "@type": z.string(), values: z.array(Having).min(1) })
838
712
  .passthrough()
839
713
  );
840
- export type Or1 = z.infer<typeof Or1>;
841
- export const Not1 = z.lazy(() =>
714
+ const Not1 = z.lazy(() =>
842
715
  z.object({ "@type": z.string(), value: Having }).passthrough()
843
716
  );
844
- export type Not1 = z.infer<typeof Not1>;
845
- export const Equal1 = z
717
+ const Equal1 = z
846
718
  .object({ "@type": z.string(), property: Property, value: PropertyValue })
847
719
  .passthrough();
848
- export type Equal1 = z.infer<typeof Equal1>;
849
- export const LateBoundEqual1 = z
720
+ const LateBoundEqual1 = z
850
721
  .object({
851
722
  "@type": z.string(),
852
723
  property: Property,
853
724
  valueVariableReference: z.string().regex(/\S/),
854
725
  })
855
726
  .passthrough();
856
- export type LateBoundEqual1 = z.infer<typeof LateBoundEqual1>;
857
- export const In1 = z
727
+ const In1 = z
858
728
  .object({
859
729
  "@type": z.string(),
860
730
  property: Property,
861
731
  values: z.array(PropertyValue),
862
732
  })
863
733
  .passthrough();
864
- export type In1 = z.infer<typeof In1>;
865
- export const LateBoundIn1 = z
734
+ const LateBoundIn1 = z
866
735
  .object({
867
736
  "@type": z.string(),
868
737
  property: Property,
869
738
  valueVariableReference: z.string().regex(/\S/),
870
739
  })
871
740
  .passthrough();
872
- export type LateBoundIn1 = z.infer<typeof LateBoundIn1>;
873
- export const LessThan1 = z
741
+ const LessThan1 = z
874
742
  .object({ "@type": z.string(), property: Property, value: PropertyValue })
875
743
  .passthrough();
876
- export type LessThan1 = z.infer<typeof LessThan1>;
877
- export const LessThanOrEqual1 = z
744
+ const LessThanOrEqual1 = z
878
745
  .object({ "@type": z.string(), property: Property, value: PropertyValue })
879
746
  .passthrough();
880
- export type LessThanOrEqual1 = z.infer<typeof LessThanOrEqual1>;
881
- export const GreaterThan1 = z
747
+ const GreaterThan1 = z
882
748
  .object({ "@type": z.string(), property: Property, value: PropertyValue })
883
749
  .passthrough();
884
- export type GreaterThan1 = z.infer<typeof GreaterThan1>;
885
- export const GreaterThanOrEqual1 = z
750
+ const GreaterThanOrEqual1 = z
886
751
  .object({ "@type": z.string(), property: Property, value: PropertyValue })
887
752
  .passthrough();
888
- export type GreaterThanOrEqual1 = z.infer<typeof GreaterThanOrEqual1>;
889
- export const LateBoundLessThan1 = z
753
+ const LateBoundLessThan1 = z
890
754
  .object({
891
755
  "@type": z.string(),
892
756
  property: Property,
893
757
  valueVariableReference: z.string().regex(/\S/),
894
758
  })
895
759
  .passthrough();
896
- export type LateBoundLessThan1 = z.infer<typeof LateBoundLessThan1>;
897
- export const LateBoundLessThanOrEqual1 = z
760
+ const LateBoundLessThanOrEqual1 = z
898
761
  .object({
899
762
  "@type": z.string(),
900
763
  property: Property,
901
764
  valueVariableReference: z.string().regex(/\S/),
902
765
  })
903
766
  .passthrough();
904
- export type LateBoundLessThanOrEqual1 = z.infer<
905
- typeof LateBoundLessThanOrEqual1
906
- >;
907
- export const LateBoundGreaterThan1 = z
767
+ const LateBoundGreaterThan1 = z
908
768
  .object({
909
769
  "@type": z.string(),
910
770
  property: Property,
911
771
  valueVariableReference: z.string().regex(/\S/),
912
772
  })
913
773
  .passthrough();
914
- export type LateBoundGreaterThan1 = z.infer<typeof LateBoundGreaterThan1>;
915
- export const LateBoundGreaterThanOrEqual1 = z
774
+ const LateBoundGreaterThanOrEqual1 = z
916
775
  .object({
917
776
  "@type": z.string(),
918
777
  property: Property,
919
778
  valueVariableReference: z.string().regex(/\S/),
920
779
  })
921
780
  .passthrough();
922
- export type LateBoundGreaterThanOrEqual1 = z.infer<
923
- typeof LateBoundGreaterThanOrEqual1
924
- >;
925
- export const Null1 = z
781
+ const Null1 = z
926
782
  .object({ "@type": z.string(), property: Property })
927
783
  .passthrough();
928
- export type Null1 = z.infer<typeof Null1>;
929
- export const StringContains1 = z
784
+ const StringContains1 = z
930
785
  .object({
931
786
  "@type": z.string(),
932
787
  property: Property,
@@ -934,8 +789,7 @@ export const StringContains1 = z
934
789
  caseInsensitive: z.boolean(),
935
790
  })
936
791
  .passthrough();
937
- export type StringContains1 = z.infer<typeof StringContains1>;
938
- export const LateBoundStringContains1 = z
792
+ const LateBoundStringContains1 = z
939
793
  .object({
940
794
  "@type": z.string(),
941
795
  property: Property,
@@ -943,8 +797,7 @@ export const LateBoundStringContains1 = z
943
797
  caseInsensitive: z.boolean(),
944
798
  })
945
799
  .passthrough();
946
- export type LateBoundStringContains1 = z.infer<typeof LateBoundStringContains1>;
947
- export const Having = z.lazy(() =>
800
+ const Having = z.lazy(() =>
948
801
  z.discriminatedUnion("@type", [
949
802
  And1,
950
803
  Or1,
@@ -966,8 +819,7 @@ export const Having = z.lazy(() =>
966
819
  LateBoundStringContains1,
967
820
  ])
968
821
  );
969
- export type Having = z.infer<typeof Having>;
970
- export const Computation = z
822
+ const Computation = z
971
823
  .object({
972
824
  filter: Filter.nullable(),
973
825
  properties: z.array(Property),
@@ -977,8 +829,7 @@ export const Computation = z
977
829
  includeRollup: z.boolean().optional(),
978
830
  })
979
831
  .passthrough();
980
- export type Computation = z.infer<typeof Computation>;
981
- export const QueryPreviewRequest = z
832
+ const QueryPreviewRequest = z
982
833
  .object({
983
834
  query: z.string().regex(/\S/),
984
835
  dataRequestParameters: DataRequestParameters,
@@ -986,36 +837,28 @@ export const QueryPreviewRequest = z
986
837
  computation: Computation.nullable(),
987
838
  })
988
839
  .passthrough();
989
- export type QueryPreviewRequest = z.infer<typeof QueryPreviewRequest>;
990
- export const DataRecord = z
840
+ const DataRecord = z
991
841
  .object({ propertyValues: z.record(z.array(PropertyValue)) })
992
842
  .passthrough();
993
- export type DataRecord = z.infer<typeof DataRecord>;
994
- export const DataPage = z
995
- .object({ dataRecords: z.array(DataRecord) })
996
- .passthrough();
997
- export type DataPage = z.infer<typeof DataPage>;
998
- export const DataSchema = z
843
+ const DataPage = z.object({ dataRecords: z.array(DataRecord) }).passthrough();
844
+ const DataSchema = z
999
845
  .object({ propertySchema: z.array(PropertySchema) })
1000
846
  .passthrough();
1001
- export type DataSchema = z.infer<typeof DataSchema>;
1002
- export const DataResponseMetadata = z
847
+ const DataResponseMetadata = z
1003
848
  .object({
1004
849
  schema: DataSchema,
1005
850
  totalResults: z.number().int().nullable(),
1006
851
  renderedQuery: z.string().nullable(),
1007
852
  })
1008
853
  .passthrough();
1009
- export type DataResponseMetadata = z.infer<typeof DataResponseMetadata>;
1010
- export const CacheTelemetry = z
854
+ const CacheTelemetry = z
1011
855
  .object({
1012
856
  cacheHit: z.boolean(),
1013
857
  recordedAt: z.string().datetime({ offset: true }).nullable(),
1014
858
  ttl: z.string().nullable(),
1015
859
  })
1016
860
  .passthrough();
1017
- export type CacheTelemetry = z.infer<typeof CacheTelemetry>;
1018
- export const RequestTelemetry = z
861
+ const RequestTelemetry = z
1019
862
  .object({
1020
863
  requestTime: z.string().nullable(),
1021
864
  queryTime: z.string().nullable(),
@@ -1023,16 +866,14 @@ export const RequestTelemetry = z
1023
866
  cacheTelemetry: CacheTelemetry.nullish(),
1024
867
  })
1025
868
  .passthrough();
1026
- export type RequestTelemetry = z.infer<typeof RequestTelemetry>;
1027
- export const QueryExecutionResponse = z
869
+ const QueryExecutionResponse = z
1028
870
  .object({
1029
871
  data: DataPage,
1030
872
  meta: DataResponseMetadata,
1031
873
  requestTelemetry: RequestTelemetry.nullable(),
1032
874
  })
1033
875
  .passthrough();
1034
- export type QueryExecutionResponse = z.infer<typeof QueryExecutionResponse>;
1035
- export const QueryExecutionError = z
876
+ const QueryExecutionError = z
1036
877
  .object({
1037
878
  renderedQuery: z.string().nullable(),
1038
879
  requestTelemetry: RequestTelemetry.nullable(),
@@ -1040,21 +881,17 @@ export const QueryExecutionError = z
1040
881
  "@type": z.string(),
1041
882
  })
1042
883
  .passthrough();
1043
- export type QueryExecutionError = z.infer<typeof QueryExecutionError>;
1044
- export const TablePreviewRequest = z
884
+ const TablePreviewRequest = z
1045
885
  .object({
1046
886
  tableIdentifier: z.string().regex(/\S/),
1047
887
  dataRequestParameters: DataRequestParameters,
1048
888
  })
1049
889
  .passthrough();
1050
- export type TablePreviewRequest = z.infer<typeof TablePreviewRequest>;
1051
- export const ExportFormat = z.enum(["CSV", "TSV", "XLSX"]);
1052
- export type ExportFormat = z.infer<typeof ExportFormat>;
1053
- export const DateTimeFormat = z
890
+ const ExportFormat = z.enum(["CSV", "TSV", "XLSX"]);
891
+ const DateTimeFormat = z
1054
892
  .object({ pattern: z.string(), exportFormat: z.string().optional() })
1055
893
  .passthrough();
1056
- export type DateTimeFormat = z.infer<typeof DateTimeFormat>;
1057
- export const DateTimeColumnFormat = z
894
+ const DateTimeColumnFormat = z
1058
895
  .object({
1059
896
  "@type": z.string(),
1060
897
  dateTimeFormatPattern: DateTimeFormat.nullish(),
@@ -1063,10 +900,8 @@ export const DateTimeColumnFormat = z
1063
900
  targetTimezone: z.string().optional(),
1064
901
  })
1065
902
  .passthrough();
1066
- export type DateTimeColumnFormat = z.infer<typeof DateTimeColumnFormat>;
1067
- export const UnitOfMeasurement = z.literal("CURRENCY");
1068
- export type UnitOfMeasurement = z.infer<typeof UnitOfMeasurement>;
1069
- export const DecimalColumnFormat = z
903
+ const UnitOfMeasurement = z.literal("CURRENCY");
904
+ const DecimalColumnFormat = z
1070
905
  .object({
1071
906
  "@type": z.string(),
1072
907
  decimalFormat: z.string().nullable(),
@@ -1076,44 +911,36 @@ export const DecimalColumnFormat = z
1076
911
  multiplier: z.number().nullable(),
1077
912
  })
1078
913
  .passthrough();
1079
- export type DecimalColumnFormat = z.infer<typeof DecimalColumnFormat>;
1080
- export const DurationColumnFormat = z
914
+ const DurationColumnFormat = z
1081
915
  .object({ "@type": z.string(), durationPattern: z.string().nullable() })
1082
916
  .passthrough();
1083
- export type DurationColumnFormat = z.infer<typeof DurationColumnFormat>;
1084
- export const ColumnFormat = z.discriminatedUnion("@type", [
917
+ const ColumnFormat = z.discriminatedUnion("@type", [
1085
918
  DateTimeColumnFormat,
1086
919
  DecimalColumnFormat,
1087
920
  DurationColumnFormat,
1088
921
  ]);
1089
- export type ColumnFormat = z.infer<typeof ColumnFormat>;
1090
- export const ExportColumnOptions = z
922
+ const ExportColumnOptions = z
1091
923
  .object({
1092
924
  targetPropertyId: z.string(),
1093
925
  displayName: z.string().nullable(),
1094
926
  columnFormat: ColumnFormat.nullable(),
1095
927
  })
1096
928
  .passthrough();
1097
- export type ExportColumnOptions = z.infer<typeof ExportColumnOptions>;
1098
- export const ExportTargetConfiguration = z
929
+ const ExportTargetConfiguration = z
1099
930
  .object({
1100
931
  fileName: z.string().nullable(),
1101
932
  exportFormat: ExportFormat,
1102
933
  columnDisplayOptions: z.array(ExportColumnOptions),
1103
934
  })
1104
935
  .passthrough();
1105
- export type ExportTargetConfiguration = z.infer<
1106
- typeof ExportTargetConfiguration
1107
- >;
1108
- export const EmailConfiguration = z
936
+ const EmailConfiguration = z
1109
937
  .object({
1110
938
  recipientEmails: z.array(z.string()).min(1),
1111
939
  subject: z.string().nullable(),
1112
940
  body: z.string().nullable(),
1113
941
  })
1114
942
  .passthrough();
1115
- export type EmailConfiguration = z.infer<typeof EmailConfiguration>;
1116
- export const ViewExportRequest = z
943
+ const ViewExportRequest = z
1117
944
  .object({
1118
945
  queryContext: z.object({}).partial().passthrough(),
1119
946
  computation: Computation.nullable(),
@@ -1121,28 +948,21 @@ export const ViewExportRequest = z
1121
948
  emailConfiguration: EmailConfiguration.nullable(),
1122
949
  })
1123
950
  .passthrough();
1124
- export type ViewExportRequest = z.infer<typeof ViewExportRequest>;
1125
- export const QueryExportEmailResponse = z
951
+ const QueryExportEmailResponse = z
1126
952
  .object({ "@type": z.string() })
1127
953
  .passthrough();
1128
- export type QueryExportEmailResponse = z.infer<typeof QueryExportEmailResponse>;
1129
- export const QueryExportLinkResponse = z
954
+ const QueryExportLinkResponse = z
1130
955
  .object({ "@type": z.string(), url: z.string().regex(/\S/) })
1131
956
  .passthrough();
1132
- export type QueryExportLinkResponse = z.infer<typeof QueryExportLinkResponse>;
1133
- export const QueryExportResponse = z.discriminatedUnion("@type", [
957
+ const QueryExportResponse = z.discriminatedUnion("@type", [
1134
958
  QueryExportEmailResponse,
1135
959
  QueryExportLinkResponse,
1136
960
  ]);
1137
- export type QueryExportResponse = z.infer<typeof QueryExportResponse>;
1138
- export const RequestExecutionParameters = z
961
+ const RequestExecutionParameters = z
1139
962
  .object({ forceRefresh: z.boolean() })
1140
963
  .partial()
1141
964
  .passthrough();
1142
- export type RequestExecutionParameters = z.infer<
1143
- typeof RequestExecutionParameters
1144
- >;
1145
- export const ViewRunRequest = z
965
+ const ViewRunRequest = z
1146
966
  .object({
1147
967
  dataRequestParameters: DataRequestParameters,
1148
968
  requestExecutionParameters: RequestExecutionParameters.nullable(),
@@ -1150,8 +970,7 @@ export const ViewRunRequest = z
1150
970
  computation: Computation.nullable(),
1151
971
  })
1152
972
  .passthrough();
1153
- export type ViewRunRequest = z.infer<typeof ViewRunRequest>;
1154
- export const View = z
973
+ const View = z
1155
974
  .object({
1156
975
  name: z.string().max(200).regex(/\S/),
1157
976
  path: z.string().nullable(),
@@ -1180,14 +999,11 @@ export const View = z
1180
999
  .nullish(),
1181
1000
  })
1182
1001
  .passthrough();
1183
- export type View = z.infer<typeof View>;
1184
- export const ViewResponse = z.object({ view: View }).passthrough();
1185
- export type ViewResponse = z.infer<typeof ViewResponse>;
1186
- export const ListViewsResponse = z
1002
+ const ViewResponse = z.object({ view: View }).passthrough();
1003
+ const ListViewsResponse = z
1187
1004
  .object({ views: z.array(ViewResponse) })
1188
1005
  .passthrough();
1189
- export type ListViewsResponse = z.infer<typeof ListViewsResponse>;
1190
- export const TenantS3Configuration = z
1006
+ const TenantS3Configuration = z
1191
1007
  .object({
1192
1008
  prefix: z.string(),
1193
1009
  bucket: z.string(),
@@ -1195,15 +1011,13 @@ export const TenantS3Configuration = z
1195
1011
  roleArn: z.string(),
1196
1012
  })
1197
1013
  .passthrough();
1198
- export type TenantS3Configuration = z.infer<typeof TenantS3Configuration>;
1199
- export const TenantRequest = z
1014
+ const TenantRequest = z
1200
1015
  .object({
1201
1016
  configurationOverrides: z.record(z.string()).optional(),
1202
1017
  s3Configuration: TenantS3Configuration.nullable(),
1203
1018
  })
1204
1019
  .passthrough();
1205
- export type TenantRequest = z.infer<typeof TenantRequest>;
1206
- export const TenantKey = z
1020
+ const TenantKey = z
1207
1021
  .object({
1208
1022
  id: z
1209
1023
  .string()
@@ -1215,8 +1029,7 @@ export const TenantKey = z
1215
1029
  value: z.string().nullable(),
1216
1030
  })
1217
1031
  .passthrough();
1218
- export type TenantKey = z.infer<typeof TenantKey>;
1219
- export const Tenant = z
1032
+ const Tenant = z
1220
1033
  .object({
1221
1034
  id: z
1222
1035
  .string()
@@ -1229,10 +1042,8 @@ export const Tenant = z
1229
1042
  s3Configuration: TenantS3Configuration.nullable(),
1230
1043
  })
1231
1044
  .passthrough();
1232
- export type Tenant = z.infer<typeof Tenant>;
1233
- export const TenantResponse = z.object({ tenant: Tenant }).passthrough();
1234
- export type TenantResponse = z.infer<typeof TenantResponse>;
1235
- export const VersionedViewRequest = z
1045
+ const TenantResponse = z.object({ tenant: Tenant }).passthrough();
1046
+ const VersionedViewRequest = z
1236
1047
  .object({
1237
1048
  id: UUID.regex(
1238
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}/
@@ -1242,82 +1053,9 @@ export const VersionedViewRequest = z
1242
1053
  ).uuid(),
1243
1054
  })
1244
1055
  .passthrough();
1245
- export type VersionedViewRequest = z.infer<typeof VersionedViewRequest>;
1246
- export const ListVersionedViewsRequest = z
1056
+ const ListVersionedViewsRequest = z
1247
1057
  .object({ requests: z.array(VersionedViewRequest) })
1248
1058
  .passthrough();
1249
- export type ListVersionedViewsRequest = z.infer<
1250
- typeof ListVersionedViewsRequest
1251
- >;
1252
- export const Commit = z
1253
- .object({
1254
- id: z
1255
- .string()
1256
- .regex(
1257
- /[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}/
1258
- )
1259
- .uuid()
1260
- .optional(),
1261
- commitMessage: z.string().max(200).regex(/\S/),
1262
- parentId: z
1263
- .string()
1264
- .regex(
1265
- /[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}/
1266
- )
1267
- .uuid()
1268
- .nullable(),
1269
- })
1270
- .passthrough();
1271
- export type Commit = z.infer<typeof Commit>;
1272
- export const CommitResponse = z.object({ commit: Commit }).passthrough();
1273
- export type CommitResponse = z.infer<typeof CommitResponse>;
1274
- export const QueryTimeoutError = z
1275
- .object({
1276
- renderedQuery: z.string().nullable(),
1277
- requestTelemetry: RequestTelemetry.nullable(),
1278
- message: z.string().nullable(),
1279
- "@type": z.string(),
1280
- })
1281
- .passthrough();
1282
- export type QueryTimeoutError = z.infer<typeof QueryTimeoutError>;
1283
- export const DataSourceError = z.discriminatedUnion("@type", [
1284
- QueryExecutionError,
1285
- QueryTimeoutError,
1286
- ]);
1287
- export type DataSourceError = z.infer<typeof DataSourceError>;
1288
- export const ListNamespacesResponse = z
1289
- .object({ namespaces: z.array(NamespaceResponse) })
1290
- .passthrough();
1291
- export type ListNamespacesResponse = z.infer<typeof ListNamespacesResponse>;
1292
- export const ListViewsRequest = z
1293
- .object({
1294
- viewIds: z.array(
1295
- z
1296
- .string()
1297
- .regex(
1298
- /[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}/
1299
- )
1300
- .uuid()
1301
- ),
1302
- })
1303
- .passthrough();
1304
- export type ListViewsRequest = z.infer<typeof ListViewsRequest>;
1305
- export const SearchBranchContentResponse = z
1306
- .object({ results: z.array(Resource) })
1307
- .passthrough();
1308
- export type SearchBranchContentResponse = z.infer<
1309
- typeof SearchBranchContentResponse
1310
- >;
1311
- export const TestConnectionResponse = z
1312
- .object({ numberOfTables: z.number().int().gte(0) })
1313
- .passthrough();
1314
- export type TestConnectionResponse = z.infer<typeof TestConnectionResponse>;
1315
- export const ViewRequest = z
1316
- .object({ view: z.discriminatedUnion("@type", [TableView, ComputedView]) })
1317
- .passthrough();
1318
- export type ViewRequest = z.infer<typeof ViewRequest>;
1319
- export const ViewResponse1 = z.object({ resource: Resource }).passthrough();
1320
- export type ViewResponse1 = z.infer<typeof ViewResponse1>;
1321
1059
 
1322
1060
  export const schemas = {
1323
1061
  Branch,
@@ -1479,16 +1217,174 @@ export const schemas = {
1479
1217
  TenantResponse,
1480
1218
  VersionedViewRequest,
1481
1219
  ListVersionedViewsRequest,
1482
- Commit,
1483
- CommitResponse,
1484
- QueryTimeoutError,
1485
- DataSourceError,
1486
- ListNamespacesResponse,
1487
- ListViewsRequest,
1488
- SearchBranchContentResponse,
1489
- TestConnectionResponse,
1490
- ViewRequest,
1491
- 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>,
1492
1388
  };
1493
1389
 
1494
1390
  const Branch_ResourceEndpoints = makeApi([