@explo-tech/fido-api 2.12.10 → 3.0.0-jordan-testing.1

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 (179) hide show
  1. package/index.ts +3390 -180
  2. package/package.json +9 -3
  3. package/core/ApiError.ts +0 -24
  4. package/core/ApiRequestOptions.ts +0 -16
  5. package/core/ApiResult.ts +0 -10
  6. package/core/CancelablePromise.ts +0 -130
  7. package/core/OpenAPI.ts +0 -31
  8. package/core/request.ts +0 -307
  9. package/models/AggregateProperty.ts +0 -15
  10. package/models/Aggregation.ts +0 -13
  11. package/models/AggregationOption.ts +0 -8
  12. package/models/And.ts +0 -11
  13. package/models/And1.ts +0 -11
  14. package/models/BigQuery.ts +0 -13
  15. package/models/BigQueryAuthentication.ts +0 -9
  16. package/models/BooleanPropertyValue.ts +0 -9
  17. package/models/Branch.ts +0 -9
  18. package/models/BranchResponse.ts +0 -12
  19. package/models/BranchResponseMetadata.ts +0 -8
  20. package/models/CacheTelemetry.ts +0 -10
  21. package/models/CalendarInterval.ts +0 -12
  22. package/models/CalendarIntervalGrouping.ts +0 -14
  23. package/models/Clickhouse.ts +0 -18
  24. package/models/ClickhouseConnectionType.ts +0 -8
  25. package/models/ClientError.ts +0 -9
  26. package/models/ColumnFormat.ts +0 -10
  27. package/models/Commit.ts +0 -11
  28. package/models/CommitResponse.ts +0 -10
  29. package/models/Computation.ts +0 -19
  30. package/models/ComputedView.ts +0 -20
  31. package/models/CreateCommitRequest.ts +0 -13
  32. package/models/CreateCommitResponse.ts +0 -11
  33. package/models/CreateViewChange.ts +0 -12
  34. package/models/CreateViewDiff.ts +0 -11
  35. package/models/DataPage.ts +0 -10
  36. package/models/DataRecord.ts +0 -10
  37. package/models/DataRequestParameters.ts +0 -11
  38. package/models/DataResponseMetadata.ts +0 -12
  39. package/models/DataSchema.ts +0 -10
  40. package/models/DataSource.ts +0 -14
  41. package/models/DataSourceConfiguration.ts +0 -17
  42. package/models/DataSourceError.ts +0 -14
  43. package/models/DataSourceRequest.ts +0 -10
  44. package/models/DataSourceResponse.ts +0 -13
  45. package/models/DatePart.ts +0 -10
  46. package/models/DatePartGrouping.ts +0 -14
  47. package/models/DatePropertyValue.ts +0 -9
  48. package/models/DateTimeColumnFormat.ts +0 -14
  49. package/models/DateTimeFormat.ts +0 -9
  50. package/models/DateTimePropertyValue.ts +0 -9
  51. package/models/DecimalColumnFormat.ts +0 -15
  52. package/models/DecimalIntervalGrouping.ts +0 -11
  53. package/models/DecimalPropertyValue.ts +0 -9
  54. package/models/DeleteViewChange.ts +0 -9
  55. package/models/DeleteViewDiff.ts +0 -11
  56. package/models/DiffBranchResponse.ts +0 -10
  57. package/models/DoublePropertyValue.ts +0 -9
  58. package/models/DurationColumnFormat.ts +0 -9
  59. package/models/EmailConfiguration.ts +0 -10
  60. package/models/Equal.ts +0 -12
  61. package/models/Equal1.ts +0 -13
  62. package/models/EvictionPolicy.ts +0 -9
  63. package/models/ExportColumnOptions.ts +0 -12
  64. package/models/ExportFormat.ts +0 -9
  65. package/models/ExportTargetConfiguration.ts +0 -13
  66. package/models/Filter.ts +0 -25
  67. package/models/FormulaProperty.ts +0 -10
  68. package/models/GreaterThan.ts +0 -12
  69. package/models/GreaterThan1.ts +0 -13
  70. package/models/GreaterThanOrEqual.ts +0 -12
  71. package/models/GreaterThanOrEqual1.ts +0 -13
  72. package/models/Grouping.ts +0 -15
  73. package/models/Having.ts +0 -25
  74. package/models/In.ts +0 -12
  75. package/models/In1.ts +0 -13
  76. package/models/IntegerIntervalGrouping.ts +0 -11
  77. package/models/IntegerPropertyValue.ts +0 -9
  78. package/models/JdbcAuthentication.ts +0 -8
  79. package/models/LateBoundEqual.ts +0 -10
  80. package/models/LateBoundEqual1.ts +0 -12
  81. package/models/LateBoundGreaterThan.ts +0 -10
  82. package/models/LateBoundGreaterThan1.ts +0 -12
  83. package/models/LateBoundGreaterThanOrEqual.ts +0 -10
  84. package/models/LateBoundGreaterThanOrEqual1.ts +0 -12
  85. package/models/LateBoundIn.ts +0 -10
  86. package/models/LateBoundIn1.ts +0 -12
  87. package/models/LateBoundLessThan.ts +0 -10
  88. package/models/LateBoundLessThan1.ts +0 -12
  89. package/models/LateBoundLessThanOrEqual.ts +0 -10
  90. package/models/LateBoundLessThanOrEqual1.ts +0 -12
  91. package/models/LateBoundStringContains.ts +0 -11
  92. package/models/LateBoundStringContains1.ts +0 -13
  93. package/models/LessThan.ts +0 -12
  94. package/models/LessThan1.ts +0 -13
  95. package/models/LessThanOrEqual.ts +0 -12
  96. package/models/LessThanOrEqual1.ts +0 -13
  97. package/models/ListBranchResponse.ts +0 -10
  98. package/models/ListNamespacesResponse.ts +0 -10
  99. package/models/ListVersionedViewsRequest.ts +0 -8
  100. package/models/ListViewsRequest.ts +0 -8
  101. package/models/ListViewsResponse.ts +0 -10
  102. package/models/MSS.ts +0 -16
  103. package/models/MergeBranchRequest.ts +0 -9
  104. package/models/MySql.ts +0 -16
  105. package/models/Namespace.ts +0 -10
  106. package/models/NamespaceRequest.ts +0 -10
  107. package/models/NamespaceResponse.ts +0 -14
  108. package/models/NamespaceResponseMetadata.ts +0 -12
  109. package/models/Not.ts +0 -11
  110. package/models/Not1.ts +0 -11
  111. package/models/Null.ts +0 -9
  112. package/models/Null1.ts +0 -11
  113. package/models/Or.ts +0 -11
  114. package/models/Or1.ts +0 -11
  115. package/models/PagingConfiguration.ts +0 -9
  116. package/models/PasswordAuthentication.ts +0 -10
  117. package/models/Postgres.ts +0 -16
  118. package/models/Property.ts +0 -12
  119. package/models/PropertySchema.ts +0 -13
  120. package/models/PropertyType.ts +0 -15
  121. package/models/PropertyValue.ts +0 -14
  122. package/models/PublicTunnel.ts +0 -8
  123. package/models/QueryExecutionError.ts +0 -13
  124. package/models/QueryExecutionResponse.ts +0 -14
  125. package/models/QueryExportEmailResponse.ts +0 -8
  126. package/models/QueryExportLinkResponse.ts +0 -9
  127. package/models/QueryExportResponse.ts +0 -9
  128. package/models/QueryPreviewRequest.ts +0 -14
  129. package/models/QueryTimeoutError.ts +0 -13
  130. package/models/Redshift.ts +0 -16
  131. package/models/RequestExecutionParameters.ts +0 -8
  132. package/models/RequestTelemetry.ts +0 -13
  133. package/models/SSHAuthentication.ts +0 -11
  134. package/models/SSHTunnel.ts +0 -15
  135. package/models/ScheduledEviction.ts +0 -9
  136. package/models/Snowflake.ts +0 -17
  137. package/models/SnowflakeAuthentication.ts +0 -8
  138. package/models/SnowflakePasswordAuthentication.ts +0 -9
  139. package/models/Sort.ts +0 -11
  140. package/models/SortDirection.ts +0 -8
  141. package/models/SourceProperty.ts +0 -10
  142. package/models/StringContains.ts +0 -13
  143. package/models/StringContains1.ts +0 -14
  144. package/models/StringPropertyValue.ts +0 -9
  145. package/models/TablePreviewRequest.ts +0 -11
  146. package/models/TableView.ts +0 -18
  147. package/models/Tenant.ts +0 -14
  148. package/models/TenantKey.ts +0 -10
  149. package/models/TenantPrivateKeyAuthentication.ts +0 -10
  150. package/models/TenantRequest.ts +0 -11
  151. package/models/TenantResponse.ts +0 -10
  152. package/models/TenantS3Configuration.ts +0 -11
  153. package/models/TestConnectionRequest.ts +0 -10
  154. package/models/TestConnectionResponse.ts +0 -8
  155. package/models/TtlEviction.ts +0 -9
  156. package/models/Tunnel.ts +0 -9
  157. package/models/UUID.ts +0 -5
  158. package/models/UnitOfMeasurement.ts +0 -7
  159. package/models/UpdateViewChange.ts +0 -11
  160. package/models/UpdateViewDiff.ts +0 -12
  161. package/models/ValueGrouping.ts +0 -10
  162. package/models/VendorPrivateKeyAuthentication.ts +0 -9
  163. package/models/View.ts +0 -17
  164. package/models/ViewChange.ts +0 -10
  165. package/models/ViewDiff.ts +0 -10
  166. package/models/ViewExportRequest.ts +0 -18
  167. package/models/ViewRequest.ts +0 -19
  168. package/models/ViewResponse.ts +0 -10
  169. package/models/ViewRunRequest.ts +0 -15
  170. package/services/BranchResourceService.ts +0 -112
  171. package/services/CommitResourceService.ts +0 -48
  172. package/services/DataSourceResourceService.ts +0 -146
  173. package/services/HealthResourceService.ts +0 -45
  174. package/services/ListViewsResourceService.ts +0 -73
  175. package/services/NamespaceResourceService.ts +0 -120
  176. package/services/QueryResourceService.ts +0 -207
  177. package/services/TenantResourceService.ts +0 -89
  178. package/services/TestConnectionResourceService.ts +0 -56
  179. package/services/ViewResourceService.ts +0 -130
package/index.ts CHANGED
@@ -1,180 +1,3390 @@
1
- /* istanbul ignore file */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- export { ApiError } from './core/ApiError';
5
- export { CancelablePromise, CancelError } from './core/CancelablePromise';
6
- export { OpenAPI } from './core/OpenAPI';
7
- export type { OpenAPIConfig } from './core/OpenAPI';
8
-
9
- export type { AggregateProperty } from './models/AggregateProperty';
10
- export { Aggregation } from './models/Aggregation';
11
- export type { AggregationOption } from './models/AggregationOption';
12
- export type { And } from './models/And';
13
- export type { And1 } from './models/And1';
14
- export type { BigQuery } from './models/BigQuery';
15
- export type { BigQueryAuthentication } from './models/BigQueryAuthentication';
16
- export type { BooleanPropertyValue } from './models/BooleanPropertyValue';
17
- export type { Branch } from './models/Branch';
18
- export type { BranchResponse } from './models/BranchResponse';
19
- export type { BranchResponseMetadata } from './models/BranchResponseMetadata';
20
- export type { CacheTelemetry } from './models/CacheTelemetry';
21
- export { CalendarInterval } from './models/CalendarInterval';
22
- export type { CalendarIntervalGrouping } from './models/CalendarIntervalGrouping';
23
- export type { Clickhouse } from './models/Clickhouse';
24
- export { ClickhouseConnectionType } from './models/ClickhouseConnectionType';
25
- export type { ClientError } from './models/ClientError';
26
- export type { ColumnFormat } from './models/ColumnFormat';
27
- export type { Commit } from './models/Commit';
28
- export type { CommitResponse } from './models/CommitResponse';
29
- export type { Computation } from './models/Computation';
30
- export type { ComputedView } from './models/ComputedView';
31
- export type { CreateCommitRequest } from './models/CreateCommitRequest';
32
- export type { CreateCommitResponse } from './models/CreateCommitResponse';
33
- export type { CreateViewChange } from './models/CreateViewChange';
34
- export type { CreateViewDiff } from './models/CreateViewDiff';
35
- export type { DataPage } from './models/DataPage';
36
- export type { DataRecord } from './models/DataRecord';
37
- export type { DataRequestParameters } from './models/DataRequestParameters';
38
- export type { DataResponseMetadata } from './models/DataResponseMetadata';
39
- export type { DataSchema } from './models/DataSchema';
40
- export type { DataSource } from './models/DataSource';
41
- export type { DataSourceConfiguration } from './models/DataSourceConfiguration';
42
- export type { DataSourceError } from './models/DataSourceError';
43
- export type { DataSourceRequest } from './models/DataSourceRequest';
44
- export type { DataSourceResponse } from './models/DataSourceResponse';
45
- export { DatePart } from './models/DatePart';
46
- export type { DatePartGrouping } from './models/DatePartGrouping';
47
- export type { DatePropertyValue } from './models/DatePropertyValue';
48
- export type { DateTimeColumnFormat } from './models/DateTimeColumnFormat';
49
- export type { DateTimeFormat } from './models/DateTimeFormat';
50
- export type { DateTimePropertyValue } from './models/DateTimePropertyValue';
51
- export type { DecimalColumnFormat } from './models/DecimalColumnFormat';
52
- export type { DecimalIntervalGrouping } from './models/DecimalIntervalGrouping';
53
- export type { DecimalPropertyValue } from './models/DecimalPropertyValue';
54
- export type { DeleteViewChange } from './models/DeleteViewChange';
55
- export type { DeleteViewDiff } from './models/DeleteViewDiff';
56
- export type { DiffBranchResponse } from './models/DiffBranchResponse';
57
- export type { DoublePropertyValue } from './models/DoublePropertyValue';
58
- export type { DurationColumnFormat } from './models/DurationColumnFormat';
59
- export type { EmailConfiguration } from './models/EmailConfiguration';
60
- export type { Equal } from './models/Equal';
61
- export type { Equal1 } from './models/Equal1';
62
- export type { EvictionPolicy } from './models/EvictionPolicy';
63
- export type { ExportColumnOptions } from './models/ExportColumnOptions';
64
- export { ExportFormat } from './models/ExportFormat';
65
- export type { ExportTargetConfiguration } from './models/ExportTargetConfiguration';
66
- export type { Filter } from './models/Filter';
67
- export type { FormulaProperty } from './models/FormulaProperty';
68
- export type { GreaterThan } from './models/GreaterThan';
69
- export type { GreaterThan1 } from './models/GreaterThan1';
70
- export type { GreaterThanOrEqual } from './models/GreaterThanOrEqual';
71
- export type { GreaterThanOrEqual1 } from './models/GreaterThanOrEqual1';
72
- export type { Grouping } from './models/Grouping';
73
- export type { Having } from './models/Having';
74
- export type { In } from './models/In';
75
- export type { In1 } from './models/In1';
76
- export type { IntegerIntervalGrouping } from './models/IntegerIntervalGrouping';
77
- export type { IntegerPropertyValue } from './models/IntegerPropertyValue';
78
- export type { JdbcAuthentication } from './models/JdbcAuthentication';
79
- export type { LateBoundEqual } from './models/LateBoundEqual';
80
- export type { LateBoundEqual1 } from './models/LateBoundEqual1';
81
- export type { LateBoundGreaterThan } from './models/LateBoundGreaterThan';
82
- export type { LateBoundGreaterThan1 } from './models/LateBoundGreaterThan1';
83
- export type { LateBoundGreaterThanOrEqual } from './models/LateBoundGreaterThanOrEqual';
84
- export type { LateBoundGreaterThanOrEqual1 } from './models/LateBoundGreaterThanOrEqual1';
85
- export type { LateBoundIn } from './models/LateBoundIn';
86
- export type { LateBoundIn1 } from './models/LateBoundIn1';
87
- export type { LateBoundLessThan } from './models/LateBoundLessThan';
88
- export type { LateBoundLessThan1 } from './models/LateBoundLessThan1';
89
- export type { LateBoundLessThanOrEqual } from './models/LateBoundLessThanOrEqual';
90
- export type { LateBoundLessThanOrEqual1 } from './models/LateBoundLessThanOrEqual1';
91
- export type { LateBoundStringContains } from './models/LateBoundStringContains';
92
- export type { LateBoundStringContains1 } from './models/LateBoundStringContains1';
93
- export type { LessThan } from './models/LessThan';
94
- export type { LessThan1 } from './models/LessThan1';
95
- export type { LessThanOrEqual } from './models/LessThanOrEqual';
96
- export type { LessThanOrEqual1 } from './models/LessThanOrEqual1';
97
- export type { ListBranchResponse } from './models/ListBranchResponse';
98
- export type { ListNamespacesResponse } from './models/ListNamespacesResponse';
99
- export type { ListVersionedViewsRequest } from './models/ListVersionedViewsRequest';
100
- export type { ListViewsRequest } from './models/ListViewsRequest';
101
- export type { ListViewsResponse } from './models/ListViewsResponse';
102
- export type { MergeBranchRequest } from './models/MergeBranchRequest';
103
- export type { MSS } from './models/MSS';
104
- export type { MySql } from './models/MySql';
105
- export type { Namespace } from './models/Namespace';
106
- export type { NamespaceRequest } from './models/NamespaceRequest';
107
- export type { NamespaceResponse } from './models/NamespaceResponse';
108
- export type { NamespaceResponseMetadata } from './models/NamespaceResponseMetadata';
109
- export type { Not } from './models/Not';
110
- export type { Not1 } from './models/Not1';
111
- export type { Null } from './models/Null';
112
- export type { Null1 } from './models/Null1';
113
- export type { Or } from './models/Or';
114
- export type { Or1 } from './models/Or1';
115
- export type { PagingConfiguration } from './models/PagingConfiguration';
116
- export type { PasswordAuthentication } from './models/PasswordAuthentication';
117
- export type { Postgres } from './models/Postgres';
118
- export type { Property } from './models/Property';
119
- export type { PropertySchema } from './models/PropertySchema';
120
- export { PropertyType } from './models/PropertyType';
121
- export type { PropertyValue } from './models/PropertyValue';
122
- export type { PublicTunnel } from './models/PublicTunnel';
123
- export type { QueryExecutionError } from './models/QueryExecutionError';
124
- export type { QueryExecutionResponse } from './models/QueryExecutionResponse';
125
- export type { QueryExportEmailResponse } from './models/QueryExportEmailResponse';
126
- export type { QueryExportLinkResponse } from './models/QueryExportLinkResponse';
127
- export type { QueryExportResponse } from './models/QueryExportResponse';
128
- export type { QueryPreviewRequest } from './models/QueryPreviewRequest';
129
- export type { QueryTimeoutError } from './models/QueryTimeoutError';
130
- export type { Redshift } from './models/Redshift';
131
- export type { RequestExecutionParameters } from './models/RequestExecutionParameters';
132
- export type { RequestTelemetry } from './models/RequestTelemetry';
133
- export type { ScheduledEviction } from './models/ScheduledEviction';
134
- export type { Snowflake } from './models/Snowflake';
135
- export type { SnowflakeAuthentication } from './models/SnowflakeAuthentication';
136
- export type { SnowflakePasswordAuthentication } from './models/SnowflakePasswordAuthentication';
137
- export type { Sort } from './models/Sort';
138
- export { SortDirection } from './models/SortDirection';
139
- export type { SourceProperty } from './models/SourceProperty';
140
- export type { SSHAuthentication } from './models/SSHAuthentication';
141
- export type { SSHTunnel } from './models/SSHTunnel';
142
- export type { StringContains } from './models/StringContains';
143
- export type { StringContains1 } from './models/StringContains1';
144
- export type { StringPropertyValue } from './models/StringPropertyValue';
145
- export type { TablePreviewRequest } from './models/TablePreviewRequest';
146
- export type { TableView } from './models/TableView';
147
- export type { Tenant } from './models/Tenant';
148
- export type { TenantKey } from './models/TenantKey';
149
- export type { TenantPrivateKeyAuthentication } from './models/TenantPrivateKeyAuthentication';
150
- export type { TenantRequest } from './models/TenantRequest';
151
- export type { TenantResponse } from './models/TenantResponse';
152
- export type { TenantS3Configuration } from './models/TenantS3Configuration';
153
- export type { TestConnectionRequest } from './models/TestConnectionRequest';
154
- export type { TestConnectionResponse } from './models/TestConnectionResponse';
155
- export type { TtlEviction } from './models/TtlEviction';
156
- export type { Tunnel } from './models/Tunnel';
157
- export { UnitOfMeasurement } from './models/UnitOfMeasurement';
158
- export type { UpdateViewChange } from './models/UpdateViewChange';
159
- export type { UpdateViewDiff } from './models/UpdateViewDiff';
160
- export type { UUID } from './models/UUID';
161
- export type { ValueGrouping } from './models/ValueGrouping';
162
- export type { VendorPrivateKeyAuthentication } from './models/VendorPrivateKeyAuthentication';
163
- export type { View } from './models/View';
164
- export type { ViewChange } from './models/ViewChange';
165
- export type { ViewDiff } from './models/ViewDiff';
166
- export type { ViewExportRequest } from './models/ViewExportRequest';
167
- export type { ViewRequest } from './models/ViewRequest';
168
- export type { ViewResponse } from './models/ViewResponse';
169
- export type { ViewRunRequest } from './models/ViewRunRequest';
170
-
171
- export { BranchResourceService } from './services/BranchResourceService';
172
- export { CommitResourceService } from './services/CommitResourceService';
173
- export { DataSourceResourceService } from './services/DataSourceResourceService';
174
- export { HealthResourceService } from './services/HealthResourceService';
175
- export { ListViewsResourceService } from './services/ListViewsResourceService';
176
- export { NamespaceResourceService } from './services/NamespaceResourceService';
177
- export { QueryResourceService } from './services/QueryResourceService';
178
- export { TenantResourceService } from './services/TenantResourceService';
179
- export { TestConnectionResourceService } from './services/TestConnectionResourceService';
180
- export { ViewResourceService } from './services/ViewResourceService';
1
+ import { makeApi, Zodios } from "@zodios/core";
2
+ import { z } from "zod";
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
807
+ .object({
808
+ id: z
809
+ .string()
810
+ .regex(
811
+ /[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}/
812
+ )
813
+ .uuid()
814
+ .optional(),
815
+ name: z
816
+ .string()
817
+ .max(200)
818
+ .regex(/^[a-zA-Z0-9_-]+$/),
819
+ headId: z
820
+ .string()
821
+ .regex(
822
+ /[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}/
823
+ )
824
+ .uuid(),
825
+ })
826
+ .passthrough();
827
+ const ListBranchResponse: z.ZodType<ListBranchResponse> = z
828
+ .object({ branches: z.array(Branch) })
829
+ .passthrough();
830
+ const ClientError = z
831
+ .object({
832
+ status: z.number().int().gte(100).lte(599),
833
+ message: z.string().regex(/\S/),
834
+ })
835
+ .passthrough();
836
+ const BranchRequest: z.ZodType<BranchRequest> = z
837
+ .object({ branch: Branch })
838
+ .passthrough();
839
+ const PropertyType = z.enum([
840
+ "boolean",
841
+ "date",
842
+ "datetime",
843
+ "decimal",
844
+ "double",
845
+ "integer",
846
+ "long",
847
+ "string",
848
+ "unsupported",
849
+ ]);
850
+ const PropertySchema: z.ZodType<PropertySchema> = z
851
+ .object({
852
+ array: z.boolean().optional(),
853
+ id: z.string().regex(/\S/),
854
+ name: z.string().nullish(),
855
+ type: PropertyType,
856
+ })
857
+ .passthrough();
858
+ const Parameter: z.ZodType<Parameter> = z
859
+ .object({
860
+ name: z.string().regex(/\S/),
861
+ description: z.string().nullable(),
862
+ required: z.boolean(),
863
+ })
864
+ .passthrough();
865
+ const ScheduledEviction: z.ZodType<ScheduledEviction> = z
866
+ .object({ "@type": z.string(), evictionSchedule: z.string() })
867
+ .passthrough();
868
+ const TtlEviction: z.ZodType<TtlEviction> = z
869
+ .object({ "@type": z.string(), ttl: z.string() })
870
+ .passthrough();
871
+ const EvictionPolicy: z.ZodType<EvictionPolicy> = z.discriminatedUnion(
872
+ "@type",
873
+ [ScheduledEviction, TtlEviction]
874
+ );
875
+ const ComputedView: z.ZodType<ComputedView> = z
876
+ .object({
877
+ columnDefinitions: z.array(PropertySchema),
878
+ namespaceId: z
879
+ .string()
880
+ .regex(
881
+ /[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}/
882
+ )
883
+ .uuid()
884
+ .nullish(),
885
+ name: z.string().max(200).regex(/\S/),
886
+ path: z.string().nullable(),
887
+ description: z.string().nullable(),
888
+ id: z
889
+ .string()
890
+ .regex(
891
+ /[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}/
892
+ )
893
+ .uuid()
894
+ .nullish(),
895
+ versionId: z
896
+ .string()
897
+ .regex(
898
+ /[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}/
899
+ )
900
+ .uuid()
901
+ .nullish(),
902
+ "@type": z.string(),
903
+ query: z.string(),
904
+ cacheable: z.boolean().optional(),
905
+ parameters: z.array(Parameter),
906
+ cacheEvictionPolicy: EvictionPolicy.nullable(),
907
+ })
908
+ .passthrough();
909
+ const TableView: z.ZodType<TableView> = z
910
+ .object({
911
+ columnDefinitions: z.array(PropertySchema),
912
+ namespaceId: z
913
+ .string()
914
+ .regex(
915
+ /[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}/
916
+ )
917
+ .uuid()
918
+ .nullish(),
919
+ name: z.string().max(200).regex(/\S/),
920
+ path: z.string().nullable(),
921
+ description: z.string().nullable(),
922
+ id: z
923
+ .string()
924
+ .regex(
925
+ /[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}/
926
+ )
927
+ .uuid()
928
+ .nullish(),
929
+ versionId: z
930
+ .string()
931
+ .regex(
932
+ /[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}/
933
+ )
934
+ .uuid()
935
+ .nullish(),
936
+ "@type": z.string(),
937
+ tableName: z.string().max(200).regex(/\S/),
938
+ schemaName: z.string().nullish(),
939
+ })
940
+ .passthrough();
941
+ const Folder: z.ZodType<Folder> = z.lazy(() =>
942
+ z
943
+ .object({
944
+ name: z.string().max(200).regex(/\S/),
945
+ path: z.string().nullable(),
946
+ description: z.string().nullable(),
947
+ id: z
948
+ .string()
949
+ .regex(
950
+ /[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}/
951
+ )
952
+ .uuid()
953
+ .nullish(),
954
+ versionId: z
955
+ .string()
956
+ .regex(
957
+ /[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}/
958
+ )
959
+ .uuid()
960
+ .nullish(),
961
+ "@type": z.string(),
962
+ children: z.array(Resource).nullable(),
963
+ })
964
+ .passthrough()
965
+ );
966
+ const Resource: z.ZodType<Resource> = z.lazy(() =>
967
+ z.discriminatedUnion("@type", [ComputedView, TableView, Folder])
968
+ );
969
+ const CreateResourceDiff: z.ZodType<CreateResourceDiff> = z
970
+ .object({ "@type": z.string(), resource: Resource })
971
+ .passthrough();
972
+ const DeleteResourceDiff: z.ZodType<DeleteResourceDiff> = z
973
+ .object({ "@type": z.string(), originalResource: Resource })
974
+ .passthrough();
975
+ const UpdateResourceDiff: z.ZodType<UpdateResourceDiff> = z
976
+ .object({
977
+ "@type": z.string(),
978
+ originalResource: Resource,
979
+ updatedResource: Resource,
980
+ })
981
+ .passthrough();
982
+ const ResourceDiff: z.ZodType<ResourceDiff> = z.discriminatedUnion("@type", [
983
+ CreateResourceDiff,
984
+ DeleteResourceDiff,
985
+ UpdateResourceDiff,
986
+ ]);
987
+ const BranchResponseMetadata: z.ZodType<BranchResponseMetadata> = z
988
+ .object({ diff: z.array(ResourceDiff).nullable() })
989
+ .passthrough();
990
+ const BranchResponse: z.ZodType<BranchResponse> = z
991
+ .object({ branch: Branch, meta: BranchResponseMetadata.nullable() })
992
+ .passthrough();
993
+ const DiffBranchResponse: z.ZodType<DiffBranchResponse> = z
994
+ .object({ diff: z.array(ResourceDiff) })
995
+ .passthrough();
996
+ const UUID = z.string();
997
+ const CreateResourceChange: z.ZodType<CreateResourceChange> = z
998
+ .object({ "@type": z.string(), resource: Resource })
999
+ .passthrough();
1000
+ const UpdateResourceChange: z.ZodType<UpdateResourceChange> = z
1001
+ .object({ "@type": z.string(), resource: Resource })
1002
+ .passthrough();
1003
+ const DeleteResourceChange: z.ZodType<DeleteResourceChange> = z
1004
+ .object({
1005
+ "@type": z.string(),
1006
+ id: z
1007
+ .string()
1008
+ .regex(
1009
+ /[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}/
1010
+ )
1011
+ .uuid(),
1012
+ })
1013
+ .passthrough();
1014
+ const ResourceChange: z.ZodType<ResourceChange> = z.discriminatedUnion(
1015
+ "@type",
1016
+ [CreateResourceChange, UpdateResourceChange, DeleteResourceChange]
1017
+ );
1018
+ const CreateCommitRequest: z.ZodType<CreateCommitRequest> = z
1019
+ .object({
1020
+ commitMessage: z.string().max(1000).regex(/\S/),
1021
+ parentCommitId: UUID.regex(
1022
+ /[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}/
1023
+ ).uuid(),
1024
+ changes: z.array(ResourceChange),
1025
+ })
1026
+ .passthrough();
1027
+ const CreateCommitResponse: z.ZodType<CreateCommitResponse> = z
1028
+ .object({
1029
+ commitId: z
1030
+ .string()
1031
+ .regex(
1032
+ /[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}/
1033
+ )
1034
+ .uuid(),
1035
+ changes: z.array(ResourceChange),
1036
+ })
1037
+ .passthrough();
1038
+ const ListBranchContentResponse: z.ZodType<ListBranchContentResponse> = z
1039
+ .object({ content: Resource })
1040
+ .passthrough();
1041
+ const MergeBranchRequest: z.ZodType<MergeBranchRequest> = z
1042
+ .object({
1043
+ commitMessage: z.string(),
1044
+ sourceBranchId: UUID.regex(
1045
+ /[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}/
1046
+ ).uuid(),
1047
+ })
1048
+ .passthrough();
1049
+ const PasswordAuthentication: z.ZodType<PasswordAuthentication> = z
1050
+ .object({
1051
+ "@type": z.string(),
1052
+ username: z.string().regex(/\S/),
1053
+ password: z.string().nullish(),
1054
+ })
1055
+ .passthrough();
1056
+ const JdbcAuthentication: z.ZodType<JdbcAuthentication> =
1057
+ PasswordAuthentication;
1058
+ const PublicTunnel: z.ZodType<PublicTunnel> = z
1059
+ .object({ "@type": z.string() })
1060
+ .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(() =>
1078
+ z
1079
+ .object({
1080
+ "@type": z.string(),
1081
+ tunnel: Tunnel,
1082
+ host: z.string().regex(/\S/),
1083
+ port: z.number().int().gte(1).lte(65536).optional(),
1084
+ authentication: SSHAuthentication,
1085
+ })
1086
+ .passthrough()
1087
+ );
1088
+ const Tunnel: z.ZodType<Tunnel> = z.lazy(() =>
1089
+ z.discriminatedUnion("@type", [PublicTunnel, SSHTunnel])
1090
+ );
1091
+ const Postgres: z.ZodType<Postgres> = z
1092
+ .object({
1093
+ authentication: JdbcAuthentication,
1094
+ database: z.string().regex(/\S/),
1095
+ host: z.string().regex(/\S/),
1096
+ tunnel: Tunnel,
1097
+ "@type": z.string(),
1098
+ port: z.number().int().optional(),
1099
+ })
1100
+ .passthrough();
1101
+ const MySql: z.ZodType<MySql> = z
1102
+ .object({
1103
+ authentication: JdbcAuthentication,
1104
+ database: z.string().regex(/\S/),
1105
+ host: z.string().regex(/\S/),
1106
+ tunnel: Tunnel,
1107
+ "@type": z.string(),
1108
+ port: z.number().int().optional(),
1109
+ })
1110
+ .passthrough();
1111
+ const MSS: z.ZodType<MSS> = z
1112
+ .object({
1113
+ authentication: JdbcAuthentication,
1114
+ database: z.string().regex(/\S/),
1115
+ host: z.string().regex(/\S/),
1116
+ tunnel: Tunnel,
1117
+ "@type": z.string(),
1118
+ port: z.number().int().optional(),
1119
+ })
1120
+ .passthrough();
1121
+ const BigQueryAuthentication: z.ZodType<BigQueryAuthentication> = z
1122
+ .object({
1123
+ projectId: z.string().nullable(),
1124
+ jsonKeyFile: z.string().nullable(),
1125
+ })
1126
+ .partial()
1127
+ .passthrough();
1128
+ const BigQuery: z.ZodType<BigQuery> = z
1129
+ .object({
1130
+ tunnel: Tunnel,
1131
+ "@type": z.string(),
1132
+ authentication: BigQueryAuthentication,
1133
+ })
1134
+ .passthrough();
1135
+ const Redshift: z.ZodType<Redshift> = z
1136
+ .object({
1137
+ authentication: JdbcAuthentication,
1138
+ database: z.string().regex(/\S/),
1139
+ host: z.string().regex(/\S/),
1140
+ tunnel: Tunnel,
1141
+ "@type": z.string(),
1142
+ port: z.number().int().optional(),
1143
+ })
1144
+ .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
1152
+ .object({
1153
+ tunnel: Tunnel,
1154
+ "@type": z.string(),
1155
+ user: z.string().regex(/\S/),
1156
+ account: z.string().regex(/\S/),
1157
+ schema: z.string().nullable(),
1158
+ database: z.string().nullable(),
1159
+ authentication: SnowflakeAuthentication,
1160
+ })
1161
+ .passthrough();
1162
+ const ClickhouseConnectionType = z.enum(["HTTP", "NATIVE"]);
1163
+ const Clickhouse: z.ZodType<Clickhouse> = z
1164
+ .object({
1165
+ authentication: JdbcAuthentication,
1166
+ database: z.string().regex(/\S/),
1167
+ host: z.string().regex(/\S/),
1168
+ tunnel: Tunnel,
1169
+ "@type": z.string(),
1170
+ port: z.number().int().optional(),
1171
+ connectionType: ClickhouseConnectionType.optional(),
1172
+ })
1173
+ .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
1185
+ .object({ configuration: DataSourceConfiguration })
1186
+ .passthrough();
1187
+ const Namespace: z.ZodType<Namespace> = z
1188
+ .object({
1189
+ name: z.string().max(200).regex(/\S/),
1190
+ ignoreTableList: z.array(z.string()).optional(),
1191
+ id: z
1192
+ .string()
1193
+ .regex(
1194
+ /[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}/
1195
+ )
1196
+ .uuid()
1197
+ .optional(),
1198
+ })
1199
+ .passthrough();
1200
+ const NamespaceRequest: z.ZodType<NamespaceRequest> = z
1201
+ .object({ namespace: Namespace })
1202
+ .passthrough();
1203
+ const DataSource: z.ZodType<DataSource> = z
1204
+ .object({
1205
+ name: z.string().max(200).regex(/\S/),
1206
+ externalId: z.string().max(200).regex(/\S/),
1207
+ id: z
1208
+ .string()
1209
+ .regex(
1210
+ /[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}/
1211
+ )
1212
+ .uuid()
1213
+ .optional(),
1214
+ namespaceId: z
1215
+ .string()
1216
+ .regex(
1217
+ /[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}/
1218
+ )
1219
+ .uuid()
1220
+ .optional(),
1221
+ configuration: DataSourceConfiguration,
1222
+ })
1223
+ .passthrough();
1224
+ const NamespaceResponseMetadata: z.ZodType<NamespaceResponseMetadata> = z
1225
+ .object({
1226
+ dataSources: z.array(DataSource).nullable(),
1227
+ resources: z.array(Resource).nullable(),
1228
+ views: z.array(Resource).nullable(),
1229
+ })
1230
+ .passthrough();
1231
+ const NamespaceResponse: z.ZodType<NamespaceResponse> = z
1232
+ .object({ namespace: Namespace, meta: NamespaceResponseMetadata.nullable() })
1233
+ .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
1241
+ .object({ perPage: z.number().int().gte(1), page: z.number().int().gte(0) })
1242
+ .partial()
1243
+ .passthrough();
1244
+ const DataRequestParameters: z.ZodType<DataRequestParameters> = z
1245
+ .object({
1246
+ pagingConfiguration: PagingConfiguration,
1247
+ includeTotalResults: z.boolean(),
1248
+ })
1249
+ .partial()
1250
+ .passthrough();
1251
+ const And: z.ZodType<And> = z.lazy(() =>
1252
+ z
1253
+ .object({ "@type": z.string(), values: z.array(Filter).min(1) })
1254
+ .passthrough()
1255
+ );
1256
+ const Or: z.ZodType<Or> = z.lazy(() =>
1257
+ z
1258
+ .object({ "@type": z.string(), values: z.array(Filter).min(1) })
1259
+ .passthrough()
1260
+ );
1261
+ const Not: z.ZodType<Not> = z.lazy(() =>
1262
+ z.object({ "@type": z.string(), value: Filter }).passthrough()
1263
+ );
1264
+ const BooleanPropertyValue: z.ZodType<BooleanPropertyValue> = z
1265
+ .object({ "@type": z.string(), value: z.boolean() })
1266
+ .passthrough();
1267
+ const DatePropertyValue: z.ZodType<DatePropertyValue> = z
1268
+ .object({ "@type": z.string(), value: z.string() })
1269
+ .passthrough();
1270
+ const DateTimePropertyValue: z.ZodType<DateTimePropertyValue> = z
1271
+ .object({ "@type": z.string(), value: z.string().datetime({ offset: true }) })
1272
+ .passthrough();
1273
+ const DecimalPropertyValue: z.ZodType<DecimalPropertyValue> = z
1274
+ .object({ "@type": z.string(), value: z.number() })
1275
+ .passthrough();
1276
+ const DoublePropertyValue: z.ZodType<DoublePropertyValue> = z
1277
+ .object({ "@type": z.string(), value: z.number() })
1278
+ .passthrough();
1279
+ const IntegerPropertyValue: z.ZodType<IntegerPropertyValue> = z
1280
+ .object({ "@type": z.string(), value: z.number().int() })
1281
+ .passthrough();
1282
+ const StringPropertyValue: z.ZodType<StringPropertyValue> = z
1283
+ .object({ "@type": z.string(), value: z.string() })
1284
+ .passthrough();
1285
+ const PropertyValue: z.ZodType<PropertyValue> = z.discriminatedUnion("@type", [
1286
+ BooleanPropertyValue,
1287
+ DatePropertyValue,
1288
+ DateTimePropertyValue,
1289
+ DecimalPropertyValue,
1290
+ DoublePropertyValue,
1291
+ IntegerPropertyValue,
1292
+ StringPropertyValue,
1293
+ ]);
1294
+ const Equal: z.ZodType<Equal> = z
1295
+ .object({
1296
+ "@type": z.string(),
1297
+ propertyId: z.string().regex(/\S/),
1298
+ value: PropertyValue,
1299
+ })
1300
+ .passthrough();
1301
+ const LateBoundEqual: z.ZodType<LateBoundEqual> = z
1302
+ .object({
1303
+ "@type": z.string(),
1304
+ propertyId: z.string().regex(/\S/),
1305
+ valueVariableReference: z.string().regex(/\S/),
1306
+ })
1307
+ .passthrough();
1308
+ const In: z.ZodType<In> = z
1309
+ .object({
1310
+ "@type": z.string(),
1311
+ propertyId: z.string().regex(/\S/),
1312
+ values: z.array(PropertyValue),
1313
+ })
1314
+ .passthrough();
1315
+ const LateBoundIn: z.ZodType<LateBoundIn> = z
1316
+ .object({
1317
+ "@type": z.string(),
1318
+ propertyId: z.string().regex(/\S/),
1319
+ valueVariableReference: z.string().regex(/\S/),
1320
+ })
1321
+ .passthrough();
1322
+ const LessThan: z.ZodType<LessThan> = z
1323
+ .object({
1324
+ "@type": z.string(),
1325
+ propertyId: z.string().regex(/\S/),
1326
+ value: PropertyValue,
1327
+ })
1328
+ .passthrough();
1329
+ const LessThanOrEqual: z.ZodType<LessThanOrEqual> = z
1330
+ .object({
1331
+ "@type": z.string(),
1332
+ propertyId: z.string().regex(/\S/),
1333
+ value: PropertyValue,
1334
+ })
1335
+ .passthrough();
1336
+ const GreaterThan: z.ZodType<GreaterThan> = z
1337
+ .object({
1338
+ "@type": z.string(),
1339
+ propertyId: z.string().regex(/\S/),
1340
+ value: PropertyValue,
1341
+ })
1342
+ .passthrough();
1343
+ const GreaterThanOrEqual: z.ZodType<GreaterThanOrEqual> = z
1344
+ .object({
1345
+ "@type": z.string(),
1346
+ propertyId: z.string().regex(/\S/),
1347
+ value: PropertyValue,
1348
+ })
1349
+ .passthrough();
1350
+ const LateBoundLessThan: z.ZodType<LateBoundLessThan> = z
1351
+ .object({
1352
+ "@type": z.string(),
1353
+ propertyId: z.string().regex(/\S/),
1354
+ valueVariableReference: z.string().regex(/\S/),
1355
+ })
1356
+ .passthrough();
1357
+ const LateBoundLessThanOrEqual: z.ZodType<LateBoundLessThanOrEqual> = z
1358
+ .object({
1359
+ "@type": z.string(),
1360
+ propertyId: z.string().regex(/\S/),
1361
+ valueVariableReference: z.string().regex(/\S/),
1362
+ })
1363
+ .passthrough();
1364
+ const LateBoundGreaterThan: z.ZodType<LateBoundGreaterThan> = z
1365
+ .object({
1366
+ "@type": z.string(),
1367
+ propertyId: z.string().regex(/\S/),
1368
+ valueVariableReference: z.string().regex(/\S/),
1369
+ })
1370
+ .passthrough();
1371
+ const LateBoundGreaterThanOrEqual: z.ZodType<LateBoundGreaterThanOrEqual> = z
1372
+ .object({
1373
+ "@type": z.string(),
1374
+ propertyId: z.string().regex(/\S/),
1375
+ valueVariableReference: z.string().regex(/\S/),
1376
+ })
1377
+ .passthrough();
1378
+ const Null: z.ZodType<Null> = z
1379
+ .object({ "@type": z.string(), propertyId: z.string().regex(/\S/) })
1380
+ .passthrough();
1381
+ const StringContains: z.ZodType<StringContains> = z
1382
+ .object({
1383
+ "@type": z.string(),
1384
+ propertyId: z.string().regex(/\S/),
1385
+ value: StringPropertyValue,
1386
+ caseInsensitive: z.boolean(),
1387
+ })
1388
+ .passthrough();
1389
+ const LateBoundStringContains: z.ZodType<LateBoundStringContains> = z
1390
+ .object({
1391
+ "@type": z.string(),
1392
+ propertyId: z.string().regex(/\S/),
1393
+ valueVariableReference: z.string().regex(/\S/),
1394
+ caseInsensitive: z.boolean(),
1395
+ })
1396
+ .passthrough();
1397
+ const Filter: z.ZodType<Filter> = z.lazy(() =>
1398
+ z.discriminatedUnion("@type", [
1399
+ And,
1400
+ Or,
1401
+ Not,
1402
+ Equal,
1403
+ LateBoundEqual,
1404
+ In,
1405
+ LateBoundIn,
1406
+ LessThan,
1407
+ LessThanOrEqual,
1408
+ GreaterThan,
1409
+ GreaterThanOrEqual,
1410
+ LateBoundLessThan,
1411
+ LateBoundLessThanOrEqual,
1412
+ LateBoundGreaterThan,
1413
+ LateBoundGreaterThanOrEqual,
1414
+ Null,
1415
+ StringContains,
1416
+ LateBoundStringContains,
1417
+ ])
1418
+ );
1419
+ const Aggregation = z.enum([
1420
+ "avg",
1421
+ "count",
1422
+ "count-distinct",
1423
+ "max",
1424
+ "min",
1425
+ "percentile",
1426
+ "sum",
1427
+ ]);
1428
+ const AggregationOption: z.ZodType<AggregationOption> = z
1429
+ .object({ decimalValue: z.number() })
1430
+ .passthrough();
1431
+ const AggregateProperty: z.ZodType<AggregateProperty> = z
1432
+ .object({
1433
+ targetPropertyId: z.string().nullable(),
1434
+ "@type": z.string(),
1435
+ propertyId: z.string().nullable(),
1436
+ aggregation: Aggregation,
1437
+ aggregationOption: AggregationOption.nullish(),
1438
+ })
1439
+ .passthrough();
1440
+ const SourceProperty: z.ZodType<SourceProperty> = z
1441
+ .object({
1442
+ targetPropertyId: z.string().nullable(),
1443
+ "@type": z.string(),
1444
+ propertyId: z.string().regex(/\S/),
1445
+ })
1446
+ .passthrough();
1447
+ const FormulaProperty: z.ZodType<FormulaProperty> = z
1448
+ .object({
1449
+ targetPropertyId: z.string().nullable(),
1450
+ "@type": z.string(),
1451
+ formula: z.string(),
1452
+ })
1453
+ .passthrough();
1454
+ const Property: z.ZodType<Property> = z.discriminatedUnion("@type", [
1455
+ AggregateProperty,
1456
+ SourceProperty,
1457
+ FormulaProperty,
1458
+ ]);
1459
+ const CalendarInterval = z.enum([
1460
+ "year",
1461
+ "month",
1462
+ "week",
1463
+ "day",
1464
+ "hour",
1465
+ "minute",
1466
+ ]);
1467
+ const CalendarIntervalGrouping: z.ZodType<CalendarIntervalGrouping> = z
1468
+ .object({
1469
+ propertyId: z.string().regex(/\S/),
1470
+ targetPropertyId: z.string().nullable(),
1471
+ "@type": z.string(),
1472
+ calendarInterval: CalendarInterval,
1473
+ targetTimezone: z.string().optional(),
1474
+ })
1475
+ .passthrough();
1476
+ const DatePart = z.enum([
1477
+ "day-of-week",
1478
+ "day-of-month",
1479
+ "month-of-year",
1480
+ "hour-of-day",
1481
+ ]);
1482
+ const DatePartGrouping: z.ZodType<DatePartGrouping> = z
1483
+ .object({
1484
+ propertyId: z.string().regex(/\S/),
1485
+ targetPropertyId: z.string().nullable(),
1486
+ "@type": z.string(),
1487
+ datePart: DatePart,
1488
+ targetTimezone: z.string().optional(),
1489
+ })
1490
+ .passthrough();
1491
+ const DecimalIntervalGrouping: z.ZodType<DecimalIntervalGrouping> = z
1492
+ .object({
1493
+ propertyId: z.string().regex(/\S/),
1494
+ targetPropertyId: z.string().nullable(),
1495
+ "@type": z.string(),
1496
+ interval: z.number().gt(0),
1497
+ })
1498
+ .passthrough();
1499
+ const IntegerIntervalGrouping: z.ZodType<IntegerIntervalGrouping> = z
1500
+ .object({
1501
+ propertyId: z.string().regex(/\S/),
1502
+ targetPropertyId: z.string().nullable(),
1503
+ "@type": z.string(),
1504
+ interval: z.number().int().gt(0),
1505
+ })
1506
+ .passthrough();
1507
+ const ValueGrouping: z.ZodType<ValueGrouping> = z
1508
+ .object({
1509
+ propertyId: z.string().regex(/\S/),
1510
+ targetPropertyId: z.string().nullable(),
1511
+ "@type": z.string(),
1512
+ })
1513
+ .passthrough();
1514
+ const Grouping: z.ZodType<Grouping> = z.discriminatedUnion("@type", [
1515
+ CalendarIntervalGrouping,
1516
+ DatePartGrouping,
1517
+ DecimalIntervalGrouping,
1518
+ IntegerIntervalGrouping,
1519
+ ValueGrouping,
1520
+ ]);
1521
+ const SortDirection = z.enum(["asc", "desc"]);
1522
+ const Sort: z.ZodType<Sort> = z
1523
+ .object({ sortDirection: SortDirection, propertyId: z.string().regex(/\S/) })
1524
+ .passthrough();
1525
+ const And1: z.ZodType<And1> = z.lazy(() =>
1526
+ z
1527
+ .object({ "@type": z.string(), values: z.array(Having).min(1) })
1528
+ .passthrough()
1529
+ );
1530
+ const Or1: z.ZodType<Or1> = z.lazy(() =>
1531
+ z
1532
+ .object({ "@type": z.string(), values: z.array(Having).min(1) })
1533
+ .passthrough()
1534
+ );
1535
+ const Not1: z.ZodType<Not1> = z.lazy(() =>
1536
+ z.object({ "@type": z.string(), value: Having }).passthrough()
1537
+ );
1538
+ const Equal1: z.ZodType<Equal1> = z
1539
+ .object({ "@type": z.string(), property: Property, value: PropertyValue })
1540
+ .passthrough();
1541
+ const LateBoundEqual1: z.ZodType<LateBoundEqual1> = z
1542
+ .object({
1543
+ "@type": z.string(),
1544
+ property: Property,
1545
+ valueVariableReference: z.string().regex(/\S/),
1546
+ })
1547
+ .passthrough();
1548
+ const In1: z.ZodType<In1> = z
1549
+ .object({
1550
+ "@type": z.string(),
1551
+ property: Property,
1552
+ values: z.array(PropertyValue),
1553
+ })
1554
+ .passthrough();
1555
+ const LateBoundIn1: z.ZodType<LateBoundIn1> = z
1556
+ .object({
1557
+ "@type": z.string(),
1558
+ property: Property,
1559
+ valueVariableReference: z.string().regex(/\S/),
1560
+ })
1561
+ .passthrough();
1562
+ const LessThan1: z.ZodType<LessThan1> = z
1563
+ .object({ "@type": z.string(), property: Property, value: PropertyValue })
1564
+ .passthrough();
1565
+ const LessThanOrEqual1: z.ZodType<LessThanOrEqual1> = z
1566
+ .object({ "@type": z.string(), property: Property, value: PropertyValue })
1567
+ .passthrough();
1568
+ const GreaterThan1: z.ZodType<GreaterThan1> = z
1569
+ .object({ "@type": z.string(), property: Property, value: PropertyValue })
1570
+ .passthrough();
1571
+ const GreaterThanOrEqual1: z.ZodType<GreaterThanOrEqual1> = z
1572
+ .object({ "@type": z.string(), property: Property, value: PropertyValue })
1573
+ .passthrough();
1574
+ const LateBoundLessThan1: z.ZodType<LateBoundLessThan1> = z
1575
+ .object({
1576
+ "@type": z.string(),
1577
+ property: Property,
1578
+ valueVariableReference: z.string().regex(/\S/),
1579
+ })
1580
+ .passthrough();
1581
+ const LateBoundLessThanOrEqual1: z.ZodType<LateBoundLessThanOrEqual1> = z
1582
+ .object({
1583
+ "@type": z.string(),
1584
+ property: Property,
1585
+ valueVariableReference: z.string().regex(/\S/),
1586
+ })
1587
+ .passthrough();
1588
+ const LateBoundGreaterThan1: z.ZodType<LateBoundGreaterThan1> = z
1589
+ .object({
1590
+ "@type": z.string(),
1591
+ property: Property,
1592
+ valueVariableReference: z.string().regex(/\S/),
1593
+ })
1594
+ .passthrough();
1595
+ const LateBoundGreaterThanOrEqual1: z.ZodType<LateBoundGreaterThanOrEqual1> = z
1596
+ .object({
1597
+ "@type": z.string(),
1598
+ property: Property,
1599
+ valueVariableReference: z.string().regex(/\S/),
1600
+ })
1601
+ .passthrough();
1602
+ const Null1: z.ZodType<Null1> = z
1603
+ .object({ "@type": z.string(), property: Property })
1604
+ .passthrough();
1605
+ const StringContains1: z.ZodType<StringContains1> = z
1606
+ .object({
1607
+ "@type": z.string(),
1608
+ property: Property,
1609
+ value: StringPropertyValue,
1610
+ caseInsensitive: z.boolean(),
1611
+ })
1612
+ .passthrough();
1613
+ const LateBoundStringContains1: z.ZodType<LateBoundStringContains1> = z
1614
+ .object({
1615
+ "@type": z.string(),
1616
+ property: Property,
1617
+ valueVariableReference: z.string().regex(/\S/),
1618
+ caseInsensitive: z.boolean(),
1619
+ })
1620
+ .passthrough();
1621
+ const Having: z.ZodType<Having> = z.lazy(() =>
1622
+ z.discriminatedUnion("@type", [
1623
+ And1,
1624
+ Or1,
1625
+ Not1,
1626
+ Equal1,
1627
+ LateBoundEqual1,
1628
+ In1,
1629
+ LateBoundIn1,
1630
+ LessThan1,
1631
+ LessThanOrEqual1,
1632
+ GreaterThan1,
1633
+ GreaterThanOrEqual1,
1634
+ LateBoundLessThan1,
1635
+ LateBoundLessThanOrEqual1,
1636
+ LateBoundGreaterThan1,
1637
+ LateBoundGreaterThanOrEqual1,
1638
+ Null1,
1639
+ StringContains1,
1640
+ LateBoundStringContains1,
1641
+ ])
1642
+ );
1643
+ const Computation: z.ZodType<Computation> = z
1644
+ .object({
1645
+ filter: Filter.nullable(),
1646
+ properties: z.array(Property),
1647
+ groupings: z.array(Grouping),
1648
+ sorts: z.array(Sort),
1649
+ having: Having.nullable(),
1650
+ includeRollup: z.boolean().optional(),
1651
+ })
1652
+ .passthrough();
1653
+ const QueryPreviewRequest: z.ZodType<QueryPreviewRequest> = z
1654
+ .object({
1655
+ query: z.string().regex(/\S/),
1656
+ dataRequestParameters: DataRequestParameters,
1657
+ queryContext: z.object({}).partial().passthrough(),
1658
+ computation: Computation.nullable(),
1659
+ })
1660
+ .passthrough();
1661
+ const DataRecord: z.ZodType<DataRecord> = z
1662
+ .object({ propertyValues: z.record(z.array(PropertyValue)) })
1663
+ .passthrough();
1664
+ const DataPage: z.ZodType<DataPage> = z
1665
+ .object({ dataRecords: z.array(DataRecord) })
1666
+ .passthrough();
1667
+ const DataSchema: z.ZodType<DataSchema> = z
1668
+ .object({ propertySchema: z.array(PropertySchema) })
1669
+ .passthrough();
1670
+ const DataResponseMetadata: z.ZodType<DataResponseMetadata> = z
1671
+ .object({
1672
+ schema: DataSchema,
1673
+ totalResults: z.number().int().nullable(),
1674
+ renderedQuery: z.string().nullable(),
1675
+ })
1676
+ .passthrough();
1677
+ const CacheTelemetry: z.ZodType<CacheTelemetry> = z
1678
+ .object({
1679
+ cacheHit: z.boolean(),
1680
+ recordedAt: z.string().datetime({ offset: true }).nullable(),
1681
+ ttl: z.string().nullable(),
1682
+ })
1683
+ .passthrough();
1684
+ const RequestTelemetry: z.ZodType<RequestTelemetry> = z
1685
+ .object({
1686
+ requestTime: z.string().nullable(),
1687
+ queryTime: z.string().nullable(),
1688
+ processingTime: z.string().nullable(),
1689
+ cacheTelemetry: CacheTelemetry.nullish(),
1690
+ })
1691
+ .passthrough();
1692
+ const QueryExecutionResponse: z.ZodType<QueryExecutionResponse> = z
1693
+ .object({
1694
+ data: DataPage,
1695
+ meta: DataResponseMetadata,
1696
+ requestTelemetry: RequestTelemetry.nullable(),
1697
+ })
1698
+ .passthrough();
1699
+ const QueryExecutionError: z.ZodType<QueryExecutionError> = z
1700
+ .object({
1701
+ renderedQuery: z.string().nullable(),
1702
+ requestTelemetry: RequestTelemetry.nullable(),
1703
+ message: z.string().nullable(),
1704
+ "@type": z.string(),
1705
+ })
1706
+ .passthrough();
1707
+ const TablePreviewRequest: z.ZodType<TablePreviewRequest> = z
1708
+ .object({
1709
+ tableIdentifier: z.string().regex(/\S/),
1710
+ dataRequestParameters: DataRequestParameters,
1711
+ })
1712
+ .passthrough();
1713
+ const ExportFormat = z.enum(["CSV", "TSV", "XLSX"]);
1714
+ const DateTimeFormat: z.ZodType<DateTimeFormat> = z
1715
+ .object({ pattern: z.string(), exportFormat: z.string().optional() })
1716
+ .passthrough();
1717
+ const DateTimeColumnFormat: z.ZodType<DateTimeColumnFormat> = z
1718
+ .object({
1719
+ "@type": z.string(),
1720
+ dateTimeFormatPattern: DateTimeFormat.nullish(),
1721
+ pattern: z.string().nullish(),
1722
+ locale: z.string().nullable(),
1723
+ targetTimezone: z.string().optional(),
1724
+ })
1725
+ .passthrough();
1726
+ const UnitOfMeasurement = z.literal("CURRENCY");
1727
+ const DecimalColumnFormat: z.ZodType<DecimalColumnFormat> = z
1728
+ .object({
1729
+ "@type": z.string(),
1730
+ decimalFormat: z.string().nullable(),
1731
+ locale: z.string().nullable(),
1732
+ unitOfMeasurement: UnitOfMeasurement.optional(),
1733
+ zeroReplacement: z.string().nullable(),
1734
+ multiplier: z.number().nullable(),
1735
+ })
1736
+ .passthrough();
1737
+ const DurationColumnFormat: z.ZodType<DurationColumnFormat> = z
1738
+ .object({ "@type": z.string(), durationPattern: z.string().nullable() })
1739
+ .passthrough();
1740
+ const ColumnFormat: z.ZodType<ColumnFormat> = z.discriminatedUnion("@type", [
1741
+ DateTimeColumnFormat,
1742
+ DecimalColumnFormat,
1743
+ DurationColumnFormat,
1744
+ ]);
1745
+ const ExportColumnOptions: z.ZodType<ExportColumnOptions> = z
1746
+ .object({
1747
+ targetPropertyId: z.string(),
1748
+ displayName: z.string().nullable(),
1749
+ columnFormat: ColumnFormat.nullable(),
1750
+ })
1751
+ .passthrough();
1752
+ const ExportTargetConfiguration: z.ZodType<ExportTargetConfiguration> = z
1753
+ .object({
1754
+ fileName: z.string().nullable(),
1755
+ exportFormat: ExportFormat,
1756
+ columnDisplayOptions: z.array(ExportColumnOptions),
1757
+ })
1758
+ .passthrough();
1759
+ const EmailConfiguration: z.ZodType<EmailConfiguration> = z
1760
+ .object({
1761
+ recipientEmails: z.array(z.string()).min(1),
1762
+ subject: z.string().nullable(),
1763
+ body: z.string().nullable(),
1764
+ })
1765
+ .passthrough();
1766
+ const ViewExportRequest: z.ZodType<ViewExportRequest> = z
1767
+ .object({
1768
+ queryContext: z.object({}).partial().passthrough(),
1769
+ computation: Computation.nullable(),
1770
+ exportConfiguration: ExportTargetConfiguration,
1771
+ emailConfiguration: EmailConfiguration.nullable(),
1772
+ })
1773
+ .passthrough();
1774
+ const QueryExportEmailResponse: z.ZodType<QueryExportEmailResponse> = z
1775
+ .object({ "@type": z.string() })
1776
+ .passthrough();
1777
+ const QueryExportLinkResponse: z.ZodType<QueryExportLinkResponse> = z
1778
+ .object({ "@type": z.string(), url: z.string().regex(/\S/) })
1779
+ .passthrough();
1780
+ const QueryExportResponse: z.ZodType<QueryExportResponse> =
1781
+ z.discriminatedUnion("@type", [
1782
+ QueryExportEmailResponse,
1783
+ QueryExportLinkResponse,
1784
+ ]);
1785
+ const RequestExecutionParameters: z.ZodType<RequestExecutionParameters> = z
1786
+ .object({ forceRefresh: z.boolean() })
1787
+ .partial()
1788
+ .passthrough();
1789
+ const ViewRunRequest: z.ZodType<ViewRunRequest> = z
1790
+ .object({
1791
+ dataRequestParameters: DataRequestParameters,
1792
+ requestExecutionParameters: RequestExecutionParameters.nullable(),
1793
+ queryContext: z.object({}).partial().passthrough(),
1794
+ computation: Computation.nullable(),
1795
+ })
1796
+ .passthrough();
1797
+ const View: z.ZodType<View> = z
1798
+ .object({
1799
+ name: z.string().max(200).regex(/\S/),
1800
+ path: z.string().nullable(),
1801
+ description: z.string().nullable(),
1802
+ id: z
1803
+ .string()
1804
+ .regex(
1805
+ /[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}/
1806
+ )
1807
+ .uuid()
1808
+ .nullish(),
1809
+ versionId: z
1810
+ .string()
1811
+ .regex(
1812
+ /[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}/
1813
+ )
1814
+ .uuid()
1815
+ .nullish(),
1816
+ columnDefinitions: z.array(PropertySchema),
1817
+ namespaceId: z
1818
+ .string()
1819
+ .regex(
1820
+ /[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}/
1821
+ )
1822
+ .uuid()
1823
+ .nullish(),
1824
+ })
1825
+ .passthrough();
1826
+ const ViewResponse: z.ZodType<ViewResponse> = z
1827
+ .object({ view: View })
1828
+ .passthrough();
1829
+ const ListViewsResponse: z.ZodType<ListViewsResponse> = z
1830
+ .object({ views: z.array(ViewResponse) })
1831
+ .passthrough();
1832
+ const TenantS3Configuration: z.ZodType<TenantS3Configuration> = z
1833
+ .object({
1834
+ prefix: z.string(),
1835
+ bucket: z.string(),
1836
+ region: z.string(),
1837
+ roleArn: z.string(),
1838
+ })
1839
+ .passthrough();
1840
+ const TenantRequest: z.ZodType<TenantRequest> = z
1841
+ .object({
1842
+ configurationOverrides: z.record(z.string()).optional(),
1843
+ s3Configuration: TenantS3Configuration.nullable(),
1844
+ })
1845
+ .passthrough();
1846
+ const TenantKey: z.ZodType<TenantKey> = z
1847
+ .object({
1848
+ id: z
1849
+ .string()
1850
+ .regex(
1851
+ /[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}/
1852
+ )
1853
+ .uuid(),
1854
+ createdAt: z.string().datetime({ offset: true }),
1855
+ value: z.string().nullable(),
1856
+ })
1857
+ .passthrough();
1858
+ const Tenant: z.ZodType<Tenant> = z
1859
+ .object({
1860
+ id: z
1861
+ .string()
1862
+ .regex(
1863
+ /[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}/
1864
+ )
1865
+ .uuid(),
1866
+ keys: z.array(TenantKey).optional(),
1867
+ configurationOverrides: z.record(z.string()).optional(),
1868
+ s3Configuration: TenantS3Configuration.nullable(),
1869
+ })
1870
+ .passthrough();
1871
+ const TenantResponse: z.ZodType<TenantResponse> = z
1872
+ .object({ tenant: Tenant })
1873
+ .passthrough();
1874
+ const VersionedViewRequest: z.ZodType<VersionedViewRequest> = z
1875
+ .object({
1876
+ id: UUID.regex(
1877
+ /[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}/
1878
+ ).uuid(),
1879
+ versionId: UUID.regex(
1880
+ /[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
+ ).uuid(),
1882
+ })
1883
+ .passthrough();
1884
+ const ListVersionedViewsRequest: z.ZodType<ListVersionedViewsRequest> = z
1885
+ .object({ requests: z.array(VersionedViewRequest) })
1886
+ .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
+
1949
+ export const schemas = {
1950
+ Branch,
1951
+ ListBranchResponse,
1952
+ ClientError,
1953
+ BranchRequest,
1954
+ PropertyType,
1955
+ PropertySchema,
1956
+ Parameter,
1957
+ ScheduledEviction,
1958
+ TtlEviction,
1959
+ EvictionPolicy,
1960
+ ComputedView,
1961
+ TableView,
1962
+ Folder,
1963
+ Resource,
1964
+ CreateResourceDiff,
1965
+ DeleteResourceDiff,
1966
+ UpdateResourceDiff,
1967
+ ResourceDiff,
1968
+ BranchResponseMetadata,
1969
+ BranchResponse,
1970
+ DiffBranchResponse,
1971
+ UUID,
1972
+ CreateResourceChange,
1973
+ UpdateResourceChange,
1974
+ DeleteResourceChange,
1975
+ ResourceChange,
1976
+ CreateCommitRequest,
1977
+ CreateCommitResponse,
1978
+ ListBranchContentResponse,
1979
+ MergeBranchRequest,
1980
+ PasswordAuthentication,
1981
+ JdbcAuthentication,
1982
+ PublicTunnel,
1983
+ VendorPrivateKeyAuthentication,
1984
+ TenantPrivateKeyAuthentication,
1985
+ SSHAuthentication,
1986
+ SSHTunnel,
1987
+ Tunnel,
1988
+ Postgres,
1989
+ MySql,
1990
+ MSS,
1991
+ BigQueryAuthentication,
1992
+ BigQuery,
1993
+ Redshift,
1994
+ SnowflakePasswordAuthentication,
1995
+ SnowflakeAuthentication,
1996
+ Snowflake,
1997
+ ClickhouseConnectionType,
1998
+ Clickhouse,
1999
+ DataSourceConfiguration,
2000
+ TestConnectionRequest,
2001
+ Namespace,
2002
+ NamespaceRequest,
2003
+ DataSource,
2004
+ NamespaceResponseMetadata,
2005
+ NamespaceResponse,
2006
+ DataSourceRequest,
2007
+ DataSourceResponse,
2008
+ PagingConfiguration,
2009
+ DataRequestParameters,
2010
+ And,
2011
+ Or,
2012
+ Not,
2013
+ BooleanPropertyValue,
2014
+ DatePropertyValue,
2015
+ DateTimePropertyValue,
2016
+ DecimalPropertyValue,
2017
+ DoublePropertyValue,
2018
+ IntegerPropertyValue,
2019
+ StringPropertyValue,
2020
+ PropertyValue,
2021
+ Equal,
2022
+ LateBoundEqual,
2023
+ In,
2024
+ LateBoundIn,
2025
+ LessThan,
2026
+ LessThanOrEqual,
2027
+ GreaterThan,
2028
+ GreaterThanOrEqual,
2029
+ LateBoundLessThan,
2030
+ LateBoundLessThanOrEqual,
2031
+ LateBoundGreaterThan,
2032
+ LateBoundGreaterThanOrEqual,
2033
+ Null,
2034
+ StringContains,
2035
+ LateBoundStringContains,
2036
+ Filter,
2037
+ Aggregation,
2038
+ AggregationOption,
2039
+ AggregateProperty,
2040
+ SourceProperty,
2041
+ FormulaProperty,
2042
+ Property,
2043
+ CalendarInterval,
2044
+ CalendarIntervalGrouping,
2045
+ DatePart,
2046
+ DatePartGrouping,
2047
+ DecimalIntervalGrouping,
2048
+ IntegerIntervalGrouping,
2049
+ ValueGrouping,
2050
+ Grouping,
2051
+ SortDirection,
2052
+ Sort,
2053
+ And1,
2054
+ Or1,
2055
+ Not1,
2056
+ Equal1,
2057
+ LateBoundEqual1,
2058
+ In1,
2059
+ LateBoundIn1,
2060
+ LessThan1,
2061
+ LessThanOrEqual1,
2062
+ GreaterThan1,
2063
+ GreaterThanOrEqual1,
2064
+ LateBoundLessThan1,
2065
+ LateBoundLessThanOrEqual1,
2066
+ LateBoundGreaterThan1,
2067
+ LateBoundGreaterThanOrEqual1,
2068
+ Null1,
2069
+ StringContains1,
2070
+ LateBoundStringContains1,
2071
+ Having,
2072
+ Computation,
2073
+ QueryPreviewRequest,
2074
+ DataRecord,
2075
+ DataPage,
2076
+ DataSchema,
2077
+ DataResponseMetadata,
2078
+ CacheTelemetry,
2079
+ RequestTelemetry,
2080
+ QueryExecutionResponse,
2081
+ QueryExecutionError,
2082
+ TablePreviewRequest,
2083
+ ExportFormat,
2084
+ DateTimeFormat,
2085
+ DateTimeColumnFormat,
2086
+ UnitOfMeasurement,
2087
+ DecimalColumnFormat,
2088
+ DurationColumnFormat,
2089
+ ColumnFormat,
2090
+ ExportColumnOptions,
2091
+ ExportTargetConfiguration,
2092
+ EmailConfiguration,
2093
+ ViewExportRequest,
2094
+ QueryExportEmailResponse,
2095
+ QueryExportLinkResponse,
2096
+ QueryExportResponse,
2097
+ RequestExecutionParameters,
2098
+ ViewRunRequest,
2099
+ View,
2100
+ ViewResponse,
2101
+ ListViewsResponse,
2102
+ TenantS3Configuration,
2103
+ TenantRequest,
2104
+ TenantKey,
2105
+ Tenant,
2106
+ TenantResponse,
2107
+ VersionedViewRequest,
2108
+ ListVersionedViewsRequest,
2109
+ Commit,
2110
+ CommitResponse,
2111
+ QueryTimeoutError,
2112
+ DataSourceError,
2113
+ ListNamespacesResponse,
2114
+ ListViewsRequest,
2115
+ SearchBranchContentResponse,
2116
+ TestConnectionResponse,
2117
+ ViewRequest,
2118
+ ViewResponse1,
2119
+ };
2120
+
2121
+ const Branch_ResourceEndpoints = makeApi([
2122
+ {
2123
+ method: "get",
2124
+ path: "/v1/branches",
2125
+ alias: "listBranches",
2126
+ requestFormat: "json",
2127
+ response: ListBranchResponse,
2128
+ errors: [
2129
+ {
2130
+ status: NaN,
2131
+ description: `An error related to the user request`,
2132
+ schema: ClientError,
2133
+ },
2134
+ ],
2135
+ },
2136
+ {
2137
+ method: "post",
2138
+ path: "/v1/branches",
2139
+ alias: "createBranch",
2140
+ requestFormat: "json",
2141
+ parameters: [
2142
+ {
2143
+ name: "body",
2144
+ description: `Branch to create`,
2145
+ type: "Body",
2146
+ schema: BranchRequest,
2147
+ },
2148
+ ],
2149
+ response: BranchResponse,
2150
+ errors: [
2151
+ {
2152
+ status: NaN,
2153
+ description: `An error related to the user request`,
2154
+ schema: ClientError,
2155
+ },
2156
+ ],
2157
+ },
2158
+ {
2159
+ method: "get",
2160
+ path: "/v1/branches/diff",
2161
+ alias: "diffBranch",
2162
+ requestFormat: "json",
2163
+ parameters: [
2164
+ {
2165
+ name: "from",
2166
+ type: "Query",
2167
+ schema: z
2168
+ .string()
2169
+ .regex(
2170
+ /[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}/
2171
+ )
2172
+ .uuid()
2173
+ .optional(),
2174
+ },
2175
+ {
2176
+ name: "to",
2177
+ type: "Query",
2178
+ schema: z
2179
+ .string()
2180
+ .regex(
2181
+ /[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}/
2182
+ )
2183
+ .uuid()
2184
+ .optional(),
2185
+ },
2186
+ ],
2187
+ response: DiffBranchResponse,
2188
+ errors: [
2189
+ {
2190
+ status: NaN,
2191
+ description: `An error related to the user request`,
2192
+ schema: ClientError,
2193
+ },
2194
+ ],
2195
+ },
2196
+ {
2197
+ method: "get",
2198
+ path: "/v1/branches/:id",
2199
+ alias: "getBranch",
2200
+ requestFormat: "json",
2201
+ parameters: [
2202
+ {
2203
+ name: "id",
2204
+ type: "Path",
2205
+ schema: z
2206
+ .string()
2207
+ .regex(
2208
+ /[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}/
2209
+ )
2210
+ .uuid(),
2211
+ },
2212
+ {
2213
+ name: "includeMeta",
2214
+ type: "Query",
2215
+ schema: z.boolean().optional().default(false),
2216
+ },
2217
+ ],
2218
+ response: BranchResponse,
2219
+ errors: [
2220
+ {
2221
+ status: NaN,
2222
+ description: `An error related to the user request`,
2223
+ schema: ClientError,
2224
+ },
2225
+ ],
2226
+ },
2227
+ {
2228
+ method: "post",
2229
+ path: "/v1/branches/:targetBranchId/merge",
2230
+ alias: "mergeBranch",
2231
+ requestFormat: "json",
2232
+ parameters: [
2233
+ {
2234
+ name: "body",
2235
+ description: `Options for merge`,
2236
+ type: "Body",
2237
+ schema: MergeBranchRequest,
2238
+ },
2239
+ {
2240
+ name: "targetBranchId",
2241
+ type: "Path",
2242
+ schema: z
2243
+ .string()
2244
+ .regex(
2245
+ /[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}/
2246
+ )
2247
+ .uuid(),
2248
+ },
2249
+ {
2250
+ name: "isForce",
2251
+ type: "Query",
2252
+ schema: z.boolean(),
2253
+ },
2254
+ ],
2255
+ response: BranchResponse,
2256
+ errors: [
2257
+ {
2258
+ status: NaN,
2259
+ description: `An error related to the user request`,
2260
+ schema: ClientError,
2261
+ },
2262
+ ],
2263
+ },
2264
+ ]);
2265
+
2266
+ export const Branch_ResourceApi = new Zodios(Branch_ResourceEndpoints);
2267
+
2268
+ const Commit_ResourceEndpoints = makeApi([
2269
+ {
2270
+ method: "post",
2271
+ path: "/v1/branches/:branchId/commits",
2272
+ alias: "createCommit",
2273
+ requestFormat: "json",
2274
+ parameters: [
2275
+ {
2276
+ name: "body",
2277
+ description: `Branch to create`,
2278
+ type: "Body",
2279
+ schema: CreateCommitRequest,
2280
+ },
2281
+ {
2282
+ name: "branchId",
2283
+ type: "Path",
2284
+ schema: z
2285
+ .string()
2286
+ .regex(
2287
+ /[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}/
2288
+ )
2289
+ .uuid(),
2290
+ },
2291
+ ],
2292
+ response: CreateCommitResponse,
2293
+ errors: [
2294
+ {
2295
+ status: NaN,
2296
+ description: `An error related to the user request`,
2297
+ schema: ClientError,
2298
+ },
2299
+ ],
2300
+ },
2301
+ ]);
2302
+
2303
+ export const Commit_ResourceApi = new Zodios(Commit_ResourceEndpoints);
2304
+
2305
+ const Branch_Content_ResourceEndpoints = makeApi([
2306
+ {
2307
+ method: "get",
2308
+ path: "/v1/branches/:id/contents:path",
2309
+ alias: "listBranchContent",
2310
+ requestFormat: "json",
2311
+ parameters: [
2312
+ {
2313
+ name: "id",
2314
+ type: "Path",
2315
+ schema: z
2316
+ .string()
2317
+ .regex(
2318
+ /[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}/
2319
+ )
2320
+ .uuid(),
2321
+ },
2322
+ {
2323
+ name: "path",
2324
+ type: "Path",
2325
+ schema: z
2326
+ .string()
2327
+ .regex(/(\/.+)?/)
2328
+ .default("/"),
2329
+ },
2330
+ {
2331
+ name: "page",
2332
+ type: "Query",
2333
+ schema: z.number().int().optional().default(0),
2334
+ },
2335
+ {
2336
+ name: "perPage",
2337
+ type: "Query",
2338
+ schema: z.number().int().optional().default(50),
2339
+ },
2340
+ ],
2341
+ response: ListBranchContentResponse,
2342
+ errors: [
2343
+ {
2344
+ status: NaN,
2345
+ description: `An error related to the user request`,
2346
+ schema: ClientError,
2347
+ },
2348
+ ],
2349
+ },
2350
+ ]);
2351
+
2352
+ export const Branch_Content_ResourceApi = new Zodios(
2353
+ Branch_Content_ResourceEndpoints
2354
+ );
2355
+
2356
+ const Test_Connection_ResourceEndpoints = makeApi([
2357
+ {
2358
+ method: "post",
2359
+ path: "/v1/data-sources/retest-connection/:id",
2360
+ alias: "retestConnection",
2361
+ requestFormat: "json",
2362
+ parameters: [
2363
+ {
2364
+ name: "body",
2365
+ description: `Data Source configuration to retry to connect to`,
2366
+ type: "Body",
2367
+ schema: TestConnectionRequest,
2368
+ },
2369
+ {
2370
+ name: "id",
2371
+ type: "Path",
2372
+ schema: z
2373
+ .string()
2374
+ .regex(
2375
+ /[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}/
2376
+ )
2377
+ .uuid(),
2378
+ },
2379
+ ],
2380
+ response: z
2381
+ .object({ numberOfTables: z.number().int().gte(0) })
2382
+ .passthrough(),
2383
+ errors: [
2384
+ {
2385
+ status: NaN,
2386
+ description: `An error related to the user request`,
2387
+ schema: ClientError,
2388
+ },
2389
+ ],
2390
+ },
2391
+ {
2392
+ method: "post",
2393
+ path: "/v1/data-sources/test-connection",
2394
+ alias: "testConnection",
2395
+ requestFormat: "json",
2396
+ parameters: [
2397
+ {
2398
+ name: "body",
2399
+ description: `Data Source configuration to try to connect to`,
2400
+ type: "Body",
2401
+ schema: TestConnectionRequest,
2402
+ },
2403
+ ],
2404
+ response: z
2405
+ .object({ numberOfTables: z.number().int().gte(0) })
2406
+ .passthrough(),
2407
+ errors: [
2408
+ {
2409
+ status: NaN,
2410
+ description: `An error related to the user request`,
2411
+ schema: ClientError,
2412
+ },
2413
+ ],
2414
+ },
2415
+ ]);
2416
+
2417
+ export const Test_Connection_ResourceApi = new Zodios(
2418
+ Test_Connection_ResourceEndpoints
2419
+ );
2420
+
2421
+ const Health_ResourceEndpoints = makeApi([
2422
+ {
2423
+ method: "get",
2424
+ path: "/v1/health",
2425
+ alias: "getFidoHealth",
2426
+ requestFormat: "json",
2427
+ response: z.object({}).partial().passthrough(),
2428
+ },
2429
+ {
2430
+ method: "get",
2431
+ path: "/v1/health/data-source-connection/:namespaceId/:dataSourceId",
2432
+ alias: "getDataSourceConnectionHealth",
2433
+ requestFormat: "json",
2434
+ parameters: [
2435
+ {
2436
+ name: "dataSourceId",
2437
+ type: "Path",
2438
+ schema: z
2439
+ .string()
2440
+ .regex(
2441
+ /[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}/
2442
+ )
2443
+ .uuid(),
2444
+ },
2445
+ {
2446
+ name: "namespaceId",
2447
+ type: "Path",
2448
+ schema: z
2449
+ .string()
2450
+ .regex(
2451
+ /[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}/
2452
+ )
2453
+ .uuid(),
2454
+ },
2455
+ ],
2456
+ response: z.object({}).partial().passthrough(),
2457
+ },
2458
+ ]);
2459
+
2460
+ export const Health_ResourceApi = new Zodios(Health_ResourceEndpoints);
2461
+
2462
+ const Namespace_ResourceEndpoints = makeApi([
2463
+ {
2464
+ method: "post",
2465
+ path: "/v1/namespaces",
2466
+ alias: "createNamespace",
2467
+ requestFormat: "json",
2468
+ parameters: [
2469
+ {
2470
+ name: "body",
2471
+ description: `Namespace object to create`,
2472
+ type: "Body",
2473
+ schema: NamespaceRequest,
2474
+ },
2475
+ ],
2476
+ response: NamespaceResponse,
2477
+ errors: [
2478
+ {
2479
+ status: NaN,
2480
+ description: `An error related to the user request`,
2481
+ schema: ClientError,
2482
+ },
2483
+ ],
2484
+ },
2485
+ {
2486
+ method: "get",
2487
+ path: "/v1/namespaces/list",
2488
+ alias: "getNamespaces",
2489
+ requestFormat: "json",
2490
+ parameters: [
2491
+ {
2492
+ name: "includeDataSources",
2493
+ type: "Query",
2494
+ schema: z.boolean().optional().default(false),
2495
+ },
2496
+ {
2497
+ name: "includeViews",
2498
+ type: "Query",
2499
+ schema: z.boolean().optional().default(false),
2500
+ },
2501
+ ],
2502
+ response: z
2503
+ .object({ namespaces: z.array(NamespaceResponse) })
2504
+ .passthrough(),
2505
+ errors: [
2506
+ {
2507
+ status: NaN,
2508
+ description: `An error related to the user request`,
2509
+ schema: ClientError,
2510
+ },
2511
+ ],
2512
+ },
2513
+ {
2514
+ method: "get",
2515
+ path: "/v1/namespaces/:id",
2516
+ alias: "getNamespace",
2517
+ requestFormat: "json",
2518
+ parameters: [
2519
+ {
2520
+ name: "id",
2521
+ type: "Path",
2522
+ schema: z
2523
+ .string()
2524
+ .regex(
2525
+ /[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}/
2526
+ )
2527
+ .uuid(),
2528
+ },
2529
+ {
2530
+ name: "includeDataSources",
2531
+ type: "Query",
2532
+ schema: z.boolean().optional().default(false),
2533
+ },
2534
+ {
2535
+ name: "includeViews",
2536
+ type: "Query",
2537
+ schema: z.boolean().optional().default(false),
2538
+ },
2539
+ ],
2540
+ response: NamespaceResponse,
2541
+ errors: [
2542
+ {
2543
+ status: NaN,
2544
+ description: `An error related to the user request`,
2545
+ schema: ClientError,
2546
+ },
2547
+ ],
2548
+ },
2549
+ {
2550
+ method: "put",
2551
+ path: "/v1/namespaces/:id",
2552
+ alias: "updateNamespace",
2553
+ requestFormat: "json",
2554
+ parameters: [
2555
+ {
2556
+ name: "body",
2557
+ description: `Namespace object to update`,
2558
+ type: "Body",
2559
+ schema: NamespaceRequest,
2560
+ },
2561
+ {
2562
+ name: "id",
2563
+ type: "Path",
2564
+ schema: z
2565
+ .string()
2566
+ .regex(
2567
+ /[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}/
2568
+ )
2569
+ .uuid(),
2570
+ },
2571
+ ],
2572
+ response: NamespaceResponse,
2573
+ errors: [
2574
+ {
2575
+ status: NaN,
2576
+ description: `An error related to the user request`,
2577
+ schema: ClientError,
2578
+ },
2579
+ ],
2580
+ },
2581
+ {
2582
+ method: "delete",
2583
+ path: "/v1/namespaces/:id",
2584
+ alias: "deleteNamespace",
2585
+ requestFormat: "json",
2586
+ parameters: [
2587
+ {
2588
+ name: "id",
2589
+ type: "Path",
2590
+ schema: z
2591
+ .string()
2592
+ .regex(
2593
+ /[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}/
2594
+ )
2595
+ .uuid(),
2596
+ },
2597
+ ],
2598
+ response: z.object({}).partial().passthrough(),
2599
+ errors: [
2600
+ {
2601
+ status: NaN,
2602
+ description: `An error related to the user request`,
2603
+ schema: ClientError,
2604
+ },
2605
+ ],
2606
+ },
2607
+ ]);
2608
+
2609
+ export const Namespace_ResourceApi = new Zodios(Namespace_ResourceEndpoints);
2610
+
2611
+ const Data_Source_ResourceEndpoints = makeApi([
2612
+ {
2613
+ method: "post",
2614
+ path: "/v1/namespaces/:namespaceId/data-sources",
2615
+ alias: "createDataSource",
2616
+ requestFormat: "json",
2617
+ parameters: [
2618
+ {
2619
+ name: "body",
2620
+ description: `Data Source object to create`,
2621
+ type: "Body",
2622
+ schema: DataSourceRequest,
2623
+ },
2624
+ {
2625
+ name: "namespaceId",
2626
+ type: "Path",
2627
+ schema: z
2628
+ .string()
2629
+ .regex(
2630
+ /[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}/
2631
+ )
2632
+ .uuid(),
2633
+ },
2634
+ ],
2635
+ response: DataSourceResponse,
2636
+ errors: [
2637
+ {
2638
+ status: NaN,
2639
+ description: `An error related to the user request`,
2640
+ schema: ClientError,
2641
+ },
2642
+ ],
2643
+ },
2644
+ {
2645
+ method: "get",
2646
+ path: "/v1/namespaces/:namespaceId/data-sources/:id",
2647
+ alias: "getDataSource",
2648
+ requestFormat: "json",
2649
+ parameters: [
2650
+ {
2651
+ name: "id",
2652
+ type: "Path",
2653
+ schema: z
2654
+ .string()
2655
+ .regex(
2656
+ /[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}/
2657
+ )
2658
+ .uuid(),
2659
+ },
2660
+ {
2661
+ name: "namespaceId",
2662
+ type: "Path",
2663
+ schema: z
2664
+ .string()
2665
+ .regex(
2666
+ /[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}/
2667
+ )
2668
+ .uuid(),
2669
+ },
2670
+ ],
2671
+ response: DataSourceResponse,
2672
+ errors: [
2673
+ {
2674
+ status: NaN,
2675
+ description: `An error related to the user request`,
2676
+ schema: ClientError,
2677
+ },
2678
+ ],
2679
+ },
2680
+ {
2681
+ method: "put",
2682
+ path: "/v1/namespaces/:namespaceId/data-sources/:id",
2683
+ alias: "updateDataSource",
2684
+ requestFormat: "json",
2685
+ parameters: [
2686
+ {
2687
+ name: "body",
2688
+ description: `Data Source object to update`,
2689
+ type: "Body",
2690
+ schema: DataSourceRequest,
2691
+ },
2692
+ {
2693
+ name: "id",
2694
+ type: "Path",
2695
+ schema: z
2696
+ .string()
2697
+ .regex(
2698
+ /[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}/
2699
+ )
2700
+ .uuid(),
2701
+ },
2702
+ {
2703
+ name: "namespaceId",
2704
+ type: "Path",
2705
+ schema: z
2706
+ .string()
2707
+ .regex(
2708
+ /[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}/
2709
+ )
2710
+ .uuid(),
2711
+ },
2712
+ ],
2713
+ response: DataSourceResponse,
2714
+ errors: [
2715
+ {
2716
+ status: NaN,
2717
+ description: `An error related to the user request`,
2718
+ schema: ClientError,
2719
+ },
2720
+ ],
2721
+ },
2722
+ {
2723
+ method: "delete",
2724
+ path: "/v1/namespaces/:namespaceId/data-sources/:id",
2725
+ alias: "deleteDataSource",
2726
+ requestFormat: "json",
2727
+ parameters: [
2728
+ {
2729
+ name: "id",
2730
+ type: "Path",
2731
+ schema: z
2732
+ .string()
2733
+ .regex(
2734
+ /[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}/
2735
+ )
2736
+ .uuid(),
2737
+ },
2738
+ {
2739
+ name: "namespaceId",
2740
+ type: "Path",
2741
+ schema: z
2742
+ .string()
2743
+ .regex(
2744
+ /[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}/
2745
+ )
2746
+ .uuid(),
2747
+ },
2748
+ ],
2749
+ response: z.object({}).partial().passthrough(),
2750
+ errors: [
2751
+ {
2752
+ status: NaN,
2753
+ description: `An error related to the user request`,
2754
+ schema: ClientError,
2755
+ },
2756
+ ],
2757
+ },
2758
+ {
2759
+ method: "get",
2760
+ path: "/v1/namespaces/:namespaceId/data-sources/:id/tables",
2761
+ alias: "getTables",
2762
+ requestFormat: "json",
2763
+ parameters: [
2764
+ {
2765
+ name: "id",
2766
+ type: "Path",
2767
+ schema: z
2768
+ .string()
2769
+ .regex(
2770
+ /[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}/
2771
+ )
2772
+ .uuid(),
2773
+ },
2774
+ {
2775
+ name: "namespaceId",
2776
+ type: "Path",
2777
+ schema: z
2778
+ .string()
2779
+ .regex(
2780
+ /[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}/
2781
+ )
2782
+ .uuid(),
2783
+ },
2784
+ ],
2785
+ response: ListViewsResponse,
2786
+ errors: [
2787
+ {
2788
+ status: NaN,
2789
+ description: `An error related to the user request`,
2790
+ schema: ClientError,
2791
+ },
2792
+ ],
2793
+ },
2794
+ {
2795
+ method: "post",
2796
+ path: "/v1/namespaces/:namespaceId/data-sources/:id/views/sync",
2797
+ alias: "syncTables",
2798
+ requestFormat: "json",
2799
+ parameters: [
2800
+ {
2801
+ name: "id",
2802
+ type: "Path",
2803
+ schema: z
2804
+ .string()
2805
+ .regex(
2806
+ /[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}/
2807
+ )
2808
+ .uuid(),
2809
+ },
2810
+ {
2811
+ name: "namespaceId",
2812
+ type: "Path",
2813
+ schema: z
2814
+ .string()
2815
+ .regex(
2816
+ /[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}/
2817
+ )
2818
+ .uuid(),
2819
+ },
2820
+ ],
2821
+ response: ListViewsResponse,
2822
+ errors: [
2823
+ {
2824
+ status: NaN,
2825
+ description: `An error related to the user request`,
2826
+ schema: ClientError,
2827
+ },
2828
+ ],
2829
+ },
2830
+ ]);
2831
+
2832
+ export const Data_Source_ResourceApi = new Zodios(
2833
+ Data_Source_ResourceEndpoints
2834
+ );
2835
+
2836
+ const Query_ResourceEndpoints = makeApi([
2837
+ {
2838
+ method: "post",
2839
+ path: "/v1/namespaces/:namespaceId/data-sources/:dataSourceId/preview",
2840
+ alias: "getQueryPreview",
2841
+ requestFormat: "json",
2842
+ parameters: [
2843
+ {
2844
+ name: "body",
2845
+ description: `Query to preview against the provided data source`,
2846
+ type: "Body",
2847
+ schema: QueryPreviewRequest,
2848
+ },
2849
+ {
2850
+ name: "dataSourceId",
2851
+ type: "Path",
2852
+ schema: z
2853
+ .string()
2854
+ .regex(
2855
+ /[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}/
2856
+ )
2857
+ .uuid(),
2858
+ },
2859
+ {
2860
+ name: "namespaceId",
2861
+ type: "Path",
2862
+ schema: z
2863
+ .string()
2864
+ .regex(
2865
+ /[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}/
2866
+ )
2867
+ .uuid(),
2868
+ },
2869
+ ],
2870
+ response: QueryExecutionResponse,
2871
+ errors: [
2872
+ {
2873
+ status: 400,
2874
+ description: `An error related to the user request`,
2875
+ schema: ClientError,
2876
+ },
2877
+ {
2878
+ status: 503,
2879
+ description: `An error related to the execution of the request`,
2880
+ schema: QueryExecutionError,
2881
+ },
2882
+ ],
2883
+ },
2884
+ {
2885
+ method: "post",
2886
+ path: "/v1/namespaces/:namespaceId/data-sources/:dataSourceId/preview-table",
2887
+ alias: "getTablePreview",
2888
+ requestFormat: "json",
2889
+ parameters: [
2890
+ {
2891
+ name: "body",
2892
+ description: `Table to preview against the provided data source`,
2893
+ type: "Body",
2894
+ schema: TablePreviewRequest,
2895
+ },
2896
+ {
2897
+ name: "dataSourceId",
2898
+ type: "Path",
2899
+ schema: z
2900
+ .string()
2901
+ .regex(
2902
+ /[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}/
2903
+ )
2904
+ .uuid(),
2905
+ },
2906
+ {
2907
+ name: "namespaceId",
2908
+ type: "Path",
2909
+ schema: z
2910
+ .string()
2911
+ .regex(
2912
+ /[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}/
2913
+ )
2914
+ .uuid(),
2915
+ },
2916
+ ],
2917
+ response: QueryExecutionResponse,
2918
+ errors: [
2919
+ {
2920
+ status: 400,
2921
+ description: `An error related to the user request`,
2922
+ schema: ClientError,
2923
+ },
2924
+ ],
2925
+ },
2926
+ {
2927
+ method: "post",
2928
+ path: "/v1/namespaces/:namespaceId/data-sources/:dataSourceId/views/:viewId/export",
2929
+ alias: "exportView",
2930
+ requestFormat: "json",
2931
+ parameters: [
2932
+ {
2933
+ name: "body",
2934
+ description: `View to export against the provided data source`,
2935
+ type: "Body",
2936
+ schema: ViewExportRequest,
2937
+ },
2938
+ {
2939
+ name: "dataSourceId",
2940
+ type: "Path",
2941
+ schema: z
2942
+ .string()
2943
+ .regex(
2944
+ /[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}/
2945
+ )
2946
+ .uuid(),
2947
+ },
2948
+ {
2949
+ name: "namespaceId",
2950
+ type: "Path",
2951
+ schema: z
2952
+ .string()
2953
+ .regex(
2954
+ /[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}/
2955
+ )
2956
+ .uuid(),
2957
+ },
2958
+ {
2959
+ name: "viewId",
2960
+ type: "Path",
2961
+ schema: z
2962
+ .string()
2963
+ .regex(
2964
+ /[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}/
2965
+ )
2966
+ .uuid(),
2967
+ },
2968
+ ],
2969
+ response: QueryExportResponse,
2970
+ errors: [
2971
+ {
2972
+ status: 400,
2973
+ description: `An error related to the user request`,
2974
+ schema: ClientError,
2975
+ },
2976
+ ],
2977
+ },
2978
+ {
2979
+ method: "post",
2980
+ path: "/v1/namespaces/:namespaceId/data-sources/:dataSourceId/views/:viewId/run",
2981
+ alias: "runView",
2982
+ requestFormat: "json",
2983
+ parameters: [
2984
+ {
2985
+ name: "body",
2986
+ description: `View to run against the provided data source`,
2987
+ type: "Body",
2988
+ schema: ViewRunRequest,
2989
+ },
2990
+ {
2991
+ name: "dataSourceId",
2992
+ type: "Path",
2993
+ schema: z
2994
+ .string()
2995
+ .regex(
2996
+ /[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}/
2997
+ )
2998
+ .uuid(),
2999
+ },
3000
+ {
3001
+ name: "namespaceId",
3002
+ type: "Path",
3003
+ schema: z
3004
+ .string()
3005
+ .regex(
3006
+ /[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}/
3007
+ )
3008
+ .uuid(),
3009
+ },
3010
+ {
3011
+ name: "viewId",
3012
+ type: "Path",
3013
+ schema: z
3014
+ .string()
3015
+ .regex(
3016
+ /[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}/
3017
+ )
3018
+ .uuid(),
3019
+ },
3020
+ ],
3021
+ response: QueryExecutionResponse,
3022
+ errors: [
3023
+ {
3024
+ status: 400,
3025
+ description: `An error related to the user request`,
3026
+ schema: ClientError,
3027
+ },
3028
+ {
3029
+ status: 503,
3030
+ description: `An error related to the execution of the request`,
3031
+ schema: QueryExecutionError,
3032
+ },
3033
+ ],
3034
+ },
3035
+ {
3036
+ method: "post",
3037
+ path: "/v1/namespaces/:namespaceId/data-sources/:dataSourceId/views/:viewId/versions/:versionId/export",
3038
+ alias: "exportVersionedView",
3039
+ requestFormat: "json",
3040
+ parameters: [
3041
+ {
3042
+ name: "body",
3043
+ description: `Request options for the export`,
3044
+ type: "Body",
3045
+ schema: ViewExportRequest,
3046
+ },
3047
+ {
3048
+ name: "dataSourceId",
3049
+ type: "Path",
3050
+ schema: z
3051
+ .string()
3052
+ .regex(
3053
+ /[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}/
3054
+ )
3055
+ .uuid(),
3056
+ },
3057
+ {
3058
+ name: "namespaceId",
3059
+ type: "Path",
3060
+ schema: z
3061
+ .string()
3062
+ .regex(
3063
+ /[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}/
3064
+ )
3065
+ .uuid(),
3066
+ },
3067
+ {
3068
+ name: "versionId",
3069
+ type: "Path",
3070
+ schema: z
3071
+ .string()
3072
+ .regex(
3073
+ /[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}/
3074
+ )
3075
+ .uuid(),
3076
+ },
3077
+ {
3078
+ name: "viewId",
3079
+ type: "Path",
3080
+ schema: z
3081
+ .string()
3082
+ .regex(
3083
+ /[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}/
3084
+ )
3085
+ .uuid(),
3086
+ },
3087
+ ],
3088
+ response: QueryExportResponse,
3089
+ errors: [
3090
+ {
3091
+ status: 400,
3092
+ description: `An error related to the user request`,
3093
+ schema: ClientError,
3094
+ },
3095
+ ],
3096
+ },
3097
+ {
3098
+ method: "post",
3099
+ path: "/v1/namespaces/:namespaceId/data-sources/:dataSourceId/views/:viewId/versions/:versionId/run",
3100
+ alias: "runVersionedView",
3101
+ requestFormat: "json",
3102
+ parameters: [
3103
+ {
3104
+ name: "body",
3105
+ description: `Request options for the query`,
3106
+ type: "Body",
3107
+ schema: ViewRunRequest,
3108
+ },
3109
+ {
3110
+ name: "dataSourceId",
3111
+ type: "Path",
3112
+ schema: z
3113
+ .string()
3114
+ .regex(
3115
+ /[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}/
3116
+ )
3117
+ .uuid(),
3118
+ },
3119
+ {
3120
+ name: "namespaceId",
3121
+ type: "Path",
3122
+ schema: z
3123
+ .string()
3124
+ .regex(
3125
+ /[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}/
3126
+ )
3127
+ .uuid(),
3128
+ },
3129
+ {
3130
+ name: "versionId",
3131
+ type: "Path",
3132
+ schema: z.string(),
3133
+ },
3134
+ {
3135
+ name: "viewId",
3136
+ type: "Path",
3137
+ schema: z
3138
+ .string()
3139
+ .regex(
3140
+ /[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}/
3141
+ )
3142
+ .uuid(),
3143
+ },
3144
+ ],
3145
+ response: QueryExecutionResponse,
3146
+ errors: [
3147
+ {
3148
+ status: 400,
3149
+ description: `An error related to the user request`,
3150
+ schema: ClientError,
3151
+ },
3152
+ {
3153
+ status: 503,
3154
+ description: `An error related to the execution of the request`,
3155
+ schema: QueryExecutionError,
3156
+ },
3157
+ ],
3158
+ },
3159
+ ]);
3160
+
3161
+ export const Query_ResourceApi = new Zodios(Query_ResourceEndpoints);
3162
+
3163
+ const View_ResourceEndpoints = makeApi([
3164
+ {
3165
+ method: "get",
3166
+ path: "/v1/namespaces/:namespaceId/views/:id",
3167
+ alias: "getView",
3168
+ requestFormat: "json",
3169
+ parameters: [
3170
+ {
3171
+ name: "id",
3172
+ type: "Path",
3173
+ schema: z
3174
+ .string()
3175
+ .regex(
3176
+ /[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}/
3177
+ )
3178
+ .uuid(),
3179
+ },
3180
+ {
3181
+ name: "namespaceId",
3182
+ type: "Path",
3183
+ schema: z
3184
+ .string()
3185
+ .regex(
3186
+ /[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}/
3187
+ )
3188
+ .uuid(),
3189
+ },
3190
+ ],
3191
+ response: ViewResponse,
3192
+ errors: [
3193
+ {
3194
+ status: NaN,
3195
+ description: `An error related to the user request`,
3196
+ schema: ClientError,
3197
+ },
3198
+ ],
3199
+ },
3200
+ {
3201
+ method: "get",
3202
+ path: "/v1/namespaces/:namespaceId/views/:id/versions/:versionId",
3203
+ alias: "getVersionedView",
3204
+ requestFormat: "json",
3205
+ parameters: [
3206
+ {
3207
+ name: "id",
3208
+ type: "Path",
3209
+ schema: z
3210
+ .string()
3211
+ .regex(
3212
+ /[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}/
3213
+ )
3214
+ .uuid(),
3215
+ },
3216
+ {
3217
+ name: "namespaceId",
3218
+ type: "Path",
3219
+ schema: z
3220
+ .string()
3221
+ .regex(
3222
+ /[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}/
3223
+ )
3224
+ .uuid(),
3225
+ },
3226
+ {
3227
+ name: "versionId",
3228
+ type: "Path",
3229
+ schema: z
3230
+ .string()
3231
+ .regex(
3232
+ /[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}/
3233
+ )
3234
+ .uuid(),
3235
+ },
3236
+ ],
3237
+ response: ViewResponse,
3238
+ errors: [
3239
+ {
3240
+ status: NaN,
3241
+ description: `An error related to the user request`,
3242
+ schema: ClientError,
3243
+ },
3244
+ ],
3245
+ },
3246
+ ]);
3247
+
3248
+ export const View_ResourceApi = new Zodios(View_ResourceEndpoints);
3249
+
3250
+ const Tenant_ResourceEndpoints = makeApi([
3251
+ {
3252
+ method: "post",
3253
+ path: "/v1/tenants",
3254
+ alias: "createTenant",
3255
+ requestFormat: "json",
3256
+ parameters: [
3257
+ {
3258
+ name: "body",
3259
+ description: `Tenant request to create with`,
3260
+ type: "Body",
3261
+ schema: TenantRequest,
3262
+ },
3263
+ ],
3264
+ response: TenantResponse,
3265
+ errors: [
3266
+ {
3267
+ status: NaN,
3268
+ description: `An error related to the user request`,
3269
+ schema: ClientError,
3270
+ },
3271
+ ],
3272
+ },
3273
+ {
3274
+ method: "get",
3275
+ path: "/v1/tenants/:id",
3276
+ alias: "getTenant",
3277
+ requestFormat: "json",
3278
+ parameters: [
3279
+ {
3280
+ name: "id",
3281
+ type: "Path",
3282
+ schema: z
3283
+ .string()
3284
+ .regex(
3285
+ /[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}/
3286
+ )
3287
+ .uuid(),
3288
+ },
3289
+ ],
3290
+ response: TenantResponse,
3291
+ errors: [
3292
+ {
3293
+ status: NaN,
3294
+ description: `An error related to the user request`,
3295
+ schema: ClientError,
3296
+ },
3297
+ ],
3298
+ },
3299
+ {
3300
+ method: "put",
3301
+ path: "/v1/tenants/:id",
3302
+ alias: "updateTenant",
3303
+ requestFormat: "json",
3304
+ parameters: [
3305
+ {
3306
+ name: "body",
3307
+ description: `Tenant request to update with`,
3308
+ type: "Body",
3309
+ schema: TenantRequest,
3310
+ },
3311
+ {
3312
+ name: "id",
3313
+ type: "Path",
3314
+ schema: z
3315
+ .string()
3316
+ .regex(
3317
+ /[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}/
3318
+ )
3319
+ .uuid(),
3320
+ },
3321
+ ],
3322
+ response: TenantResponse,
3323
+ errors: [
3324
+ {
3325
+ status: NaN,
3326
+ description: `An error related to the user request`,
3327
+ schema: ClientError,
3328
+ },
3329
+ ],
3330
+ },
3331
+ {
3332
+ method: "delete",
3333
+ path: "/v1/tenants/:id",
3334
+ alias: "deleteTenant",
3335
+ requestFormat: "json",
3336
+ parameters: [
3337
+ {
3338
+ name: "id",
3339
+ type: "Path",
3340
+ schema: z
3341
+ .string()
3342
+ .regex(
3343
+ /[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}/
3344
+ )
3345
+ .uuid(),
3346
+ },
3347
+ ],
3348
+ response: z.object({}).partial().passthrough(),
3349
+ errors: [
3350
+ {
3351
+ status: NaN,
3352
+ description: `An error related to the user request`,
3353
+ schema: ClientError,
3354
+ },
3355
+ ],
3356
+ },
3357
+ ]);
3358
+
3359
+ export const Tenant_ResourceApi = new Zodios(Tenant_ResourceEndpoints);
3360
+
3361
+ const List_Views_ResourceEndpoints = makeApi([
3362
+ {
3363
+ method: "post",
3364
+ path: "/v1/views/batch-get",
3365
+ alias: "batchGetViews",
3366
+ requestFormat: "json",
3367
+ parameters: [
3368
+ {
3369
+ name: "body",
3370
+ description: `View ids to get`,
3371
+ type: "Body",
3372
+ schema: ListVersionedViewsRequest,
3373
+ },
3374
+ ],
3375
+ response: z.object({ views: z.array(ViewResponse) }).passthrough(),
3376
+ errors: [
3377
+ {
3378
+ status: NaN,
3379
+ description: `An error related to the user request`,
3380
+ schema: ClientError,
3381
+ },
3382
+ ],
3383
+ },
3384
+ ]);
3385
+
3386
+ export const List_Views_ResourceApi = new Zodios(List_Views_ResourceEndpoints);
3387
+
3388
+ export function createApiClient(baseUrl: string, options?: ZodiosOptions) {
3389
+ return new Zodios(baseUrl, endpoints, options);
3390
+ }