@flipstream/sdk 0.0.0-stage → 0.4.0

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 (78) hide show
  1. package/CHANGELOG.md +85 -0
  2. package/LICENSE +202 -0
  3. package/README.md +280 -2
  4. package/dist/api/index.d.ts +1 -0
  5. package/dist/api/index.js +2 -0
  6. package/dist/api/index.js.map +1 -0
  7. package/dist/auth/discovery.d.ts +21 -0
  8. package/dist/auth/discovery.js +68 -0
  9. package/dist/auth/discovery.js.map +1 -0
  10. package/dist/auth/index.d.ts +5 -0
  11. package/dist/auth/index.js +5 -0
  12. package/dist/auth/index.js.map +1 -0
  13. package/dist/auth/pkce.d.ts +10 -0
  14. package/dist/auth/pkce.js +25 -0
  15. package/dist/auth/pkce.js.map +1 -0
  16. package/dist/auth/signIn.d.ts +97 -0
  17. package/dist/auth/signIn.js +133 -0
  18. package/dist/auth/signIn.js.map +1 -0
  19. package/dist/auth/transport.d.ts +18 -0
  20. package/dist/auth/transport.js +26 -0
  21. package/dist/auth/transport.js.map +1 -0
  22. package/dist/core/body.d.ts +14 -0
  23. package/dist/core/body.js +69 -0
  24. package/dist/core/body.js.map +1 -0
  25. package/dist/core/call.d.ts +17 -0
  26. package/dist/core/call.js +116 -0
  27. package/dist/core/call.js.map +1 -0
  28. package/dist/core/fetch.d.ts +35 -0
  29. package/dist/core/fetch.js +105 -0
  30. package/dist/core/fetch.js.map +1 -0
  31. package/dist/core/read.d.ts +17 -0
  32. package/dist/core/read.js +92 -0
  33. package/dist/core/read.js.map +1 -0
  34. package/dist/core/result.d.ts +94 -0
  35. package/dist/core/result.js +40 -0
  36. package/dist/core/result.js.map +1 -0
  37. package/dist/core/retry.d.ts +40 -0
  38. package/dist/core/retry.js +41 -0
  39. package/dist/core/retry.js.map +1 -0
  40. package/dist/core/transport.d.ts +62 -0
  41. package/dist/core/transport.js +9 -0
  42. package/dist/core/transport.js.map +1 -0
  43. package/dist/flipstream.d.ts +45 -0
  44. package/dist/flipstream.js +26 -0
  45. package/dist/flipstream.js.map +1 -0
  46. package/dist/index.d.ts +11 -0
  47. package/dist/index.js +8 -0
  48. package/dist/index.js.map +1 -0
  49. package/dist/node/headless.d.ts +20 -0
  50. package/dist/node/headless.js +28 -0
  51. package/dist/node/headless.js.map +1 -0
  52. package/dist/node/index.d.ts +4 -0
  53. package/dist/node/index.js +5 -0
  54. package/dist/node/index.js.map +1 -0
  55. package/dist/node/loopback.d.ts +58 -0
  56. package/dist/node/loopback.js +126 -0
  57. package/dist/node/loopback.js.map +1 -0
  58. package/dist/query/catalog.d.ts +15 -0
  59. package/dist/query/catalog.js +41 -0
  60. package/dist/query/catalog.js.map +1 -0
  61. package/dist/query/errors.d.ts +8 -0
  62. package/dist/query/errors.js +16 -0
  63. package/dist/query/errors.js.map +1 -0
  64. package/dist/query/query.d.ts +27 -0
  65. package/dist/query/query.js +35 -0
  66. package/dist/query/query.js.map +1 -0
  67. package/dist/recorded/query-planner/catalog-google_search_console.json +140 -0
  68. package/dist/recorded/query-planner/catalog.json +1234 -0
  69. package/dist/spec/query-planner/index.d.ts +1 -0
  70. package/dist/spec/query-planner/index.js +3 -0
  71. package/dist/spec/query-planner/index.js.map +1 -0
  72. package/dist/spec/query-planner/types.gen.d.ts +300 -0
  73. package/dist/spec/query-planner/types.gen.js +3 -0
  74. package/dist/spec/query-planner/types.gen.js.map +1 -0
  75. package/dist/spec/query-planner/zod.gen.d.ts +325 -0
  76. package/dist/spec/query-planner/zod.gen.js +137 -0
  77. package/dist/spec/query-planner/zod.gen.js.map +1 -0
  78. package/package.json +90 -4
@@ -0,0 +1 @@
1
+ export type { Catalog, CatalogCatalogGetData, CatalogCatalogGetError, CatalogCatalogGetErrors, CatalogCatalogGetResponse, CatalogCatalogGetResponses, CatalogSource, CatalogSourceCatalogSourceGetData, CatalogSourceCatalogSourceGetError, CatalogSourceCatalogSourceGetErrors, CatalogSourceCatalogSourceGetResponse, CatalogSourceCatalogSourceGetResponses, ClientOptions, CustomDimensions, Dimension, ErrorBody, Format, HealthHealthGetData, HealthHealthGetResponse, HealthHealthGetResponses, HttpValidationError, LogicalRequest, Metric, PlannerErrorCode, QueryQueryPostData, QueryQueryPostError, QueryQueryPostErrors, QueryQueryPostResponse, QueryQueryPostResponses, QueryResponse, Row, SortSpec, Source, ValidationError } from './types.gen.js';
@@ -0,0 +1,3 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ export {};
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/spec/query-planner/index.ts"],"names":[],"mappings":"AAAA,qDAAqD"}
@@ -0,0 +1,300 @@
1
+ export type ClientOptions = {
2
+ baseUrl: `${string}://${string}` | (string & {});
3
+ };
4
+ /**
5
+ * HTTPValidationError
6
+ */
7
+ export type HttpValidationError = {
8
+ /**
9
+ * Detail
10
+ */
11
+ detail?: Array<ValidationError>;
12
+ };
13
+ /**
14
+ * LogicalRequest
15
+ */
16
+ export type LogicalRequest = {
17
+ /**
18
+ * Source
19
+ */
20
+ source: string;
21
+ /**
22
+ * Connection Id
23
+ */
24
+ connection_id: string;
25
+ /**
26
+ * Dimensions
27
+ */
28
+ dimensions?: Array<string>;
29
+ /**
30
+ * Metrics
31
+ */
32
+ metrics?: Array<string>;
33
+ /**
34
+ * Filters
35
+ */
36
+ filters?: Array<{
37
+ [key: string]: unknown;
38
+ }>;
39
+ /**
40
+ * Sort
41
+ */
42
+ sort?: Array<SortSpec>;
43
+ /**
44
+ * Offset
45
+ */
46
+ offset?: number;
47
+ /**
48
+ * Rows
49
+ */
50
+ rows?: number;
51
+ /**
52
+ * Table
53
+ */
54
+ table?: string | null;
55
+ };
56
+ /**
57
+ * SortSpec
58
+ */
59
+ export type SortSpec = {
60
+ /**
61
+ * By
62
+ */
63
+ by: string;
64
+ /**
65
+ * Dir
66
+ */
67
+ dir?: 'asc' | 'desc';
68
+ };
69
+ /**
70
+ * ValidationError
71
+ */
72
+ export type ValidationError = {
73
+ /**
74
+ * Location
75
+ */
76
+ loc: Array<string | number>;
77
+ /**
78
+ * Message
79
+ */
80
+ msg: string;
81
+ /**
82
+ * Error Type
83
+ */
84
+ type: string;
85
+ /**
86
+ * Input
87
+ */
88
+ input?: unknown;
89
+ /**
90
+ * Context
91
+ */
92
+ ctx?: {
93
+ [key: string]: unknown;
94
+ };
95
+ };
96
+ export type Catalog = {
97
+ catalogVersion: string;
98
+ generatedAt: string;
99
+ modelContractVersion: string;
100
+ homepage: string;
101
+ license: string;
102
+ defaultSource: string;
103
+ sources: Array<Source>;
104
+ };
105
+ export type Source = {
106
+ name: string;
107
+ label: string;
108
+ description: string;
109
+ dimensions: Array<Dimension>;
110
+ metrics: Array<Metric>;
111
+ customDimensions?: CustomDimensions;
112
+ };
113
+ export type Dimension = {
114
+ name: string;
115
+ label: string;
116
+ description: string;
117
+ format: Format;
118
+ };
119
+ export type Metric = {
120
+ name: string;
121
+ label: string;
122
+ description: string;
123
+ format: Format;
124
+ lowerIsBetter?: boolean;
125
+ };
126
+ export type Format = {
127
+ type: string;
128
+ decimals?: number;
129
+ thousandSeparator?: boolean;
130
+ format?: string;
131
+ };
132
+ export type CustomDimensions = {
133
+ supported: boolean;
134
+ max: number;
135
+ resolve: string;
136
+ };
137
+ export type CatalogSource = Source & {
138
+ catalogVersion: string;
139
+ };
140
+ export type QueryResponse = {
141
+ rows: Array<Row>;
142
+ lastRow: number;
143
+ totals?: {
144
+ [key: string]: number | null;
145
+ };
146
+ timings?: {
147
+ [key: string]: number;
148
+ };
149
+ periodAlignment?: unknown;
150
+ };
151
+ export type Row = {
152
+ [key: string]: string | number | boolean | null;
153
+ };
154
+ export type ErrorBody = {
155
+ code: string;
156
+ message: string;
157
+ };
158
+ export type PlannerErrorCode = 'INSUFFICIENT_SCOPE' | 'INVALID_TOKEN' | 'TOKEN_EXPIRED' | 'INVALID_AUDIENCE' | 'UNKNOWN_ISSUER' | 'UNAUTHENTICATED' | 'KEYS_UNAVAILABLE' | 'UNKNOWN_SOURCE' | 'UNKNOWN_DIMENSION' | 'UNKNOWN_METRIC' | 'INVALID_FILTER' | 'CONFLICTING_FILTER' | 'MISSING_TABLE' | 'ENGINE_FAILED' | 'DATA_SERVICE_ERROR' | 'PLANNER_ERROR' | 'INTERNAL_ERROR';
159
+ export type HealthHealthGetData = {
160
+ body?: never;
161
+ path?: never;
162
+ query?: never;
163
+ url: '/health';
164
+ };
165
+ export type HealthHealthGetResponses = {
166
+ /**
167
+ * Response Health Health Get
168
+ *
169
+ * Successful Response
170
+ */
171
+ 200: {
172
+ [key: string]: string;
173
+ };
174
+ };
175
+ export type HealthHealthGetResponse = HealthHealthGetResponses[keyof HealthHealthGetResponses];
176
+ export type CatalogCatalogGetData = {
177
+ body?: never;
178
+ path?: never;
179
+ query?: never;
180
+ url: '/catalog';
181
+ };
182
+ export type CatalogCatalogGetErrors = {
183
+ /**
184
+ * Error
185
+ */
186
+ 401: ErrorBody;
187
+ /**
188
+ * Error
189
+ */
190
+ 403: ErrorBody;
191
+ /**
192
+ * Validation Error
193
+ */
194
+ 422: HttpValidationError;
195
+ /**
196
+ * Error
197
+ */
198
+ 500: ErrorBody;
199
+ /**
200
+ * Error
201
+ */
202
+ 503: ErrorBody;
203
+ };
204
+ export type CatalogCatalogGetError = CatalogCatalogGetErrors[keyof CatalogCatalogGetErrors];
205
+ export type CatalogCatalogGetResponses = {
206
+ /**
207
+ * Successful Response
208
+ */
209
+ 200: Catalog;
210
+ };
211
+ export type CatalogCatalogGetResponse = CatalogCatalogGetResponses[keyof CatalogCatalogGetResponses];
212
+ export type CatalogSourceCatalogSourceGetData = {
213
+ body?: never;
214
+ path: {
215
+ /**
216
+ * Source
217
+ */
218
+ source: string;
219
+ };
220
+ query?: never;
221
+ url: '/catalog/{source}';
222
+ };
223
+ export type CatalogSourceCatalogSourceGetErrors = {
224
+ /**
225
+ * Error
226
+ */
227
+ 401: ErrorBody;
228
+ /**
229
+ * Error
230
+ */
231
+ 403: ErrorBody;
232
+ /**
233
+ * Error
234
+ */
235
+ 404: ErrorBody;
236
+ /**
237
+ * Validation Error
238
+ */
239
+ 422: HttpValidationError;
240
+ /**
241
+ * Error
242
+ */
243
+ 500: ErrorBody;
244
+ /**
245
+ * Error
246
+ */
247
+ 503: ErrorBody;
248
+ };
249
+ export type CatalogSourceCatalogSourceGetError = CatalogSourceCatalogSourceGetErrors[keyof CatalogSourceCatalogSourceGetErrors];
250
+ export type CatalogSourceCatalogSourceGetResponses = {
251
+ /**
252
+ * Successful Response
253
+ */
254
+ 200: CatalogSource;
255
+ };
256
+ export type CatalogSourceCatalogSourceGetResponse = CatalogSourceCatalogSourceGetResponses[keyof CatalogSourceCatalogSourceGetResponses];
257
+ export type QueryQueryPostData = {
258
+ body: LogicalRequest;
259
+ path?: never;
260
+ query?: never;
261
+ url: '/query';
262
+ };
263
+ export type QueryQueryPostErrors = {
264
+ /**
265
+ * Error
266
+ */
267
+ 400: ErrorBody;
268
+ /**
269
+ * Error
270
+ */
271
+ 401: ErrorBody;
272
+ /**
273
+ * Error
274
+ */
275
+ 403: ErrorBody;
276
+ /**
277
+ * Validation Error
278
+ */
279
+ 422: HttpValidationError;
280
+ /**
281
+ * Error
282
+ */
283
+ 500: ErrorBody;
284
+ /**
285
+ * Error
286
+ */
287
+ 502: ErrorBody;
288
+ /**
289
+ * Error
290
+ */
291
+ 503: ErrorBody;
292
+ };
293
+ export type QueryQueryPostError = QueryQueryPostErrors[keyof QueryQueryPostErrors];
294
+ export type QueryQueryPostResponses = {
295
+ /**
296
+ * Successful Response
297
+ */
298
+ 200: QueryResponse;
299
+ };
300
+ export type QueryQueryPostResponse = QueryQueryPostResponses[keyof QueryQueryPostResponses];
@@ -0,0 +1,3 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ export {};
3
+ //# sourceMappingURL=types.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.gen.js","sourceRoot":"","sources":["../../../src/spec/query-planner/types.gen.ts"],"names":[],"mappings":"AAAA,qDAAqD"}
@@ -0,0 +1,325 @@
1
+ import * as z from 'zod';
2
+ /**
3
+ * SortSpec
4
+ */
5
+ export declare const zSortSpec: z.ZodObject<{
6
+ by: z.ZodString;
7
+ dir: z.ZodExactOptional<z.ZodDefault<z.ZodEnum<{
8
+ asc: "asc";
9
+ desc: "desc";
10
+ }>>>;
11
+ }, z.core.$strict>;
12
+ /**
13
+ * LogicalRequest
14
+ */
15
+ export declare const zLogicalRequest: z.ZodObject<{
16
+ source: z.ZodString;
17
+ connection_id: z.ZodString;
18
+ dimensions: z.ZodExactOptional<z.ZodArray<z.ZodString>>;
19
+ metrics: z.ZodExactOptional<z.ZodArray<z.ZodString>>;
20
+ filters: z.ZodExactOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
21
+ sort: z.ZodExactOptional<z.ZodArray<z.ZodObject<{
22
+ by: z.ZodString;
23
+ dir: z.ZodExactOptional<z.ZodDefault<z.ZodEnum<{
24
+ asc: "asc";
25
+ desc: "desc";
26
+ }>>>;
27
+ }, z.core.$strict>>>;
28
+ offset: z.ZodExactOptional<z.ZodDefault<z.ZodInt>>;
29
+ rows: z.ZodExactOptional<z.ZodDefault<z.ZodInt>>;
30
+ table: z.ZodExactOptional<z.ZodNullable<z.ZodString>>;
31
+ }, z.core.$strict>;
32
+ /**
33
+ * ValidationError
34
+ */
35
+ export declare const zValidationError: z.ZodObject<{
36
+ loc: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
37
+ msg: z.ZodString;
38
+ type: z.ZodString;
39
+ input: z.ZodExactOptional<z.ZodUnknown>;
40
+ ctx: z.ZodExactOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
41
+ }, z.core.$loose>;
42
+ /**
43
+ * HTTPValidationError
44
+ */
45
+ export declare const zHttpValidationError: z.ZodObject<{
46
+ detail: z.ZodExactOptional<z.ZodArray<z.ZodObject<{
47
+ loc: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
48
+ msg: z.ZodString;
49
+ type: z.ZodString;
50
+ input: z.ZodExactOptional<z.ZodUnknown>;
51
+ ctx: z.ZodExactOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
52
+ }, z.core.$loose>>>;
53
+ }, z.core.$loose>;
54
+ export declare const zFormat: z.ZodObject<{
55
+ type: z.ZodString;
56
+ decimals: z.ZodExactOptional<z.ZodInt>;
57
+ thousandSeparator: z.ZodExactOptional<z.ZodBoolean>;
58
+ format: z.ZodExactOptional<z.ZodString>;
59
+ }, z.core.$loose>;
60
+ export declare const zDimension: z.ZodObject<{
61
+ name: z.ZodString;
62
+ label: z.ZodString;
63
+ description: z.ZodString;
64
+ format: z.ZodObject<{
65
+ type: z.ZodString;
66
+ decimals: z.ZodExactOptional<z.ZodInt>;
67
+ thousandSeparator: z.ZodExactOptional<z.ZodBoolean>;
68
+ format: z.ZodExactOptional<z.ZodString>;
69
+ }, z.core.$loose>;
70
+ }, z.core.$loose>;
71
+ export declare const zMetric: z.ZodObject<{
72
+ name: z.ZodString;
73
+ label: z.ZodString;
74
+ description: z.ZodString;
75
+ format: z.ZodObject<{
76
+ type: z.ZodString;
77
+ decimals: z.ZodExactOptional<z.ZodInt>;
78
+ thousandSeparator: z.ZodExactOptional<z.ZodBoolean>;
79
+ format: z.ZodExactOptional<z.ZodString>;
80
+ }, z.core.$loose>;
81
+ lowerIsBetter: z.ZodExactOptional<z.ZodBoolean>;
82
+ }, z.core.$loose>;
83
+ export declare const zCustomDimensions: z.ZodObject<{
84
+ supported: z.ZodBoolean;
85
+ max: z.ZodInt;
86
+ resolve: z.ZodString;
87
+ }, z.core.$loose>;
88
+ export declare const zSource: z.ZodObject<{
89
+ name: z.ZodString;
90
+ label: z.ZodString;
91
+ description: z.ZodString;
92
+ dimensions: z.ZodArray<z.ZodObject<{
93
+ name: z.ZodString;
94
+ label: z.ZodString;
95
+ description: z.ZodString;
96
+ format: z.ZodObject<{
97
+ type: z.ZodString;
98
+ decimals: z.ZodExactOptional<z.ZodInt>;
99
+ thousandSeparator: z.ZodExactOptional<z.ZodBoolean>;
100
+ format: z.ZodExactOptional<z.ZodString>;
101
+ }, z.core.$loose>;
102
+ }, z.core.$loose>>;
103
+ metrics: z.ZodArray<z.ZodObject<{
104
+ name: z.ZodString;
105
+ label: z.ZodString;
106
+ description: z.ZodString;
107
+ format: z.ZodObject<{
108
+ type: z.ZodString;
109
+ decimals: z.ZodExactOptional<z.ZodInt>;
110
+ thousandSeparator: z.ZodExactOptional<z.ZodBoolean>;
111
+ format: z.ZodExactOptional<z.ZodString>;
112
+ }, z.core.$loose>;
113
+ lowerIsBetter: z.ZodExactOptional<z.ZodBoolean>;
114
+ }, z.core.$loose>>;
115
+ customDimensions: z.ZodExactOptional<z.ZodObject<{
116
+ supported: z.ZodBoolean;
117
+ max: z.ZodInt;
118
+ resolve: z.ZodString;
119
+ }, z.core.$loose>>;
120
+ }, z.core.$loose>;
121
+ export declare const zCatalog: z.ZodObject<{
122
+ catalogVersion: z.ZodString;
123
+ generatedAt: z.ZodString;
124
+ modelContractVersion: z.ZodString;
125
+ homepage: z.ZodString;
126
+ license: z.ZodString;
127
+ defaultSource: z.ZodString;
128
+ sources: z.ZodArray<z.ZodObject<{
129
+ name: z.ZodString;
130
+ label: z.ZodString;
131
+ description: z.ZodString;
132
+ dimensions: z.ZodArray<z.ZodObject<{
133
+ name: z.ZodString;
134
+ label: z.ZodString;
135
+ description: z.ZodString;
136
+ format: z.ZodObject<{
137
+ type: z.ZodString;
138
+ decimals: z.ZodExactOptional<z.ZodInt>;
139
+ thousandSeparator: z.ZodExactOptional<z.ZodBoolean>;
140
+ format: z.ZodExactOptional<z.ZodString>;
141
+ }, z.core.$loose>;
142
+ }, z.core.$loose>>;
143
+ metrics: z.ZodArray<z.ZodObject<{
144
+ name: z.ZodString;
145
+ label: z.ZodString;
146
+ description: z.ZodString;
147
+ format: z.ZodObject<{
148
+ type: z.ZodString;
149
+ decimals: z.ZodExactOptional<z.ZodInt>;
150
+ thousandSeparator: z.ZodExactOptional<z.ZodBoolean>;
151
+ format: z.ZodExactOptional<z.ZodString>;
152
+ }, z.core.$loose>;
153
+ lowerIsBetter: z.ZodExactOptional<z.ZodBoolean>;
154
+ }, z.core.$loose>>;
155
+ customDimensions: z.ZodExactOptional<z.ZodObject<{
156
+ supported: z.ZodBoolean;
157
+ max: z.ZodInt;
158
+ resolve: z.ZodString;
159
+ }, z.core.$loose>>;
160
+ }, z.core.$loose>>;
161
+ }, z.core.$loose>;
162
+ export declare const zCatalogSource: z.ZodIntersection<z.ZodObject<{
163
+ name: z.ZodString;
164
+ label: z.ZodString;
165
+ description: z.ZodString;
166
+ dimensions: z.ZodArray<z.ZodObject<{
167
+ name: z.ZodString;
168
+ label: z.ZodString;
169
+ description: z.ZodString;
170
+ format: z.ZodObject<{
171
+ type: z.ZodString;
172
+ decimals: z.ZodExactOptional<z.ZodInt>;
173
+ thousandSeparator: z.ZodExactOptional<z.ZodBoolean>;
174
+ format: z.ZodExactOptional<z.ZodString>;
175
+ }, z.core.$loose>;
176
+ }, z.core.$loose>>;
177
+ metrics: z.ZodArray<z.ZodObject<{
178
+ name: z.ZodString;
179
+ label: z.ZodString;
180
+ description: z.ZodString;
181
+ format: z.ZodObject<{
182
+ type: z.ZodString;
183
+ decimals: z.ZodExactOptional<z.ZodInt>;
184
+ thousandSeparator: z.ZodExactOptional<z.ZodBoolean>;
185
+ format: z.ZodExactOptional<z.ZodString>;
186
+ }, z.core.$loose>;
187
+ lowerIsBetter: z.ZodExactOptional<z.ZodBoolean>;
188
+ }, z.core.$loose>>;
189
+ customDimensions: z.ZodExactOptional<z.ZodObject<{
190
+ supported: z.ZodBoolean;
191
+ max: z.ZodInt;
192
+ resolve: z.ZodString;
193
+ }, z.core.$loose>>;
194
+ }, z.core.$loose>, z.ZodObject<{
195
+ catalogVersion: z.ZodString;
196
+ }, z.core.$loose>>;
197
+ export declare const zRow: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
198
+ export declare const zQueryResponse: z.ZodObject<{
199
+ rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>>;
200
+ lastRow: z.ZodInt;
201
+ totals: z.ZodExactOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodNumber>>>;
202
+ timings: z.ZodExactOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
203
+ periodAlignment: z.ZodExactOptional<z.ZodUnknown>;
204
+ }, z.core.$loose>;
205
+ export declare const zErrorBody: z.ZodObject<{
206
+ code: z.ZodString;
207
+ message: z.ZodString;
208
+ }, z.core.$loose>;
209
+ export declare const zPlannerErrorCode: z.ZodEnum<{
210
+ INSUFFICIENT_SCOPE: "INSUFFICIENT_SCOPE";
211
+ INVALID_TOKEN: "INVALID_TOKEN";
212
+ TOKEN_EXPIRED: "TOKEN_EXPIRED";
213
+ INVALID_AUDIENCE: "INVALID_AUDIENCE";
214
+ UNKNOWN_ISSUER: "UNKNOWN_ISSUER";
215
+ UNAUTHENTICATED: "UNAUTHENTICATED";
216
+ KEYS_UNAVAILABLE: "KEYS_UNAVAILABLE";
217
+ UNKNOWN_SOURCE: "UNKNOWN_SOURCE";
218
+ UNKNOWN_DIMENSION: "UNKNOWN_DIMENSION";
219
+ UNKNOWN_METRIC: "UNKNOWN_METRIC";
220
+ INVALID_FILTER: "INVALID_FILTER";
221
+ CONFLICTING_FILTER: "CONFLICTING_FILTER";
222
+ MISSING_TABLE: "MISSING_TABLE";
223
+ ENGINE_FAILED: "ENGINE_FAILED";
224
+ DATA_SERVICE_ERROR: "DATA_SERVICE_ERROR";
225
+ PLANNER_ERROR: "PLANNER_ERROR";
226
+ INTERNAL_ERROR: "INTERNAL_ERROR";
227
+ }>;
228
+ /**
229
+ * Response Health Health Get
230
+ *
231
+ * Successful Response
232
+ */
233
+ export declare const zHealthHealthGetResponse: z.ZodRecord<z.ZodString, z.ZodString>;
234
+ /**
235
+ * Successful Response
236
+ */
237
+ export declare const zCatalogCatalogGetResponse: z.ZodObject<{
238
+ catalogVersion: z.ZodString;
239
+ generatedAt: z.ZodString;
240
+ modelContractVersion: z.ZodString;
241
+ homepage: z.ZodString;
242
+ license: z.ZodString;
243
+ defaultSource: z.ZodString;
244
+ sources: z.ZodArray<z.ZodObject<{
245
+ name: z.ZodString;
246
+ label: z.ZodString;
247
+ description: z.ZodString;
248
+ dimensions: z.ZodArray<z.ZodObject<{
249
+ name: z.ZodString;
250
+ label: z.ZodString;
251
+ description: z.ZodString;
252
+ format: z.ZodObject<{
253
+ type: z.ZodString;
254
+ decimals: z.ZodExactOptional<z.ZodInt>;
255
+ thousandSeparator: z.ZodExactOptional<z.ZodBoolean>;
256
+ format: z.ZodExactOptional<z.ZodString>;
257
+ }, z.core.$loose>;
258
+ }, z.core.$loose>>;
259
+ metrics: z.ZodArray<z.ZodObject<{
260
+ name: z.ZodString;
261
+ label: z.ZodString;
262
+ description: z.ZodString;
263
+ format: z.ZodObject<{
264
+ type: z.ZodString;
265
+ decimals: z.ZodExactOptional<z.ZodInt>;
266
+ thousandSeparator: z.ZodExactOptional<z.ZodBoolean>;
267
+ format: z.ZodExactOptional<z.ZodString>;
268
+ }, z.core.$loose>;
269
+ lowerIsBetter: z.ZodExactOptional<z.ZodBoolean>;
270
+ }, z.core.$loose>>;
271
+ customDimensions: z.ZodExactOptional<z.ZodObject<{
272
+ supported: z.ZodBoolean;
273
+ max: z.ZodInt;
274
+ resolve: z.ZodString;
275
+ }, z.core.$loose>>;
276
+ }, z.core.$loose>>;
277
+ }, z.core.$loose>;
278
+ /**
279
+ * Successful Response
280
+ */
281
+ export declare const zCatalogSourceCatalogSourceGetResponse: z.ZodIntersection<z.ZodObject<{
282
+ name: z.ZodString;
283
+ label: z.ZodString;
284
+ description: z.ZodString;
285
+ dimensions: z.ZodArray<z.ZodObject<{
286
+ name: z.ZodString;
287
+ label: z.ZodString;
288
+ description: z.ZodString;
289
+ format: z.ZodObject<{
290
+ type: z.ZodString;
291
+ decimals: z.ZodExactOptional<z.ZodInt>;
292
+ thousandSeparator: z.ZodExactOptional<z.ZodBoolean>;
293
+ format: z.ZodExactOptional<z.ZodString>;
294
+ }, z.core.$loose>;
295
+ }, z.core.$loose>>;
296
+ metrics: z.ZodArray<z.ZodObject<{
297
+ name: z.ZodString;
298
+ label: z.ZodString;
299
+ description: z.ZodString;
300
+ format: z.ZodObject<{
301
+ type: z.ZodString;
302
+ decimals: z.ZodExactOptional<z.ZodInt>;
303
+ thousandSeparator: z.ZodExactOptional<z.ZodBoolean>;
304
+ format: z.ZodExactOptional<z.ZodString>;
305
+ }, z.core.$loose>;
306
+ lowerIsBetter: z.ZodExactOptional<z.ZodBoolean>;
307
+ }, z.core.$loose>>;
308
+ customDimensions: z.ZodExactOptional<z.ZodObject<{
309
+ supported: z.ZodBoolean;
310
+ max: z.ZodInt;
311
+ resolve: z.ZodString;
312
+ }, z.core.$loose>>;
313
+ }, z.core.$loose>, z.ZodObject<{
314
+ catalogVersion: z.ZodString;
315
+ }, z.core.$loose>>;
316
+ /**
317
+ * Successful Response
318
+ */
319
+ export declare const zQueryQueryPostResponse: z.ZodObject<{
320
+ rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>>;
321
+ lastRow: z.ZodInt;
322
+ totals: z.ZodExactOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodNumber>>>;
323
+ timings: z.ZodExactOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
324
+ periodAlignment: z.ZodExactOptional<z.ZodUnknown>;
325
+ }, z.core.$loose>;