@objectstack/spec 0.1.1 → 0.2.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 (174) hide show
  1. package/README.md +73 -1
  2. package/dist/api/contract.zod.d.ts +1733 -0
  3. package/dist/api/contract.zod.d.ts.map +1 -0
  4. package/dist/api/contract.zod.js +138 -0
  5. package/dist/data/dataset.zod.d.ts +2 -2
  6. package/dist/data/field.zod.d.ts +1648 -10
  7. package/dist/data/field.zod.d.ts.map +1 -1
  8. package/dist/data/field.zod.js +149 -8
  9. package/dist/data/filter.zod.d.ts +295 -0
  10. package/dist/data/filter.zod.d.ts.map +1 -0
  11. package/dist/data/filter.zod.js +226 -0
  12. package/dist/data/mapping.zod.d.ts +215 -2
  13. package/dist/data/mapping.zod.d.ts.map +1 -1
  14. package/dist/data/object.zod.d.ts +505 -25
  15. package/dist/data/object.zod.d.ts.map +1 -1
  16. package/dist/data/object.zod.js +32 -5
  17. package/dist/data/query.zod.d.ts +349 -0
  18. package/dist/data/query.zod.d.ts.map +1 -1
  19. package/dist/data/query.zod.js +77 -1
  20. package/dist/data/trigger.zod.d.ts +354 -0
  21. package/dist/data/trigger.zod.d.ts.map +1 -0
  22. package/dist/data/trigger.zod.js +195 -0
  23. package/dist/data/validation.zod.d.ts +83 -43
  24. package/dist/data/validation.zod.d.ts.map +1 -1
  25. package/dist/data/validation.zod.js +51 -5
  26. package/dist/index.d.ts +10 -0
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +11 -0
  29. package/dist/system/api.zod.d.ts +130 -4
  30. package/dist/system/api.zod.d.ts.map +1 -1
  31. package/dist/system/api.zod.js +4 -1
  32. package/dist/system/auth.zod.d.ts +2287 -0
  33. package/dist/system/auth.zod.d.ts.map +1 -0
  34. package/dist/system/auth.zod.js +365 -0
  35. package/dist/system/datasource.zod.d.ts +193 -30
  36. package/dist/system/datasource.zod.d.ts.map +1 -1
  37. package/dist/system/datasource.zod.js +58 -11
  38. package/dist/system/discovery.zod.d.ts +174 -0
  39. package/dist/system/discovery.zod.d.ts.map +1 -0
  40. package/dist/system/discovery.zod.js +53 -0
  41. package/dist/system/driver.zod.d.ts +1631 -0
  42. package/dist/system/driver.zod.d.ts.map +1 -0
  43. package/dist/system/driver.zod.js +337 -0
  44. package/dist/system/license.zod.d.ts +2 -2
  45. package/dist/system/manifest.zod.d.ts +323 -52
  46. package/dist/system/manifest.zod.d.ts.map +1 -1
  47. package/dist/system/manifest.zod.js +91 -17
  48. package/dist/system/plugin.zod.d.ts +3516 -0
  49. package/dist/system/plugin.zod.d.ts.map +1 -0
  50. package/dist/system/plugin.zod.js +226 -0
  51. package/dist/system/policy.zod.d.ts +10 -10
  52. package/dist/system/territory.zod.d.ts +1 -1
  53. package/dist/system/webhook.zod.d.ts +3 -3
  54. package/dist/ui/action.zod.d.ts +19 -12
  55. package/dist/ui/action.zod.d.ts.map +1 -1
  56. package/dist/ui/action.zod.js +7 -1
  57. package/dist/ui/app.zod.d.ts +109 -3
  58. package/dist/ui/app.zod.d.ts.map +1 -1
  59. package/dist/ui/app.zod.js +13 -2
  60. package/dist/ui/dashboard.zod.d.ts +19 -13
  61. package/dist/ui/dashboard.zod.d.ts.map +1 -1
  62. package/dist/ui/dashboard.zod.js +10 -3
  63. package/dist/ui/page.zod.d.ts +6 -6
  64. package/dist/ui/report.zod.d.ts +13 -32
  65. package/dist/ui/report.zod.d.ts.map +1 -1
  66. package/dist/ui/report.zod.js +10 -9
  67. package/dist/ui/theme.zod.d.ts +1221 -0
  68. package/dist/ui/theme.zod.d.ts.map +1 -0
  69. package/dist/ui/theme.zod.js +202 -0
  70. package/dist/ui/widget.zod.d.ts +350 -0
  71. package/dist/ui/widget.zod.d.ts.map +1 -0
  72. package/dist/ui/widget.zod.js +66 -0
  73. package/json-schema/AccountLinkingConfig.json +27 -0
  74. package/json-schema/Action.json +8 -2
  75. package/json-schema/ActionParam.json +8 -2
  76. package/json-schema/Address.json +40 -0
  77. package/json-schema/AggregationFunction.json +19 -0
  78. package/json-schema/AggregationNode.json +42 -0
  79. package/json-schema/Animation.json +56 -0
  80. package/json-schema/ApiCapabilities.json +28 -0
  81. package/json-schema/ApiError.json +27 -0
  82. package/json-schema/ApiRoutes.json +41 -0
  83. package/json-schema/App.json +13 -2
  84. package/json-schema/AsyncValidation.json +70 -0
  85. package/json-schema/AuthConfig.json +606 -0
  86. package/json-schema/AuthPluginConfig.json +28 -0
  87. package/json-schema/AuthStrategy.json +17 -0
  88. package/json-schema/AuthenticationConfig.json +601 -0
  89. package/json-schema/AuthenticationProvider.json +617 -0
  90. package/json-schema/BaseResponse.json +63 -0
  91. package/json-schema/BorderRadius.json +44 -0
  92. package/json-schema/Breakpoints.json +36 -0
  93. package/json-schema/BulkRequest.json +29 -0
  94. package/json-schema/BulkResponse.json +108 -0
  95. package/json-schema/CSRFConfig.json +31 -0
  96. package/json-schema/ColorPalette.json +83 -0
  97. package/json-schema/ComparisonOperator.json +56 -0
  98. package/json-schema/ConditionalValidation.json +793 -0
  99. package/json-schema/CreateRequest.json +20 -0
  100. package/json-schema/CrossFieldValidation.json +56 -0
  101. package/json-schema/CustomValidator.json +57 -0
  102. package/json-schema/Dashboard.json +20 -0
  103. package/json-schema/DashboardWidget.json +20 -0
  104. package/json-schema/DatabaseAdapter.json +38 -0
  105. package/json-schema/Datasource.json +25 -23
  106. package/json-schema/DatasourceCapabilities.json +25 -5
  107. package/json-schema/DeleteResponse.json +68 -0
  108. package/json-schema/Discovery.json +114 -0
  109. package/json-schema/DriverCapabilities.json +69 -0
  110. package/json-schema/DriverDefinition.json +86 -0
  111. package/json-schema/DriverInterface.json +88 -0
  112. package/json-schema/DriverOptions.json +23 -0
  113. package/json-schema/DriverType.json +1 -18
  114. package/json-schema/EmailPasswordConfig.json +43 -0
  115. package/json-schema/EqualityOperator.json +14 -0
  116. package/json-schema/ExportRequest.json +786 -0
  117. package/json-schema/Field.json +75 -4
  118. package/json-schema/FieldOperators.json +108 -0
  119. package/json-schema/FieldType.json +8 -2
  120. package/json-schema/FieldWidgetProps.json +327 -0
  121. package/json-schema/FilterCondition.json +28 -0
  122. package/json-schema/I18nContext.json +12 -0
  123. package/json-schema/JoinNode.json +455 -0
  124. package/json-schema/JoinType.json +15 -0
  125. package/json-schema/ListRecordResponse.json +103 -0
  126. package/json-schema/LocationCoordinates.json +36 -0
  127. package/json-schema/Logger.json +25 -0
  128. package/json-schema/MagicLinkConfig.json +21 -0
  129. package/json-schema/Manifest.json +243 -18
  130. package/json-schema/Mapping.json +328 -0
  131. package/json-schema/ModificationResult.json +46 -0
  132. package/json-schema/NormalizedFilter.json +348 -0
  133. package/json-schema/OAuthProvider.json +66 -0
  134. package/json-schema/Object.json +103 -6
  135. package/json-schema/ObjectCapabilities.json +26 -0
  136. package/json-schema/ObjectQLClient.json +12 -0
  137. package/json-schema/PasskeyConfig.json +54 -0
  138. package/json-schema/Plugin.json +20 -0
  139. package/json-schema/PluginContext.json +91 -0
  140. package/json-schema/PluginLifecycle.json +11 -0
  141. package/json-schema/Query.json +328 -0
  142. package/json-schema/QueryFilter.json +34 -0
  143. package/json-schema/RangeOperator.json +41 -0
  144. package/json-schema/RateLimitConfig.json +36 -0
  145. package/json-schema/RecordData.json +11 -0
  146. package/json-schema/Report.json +20 -26
  147. package/json-schema/Router.json +12 -0
  148. package/json-schema/Scheduler.json +12 -0
  149. package/json-schema/ScopedStorage.json +12 -0
  150. package/json-schema/SessionConfig.json +56 -0
  151. package/json-schema/SetOperator.json +18 -0
  152. package/json-schema/Shadow.json +44 -0
  153. package/json-schema/SingleRecordResponse.json +69 -0
  154. package/json-schema/Spacing.json +64 -0
  155. package/json-schema/SpecialOperator.json +18 -0
  156. package/json-schema/StandardAuthProvider.json +622 -0
  157. package/json-schema/StringOperator.json +21 -0
  158. package/json-schema/SystemAPI.json +12 -0
  159. package/json-schema/Theme.json +543 -0
  160. package/json-schema/ThemeMode.json +14 -0
  161. package/json-schema/Trigger.json +73 -0
  162. package/json-schema/TriggerAction.json +14 -0
  163. package/json-schema/TriggerContext.json +61 -0
  164. package/json-schema/TriggerTiming.json +13 -0
  165. package/json-schema/TwoFactorConfig.json +40 -0
  166. package/json-schema/Typography.json +142 -0
  167. package/json-schema/UpdateRequest.json +20 -0
  168. package/json-schema/UserFieldMapping.json +47 -0
  169. package/json-schema/ValidationRule.json +583 -0
  170. package/json-schema/WindowFunction.json +24 -0
  171. package/json-schema/WindowFunctionNode.json +104 -0
  172. package/json-schema/WindowSpec.json +65 -0
  173. package/json-schema/ZIndex.json +44 -0
  174. package/package.json +8 -3
@@ -0,0 +1,1733 @@
1
+ import { z } from 'zod';
2
+ export declare const ApiErrorSchema: z.ZodObject<{
3
+ code: z.ZodString;
4
+ message: z.ZodString;
5
+ details: z.ZodOptional<z.ZodAny>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ code: string;
8
+ message: string;
9
+ details?: any;
10
+ }, {
11
+ code: string;
12
+ message: string;
13
+ details?: any;
14
+ }>;
15
+ export declare const BaseResponseSchema: z.ZodObject<{
16
+ success: z.ZodBoolean;
17
+ error: z.ZodOptional<z.ZodObject<{
18
+ code: z.ZodString;
19
+ message: z.ZodString;
20
+ details: z.ZodOptional<z.ZodAny>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ code: string;
23
+ message: string;
24
+ details?: any;
25
+ }, {
26
+ code: string;
27
+ message: string;
28
+ details?: any;
29
+ }>>;
30
+ meta: z.ZodOptional<z.ZodObject<{
31
+ timestamp: z.ZodString;
32
+ duration: z.ZodOptional<z.ZodNumber>;
33
+ requestId: z.ZodOptional<z.ZodString>;
34
+ traceId: z.ZodOptional<z.ZodString>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ timestamp: string;
37
+ duration?: number | undefined;
38
+ requestId?: string | undefined;
39
+ traceId?: string | undefined;
40
+ }, {
41
+ timestamp: string;
42
+ duration?: number | undefined;
43
+ requestId?: string | undefined;
44
+ traceId?: string | undefined;
45
+ }>>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ success: boolean;
48
+ error?: {
49
+ code: string;
50
+ message: string;
51
+ details?: any;
52
+ } | undefined;
53
+ meta?: {
54
+ timestamp: string;
55
+ duration?: number | undefined;
56
+ requestId?: string | undefined;
57
+ traceId?: string | undefined;
58
+ } | undefined;
59
+ }, {
60
+ success: boolean;
61
+ error?: {
62
+ code: string;
63
+ message: string;
64
+ details?: any;
65
+ } | undefined;
66
+ meta?: {
67
+ timestamp: string;
68
+ duration?: number | undefined;
69
+ requestId?: string | undefined;
70
+ traceId?: string | undefined;
71
+ } | undefined;
72
+ }>;
73
+ export declare const RecordDataSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
74
+ /**
75
+ * Standard Create Request
76
+ */
77
+ export declare const CreateRequestSchema: z.ZodObject<{
78
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
79
+ }, "strip", z.ZodTypeAny, {
80
+ data: Record<string, any>;
81
+ }, {
82
+ data: Record<string, any>;
83
+ }>;
84
+ /**
85
+ * Standard Update Request
86
+ */
87
+ export declare const UpdateRequestSchema: z.ZodObject<{
88
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
89
+ }, "strip", z.ZodTypeAny, {
90
+ data: Record<string, any>;
91
+ }, {
92
+ data: Record<string, any>;
93
+ }>;
94
+ /**
95
+ * Standard Bulk Request
96
+ */
97
+ export declare const BulkRequestSchema: z.ZodObject<{
98
+ records: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">;
99
+ allOrNone: z.ZodDefault<z.ZodBoolean>;
100
+ }, "strip", z.ZodTypeAny, {
101
+ records: Record<string, any>[];
102
+ allOrNone: boolean;
103
+ }, {
104
+ records: Record<string, any>[];
105
+ allOrNone?: boolean | undefined;
106
+ }>;
107
+ /**
108
+ * Export Request
109
+ */
110
+ export declare const ExportRequestSchema: z.ZodObject<{
111
+ object: z.ZodString;
112
+ fields: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
113
+ aggregations: z.ZodOptional<z.ZodArray<z.ZodObject<{
114
+ function: z.ZodEnum<["count", "sum", "avg", "min", "max", "count_distinct", "array_agg", "string_agg"]>;
115
+ field: z.ZodOptional<z.ZodString>;
116
+ alias: z.ZodString;
117
+ distinct: z.ZodOptional<z.ZodBoolean>;
118
+ }, "strip", z.ZodTypeAny, {
119
+ function: "min" | "max" | "count" | "sum" | "avg" | "count_distinct" | "array_agg" | "string_agg";
120
+ alias: string;
121
+ field?: string | undefined;
122
+ distinct?: boolean | undefined;
123
+ }, {
124
+ function: "min" | "max" | "count" | "sum" | "avg" | "count_distinct" | "array_agg" | "string_agg";
125
+ alias: string;
126
+ field?: string | undefined;
127
+ distinct?: boolean | undefined;
128
+ }>, "many">>;
129
+ windowFunctions: z.ZodOptional<z.ZodArray<z.ZodObject<{
130
+ function: z.ZodEnum<["row_number", "rank", "dense_rank", "percent_rank", "lag", "lead", "first_value", "last_value", "sum", "avg", "count", "min", "max"]>;
131
+ field: z.ZodOptional<z.ZodString>;
132
+ alias: z.ZodString;
133
+ over: z.ZodObject<{
134
+ partitionBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
135
+ orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
136
+ field: z.ZodString;
137
+ order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
138
+ }, "strip", z.ZodTypeAny, {
139
+ field: string;
140
+ order: "asc" | "desc";
141
+ }, {
142
+ field: string;
143
+ order?: "asc" | "desc" | undefined;
144
+ }>, "many">>;
145
+ frame: z.ZodOptional<z.ZodObject<{
146
+ type: z.ZodOptional<z.ZodEnum<["rows", "range"]>>;
147
+ start: z.ZodOptional<z.ZodString>;
148
+ end: z.ZodOptional<z.ZodString>;
149
+ }, "strip", z.ZodTypeAny, {
150
+ type?: "rows" | "range" | undefined;
151
+ start?: string | undefined;
152
+ end?: string | undefined;
153
+ }, {
154
+ type?: "rows" | "range" | undefined;
155
+ start?: string | undefined;
156
+ end?: string | undefined;
157
+ }>>;
158
+ }, "strip", z.ZodTypeAny, {
159
+ partitionBy?: string[] | undefined;
160
+ orderBy?: {
161
+ field: string;
162
+ order: "asc" | "desc";
163
+ }[] | undefined;
164
+ frame?: {
165
+ type?: "rows" | "range" | undefined;
166
+ start?: string | undefined;
167
+ end?: string | undefined;
168
+ } | undefined;
169
+ }, {
170
+ partitionBy?: string[] | undefined;
171
+ orderBy?: {
172
+ field: string;
173
+ order?: "asc" | "desc" | undefined;
174
+ }[] | undefined;
175
+ frame?: {
176
+ type?: "rows" | "range" | undefined;
177
+ start?: string | undefined;
178
+ end?: string | undefined;
179
+ } | undefined;
180
+ }>;
181
+ }, "strip", z.ZodTypeAny, {
182
+ function: "min" | "max" | "count" | "sum" | "avg" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
183
+ alias: string;
184
+ over: {
185
+ partitionBy?: string[] | undefined;
186
+ orderBy?: {
187
+ field: string;
188
+ order: "asc" | "desc";
189
+ }[] | undefined;
190
+ frame?: {
191
+ type?: "rows" | "range" | undefined;
192
+ start?: string | undefined;
193
+ end?: string | undefined;
194
+ } | undefined;
195
+ };
196
+ field?: string | undefined;
197
+ }, {
198
+ function: "min" | "max" | "count" | "sum" | "avg" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
199
+ alias: string;
200
+ over: {
201
+ partitionBy?: string[] | undefined;
202
+ orderBy?: {
203
+ field: string;
204
+ order?: "asc" | "desc" | undefined;
205
+ }[] | undefined;
206
+ frame?: {
207
+ type?: "rows" | "range" | undefined;
208
+ start?: string | undefined;
209
+ end?: string | undefined;
210
+ } | undefined;
211
+ };
212
+ field?: string | undefined;
213
+ }>, "many">>;
214
+ filters: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
215
+ joins: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
216
+ groupBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
217
+ having: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
218
+ sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
219
+ field: z.ZodString;
220
+ order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
221
+ }, "strip", z.ZodTypeAny, {
222
+ field: string;
223
+ order: "asc" | "desc";
224
+ }, {
225
+ field: string;
226
+ order?: "asc" | "desc" | undefined;
227
+ }>, "many">>;
228
+ top: z.ZodOptional<z.ZodNumber>;
229
+ skip: z.ZodOptional<z.ZodNumber>;
230
+ distinct: z.ZodOptional<z.ZodBoolean>;
231
+ } & {
232
+ format: z.ZodDefault<z.ZodEnum<["csv", "json", "xlsx"]>>;
233
+ }, "strip", z.ZodTypeAny, {
234
+ object: string;
235
+ format: "json" | "csv" | "xlsx";
236
+ sort?: {
237
+ field: string;
238
+ order: "asc" | "desc";
239
+ }[] | undefined;
240
+ fields?: any[] | undefined;
241
+ distinct?: boolean | undefined;
242
+ aggregations?: {
243
+ function: "min" | "max" | "count" | "sum" | "avg" | "count_distinct" | "array_agg" | "string_agg";
244
+ alias: string;
245
+ field?: string | undefined;
246
+ distinct?: boolean | undefined;
247
+ }[] | undefined;
248
+ windowFunctions?: {
249
+ function: "min" | "max" | "count" | "sum" | "avg" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
250
+ alias: string;
251
+ over: {
252
+ partitionBy?: string[] | undefined;
253
+ orderBy?: {
254
+ field: string;
255
+ order: "asc" | "desc";
256
+ }[] | undefined;
257
+ frame?: {
258
+ type?: "rows" | "range" | undefined;
259
+ start?: string | undefined;
260
+ end?: string | undefined;
261
+ } | undefined;
262
+ };
263
+ field?: string | undefined;
264
+ }[] | undefined;
265
+ filters?: any;
266
+ joins?: any[] | undefined;
267
+ groupBy?: string[] | undefined;
268
+ having?: any;
269
+ top?: number | undefined;
270
+ skip?: number | undefined;
271
+ }, {
272
+ object: string;
273
+ sort?: {
274
+ field: string;
275
+ order?: "asc" | "desc" | undefined;
276
+ }[] | undefined;
277
+ format?: "json" | "csv" | "xlsx" | undefined;
278
+ fields?: any[] | undefined;
279
+ distinct?: boolean | undefined;
280
+ aggregations?: {
281
+ function: "min" | "max" | "count" | "sum" | "avg" | "count_distinct" | "array_agg" | "string_agg";
282
+ alias: string;
283
+ field?: string | undefined;
284
+ distinct?: boolean | undefined;
285
+ }[] | undefined;
286
+ windowFunctions?: {
287
+ function: "min" | "max" | "count" | "sum" | "avg" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
288
+ alias: string;
289
+ over: {
290
+ partitionBy?: string[] | undefined;
291
+ orderBy?: {
292
+ field: string;
293
+ order?: "asc" | "desc" | undefined;
294
+ }[] | undefined;
295
+ frame?: {
296
+ type?: "rows" | "range" | undefined;
297
+ start?: string | undefined;
298
+ end?: string | undefined;
299
+ } | undefined;
300
+ };
301
+ field?: string | undefined;
302
+ }[] | undefined;
303
+ filters?: any;
304
+ joins?: any[] | undefined;
305
+ groupBy?: string[] | undefined;
306
+ having?: any;
307
+ top?: number | undefined;
308
+ skip?: number | undefined;
309
+ }>;
310
+ /**
311
+ * Single Record Response (Get/Create/Update)
312
+ */
313
+ export declare const SingleRecordResponseSchema: z.ZodObject<{
314
+ success: z.ZodBoolean;
315
+ error: z.ZodOptional<z.ZodObject<{
316
+ code: z.ZodString;
317
+ message: z.ZodString;
318
+ details: z.ZodOptional<z.ZodAny>;
319
+ }, "strip", z.ZodTypeAny, {
320
+ code: string;
321
+ message: string;
322
+ details?: any;
323
+ }, {
324
+ code: string;
325
+ message: string;
326
+ details?: any;
327
+ }>>;
328
+ meta: z.ZodOptional<z.ZodObject<{
329
+ timestamp: z.ZodString;
330
+ duration: z.ZodOptional<z.ZodNumber>;
331
+ requestId: z.ZodOptional<z.ZodString>;
332
+ traceId: z.ZodOptional<z.ZodString>;
333
+ }, "strip", z.ZodTypeAny, {
334
+ timestamp: string;
335
+ duration?: number | undefined;
336
+ requestId?: string | undefined;
337
+ traceId?: string | undefined;
338
+ }, {
339
+ timestamp: string;
340
+ duration?: number | undefined;
341
+ requestId?: string | undefined;
342
+ traceId?: string | undefined;
343
+ }>>;
344
+ } & {
345
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
346
+ }, "strip", z.ZodTypeAny, {
347
+ success: boolean;
348
+ data: Record<string, any>;
349
+ error?: {
350
+ code: string;
351
+ message: string;
352
+ details?: any;
353
+ } | undefined;
354
+ meta?: {
355
+ timestamp: string;
356
+ duration?: number | undefined;
357
+ requestId?: string | undefined;
358
+ traceId?: string | undefined;
359
+ } | undefined;
360
+ }, {
361
+ success: boolean;
362
+ data: Record<string, any>;
363
+ error?: {
364
+ code: string;
365
+ message: string;
366
+ details?: any;
367
+ } | undefined;
368
+ meta?: {
369
+ timestamp: string;
370
+ duration?: number | undefined;
371
+ requestId?: string | undefined;
372
+ traceId?: string | undefined;
373
+ } | undefined;
374
+ }>;
375
+ /**
376
+ * List/Query Response
377
+ */
378
+ export declare const ListRecordResponseSchema: z.ZodObject<{
379
+ success: z.ZodBoolean;
380
+ error: z.ZodOptional<z.ZodObject<{
381
+ code: z.ZodString;
382
+ message: z.ZodString;
383
+ details: z.ZodOptional<z.ZodAny>;
384
+ }, "strip", z.ZodTypeAny, {
385
+ code: string;
386
+ message: string;
387
+ details?: any;
388
+ }, {
389
+ code: string;
390
+ message: string;
391
+ details?: any;
392
+ }>>;
393
+ meta: z.ZodOptional<z.ZodObject<{
394
+ timestamp: z.ZodString;
395
+ duration: z.ZodOptional<z.ZodNumber>;
396
+ requestId: z.ZodOptional<z.ZodString>;
397
+ traceId: z.ZodOptional<z.ZodString>;
398
+ }, "strip", z.ZodTypeAny, {
399
+ timestamp: string;
400
+ duration?: number | undefined;
401
+ requestId?: string | undefined;
402
+ traceId?: string | undefined;
403
+ }, {
404
+ timestamp: string;
405
+ duration?: number | undefined;
406
+ requestId?: string | undefined;
407
+ traceId?: string | undefined;
408
+ }>>;
409
+ } & {
410
+ data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">;
411
+ pagination: z.ZodObject<{
412
+ total: z.ZodNumber;
413
+ limit: z.ZodNumber;
414
+ offset: z.ZodNumber;
415
+ hasMore: z.ZodBoolean;
416
+ }, "strip", z.ZodTypeAny, {
417
+ total: number;
418
+ limit: number;
419
+ offset: number;
420
+ hasMore: boolean;
421
+ }, {
422
+ total: number;
423
+ limit: number;
424
+ offset: number;
425
+ hasMore: boolean;
426
+ }>;
427
+ }, "strip", z.ZodTypeAny, {
428
+ success: boolean;
429
+ data: Record<string, any>[];
430
+ pagination: {
431
+ total: number;
432
+ limit: number;
433
+ offset: number;
434
+ hasMore: boolean;
435
+ };
436
+ error?: {
437
+ code: string;
438
+ message: string;
439
+ details?: any;
440
+ } | undefined;
441
+ meta?: {
442
+ timestamp: string;
443
+ duration?: number | undefined;
444
+ requestId?: string | undefined;
445
+ traceId?: string | undefined;
446
+ } | undefined;
447
+ }, {
448
+ success: boolean;
449
+ data: Record<string, any>[];
450
+ pagination: {
451
+ total: number;
452
+ limit: number;
453
+ offset: number;
454
+ hasMore: boolean;
455
+ };
456
+ error?: {
457
+ code: string;
458
+ message: string;
459
+ details?: any;
460
+ } | undefined;
461
+ meta?: {
462
+ timestamp: string;
463
+ duration?: number | undefined;
464
+ requestId?: string | undefined;
465
+ traceId?: string | undefined;
466
+ } | undefined;
467
+ }>;
468
+ /**
469
+ * Modification Result (for Batch/Bulk operations)
470
+ */
471
+ export declare const ModificationResultSchema: z.ZodObject<{
472
+ id: z.ZodOptional<z.ZodString>;
473
+ success: z.ZodBoolean;
474
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
475
+ code: z.ZodString;
476
+ message: z.ZodString;
477
+ details: z.ZodOptional<z.ZodAny>;
478
+ }, "strip", z.ZodTypeAny, {
479
+ code: string;
480
+ message: string;
481
+ details?: any;
482
+ }, {
483
+ code: string;
484
+ message: string;
485
+ details?: any;
486
+ }>, "many">>;
487
+ }, "strip", z.ZodTypeAny, {
488
+ success: boolean;
489
+ id?: string | undefined;
490
+ errors?: {
491
+ code: string;
492
+ message: string;
493
+ details?: any;
494
+ }[] | undefined;
495
+ }, {
496
+ success: boolean;
497
+ id?: string | undefined;
498
+ errors?: {
499
+ code: string;
500
+ message: string;
501
+ details?: any;
502
+ }[] | undefined;
503
+ }>;
504
+ /**
505
+ * Bulk Operation Response
506
+ */
507
+ export declare const BulkResponseSchema: z.ZodObject<{
508
+ success: z.ZodBoolean;
509
+ error: z.ZodOptional<z.ZodObject<{
510
+ code: z.ZodString;
511
+ message: z.ZodString;
512
+ details: z.ZodOptional<z.ZodAny>;
513
+ }, "strip", z.ZodTypeAny, {
514
+ code: string;
515
+ message: string;
516
+ details?: any;
517
+ }, {
518
+ code: string;
519
+ message: string;
520
+ details?: any;
521
+ }>>;
522
+ meta: z.ZodOptional<z.ZodObject<{
523
+ timestamp: z.ZodString;
524
+ duration: z.ZodOptional<z.ZodNumber>;
525
+ requestId: z.ZodOptional<z.ZodString>;
526
+ traceId: z.ZodOptional<z.ZodString>;
527
+ }, "strip", z.ZodTypeAny, {
528
+ timestamp: string;
529
+ duration?: number | undefined;
530
+ requestId?: string | undefined;
531
+ traceId?: string | undefined;
532
+ }, {
533
+ timestamp: string;
534
+ duration?: number | undefined;
535
+ requestId?: string | undefined;
536
+ traceId?: string | undefined;
537
+ }>>;
538
+ } & {
539
+ data: z.ZodArray<z.ZodObject<{
540
+ id: z.ZodOptional<z.ZodString>;
541
+ success: z.ZodBoolean;
542
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
543
+ code: z.ZodString;
544
+ message: z.ZodString;
545
+ details: z.ZodOptional<z.ZodAny>;
546
+ }, "strip", z.ZodTypeAny, {
547
+ code: string;
548
+ message: string;
549
+ details?: any;
550
+ }, {
551
+ code: string;
552
+ message: string;
553
+ details?: any;
554
+ }>, "many">>;
555
+ }, "strip", z.ZodTypeAny, {
556
+ success: boolean;
557
+ id?: string | undefined;
558
+ errors?: {
559
+ code: string;
560
+ message: string;
561
+ details?: any;
562
+ }[] | undefined;
563
+ }, {
564
+ success: boolean;
565
+ id?: string | undefined;
566
+ errors?: {
567
+ code: string;
568
+ message: string;
569
+ details?: any;
570
+ }[] | undefined;
571
+ }>, "many">;
572
+ }, "strip", z.ZodTypeAny, {
573
+ success: boolean;
574
+ data: {
575
+ success: boolean;
576
+ id?: string | undefined;
577
+ errors?: {
578
+ code: string;
579
+ message: string;
580
+ details?: any;
581
+ }[] | undefined;
582
+ }[];
583
+ error?: {
584
+ code: string;
585
+ message: string;
586
+ details?: any;
587
+ } | undefined;
588
+ meta?: {
589
+ timestamp: string;
590
+ duration?: number | undefined;
591
+ requestId?: string | undefined;
592
+ traceId?: string | undefined;
593
+ } | undefined;
594
+ }, {
595
+ success: boolean;
596
+ data: {
597
+ success: boolean;
598
+ id?: string | undefined;
599
+ errors?: {
600
+ code: string;
601
+ message: string;
602
+ details?: any;
603
+ }[] | undefined;
604
+ }[];
605
+ error?: {
606
+ code: string;
607
+ message: string;
608
+ details?: any;
609
+ } | undefined;
610
+ meta?: {
611
+ timestamp: string;
612
+ duration?: number | undefined;
613
+ requestId?: string | undefined;
614
+ traceId?: string | undefined;
615
+ } | undefined;
616
+ }>;
617
+ /**
618
+ * Delete Response
619
+ */
620
+ export declare const DeleteResponseSchema: z.ZodObject<{
621
+ success: z.ZodBoolean;
622
+ error: z.ZodOptional<z.ZodObject<{
623
+ code: z.ZodString;
624
+ message: z.ZodString;
625
+ details: z.ZodOptional<z.ZodAny>;
626
+ }, "strip", z.ZodTypeAny, {
627
+ code: string;
628
+ message: string;
629
+ details?: any;
630
+ }, {
631
+ code: string;
632
+ message: string;
633
+ details?: any;
634
+ }>>;
635
+ meta: z.ZodOptional<z.ZodObject<{
636
+ timestamp: z.ZodString;
637
+ duration: z.ZodOptional<z.ZodNumber>;
638
+ requestId: z.ZodOptional<z.ZodString>;
639
+ traceId: z.ZodOptional<z.ZodString>;
640
+ }, "strip", z.ZodTypeAny, {
641
+ timestamp: string;
642
+ duration?: number | undefined;
643
+ requestId?: string | undefined;
644
+ traceId?: string | undefined;
645
+ }, {
646
+ timestamp: string;
647
+ duration?: number | undefined;
648
+ requestId?: string | undefined;
649
+ traceId?: string | undefined;
650
+ }>>;
651
+ } & {
652
+ id: z.ZodString;
653
+ }, "strip", z.ZodTypeAny, {
654
+ id: string;
655
+ success: boolean;
656
+ error?: {
657
+ code: string;
658
+ message: string;
659
+ details?: any;
660
+ } | undefined;
661
+ meta?: {
662
+ timestamp: string;
663
+ duration?: number | undefined;
664
+ requestId?: string | undefined;
665
+ traceId?: string | undefined;
666
+ } | undefined;
667
+ }, {
668
+ id: string;
669
+ success: boolean;
670
+ error?: {
671
+ code: string;
672
+ message: string;
673
+ details?: any;
674
+ } | undefined;
675
+ meta?: {
676
+ timestamp: string;
677
+ duration?: number | undefined;
678
+ requestId?: string | undefined;
679
+ traceId?: string | undefined;
680
+ } | undefined;
681
+ }>;
682
+ /**
683
+ * Standard API Contracts map
684
+ * Used for generating SDKs and Documentation
685
+ */
686
+ export declare const ApiContracts: {
687
+ create: {
688
+ input: z.ZodObject<{
689
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
690
+ }, "strip", z.ZodTypeAny, {
691
+ data: Record<string, any>;
692
+ }, {
693
+ data: Record<string, any>;
694
+ }>;
695
+ output: z.ZodObject<{
696
+ success: z.ZodBoolean;
697
+ error: z.ZodOptional<z.ZodObject<{
698
+ code: z.ZodString;
699
+ message: z.ZodString;
700
+ details: z.ZodOptional<z.ZodAny>;
701
+ }, "strip", z.ZodTypeAny, {
702
+ code: string;
703
+ message: string;
704
+ details?: any;
705
+ }, {
706
+ code: string;
707
+ message: string;
708
+ details?: any;
709
+ }>>;
710
+ meta: z.ZodOptional<z.ZodObject<{
711
+ timestamp: z.ZodString;
712
+ duration: z.ZodOptional<z.ZodNumber>;
713
+ requestId: z.ZodOptional<z.ZodString>;
714
+ traceId: z.ZodOptional<z.ZodString>;
715
+ }, "strip", z.ZodTypeAny, {
716
+ timestamp: string;
717
+ duration?: number | undefined;
718
+ requestId?: string | undefined;
719
+ traceId?: string | undefined;
720
+ }, {
721
+ timestamp: string;
722
+ duration?: number | undefined;
723
+ requestId?: string | undefined;
724
+ traceId?: string | undefined;
725
+ }>>;
726
+ } & {
727
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
728
+ }, "strip", z.ZodTypeAny, {
729
+ success: boolean;
730
+ data: Record<string, any>;
731
+ error?: {
732
+ code: string;
733
+ message: string;
734
+ details?: any;
735
+ } | undefined;
736
+ meta?: {
737
+ timestamp: string;
738
+ duration?: number | undefined;
739
+ requestId?: string | undefined;
740
+ traceId?: string | undefined;
741
+ } | undefined;
742
+ }, {
743
+ success: boolean;
744
+ data: Record<string, any>;
745
+ error?: {
746
+ code: string;
747
+ message: string;
748
+ details?: any;
749
+ } | undefined;
750
+ meta?: {
751
+ timestamp: string;
752
+ duration?: number | undefined;
753
+ requestId?: string | undefined;
754
+ traceId?: string | undefined;
755
+ } | undefined;
756
+ }>;
757
+ };
758
+ update: {
759
+ input: z.ZodObject<{
760
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
761
+ }, "strip", z.ZodTypeAny, {
762
+ data: Record<string, any>;
763
+ }, {
764
+ data: Record<string, any>;
765
+ }>;
766
+ output: z.ZodObject<{
767
+ success: z.ZodBoolean;
768
+ error: z.ZodOptional<z.ZodObject<{
769
+ code: z.ZodString;
770
+ message: z.ZodString;
771
+ details: z.ZodOptional<z.ZodAny>;
772
+ }, "strip", z.ZodTypeAny, {
773
+ code: string;
774
+ message: string;
775
+ details?: any;
776
+ }, {
777
+ code: string;
778
+ message: string;
779
+ details?: any;
780
+ }>>;
781
+ meta: z.ZodOptional<z.ZodObject<{
782
+ timestamp: z.ZodString;
783
+ duration: z.ZodOptional<z.ZodNumber>;
784
+ requestId: z.ZodOptional<z.ZodString>;
785
+ traceId: z.ZodOptional<z.ZodString>;
786
+ }, "strip", z.ZodTypeAny, {
787
+ timestamp: string;
788
+ duration?: number | undefined;
789
+ requestId?: string | undefined;
790
+ traceId?: string | undefined;
791
+ }, {
792
+ timestamp: string;
793
+ duration?: number | undefined;
794
+ requestId?: string | undefined;
795
+ traceId?: string | undefined;
796
+ }>>;
797
+ } & {
798
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
799
+ }, "strip", z.ZodTypeAny, {
800
+ success: boolean;
801
+ data: Record<string, any>;
802
+ error?: {
803
+ code: string;
804
+ message: string;
805
+ details?: any;
806
+ } | undefined;
807
+ meta?: {
808
+ timestamp: string;
809
+ duration?: number | undefined;
810
+ requestId?: string | undefined;
811
+ traceId?: string | undefined;
812
+ } | undefined;
813
+ }, {
814
+ success: boolean;
815
+ data: Record<string, any>;
816
+ error?: {
817
+ code: string;
818
+ message: string;
819
+ details?: any;
820
+ } | undefined;
821
+ meta?: {
822
+ timestamp: string;
823
+ duration?: number | undefined;
824
+ requestId?: string | undefined;
825
+ traceId?: string | undefined;
826
+ } | undefined;
827
+ }>;
828
+ };
829
+ delete: {
830
+ input: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
831
+ output: z.ZodObject<{
832
+ success: z.ZodBoolean;
833
+ error: z.ZodOptional<z.ZodObject<{
834
+ code: z.ZodString;
835
+ message: z.ZodString;
836
+ details: z.ZodOptional<z.ZodAny>;
837
+ }, "strip", z.ZodTypeAny, {
838
+ code: string;
839
+ message: string;
840
+ details?: any;
841
+ }, {
842
+ code: string;
843
+ message: string;
844
+ details?: any;
845
+ }>>;
846
+ meta: z.ZodOptional<z.ZodObject<{
847
+ timestamp: z.ZodString;
848
+ duration: z.ZodOptional<z.ZodNumber>;
849
+ requestId: z.ZodOptional<z.ZodString>;
850
+ traceId: z.ZodOptional<z.ZodString>;
851
+ }, "strip", z.ZodTypeAny, {
852
+ timestamp: string;
853
+ duration?: number | undefined;
854
+ requestId?: string | undefined;
855
+ traceId?: string | undefined;
856
+ }, {
857
+ timestamp: string;
858
+ duration?: number | undefined;
859
+ requestId?: string | undefined;
860
+ traceId?: string | undefined;
861
+ }>>;
862
+ } & {
863
+ id: z.ZodString;
864
+ }, "strip", z.ZodTypeAny, {
865
+ id: string;
866
+ success: boolean;
867
+ error?: {
868
+ code: string;
869
+ message: string;
870
+ details?: any;
871
+ } | undefined;
872
+ meta?: {
873
+ timestamp: string;
874
+ duration?: number | undefined;
875
+ requestId?: string | undefined;
876
+ traceId?: string | undefined;
877
+ } | undefined;
878
+ }, {
879
+ id: string;
880
+ success: boolean;
881
+ error?: {
882
+ code: string;
883
+ message: string;
884
+ details?: any;
885
+ } | undefined;
886
+ meta?: {
887
+ timestamp: string;
888
+ duration?: number | undefined;
889
+ requestId?: string | undefined;
890
+ traceId?: string | undefined;
891
+ } | undefined;
892
+ }>;
893
+ };
894
+ get: {
895
+ input: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
896
+ output: z.ZodObject<{
897
+ success: z.ZodBoolean;
898
+ error: z.ZodOptional<z.ZodObject<{
899
+ code: z.ZodString;
900
+ message: z.ZodString;
901
+ details: z.ZodOptional<z.ZodAny>;
902
+ }, "strip", z.ZodTypeAny, {
903
+ code: string;
904
+ message: string;
905
+ details?: any;
906
+ }, {
907
+ code: string;
908
+ message: string;
909
+ details?: any;
910
+ }>>;
911
+ meta: z.ZodOptional<z.ZodObject<{
912
+ timestamp: z.ZodString;
913
+ duration: z.ZodOptional<z.ZodNumber>;
914
+ requestId: z.ZodOptional<z.ZodString>;
915
+ traceId: z.ZodOptional<z.ZodString>;
916
+ }, "strip", z.ZodTypeAny, {
917
+ timestamp: string;
918
+ duration?: number | undefined;
919
+ requestId?: string | undefined;
920
+ traceId?: string | undefined;
921
+ }, {
922
+ timestamp: string;
923
+ duration?: number | undefined;
924
+ requestId?: string | undefined;
925
+ traceId?: string | undefined;
926
+ }>>;
927
+ } & {
928
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
929
+ }, "strip", z.ZodTypeAny, {
930
+ success: boolean;
931
+ data: Record<string, any>;
932
+ error?: {
933
+ code: string;
934
+ message: string;
935
+ details?: any;
936
+ } | undefined;
937
+ meta?: {
938
+ timestamp: string;
939
+ duration?: number | undefined;
940
+ requestId?: string | undefined;
941
+ traceId?: string | undefined;
942
+ } | undefined;
943
+ }, {
944
+ success: boolean;
945
+ data: Record<string, any>;
946
+ error?: {
947
+ code: string;
948
+ message: string;
949
+ details?: any;
950
+ } | undefined;
951
+ meta?: {
952
+ timestamp: string;
953
+ duration?: number | undefined;
954
+ requestId?: string | undefined;
955
+ traceId?: string | undefined;
956
+ } | undefined;
957
+ }>;
958
+ };
959
+ list: {
960
+ input: z.ZodObject<{
961
+ object: z.ZodString;
962
+ fields: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
963
+ aggregations: z.ZodOptional<z.ZodArray<z.ZodObject<{
964
+ function: z.ZodEnum<["count", "sum", "avg", "min", "max", "count_distinct", "array_agg", "string_agg"]>;
965
+ field: z.ZodOptional<z.ZodString>;
966
+ alias: z.ZodString;
967
+ distinct: z.ZodOptional<z.ZodBoolean>;
968
+ }, "strip", z.ZodTypeAny, {
969
+ function: "min" | "max" | "count" | "sum" | "avg" | "count_distinct" | "array_agg" | "string_agg";
970
+ alias: string;
971
+ field?: string | undefined;
972
+ distinct?: boolean | undefined;
973
+ }, {
974
+ function: "min" | "max" | "count" | "sum" | "avg" | "count_distinct" | "array_agg" | "string_agg";
975
+ alias: string;
976
+ field?: string | undefined;
977
+ distinct?: boolean | undefined;
978
+ }>, "many">>;
979
+ windowFunctions: z.ZodOptional<z.ZodArray<z.ZodObject<{
980
+ function: z.ZodEnum<["row_number", "rank", "dense_rank", "percent_rank", "lag", "lead", "first_value", "last_value", "sum", "avg", "count", "min", "max"]>;
981
+ field: z.ZodOptional<z.ZodString>;
982
+ alias: z.ZodString;
983
+ over: z.ZodObject<{
984
+ partitionBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
985
+ orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
986
+ field: z.ZodString;
987
+ order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
988
+ }, "strip", z.ZodTypeAny, {
989
+ field: string;
990
+ order: "asc" | "desc";
991
+ }, {
992
+ field: string;
993
+ order?: "asc" | "desc" | undefined;
994
+ }>, "many">>;
995
+ frame: z.ZodOptional<z.ZodObject<{
996
+ type: z.ZodOptional<z.ZodEnum<["rows", "range"]>>;
997
+ start: z.ZodOptional<z.ZodString>;
998
+ end: z.ZodOptional<z.ZodString>;
999
+ }, "strip", z.ZodTypeAny, {
1000
+ type?: "rows" | "range" | undefined;
1001
+ start?: string | undefined;
1002
+ end?: string | undefined;
1003
+ }, {
1004
+ type?: "rows" | "range" | undefined;
1005
+ start?: string | undefined;
1006
+ end?: string | undefined;
1007
+ }>>;
1008
+ }, "strip", z.ZodTypeAny, {
1009
+ partitionBy?: string[] | undefined;
1010
+ orderBy?: {
1011
+ field: string;
1012
+ order: "asc" | "desc";
1013
+ }[] | undefined;
1014
+ frame?: {
1015
+ type?: "rows" | "range" | undefined;
1016
+ start?: string | undefined;
1017
+ end?: string | undefined;
1018
+ } | undefined;
1019
+ }, {
1020
+ partitionBy?: string[] | undefined;
1021
+ orderBy?: {
1022
+ field: string;
1023
+ order?: "asc" | "desc" | undefined;
1024
+ }[] | undefined;
1025
+ frame?: {
1026
+ type?: "rows" | "range" | undefined;
1027
+ start?: string | undefined;
1028
+ end?: string | undefined;
1029
+ } | undefined;
1030
+ }>;
1031
+ }, "strip", z.ZodTypeAny, {
1032
+ function: "min" | "max" | "count" | "sum" | "avg" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
1033
+ alias: string;
1034
+ over: {
1035
+ partitionBy?: string[] | undefined;
1036
+ orderBy?: {
1037
+ field: string;
1038
+ order: "asc" | "desc";
1039
+ }[] | undefined;
1040
+ frame?: {
1041
+ type?: "rows" | "range" | undefined;
1042
+ start?: string | undefined;
1043
+ end?: string | undefined;
1044
+ } | undefined;
1045
+ };
1046
+ field?: string | undefined;
1047
+ }, {
1048
+ function: "min" | "max" | "count" | "sum" | "avg" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
1049
+ alias: string;
1050
+ over: {
1051
+ partitionBy?: string[] | undefined;
1052
+ orderBy?: {
1053
+ field: string;
1054
+ order?: "asc" | "desc" | undefined;
1055
+ }[] | undefined;
1056
+ frame?: {
1057
+ type?: "rows" | "range" | undefined;
1058
+ start?: string | undefined;
1059
+ end?: string | undefined;
1060
+ } | undefined;
1061
+ };
1062
+ field?: string | undefined;
1063
+ }>, "many">>;
1064
+ filters: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1065
+ joins: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
1066
+ groupBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1067
+ having: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1068
+ sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
1069
+ field: z.ZodString;
1070
+ order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
1071
+ }, "strip", z.ZodTypeAny, {
1072
+ field: string;
1073
+ order: "asc" | "desc";
1074
+ }, {
1075
+ field: string;
1076
+ order?: "asc" | "desc" | undefined;
1077
+ }>, "many">>;
1078
+ top: z.ZodOptional<z.ZodNumber>;
1079
+ skip: z.ZodOptional<z.ZodNumber>;
1080
+ distinct: z.ZodOptional<z.ZodBoolean>;
1081
+ }, "strip", z.ZodTypeAny, {
1082
+ object: string;
1083
+ sort?: {
1084
+ field: string;
1085
+ order: "asc" | "desc";
1086
+ }[] | undefined;
1087
+ fields?: any[] | undefined;
1088
+ distinct?: boolean | undefined;
1089
+ aggregations?: {
1090
+ function: "min" | "max" | "count" | "sum" | "avg" | "count_distinct" | "array_agg" | "string_agg";
1091
+ alias: string;
1092
+ field?: string | undefined;
1093
+ distinct?: boolean | undefined;
1094
+ }[] | undefined;
1095
+ windowFunctions?: {
1096
+ function: "min" | "max" | "count" | "sum" | "avg" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
1097
+ alias: string;
1098
+ over: {
1099
+ partitionBy?: string[] | undefined;
1100
+ orderBy?: {
1101
+ field: string;
1102
+ order: "asc" | "desc";
1103
+ }[] | undefined;
1104
+ frame?: {
1105
+ type?: "rows" | "range" | undefined;
1106
+ start?: string | undefined;
1107
+ end?: string | undefined;
1108
+ } | undefined;
1109
+ };
1110
+ field?: string | undefined;
1111
+ }[] | undefined;
1112
+ filters?: any;
1113
+ joins?: any[] | undefined;
1114
+ groupBy?: string[] | undefined;
1115
+ having?: any;
1116
+ top?: number | undefined;
1117
+ skip?: number | undefined;
1118
+ }, {
1119
+ object: string;
1120
+ sort?: {
1121
+ field: string;
1122
+ order?: "asc" | "desc" | undefined;
1123
+ }[] | undefined;
1124
+ fields?: any[] | undefined;
1125
+ distinct?: boolean | undefined;
1126
+ aggregations?: {
1127
+ function: "min" | "max" | "count" | "sum" | "avg" | "count_distinct" | "array_agg" | "string_agg";
1128
+ alias: string;
1129
+ field?: string | undefined;
1130
+ distinct?: boolean | undefined;
1131
+ }[] | undefined;
1132
+ windowFunctions?: {
1133
+ function: "min" | "max" | "count" | "sum" | "avg" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
1134
+ alias: string;
1135
+ over: {
1136
+ partitionBy?: string[] | undefined;
1137
+ orderBy?: {
1138
+ field: string;
1139
+ order?: "asc" | "desc" | undefined;
1140
+ }[] | undefined;
1141
+ frame?: {
1142
+ type?: "rows" | "range" | undefined;
1143
+ start?: string | undefined;
1144
+ end?: string | undefined;
1145
+ } | undefined;
1146
+ };
1147
+ field?: string | undefined;
1148
+ }[] | undefined;
1149
+ filters?: any;
1150
+ joins?: any[] | undefined;
1151
+ groupBy?: string[] | undefined;
1152
+ having?: any;
1153
+ top?: number | undefined;
1154
+ skip?: number | undefined;
1155
+ }>;
1156
+ output: z.ZodObject<{
1157
+ success: z.ZodBoolean;
1158
+ error: z.ZodOptional<z.ZodObject<{
1159
+ code: z.ZodString;
1160
+ message: z.ZodString;
1161
+ details: z.ZodOptional<z.ZodAny>;
1162
+ }, "strip", z.ZodTypeAny, {
1163
+ code: string;
1164
+ message: string;
1165
+ details?: any;
1166
+ }, {
1167
+ code: string;
1168
+ message: string;
1169
+ details?: any;
1170
+ }>>;
1171
+ meta: z.ZodOptional<z.ZodObject<{
1172
+ timestamp: z.ZodString;
1173
+ duration: z.ZodOptional<z.ZodNumber>;
1174
+ requestId: z.ZodOptional<z.ZodString>;
1175
+ traceId: z.ZodOptional<z.ZodString>;
1176
+ }, "strip", z.ZodTypeAny, {
1177
+ timestamp: string;
1178
+ duration?: number | undefined;
1179
+ requestId?: string | undefined;
1180
+ traceId?: string | undefined;
1181
+ }, {
1182
+ timestamp: string;
1183
+ duration?: number | undefined;
1184
+ requestId?: string | undefined;
1185
+ traceId?: string | undefined;
1186
+ }>>;
1187
+ } & {
1188
+ data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">;
1189
+ pagination: z.ZodObject<{
1190
+ total: z.ZodNumber;
1191
+ limit: z.ZodNumber;
1192
+ offset: z.ZodNumber;
1193
+ hasMore: z.ZodBoolean;
1194
+ }, "strip", z.ZodTypeAny, {
1195
+ total: number;
1196
+ limit: number;
1197
+ offset: number;
1198
+ hasMore: boolean;
1199
+ }, {
1200
+ total: number;
1201
+ limit: number;
1202
+ offset: number;
1203
+ hasMore: boolean;
1204
+ }>;
1205
+ }, "strip", z.ZodTypeAny, {
1206
+ success: boolean;
1207
+ data: Record<string, any>[];
1208
+ pagination: {
1209
+ total: number;
1210
+ limit: number;
1211
+ offset: number;
1212
+ hasMore: boolean;
1213
+ };
1214
+ error?: {
1215
+ code: string;
1216
+ message: string;
1217
+ details?: any;
1218
+ } | undefined;
1219
+ meta?: {
1220
+ timestamp: string;
1221
+ duration?: number | undefined;
1222
+ requestId?: string | undefined;
1223
+ traceId?: string | undefined;
1224
+ } | undefined;
1225
+ }, {
1226
+ success: boolean;
1227
+ data: Record<string, any>[];
1228
+ pagination: {
1229
+ total: number;
1230
+ limit: number;
1231
+ offset: number;
1232
+ hasMore: boolean;
1233
+ };
1234
+ error?: {
1235
+ code: string;
1236
+ message: string;
1237
+ details?: any;
1238
+ } | undefined;
1239
+ meta?: {
1240
+ timestamp: string;
1241
+ duration?: number | undefined;
1242
+ requestId?: string | undefined;
1243
+ traceId?: string | undefined;
1244
+ } | undefined;
1245
+ }>;
1246
+ };
1247
+ bulkCreate: {
1248
+ input: z.ZodObject<{
1249
+ records: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">;
1250
+ allOrNone: z.ZodDefault<z.ZodBoolean>;
1251
+ }, "strip", z.ZodTypeAny, {
1252
+ records: Record<string, any>[];
1253
+ allOrNone: boolean;
1254
+ }, {
1255
+ records: Record<string, any>[];
1256
+ allOrNone?: boolean | undefined;
1257
+ }>;
1258
+ output: z.ZodObject<{
1259
+ success: z.ZodBoolean;
1260
+ error: z.ZodOptional<z.ZodObject<{
1261
+ code: z.ZodString;
1262
+ message: z.ZodString;
1263
+ details: z.ZodOptional<z.ZodAny>;
1264
+ }, "strip", z.ZodTypeAny, {
1265
+ code: string;
1266
+ message: string;
1267
+ details?: any;
1268
+ }, {
1269
+ code: string;
1270
+ message: string;
1271
+ details?: any;
1272
+ }>>;
1273
+ meta: z.ZodOptional<z.ZodObject<{
1274
+ timestamp: z.ZodString;
1275
+ duration: z.ZodOptional<z.ZodNumber>;
1276
+ requestId: z.ZodOptional<z.ZodString>;
1277
+ traceId: z.ZodOptional<z.ZodString>;
1278
+ }, "strip", z.ZodTypeAny, {
1279
+ timestamp: string;
1280
+ duration?: number | undefined;
1281
+ requestId?: string | undefined;
1282
+ traceId?: string | undefined;
1283
+ }, {
1284
+ timestamp: string;
1285
+ duration?: number | undefined;
1286
+ requestId?: string | undefined;
1287
+ traceId?: string | undefined;
1288
+ }>>;
1289
+ } & {
1290
+ data: z.ZodArray<z.ZodObject<{
1291
+ id: z.ZodOptional<z.ZodString>;
1292
+ success: z.ZodBoolean;
1293
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1294
+ code: z.ZodString;
1295
+ message: z.ZodString;
1296
+ details: z.ZodOptional<z.ZodAny>;
1297
+ }, "strip", z.ZodTypeAny, {
1298
+ code: string;
1299
+ message: string;
1300
+ details?: any;
1301
+ }, {
1302
+ code: string;
1303
+ message: string;
1304
+ details?: any;
1305
+ }>, "many">>;
1306
+ }, "strip", z.ZodTypeAny, {
1307
+ success: boolean;
1308
+ id?: string | undefined;
1309
+ errors?: {
1310
+ code: string;
1311
+ message: string;
1312
+ details?: any;
1313
+ }[] | undefined;
1314
+ }, {
1315
+ success: boolean;
1316
+ id?: string | undefined;
1317
+ errors?: {
1318
+ code: string;
1319
+ message: string;
1320
+ details?: any;
1321
+ }[] | undefined;
1322
+ }>, "many">;
1323
+ }, "strip", z.ZodTypeAny, {
1324
+ success: boolean;
1325
+ data: {
1326
+ success: boolean;
1327
+ id?: string | undefined;
1328
+ errors?: {
1329
+ code: string;
1330
+ message: string;
1331
+ details?: any;
1332
+ }[] | undefined;
1333
+ }[];
1334
+ error?: {
1335
+ code: string;
1336
+ message: string;
1337
+ details?: any;
1338
+ } | undefined;
1339
+ meta?: {
1340
+ timestamp: string;
1341
+ duration?: number | undefined;
1342
+ requestId?: string | undefined;
1343
+ traceId?: string | undefined;
1344
+ } | undefined;
1345
+ }, {
1346
+ success: boolean;
1347
+ data: {
1348
+ success: boolean;
1349
+ id?: string | undefined;
1350
+ errors?: {
1351
+ code: string;
1352
+ message: string;
1353
+ details?: any;
1354
+ }[] | undefined;
1355
+ }[];
1356
+ error?: {
1357
+ code: string;
1358
+ message: string;
1359
+ details?: any;
1360
+ } | undefined;
1361
+ meta?: {
1362
+ timestamp: string;
1363
+ duration?: number | undefined;
1364
+ requestId?: string | undefined;
1365
+ traceId?: string | undefined;
1366
+ } | undefined;
1367
+ }>;
1368
+ };
1369
+ bulkUpdate: {
1370
+ input: z.ZodObject<{
1371
+ records: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">;
1372
+ allOrNone: z.ZodDefault<z.ZodBoolean>;
1373
+ }, "strip", z.ZodTypeAny, {
1374
+ records: Record<string, any>[];
1375
+ allOrNone: boolean;
1376
+ }, {
1377
+ records: Record<string, any>[];
1378
+ allOrNone?: boolean | undefined;
1379
+ }>;
1380
+ output: z.ZodObject<{
1381
+ success: z.ZodBoolean;
1382
+ error: z.ZodOptional<z.ZodObject<{
1383
+ code: z.ZodString;
1384
+ message: z.ZodString;
1385
+ details: z.ZodOptional<z.ZodAny>;
1386
+ }, "strip", z.ZodTypeAny, {
1387
+ code: string;
1388
+ message: string;
1389
+ details?: any;
1390
+ }, {
1391
+ code: string;
1392
+ message: string;
1393
+ details?: any;
1394
+ }>>;
1395
+ meta: z.ZodOptional<z.ZodObject<{
1396
+ timestamp: z.ZodString;
1397
+ duration: z.ZodOptional<z.ZodNumber>;
1398
+ requestId: z.ZodOptional<z.ZodString>;
1399
+ traceId: z.ZodOptional<z.ZodString>;
1400
+ }, "strip", z.ZodTypeAny, {
1401
+ timestamp: string;
1402
+ duration?: number | undefined;
1403
+ requestId?: string | undefined;
1404
+ traceId?: string | undefined;
1405
+ }, {
1406
+ timestamp: string;
1407
+ duration?: number | undefined;
1408
+ requestId?: string | undefined;
1409
+ traceId?: string | undefined;
1410
+ }>>;
1411
+ } & {
1412
+ data: z.ZodArray<z.ZodObject<{
1413
+ id: z.ZodOptional<z.ZodString>;
1414
+ success: z.ZodBoolean;
1415
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1416
+ code: z.ZodString;
1417
+ message: z.ZodString;
1418
+ details: z.ZodOptional<z.ZodAny>;
1419
+ }, "strip", z.ZodTypeAny, {
1420
+ code: string;
1421
+ message: string;
1422
+ details?: any;
1423
+ }, {
1424
+ code: string;
1425
+ message: string;
1426
+ details?: any;
1427
+ }>, "many">>;
1428
+ }, "strip", z.ZodTypeAny, {
1429
+ success: boolean;
1430
+ id?: string | undefined;
1431
+ errors?: {
1432
+ code: string;
1433
+ message: string;
1434
+ details?: any;
1435
+ }[] | undefined;
1436
+ }, {
1437
+ success: boolean;
1438
+ id?: string | undefined;
1439
+ errors?: {
1440
+ code: string;
1441
+ message: string;
1442
+ details?: any;
1443
+ }[] | undefined;
1444
+ }>, "many">;
1445
+ }, "strip", z.ZodTypeAny, {
1446
+ success: boolean;
1447
+ data: {
1448
+ success: boolean;
1449
+ id?: string | undefined;
1450
+ errors?: {
1451
+ code: string;
1452
+ message: string;
1453
+ details?: any;
1454
+ }[] | undefined;
1455
+ }[];
1456
+ error?: {
1457
+ code: string;
1458
+ message: string;
1459
+ details?: any;
1460
+ } | undefined;
1461
+ meta?: {
1462
+ timestamp: string;
1463
+ duration?: number | undefined;
1464
+ requestId?: string | undefined;
1465
+ traceId?: string | undefined;
1466
+ } | undefined;
1467
+ }, {
1468
+ success: boolean;
1469
+ data: {
1470
+ success: boolean;
1471
+ id?: string | undefined;
1472
+ errors?: {
1473
+ code: string;
1474
+ message: string;
1475
+ details?: any;
1476
+ }[] | undefined;
1477
+ }[];
1478
+ error?: {
1479
+ code: string;
1480
+ message: string;
1481
+ details?: any;
1482
+ } | undefined;
1483
+ meta?: {
1484
+ timestamp: string;
1485
+ duration?: number | undefined;
1486
+ requestId?: string | undefined;
1487
+ traceId?: string | undefined;
1488
+ } | undefined;
1489
+ }>;
1490
+ };
1491
+ bulkUpsert: {
1492
+ input: z.ZodObject<{
1493
+ records: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">;
1494
+ allOrNone: z.ZodDefault<z.ZodBoolean>;
1495
+ }, "strip", z.ZodTypeAny, {
1496
+ records: Record<string, any>[];
1497
+ allOrNone: boolean;
1498
+ }, {
1499
+ records: Record<string, any>[];
1500
+ allOrNone?: boolean | undefined;
1501
+ }>;
1502
+ output: z.ZodObject<{
1503
+ success: z.ZodBoolean;
1504
+ error: z.ZodOptional<z.ZodObject<{
1505
+ code: z.ZodString;
1506
+ message: z.ZodString;
1507
+ details: z.ZodOptional<z.ZodAny>;
1508
+ }, "strip", z.ZodTypeAny, {
1509
+ code: string;
1510
+ message: string;
1511
+ details?: any;
1512
+ }, {
1513
+ code: string;
1514
+ message: string;
1515
+ details?: any;
1516
+ }>>;
1517
+ meta: z.ZodOptional<z.ZodObject<{
1518
+ timestamp: z.ZodString;
1519
+ duration: z.ZodOptional<z.ZodNumber>;
1520
+ requestId: z.ZodOptional<z.ZodString>;
1521
+ traceId: z.ZodOptional<z.ZodString>;
1522
+ }, "strip", z.ZodTypeAny, {
1523
+ timestamp: string;
1524
+ duration?: number | undefined;
1525
+ requestId?: string | undefined;
1526
+ traceId?: string | undefined;
1527
+ }, {
1528
+ timestamp: string;
1529
+ duration?: number | undefined;
1530
+ requestId?: string | undefined;
1531
+ traceId?: string | undefined;
1532
+ }>>;
1533
+ } & {
1534
+ data: z.ZodArray<z.ZodObject<{
1535
+ id: z.ZodOptional<z.ZodString>;
1536
+ success: z.ZodBoolean;
1537
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1538
+ code: z.ZodString;
1539
+ message: z.ZodString;
1540
+ details: z.ZodOptional<z.ZodAny>;
1541
+ }, "strip", z.ZodTypeAny, {
1542
+ code: string;
1543
+ message: string;
1544
+ details?: any;
1545
+ }, {
1546
+ code: string;
1547
+ message: string;
1548
+ details?: any;
1549
+ }>, "many">>;
1550
+ }, "strip", z.ZodTypeAny, {
1551
+ success: boolean;
1552
+ id?: string | undefined;
1553
+ errors?: {
1554
+ code: string;
1555
+ message: string;
1556
+ details?: any;
1557
+ }[] | undefined;
1558
+ }, {
1559
+ success: boolean;
1560
+ id?: string | undefined;
1561
+ errors?: {
1562
+ code: string;
1563
+ message: string;
1564
+ details?: any;
1565
+ }[] | undefined;
1566
+ }>, "many">;
1567
+ }, "strip", z.ZodTypeAny, {
1568
+ success: boolean;
1569
+ data: {
1570
+ success: boolean;
1571
+ id?: string | undefined;
1572
+ errors?: {
1573
+ code: string;
1574
+ message: string;
1575
+ details?: any;
1576
+ }[] | undefined;
1577
+ }[];
1578
+ error?: {
1579
+ code: string;
1580
+ message: string;
1581
+ details?: any;
1582
+ } | undefined;
1583
+ meta?: {
1584
+ timestamp: string;
1585
+ duration?: number | undefined;
1586
+ requestId?: string | undefined;
1587
+ traceId?: string | undefined;
1588
+ } | undefined;
1589
+ }, {
1590
+ success: boolean;
1591
+ data: {
1592
+ success: boolean;
1593
+ id?: string | undefined;
1594
+ errors?: {
1595
+ code: string;
1596
+ message: string;
1597
+ details?: any;
1598
+ }[] | undefined;
1599
+ }[];
1600
+ error?: {
1601
+ code: string;
1602
+ message: string;
1603
+ details?: any;
1604
+ } | undefined;
1605
+ meta?: {
1606
+ timestamp: string;
1607
+ duration?: number | undefined;
1608
+ requestId?: string | undefined;
1609
+ traceId?: string | undefined;
1610
+ } | undefined;
1611
+ }>;
1612
+ };
1613
+ bulkDelete: {
1614
+ input: z.ZodObject<{
1615
+ ids: z.ZodArray<z.ZodString, "many">;
1616
+ }, "strip", z.ZodTypeAny, {
1617
+ ids: string[];
1618
+ }, {
1619
+ ids: string[];
1620
+ }>;
1621
+ output: z.ZodObject<{
1622
+ success: z.ZodBoolean;
1623
+ error: z.ZodOptional<z.ZodObject<{
1624
+ code: z.ZodString;
1625
+ message: z.ZodString;
1626
+ details: z.ZodOptional<z.ZodAny>;
1627
+ }, "strip", z.ZodTypeAny, {
1628
+ code: string;
1629
+ message: string;
1630
+ details?: any;
1631
+ }, {
1632
+ code: string;
1633
+ message: string;
1634
+ details?: any;
1635
+ }>>;
1636
+ meta: z.ZodOptional<z.ZodObject<{
1637
+ timestamp: z.ZodString;
1638
+ duration: z.ZodOptional<z.ZodNumber>;
1639
+ requestId: z.ZodOptional<z.ZodString>;
1640
+ traceId: z.ZodOptional<z.ZodString>;
1641
+ }, "strip", z.ZodTypeAny, {
1642
+ timestamp: string;
1643
+ duration?: number | undefined;
1644
+ requestId?: string | undefined;
1645
+ traceId?: string | undefined;
1646
+ }, {
1647
+ timestamp: string;
1648
+ duration?: number | undefined;
1649
+ requestId?: string | undefined;
1650
+ traceId?: string | undefined;
1651
+ }>>;
1652
+ } & {
1653
+ data: z.ZodArray<z.ZodObject<{
1654
+ id: z.ZodOptional<z.ZodString>;
1655
+ success: z.ZodBoolean;
1656
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1657
+ code: z.ZodString;
1658
+ message: z.ZodString;
1659
+ details: z.ZodOptional<z.ZodAny>;
1660
+ }, "strip", z.ZodTypeAny, {
1661
+ code: string;
1662
+ message: string;
1663
+ details?: any;
1664
+ }, {
1665
+ code: string;
1666
+ message: string;
1667
+ details?: any;
1668
+ }>, "many">>;
1669
+ }, "strip", z.ZodTypeAny, {
1670
+ success: boolean;
1671
+ id?: string | undefined;
1672
+ errors?: {
1673
+ code: string;
1674
+ message: string;
1675
+ details?: any;
1676
+ }[] | undefined;
1677
+ }, {
1678
+ success: boolean;
1679
+ id?: string | undefined;
1680
+ errors?: {
1681
+ code: string;
1682
+ message: string;
1683
+ details?: any;
1684
+ }[] | undefined;
1685
+ }>, "many">;
1686
+ }, "strip", z.ZodTypeAny, {
1687
+ success: boolean;
1688
+ data: {
1689
+ success: boolean;
1690
+ id?: string | undefined;
1691
+ errors?: {
1692
+ code: string;
1693
+ message: string;
1694
+ details?: any;
1695
+ }[] | undefined;
1696
+ }[];
1697
+ error?: {
1698
+ code: string;
1699
+ message: string;
1700
+ details?: any;
1701
+ } | undefined;
1702
+ meta?: {
1703
+ timestamp: string;
1704
+ duration?: number | undefined;
1705
+ requestId?: string | undefined;
1706
+ traceId?: string | undefined;
1707
+ } | undefined;
1708
+ }, {
1709
+ success: boolean;
1710
+ data: {
1711
+ success: boolean;
1712
+ id?: string | undefined;
1713
+ errors?: {
1714
+ code: string;
1715
+ message: string;
1716
+ details?: any;
1717
+ }[] | undefined;
1718
+ }[];
1719
+ error?: {
1720
+ code: string;
1721
+ message: string;
1722
+ details?: any;
1723
+ } | undefined;
1724
+ meta?: {
1725
+ timestamp: string;
1726
+ duration?: number | undefined;
1727
+ requestId?: string | undefined;
1728
+ traceId?: string | undefined;
1729
+ } | undefined;
1730
+ }>;
1731
+ };
1732
+ };
1733
+ //# sourceMappingURL=contract.zod.d.ts.map