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

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 +2802 -178
  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,2804 @@
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';
1
+ import { makeApi, Zodios, type ZodiosOptions } from "@zodios/core";
2
+ import { z } from "zod";
8
3
 
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';
4
+ type And = {
5
+ "@type": string;
6
+ values: Array<Filter>;
7
+ };
8
+ type Equal = {
9
+ "@type": string;
10
+ propertyId: string;
11
+ value: PropertyValue;
12
+ };
13
+ type PropertyValue =
14
+ | BooleanPropertyValue
15
+ | DatePropertyValue
16
+ | DateTimePropertyValue
17
+ | DecimalPropertyValue
18
+ | DoublePropertyValue
19
+ | IntegerPropertyValue
20
+ | StringPropertyValue;
21
+ type BooleanPropertyValue = {
22
+ "@type": string;
23
+ value: boolean;
24
+ };
25
+ type DatePropertyValue = {
26
+ "@type": string;
27
+ value: string;
28
+ };
29
+ type DateTimePropertyValue = {
30
+ "@type": string;
31
+ value: string;
32
+ };
33
+ type DecimalPropertyValue = {
34
+ "@type": string;
35
+ value: number;
36
+ };
37
+ type DoublePropertyValue = {
38
+ "@type": string;
39
+ value: number;
40
+ };
41
+ type IntegerPropertyValue = {
42
+ "@type": string;
43
+ value: number;
44
+ };
45
+ type StringPropertyValue = {
46
+ "@type": string;
47
+ value: string;
48
+ };
49
+ type LateBoundEqual = {
50
+ "@type": string;
51
+ propertyId: string;
52
+ valueVariableReference: string;
53
+ };
54
+ type In = {
55
+ "@type": string;
56
+ propertyId: string;
57
+ values: Array<PropertyValue>;
58
+ };
59
+ type LateBoundIn = {
60
+ "@type": string;
61
+ propertyId: string;
62
+ valueVariableReference: string;
63
+ };
64
+ type LessThan = {
65
+ "@type": string;
66
+ propertyId: string;
67
+ value: PropertyValue;
68
+ };
69
+ type LessThanOrEqual = {
70
+ "@type": string;
71
+ propertyId: string;
72
+ value: PropertyValue;
73
+ };
74
+ type GreaterThan = {
75
+ "@type": string;
76
+ propertyId: string;
77
+ value: PropertyValue;
78
+ };
79
+ type GreaterThanOrEqual = {
80
+ "@type": string;
81
+ propertyId: string;
82
+ value: PropertyValue;
83
+ };
84
+ type LateBoundLessThan = {
85
+ "@type": string;
86
+ propertyId: string;
87
+ valueVariableReference: string;
88
+ };
89
+ type LateBoundLessThanOrEqual = {
90
+ "@type": string;
91
+ propertyId: string;
92
+ valueVariableReference: string;
93
+ };
94
+ type LateBoundGreaterThan = {
95
+ "@type": string;
96
+ propertyId: string;
97
+ valueVariableReference: string;
98
+ };
99
+ type LateBoundGreaterThanOrEqual = {
100
+ "@type": string;
101
+ propertyId: string;
102
+ valueVariableReference: string;
103
+ };
104
+ type Null = {
105
+ "@type": string;
106
+ propertyId: string;
107
+ };
108
+ type StringContains = {
109
+ "@type": string;
110
+ propertyId: string;
111
+ value: StringPropertyValue;
112
+ caseInsensitive: boolean;
113
+ };
114
+ type LateBoundStringContains = {
115
+ "@type": string;
116
+ propertyId: string;
117
+ valueVariableReference: string;
118
+ caseInsensitive: boolean;
119
+ };
120
+ type And1 = {
121
+ "@type": string;
122
+ values: Array<Having>;
123
+ };
124
+ type Equal1 = {
125
+ "@type": string;
126
+ property: Property;
127
+ value: PropertyValue;
128
+ };
129
+ type Property = AggregateProperty | SourceProperty | FormulaProperty;
130
+ type AggregateProperty = {
131
+ targetPropertyId: string | null;
132
+ "@type": string;
133
+ propertyId: string | null;
134
+ aggregation: Aggregation;
135
+ aggregationOption?: AggregationOption | undefined;
136
+ };
137
+ type Aggregation =
138
+ | "avg"
139
+ | "count"
140
+ | "count-distinct"
141
+ | "max"
142
+ | "min"
143
+ | "percentile"
144
+ | "sum";
145
+ type AggregationOption = {
146
+ decimalValue: number;
147
+ };
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 Filter =
230
+ | And
231
+ | Or
232
+ | Not
233
+ | Equal
234
+ | LateBoundEqual
235
+ | In
236
+ | LateBoundIn
237
+ | LessThan
238
+ | LessThanOrEqual
239
+ | GreaterThan
240
+ | GreaterThanOrEqual
241
+ | LateBoundLessThan
242
+ | LateBoundLessThanOrEqual
243
+ | LateBoundGreaterThan
244
+ | LateBoundGreaterThanOrEqual
245
+ | Null
246
+ | StringContains
247
+ | LateBoundStringContains;
248
+ type Folder = {
249
+ name: string;
250
+ path: string | null;
251
+ description: string | null;
252
+ id?: (string | null) | undefined;
253
+ versionId?: (string | null) | undefined;
254
+ "@type": string;
255
+ children: Array<Resource> | null;
256
+ };
257
+ type ComputedView = {
258
+ columnDefinitions: Array<PropertySchema>;
259
+ namespaceId?: (string | null) | undefined;
260
+ name: string;
261
+ path: string | null;
262
+ description: string | null;
263
+ id?: (string | null) | undefined;
264
+ versionId?: (string | null) | undefined;
265
+ "@type": string;
266
+ query: string;
267
+ cacheable?: boolean | undefined;
268
+ parameters: Array<Parameter>;
269
+ cacheEvictionPolicy: EvictionPolicy;
270
+ };
271
+ type PropertySchema = {
272
+ array?: boolean | undefined;
273
+ id: string;
274
+ name?: (string | null) | undefined;
275
+ type: PropertyType;
276
+ };
277
+ type PropertyType =
278
+ | "boolean"
279
+ | "date"
280
+ | "datetime"
281
+ | "decimal"
282
+ | "double"
283
+ | "integer"
284
+ | "long"
285
+ | "string"
286
+ | "unsupported";
287
+ type Parameter = {
288
+ name: string;
289
+ description: string | null;
290
+ required: boolean;
291
+ };
292
+ type EvictionPolicy = ScheduledEviction | TtlEviction;
293
+ type ScheduledEviction = {
294
+ "@type": string;
295
+ evictionSchedule: string;
296
+ };
297
+ type TtlEviction = {
298
+ "@type": string;
299
+ ttl: string;
300
+ };
301
+ type TableView = {
302
+ columnDefinitions: Array<PropertySchema>;
303
+ namespaceId?: (string | null) | undefined;
304
+ name: string;
305
+ path: string | null;
306
+ description: string | null;
307
+ id?: (string | null) | undefined;
308
+ versionId?: (string | null) | undefined;
309
+ "@type": string;
310
+ tableName: string;
311
+ schemaName?: (string | null) | undefined;
312
+ };
313
+ type Having =
314
+ | And1
315
+ | Or1
316
+ | Not1
317
+ | Equal1
318
+ | LateBoundEqual1
319
+ | In1
320
+ | LateBoundIn1
321
+ | LessThan1
322
+ | LessThanOrEqual1
323
+ | GreaterThan1
324
+ | GreaterThanOrEqual1
325
+ | LateBoundLessThan1
326
+ | LateBoundLessThanOrEqual1
327
+ | LateBoundGreaterThan1
328
+ | LateBoundGreaterThanOrEqual1
329
+ | Null1
330
+ | StringContains1
331
+ | LateBoundStringContains1;
332
+ type Not = {
333
+ "@type": string;
334
+ value: Filter;
335
+ };
336
+ type Not1 = {
337
+ "@type": string;
338
+ value: Having;
339
+ };
340
+ type Or = {
341
+ "@type": string;
342
+ values: Array<Filter>;
343
+ };
344
+ type Or1 = {
345
+ "@type": string;
346
+ values: Array<Having>;
347
+ };
348
+ type Resource = ComputedView | TableView | Folder;
349
+ type SSHTunnel = {
350
+ "@type": string;
351
+ tunnel: Tunnel;
352
+ host: string;
353
+ port?: number | undefined;
354
+ authentication: SSHAuthentication;
355
+ };
356
+ type PublicTunnel = {
357
+ "@type": string;
358
+ };
359
+ type SSHAuthentication =
360
+ | VendorPrivateKeyAuthentication
361
+ | TenantPrivateKeyAuthentication;
362
+ type VendorPrivateKeyAuthentication = {
363
+ username: string;
364
+ "@type": string;
365
+ };
366
+ type TenantPrivateKeyAuthentication = {
367
+ username: string;
368
+ "@type": string;
369
+ privateKey?: (string | null) | undefined;
370
+ };
371
+ type Tunnel = PublicTunnel | SSHTunnel;
170
372
 
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';
373
+ const Branch = z
374
+ .object({
375
+ id: z
376
+ .string()
377
+ .regex(
378
+ /[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}/
379
+ )
380
+ .uuid()
381
+ .optional(),
382
+ name: z
383
+ .string()
384
+ .max(200)
385
+ .regex(/^[a-zA-Z0-9_-]+$/),
386
+ headId: z
387
+ .string()
388
+ .regex(
389
+ /[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}/
390
+ )
391
+ .uuid(),
392
+ })
393
+ .passthrough();
394
+ const ListBranchResponse = z
395
+ .object({ branches: z.array(Branch) })
396
+ .passthrough();
397
+ const ClientError = z
398
+ .object({
399
+ status: z.number().int().gte(100).lte(599),
400
+ message: z.string().regex(/\S/),
401
+ })
402
+ .passthrough();
403
+ const BranchRequest = z.object({ branch: Branch }).passthrough();
404
+ const PropertyType = z.enum([
405
+ "boolean",
406
+ "date",
407
+ "datetime",
408
+ "decimal",
409
+ "double",
410
+ "integer",
411
+ "long",
412
+ "string",
413
+ "unsupported",
414
+ ]);
415
+ const PropertySchema = z
416
+ .object({
417
+ array: z.boolean().optional(),
418
+ id: z.string().regex(/\S/),
419
+ name: z.string().nullish(),
420
+ type: PropertyType,
421
+ })
422
+ .passthrough();
423
+ const Parameter = z
424
+ .object({
425
+ name: z.string().regex(/\S/),
426
+ description: z.string().nullable(),
427
+ required: z.boolean(),
428
+ })
429
+ .passthrough();
430
+ const ScheduledEviction = z
431
+ .object({ "@type": z.string(), evictionSchedule: z.string() })
432
+ .passthrough();
433
+ const TtlEviction = z
434
+ .object({ "@type": z.string(), ttl: z.string() })
435
+ .passthrough();
436
+ const EvictionPolicy = z.discriminatedUnion("@type", [
437
+ ScheduledEviction,
438
+ TtlEviction,
439
+ ]);
440
+ const ComputedView = z
441
+ .object({
442
+ columnDefinitions: z.array(PropertySchema),
443
+ namespaceId: z
444
+ .string()
445
+ .regex(
446
+ /[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}/
447
+ )
448
+ .uuid()
449
+ .nullish(),
450
+ name: z.string().max(200).regex(/\S/),
451
+ path: z.string().nullable(),
452
+ description: z.string().nullable(),
453
+ id: z
454
+ .string()
455
+ .regex(
456
+ /[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}/
457
+ )
458
+ .uuid()
459
+ .nullish(),
460
+ versionId: z
461
+ .string()
462
+ .regex(
463
+ /[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}/
464
+ )
465
+ .uuid()
466
+ .nullish(),
467
+ "@type": z.string(),
468
+ query: z.string(),
469
+ cacheable: z.boolean().optional(),
470
+ parameters: z.array(Parameter),
471
+ cacheEvictionPolicy: EvictionPolicy.nullable(),
472
+ })
473
+ .passthrough();
474
+ const TableView = z
475
+ .object({
476
+ columnDefinitions: z.array(PropertySchema),
477
+ namespaceId: z
478
+ .string()
479
+ .regex(
480
+ /[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}/
481
+ )
482
+ .uuid()
483
+ .nullish(),
484
+ name: z.string().max(200).regex(/\S/),
485
+ path: z.string().nullable(),
486
+ description: z.string().nullable(),
487
+ id: z
488
+ .string()
489
+ .regex(
490
+ /[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}/
491
+ )
492
+ .uuid()
493
+ .nullish(),
494
+ versionId: z
495
+ .string()
496
+ .regex(
497
+ /[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}/
498
+ )
499
+ .uuid()
500
+ .nullish(),
501
+ "@type": z.string(),
502
+ tableName: z.string().max(200).regex(/\S/),
503
+ schemaName: z.string().nullish(),
504
+ })
505
+ .passthrough();
506
+ const Folder: z.ZodType<Folder> = z.lazy(() =>
507
+ z
508
+ .object({
509
+ name: z.string().max(200).regex(/\S/),
510
+ path: z.string().nullable(),
511
+ description: z.string().nullable(),
512
+ id: z
513
+ .string()
514
+ .regex(
515
+ /[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}/
516
+ )
517
+ .uuid()
518
+ .nullish(),
519
+ versionId: z
520
+ .string()
521
+ .regex(
522
+ /[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}/
523
+ )
524
+ .uuid()
525
+ .nullish(),
526
+ "@type": z.string(),
527
+ children: z.array(Resource).nullable(),
528
+ })
529
+ .passthrough()
530
+ );
531
+ const Resource: z.ZodType<Resource> = z.lazy(() =>
532
+ z.discriminatedUnion("@type", [ComputedView, TableView, Folder])
533
+ );
534
+ const CreateResourceDiff = z
535
+ .object({ "@type": z.string(), resource: Resource })
536
+ .passthrough();
537
+ const DeleteResourceDiff = z
538
+ .object({ "@type": z.string(), originalResource: Resource })
539
+ .passthrough();
540
+ const UpdateResourceDiff = z
541
+ .object({
542
+ "@type": z.string(),
543
+ originalResource: Resource,
544
+ updatedResource: Resource,
545
+ })
546
+ .passthrough();
547
+ const ResourceDiff = z.discriminatedUnion("@type", [
548
+ CreateResourceDiff,
549
+ DeleteResourceDiff,
550
+ UpdateResourceDiff,
551
+ ]);
552
+ const BranchResponseMetadata = z
553
+ .object({ diff: z.array(ResourceDiff).nullable() })
554
+ .passthrough();
555
+ const BranchResponse = z
556
+ .object({ branch: Branch, meta: BranchResponseMetadata.nullable() })
557
+ .passthrough();
558
+ const DiffBranchResponse = z
559
+ .object({ diff: z.array(ResourceDiff) })
560
+ .passthrough();
561
+ const UUID = z.string();
562
+ const CreateResourceChange = z
563
+ .object({ "@type": z.string(), resource: Resource })
564
+ .passthrough();
565
+ const UpdateResourceChange = z
566
+ .object({ "@type": z.string(), resource: Resource })
567
+ .passthrough();
568
+ const DeleteResourceChange = z
569
+ .object({
570
+ "@type": z.string(),
571
+ id: z
572
+ .string()
573
+ .regex(
574
+ /[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}/
575
+ )
576
+ .uuid(),
577
+ })
578
+ .passthrough();
579
+ const ResourceChange = z.discriminatedUnion("@type", [
580
+ CreateResourceChange,
581
+ UpdateResourceChange,
582
+ DeleteResourceChange,
583
+ ]);
584
+ const CreateCommitRequest = z
585
+ .object({
586
+ commitMessage: z.string().max(1000).regex(/\S/),
587
+ parentCommitId: UUID.regex(
588
+ /[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}/
589
+ ).uuid(),
590
+ changes: z.array(ResourceChange),
591
+ })
592
+ .passthrough();
593
+ const CreateCommitResponse = z
594
+ .object({
595
+ commitId: z
596
+ .string()
597
+ .regex(
598
+ /[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}/
599
+ )
600
+ .uuid(),
601
+ changes: z.array(ResourceChange),
602
+ })
603
+ .passthrough();
604
+ const ListBranchContentResponse = z.object({ content: Resource }).passthrough();
605
+ const MergeBranchRequest = z
606
+ .object({
607
+ commitMessage: z.string(),
608
+ sourceBranchId: UUID.regex(
609
+ /[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}/
610
+ ).uuid(),
611
+ })
612
+ .passthrough();
613
+ const PasswordAuthentication = z
614
+ .object({
615
+ "@type": z.string(),
616
+ username: z.string().regex(/\S/),
617
+ password: z.string().nullish(),
618
+ })
619
+ .passthrough();
620
+ const JdbcAuthentication = PasswordAuthentication;
621
+ const PublicTunnel = z.object({ "@type": z.string() }).passthrough();
622
+ const VendorPrivateKeyAuthentication = z
623
+ .object({ username: z.string().regex(/\S/), "@type": z.string() })
624
+ .passthrough();
625
+ const TenantPrivateKeyAuthentication = z
626
+ .object({
627
+ username: z.string().regex(/\S/),
628
+ "@type": z.string(),
629
+ privateKey: z.string().nullish(),
630
+ })
631
+ .passthrough();
632
+ const SSHAuthentication = z.discriminatedUnion("@type", [
633
+ VendorPrivateKeyAuthentication,
634
+ TenantPrivateKeyAuthentication,
635
+ ]);
636
+ const SSHTunnel: z.ZodType<SSHTunnel> = z.lazy(() =>
637
+ z
638
+ .object({
639
+ "@type": z.string(),
640
+ tunnel: Tunnel,
641
+ host: z.string().regex(/\S/),
642
+ port: z.number().int().gte(1).lte(65536).optional(),
643
+ authentication: SSHAuthentication,
644
+ })
645
+ .passthrough()
646
+ );
647
+ const Tunnel: z.ZodType<Tunnel> = z.lazy(() =>
648
+ z.discriminatedUnion("@type", [PublicTunnel, SSHTunnel])
649
+ );
650
+ const Postgres = z
651
+ .object({
652
+ authentication: JdbcAuthentication,
653
+ database: z.string().regex(/\S/),
654
+ host: z.string().regex(/\S/),
655
+ tunnel: Tunnel,
656
+ "@type": z.string(),
657
+ port: z.number().int().optional(),
658
+ })
659
+ .passthrough();
660
+ const MySql = z
661
+ .object({
662
+ authentication: JdbcAuthentication,
663
+ database: z.string().regex(/\S/),
664
+ host: z.string().regex(/\S/),
665
+ tunnel: Tunnel,
666
+ "@type": z.string(),
667
+ port: z.number().int().optional(),
668
+ })
669
+ .passthrough();
670
+ const MSS = z
671
+ .object({
672
+ authentication: JdbcAuthentication,
673
+ database: z.string().regex(/\S/),
674
+ host: z.string().regex(/\S/),
675
+ tunnel: Tunnel,
676
+ "@type": z.string(),
677
+ port: z.number().int().optional(),
678
+ })
679
+ .passthrough();
680
+ const BigQueryAuthentication = z
681
+ .object({
682
+ projectId: z.string().nullable(),
683
+ jsonKeyFile: z.string().nullable(),
684
+ })
685
+ .partial()
686
+ .passthrough();
687
+ const BigQuery = z
688
+ .object({
689
+ tunnel: Tunnel,
690
+ "@type": z.string(),
691
+ authentication: BigQueryAuthentication,
692
+ })
693
+ .passthrough();
694
+ const Redshift = z
695
+ .object({
696
+ authentication: JdbcAuthentication,
697
+ database: z.string().regex(/\S/),
698
+ host: z.string().regex(/\S/),
699
+ tunnel: Tunnel,
700
+ "@type": z.string(),
701
+ port: z.number().int().optional(),
702
+ })
703
+ .passthrough();
704
+ const SnowflakePasswordAuthentication = z
705
+ .object({ "@type": z.string(), password: z.string().nullish() })
706
+ .passthrough();
707
+ const SnowflakeAuthentication = SnowflakePasswordAuthentication;
708
+ const Snowflake = z
709
+ .object({
710
+ tunnel: Tunnel,
711
+ "@type": z.string(),
712
+ user: z.string().regex(/\S/),
713
+ account: z.string().regex(/\S/),
714
+ schema: z.string().nullable(),
715
+ database: z.string().nullable(),
716
+ authentication: SnowflakeAuthentication,
717
+ })
718
+ .passthrough();
719
+ const ClickhouseConnectionType = z.enum(["HTTP", "NATIVE"]);
720
+ const Clickhouse = z
721
+ .object({
722
+ authentication: JdbcAuthentication,
723
+ database: z.string().regex(/\S/),
724
+ host: z.string().regex(/\S/),
725
+ tunnel: Tunnel,
726
+ "@type": z.string(),
727
+ port: z.number().int().optional(),
728
+ connectionType: ClickhouseConnectionType.optional(),
729
+ })
730
+ .passthrough();
731
+ const DataSourceConfiguration = z.discriminatedUnion("@type", [
732
+ Postgres,
733
+ MySql,
734
+ MSS,
735
+ BigQuery,
736
+ Redshift,
737
+ Snowflake,
738
+ Clickhouse,
739
+ ]);
740
+ const TestConnectionRequest = z
741
+ .object({ configuration: DataSourceConfiguration })
742
+ .passthrough();
743
+ const Namespace = z
744
+ .object({
745
+ name: z.string().max(200).regex(/\S/),
746
+ ignoreTableList: z.array(z.string()).optional(),
747
+ id: z
748
+ .string()
749
+ .regex(
750
+ /[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}/
751
+ )
752
+ .uuid()
753
+ .optional(),
754
+ })
755
+ .passthrough();
756
+ const NamespaceRequest = z.object({ namespace: Namespace }).passthrough();
757
+ const DataSource = z
758
+ .object({
759
+ name: z.string().max(200).regex(/\S/),
760
+ externalId: z.string().max(200).regex(/\S/),
761
+ id: z
762
+ .string()
763
+ .regex(
764
+ /[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}/
765
+ )
766
+ .uuid()
767
+ .optional(),
768
+ namespaceId: z
769
+ .string()
770
+ .regex(
771
+ /[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}/
772
+ )
773
+ .uuid()
774
+ .optional(),
775
+ configuration: DataSourceConfiguration,
776
+ })
777
+ .passthrough();
778
+ const NamespaceResponseMetadata = z
779
+ .object({
780
+ dataSources: z.array(DataSource).nullable(),
781
+ resources: z.array(Resource).nullable(),
782
+ views: z.array(Resource).nullable(),
783
+ })
784
+ .passthrough();
785
+ const NamespaceResponse = z
786
+ .object({ namespace: Namespace, meta: NamespaceResponseMetadata.nullable() })
787
+ .passthrough();
788
+ const DataSourceRequest = z.object({ dataSource: DataSource }).passthrough();
789
+ const DataSourceResponse = z.object({ dataSource: DataSource }).passthrough();
790
+ const PagingConfiguration = z
791
+ .object({ perPage: z.number().int().gte(1), page: z.number().int().gte(0) })
792
+ .partial()
793
+ .passthrough();
794
+ const DataRequestParameters = z
795
+ .object({
796
+ pagingConfiguration: PagingConfiguration,
797
+ includeTotalResults: z.boolean(),
798
+ })
799
+ .partial()
800
+ .passthrough();
801
+ const And: z.ZodType<And> = z.lazy(() =>
802
+ z
803
+ .object({ "@type": z.string(), values: z.array(Filter).min(1) })
804
+ .passthrough()
805
+ );
806
+ const Or: z.ZodType<Or> = z.lazy(() =>
807
+ z
808
+ .object({ "@type": z.string(), values: z.array(Filter).min(1) })
809
+ .passthrough()
810
+ );
811
+ const Not: z.ZodType<Not> = z.lazy(() =>
812
+ z.object({ "@type": z.string(), value: Filter }).passthrough()
813
+ );
814
+ const BooleanPropertyValue = z
815
+ .object({ "@type": z.string(), value: z.boolean() })
816
+ .passthrough();
817
+ const DatePropertyValue = z
818
+ .object({ "@type": z.string(), value: z.string() })
819
+ .passthrough();
820
+ const DateTimePropertyValue = z
821
+ .object({ "@type": z.string(), value: z.string().datetime({ offset: true }) })
822
+ .passthrough();
823
+ const DecimalPropertyValue = z
824
+ .object({ "@type": z.string(), value: z.number() })
825
+ .passthrough();
826
+ const DoublePropertyValue = z
827
+ .object({ "@type": z.string(), value: z.number() })
828
+ .passthrough();
829
+ const IntegerPropertyValue = z
830
+ .object({ "@type": z.string(), value: z.number().int() })
831
+ .passthrough();
832
+ const StringPropertyValue = z
833
+ .object({ "@type": z.string(), value: z.string() })
834
+ .passthrough();
835
+ const PropertyValue = z.discriminatedUnion("@type", [
836
+ BooleanPropertyValue,
837
+ DatePropertyValue,
838
+ DateTimePropertyValue,
839
+ DecimalPropertyValue,
840
+ DoublePropertyValue,
841
+ IntegerPropertyValue,
842
+ StringPropertyValue,
843
+ ]);
844
+ const Equal = z
845
+ .object({
846
+ "@type": z.string(),
847
+ propertyId: z.string().regex(/\S/),
848
+ value: PropertyValue,
849
+ })
850
+ .passthrough();
851
+ const LateBoundEqual = z
852
+ .object({
853
+ "@type": z.string(),
854
+ propertyId: z.string().regex(/\S/),
855
+ valueVariableReference: z.string().regex(/\S/),
856
+ })
857
+ .passthrough();
858
+ const In = z
859
+ .object({
860
+ "@type": z.string(),
861
+ propertyId: z.string().regex(/\S/),
862
+ values: z.array(PropertyValue),
863
+ })
864
+ .passthrough();
865
+ const LateBoundIn = z
866
+ .object({
867
+ "@type": z.string(),
868
+ propertyId: z.string().regex(/\S/),
869
+ valueVariableReference: z.string().regex(/\S/),
870
+ })
871
+ .passthrough();
872
+ const LessThan = z
873
+ .object({
874
+ "@type": z.string(),
875
+ propertyId: z.string().regex(/\S/),
876
+ value: PropertyValue,
877
+ })
878
+ .passthrough();
879
+ const LessThanOrEqual = z
880
+ .object({
881
+ "@type": z.string(),
882
+ propertyId: z.string().regex(/\S/),
883
+ value: PropertyValue,
884
+ })
885
+ .passthrough();
886
+ const GreaterThan = z
887
+ .object({
888
+ "@type": z.string(),
889
+ propertyId: z.string().regex(/\S/),
890
+ value: PropertyValue,
891
+ })
892
+ .passthrough();
893
+ const GreaterThanOrEqual = z
894
+ .object({
895
+ "@type": z.string(),
896
+ propertyId: z.string().regex(/\S/),
897
+ value: PropertyValue,
898
+ })
899
+ .passthrough();
900
+ const LateBoundLessThan = z
901
+ .object({
902
+ "@type": z.string(),
903
+ propertyId: z.string().regex(/\S/),
904
+ valueVariableReference: z.string().regex(/\S/),
905
+ })
906
+ .passthrough();
907
+ const LateBoundLessThanOrEqual = z
908
+ .object({
909
+ "@type": z.string(),
910
+ propertyId: z.string().regex(/\S/),
911
+ valueVariableReference: z.string().regex(/\S/),
912
+ })
913
+ .passthrough();
914
+ const LateBoundGreaterThan = z
915
+ .object({
916
+ "@type": z.string(),
917
+ propertyId: z.string().regex(/\S/),
918
+ valueVariableReference: z.string().regex(/\S/),
919
+ })
920
+ .passthrough();
921
+ const LateBoundGreaterThanOrEqual = z
922
+ .object({
923
+ "@type": z.string(),
924
+ propertyId: z.string().regex(/\S/),
925
+ valueVariableReference: z.string().regex(/\S/),
926
+ })
927
+ .passthrough();
928
+ const Null = z
929
+ .object({ "@type": z.string(), propertyId: z.string().regex(/\S/) })
930
+ .passthrough();
931
+ const StringContains = z
932
+ .object({
933
+ "@type": z.string(),
934
+ propertyId: z.string().regex(/\S/),
935
+ value: StringPropertyValue,
936
+ caseInsensitive: z.boolean(),
937
+ })
938
+ .passthrough();
939
+ const LateBoundStringContains = z
940
+ .object({
941
+ "@type": z.string(),
942
+ propertyId: z.string().regex(/\S/),
943
+ valueVariableReference: z.string().regex(/\S/),
944
+ caseInsensitive: z.boolean(),
945
+ })
946
+ .passthrough();
947
+ const Filter: z.ZodType<Filter> = z.lazy(() =>
948
+ z.discriminatedUnion("@type", [
949
+ And,
950
+ Or,
951
+ Not,
952
+ Equal,
953
+ LateBoundEqual,
954
+ In,
955
+ LateBoundIn,
956
+ LessThan,
957
+ LessThanOrEqual,
958
+ GreaterThan,
959
+ GreaterThanOrEqual,
960
+ LateBoundLessThan,
961
+ LateBoundLessThanOrEqual,
962
+ LateBoundGreaterThan,
963
+ LateBoundGreaterThanOrEqual,
964
+ Null,
965
+ StringContains,
966
+ LateBoundStringContains,
967
+ ])
968
+ );
969
+ const Aggregation = z.enum([
970
+ "avg",
971
+ "count",
972
+ "count-distinct",
973
+ "max",
974
+ "min",
975
+ "percentile",
976
+ "sum",
977
+ ]);
978
+ const AggregationOption = z.object({ decimalValue: z.number() }).passthrough();
979
+ const AggregateProperty = z
980
+ .object({
981
+ targetPropertyId: z.string().nullable(),
982
+ "@type": z.string(),
983
+ propertyId: z.string().nullable(),
984
+ aggregation: Aggregation,
985
+ aggregationOption: AggregationOption.nullish(),
986
+ })
987
+ .passthrough();
988
+ const SourceProperty = z
989
+ .object({
990
+ targetPropertyId: z.string().nullable(),
991
+ "@type": z.string(),
992
+ propertyId: z.string().regex(/\S/),
993
+ })
994
+ .passthrough();
995
+ const FormulaProperty = z
996
+ .object({
997
+ targetPropertyId: z.string().nullable(),
998
+ "@type": z.string(),
999
+ formula: z.string(),
1000
+ })
1001
+ .passthrough();
1002
+ const Property = z.discriminatedUnion("@type", [
1003
+ AggregateProperty,
1004
+ SourceProperty,
1005
+ FormulaProperty,
1006
+ ]);
1007
+ const CalendarInterval = z.enum([
1008
+ "year",
1009
+ "month",
1010
+ "week",
1011
+ "day",
1012
+ "hour",
1013
+ "minute",
1014
+ ]);
1015
+ const CalendarIntervalGrouping = z
1016
+ .object({
1017
+ propertyId: z.string().regex(/\S/),
1018
+ targetPropertyId: z.string().nullable(),
1019
+ "@type": z.string(),
1020
+ calendarInterval: CalendarInterval,
1021
+ targetTimezone: z.string().optional(),
1022
+ })
1023
+ .passthrough();
1024
+ const DatePart = z.enum([
1025
+ "day-of-week",
1026
+ "day-of-month",
1027
+ "month-of-year",
1028
+ "hour-of-day",
1029
+ ]);
1030
+ const DatePartGrouping = z
1031
+ .object({
1032
+ propertyId: z.string().regex(/\S/),
1033
+ targetPropertyId: z.string().nullable(),
1034
+ "@type": z.string(),
1035
+ datePart: DatePart,
1036
+ targetTimezone: z.string().optional(),
1037
+ })
1038
+ .passthrough();
1039
+ const DecimalIntervalGrouping = z
1040
+ .object({
1041
+ propertyId: z.string().regex(/\S/),
1042
+ targetPropertyId: z.string().nullable(),
1043
+ "@type": z.string(),
1044
+ interval: z.number().gt(0),
1045
+ })
1046
+ .passthrough();
1047
+ const IntegerIntervalGrouping = z
1048
+ .object({
1049
+ propertyId: z.string().regex(/\S/),
1050
+ targetPropertyId: z.string().nullable(),
1051
+ "@type": z.string(),
1052
+ interval: z.number().int().gt(0),
1053
+ })
1054
+ .passthrough();
1055
+ const ValueGrouping = z
1056
+ .object({
1057
+ propertyId: z.string().regex(/\S/),
1058
+ targetPropertyId: z.string().nullable(),
1059
+ "@type": z.string(),
1060
+ })
1061
+ .passthrough();
1062
+ const Grouping = z.discriminatedUnion("@type", [
1063
+ CalendarIntervalGrouping,
1064
+ DatePartGrouping,
1065
+ DecimalIntervalGrouping,
1066
+ IntegerIntervalGrouping,
1067
+ ValueGrouping,
1068
+ ]);
1069
+ const SortDirection = z.enum(["asc", "desc"]);
1070
+ const Sort = z
1071
+ .object({ sortDirection: SortDirection, propertyId: z.string().regex(/\S/) })
1072
+ .passthrough();
1073
+ const And1: z.ZodType<And1> = z.lazy(() =>
1074
+ z
1075
+ .object({ "@type": z.string(), values: z.array(Having).min(1) })
1076
+ .passthrough()
1077
+ );
1078
+ const Or1: z.ZodType<Or1> = z.lazy(() =>
1079
+ z
1080
+ .object({ "@type": z.string(), values: z.array(Having).min(1) })
1081
+ .passthrough()
1082
+ );
1083
+ const Not1: z.ZodType<Not1> = z.lazy(() =>
1084
+ z.object({ "@type": z.string(), value: Having }).passthrough()
1085
+ );
1086
+ const Equal1 = z
1087
+ .object({ "@type": z.string(), property: Property, value: PropertyValue })
1088
+ .passthrough();
1089
+ const LateBoundEqual1 = z
1090
+ .object({
1091
+ "@type": z.string(),
1092
+ property: Property,
1093
+ valueVariableReference: z.string().regex(/\S/),
1094
+ })
1095
+ .passthrough();
1096
+ const In1 = z
1097
+ .object({
1098
+ "@type": z.string(),
1099
+ property: Property,
1100
+ values: z.array(PropertyValue),
1101
+ })
1102
+ .passthrough();
1103
+ const LateBoundIn1 = z
1104
+ .object({
1105
+ "@type": z.string(),
1106
+ property: Property,
1107
+ valueVariableReference: z.string().regex(/\S/),
1108
+ })
1109
+ .passthrough();
1110
+ const LessThan1 = z
1111
+ .object({ "@type": z.string(), property: Property, value: PropertyValue })
1112
+ .passthrough();
1113
+ const LessThanOrEqual1 = z
1114
+ .object({ "@type": z.string(), property: Property, value: PropertyValue })
1115
+ .passthrough();
1116
+ const GreaterThan1 = z
1117
+ .object({ "@type": z.string(), property: Property, value: PropertyValue })
1118
+ .passthrough();
1119
+ const GreaterThanOrEqual1 = z
1120
+ .object({ "@type": z.string(), property: Property, value: PropertyValue })
1121
+ .passthrough();
1122
+ const LateBoundLessThan1 = z
1123
+ .object({
1124
+ "@type": z.string(),
1125
+ property: Property,
1126
+ valueVariableReference: z.string().regex(/\S/),
1127
+ })
1128
+ .passthrough();
1129
+ const LateBoundLessThanOrEqual1 = z
1130
+ .object({
1131
+ "@type": z.string(),
1132
+ property: Property,
1133
+ valueVariableReference: z.string().regex(/\S/),
1134
+ })
1135
+ .passthrough();
1136
+ const LateBoundGreaterThan1 = z
1137
+ .object({
1138
+ "@type": z.string(),
1139
+ property: Property,
1140
+ valueVariableReference: z.string().regex(/\S/),
1141
+ })
1142
+ .passthrough();
1143
+ const LateBoundGreaterThanOrEqual1 = z
1144
+ .object({
1145
+ "@type": z.string(),
1146
+ property: Property,
1147
+ valueVariableReference: z.string().regex(/\S/),
1148
+ })
1149
+ .passthrough();
1150
+ const Null1 = z
1151
+ .object({ "@type": z.string(), property: Property })
1152
+ .passthrough();
1153
+ const StringContains1 = z
1154
+ .object({
1155
+ "@type": z.string(),
1156
+ property: Property,
1157
+ value: StringPropertyValue,
1158
+ caseInsensitive: z.boolean(),
1159
+ })
1160
+ .passthrough();
1161
+ const LateBoundStringContains1 = z
1162
+ .object({
1163
+ "@type": z.string(),
1164
+ property: Property,
1165
+ valueVariableReference: z.string().regex(/\S/),
1166
+ caseInsensitive: z.boolean(),
1167
+ })
1168
+ .passthrough();
1169
+ const Having: z.ZodType<Having> = z.lazy(() =>
1170
+ z.discriminatedUnion("@type", [
1171
+ And1,
1172
+ Or1,
1173
+ Not1,
1174
+ Equal1,
1175
+ LateBoundEqual1,
1176
+ In1,
1177
+ LateBoundIn1,
1178
+ LessThan1,
1179
+ LessThanOrEqual1,
1180
+ GreaterThan1,
1181
+ GreaterThanOrEqual1,
1182
+ LateBoundLessThan1,
1183
+ LateBoundLessThanOrEqual1,
1184
+ LateBoundGreaterThan1,
1185
+ LateBoundGreaterThanOrEqual1,
1186
+ Null1,
1187
+ StringContains1,
1188
+ LateBoundStringContains1,
1189
+ ])
1190
+ );
1191
+ const Computation = z
1192
+ .object({
1193
+ filter: Filter.nullable(),
1194
+ properties: z.array(Property),
1195
+ groupings: z.array(Grouping),
1196
+ sorts: z.array(Sort),
1197
+ having: Having.nullable(),
1198
+ includeRollup: z.boolean().optional(),
1199
+ })
1200
+ .passthrough();
1201
+ const QueryPreviewRequest = z
1202
+ .object({
1203
+ query: z.string().regex(/\S/),
1204
+ dataRequestParameters: DataRequestParameters,
1205
+ queryContext: z.object({}).partial().passthrough(),
1206
+ computation: Computation.nullable(),
1207
+ })
1208
+ .passthrough();
1209
+ const DataRecord = z
1210
+ .object({ propertyValues: z.record(z.array(PropertyValue)) })
1211
+ .passthrough();
1212
+ const DataPage = z.object({ dataRecords: z.array(DataRecord) }).passthrough();
1213
+ const DataSchema = z
1214
+ .object({ propertySchema: z.array(PropertySchema) })
1215
+ .passthrough();
1216
+ const DataResponseMetadata = z
1217
+ .object({
1218
+ schema: DataSchema,
1219
+ totalResults: z.number().int().nullable(),
1220
+ renderedQuery: z.string().nullable(),
1221
+ })
1222
+ .passthrough();
1223
+ const CacheTelemetry = z
1224
+ .object({
1225
+ cacheHit: z.boolean(),
1226
+ recordedAt: z.string().datetime({ offset: true }).nullable(),
1227
+ ttl: z.string().nullable(),
1228
+ })
1229
+ .passthrough();
1230
+ const RequestTelemetry = z
1231
+ .object({
1232
+ requestTime: z.string().nullable(),
1233
+ queryTime: z.string().nullable(),
1234
+ processingTime: z.string().nullable(),
1235
+ cacheTelemetry: CacheTelemetry.nullish(),
1236
+ })
1237
+ .passthrough();
1238
+ const QueryExecutionResponse = z
1239
+ .object({
1240
+ data: DataPage,
1241
+ meta: DataResponseMetadata,
1242
+ requestTelemetry: RequestTelemetry.nullable(),
1243
+ })
1244
+ .passthrough();
1245
+ const QueryExecutionError = z
1246
+ .object({
1247
+ renderedQuery: z.string().nullable(),
1248
+ requestTelemetry: RequestTelemetry.nullable(),
1249
+ message: z.string().nullable(),
1250
+ "@type": z.string(),
1251
+ })
1252
+ .passthrough();
1253
+ const TablePreviewRequest = z
1254
+ .object({
1255
+ tableIdentifier: z.string().regex(/\S/),
1256
+ dataRequestParameters: DataRequestParameters,
1257
+ })
1258
+ .passthrough();
1259
+ const ExportFormat = z.enum(["CSV", "TSV", "XLSX"]);
1260
+ const DateTimeFormat = z
1261
+ .object({ pattern: z.string(), exportFormat: z.string().optional() })
1262
+ .passthrough();
1263
+ const DateTimeColumnFormat = z
1264
+ .object({
1265
+ "@type": z.string(),
1266
+ dateTimeFormatPattern: DateTimeFormat.nullish(),
1267
+ pattern: z.string().nullish(),
1268
+ locale: z.string().nullable(),
1269
+ targetTimezone: z.string().optional(),
1270
+ })
1271
+ .passthrough();
1272
+ const UnitOfMeasurement = z.literal("CURRENCY");
1273
+ const DecimalColumnFormat = z
1274
+ .object({
1275
+ "@type": z.string(),
1276
+ decimalFormat: z.string().nullable(),
1277
+ locale: z.string().nullable(),
1278
+ unitOfMeasurement: UnitOfMeasurement.optional(),
1279
+ zeroReplacement: z.string().nullable(),
1280
+ multiplier: z.number().nullable(),
1281
+ })
1282
+ .passthrough();
1283
+ const DurationColumnFormat = z
1284
+ .object({ "@type": z.string(), durationPattern: z.string().nullable() })
1285
+ .passthrough();
1286
+ const ColumnFormat = z.discriminatedUnion("@type", [
1287
+ DateTimeColumnFormat,
1288
+ DecimalColumnFormat,
1289
+ DurationColumnFormat,
1290
+ ]);
1291
+ const ExportColumnOptions = z
1292
+ .object({
1293
+ targetPropertyId: z.string(),
1294
+ displayName: z.string().nullable(),
1295
+ columnFormat: ColumnFormat.nullable(),
1296
+ })
1297
+ .passthrough();
1298
+ const ExportTargetConfiguration = z
1299
+ .object({
1300
+ fileName: z.string().nullable(),
1301
+ exportFormat: ExportFormat,
1302
+ columnDisplayOptions: z.array(ExportColumnOptions),
1303
+ })
1304
+ .passthrough();
1305
+ const EmailConfiguration = z
1306
+ .object({
1307
+ recipientEmails: z.array(z.string()).min(1),
1308
+ subject: z.string().nullable(),
1309
+ body: z.string().nullable(),
1310
+ })
1311
+ .passthrough();
1312
+ const ViewExportRequest = z
1313
+ .object({
1314
+ queryContext: z.object({}).partial().passthrough(),
1315
+ computation: Computation.nullable(),
1316
+ exportConfiguration: ExportTargetConfiguration,
1317
+ emailConfiguration: EmailConfiguration.nullable(),
1318
+ })
1319
+ .passthrough();
1320
+ const QueryExportEmailResponse = z
1321
+ .object({ "@type": z.string() })
1322
+ .passthrough();
1323
+ const QueryExportLinkResponse = z
1324
+ .object({ "@type": z.string(), url: z.string().regex(/\S/) })
1325
+ .passthrough();
1326
+ const QueryExportResponse = z.discriminatedUnion("@type", [
1327
+ QueryExportEmailResponse,
1328
+ QueryExportLinkResponse,
1329
+ ]);
1330
+ const RequestExecutionParameters = z
1331
+ .object({ forceRefresh: z.boolean() })
1332
+ .partial()
1333
+ .passthrough();
1334
+ const ViewRunRequest = z
1335
+ .object({
1336
+ dataRequestParameters: DataRequestParameters,
1337
+ requestExecutionParameters: RequestExecutionParameters.nullable(),
1338
+ queryContext: z.object({}).partial().passthrough(),
1339
+ computation: Computation.nullable(),
1340
+ })
1341
+ .passthrough();
1342
+ const View = z
1343
+ .object({
1344
+ name: z.string().max(200).regex(/\S/),
1345
+ path: z.string().nullable(),
1346
+ description: z.string().nullable(),
1347
+ id: z
1348
+ .string()
1349
+ .regex(
1350
+ /[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}/
1351
+ )
1352
+ .uuid()
1353
+ .nullish(),
1354
+ versionId: z
1355
+ .string()
1356
+ .regex(
1357
+ /[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}/
1358
+ )
1359
+ .uuid()
1360
+ .nullish(),
1361
+ columnDefinitions: z.array(PropertySchema),
1362
+ namespaceId: z
1363
+ .string()
1364
+ .regex(
1365
+ /[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}/
1366
+ )
1367
+ .uuid()
1368
+ .nullish(),
1369
+ })
1370
+ .passthrough();
1371
+ const ViewResponse = z.object({ view: View }).passthrough();
1372
+ const ListViewsResponse = z
1373
+ .object({ views: z.array(ViewResponse) })
1374
+ .passthrough();
1375
+ const TenantS3Configuration = z
1376
+ .object({
1377
+ prefix: z.string(),
1378
+ bucket: z.string(),
1379
+ region: z.string(),
1380
+ roleArn: z.string(),
1381
+ })
1382
+ .passthrough();
1383
+ const TenantRequest = z
1384
+ .object({
1385
+ configurationOverrides: z.record(z.string()).optional(),
1386
+ s3Configuration: TenantS3Configuration.nullable(),
1387
+ })
1388
+ .passthrough();
1389
+ const TenantKey = z
1390
+ .object({
1391
+ id: z
1392
+ .string()
1393
+ .regex(
1394
+ /[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}/
1395
+ )
1396
+ .uuid(),
1397
+ createdAt: z.string().datetime({ offset: true }),
1398
+ value: z.string().nullable(),
1399
+ })
1400
+ .passthrough();
1401
+ const Tenant = z
1402
+ .object({
1403
+ id: z
1404
+ .string()
1405
+ .regex(
1406
+ /[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}/
1407
+ )
1408
+ .uuid(),
1409
+ keys: z.array(TenantKey).optional(),
1410
+ configurationOverrides: z.record(z.string()).optional(),
1411
+ s3Configuration: TenantS3Configuration.nullable(),
1412
+ })
1413
+ .passthrough();
1414
+ const TenantResponse = z.object({ tenant: Tenant }).passthrough();
1415
+ const VersionedViewRequest = z
1416
+ .object({
1417
+ id: UUID.regex(
1418
+ /[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}/
1419
+ ).uuid(),
1420
+ versionId: UUID.regex(
1421
+ /[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}/
1422
+ ).uuid(),
1423
+ })
1424
+ .passthrough();
1425
+ const ListVersionedViewsRequest = z
1426
+ .object({ requests: z.array(VersionedViewRequest) })
1427
+ .passthrough();
1428
+
1429
+ export const schemas = {
1430
+ Branch,
1431
+ ListBranchResponse,
1432
+ ClientError,
1433
+ BranchRequest,
1434
+ PropertyType,
1435
+ PropertySchema,
1436
+ Parameter,
1437
+ ScheduledEviction,
1438
+ TtlEviction,
1439
+ EvictionPolicy,
1440
+ ComputedView,
1441
+ TableView,
1442
+ Folder,
1443
+ Resource,
1444
+ CreateResourceDiff,
1445
+ DeleteResourceDiff,
1446
+ UpdateResourceDiff,
1447
+ ResourceDiff,
1448
+ BranchResponseMetadata,
1449
+ BranchResponse,
1450
+ DiffBranchResponse,
1451
+ UUID,
1452
+ CreateResourceChange,
1453
+ UpdateResourceChange,
1454
+ DeleteResourceChange,
1455
+ ResourceChange,
1456
+ CreateCommitRequest,
1457
+ CreateCommitResponse,
1458
+ ListBranchContentResponse,
1459
+ MergeBranchRequest,
1460
+ PasswordAuthentication,
1461
+ JdbcAuthentication,
1462
+ PublicTunnel,
1463
+ VendorPrivateKeyAuthentication,
1464
+ TenantPrivateKeyAuthentication,
1465
+ SSHAuthentication,
1466
+ SSHTunnel,
1467
+ Tunnel,
1468
+ Postgres,
1469
+ MySql,
1470
+ MSS,
1471
+ BigQueryAuthentication,
1472
+ BigQuery,
1473
+ Redshift,
1474
+ SnowflakePasswordAuthentication,
1475
+ SnowflakeAuthentication,
1476
+ Snowflake,
1477
+ ClickhouseConnectionType,
1478
+ Clickhouse,
1479
+ DataSourceConfiguration,
1480
+ TestConnectionRequest,
1481
+ Namespace,
1482
+ NamespaceRequest,
1483
+ DataSource,
1484
+ NamespaceResponseMetadata,
1485
+ NamespaceResponse,
1486
+ DataSourceRequest,
1487
+ DataSourceResponse,
1488
+ PagingConfiguration,
1489
+ DataRequestParameters,
1490
+ And,
1491
+ Or,
1492
+ Not,
1493
+ BooleanPropertyValue,
1494
+ DatePropertyValue,
1495
+ DateTimePropertyValue,
1496
+ DecimalPropertyValue,
1497
+ DoublePropertyValue,
1498
+ IntegerPropertyValue,
1499
+ StringPropertyValue,
1500
+ PropertyValue,
1501
+ Equal,
1502
+ LateBoundEqual,
1503
+ In,
1504
+ LateBoundIn,
1505
+ LessThan,
1506
+ LessThanOrEqual,
1507
+ GreaterThan,
1508
+ GreaterThanOrEqual,
1509
+ LateBoundLessThan,
1510
+ LateBoundLessThanOrEqual,
1511
+ LateBoundGreaterThan,
1512
+ LateBoundGreaterThanOrEqual,
1513
+ Null,
1514
+ StringContains,
1515
+ LateBoundStringContains,
1516
+ Filter,
1517
+ Aggregation,
1518
+ AggregationOption,
1519
+ AggregateProperty,
1520
+ SourceProperty,
1521
+ FormulaProperty,
1522
+ Property,
1523
+ CalendarInterval,
1524
+ CalendarIntervalGrouping,
1525
+ DatePart,
1526
+ DatePartGrouping,
1527
+ DecimalIntervalGrouping,
1528
+ IntegerIntervalGrouping,
1529
+ ValueGrouping,
1530
+ Grouping,
1531
+ SortDirection,
1532
+ Sort,
1533
+ And1,
1534
+ Or1,
1535
+ Not1,
1536
+ Equal1,
1537
+ LateBoundEqual1,
1538
+ In1,
1539
+ LateBoundIn1,
1540
+ LessThan1,
1541
+ LessThanOrEqual1,
1542
+ GreaterThan1,
1543
+ GreaterThanOrEqual1,
1544
+ LateBoundLessThan1,
1545
+ LateBoundLessThanOrEqual1,
1546
+ LateBoundGreaterThan1,
1547
+ LateBoundGreaterThanOrEqual1,
1548
+ Null1,
1549
+ StringContains1,
1550
+ LateBoundStringContains1,
1551
+ Having,
1552
+ Computation,
1553
+ QueryPreviewRequest,
1554
+ DataRecord,
1555
+ DataPage,
1556
+ DataSchema,
1557
+ DataResponseMetadata,
1558
+ CacheTelemetry,
1559
+ RequestTelemetry,
1560
+ QueryExecutionResponse,
1561
+ QueryExecutionError,
1562
+ TablePreviewRequest,
1563
+ ExportFormat,
1564
+ DateTimeFormat,
1565
+ DateTimeColumnFormat,
1566
+ UnitOfMeasurement,
1567
+ DecimalColumnFormat,
1568
+ DurationColumnFormat,
1569
+ ColumnFormat,
1570
+ ExportColumnOptions,
1571
+ ExportTargetConfiguration,
1572
+ EmailConfiguration,
1573
+ ViewExportRequest,
1574
+ QueryExportEmailResponse,
1575
+ QueryExportLinkResponse,
1576
+ QueryExportResponse,
1577
+ RequestExecutionParameters,
1578
+ ViewRunRequest,
1579
+ View,
1580
+ ViewResponse,
1581
+ ListViewsResponse,
1582
+ TenantS3Configuration,
1583
+ TenantRequest,
1584
+ TenantKey,
1585
+ Tenant,
1586
+ TenantResponse,
1587
+ VersionedViewRequest,
1588
+ ListVersionedViewsRequest,
1589
+ };
1590
+
1591
+ const endpoints = makeApi([
1592
+ {
1593
+ method: "get",
1594
+ path: "/v1/branches",
1595
+ alias: "listBranches",
1596
+ requestFormat: "json",
1597
+ response: ListBranchResponse,
1598
+ errors: [
1599
+ {
1600
+ status: NaN,
1601
+ description: `An error related to the user request`,
1602
+ schema: ClientError,
1603
+ },
1604
+ ],
1605
+ },
1606
+ {
1607
+ method: "post",
1608
+ path: "/v1/branches",
1609
+ alias: "createBranch",
1610
+ requestFormat: "json",
1611
+ parameters: [
1612
+ {
1613
+ name: "body",
1614
+ description: `Branch to create`,
1615
+ type: "Body",
1616
+ schema: BranchRequest,
1617
+ },
1618
+ ],
1619
+ response: BranchResponse,
1620
+ errors: [
1621
+ {
1622
+ status: NaN,
1623
+ description: `An error related to the user request`,
1624
+ schema: ClientError,
1625
+ },
1626
+ ],
1627
+ },
1628
+ {
1629
+ method: "post",
1630
+ path: "/v1/branches/:branchId/commits",
1631
+ alias: "createCommit",
1632
+ requestFormat: "json",
1633
+ parameters: [
1634
+ {
1635
+ name: "body",
1636
+ description: `Branch to create`,
1637
+ type: "Body",
1638
+ schema: CreateCommitRequest,
1639
+ },
1640
+ {
1641
+ name: "branchId",
1642
+ type: "Path",
1643
+ schema: z
1644
+ .string()
1645
+ .regex(
1646
+ /[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}/
1647
+ )
1648
+ .uuid(),
1649
+ },
1650
+ ],
1651
+ response: CreateCommitResponse,
1652
+ errors: [
1653
+ {
1654
+ status: NaN,
1655
+ description: `An error related to the user request`,
1656
+ schema: ClientError,
1657
+ },
1658
+ ],
1659
+ },
1660
+ {
1661
+ method: "get",
1662
+ path: "/v1/branches/:id",
1663
+ alias: "getBranch",
1664
+ requestFormat: "json",
1665
+ parameters: [
1666
+ {
1667
+ name: "id",
1668
+ type: "Path",
1669
+ schema: z
1670
+ .string()
1671
+ .regex(
1672
+ /[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}/
1673
+ )
1674
+ .uuid(),
1675
+ },
1676
+ {
1677
+ name: "includeMeta",
1678
+ type: "Query",
1679
+ schema: z.boolean().optional().default(false),
1680
+ },
1681
+ ],
1682
+ response: BranchResponse,
1683
+ errors: [
1684
+ {
1685
+ status: NaN,
1686
+ description: `An error related to the user request`,
1687
+ schema: ClientError,
1688
+ },
1689
+ ],
1690
+ },
1691
+ {
1692
+ method: "get",
1693
+ path: "/v1/branches/:id/contents:path",
1694
+ alias: "listBranchContent",
1695
+ requestFormat: "json",
1696
+ parameters: [
1697
+ {
1698
+ name: "id",
1699
+ type: "Path",
1700
+ schema: z
1701
+ .string()
1702
+ .regex(
1703
+ /[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}/
1704
+ )
1705
+ .uuid(),
1706
+ },
1707
+ {
1708
+ name: "path",
1709
+ type: "Path",
1710
+ schema: z
1711
+ .string()
1712
+ .regex(/(\/.+)?/)
1713
+ .default("/"),
1714
+ },
1715
+ {
1716
+ name: "page",
1717
+ type: "Query",
1718
+ schema: z.number().int().optional().default(0),
1719
+ },
1720
+ {
1721
+ name: "perPage",
1722
+ type: "Query",
1723
+ schema: z.number().int().optional().default(50),
1724
+ },
1725
+ ],
1726
+ response: ListBranchContentResponse,
1727
+ errors: [
1728
+ {
1729
+ status: NaN,
1730
+ description: `An error related to the user request`,
1731
+ schema: ClientError,
1732
+ },
1733
+ ],
1734
+ },
1735
+ {
1736
+ method: "post",
1737
+ path: "/v1/branches/:targetBranchId/merge",
1738
+ alias: "mergeBranch",
1739
+ requestFormat: "json",
1740
+ parameters: [
1741
+ {
1742
+ name: "body",
1743
+ description: `Options for merge`,
1744
+ type: "Body",
1745
+ schema: MergeBranchRequest,
1746
+ },
1747
+ {
1748
+ name: "targetBranchId",
1749
+ type: "Path",
1750
+ schema: z
1751
+ .string()
1752
+ .regex(
1753
+ /[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}/
1754
+ )
1755
+ .uuid(),
1756
+ },
1757
+ {
1758
+ name: "isForce",
1759
+ type: "Query",
1760
+ schema: z.boolean(),
1761
+ },
1762
+ ],
1763
+ response: BranchResponse,
1764
+ errors: [
1765
+ {
1766
+ status: NaN,
1767
+ description: `An error related to the user request`,
1768
+ schema: ClientError,
1769
+ },
1770
+ ],
1771
+ },
1772
+ {
1773
+ method: "get",
1774
+ path: "/v1/branches/diff",
1775
+ alias: "diffBranch",
1776
+ requestFormat: "json",
1777
+ parameters: [
1778
+ {
1779
+ name: "from",
1780
+ type: "Query",
1781
+ schema: z
1782
+ .string()
1783
+ .regex(
1784
+ /[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}/
1785
+ )
1786
+ .uuid()
1787
+ .optional(),
1788
+ },
1789
+ {
1790
+ name: "to",
1791
+ type: "Query",
1792
+ schema: z
1793
+ .string()
1794
+ .regex(
1795
+ /[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}/
1796
+ )
1797
+ .uuid()
1798
+ .optional(),
1799
+ },
1800
+ ],
1801
+ response: DiffBranchResponse,
1802
+ errors: [
1803
+ {
1804
+ status: NaN,
1805
+ description: `An error related to the user request`,
1806
+ schema: ClientError,
1807
+ },
1808
+ ],
1809
+ },
1810
+ {
1811
+ method: "post",
1812
+ path: "/v1/data-sources/retest-connection/:id",
1813
+ alias: "retestConnection",
1814
+ requestFormat: "json",
1815
+ parameters: [
1816
+ {
1817
+ name: "body",
1818
+ description: `Data Source configuration to retry to connect to`,
1819
+ type: "Body",
1820
+ schema: TestConnectionRequest,
1821
+ },
1822
+ {
1823
+ name: "id",
1824
+ type: "Path",
1825
+ schema: z
1826
+ .string()
1827
+ .regex(
1828
+ /[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}/
1829
+ )
1830
+ .uuid(),
1831
+ },
1832
+ ],
1833
+ response: z
1834
+ .object({ numberOfTables: z.number().int().gte(0) })
1835
+ .passthrough(),
1836
+ errors: [
1837
+ {
1838
+ status: NaN,
1839
+ description: `An error related to the user request`,
1840
+ schema: ClientError,
1841
+ },
1842
+ ],
1843
+ },
1844
+ {
1845
+ method: "post",
1846
+ path: "/v1/data-sources/test-connection",
1847
+ alias: "testConnection",
1848
+ requestFormat: "json",
1849
+ parameters: [
1850
+ {
1851
+ name: "body",
1852
+ description: `Data Source configuration to try to connect to`,
1853
+ type: "Body",
1854
+ schema: TestConnectionRequest,
1855
+ },
1856
+ ],
1857
+ response: z
1858
+ .object({ numberOfTables: z.number().int().gte(0) })
1859
+ .passthrough(),
1860
+ errors: [
1861
+ {
1862
+ status: NaN,
1863
+ description: `An error related to the user request`,
1864
+ schema: ClientError,
1865
+ },
1866
+ ],
1867
+ },
1868
+ {
1869
+ method: "get",
1870
+ path: "/v1/health",
1871
+ alias: "getFidoHealth",
1872
+ requestFormat: "json",
1873
+ response: z.object({}).partial().passthrough(),
1874
+ },
1875
+ {
1876
+ method: "get",
1877
+ path: "/v1/health/data-source-connection/:namespaceId/:dataSourceId",
1878
+ alias: "getDataSourceConnectionHealth",
1879
+ requestFormat: "json",
1880
+ parameters: [
1881
+ {
1882
+ name: "dataSourceId",
1883
+ type: "Path",
1884
+ schema: z
1885
+ .string()
1886
+ .regex(
1887
+ /[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}/
1888
+ )
1889
+ .uuid(),
1890
+ },
1891
+ {
1892
+ name: "namespaceId",
1893
+ type: "Path",
1894
+ schema: z
1895
+ .string()
1896
+ .regex(
1897
+ /[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}/
1898
+ )
1899
+ .uuid(),
1900
+ },
1901
+ ],
1902
+ response: z.object({}).partial().passthrough(),
1903
+ },
1904
+ {
1905
+ method: "post",
1906
+ path: "/v1/namespaces",
1907
+ alias: "createNamespace",
1908
+ requestFormat: "json",
1909
+ parameters: [
1910
+ {
1911
+ name: "body",
1912
+ description: `Namespace object to create`,
1913
+ type: "Body",
1914
+ schema: NamespaceRequest,
1915
+ },
1916
+ ],
1917
+ response: NamespaceResponse,
1918
+ errors: [
1919
+ {
1920
+ status: NaN,
1921
+ description: `An error related to the user request`,
1922
+ schema: ClientError,
1923
+ },
1924
+ ],
1925
+ },
1926
+ {
1927
+ method: "get",
1928
+ path: "/v1/namespaces/:id",
1929
+ alias: "getNamespace",
1930
+ requestFormat: "json",
1931
+ parameters: [
1932
+ {
1933
+ name: "id",
1934
+ type: "Path",
1935
+ schema: z
1936
+ .string()
1937
+ .regex(
1938
+ /[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}/
1939
+ )
1940
+ .uuid(),
1941
+ },
1942
+ {
1943
+ name: "includeDataSources",
1944
+ type: "Query",
1945
+ schema: z.boolean().optional().default(false),
1946
+ },
1947
+ {
1948
+ name: "includeViews",
1949
+ type: "Query",
1950
+ schema: z.boolean().optional().default(false),
1951
+ },
1952
+ ],
1953
+ response: NamespaceResponse,
1954
+ errors: [
1955
+ {
1956
+ status: NaN,
1957
+ description: `An error related to the user request`,
1958
+ schema: ClientError,
1959
+ },
1960
+ ],
1961
+ },
1962
+ {
1963
+ method: "put",
1964
+ path: "/v1/namespaces/:id",
1965
+ alias: "updateNamespace",
1966
+ requestFormat: "json",
1967
+ parameters: [
1968
+ {
1969
+ name: "body",
1970
+ description: `Namespace object to update`,
1971
+ type: "Body",
1972
+ schema: NamespaceRequest,
1973
+ },
1974
+ {
1975
+ name: "id",
1976
+ type: "Path",
1977
+ schema: z
1978
+ .string()
1979
+ .regex(
1980
+ /[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}/
1981
+ )
1982
+ .uuid(),
1983
+ },
1984
+ ],
1985
+ response: NamespaceResponse,
1986
+ errors: [
1987
+ {
1988
+ status: NaN,
1989
+ description: `An error related to the user request`,
1990
+ schema: ClientError,
1991
+ },
1992
+ ],
1993
+ },
1994
+ {
1995
+ method: "delete",
1996
+ path: "/v1/namespaces/:id",
1997
+ alias: "deleteNamespace",
1998
+ requestFormat: "json",
1999
+ parameters: [
2000
+ {
2001
+ name: "id",
2002
+ type: "Path",
2003
+ schema: z
2004
+ .string()
2005
+ .regex(
2006
+ /[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}/
2007
+ )
2008
+ .uuid(),
2009
+ },
2010
+ ],
2011
+ response: z.object({}).partial().passthrough(),
2012
+ errors: [
2013
+ {
2014
+ status: NaN,
2015
+ description: `An error related to the user request`,
2016
+ schema: ClientError,
2017
+ },
2018
+ ],
2019
+ },
2020
+ {
2021
+ method: "post",
2022
+ path: "/v1/namespaces/:namespaceId/data-sources",
2023
+ alias: "createDataSource",
2024
+ requestFormat: "json",
2025
+ parameters: [
2026
+ {
2027
+ name: "body",
2028
+ description: `Data Source object to create`,
2029
+ type: "Body",
2030
+ schema: DataSourceRequest,
2031
+ },
2032
+ {
2033
+ name: "namespaceId",
2034
+ type: "Path",
2035
+ schema: z
2036
+ .string()
2037
+ .regex(
2038
+ /[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}/
2039
+ )
2040
+ .uuid(),
2041
+ },
2042
+ ],
2043
+ response: DataSourceResponse,
2044
+ errors: [
2045
+ {
2046
+ status: NaN,
2047
+ description: `An error related to the user request`,
2048
+ schema: ClientError,
2049
+ },
2050
+ ],
2051
+ },
2052
+ {
2053
+ method: "post",
2054
+ path: "/v1/namespaces/:namespaceId/data-sources/:dataSourceId/preview",
2055
+ alias: "getQueryPreview",
2056
+ requestFormat: "json",
2057
+ parameters: [
2058
+ {
2059
+ name: "body",
2060
+ description: `Query to preview against the provided data source`,
2061
+ type: "Body",
2062
+ schema: QueryPreviewRequest,
2063
+ },
2064
+ {
2065
+ name: "dataSourceId",
2066
+ type: "Path",
2067
+ schema: z
2068
+ .string()
2069
+ .regex(
2070
+ /[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}/
2071
+ )
2072
+ .uuid(),
2073
+ },
2074
+ {
2075
+ name: "namespaceId",
2076
+ type: "Path",
2077
+ schema: z
2078
+ .string()
2079
+ .regex(
2080
+ /[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}/
2081
+ )
2082
+ .uuid(),
2083
+ },
2084
+ ],
2085
+ response: QueryExecutionResponse,
2086
+ errors: [
2087
+ {
2088
+ status: 400,
2089
+ description: `An error related to the user request`,
2090
+ schema: ClientError,
2091
+ },
2092
+ {
2093
+ status: 503,
2094
+ description: `An error related to the execution of the request`,
2095
+ schema: QueryExecutionError,
2096
+ },
2097
+ ],
2098
+ },
2099
+ {
2100
+ method: "post",
2101
+ path: "/v1/namespaces/:namespaceId/data-sources/:dataSourceId/preview-table",
2102
+ alias: "getTablePreview",
2103
+ requestFormat: "json",
2104
+ parameters: [
2105
+ {
2106
+ name: "body",
2107
+ description: `Table to preview against the provided data source`,
2108
+ type: "Body",
2109
+ schema: TablePreviewRequest,
2110
+ },
2111
+ {
2112
+ name: "dataSourceId",
2113
+ type: "Path",
2114
+ schema: z
2115
+ .string()
2116
+ .regex(
2117
+ /[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}/
2118
+ )
2119
+ .uuid(),
2120
+ },
2121
+ {
2122
+ name: "namespaceId",
2123
+ type: "Path",
2124
+ schema: z
2125
+ .string()
2126
+ .regex(
2127
+ /[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}/
2128
+ )
2129
+ .uuid(),
2130
+ },
2131
+ ],
2132
+ response: QueryExecutionResponse,
2133
+ errors: [
2134
+ {
2135
+ status: 400,
2136
+ description: `An error related to the user request`,
2137
+ schema: ClientError,
2138
+ },
2139
+ ],
2140
+ },
2141
+ {
2142
+ method: "post",
2143
+ path: "/v1/namespaces/:namespaceId/data-sources/:dataSourceId/views/:viewId/export",
2144
+ alias: "exportView",
2145
+ requestFormat: "json",
2146
+ parameters: [
2147
+ {
2148
+ name: "body",
2149
+ description: `View to export against the provided data source`,
2150
+ type: "Body",
2151
+ schema: ViewExportRequest,
2152
+ },
2153
+ {
2154
+ name: "dataSourceId",
2155
+ type: "Path",
2156
+ schema: z
2157
+ .string()
2158
+ .regex(
2159
+ /[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}/
2160
+ )
2161
+ .uuid(),
2162
+ },
2163
+ {
2164
+ name: "namespaceId",
2165
+ type: "Path",
2166
+ schema: z
2167
+ .string()
2168
+ .regex(
2169
+ /[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}/
2170
+ )
2171
+ .uuid(),
2172
+ },
2173
+ {
2174
+ name: "viewId",
2175
+ type: "Path",
2176
+ schema: z
2177
+ .string()
2178
+ .regex(
2179
+ /[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}/
2180
+ )
2181
+ .uuid(),
2182
+ },
2183
+ ],
2184
+ response: QueryExportResponse,
2185
+ errors: [
2186
+ {
2187
+ status: 400,
2188
+ description: `An error related to the user request`,
2189
+ schema: ClientError,
2190
+ },
2191
+ ],
2192
+ },
2193
+ {
2194
+ method: "post",
2195
+ path: "/v1/namespaces/:namespaceId/data-sources/:dataSourceId/views/:viewId/run",
2196
+ alias: "runView",
2197
+ requestFormat: "json",
2198
+ parameters: [
2199
+ {
2200
+ name: "body",
2201
+ description: `View to run against the provided data source`,
2202
+ type: "Body",
2203
+ schema: ViewRunRequest,
2204
+ },
2205
+ {
2206
+ name: "dataSourceId",
2207
+ type: "Path",
2208
+ schema: z
2209
+ .string()
2210
+ .regex(
2211
+ /[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}/
2212
+ )
2213
+ .uuid(),
2214
+ },
2215
+ {
2216
+ name: "namespaceId",
2217
+ type: "Path",
2218
+ schema: z
2219
+ .string()
2220
+ .regex(
2221
+ /[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}/
2222
+ )
2223
+ .uuid(),
2224
+ },
2225
+ {
2226
+ name: "viewId",
2227
+ type: "Path",
2228
+ schema: z
2229
+ .string()
2230
+ .regex(
2231
+ /[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}/
2232
+ )
2233
+ .uuid(),
2234
+ },
2235
+ ],
2236
+ response: QueryExecutionResponse,
2237
+ errors: [
2238
+ {
2239
+ status: 400,
2240
+ description: `An error related to the user request`,
2241
+ schema: ClientError,
2242
+ },
2243
+ {
2244
+ status: 503,
2245
+ description: `An error related to the execution of the request`,
2246
+ schema: QueryExecutionError,
2247
+ },
2248
+ ],
2249
+ },
2250
+ {
2251
+ method: "post",
2252
+ path: "/v1/namespaces/:namespaceId/data-sources/:dataSourceId/views/:viewId/versions/:versionId/export",
2253
+ alias: "exportVersionedView",
2254
+ requestFormat: "json",
2255
+ parameters: [
2256
+ {
2257
+ name: "body",
2258
+ description: `Request options for the export`,
2259
+ type: "Body",
2260
+ schema: ViewExportRequest,
2261
+ },
2262
+ {
2263
+ name: "dataSourceId",
2264
+ type: "Path",
2265
+ schema: z
2266
+ .string()
2267
+ .regex(
2268
+ /[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}/
2269
+ )
2270
+ .uuid(),
2271
+ },
2272
+ {
2273
+ name: "namespaceId",
2274
+ type: "Path",
2275
+ schema: z
2276
+ .string()
2277
+ .regex(
2278
+ /[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}/
2279
+ )
2280
+ .uuid(),
2281
+ },
2282
+ {
2283
+ name: "versionId",
2284
+ type: "Path",
2285
+ schema: z
2286
+ .string()
2287
+ .regex(
2288
+ /[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}/
2289
+ )
2290
+ .uuid(),
2291
+ },
2292
+ {
2293
+ name: "viewId",
2294
+ type: "Path",
2295
+ schema: z
2296
+ .string()
2297
+ .regex(
2298
+ /[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}/
2299
+ )
2300
+ .uuid(),
2301
+ },
2302
+ ],
2303
+ response: QueryExportResponse,
2304
+ errors: [
2305
+ {
2306
+ status: 400,
2307
+ description: `An error related to the user request`,
2308
+ schema: ClientError,
2309
+ },
2310
+ ],
2311
+ },
2312
+ {
2313
+ method: "post",
2314
+ path: "/v1/namespaces/:namespaceId/data-sources/:dataSourceId/views/:viewId/versions/:versionId/run",
2315
+ alias: "runVersionedView",
2316
+ requestFormat: "json",
2317
+ parameters: [
2318
+ {
2319
+ name: "body",
2320
+ description: `Request options for the query`,
2321
+ type: "Body",
2322
+ schema: ViewRunRequest,
2323
+ },
2324
+ {
2325
+ name: "dataSourceId",
2326
+ type: "Path",
2327
+ schema: z
2328
+ .string()
2329
+ .regex(
2330
+ /[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}/
2331
+ )
2332
+ .uuid(),
2333
+ },
2334
+ {
2335
+ name: "namespaceId",
2336
+ type: "Path",
2337
+ schema: z
2338
+ .string()
2339
+ .regex(
2340
+ /[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}/
2341
+ )
2342
+ .uuid(),
2343
+ },
2344
+ {
2345
+ name: "versionId",
2346
+ type: "Path",
2347
+ schema: z.string(),
2348
+ },
2349
+ {
2350
+ name: "viewId",
2351
+ type: "Path",
2352
+ schema: z
2353
+ .string()
2354
+ .regex(
2355
+ /[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}/
2356
+ )
2357
+ .uuid(),
2358
+ },
2359
+ ],
2360
+ response: QueryExecutionResponse,
2361
+ errors: [
2362
+ {
2363
+ status: 400,
2364
+ description: `An error related to the user request`,
2365
+ schema: ClientError,
2366
+ },
2367
+ {
2368
+ status: 503,
2369
+ description: `An error related to the execution of the request`,
2370
+ schema: QueryExecutionError,
2371
+ },
2372
+ ],
2373
+ },
2374
+ {
2375
+ method: "get",
2376
+ path: "/v1/namespaces/:namespaceId/data-sources/:id",
2377
+ alias: "getDataSource",
2378
+ requestFormat: "json",
2379
+ parameters: [
2380
+ {
2381
+ name: "id",
2382
+ type: "Path",
2383
+ schema: z
2384
+ .string()
2385
+ .regex(
2386
+ /[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}/
2387
+ )
2388
+ .uuid(),
2389
+ },
2390
+ {
2391
+ name: "namespaceId",
2392
+ type: "Path",
2393
+ schema: z
2394
+ .string()
2395
+ .regex(
2396
+ /[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}/
2397
+ )
2398
+ .uuid(),
2399
+ },
2400
+ ],
2401
+ response: DataSourceResponse,
2402
+ errors: [
2403
+ {
2404
+ status: NaN,
2405
+ description: `An error related to the user request`,
2406
+ schema: ClientError,
2407
+ },
2408
+ ],
2409
+ },
2410
+ {
2411
+ method: "put",
2412
+ path: "/v1/namespaces/:namespaceId/data-sources/:id",
2413
+ alias: "updateDataSource",
2414
+ requestFormat: "json",
2415
+ parameters: [
2416
+ {
2417
+ name: "body",
2418
+ description: `Data Source object to update`,
2419
+ type: "Body",
2420
+ schema: DataSourceRequest,
2421
+ },
2422
+ {
2423
+ name: "id",
2424
+ type: "Path",
2425
+ schema: z
2426
+ .string()
2427
+ .regex(
2428
+ /[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}/
2429
+ )
2430
+ .uuid(),
2431
+ },
2432
+ {
2433
+ name: "namespaceId",
2434
+ type: "Path",
2435
+ schema: z
2436
+ .string()
2437
+ .regex(
2438
+ /[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}/
2439
+ )
2440
+ .uuid(),
2441
+ },
2442
+ ],
2443
+ response: DataSourceResponse,
2444
+ errors: [
2445
+ {
2446
+ status: NaN,
2447
+ description: `An error related to the user request`,
2448
+ schema: ClientError,
2449
+ },
2450
+ ],
2451
+ },
2452
+ {
2453
+ method: "delete",
2454
+ path: "/v1/namespaces/:namespaceId/data-sources/:id",
2455
+ alias: "deleteDataSource",
2456
+ requestFormat: "json",
2457
+ parameters: [
2458
+ {
2459
+ name: "id",
2460
+ type: "Path",
2461
+ schema: z
2462
+ .string()
2463
+ .regex(
2464
+ /[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}/
2465
+ )
2466
+ .uuid(),
2467
+ },
2468
+ {
2469
+ name: "namespaceId",
2470
+ type: "Path",
2471
+ schema: z
2472
+ .string()
2473
+ .regex(
2474
+ /[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}/
2475
+ )
2476
+ .uuid(),
2477
+ },
2478
+ ],
2479
+ response: z.object({}).partial().passthrough(),
2480
+ errors: [
2481
+ {
2482
+ status: NaN,
2483
+ description: `An error related to the user request`,
2484
+ schema: ClientError,
2485
+ },
2486
+ ],
2487
+ },
2488
+ {
2489
+ method: "get",
2490
+ path: "/v1/namespaces/:namespaceId/data-sources/:id/tables",
2491
+ alias: "getTables",
2492
+ requestFormat: "json",
2493
+ parameters: [
2494
+ {
2495
+ name: "id",
2496
+ type: "Path",
2497
+ schema: z
2498
+ .string()
2499
+ .regex(
2500
+ /[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}/
2501
+ )
2502
+ .uuid(),
2503
+ },
2504
+ {
2505
+ name: "namespaceId",
2506
+ type: "Path",
2507
+ schema: z
2508
+ .string()
2509
+ .regex(
2510
+ /[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}/
2511
+ )
2512
+ .uuid(),
2513
+ },
2514
+ ],
2515
+ response: ListViewsResponse,
2516
+ errors: [
2517
+ {
2518
+ status: NaN,
2519
+ description: `An error related to the user request`,
2520
+ schema: ClientError,
2521
+ },
2522
+ ],
2523
+ },
2524
+ {
2525
+ method: "post",
2526
+ path: "/v1/namespaces/:namespaceId/data-sources/:id/views/sync",
2527
+ alias: "syncTables",
2528
+ requestFormat: "json",
2529
+ parameters: [
2530
+ {
2531
+ name: "id",
2532
+ type: "Path",
2533
+ schema: z
2534
+ .string()
2535
+ .regex(
2536
+ /[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}/
2537
+ )
2538
+ .uuid(),
2539
+ },
2540
+ {
2541
+ name: "namespaceId",
2542
+ type: "Path",
2543
+ schema: z
2544
+ .string()
2545
+ .regex(
2546
+ /[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}/
2547
+ )
2548
+ .uuid(),
2549
+ },
2550
+ ],
2551
+ response: ListViewsResponse,
2552
+ errors: [
2553
+ {
2554
+ status: NaN,
2555
+ description: `An error related to the user request`,
2556
+ schema: ClientError,
2557
+ },
2558
+ ],
2559
+ },
2560
+ {
2561
+ method: "get",
2562
+ path: "/v1/namespaces/:namespaceId/views/:id",
2563
+ alias: "getView",
2564
+ requestFormat: "json",
2565
+ parameters: [
2566
+ {
2567
+ name: "id",
2568
+ type: "Path",
2569
+ schema: z
2570
+ .string()
2571
+ .regex(
2572
+ /[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}/
2573
+ )
2574
+ .uuid(),
2575
+ },
2576
+ {
2577
+ name: "namespaceId",
2578
+ type: "Path",
2579
+ schema: z
2580
+ .string()
2581
+ .regex(
2582
+ /[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}/
2583
+ )
2584
+ .uuid(),
2585
+ },
2586
+ ],
2587
+ response: ViewResponse,
2588
+ errors: [
2589
+ {
2590
+ status: NaN,
2591
+ description: `An error related to the user request`,
2592
+ schema: ClientError,
2593
+ },
2594
+ ],
2595
+ },
2596
+ {
2597
+ method: "get",
2598
+ path: "/v1/namespaces/:namespaceId/views/:id/versions/:versionId",
2599
+ alias: "getVersionedView",
2600
+ requestFormat: "json",
2601
+ parameters: [
2602
+ {
2603
+ name: "id",
2604
+ type: "Path",
2605
+ schema: z
2606
+ .string()
2607
+ .regex(
2608
+ /[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}/
2609
+ )
2610
+ .uuid(),
2611
+ },
2612
+ {
2613
+ name: "namespaceId",
2614
+ type: "Path",
2615
+ schema: z
2616
+ .string()
2617
+ .regex(
2618
+ /[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}/
2619
+ )
2620
+ .uuid(),
2621
+ },
2622
+ {
2623
+ name: "versionId",
2624
+ type: "Path",
2625
+ schema: z
2626
+ .string()
2627
+ .regex(
2628
+ /[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}/
2629
+ )
2630
+ .uuid(),
2631
+ },
2632
+ ],
2633
+ response: ViewResponse,
2634
+ errors: [
2635
+ {
2636
+ status: NaN,
2637
+ description: `An error related to the user request`,
2638
+ schema: ClientError,
2639
+ },
2640
+ ],
2641
+ },
2642
+ {
2643
+ method: "get",
2644
+ path: "/v1/namespaces/list",
2645
+ alias: "getNamespaces",
2646
+ requestFormat: "json",
2647
+ parameters: [
2648
+ {
2649
+ name: "includeDataSources",
2650
+ type: "Query",
2651
+ schema: z.boolean().optional().default(false),
2652
+ },
2653
+ {
2654
+ name: "includeViews",
2655
+ type: "Query",
2656
+ schema: z.boolean().optional().default(false),
2657
+ },
2658
+ ],
2659
+ response: z
2660
+ .object({ namespaces: z.array(NamespaceResponse) })
2661
+ .passthrough(),
2662
+ errors: [
2663
+ {
2664
+ status: NaN,
2665
+ description: `An error related to the user request`,
2666
+ schema: ClientError,
2667
+ },
2668
+ ],
2669
+ },
2670
+ {
2671
+ method: "post",
2672
+ path: "/v1/tenants",
2673
+ alias: "createTenant",
2674
+ requestFormat: "json",
2675
+ parameters: [
2676
+ {
2677
+ name: "body",
2678
+ description: `Tenant request to create with`,
2679
+ type: "Body",
2680
+ schema: TenantRequest,
2681
+ },
2682
+ ],
2683
+ response: TenantResponse,
2684
+ errors: [
2685
+ {
2686
+ status: NaN,
2687
+ description: `An error related to the user request`,
2688
+ schema: ClientError,
2689
+ },
2690
+ ],
2691
+ },
2692
+ {
2693
+ method: "get",
2694
+ path: "/v1/tenants/:id",
2695
+ alias: "getTenant",
2696
+ requestFormat: "json",
2697
+ parameters: [
2698
+ {
2699
+ name: "id",
2700
+ type: "Path",
2701
+ schema: z
2702
+ .string()
2703
+ .regex(
2704
+ /[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}/
2705
+ )
2706
+ .uuid(),
2707
+ },
2708
+ ],
2709
+ response: TenantResponse,
2710
+ errors: [
2711
+ {
2712
+ status: NaN,
2713
+ description: `An error related to the user request`,
2714
+ schema: ClientError,
2715
+ },
2716
+ ],
2717
+ },
2718
+ {
2719
+ method: "put",
2720
+ path: "/v1/tenants/:id",
2721
+ alias: "updateTenant",
2722
+ requestFormat: "json",
2723
+ parameters: [
2724
+ {
2725
+ name: "body",
2726
+ description: `Tenant request to update with`,
2727
+ type: "Body",
2728
+ schema: TenantRequest,
2729
+ },
2730
+ {
2731
+ name: "id",
2732
+ type: "Path",
2733
+ schema: z
2734
+ .string()
2735
+ .regex(
2736
+ /[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}/
2737
+ )
2738
+ .uuid(),
2739
+ },
2740
+ ],
2741
+ response: TenantResponse,
2742
+ errors: [
2743
+ {
2744
+ status: NaN,
2745
+ description: `An error related to the user request`,
2746
+ schema: ClientError,
2747
+ },
2748
+ ],
2749
+ },
2750
+ {
2751
+ method: "delete",
2752
+ path: "/v1/tenants/:id",
2753
+ alias: "deleteTenant",
2754
+ requestFormat: "json",
2755
+ parameters: [
2756
+ {
2757
+ name: "id",
2758
+ type: "Path",
2759
+ schema: z
2760
+ .string()
2761
+ .regex(
2762
+ /[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}/
2763
+ )
2764
+ .uuid(),
2765
+ },
2766
+ ],
2767
+ response: z.object({}).partial().passthrough(),
2768
+ errors: [
2769
+ {
2770
+ status: NaN,
2771
+ description: `An error related to the user request`,
2772
+ schema: ClientError,
2773
+ },
2774
+ ],
2775
+ },
2776
+ {
2777
+ method: "post",
2778
+ path: "/v1/views/batch-get",
2779
+ alias: "batchGetViews",
2780
+ requestFormat: "json",
2781
+ parameters: [
2782
+ {
2783
+ name: "body",
2784
+ description: `View ids to get`,
2785
+ type: "Body",
2786
+ schema: ListVersionedViewsRequest,
2787
+ },
2788
+ ],
2789
+ response: z.object({ views: z.array(ViewResponse) }).passthrough(),
2790
+ errors: [
2791
+ {
2792
+ status: NaN,
2793
+ description: `An error related to the user request`,
2794
+ schema: ClientError,
2795
+ },
2796
+ ],
2797
+ },
2798
+ ]);
2799
+
2800
+ export const api = new Zodios(endpoints);
2801
+
2802
+ export function createApiClient(baseUrl: string, options?: ZodiosOptions) {
2803
+ return new Zodios(baseUrl, endpoints, options);
2804
+ }