@yejiming/dsh-data-agent 0.0.13 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/README.en.md +46 -8
  2. package/README.md +46 -8
  3. package/conformance/dsh-ecosystem/inventory.json +26 -3
  4. package/conformance/dsh-ecosystem/restrictions.json +2 -2
  5. package/cordis.patch.yml +6 -3
  6. package/dsh-plugin.json +9 -4
  7. package/lib/catalog-DEJqOXRo.js +1944 -0
  8. package/lib/catalog-identity-CVftmvQL.js +96 -0
  9. package/lib/client.js +2214 -106
  10. package/lib/client.js.map +1 -1
  11. package/lib/command-CzzSPmag.js +1719 -0
  12. package/lib/command.js +2 -2
  13. package/lib/{connections-CHY4uB6z.js → connections-CFXOZTHZ.js} +223 -9
  14. package/lib/index.js +366 -16
  15. package/lib/routes.js +257 -4
  16. package/lib/{tool-ZTOS4B33.js → tool-DNkywSph.js} +364 -3
  17. package/lib/tool.js +1 -1
  18. package/lib/types/catalog-adapters.d.ts +52 -0
  19. package/lib/types/catalog-ai.d.ts +49 -0
  20. package/lib/types/catalog-command.d.ts +28 -0
  21. package/lib/types/catalog-identity.d.ts +23 -0
  22. package/lib/types/catalog-storage.d.ts +265 -0
  23. package/lib/types/catalog-tools.d.ts +5 -0
  24. package/lib/types/catalog-tui.d.ts +18 -0
  25. package/lib/types/catalog-types.d.ts +1376 -0
  26. package/lib/types/catalog.d.ts +59 -0
  27. package/lib/types/client/CatalogPanel.d.ts +15 -0
  28. package/lib/types/client/catalog-client.d.ts +57 -0
  29. package/lib/types/client/locales.d.ts +242 -0
  30. package/lib/types/command.d.ts +14 -3
  31. package/lib/types/connections.d.ts +9 -0
  32. package/lib/types/defaults.d.ts +22 -0
  33. package/lib/types/index.d.ts +42 -5
  34. package/lib/types/tui-connection-form.d.ts +11 -5
  35. package/package.json +4 -2
  36. package/preset/data-agent/agent.cordis.yml +9 -1
  37. package/lib/command-utC5MHd9.js +0 -916
  38. package/lib/defaults-Cngd8Tf8.js +0 -131
@@ -0,0 +1,1376 @@
1
+ /**
2
+ * Surface-neutral Catalog contracts. This module contains no Node or browser
3
+ * runtime dependencies beyond Zod and can therefore be imported type-only by
4
+ * the Web bundle.
5
+ * @module @yejiming/dsh-data-agent/catalog-types
6
+ */
7
+ import { z } from 'zod';
8
+ export declare const catalogDateTimeSchema: z.ZodISODateTime;
9
+ export declare const CATALOG_RUN_STATUSES: readonly ["queued", "running", "applying", "succeeded", "failed", "cancelled", "interrupted"];
10
+ export declare const catalogRunStatusSchema: z.ZodEnum<{
11
+ running: "running";
12
+ interrupted: "interrupted";
13
+ queued: "queued";
14
+ applying: "applying";
15
+ succeeded: "succeeded";
16
+ failed: "failed";
17
+ cancelled: "cancelled";
18
+ }>;
19
+ export type CatalogRunStatus = z.infer<typeof catalogRunStatusSchema>;
20
+ export declare const CATALOG_ASSET_STATUSES: readonly ["observed", "missing", "unavailable"];
21
+ export declare const catalogAssetStatusSchema: z.ZodEnum<{
22
+ observed: "observed";
23
+ missing: "missing";
24
+ unavailable: "unavailable";
25
+ }>;
26
+ export type CatalogAssetStatus = z.infer<typeof catalogAssetStatusSchema>;
27
+ export declare const CATALOG_ASSET_KINDS: readonly ["schema", "table", "view", "column", "primary_key", "foreign_key", "index"];
28
+ export declare const catalogAssetKindSchema: z.ZodEnum<{
29
+ table: "table";
30
+ view: "view";
31
+ schema: "schema";
32
+ column: "column";
33
+ primary_key: "primary_key";
34
+ foreign_key: "foreign_key";
35
+ index: "index";
36
+ }>;
37
+ export type CatalogAssetKind = z.infer<typeof catalogAssetKindSchema>;
38
+ export declare const CATALOG_ENRICHMENT_STATUSES: readonly ["queued", "running", "succeeded", "partial", "failed", "cancelled"];
39
+ export declare const catalogEnrichmentStatusSchema: z.ZodEnum<{
40
+ running: "running";
41
+ queued: "queued";
42
+ succeeded: "succeeded";
43
+ failed: "failed";
44
+ cancelled: "cancelled";
45
+ partial: "partial";
46
+ }>;
47
+ export type CatalogEnrichmentStatus = z.infer<typeof catalogEnrichmentStatusSchema>;
48
+ export declare const CATALOG_SEMANTIC_KINDS: readonly ["meaning", "term", "metric"];
49
+ export declare const catalogSemanticKindSchema: z.ZodEnum<{
50
+ term: "term";
51
+ metric: "metric";
52
+ meaning: "meaning";
53
+ }>;
54
+ export type CatalogSemanticKind = z.infer<typeof catalogSemanticKindSchema>;
55
+ export declare const CATALOG_SEMANTIC_STATUSES: readonly ["inferred", "verified", "needs_review", "retired"];
56
+ export declare const catalogSemanticStatusSchema: z.ZodEnum<{
57
+ inferred: "inferred";
58
+ verified: "verified";
59
+ needs_review: "needs_review";
60
+ retired: "retired";
61
+ }>;
62
+ export type CatalogSemanticStatus = z.infer<typeof catalogSemanticStatusSchema>;
63
+ export declare const CATALOG_DIFF_KINDS: readonly ["added", "changed", "missing", "restored", "unavailable"];
64
+ export declare const catalogDiffKindSchema: z.ZodEnum<{
65
+ missing: "missing";
66
+ unavailable: "unavailable";
67
+ added: "added";
68
+ changed: "changed";
69
+ restored: "restored";
70
+ }>;
71
+ export type CatalogDiffKind = z.infer<typeof catalogDiffKindSchema>;
72
+ export declare const catalogScopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
73
+ kind: z.ZodLiteral<"source">;
74
+ }, z.core.$strict>, z.ZodObject<{
75
+ kind: z.ZodLiteral<"schema">;
76
+ schema: z.ZodString;
77
+ }, z.core.$strict>, z.ZodObject<{
78
+ kind: z.ZodLiteral<"table">;
79
+ schema: z.ZodString;
80
+ table: z.ZodString;
81
+ }, z.core.$strict>], "kind">;
82
+ export type CatalogScope = z.infer<typeof catalogScopeSchema>;
83
+ export declare const catalogSourceSchema: z.ZodObject<{
84
+ id: z.ZodString;
85
+ profileId: z.ZodString;
86
+ type: z.ZodEnum<{
87
+ mysql: "mysql";
88
+ postgres: "postgres";
89
+ sqlite: "sqlite";
90
+ oracle: "oracle";
91
+ hive: "hive";
92
+ impala: "impala";
93
+ clickhouse: "clickhouse";
94
+ doris: "doris";
95
+ sqlserver: "sqlserver";
96
+ }>;
97
+ name: z.ZodString;
98
+ host: z.ZodOptional<z.ZodString>;
99
+ database: z.ZodString;
100
+ credentialConfigured: z.ZodBoolean;
101
+ createdAt: z.ZodISODateTime;
102
+ updatedAt: z.ZodISODateTime;
103
+ lastFullScanAt: z.ZodOptional<z.ZodISODateTime>;
104
+ lastPartialScanAt: z.ZodOptional<z.ZodISODateTime>;
105
+ }, z.core.$strict>;
106
+ export type CatalogSource = z.infer<typeof catalogSourceSchema>;
107
+ export declare const catalogProgressSchema: z.ZodObject<{
108
+ schemas: z.ZodNumber;
109
+ relations: z.ZodNumber;
110
+ fields: z.ZodNumber;
111
+ assets: z.ZodNumber;
112
+ }, z.core.$strict>;
113
+ export type CatalogProgress = z.infer<typeof catalogProgressSchema>;
114
+ export declare const catalogEnrichmentSchema: z.ZodObject<{
115
+ status: z.ZodEnum<{
116
+ running: "running";
117
+ queued: "queued";
118
+ succeeded: "succeeded";
119
+ failed: "failed";
120
+ cancelled: "cancelled";
121
+ partial: "partial";
122
+ }>;
123
+ provider: z.ZodString;
124
+ model: z.ZodString;
125
+ reasoningEffort: z.ZodOptional<z.ZodString>;
126
+ tablesTotal: z.ZodNumber;
127
+ tablesCompleted: z.ZodNumber;
128
+ tablesFailed: z.ZodNumber;
129
+ candidatesGenerated: z.ZodNumber;
130
+ startedAt: z.ZodOptional<z.ZodISODateTime>;
131
+ completedAt: z.ZodOptional<z.ZodISODateTime>;
132
+ error: z.ZodOptional<z.ZodString>;
133
+ }, z.core.$strict>;
134
+ export type CatalogEnrichment = z.infer<typeof catalogEnrichmentSchema>;
135
+ export declare const catalogRunSchema: z.ZodObject<{
136
+ id: z.ZodString;
137
+ sourceId: z.ZodString;
138
+ sessionId: z.ZodString;
139
+ scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
140
+ kind: z.ZodLiteral<"source">;
141
+ }, z.core.$strict>, z.ZodObject<{
142
+ kind: z.ZodLiteral<"schema">;
143
+ schema: z.ZodString;
144
+ }, z.core.$strict>, z.ZodObject<{
145
+ kind: z.ZodLiteral<"table">;
146
+ schema: z.ZodString;
147
+ table: z.ZodString;
148
+ }, z.core.$strict>], "kind">;
149
+ status: z.ZodEnum<{
150
+ running: "running";
151
+ interrupted: "interrupted";
152
+ queued: "queued";
153
+ applying: "applying";
154
+ succeeded: "succeeded";
155
+ failed: "failed";
156
+ cancelled: "cancelled";
157
+ }>;
158
+ coverageComplete: z.ZodBoolean;
159
+ progress: z.ZodObject<{
160
+ schemas: z.ZodNumber;
161
+ relations: z.ZodNumber;
162
+ fields: z.ZodNumber;
163
+ assets: z.ZodNumber;
164
+ }, z.core.$strict>;
165
+ createdAt: z.ZodISODateTime;
166
+ startedAt: z.ZodOptional<z.ZodISODateTime>;
167
+ completedAt: z.ZodOptional<z.ZodISODateTime>;
168
+ error: z.ZodOptional<z.ZodString>;
169
+ enrichment: z.ZodOptional<z.ZodObject<{
170
+ status: z.ZodEnum<{
171
+ running: "running";
172
+ queued: "queued";
173
+ succeeded: "succeeded";
174
+ failed: "failed";
175
+ cancelled: "cancelled";
176
+ partial: "partial";
177
+ }>;
178
+ provider: z.ZodString;
179
+ model: z.ZodString;
180
+ reasoningEffort: z.ZodOptional<z.ZodString>;
181
+ tablesTotal: z.ZodNumber;
182
+ tablesCompleted: z.ZodNumber;
183
+ tablesFailed: z.ZodNumber;
184
+ candidatesGenerated: z.ZodNumber;
185
+ startedAt: z.ZodOptional<z.ZodISODateTime>;
186
+ completedAt: z.ZodOptional<z.ZodISODateTime>;
187
+ error: z.ZodOptional<z.ZodString>;
188
+ }, z.core.$strict>>;
189
+ }, z.core.$strict>;
190
+ export type CatalogRun = z.infer<typeof catalogRunSchema>;
191
+ export declare const startCatalogScanInputSchema: z.ZodObject<{
192
+ sessionId: z.ZodString;
193
+ scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
194
+ kind: z.ZodLiteral<"source">;
195
+ }, z.core.$strict>, z.ZodObject<{
196
+ kind: z.ZodLiteral<"schema">;
197
+ schema: z.ZodString;
198
+ }, z.core.$strict>, z.ZodObject<{
199
+ kind: z.ZodLiteral<"table">;
200
+ schema: z.ZodString;
201
+ table: z.ZodString;
202
+ }, z.core.$strict>], "kind">;
203
+ }, z.core.$strict>;
204
+ export type StartCatalogScanInput = z.infer<typeof startCatalogScanInputSchema>;
205
+ export declare const catalogStatusSummarySchema: z.ZodObject<{
206
+ source: z.ZodObject<{
207
+ id: z.ZodString;
208
+ profileId: z.ZodString;
209
+ type: z.ZodEnum<{
210
+ mysql: "mysql";
211
+ postgres: "postgres";
212
+ sqlite: "sqlite";
213
+ oracle: "oracle";
214
+ hive: "hive";
215
+ impala: "impala";
216
+ clickhouse: "clickhouse";
217
+ doris: "doris";
218
+ sqlserver: "sqlserver";
219
+ }>;
220
+ name: z.ZodString;
221
+ host: z.ZodOptional<z.ZodString>;
222
+ database: z.ZodString;
223
+ credentialConfigured: z.ZodBoolean;
224
+ createdAt: z.ZodISODateTime;
225
+ updatedAt: z.ZodISODateTime;
226
+ lastFullScanAt: z.ZodOptional<z.ZodISODateTime>;
227
+ lastPartialScanAt: z.ZodOptional<z.ZodISODateTime>;
228
+ }, z.core.$strict>;
229
+ activeRun: z.ZodOptional<z.ZodObject<{
230
+ id: z.ZodString;
231
+ sourceId: z.ZodString;
232
+ sessionId: z.ZodString;
233
+ scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
234
+ kind: z.ZodLiteral<"source">;
235
+ }, z.core.$strict>, z.ZodObject<{
236
+ kind: z.ZodLiteral<"schema">;
237
+ schema: z.ZodString;
238
+ }, z.core.$strict>, z.ZodObject<{
239
+ kind: z.ZodLiteral<"table">;
240
+ schema: z.ZodString;
241
+ table: z.ZodString;
242
+ }, z.core.$strict>], "kind">;
243
+ status: z.ZodEnum<{
244
+ running: "running";
245
+ interrupted: "interrupted";
246
+ queued: "queued";
247
+ applying: "applying";
248
+ succeeded: "succeeded";
249
+ failed: "failed";
250
+ cancelled: "cancelled";
251
+ }>;
252
+ coverageComplete: z.ZodBoolean;
253
+ progress: z.ZodObject<{
254
+ schemas: z.ZodNumber;
255
+ relations: z.ZodNumber;
256
+ fields: z.ZodNumber;
257
+ assets: z.ZodNumber;
258
+ }, z.core.$strict>;
259
+ createdAt: z.ZodISODateTime;
260
+ startedAt: z.ZodOptional<z.ZodISODateTime>;
261
+ completedAt: z.ZodOptional<z.ZodISODateTime>;
262
+ error: z.ZodOptional<z.ZodString>;
263
+ enrichment: z.ZodOptional<z.ZodObject<{
264
+ status: z.ZodEnum<{
265
+ running: "running";
266
+ queued: "queued";
267
+ succeeded: "succeeded";
268
+ failed: "failed";
269
+ cancelled: "cancelled";
270
+ partial: "partial";
271
+ }>;
272
+ provider: z.ZodString;
273
+ model: z.ZodString;
274
+ reasoningEffort: z.ZodOptional<z.ZodString>;
275
+ tablesTotal: z.ZodNumber;
276
+ tablesCompleted: z.ZodNumber;
277
+ tablesFailed: z.ZodNumber;
278
+ candidatesGenerated: z.ZodNumber;
279
+ startedAt: z.ZodOptional<z.ZodISODateTime>;
280
+ completedAt: z.ZodOptional<z.ZodISODateTime>;
281
+ error: z.ZodOptional<z.ZodString>;
282
+ }, z.core.$strict>>;
283
+ }, z.core.$strict>>;
284
+ latestRun: z.ZodOptional<z.ZodObject<{
285
+ id: z.ZodString;
286
+ sourceId: z.ZodString;
287
+ sessionId: z.ZodString;
288
+ scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
289
+ kind: z.ZodLiteral<"source">;
290
+ }, z.core.$strict>, z.ZodObject<{
291
+ kind: z.ZodLiteral<"schema">;
292
+ schema: z.ZodString;
293
+ }, z.core.$strict>, z.ZodObject<{
294
+ kind: z.ZodLiteral<"table">;
295
+ schema: z.ZodString;
296
+ table: z.ZodString;
297
+ }, z.core.$strict>], "kind">;
298
+ status: z.ZodEnum<{
299
+ running: "running";
300
+ interrupted: "interrupted";
301
+ queued: "queued";
302
+ applying: "applying";
303
+ succeeded: "succeeded";
304
+ failed: "failed";
305
+ cancelled: "cancelled";
306
+ }>;
307
+ coverageComplete: z.ZodBoolean;
308
+ progress: z.ZodObject<{
309
+ schemas: z.ZodNumber;
310
+ relations: z.ZodNumber;
311
+ fields: z.ZodNumber;
312
+ assets: z.ZodNumber;
313
+ }, z.core.$strict>;
314
+ createdAt: z.ZodISODateTime;
315
+ startedAt: z.ZodOptional<z.ZodISODateTime>;
316
+ completedAt: z.ZodOptional<z.ZodISODateTime>;
317
+ error: z.ZodOptional<z.ZodString>;
318
+ enrichment: z.ZodOptional<z.ZodObject<{
319
+ status: z.ZodEnum<{
320
+ running: "running";
321
+ queued: "queued";
322
+ succeeded: "succeeded";
323
+ failed: "failed";
324
+ cancelled: "cancelled";
325
+ partial: "partial";
326
+ }>;
327
+ provider: z.ZodString;
328
+ model: z.ZodString;
329
+ reasoningEffort: z.ZodOptional<z.ZodString>;
330
+ tablesTotal: z.ZodNumber;
331
+ tablesCompleted: z.ZodNumber;
332
+ tablesFailed: z.ZodNumber;
333
+ candidatesGenerated: z.ZodNumber;
334
+ startedAt: z.ZodOptional<z.ZodISODateTime>;
335
+ completedAt: z.ZodOptional<z.ZodISODateTime>;
336
+ error: z.ZodOptional<z.ZodString>;
337
+ }, z.core.$strict>>;
338
+ }, z.core.$strict>>;
339
+ latestSuccessfulRun: z.ZodOptional<z.ZodObject<{
340
+ id: z.ZodString;
341
+ sourceId: z.ZodString;
342
+ sessionId: z.ZodString;
343
+ scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
344
+ kind: z.ZodLiteral<"source">;
345
+ }, z.core.$strict>, z.ZodObject<{
346
+ kind: z.ZodLiteral<"schema">;
347
+ schema: z.ZodString;
348
+ }, z.core.$strict>, z.ZodObject<{
349
+ kind: z.ZodLiteral<"table">;
350
+ schema: z.ZodString;
351
+ table: z.ZodString;
352
+ }, z.core.$strict>], "kind">;
353
+ status: z.ZodEnum<{
354
+ running: "running";
355
+ interrupted: "interrupted";
356
+ queued: "queued";
357
+ applying: "applying";
358
+ succeeded: "succeeded";
359
+ failed: "failed";
360
+ cancelled: "cancelled";
361
+ }>;
362
+ coverageComplete: z.ZodBoolean;
363
+ progress: z.ZodObject<{
364
+ schemas: z.ZodNumber;
365
+ relations: z.ZodNumber;
366
+ fields: z.ZodNumber;
367
+ assets: z.ZodNumber;
368
+ }, z.core.$strict>;
369
+ createdAt: z.ZodISODateTime;
370
+ startedAt: z.ZodOptional<z.ZodISODateTime>;
371
+ completedAt: z.ZodOptional<z.ZodISODateTime>;
372
+ error: z.ZodOptional<z.ZodString>;
373
+ enrichment: z.ZodOptional<z.ZodObject<{
374
+ status: z.ZodEnum<{
375
+ running: "running";
376
+ queued: "queued";
377
+ succeeded: "succeeded";
378
+ failed: "failed";
379
+ cancelled: "cancelled";
380
+ partial: "partial";
381
+ }>;
382
+ provider: z.ZodString;
383
+ model: z.ZodString;
384
+ reasoningEffort: z.ZodOptional<z.ZodString>;
385
+ tablesTotal: z.ZodNumber;
386
+ tablesCompleted: z.ZodNumber;
387
+ tablesFailed: z.ZodNumber;
388
+ candidatesGenerated: z.ZodNumber;
389
+ startedAt: z.ZodOptional<z.ZodISODateTime>;
390
+ completedAt: z.ZodOptional<z.ZodISODateTime>;
391
+ error: z.ZodOptional<z.ZodString>;
392
+ }, z.core.$strict>>;
393
+ }, z.core.$strict>>;
394
+ counts: z.ZodObject<{
395
+ assets: z.ZodNumber;
396
+ fields: z.ZodNumber;
397
+ needsReview: z.ZodNumber;
398
+ }, z.core.$strict>;
399
+ }, z.core.$strict>;
400
+ export type CatalogStatusSummary = z.infer<typeof catalogStatusSummarySchema>;
401
+ export declare const catalogIdentitySchema: z.ZodObject<{
402
+ sourceId: z.ZodString;
403
+ database: z.ZodString;
404
+ schema: z.ZodString;
405
+ kind: z.ZodEnum<{
406
+ table: "table";
407
+ view: "view";
408
+ schema: "schema";
409
+ column: "column";
410
+ primary_key: "primary_key";
411
+ foreign_key: "foreign_key";
412
+ index: "index";
413
+ }>;
414
+ relation: z.ZodOptional<z.ZodString>;
415
+ name: z.ZodString;
416
+ }, z.core.$strict>;
417
+ export type CatalogIdentity = z.infer<typeof catalogIdentitySchema>;
418
+ export declare const catalogCapabilitySchema: z.ZodEnum<{
419
+ unavailable: "unavailable";
420
+ supported: "supported";
421
+ unsupported: "unsupported";
422
+ }>;
423
+ export type CatalogCapability = z.infer<typeof catalogCapabilitySchema>;
424
+ export declare const catalogTechnicalPayloadSchema: z.ZodObject<{
425
+ identity: z.ZodObject<{
426
+ sourceId: z.ZodString;
427
+ database: z.ZodString;
428
+ schema: z.ZodString;
429
+ kind: z.ZodEnum<{
430
+ table: "table";
431
+ view: "view";
432
+ schema: "schema";
433
+ column: "column";
434
+ primary_key: "primary_key";
435
+ foreign_key: "foreign_key";
436
+ index: "index";
437
+ }>;
438
+ relation: z.ZodOptional<z.ZodString>;
439
+ name: z.ZodString;
440
+ }, z.core.$strict>;
441
+ name: z.ZodString;
442
+ path: z.ZodString;
443
+ parentId: z.ZodOptional<z.ZodString>;
444
+ objectType: z.ZodOptional<z.ZodEnum<{
445
+ table: "table";
446
+ view: "view";
447
+ }>>;
448
+ dataType: z.ZodOptional<z.ZodString>;
449
+ nullable: z.ZodOptional<z.ZodBoolean>;
450
+ ordinal: z.ZodOptional<z.ZodNumber>;
451
+ comment: z.ZodOptional<z.ZodString>;
452
+ referencedAssetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
453
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
454
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
455
+ unavailable: "unavailable";
456
+ supported: "supported";
457
+ unsupported: "unsupported";
458
+ }>>>;
459
+ truncatedFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
460
+ provenance: z.ZodObject<{
461
+ source: z.ZodLiteral<"database">;
462
+ dialect: z.ZodEnum<{
463
+ mysql: "mysql";
464
+ postgres: "postgres";
465
+ sqlite: "sqlite";
466
+ oracle: "oracle";
467
+ hive: "hive";
468
+ impala: "impala";
469
+ clickhouse: "clickhouse";
470
+ doris: "doris";
471
+ sqlserver: "sqlserver";
472
+ }>;
473
+ runId: z.ZodString;
474
+ }, z.core.$strict>;
475
+ }, z.core.$strict>;
476
+ export type CatalogTechnicalPayload = z.infer<typeof catalogTechnicalPayloadSchema>;
477
+ export declare const catalogObservationSchema: z.ZodObject<{
478
+ runId: z.ZodString;
479
+ sourceId: z.ZodString;
480
+ assetId: z.ZodString;
481
+ status: z.ZodEnum<{
482
+ observed: "observed";
483
+ missing: "missing";
484
+ unavailable: "unavailable";
485
+ }>;
486
+ fingerprint: z.ZodString;
487
+ observedAt: z.ZodISODateTime;
488
+ payload: z.ZodObject<{
489
+ identity: z.ZodObject<{
490
+ sourceId: z.ZodString;
491
+ database: z.ZodString;
492
+ schema: z.ZodString;
493
+ kind: z.ZodEnum<{
494
+ table: "table";
495
+ view: "view";
496
+ schema: "schema";
497
+ column: "column";
498
+ primary_key: "primary_key";
499
+ foreign_key: "foreign_key";
500
+ index: "index";
501
+ }>;
502
+ relation: z.ZodOptional<z.ZodString>;
503
+ name: z.ZodString;
504
+ }, z.core.$strict>;
505
+ name: z.ZodString;
506
+ path: z.ZodString;
507
+ parentId: z.ZodOptional<z.ZodString>;
508
+ objectType: z.ZodOptional<z.ZodEnum<{
509
+ table: "table";
510
+ view: "view";
511
+ }>>;
512
+ dataType: z.ZodOptional<z.ZodString>;
513
+ nullable: z.ZodOptional<z.ZodBoolean>;
514
+ ordinal: z.ZodOptional<z.ZodNumber>;
515
+ comment: z.ZodOptional<z.ZodString>;
516
+ referencedAssetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
517
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
518
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
519
+ unavailable: "unavailable";
520
+ supported: "supported";
521
+ unsupported: "unsupported";
522
+ }>>>;
523
+ truncatedFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
524
+ provenance: z.ZodObject<{
525
+ source: z.ZodLiteral<"database">;
526
+ dialect: z.ZodEnum<{
527
+ mysql: "mysql";
528
+ postgres: "postgres";
529
+ sqlite: "sqlite";
530
+ oracle: "oracle";
531
+ hive: "hive";
532
+ impala: "impala";
533
+ clickhouse: "clickhouse";
534
+ doris: "doris";
535
+ sqlserver: "sqlserver";
536
+ }>;
537
+ runId: z.ZodString;
538
+ }, z.core.$strict>;
539
+ }, z.core.$strict>;
540
+ }, z.core.$strict>;
541
+ export type CatalogObservation = z.infer<typeof catalogObservationSchema>;
542
+ export declare const catalogAssetRevisionSchema: z.ZodObject<{
543
+ id: z.ZodString;
544
+ assetId: z.ZodString;
545
+ sourceId: z.ZodString;
546
+ runId: z.ZodString;
547
+ revision: z.ZodNumber;
548
+ status: z.ZodEnum<{
549
+ observed: "observed";
550
+ missing: "missing";
551
+ unavailable: "unavailable";
552
+ }>;
553
+ fingerprint: z.ZodString;
554
+ observedAt: z.ZodISODateTime;
555
+ previousRevisionId: z.ZodOptional<z.ZodString>;
556
+ changeSummary: z.ZodArray<z.ZodString>;
557
+ payload: z.ZodObject<{
558
+ identity: z.ZodObject<{
559
+ sourceId: z.ZodString;
560
+ database: z.ZodString;
561
+ schema: z.ZodString;
562
+ kind: z.ZodEnum<{
563
+ table: "table";
564
+ view: "view";
565
+ schema: "schema";
566
+ column: "column";
567
+ primary_key: "primary_key";
568
+ foreign_key: "foreign_key";
569
+ index: "index";
570
+ }>;
571
+ relation: z.ZodOptional<z.ZodString>;
572
+ name: z.ZodString;
573
+ }, z.core.$strict>;
574
+ name: z.ZodString;
575
+ path: z.ZodString;
576
+ parentId: z.ZodOptional<z.ZodString>;
577
+ objectType: z.ZodOptional<z.ZodEnum<{
578
+ table: "table";
579
+ view: "view";
580
+ }>>;
581
+ dataType: z.ZodOptional<z.ZodString>;
582
+ nullable: z.ZodOptional<z.ZodBoolean>;
583
+ ordinal: z.ZodOptional<z.ZodNumber>;
584
+ comment: z.ZodOptional<z.ZodString>;
585
+ referencedAssetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
586
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
587
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
588
+ unavailable: "unavailable";
589
+ supported: "supported";
590
+ unsupported: "unsupported";
591
+ }>>>;
592
+ truncatedFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
593
+ provenance: z.ZodObject<{
594
+ source: z.ZodLiteral<"database">;
595
+ dialect: z.ZodEnum<{
596
+ mysql: "mysql";
597
+ postgres: "postgres";
598
+ sqlite: "sqlite";
599
+ oracle: "oracle";
600
+ hive: "hive";
601
+ impala: "impala";
602
+ clickhouse: "clickhouse";
603
+ doris: "doris";
604
+ sqlserver: "sqlserver";
605
+ }>;
606
+ runId: z.ZodString;
607
+ }, z.core.$strict>;
608
+ }, z.core.$strict>;
609
+ }, z.core.$strict>;
610
+ export type CatalogAssetRevision = z.infer<typeof catalogAssetRevisionSchema>;
611
+ export declare const catalogAssetHeadSchema: z.ZodObject<{
612
+ assetId: z.ZodString;
613
+ sourceId: z.ZodString;
614
+ revisionIds: z.ZodArray<z.ZodString>;
615
+ firstSeenAt: z.ZodISODateTime;
616
+ lastSeenAt: z.ZodISODateTime;
617
+ }, z.core.$strict>;
618
+ export type CatalogAssetHead = z.infer<typeof catalogAssetHeadSchema>;
619
+ export declare const catalogRelationSchema: z.ZodObject<{
620
+ id: z.ZodString;
621
+ sourceId: z.ZodString;
622
+ runId: z.ZodString;
623
+ kind: z.ZodEnum<{
624
+ primary_key: "primary_key";
625
+ foreign_key: "foreign_key";
626
+ index: "index";
627
+ parent: "parent";
628
+ }>;
629
+ fromAssetId: z.ZodString;
630
+ toAssetId: z.ZodOptional<z.ZodString>;
631
+ name: z.ZodOptional<z.ZodString>;
632
+ columnAssetIds: z.ZodArray<z.ZodString>;
633
+ referencedColumnAssetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
634
+ observedAt: z.ZodISODateTime;
635
+ }, z.core.$strict>;
636
+ export type CatalogRelation = z.infer<typeof catalogRelationSchema>;
637
+ export declare const termDefinitionSchema: z.ZodObject<{
638
+ name: z.ZodString;
639
+ aliases: z.ZodArray<z.ZodString>;
640
+ description: z.ZodString;
641
+ owner: z.ZodOptional<z.ZodString>;
642
+ sourceAssetIds: z.ZodArray<z.ZodString>;
643
+ status: z.ZodEnum<{
644
+ inferred: "inferred";
645
+ verified: "verified";
646
+ needs_review: "needs_review";
647
+ retired: "retired";
648
+ }>;
649
+ validFrom: z.ZodOptional<z.ZodISODateTime>;
650
+ validTo: z.ZodOptional<z.ZodISODateTime>;
651
+ revisionNote: z.ZodOptional<z.ZodString>;
652
+ verifiedAt: z.ZodOptional<z.ZodISODateTime>;
653
+ needsReviewReason: z.ZodOptional<z.ZodString>;
654
+ triggerRunId: z.ZodOptional<z.ZodString>;
655
+ kind: z.ZodLiteral<"term">;
656
+ }, z.core.$strict>;
657
+ export type TermDefinition = z.infer<typeof termDefinitionSchema>;
658
+ export declare const metricDefinitionSchema: z.ZodObject<{
659
+ formula: z.ZodString;
660
+ grain: z.ZodString;
661
+ timeFieldAssetId: z.ZodOptional<z.ZodString>;
662
+ filters: z.ZodArray<z.ZodString>;
663
+ exclusions: z.ZodArray<z.ZodString>;
664
+ name: z.ZodString;
665
+ aliases: z.ZodArray<z.ZodString>;
666
+ description: z.ZodString;
667
+ owner: z.ZodOptional<z.ZodString>;
668
+ sourceAssetIds: z.ZodArray<z.ZodString>;
669
+ status: z.ZodEnum<{
670
+ inferred: "inferred";
671
+ verified: "verified";
672
+ needs_review: "needs_review";
673
+ retired: "retired";
674
+ }>;
675
+ validFrom: z.ZodOptional<z.ZodISODateTime>;
676
+ validTo: z.ZodOptional<z.ZodISODateTime>;
677
+ revisionNote: z.ZodOptional<z.ZodString>;
678
+ verifiedAt: z.ZodOptional<z.ZodISODateTime>;
679
+ needsReviewReason: z.ZodOptional<z.ZodString>;
680
+ triggerRunId: z.ZodOptional<z.ZodString>;
681
+ kind: z.ZodLiteral<"metric">;
682
+ }, z.core.$strict>;
683
+ export type MetricDefinition = z.infer<typeof metricDefinitionSchema>;
684
+ export declare const meaningDefinitionSchema: z.ZodObject<{
685
+ targetAssetId: z.ZodString;
686
+ targetKind: z.ZodEnum<{
687
+ table: "table";
688
+ view: "view";
689
+ column: "column";
690
+ }>;
691
+ generatedBy: z.ZodObject<{
692
+ kind: z.ZodLiteral<"ai">;
693
+ provider: z.ZodString;
694
+ model: z.ZodString;
695
+ runId: z.ZodString;
696
+ }, z.core.$strict>;
697
+ name: z.ZodString;
698
+ aliases: z.ZodArray<z.ZodString>;
699
+ description: z.ZodString;
700
+ owner: z.ZodOptional<z.ZodString>;
701
+ sourceAssetIds: z.ZodArray<z.ZodString>;
702
+ status: z.ZodEnum<{
703
+ inferred: "inferred";
704
+ verified: "verified";
705
+ needs_review: "needs_review";
706
+ retired: "retired";
707
+ }>;
708
+ validFrom: z.ZodOptional<z.ZodISODateTime>;
709
+ validTo: z.ZodOptional<z.ZodISODateTime>;
710
+ revisionNote: z.ZodOptional<z.ZodString>;
711
+ verifiedAt: z.ZodOptional<z.ZodISODateTime>;
712
+ needsReviewReason: z.ZodOptional<z.ZodString>;
713
+ triggerRunId: z.ZodOptional<z.ZodString>;
714
+ kind: z.ZodLiteral<"meaning">;
715
+ }, z.core.$strict>;
716
+ export type MeaningDefinition = z.infer<typeof meaningDefinitionSchema>;
717
+ export declare const semanticDefinitionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
718
+ targetAssetId: z.ZodString;
719
+ targetKind: z.ZodEnum<{
720
+ table: "table";
721
+ view: "view";
722
+ column: "column";
723
+ }>;
724
+ generatedBy: z.ZodObject<{
725
+ kind: z.ZodLiteral<"ai">;
726
+ provider: z.ZodString;
727
+ model: z.ZodString;
728
+ runId: z.ZodString;
729
+ }, z.core.$strict>;
730
+ name: z.ZodString;
731
+ aliases: z.ZodArray<z.ZodString>;
732
+ description: z.ZodString;
733
+ owner: z.ZodOptional<z.ZodString>;
734
+ sourceAssetIds: z.ZodArray<z.ZodString>;
735
+ status: z.ZodEnum<{
736
+ inferred: "inferred";
737
+ verified: "verified";
738
+ needs_review: "needs_review";
739
+ retired: "retired";
740
+ }>;
741
+ validFrom: z.ZodOptional<z.ZodISODateTime>;
742
+ validTo: z.ZodOptional<z.ZodISODateTime>;
743
+ revisionNote: z.ZodOptional<z.ZodString>;
744
+ verifiedAt: z.ZodOptional<z.ZodISODateTime>;
745
+ needsReviewReason: z.ZodOptional<z.ZodString>;
746
+ triggerRunId: z.ZodOptional<z.ZodString>;
747
+ kind: z.ZodLiteral<"meaning">;
748
+ }, z.core.$strict>, z.ZodObject<{
749
+ name: z.ZodString;
750
+ aliases: z.ZodArray<z.ZodString>;
751
+ description: z.ZodString;
752
+ owner: z.ZodOptional<z.ZodString>;
753
+ sourceAssetIds: z.ZodArray<z.ZodString>;
754
+ status: z.ZodEnum<{
755
+ inferred: "inferred";
756
+ verified: "verified";
757
+ needs_review: "needs_review";
758
+ retired: "retired";
759
+ }>;
760
+ validFrom: z.ZodOptional<z.ZodISODateTime>;
761
+ validTo: z.ZodOptional<z.ZodISODateTime>;
762
+ revisionNote: z.ZodOptional<z.ZodString>;
763
+ verifiedAt: z.ZodOptional<z.ZodISODateTime>;
764
+ needsReviewReason: z.ZodOptional<z.ZodString>;
765
+ triggerRunId: z.ZodOptional<z.ZodString>;
766
+ kind: z.ZodLiteral<"term">;
767
+ }, z.core.$strict>, z.ZodObject<{
768
+ formula: z.ZodString;
769
+ grain: z.ZodString;
770
+ timeFieldAssetId: z.ZodOptional<z.ZodString>;
771
+ filters: z.ZodArray<z.ZodString>;
772
+ exclusions: z.ZodArray<z.ZodString>;
773
+ name: z.ZodString;
774
+ aliases: z.ZodArray<z.ZodString>;
775
+ description: z.ZodString;
776
+ owner: z.ZodOptional<z.ZodString>;
777
+ sourceAssetIds: z.ZodArray<z.ZodString>;
778
+ status: z.ZodEnum<{
779
+ inferred: "inferred";
780
+ verified: "verified";
781
+ needs_review: "needs_review";
782
+ retired: "retired";
783
+ }>;
784
+ validFrom: z.ZodOptional<z.ZodISODateTime>;
785
+ validTo: z.ZodOptional<z.ZodISODateTime>;
786
+ revisionNote: z.ZodOptional<z.ZodString>;
787
+ verifiedAt: z.ZodOptional<z.ZodISODateTime>;
788
+ needsReviewReason: z.ZodOptional<z.ZodString>;
789
+ triggerRunId: z.ZodOptional<z.ZodString>;
790
+ kind: z.ZodLiteral<"metric">;
791
+ }, z.core.$strict>], "kind">;
792
+ export type SemanticDefinition = z.infer<typeof semanticDefinitionSchema>;
793
+ export declare const catalogSemanticEntrySchema: z.ZodObject<{
794
+ id: z.ZodString;
795
+ sourceId: z.ZodString;
796
+ kind: z.ZodEnum<{
797
+ term: "term";
798
+ metric: "metric";
799
+ meaning: "meaning";
800
+ }>;
801
+ currentVersion: z.ZodNumber;
802
+ createdAt: z.ZodISODateTime;
803
+ updatedAt: z.ZodISODateTime;
804
+ }, z.core.$strict>;
805
+ export type CatalogSemanticEntry = z.infer<typeof catalogSemanticEntrySchema>;
806
+ export declare const catalogSemanticRevisionSchema: z.ZodObject<{
807
+ id: z.ZodString;
808
+ semanticId: z.ZodString;
809
+ sourceId: z.ZodString;
810
+ version: z.ZodNumber;
811
+ createdAt: z.ZodISODateTime;
812
+ definition: z.ZodDiscriminatedUnion<[z.ZodObject<{
813
+ targetAssetId: z.ZodString;
814
+ targetKind: z.ZodEnum<{
815
+ table: "table";
816
+ view: "view";
817
+ column: "column";
818
+ }>;
819
+ generatedBy: z.ZodObject<{
820
+ kind: z.ZodLiteral<"ai">;
821
+ provider: z.ZodString;
822
+ model: z.ZodString;
823
+ runId: z.ZodString;
824
+ }, z.core.$strict>;
825
+ name: z.ZodString;
826
+ aliases: z.ZodArray<z.ZodString>;
827
+ description: z.ZodString;
828
+ owner: z.ZodOptional<z.ZodString>;
829
+ sourceAssetIds: z.ZodArray<z.ZodString>;
830
+ status: z.ZodEnum<{
831
+ inferred: "inferred";
832
+ verified: "verified";
833
+ needs_review: "needs_review";
834
+ retired: "retired";
835
+ }>;
836
+ validFrom: z.ZodOptional<z.ZodISODateTime>;
837
+ validTo: z.ZodOptional<z.ZodISODateTime>;
838
+ revisionNote: z.ZodOptional<z.ZodString>;
839
+ verifiedAt: z.ZodOptional<z.ZodISODateTime>;
840
+ needsReviewReason: z.ZodOptional<z.ZodString>;
841
+ triggerRunId: z.ZodOptional<z.ZodString>;
842
+ kind: z.ZodLiteral<"meaning">;
843
+ }, z.core.$strict>, z.ZodObject<{
844
+ name: z.ZodString;
845
+ aliases: z.ZodArray<z.ZodString>;
846
+ description: z.ZodString;
847
+ owner: z.ZodOptional<z.ZodString>;
848
+ sourceAssetIds: z.ZodArray<z.ZodString>;
849
+ status: z.ZodEnum<{
850
+ inferred: "inferred";
851
+ verified: "verified";
852
+ needs_review: "needs_review";
853
+ retired: "retired";
854
+ }>;
855
+ validFrom: z.ZodOptional<z.ZodISODateTime>;
856
+ validTo: z.ZodOptional<z.ZodISODateTime>;
857
+ revisionNote: z.ZodOptional<z.ZodString>;
858
+ verifiedAt: z.ZodOptional<z.ZodISODateTime>;
859
+ needsReviewReason: z.ZodOptional<z.ZodString>;
860
+ triggerRunId: z.ZodOptional<z.ZodString>;
861
+ kind: z.ZodLiteral<"term">;
862
+ }, z.core.$strict>, z.ZodObject<{
863
+ formula: z.ZodString;
864
+ grain: z.ZodString;
865
+ timeFieldAssetId: z.ZodOptional<z.ZodString>;
866
+ filters: z.ZodArray<z.ZodString>;
867
+ exclusions: z.ZodArray<z.ZodString>;
868
+ name: z.ZodString;
869
+ aliases: z.ZodArray<z.ZodString>;
870
+ description: z.ZodString;
871
+ owner: z.ZodOptional<z.ZodString>;
872
+ sourceAssetIds: z.ZodArray<z.ZodString>;
873
+ status: z.ZodEnum<{
874
+ inferred: "inferred";
875
+ verified: "verified";
876
+ needs_review: "needs_review";
877
+ retired: "retired";
878
+ }>;
879
+ validFrom: z.ZodOptional<z.ZodISODateTime>;
880
+ validTo: z.ZodOptional<z.ZodISODateTime>;
881
+ revisionNote: z.ZodOptional<z.ZodString>;
882
+ verifiedAt: z.ZodOptional<z.ZodISODateTime>;
883
+ needsReviewReason: z.ZodOptional<z.ZodString>;
884
+ triggerRunId: z.ZodOptional<z.ZodString>;
885
+ kind: z.ZodLiteral<"metric">;
886
+ }, z.core.$strict>], "kind">;
887
+ }, z.core.$strict>;
888
+ export type CatalogSemanticRevision = z.infer<typeof catalogSemanticRevisionSchema>;
889
+ export declare const catalogSearchFiltersSchema: z.ZodObject<{
890
+ sourceId: z.ZodOptional<z.ZodString>;
891
+ schema: z.ZodOptional<z.ZodString>;
892
+ assetKinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
893
+ table: "table";
894
+ view: "view";
895
+ schema: "schema";
896
+ column: "column";
897
+ primary_key: "primary_key";
898
+ foreign_key: "foreign_key";
899
+ index: "index";
900
+ }>>>;
901
+ semanticKinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
902
+ term: "term";
903
+ metric: "metric";
904
+ meaning: "meaning";
905
+ }>>>;
906
+ assetStatuses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
907
+ observed: "observed";
908
+ missing: "missing";
909
+ unavailable: "unavailable";
910
+ }>>>;
911
+ semanticStatuses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
912
+ inferred: "inferred";
913
+ verified: "verified";
914
+ needs_review: "needs_review";
915
+ retired: "retired";
916
+ }>>>;
917
+ includeInferred: z.ZodDefault<z.ZodBoolean>;
918
+ }, z.core.$strict>;
919
+ export type CatalogSearchFilters = z.infer<typeof catalogSearchFiltersSchema>;
920
+ export declare const catalogSearchRequestSchema: z.ZodObject<{
921
+ query: z.ZodString;
922
+ filters: z.ZodDefault<z.ZodObject<{
923
+ sourceId: z.ZodOptional<z.ZodString>;
924
+ schema: z.ZodOptional<z.ZodString>;
925
+ assetKinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
926
+ table: "table";
927
+ view: "view";
928
+ schema: "schema";
929
+ column: "column";
930
+ primary_key: "primary_key";
931
+ foreign_key: "foreign_key";
932
+ index: "index";
933
+ }>>>;
934
+ semanticKinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
935
+ term: "term";
936
+ metric: "metric";
937
+ meaning: "meaning";
938
+ }>>>;
939
+ assetStatuses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
940
+ observed: "observed";
941
+ missing: "missing";
942
+ unavailable: "unavailable";
943
+ }>>>;
944
+ semanticStatuses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
945
+ inferred: "inferred";
946
+ verified: "verified";
947
+ needs_review: "needs_review";
948
+ retired: "retired";
949
+ }>>>;
950
+ includeInferred: z.ZodDefault<z.ZodBoolean>;
951
+ }, z.core.$strict>>;
952
+ cursor: z.ZodOptional<z.ZodString>;
953
+ pageSize: z.ZodDefault<z.ZodNumber>;
954
+ }, z.core.$strict>;
955
+ export type CatalogSearchRequest = z.infer<typeof catalogSearchRequestSchema>;
956
+ export declare const catalogSearchItemSchema: z.ZodObject<{
957
+ id: z.ZodString;
958
+ sourceId: z.ZodString;
959
+ resultType: z.ZodEnum<{
960
+ asset: "asset";
961
+ semantic: "semantic";
962
+ }>;
963
+ kind: z.ZodString;
964
+ name: z.ZodString;
965
+ path: z.ZodString;
966
+ summary: z.ZodString;
967
+ matchReasons: z.ZodArray<z.ZodString>;
968
+ status: z.ZodString;
969
+ version: z.ZodOptional<z.ZodNumber>;
970
+ provenance: z.ZodEnum<{
971
+ inferred: "inferred";
972
+ database: "database";
973
+ human: "human";
974
+ }>;
975
+ untrusted: z.ZodLiteral<true>;
976
+ }, z.core.$strict>;
977
+ export type CatalogSearchItem = z.infer<typeof catalogSearchItemSchema>;
978
+ export declare const catalogSearchPageSchema: z.ZodObject<{
979
+ sourceId: z.ZodString;
980
+ query: z.ZodString;
981
+ items: z.ZodArray<z.ZodObject<{
982
+ id: z.ZodString;
983
+ sourceId: z.ZodString;
984
+ resultType: z.ZodEnum<{
985
+ asset: "asset";
986
+ semantic: "semantic";
987
+ }>;
988
+ kind: z.ZodString;
989
+ name: z.ZodString;
990
+ path: z.ZodString;
991
+ summary: z.ZodString;
992
+ matchReasons: z.ZodArray<z.ZodString>;
993
+ status: z.ZodString;
994
+ version: z.ZodOptional<z.ZodNumber>;
995
+ provenance: z.ZodEnum<{
996
+ inferred: "inferred";
997
+ database: "database";
998
+ human: "human";
999
+ }>;
1000
+ untrusted: z.ZodLiteral<true>;
1001
+ }, z.core.$strict>>;
1002
+ nextCursor: z.ZodOptional<z.ZodString>;
1003
+ truncated: z.ZodBoolean;
1004
+ warnings: z.ZodArray<z.ZodString>;
1005
+ }, z.core.$strict>;
1006
+ export type CatalogSearchPage = z.infer<typeof catalogSearchPageSchema>;
1007
+ export declare const catalogAssetDetailSchema: z.ZodObject<{
1008
+ asset: z.ZodObject<{
1009
+ id: z.ZodString;
1010
+ assetId: z.ZodString;
1011
+ sourceId: z.ZodString;
1012
+ runId: z.ZodString;
1013
+ revision: z.ZodNumber;
1014
+ status: z.ZodEnum<{
1015
+ observed: "observed";
1016
+ missing: "missing";
1017
+ unavailable: "unavailable";
1018
+ }>;
1019
+ fingerprint: z.ZodString;
1020
+ observedAt: z.ZodISODateTime;
1021
+ previousRevisionId: z.ZodOptional<z.ZodString>;
1022
+ changeSummary: z.ZodArray<z.ZodString>;
1023
+ payload: z.ZodObject<{
1024
+ identity: z.ZodObject<{
1025
+ sourceId: z.ZodString;
1026
+ database: z.ZodString;
1027
+ schema: z.ZodString;
1028
+ kind: z.ZodEnum<{
1029
+ table: "table";
1030
+ view: "view";
1031
+ schema: "schema";
1032
+ column: "column";
1033
+ primary_key: "primary_key";
1034
+ foreign_key: "foreign_key";
1035
+ index: "index";
1036
+ }>;
1037
+ relation: z.ZodOptional<z.ZodString>;
1038
+ name: z.ZodString;
1039
+ }, z.core.$strict>;
1040
+ name: z.ZodString;
1041
+ path: z.ZodString;
1042
+ parentId: z.ZodOptional<z.ZodString>;
1043
+ objectType: z.ZodOptional<z.ZodEnum<{
1044
+ table: "table";
1045
+ view: "view";
1046
+ }>>;
1047
+ dataType: z.ZodOptional<z.ZodString>;
1048
+ nullable: z.ZodOptional<z.ZodBoolean>;
1049
+ ordinal: z.ZodOptional<z.ZodNumber>;
1050
+ comment: z.ZodOptional<z.ZodString>;
1051
+ referencedAssetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1052
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
1053
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
1054
+ unavailable: "unavailable";
1055
+ supported: "supported";
1056
+ unsupported: "unsupported";
1057
+ }>>>;
1058
+ truncatedFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
1059
+ provenance: z.ZodObject<{
1060
+ source: z.ZodLiteral<"database">;
1061
+ dialect: z.ZodEnum<{
1062
+ mysql: "mysql";
1063
+ postgres: "postgres";
1064
+ sqlite: "sqlite";
1065
+ oracle: "oracle";
1066
+ hive: "hive";
1067
+ impala: "impala";
1068
+ clickhouse: "clickhouse";
1069
+ doris: "doris";
1070
+ sqlserver: "sqlserver";
1071
+ }>;
1072
+ runId: z.ZodString;
1073
+ }, z.core.$strict>;
1074
+ }, z.core.$strict>;
1075
+ }, z.core.$strict>;
1076
+ fields: z.ZodArray<z.ZodObject<{
1077
+ id: z.ZodString;
1078
+ assetId: z.ZodString;
1079
+ sourceId: z.ZodString;
1080
+ runId: z.ZodString;
1081
+ revision: z.ZodNumber;
1082
+ status: z.ZodEnum<{
1083
+ observed: "observed";
1084
+ missing: "missing";
1085
+ unavailable: "unavailable";
1086
+ }>;
1087
+ fingerprint: z.ZodString;
1088
+ observedAt: z.ZodISODateTime;
1089
+ previousRevisionId: z.ZodOptional<z.ZodString>;
1090
+ changeSummary: z.ZodArray<z.ZodString>;
1091
+ payload: z.ZodObject<{
1092
+ identity: z.ZodObject<{
1093
+ sourceId: z.ZodString;
1094
+ database: z.ZodString;
1095
+ schema: z.ZodString;
1096
+ kind: z.ZodEnum<{
1097
+ table: "table";
1098
+ view: "view";
1099
+ schema: "schema";
1100
+ column: "column";
1101
+ primary_key: "primary_key";
1102
+ foreign_key: "foreign_key";
1103
+ index: "index";
1104
+ }>;
1105
+ relation: z.ZodOptional<z.ZodString>;
1106
+ name: z.ZodString;
1107
+ }, z.core.$strict>;
1108
+ name: z.ZodString;
1109
+ path: z.ZodString;
1110
+ parentId: z.ZodOptional<z.ZodString>;
1111
+ objectType: z.ZodOptional<z.ZodEnum<{
1112
+ table: "table";
1113
+ view: "view";
1114
+ }>>;
1115
+ dataType: z.ZodOptional<z.ZodString>;
1116
+ nullable: z.ZodOptional<z.ZodBoolean>;
1117
+ ordinal: z.ZodOptional<z.ZodNumber>;
1118
+ comment: z.ZodOptional<z.ZodString>;
1119
+ referencedAssetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1120
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
1121
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
1122
+ unavailable: "unavailable";
1123
+ supported: "supported";
1124
+ unsupported: "unsupported";
1125
+ }>>>;
1126
+ truncatedFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
1127
+ provenance: z.ZodObject<{
1128
+ source: z.ZodLiteral<"database">;
1129
+ dialect: z.ZodEnum<{
1130
+ mysql: "mysql";
1131
+ postgres: "postgres";
1132
+ sqlite: "sqlite";
1133
+ oracle: "oracle";
1134
+ hive: "hive";
1135
+ impala: "impala";
1136
+ clickhouse: "clickhouse";
1137
+ doris: "doris";
1138
+ sqlserver: "sqlserver";
1139
+ }>;
1140
+ runId: z.ZodString;
1141
+ }, z.core.$strict>;
1142
+ }, z.core.$strict>;
1143
+ }, z.core.$strict>>;
1144
+ relations: z.ZodArray<z.ZodObject<{
1145
+ id: z.ZodString;
1146
+ sourceId: z.ZodString;
1147
+ runId: z.ZodString;
1148
+ kind: z.ZodEnum<{
1149
+ primary_key: "primary_key";
1150
+ foreign_key: "foreign_key";
1151
+ index: "index";
1152
+ parent: "parent";
1153
+ }>;
1154
+ fromAssetId: z.ZodString;
1155
+ toAssetId: z.ZodOptional<z.ZodString>;
1156
+ name: z.ZodOptional<z.ZodString>;
1157
+ columnAssetIds: z.ZodArray<z.ZodString>;
1158
+ referencedColumnAssetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1159
+ observedAt: z.ZodISODateTime;
1160
+ }, z.core.$strict>>;
1161
+ semantics: z.ZodArray<z.ZodObject<{
1162
+ id: z.ZodString;
1163
+ semanticId: z.ZodString;
1164
+ sourceId: z.ZodString;
1165
+ version: z.ZodNumber;
1166
+ createdAt: z.ZodISODateTime;
1167
+ definition: z.ZodDiscriminatedUnion<[z.ZodObject<{
1168
+ targetAssetId: z.ZodString;
1169
+ targetKind: z.ZodEnum<{
1170
+ table: "table";
1171
+ view: "view";
1172
+ column: "column";
1173
+ }>;
1174
+ generatedBy: z.ZodObject<{
1175
+ kind: z.ZodLiteral<"ai">;
1176
+ provider: z.ZodString;
1177
+ model: z.ZodString;
1178
+ runId: z.ZodString;
1179
+ }, z.core.$strict>;
1180
+ name: z.ZodString;
1181
+ aliases: z.ZodArray<z.ZodString>;
1182
+ description: z.ZodString;
1183
+ owner: z.ZodOptional<z.ZodString>;
1184
+ sourceAssetIds: z.ZodArray<z.ZodString>;
1185
+ status: z.ZodEnum<{
1186
+ inferred: "inferred";
1187
+ verified: "verified";
1188
+ needs_review: "needs_review";
1189
+ retired: "retired";
1190
+ }>;
1191
+ validFrom: z.ZodOptional<z.ZodISODateTime>;
1192
+ validTo: z.ZodOptional<z.ZodISODateTime>;
1193
+ revisionNote: z.ZodOptional<z.ZodString>;
1194
+ verifiedAt: z.ZodOptional<z.ZodISODateTime>;
1195
+ needsReviewReason: z.ZodOptional<z.ZodString>;
1196
+ triggerRunId: z.ZodOptional<z.ZodString>;
1197
+ kind: z.ZodLiteral<"meaning">;
1198
+ }, z.core.$strict>, z.ZodObject<{
1199
+ name: z.ZodString;
1200
+ aliases: z.ZodArray<z.ZodString>;
1201
+ description: z.ZodString;
1202
+ owner: z.ZodOptional<z.ZodString>;
1203
+ sourceAssetIds: z.ZodArray<z.ZodString>;
1204
+ status: z.ZodEnum<{
1205
+ inferred: "inferred";
1206
+ verified: "verified";
1207
+ needs_review: "needs_review";
1208
+ retired: "retired";
1209
+ }>;
1210
+ validFrom: z.ZodOptional<z.ZodISODateTime>;
1211
+ validTo: z.ZodOptional<z.ZodISODateTime>;
1212
+ revisionNote: z.ZodOptional<z.ZodString>;
1213
+ verifiedAt: z.ZodOptional<z.ZodISODateTime>;
1214
+ needsReviewReason: z.ZodOptional<z.ZodString>;
1215
+ triggerRunId: z.ZodOptional<z.ZodString>;
1216
+ kind: z.ZodLiteral<"term">;
1217
+ }, z.core.$strict>, z.ZodObject<{
1218
+ formula: z.ZodString;
1219
+ grain: z.ZodString;
1220
+ timeFieldAssetId: z.ZodOptional<z.ZodString>;
1221
+ filters: z.ZodArray<z.ZodString>;
1222
+ exclusions: z.ZodArray<z.ZodString>;
1223
+ name: z.ZodString;
1224
+ aliases: z.ZodArray<z.ZodString>;
1225
+ description: z.ZodString;
1226
+ owner: z.ZodOptional<z.ZodString>;
1227
+ sourceAssetIds: z.ZodArray<z.ZodString>;
1228
+ status: z.ZodEnum<{
1229
+ inferred: "inferred";
1230
+ verified: "verified";
1231
+ needs_review: "needs_review";
1232
+ retired: "retired";
1233
+ }>;
1234
+ validFrom: z.ZodOptional<z.ZodISODateTime>;
1235
+ validTo: z.ZodOptional<z.ZodISODateTime>;
1236
+ revisionNote: z.ZodOptional<z.ZodString>;
1237
+ verifiedAt: z.ZodOptional<z.ZodISODateTime>;
1238
+ needsReviewReason: z.ZodOptional<z.ZodString>;
1239
+ triggerRunId: z.ZodOptional<z.ZodString>;
1240
+ kind: z.ZodLiteral<"metric">;
1241
+ }, z.core.$strict>], "kind">;
1242
+ }, z.core.$strict>>;
1243
+ history: z.ZodArray<z.ZodObject<{
1244
+ id: z.ZodString;
1245
+ assetId: z.ZodString;
1246
+ sourceId: z.ZodString;
1247
+ runId: z.ZodString;
1248
+ revision: z.ZodNumber;
1249
+ status: z.ZodEnum<{
1250
+ observed: "observed";
1251
+ missing: "missing";
1252
+ unavailable: "unavailable";
1253
+ }>;
1254
+ fingerprint: z.ZodString;
1255
+ observedAt: z.ZodISODateTime;
1256
+ previousRevisionId: z.ZodOptional<z.ZodString>;
1257
+ changeSummary: z.ZodArray<z.ZodString>;
1258
+ payload: z.ZodObject<{
1259
+ identity: z.ZodObject<{
1260
+ sourceId: z.ZodString;
1261
+ database: z.ZodString;
1262
+ schema: z.ZodString;
1263
+ kind: z.ZodEnum<{
1264
+ table: "table";
1265
+ view: "view";
1266
+ schema: "schema";
1267
+ column: "column";
1268
+ primary_key: "primary_key";
1269
+ foreign_key: "foreign_key";
1270
+ index: "index";
1271
+ }>;
1272
+ relation: z.ZodOptional<z.ZodString>;
1273
+ name: z.ZodString;
1274
+ }, z.core.$strict>;
1275
+ name: z.ZodString;
1276
+ path: z.ZodString;
1277
+ parentId: z.ZodOptional<z.ZodString>;
1278
+ objectType: z.ZodOptional<z.ZodEnum<{
1279
+ table: "table";
1280
+ view: "view";
1281
+ }>>;
1282
+ dataType: z.ZodOptional<z.ZodString>;
1283
+ nullable: z.ZodOptional<z.ZodBoolean>;
1284
+ ordinal: z.ZodOptional<z.ZodNumber>;
1285
+ comment: z.ZodOptional<z.ZodString>;
1286
+ referencedAssetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1287
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
1288
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
1289
+ unavailable: "unavailable";
1290
+ supported: "supported";
1291
+ unsupported: "unsupported";
1292
+ }>>>;
1293
+ truncatedFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
1294
+ provenance: z.ZodObject<{
1295
+ source: z.ZodLiteral<"database">;
1296
+ dialect: z.ZodEnum<{
1297
+ mysql: "mysql";
1298
+ postgres: "postgres";
1299
+ sqlite: "sqlite";
1300
+ oracle: "oracle";
1301
+ hive: "hive";
1302
+ impala: "impala";
1303
+ clickhouse: "clickhouse";
1304
+ doris: "doris";
1305
+ sqlserver: "sqlserver";
1306
+ }>;
1307
+ runId: z.ZodString;
1308
+ }, z.core.$strict>;
1309
+ }, z.core.$strict>;
1310
+ }, z.core.$strict>>;
1311
+ nextCursor: z.ZodOptional<z.ZodString>;
1312
+ truncated: z.ZodBoolean;
1313
+ untrusted: z.ZodLiteral<true>;
1314
+ }, z.core.$strict>;
1315
+ export type CatalogAssetDetail = z.infer<typeof catalogAssetDetailSchema>;
1316
+ export declare const catalogDiffItemSchema: z.ZodObject<{
1317
+ kind: z.ZodEnum<{
1318
+ missing: "missing";
1319
+ unavailable: "unavailable";
1320
+ added: "added";
1321
+ changed: "changed";
1322
+ restored: "restored";
1323
+ }>;
1324
+ assetId: z.ZodString;
1325
+ name: z.ZodString;
1326
+ path: z.ZodString;
1327
+ fromRevisionId: z.ZodOptional<z.ZodString>;
1328
+ toRevisionId: z.ZodOptional<z.ZodString>;
1329
+ summary: z.ZodArray<z.ZodString>;
1330
+ }, z.core.$strict>;
1331
+ export type CatalogDiffItem = z.infer<typeof catalogDiffItemSchema>;
1332
+ export declare const catalogDiffPageSchema: z.ZodObject<{
1333
+ sourceId: z.ZodString;
1334
+ fromRunId: z.ZodString;
1335
+ toRunId: z.ZodString;
1336
+ scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
1337
+ kind: z.ZodLiteral<"source">;
1338
+ }, z.core.$strict>, z.ZodObject<{
1339
+ kind: z.ZodLiteral<"schema">;
1340
+ schema: z.ZodString;
1341
+ }, z.core.$strict>, z.ZodObject<{
1342
+ kind: z.ZodLiteral<"table">;
1343
+ schema: z.ZodString;
1344
+ table: z.ZodString;
1345
+ }, z.core.$strict>], "kind">;
1346
+ items: z.ZodArray<z.ZodObject<{
1347
+ kind: z.ZodEnum<{
1348
+ missing: "missing";
1349
+ unavailable: "unavailable";
1350
+ added: "added";
1351
+ changed: "changed";
1352
+ restored: "restored";
1353
+ }>;
1354
+ assetId: z.ZodString;
1355
+ name: z.ZodString;
1356
+ path: z.ZodString;
1357
+ fromRevisionId: z.ZodOptional<z.ZodString>;
1358
+ toRevisionId: z.ZodOptional<z.ZodString>;
1359
+ summary: z.ZodArray<z.ZodString>;
1360
+ }, z.core.$strict>>;
1361
+ nextCursor: z.ZodOptional<z.ZodString>;
1362
+ truncated: z.ZodBoolean;
1363
+ }, z.core.$strict>;
1364
+ export type CatalogDiffPage = z.infer<typeof catalogDiffPageSchema>;
1365
+ export interface CatalogIndexRecord {
1366
+ id: string;
1367
+ sourceId: string;
1368
+ resultType: 'asset' | 'semantic';
1369
+ searchText: string;
1370
+ searchItem: CatalogSearchItem;
1371
+ updatedAt: string;
1372
+ }
1373
+ export interface CatalogIndexState {
1374
+ version: 1;
1375
+ rebuiltAt?: string;
1376
+ }