@dbx-tools/shared-generator 0.0.0-stage → 0.9.136
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.
- package/LICENSE +202 -0
- package/README.md +29 -2
- package/index.ts +15 -0
- package/lib/index.d.ts +11 -0
- package/lib/index.js +12 -0
- package/lib/src/brand.d.ts +336 -0
- package/lib/src/brand.js +212 -0
- package/lib/src/kpi.d.ts +61 -0
- package/lib/src/kpi.js +56 -0
- package/lib/src/workflow.d.ts +667 -0
- package/lib/src/workflow.js +240 -0
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/package.json +93 -4
- package/src/brand.ts +273 -0
- package/src/kpi.ts +71 -0
- package/src/workflow.ts +303 -0
|
@@ -0,0 +1,667 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Browser-safe contracts for generated Databricks demo assets.
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
/** Presentation created after generated data is validated. */
|
|
8
|
+
export declare const PresentationModeSchema: z.ZodEnum<{
|
|
9
|
+
dashboard: "dashboard";
|
|
10
|
+
genie: "genie";
|
|
11
|
+
}>;
|
|
12
|
+
/** Presentation mode. */
|
|
13
|
+
export type PresentationMode = z.infer<typeof PresentationModeSchema>;
|
|
14
|
+
/** Complete input for the governed generator workflow. */
|
|
15
|
+
export declare const GeneratorRequestSchema: z.ZodObject<{
|
|
16
|
+
company: z.ZodString;
|
|
17
|
+
purpose: z.ZodString;
|
|
18
|
+
queries: z.ZodArray<z.ZodString>;
|
|
19
|
+
website: z.ZodOptional<z.ZodString>;
|
|
20
|
+
presentation: z.ZodDefault<z.ZodEnum<{
|
|
21
|
+
dashboard: "dashboard";
|
|
22
|
+
genie: "genie";
|
|
23
|
+
}>>;
|
|
24
|
+
rowCount: z.ZodDefault<z.ZodNumber>;
|
|
25
|
+
}, z.core.$strict>;
|
|
26
|
+
/** Generator workflow input after defaults. */
|
|
27
|
+
export type GeneratorRequest = z.output<typeof GeneratorRequestSchema>;
|
|
28
|
+
/** Supported deterministic column generators. */
|
|
29
|
+
export declare const GeneratedColumnSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
30
|
+
name: z.ZodString;
|
|
31
|
+
generator: z.ZodLiteral<"id">;
|
|
32
|
+
description: z.ZodString;
|
|
33
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
34
|
+
name: z.ZodString;
|
|
35
|
+
generator: z.ZodLiteral<"date">;
|
|
36
|
+
description: z.ZodString;
|
|
37
|
+
days: z.ZodNumber;
|
|
38
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
39
|
+
name: z.ZodString;
|
|
40
|
+
generator: z.ZodLiteral<"category">;
|
|
41
|
+
description: z.ZodString;
|
|
42
|
+
values: z.ZodArray<z.ZodString>;
|
|
43
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
44
|
+
name: z.ZodString;
|
|
45
|
+
generator: z.ZodLiteral<"number">;
|
|
46
|
+
description: z.ZodString;
|
|
47
|
+
minimum: z.ZodNumber;
|
|
48
|
+
maximum: z.ZodNumber;
|
|
49
|
+
decimals: z.ZodDefault<z.ZodNumber>;
|
|
50
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
51
|
+
name: z.ZodString;
|
|
52
|
+
generator: z.ZodLiteral<"boolean">;
|
|
53
|
+
description: z.ZodString;
|
|
54
|
+
trueProbability: z.ZodNumber;
|
|
55
|
+
}, z.core.$strict>], "generator">;
|
|
56
|
+
/** Deterministic generated column specification. */
|
|
57
|
+
export type GeneratedColumn = z.infer<typeof GeneratedColumnSchema>;
|
|
58
|
+
/** KPI binding compiled into validation SQL and dashboard measures. */
|
|
59
|
+
export declare const GeneratedMetricSchema: z.ZodObject<{
|
|
60
|
+
name: z.ZodString;
|
|
61
|
+
label: z.ZodString;
|
|
62
|
+
definition: z.ZodString;
|
|
63
|
+
unit: z.ZodEnum<{
|
|
64
|
+
number: "number";
|
|
65
|
+
currency: "currency";
|
|
66
|
+
percent: "percent";
|
|
67
|
+
duration: "duration";
|
|
68
|
+
}>;
|
|
69
|
+
targetDirection: z.ZodEnum<{
|
|
70
|
+
higher: "higher";
|
|
71
|
+
lower: "lower";
|
|
72
|
+
neutral: "neutral";
|
|
73
|
+
}>;
|
|
74
|
+
sourceUrls: z.ZodArray<z.ZodString>;
|
|
75
|
+
aggregation: z.ZodEnum<{
|
|
76
|
+
count: "count";
|
|
77
|
+
sum: "sum";
|
|
78
|
+
average: "average";
|
|
79
|
+
}>;
|
|
80
|
+
column: z.ZodOptional<z.ZodString>;
|
|
81
|
+
}, z.core.$strict>;
|
|
82
|
+
/** KPI binding. */
|
|
83
|
+
export type GeneratedMetric = z.infer<typeof GeneratedMetricSchema>;
|
|
84
|
+
/** Structured plan compiled into SQL and presentation assets. */
|
|
85
|
+
export declare const GeneratorPlanSchema: z.ZodObject<{
|
|
86
|
+
table: z.ZodString;
|
|
87
|
+
rowCount: z.ZodNumber;
|
|
88
|
+
columns: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
89
|
+
name: z.ZodString;
|
|
90
|
+
generator: z.ZodLiteral<"id">;
|
|
91
|
+
description: z.ZodString;
|
|
92
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
93
|
+
name: z.ZodString;
|
|
94
|
+
generator: z.ZodLiteral<"date">;
|
|
95
|
+
description: z.ZodString;
|
|
96
|
+
days: z.ZodNumber;
|
|
97
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
98
|
+
name: z.ZodString;
|
|
99
|
+
generator: z.ZodLiteral<"category">;
|
|
100
|
+
description: z.ZodString;
|
|
101
|
+
values: z.ZodArray<z.ZodString>;
|
|
102
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
103
|
+
name: z.ZodString;
|
|
104
|
+
generator: z.ZodLiteral<"number">;
|
|
105
|
+
description: z.ZodString;
|
|
106
|
+
minimum: z.ZodNumber;
|
|
107
|
+
maximum: z.ZodNumber;
|
|
108
|
+
decimals: z.ZodDefault<z.ZodNumber>;
|
|
109
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
110
|
+
name: z.ZodString;
|
|
111
|
+
generator: z.ZodLiteral<"boolean">;
|
|
112
|
+
description: z.ZodString;
|
|
113
|
+
trueProbability: z.ZodNumber;
|
|
114
|
+
}, z.core.$strict>], "generator">>;
|
|
115
|
+
metrics: z.ZodArray<z.ZodObject<{
|
|
116
|
+
name: z.ZodString;
|
|
117
|
+
label: z.ZodString;
|
|
118
|
+
definition: z.ZodString;
|
|
119
|
+
unit: z.ZodEnum<{
|
|
120
|
+
number: "number";
|
|
121
|
+
currency: "currency";
|
|
122
|
+
percent: "percent";
|
|
123
|
+
duration: "duration";
|
|
124
|
+
}>;
|
|
125
|
+
targetDirection: z.ZodEnum<{
|
|
126
|
+
higher: "higher";
|
|
127
|
+
lower: "lower";
|
|
128
|
+
neutral: "neutral";
|
|
129
|
+
}>;
|
|
130
|
+
sourceUrls: z.ZodArray<z.ZodString>;
|
|
131
|
+
aggregation: z.ZodEnum<{
|
|
132
|
+
count: "count";
|
|
133
|
+
sum: "sum";
|
|
134
|
+
average: "average";
|
|
135
|
+
}>;
|
|
136
|
+
column: z.ZodOptional<z.ZodString>;
|
|
137
|
+
}, z.core.$strict>>;
|
|
138
|
+
story: z.ZodString;
|
|
139
|
+
sampleQuestions: z.ZodArray<z.ZodString>;
|
|
140
|
+
}, z.core.$strict>;
|
|
141
|
+
/** Structured generator plan. */
|
|
142
|
+
export type GeneratorPlan = z.infer<typeof GeneratorPlanSchema>;
|
|
143
|
+
/** Input for the standalone structured data-planning tool. */
|
|
144
|
+
export declare const PlanGeneratorDataRequestSchema: z.ZodObject<{
|
|
145
|
+
request: z.ZodObject<{
|
|
146
|
+
company: z.ZodString;
|
|
147
|
+
purpose: z.ZodString;
|
|
148
|
+
queries: z.ZodArray<z.ZodString>;
|
|
149
|
+
website: z.ZodOptional<z.ZodString>;
|
|
150
|
+
presentation: z.ZodDefault<z.ZodEnum<{
|
|
151
|
+
dashboard: "dashboard";
|
|
152
|
+
genie: "genie";
|
|
153
|
+
}>>;
|
|
154
|
+
rowCount: z.ZodDefault<z.ZodNumber>;
|
|
155
|
+
}, z.core.$strict>;
|
|
156
|
+
brand: z.ZodObject<{
|
|
157
|
+
brand: z.ZodObject<{
|
|
158
|
+
schemaVersion: z.ZodDefault<z.ZodLiteral<"1">>;
|
|
159
|
+
name: z.ZodDefault<z.ZodString>;
|
|
160
|
+
shortName: z.ZodDefault<z.ZodString>;
|
|
161
|
+
tagline: z.ZodDefault<z.ZodString>;
|
|
162
|
+
description: z.ZodDefault<z.ZodString>;
|
|
163
|
+
assets: z.ZodDefault<z.ZodObject<{
|
|
164
|
+
icon: z.ZodDefault<z.ZodObject<{
|
|
165
|
+
light: z.ZodString;
|
|
166
|
+
dark: z.ZodOptional<z.ZodString>;
|
|
167
|
+
}, z.core.$strict>>;
|
|
168
|
+
logo: z.ZodDefault<z.ZodObject<{
|
|
169
|
+
light: z.ZodString;
|
|
170
|
+
dark: z.ZodOptional<z.ZodString>;
|
|
171
|
+
}, z.core.$strict>>;
|
|
172
|
+
favicon: z.ZodDefault<z.ZodString>;
|
|
173
|
+
}, z.core.$strict>>;
|
|
174
|
+
colors: z.ZodPrefault<z.ZodObject<{
|
|
175
|
+
primary: z.ZodDefault<z.ZodString>;
|
|
176
|
+
primaryHover: z.ZodDefault<z.ZodString>;
|
|
177
|
+
accent: z.ZodDefault<z.ZodString>;
|
|
178
|
+
foreground: z.ZodDefault<z.ZodString>;
|
|
179
|
+
background: z.ZodDefault<z.ZodString>;
|
|
180
|
+
surface: z.ZodDefault<z.ZodString>;
|
|
181
|
+
muted: z.ZodDefault<z.ZodString>;
|
|
182
|
+
border: z.ZodDefault<z.ZodString>;
|
|
183
|
+
}, z.core.$strict>>;
|
|
184
|
+
typography: z.ZodPrefault<z.ZodObject<{
|
|
185
|
+
sans: z.ZodDefault<z.ZodString>;
|
|
186
|
+
mono: z.ZodDefault<z.ZodString>;
|
|
187
|
+
}, z.core.$strict>>;
|
|
188
|
+
voice: z.ZodPrefault<z.ZodObject<{
|
|
189
|
+
audience: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
190
|
+
tone: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
191
|
+
principles: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
192
|
+
avoid: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
193
|
+
}, z.core.$strict>>;
|
|
194
|
+
links: z.ZodPrefault<z.ZodObject<{
|
|
195
|
+
website: z.ZodDefault<z.ZodString>;
|
|
196
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
197
|
+
documentation: z.ZodDefault<z.ZodString>;
|
|
198
|
+
}, z.core.$strict>>;
|
|
199
|
+
extensions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
200
|
+
}, z.core.$strict>;
|
|
201
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
202
|
+
url: z.ZodString;
|
|
203
|
+
title: z.ZodOptional<z.ZodString>;
|
|
204
|
+
snippet: z.ZodOptional<z.ZodString>;
|
|
205
|
+
fetched: z.ZodBoolean;
|
|
206
|
+
}, z.core.$strict>>;
|
|
207
|
+
visualReferences: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
208
|
+
platform: z.ZodEnum<{
|
|
209
|
+
ios: "ios";
|
|
210
|
+
android: "android";
|
|
211
|
+
}>;
|
|
212
|
+
appName: z.ZodString;
|
|
213
|
+
pageUrl: z.ZodString;
|
|
214
|
+
images: z.ZodArray<z.ZodObject<{
|
|
215
|
+
url: z.ZodString;
|
|
216
|
+
contentType: z.ZodOptional<z.ZodString>;
|
|
217
|
+
localPath: z.ZodOptional<z.ZodString>;
|
|
218
|
+
}, z.core.$strict>>;
|
|
219
|
+
}, z.core.$strict>>>;
|
|
220
|
+
}, z.core.$strict>;
|
|
221
|
+
kpiResearch: z.ZodObject<{
|
|
222
|
+
kpis: z.ZodArray<z.ZodObject<{
|
|
223
|
+
name: z.ZodString;
|
|
224
|
+
label: z.ZodString;
|
|
225
|
+
definition: z.ZodString;
|
|
226
|
+
unit: z.ZodEnum<{
|
|
227
|
+
number: "number";
|
|
228
|
+
currency: "currency";
|
|
229
|
+
percent: "percent";
|
|
230
|
+
duration: "duration";
|
|
231
|
+
}>;
|
|
232
|
+
targetDirection: z.ZodEnum<{
|
|
233
|
+
higher: "higher";
|
|
234
|
+
lower: "lower";
|
|
235
|
+
neutral: "neutral";
|
|
236
|
+
}>;
|
|
237
|
+
sourceUrls: z.ZodArray<z.ZodString>;
|
|
238
|
+
}, z.core.$strict>>;
|
|
239
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
240
|
+
url: z.ZodString;
|
|
241
|
+
title: z.ZodOptional<z.ZodString>;
|
|
242
|
+
fetched: z.ZodBoolean;
|
|
243
|
+
}, z.core.$strict>>;
|
|
244
|
+
}, z.core.$strict>;
|
|
245
|
+
}, z.core.$strict>;
|
|
246
|
+
/** Input for the standalone structured data-planning tool. */
|
|
247
|
+
export type PlanGeneratorDataRequest = z.infer<typeof PlanGeneratorDataRequestSchema>;
|
|
248
|
+
/** Location and trusted identity for one generated schema. */
|
|
249
|
+
export declare const GeneratedSchemaSchema: z.ZodObject<{
|
|
250
|
+
catalog: z.ZodString;
|
|
251
|
+
schema: z.ZodString;
|
|
252
|
+
fullName: z.ZodString;
|
|
253
|
+
principal: z.ZodString;
|
|
254
|
+
}, z.core.$strict>;
|
|
255
|
+
/** Provisioned generated schema. */
|
|
256
|
+
export type GeneratedSchema = z.infer<typeof GeneratedSchemaSchema>;
|
|
257
|
+
/** Input for per-user schema provisioning. */
|
|
258
|
+
export declare const ProvisionGeneratorSchemaRequestSchema: z.ZodObject<{
|
|
259
|
+
request: z.ZodObject<{
|
|
260
|
+
company: z.ZodString;
|
|
261
|
+
purpose: z.ZodString;
|
|
262
|
+
}, z.core.$strict>;
|
|
263
|
+
}, z.core.$strict>;
|
|
264
|
+
/** Input for per-user schema provisioning. */
|
|
265
|
+
export type ProvisionGeneratorSchemaRequest = z.infer<typeof ProvisionGeneratorSchemaRequestSchema>;
|
|
266
|
+
/** Input for generated data materialization. */
|
|
267
|
+
export declare const MaterializeGeneratorDataRequestSchema: z.ZodObject<{
|
|
268
|
+
location: z.ZodObject<{
|
|
269
|
+
catalog: z.ZodString;
|
|
270
|
+
schema: z.ZodString;
|
|
271
|
+
fullName: z.ZodString;
|
|
272
|
+
principal: z.ZodString;
|
|
273
|
+
}, z.core.$strict>;
|
|
274
|
+
plan: z.ZodObject<{
|
|
275
|
+
table: z.ZodString;
|
|
276
|
+
rowCount: z.ZodNumber;
|
|
277
|
+
columns: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
278
|
+
name: z.ZodString;
|
|
279
|
+
generator: z.ZodLiteral<"id">;
|
|
280
|
+
description: z.ZodString;
|
|
281
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
282
|
+
name: z.ZodString;
|
|
283
|
+
generator: z.ZodLiteral<"date">;
|
|
284
|
+
description: z.ZodString;
|
|
285
|
+
days: z.ZodNumber;
|
|
286
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
287
|
+
name: z.ZodString;
|
|
288
|
+
generator: z.ZodLiteral<"category">;
|
|
289
|
+
description: z.ZodString;
|
|
290
|
+
values: z.ZodArray<z.ZodString>;
|
|
291
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
292
|
+
name: z.ZodString;
|
|
293
|
+
generator: z.ZodLiteral<"number">;
|
|
294
|
+
description: z.ZodString;
|
|
295
|
+
minimum: z.ZodNumber;
|
|
296
|
+
maximum: z.ZodNumber;
|
|
297
|
+
decimals: z.ZodDefault<z.ZodNumber>;
|
|
298
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
299
|
+
name: z.ZodString;
|
|
300
|
+
generator: z.ZodLiteral<"boolean">;
|
|
301
|
+
description: z.ZodString;
|
|
302
|
+
trueProbability: z.ZodNumber;
|
|
303
|
+
}, z.core.$strict>], "generator">>;
|
|
304
|
+
metrics: z.ZodArray<z.ZodObject<{
|
|
305
|
+
name: z.ZodString;
|
|
306
|
+
label: z.ZodString;
|
|
307
|
+
definition: z.ZodString;
|
|
308
|
+
unit: z.ZodEnum<{
|
|
309
|
+
number: "number";
|
|
310
|
+
currency: "currency";
|
|
311
|
+
percent: "percent";
|
|
312
|
+
duration: "duration";
|
|
313
|
+
}>;
|
|
314
|
+
targetDirection: z.ZodEnum<{
|
|
315
|
+
higher: "higher";
|
|
316
|
+
lower: "lower";
|
|
317
|
+
neutral: "neutral";
|
|
318
|
+
}>;
|
|
319
|
+
sourceUrls: z.ZodArray<z.ZodString>;
|
|
320
|
+
aggregation: z.ZodEnum<{
|
|
321
|
+
count: "count";
|
|
322
|
+
sum: "sum";
|
|
323
|
+
average: "average";
|
|
324
|
+
}>;
|
|
325
|
+
column: z.ZodOptional<z.ZodString>;
|
|
326
|
+
}, z.core.$strict>>;
|
|
327
|
+
story: z.ZodString;
|
|
328
|
+
sampleQuestions: z.ZodArray<z.ZodString>;
|
|
329
|
+
}, z.core.$strict>;
|
|
330
|
+
}, z.core.$strict>;
|
|
331
|
+
/** Input for generated data materialization. */
|
|
332
|
+
export type MaterializeGeneratorDataRequest = z.infer<typeof MaterializeGeneratorDataRequestSchema>;
|
|
333
|
+
/** Created tables and KPI validation statements. */
|
|
334
|
+
export declare const MaterializedGeneratorDataSchema: z.ZodObject<{
|
|
335
|
+
tables: z.ZodArray<z.ZodString>;
|
|
336
|
+
validationStatements: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
337
|
+
}, z.core.$strict>;
|
|
338
|
+
/** Created tables and KPI validation statements. */
|
|
339
|
+
export type MaterializedGeneratorData = z.infer<typeof MaterializedGeneratorDataSchema>;
|
|
340
|
+
/** Input shared by dashboard and standalone Genie creation tools. */
|
|
341
|
+
export declare const CreateGeneratorPresentationRequestSchema: z.ZodObject<{
|
|
342
|
+
request: z.ZodObject<{
|
|
343
|
+
company: z.ZodString;
|
|
344
|
+
purpose: z.ZodString;
|
|
345
|
+
}, z.core.$strict>;
|
|
346
|
+
location: z.ZodObject<{
|
|
347
|
+
catalog: z.ZodString;
|
|
348
|
+
schema: z.ZodString;
|
|
349
|
+
fullName: z.ZodString;
|
|
350
|
+
principal: z.ZodString;
|
|
351
|
+
}, z.core.$strict>;
|
|
352
|
+
plan: z.ZodObject<{
|
|
353
|
+
table: z.ZodString;
|
|
354
|
+
rowCount: z.ZodNumber;
|
|
355
|
+
columns: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
356
|
+
name: z.ZodString;
|
|
357
|
+
generator: z.ZodLiteral<"id">;
|
|
358
|
+
description: z.ZodString;
|
|
359
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
360
|
+
name: z.ZodString;
|
|
361
|
+
generator: z.ZodLiteral<"date">;
|
|
362
|
+
description: z.ZodString;
|
|
363
|
+
days: z.ZodNumber;
|
|
364
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
365
|
+
name: z.ZodString;
|
|
366
|
+
generator: z.ZodLiteral<"category">;
|
|
367
|
+
description: z.ZodString;
|
|
368
|
+
values: z.ZodArray<z.ZodString>;
|
|
369
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
370
|
+
name: z.ZodString;
|
|
371
|
+
generator: z.ZodLiteral<"number">;
|
|
372
|
+
description: z.ZodString;
|
|
373
|
+
minimum: z.ZodNumber;
|
|
374
|
+
maximum: z.ZodNumber;
|
|
375
|
+
decimals: z.ZodDefault<z.ZodNumber>;
|
|
376
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
377
|
+
name: z.ZodString;
|
|
378
|
+
generator: z.ZodLiteral<"boolean">;
|
|
379
|
+
description: z.ZodString;
|
|
380
|
+
trueProbability: z.ZodNumber;
|
|
381
|
+
}, z.core.$strict>], "generator">>;
|
|
382
|
+
metrics: z.ZodArray<z.ZodObject<{
|
|
383
|
+
name: z.ZodString;
|
|
384
|
+
label: z.ZodString;
|
|
385
|
+
definition: z.ZodString;
|
|
386
|
+
unit: z.ZodEnum<{
|
|
387
|
+
number: "number";
|
|
388
|
+
currency: "currency";
|
|
389
|
+
percent: "percent";
|
|
390
|
+
duration: "duration";
|
|
391
|
+
}>;
|
|
392
|
+
targetDirection: z.ZodEnum<{
|
|
393
|
+
higher: "higher";
|
|
394
|
+
lower: "lower";
|
|
395
|
+
neutral: "neutral";
|
|
396
|
+
}>;
|
|
397
|
+
sourceUrls: z.ZodArray<z.ZodString>;
|
|
398
|
+
aggregation: z.ZodEnum<{
|
|
399
|
+
count: "count";
|
|
400
|
+
sum: "sum";
|
|
401
|
+
average: "average";
|
|
402
|
+
}>;
|
|
403
|
+
column: z.ZodOptional<z.ZodString>;
|
|
404
|
+
}, z.core.$strict>>;
|
|
405
|
+
story: z.ZodString;
|
|
406
|
+
sampleQuestions: z.ZodArray<z.ZodString>;
|
|
407
|
+
}, z.core.$strict>;
|
|
408
|
+
brand: z.ZodObject<{
|
|
409
|
+
brand: z.ZodObject<{
|
|
410
|
+
schemaVersion: z.ZodDefault<z.ZodLiteral<"1">>;
|
|
411
|
+
name: z.ZodDefault<z.ZodString>;
|
|
412
|
+
shortName: z.ZodDefault<z.ZodString>;
|
|
413
|
+
tagline: z.ZodDefault<z.ZodString>;
|
|
414
|
+
description: z.ZodDefault<z.ZodString>;
|
|
415
|
+
assets: z.ZodDefault<z.ZodObject<{
|
|
416
|
+
icon: z.ZodDefault<z.ZodObject<{
|
|
417
|
+
light: z.ZodString;
|
|
418
|
+
dark: z.ZodOptional<z.ZodString>;
|
|
419
|
+
}, z.core.$strict>>;
|
|
420
|
+
logo: z.ZodDefault<z.ZodObject<{
|
|
421
|
+
light: z.ZodString;
|
|
422
|
+
dark: z.ZodOptional<z.ZodString>;
|
|
423
|
+
}, z.core.$strict>>;
|
|
424
|
+
favicon: z.ZodDefault<z.ZodString>;
|
|
425
|
+
}, z.core.$strict>>;
|
|
426
|
+
colors: z.ZodPrefault<z.ZodObject<{
|
|
427
|
+
primary: z.ZodDefault<z.ZodString>;
|
|
428
|
+
primaryHover: z.ZodDefault<z.ZodString>;
|
|
429
|
+
accent: z.ZodDefault<z.ZodString>;
|
|
430
|
+
foreground: z.ZodDefault<z.ZodString>;
|
|
431
|
+
background: z.ZodDefault<z.ZodString>;
|
|
432
|
+
surface: z.ZodDefault<z.ZodString>;
|
|
433
|
+
muted: z.ZodDefault<z.ZodString>;
|
|
434
|
+
border: z.ZodDefault<z.ZodString>;
|
|
435
|
+
}, z.core.$strict>>;
|
|
436
|
+
typography: z.ZodPrefault<z.ZodObject<{
|
|
437
|
+
sans: z.ZodDefault<z.ZodString>;
|
|
438
|
+
mono: z.ZodDefault<z.ZodString>;
|
|
439
|
+
}, z.core.$strict>>;
|
|
440
|
+
voice: z.ZodPrefault<z.ZodObject<{
|
|
441
|
+
audience: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
442
|
+
tone: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
443
|
+
principles: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
444
|
+
avoid: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
445
|
+
}, z.core.$strict>>;
|
|
446
|
+
links: z.ZodPrefault<z.ZodObject<{
|
|
447
|
+
website: z.ZodDefault<z.ZodString>;
|
|
448
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
449
|
+
documentation: z.ZodDefault<z.ZodString>;
|
|
450
|
+
}, z.core.$strict>>;
|
|
451
|
+
extensions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
452
|
+
}, z.core.$strict>;
|
|
453
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
454
|
+
url: z.ZodString;
|
|
455
|
+
title: z.ZodOptional<z.ZodString>;
|
|
456
|
+
snippet: z.ZodOptional<z.ZodString>;
|
|
457
|
+
fetched: z.ZodBoolean;
|
|
458
|
+
}, z.core.$strict>>;
|
|
459
|
+
visualReferences: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
460
|
+
platform: z.ZodEnum<{
|
|
461
|
+
ios: "ios";
|
|
462
|
+
android: "android";
|
|
463
|
+
}>;
|
|
464
|
+
appName: z.ZodString;
|
|
465
|
+
pageUrl: z.ZodString;
|
|
466
|
+
images: z.ZodArray<z.ZodObject<{
|
|
467
|
+
url: z.ZodString;
|
|
468
|
+
contentType: z.ZodOptional<z.ZodString>;
|
|
469
|
+
localPath: z.ZodOptional<z.ZodString>;
|
|
470
|
+
}, z.core.$strict>>;
|
|
471
|
+
}, z.core.$strict>>>;
|
|
472
|
+
}, z.core.$strict>;
|
|
473
|
+
}, z.core.$strict>;
|
|
474
|
+
/** Input shared by dashboard and standalone Genie creation tools. */
|
|
475
|
+
export type CreateGeneratorPresentationRequest = z.infer<typeof CreateGeneratorPresentationRequestSchema>;
|
|
476
|
+
/** Dashboard output with its automatic companion Genie Agent. */
|
|
477
|
+
export declare const GeneratedDashboardSchema: z.ZodObject<{
|
|
478
|
+
dashboardId: z.ZodString;
|
|
479
|
+
path: z.ZodOptional<z.ZodString>;
|
|
480
|
+
companionGenie: z.ZodLiteral<"AUTO">;
|
|
481
|
+
}, z.core.$strict>;
|
|
482
|
+
/** Published dashboard with automatic companion Genie. */
|
|
483
|
+
export type GeneratedDashboard = z.infer<typeof GeneratedDashboardSchema>;
|
|
484
|
+
/** Standalone Genie output used only when no dashboard is requested. */
|
|
485
|
+
export declare const GeneratedGenieSpaceSchema: z.ZodObject<{
|
|
486
|
+
spaceId: z.ZodString;
|
|
487
|
+
title: z.ZodString;
|
|
488
|
+
}, z.core.$strict>;
|
|
489
|
+
/** Created standalone Genie space. */
|
|
490
|
+
export type GeneratedGenieSpace = z.infer<typeof GeneratedGenieSpaceSchema>;
|
|
491
|
+
/** Terminal workflow output. */
|
|
492
|
+
export declare const GeneratedAssetsSchema: z.ZodObject<{
|
|
493
|
+
request: z.ZodObject<{
|
|
494
|
+
company: z.ZodString;
|
|
495
|
+
purpose: z.ZodString;
|
|
496
|
+
queries: z.ZodArray<z.ZodString>;
|
|
497
|
+
website: z.ZodOptional<z.ZodString>;
|
|
498
|
+
presentation: z.ZodDefault<z.ZodEnum<{
|
|
499
|
+
dashboard: "dashboard";
|
|
500
|
+
genie: "genie";
|
|
501
|
+
}>>;
|
|
502
|
+
rowCount: z.ZodDefault<z.ZodNumber>;
|
|
503
|
+
}, z.core.$strict>;
|
|
504
|
+
schema: z.ZodObject<{
|
|
505
|
+
catalog: z.ZodString;
|
|
506
|
+
schema: z.ZodString;
|
|
507
|
+
fullName: z.ZodString;
|
|
508
|
+
principal: z.ZodString;
|
|
509
|
+
}, z.core.$strict>;
|
|
510
|
+
tables: z.ZodArray<z.ZodString>;
|
|
511
|
+
brand: z.ZodObject<{
|
|
512
|
+
brand: z.ZodObject<{
|
|
513
|
+
schemaVersion: z.ZodDefault<z.ZodLiteral<"1">>;
|
|
514
|
+
name: z.ZodDefault<z.ZodString>;
|
|
515
|
+
shortName: z.ZodDefault<z.ZodString>;
|
|
516
|
+
tagline: z.ZodDefault<z.ZodString>;
|
|
517
|
+
description: z.ZodDefault<z.ZodString>;
|
|
518
|
+
assets: z.ZodDefault<z.ZodObject<{
|
|
519
|
+
icon: z.ZodDefault<z.ZodObject<{
|
|
520
|
+
light: z.ZodString;
|
|
521
|
+
dark: z.ZodOptional<z.ZodString>;
|
|
522
|
+
}, z.core.$strict>>;
|
|
523
|
+
logo: z.ZodDefault<z.ZodObject<{
|
|
524
|
+
light: z.ZodString;
|
|
525
|
+
dark: z.ZodOptional<z.ZodString>;
|
|
526
|
+
}, z.core.$strict>>;
|
|
527
|
+
favicon: z.ZodDefault<z.ZodString>;
|
|
528
|
+
}, z.core.$strict>>;
|
|
529
|
+
colors: z.ZodPrefault<z.ZodObject<{
|
|
530
|
+
primary: z.ZodDefault<z.ZodString>;
|
|
531
|
+
primaryHover: z.ZodDefault<z.ZodString>;
|
|
532
|
+
accent: z.ZodDefault<z.ZodString>;
|
|
533
|
+
foreground: z.ZodDefault<z.ZodString>;
|
|
534
|
+
background: z.ZodDefault<z.ZodString>;
|
|
535
|
+
surface: z.ZodDefault<z.ZodString>;
|
|
536
|
+
muted: z.ZodDefault<z.ZodString>;
|
|
537
|
+
border: z.ZodDefault<z.ZodString>;
|
|
538
|
+
}, z.core.$strict>>;
|
|
539
|
+
typography: z.ZodPrefault<z.ZodObject<{
|
|
540
|
+
sans: z.ZodDefault<z.ZodString>;
|
|
541
|
+
mono: z.ZodDefault<z.ZodString>;
|
|
542
|
+
}, z.core.$strict>>;
|
|
543
|
+
voice: z.ZodPrefault<z.ZodObject<{
|
|
544
|
+
audience: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
545
|
+
tone: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
546
|
+
principles: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
547
|
+
avoid: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
548
|
+
}, z.core.$strict>>;
|
|
549
|
+
links: z.ZodPrefault<z.ZodObject<{
|
|
550
|
+
website: z.ZodDefault<z.ZodString>;
|
|
551
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
552
|
+
documentation: z.ZodDefault<z.ZodString>;
|
|
553
|
+
}, z.core.$strict>>;
|
|
554
|
+
extensions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
555
|
+
}, z.core.$strict>;
|
|
556
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
557
|
+
url: z.ZodString;
|
|
558
|
+
title: z.ZodOptional<z.ZodString>;
|
|
559
|
+
snippet: z.ZodOptional<z.ZodString>;
|
|
560
|
+
fetched: z.ZodBoolean;
|
|
561
|
+
}, z.core.$strict>>;
|
|
562
|
+
visualReferences: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
563
|
+
platform: z.ZodEnum<{
|
|
564
|
+
ios: "ios";
|
|
565
|
+
android: "android";
|
|
566
|
+
}>;
|
|
567
|
+
appName: z.ZodString;
|
|
568
|
+
pageUrl: z.ZodString;
|
|
569
|
+
images: z.ZodArray<z.ZodObject<{
|
|
570
|
+
url: z.ZodString;
|
|
571
|
+
contentType: z.ZodOptional<z.ZodString>;
|
|
572
|
+
localPath: z.ZodOptional<z.ZodString>;
|
|
573
|
+
}, z.core.$strict>>;
|
|
574
|
+
}, z.core.$strict>>>;
|
|
575
|
+
}, z.core.$strict>;
|
|
576
|
+
kpiResearch: z.ZodObject<{
|
|
577
|
+
kpis: z.ZodArray<z.ZodObject<{
|
|
578
|
+
name: z.ZodString;
|
|
579
|
+
label: z.ZodString;
|
|
580
|
+
definition: z.ZodString;
|
|
581
|
+
unit: z.ZodEnum<{
|
|
582
|
+
number: "number";
|
|
583
|
+
currency: "currency";
|
|
584
|
+
percent: "percent";
|
|
585
|
+
duration: "duration";
|
|
586
|
+
}>;
|
|
587
|
+
targetDirection: z.ZodEnum<{
|
|
588
|
+
higher: "higher";
|
|
589
|
+
lower: "lower";
|
|
590
|
+
neutral: "neutral";
|
|
591
|
+
}>;
|
|
592
|
+
sourceUrls: z.ZodArray<z.ZodString>;
|
|
593
|
+
}, z.core.$strict>>;
|
|
594
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
595
|
+
url: z.ZodString;
|
|
596
|
+
title: z.ZodOptional<z.ZodString>;
|
|
597
|
+
fetched: z.ZodBoolean;
|
|
598
|
+
}, z.core.$strict>>;
|
|
599
|
+
}, z.core.$strict>;
|
|
600
|
+
plan: z.ZodObject<{
|
|
601
|
+
table: z.ZodString;
|
|
602
|
+
rowCount: z.ZodNumber;
|
|
603
|
+
columns: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
604
|
+
name: z.ZodString;
|
|
605
|
+
generator: z.ZodLiteral<"id">;
|
|
606
|
+
description: z.ZodString;
|
|
607
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
608
|
+
name: z.ZodString;
|
|
609
|
+
generator: z.ZodLiteral<"date">;
|
|
610
|
+
description: z.ZodString;
|
|
611
|
+
days: z.ZodNumber;
|
|
612
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
613
|
+
name: z.ZodString;
|
|
614
|
+
generator: z.ZodLiteral<"category">;
|
|
615
|
+
description: z.ZodString;
|
|
616
|
+
values: z.ZodArray<z.ZodString>;
|
|
617
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
618
|
+
name: z.ZodString;
|
|
619
|
+
generator: z.ZodLiteral<"number">;
|
|
620
|
+
description: z.ZodString;
|
|
621
|
+
minimum: z.ZodNumber;
|
|
622
|
+
maximum: z.ZodNumber;
|
|
623
|
+
decimals: z.ZodDefault<z.ZodNumber>;
|
|
624
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
625
|
+
name: z.ZodString;
|
|
626
|
+
generator: z.ZodLiteral<"boolean">;
|
|
627
|
+
description: z.ZodString;
|
|
628
|
+
trueProbability: z.ZodNumber;
|
|
629
|
+
}, z.core.$strict>], "generator">>;
|
|
630
|
+
metrics: z.ZodArray<z.ZodObject<{
|
|
631
|
+
name: z.ZodString;
|
|
632
|
+
label: z.ZodString;
|
|
633
|
+
definition: z.ZodString;
|
|
634
|
+
unit: z.ZodEnum<{
|
|
635
|
+
number: "number";
|
|
636
|
+
currency: "currency";
|
|
637
|
+
percent: "percent";
|
|
638
|
+
duration: "duration";
|
|
639
|
+
}>;
|
|
640
|
+
targetDirection: z.ZodEnum<{
|
|
641
|
+
higher: "higher";
|
|
642
|
+
lower: "lower";
|
|
643
|
+
neutral: "neutral";
|
|
644
|
+
}>;
|
|
645
|
+
sourceUrls: z.ZodArray<z.ZodString>;
|
|
646
|
+
aggregation: z.ZodEnum<{
|
|
647
|
+
count: "count";
|
|
648
|
+
sum: "sum";
|
|
649
|
+
average: "average";
|
|
650
|
+
}>;
|
|
651
|
+
column: z.ZodOptional<z.ZodString>;
|
|
652
|
+
}, z.core.$strict>>;
|
|
653
|
+
story: z.ZodString;
|
|
654
|
+
sampleQuestions: z.ZodArray<z.ZodString>;
|
|
655
|
+
}, z.core.$strict>;
|
|
656
|
+
dashboard: z.ZodOptional<z.ZodObject<{
|
|
657
|
+
dashboardId: z.ZodString;
|
|
658
|
+
path: z.ZodOptional<z.ZodString>;
|
|
659
|
+
companionGenie: z.ZodLiteral<"AUTO">;
|
|
660
|
+
}, z.core.$strict>>;
|
|
661
|
+
genie: z.ZodOptional<z.ZodObject<{
|
|
662
|
+
spaceId: z.ZodString;
|
|
663
|
+
title: z.ZodString;
|
|
664
|
+
}, z.core.$strict>>;
|
|
665
|
+
}, z.core.$strict>;
|
|
666
|
+
/** Terminal generator workflow output. */
|
|
667
|
+
export type GeneratedAssets = z.infer<typeof GeneratedAssetsSchema>;
|