@engenty/wizards 0.0.0-stage → 0.7.10
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 +110 -0
- package/README.md +58 -2
- package/dist/openui/LICENSE-MIT +26 -0
- package/dist/openui/index.d.ts +2485 -0
- package/dist/openui/index.js +8490 -0
- package/dist/openui/index.js.map +1 -0
- package/dist/openui/server.d.ts +57 -0
- package/dist/openui/server.js +54 -0
- package/dist/openui/server.js.map +1 -0
- package/dist/openui/styles.css +2604 -0
- package/dist/plugin/index.d.ts +1150 -0
- package/dist/plugin/index.js +4 -0
- package/dist/plugin/studio.d.ts +322 -0
- package/dist/plugin/studio.js +4 -0
- package/dist/plugin/thread.d.ts +174 -0
- package/dist/plugin/thread.js +821 -0
- package/package.json +90 -4
|
@@ -0,0 +1,2485 @@
|
|
|
1
|
+
import { $strip } from 'zod/v4/core';
|
|
2
|
+
import { DefinedComponent } from '@openuidev/react-lang';
|
|
3
|
+
import { Library } from '@openuidev/react-lang';
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
import { ZodObject } from 'zod';
|
|
6
|
+
import { ZodOptional } from 'zod';
|
|
7
|
+
import { ZodRecord } from 'zod';
|
|
8
|
+
import { ZodString } from 'zod';
|
|
9
|
+
import { ZodUnknown } from 'zod';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* The library with the Wizard component among a Card's children. A server passes `WizardSpec`
|
|
13
|
+
* for its prompt, the browser the drawing `Wizard`; both make the same prompt.
|
|
14
|
+
*/
|
|
15
|
+
export declare function addWizard<L extends Library>(library: L, component?: typeof WizardSpec): Library;
|
|
16
|
+
|
|
17
|
+
declare interface AskBase {
|
|
18
|
+
id: string;
|
|
19
|
+
stepId: string;
|
|
20
|
+
/** Why the wizard asks, in the person's language. */
|
|
21
|
+
reason: string;
|
|
22
|
+
at: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare interface AssetRef {
|
|
26
|
+
id: string;
|
|
27
|
+
/** image | video | html | text | json */
|
|
28
|
+
kind: string;
|
|
29
|
+
mime: string;
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
* Media a model made ("generated") or changed ("edited"). Shown with a label wherever it is
|
|
33
|
+
* displayed; the file itself carries the marking in its metadata (EU AI Act, Art. 50).
|
|
34
|
+
*/
|
|
35
|
+
ai?: "generated" | "edited";
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/** What a decision over a step's `ask` branches found. */
|
|
39
|
+
declare interface BranchDecision {
|
|
40
|
+
/** The index of the rule in the step's `next`, or null: none of them, go on. */
|
|
41
|
+
rule: number | null;
|
|
42
|
+
source: "systemone" | "llm";
|
|
43
|
+
probabilities?: Record<string, number>;
|
|
44
|
+
at: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
declare interface BrandView {
|
|
48
|
+
name: string;
|
|
49
|
+
accent: string | null;
|
|
50
|
+
logoUrl: string | null;
|
|
51
|
+
/** How the pages look: the run page sets its tokens from it. */
|
|
52
|
+
theme: RunTheme;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** A choice drawn as a card, as the runner gets it. */
|
|
56
|
+
declare interface CardOption {
|
|
57
|
+
value: string;
|
|
58
|
+
label: string;
|
|
59
|
+
image?: string;
|
|
60
|
+
subtitle?: string;
|
|
61
|
+
meta?: string;
|
|
62
|
+
link?: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
declare type ChoiceShape = Named & {
|
|
66
|
+
kind: "choice";
|
|
67
|
+
options: string[];
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/** A page's choice whose values lead to a step this runtime has no model for. */
|
|
71
|
+
declare interface ClosedChoice {
|
|
72
|
+
/** The options (or a toggle's true / false) that lead there; empty = the field as a whole. */
|
|
73
|
+
values: (string | boolean)[];
|
|
74
|
+
/** What is missing on the way. */
|
|
75
|
+
classes: ModelClass[];
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/** Names the runtime the Wizard component talks to. Once, before the first render. */
|
|
79
|
+
export declare function configureWizards(config: WizardsConfig): void;
|
|
80
|
+
|
|
81
|
+
/** A running step wants to change something in one of the person's accounts and asks first. */
|
|
82
|
+
declare interface ConfirmAsk extends AskBase {
|
|
83
|
+
kind: "confirm";
|
|
84
|
+
/** The connected service, e.g. "Notion". */
|
|
85
|
+
service: string;
|
|
86
|
+
action: {
|
|
87
|
+
id: string;
|
|
88
|
+
summary: string;
|
|
89
|
+
destructive: boolean;
|
|
90
|
+
};
|
|
91
|
+
/** What would be sent, as readable JSON. */
|
|
92
|
+
input: string;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/** Kinds of accounts a wizard can ask the person to connect. */
|
|
96
|
+
declare const CONNECTION_KINDS: readonly ["mail"];
|
|
97
|
+
|
|
98
|
+
declare type ConnectionKind = (typeof CONNECTION_KINDS)[number];
|
|
99
|
+
|
|
100
|
+
declare interface ConnectionView {
|
|
101
|
+
id: string;
|
|
102
|
+
kind: ConnectionKind | null;
|
|
103
|
+
/** The imported connector behind the connection, if it is one. */
|
|
104
|
+
connector: string | null;
|
|
105
|
+
title: string | null;
|
|
106
|
+
description: string | null;
|
|
107
|
+
/** Set when the person has connected an account. */
|
|
108
|
+
account: {
|
|
109
|
+
connector: string;
|
|
110
|
+
label: string;
|
|
111
|
+
connectedAt: string;
|
|
112
|
+
} | null;
|
|
113
|
+
connectors: ConnectorOption[];
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/** A connector the person can pick for a connection: an OAuth sign-in or a credentials form. */
|
|
117
|
+
declare interface ConnectorOption {
|
|
118
|
+
id: string;
|
|
119
|
+
name: string;
|
|
120
|
+
auth: "oauth2" | "api_key";
|
|
121
|
+
/** `api_key` connectors: the form, in order. */
|
|
122
|
+
fields?: {
|
|
123
|
+
key: string;
|
|
124
|
+
label: string;
|
|
125
|
+
secret?: boolean;
|
|
126
|
+
placeholder?: string;
|
|
127
|
+
required?: boolean;
|
|
128
|
+
}[];
|
|
129
|
+
/** Shown under the form: where to get the values. */
|
|
130
|
+
hint?: string;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
declare type FieldShape = LeafShape | ListShape | ScoreShape | TableShape;
|
|
134
|
+
|
|
135
|
+
declare type Format = (typeof FORMATS)[number];
|
|
136
|
+
|
|
137
|
+
declare const FORMATS: readonly ["png", "mp4", "mp3", "pdf", "docx", "html", "md", "txt", "csv", "xlsx", "json", "zip"];
|
|
138
|
+
|
|
139
|
+
/** What fills a line's gaps: words, a number (written the language's way), or a list of them. */
|
|
140
|
+
declare type Gap = string | number | readonly Gap[];
|
|
141
|
+
|
|
142
|
+
declare type Lang = (typeof LANGS)[number];
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* The languages engenty speaks: the studio, the runner, the mails, a wizard's own words. A
|
|
146
|
+
* language joins once its strings are written; English is the one every string has, and what a
|
|
147
|
+
* language still lacks is said in English.
|
|
148
|
+
*/
|
|
149
|
+
declare const LANGS: readonly ["en", "de"];
|
|
150
|
+
|
|
151
|
+
declare type LeafShape = TextShape | NumberShape | YesNoShape | ChoiceShape | RefShape;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* What a wizard keeps between runs for one person: lists (tabular data), files and connected
|
|
155
|
+
* accounts. The wizard definition says which lists and connections exist; the content belongs
|
|
156
|
+
* to the person who ran it.
|
|
157
|
+
*/
|
|
158
|
+
/** A list is an engenty data table: typed columns, rows of cells keyed by column id. */
|
|
159
|
+
declare interface ListDef {
|
|
160
|
+
id: string;
|
|
161
|
+
title: string;
|
|
162
|
+
description?: string;
|
|
163
|
+
columns: TableColumn[];
|
|
164
|
+
/** Column whose value identifies a row: saving a row with a known key updates it. */
|
|
165
|
+
key?: string;
|
|
166
|
+
/**
|
|
167
|
+
* The rows are gone through one by one in a review: `file` holds the path of a kept file
|
|
168
|
+
* shown beside the row, `status` is a select whose options are the answers (first = open).
|
|
169
|
+
*/
|
|
170
|
+
check?: {
|
|
171
|
+
file?: string;
|
|
172
|
+
status?: string;
|
|
173
|
+
};
|
|
174
|
+
/** Every run reads and writes the same rows; kept as a table of the space, not per person. */
|
|
175
|
+
shared?: boolean;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
declare interface ListRow {
|
|
179
|
+
id: string;
|
|
180
|
+
cells: Record<string, unknown>;
|
|
181
|
+
updatedAt: string;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
declare type ListShape = Named & {
|
|
185
|
+
kind: "list";
|
|
186
|
+
of: LeafShape | ObjectShape;
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
/** Reads the published wizards behind these tokens from a runtime; ones it cannot read are left out. */
|
|
190
|
+
export declare function loadWizards(runtimeUrl: string, tokens: string[]): Promise<WizardInfo[]>;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* A running step asks the person to sign in on a page the wizard's browser has open. What the
|
|
194
|
+
* person types goes into that page; the model never sees it.
|
|
195
|
+
*/
|
|
196
|
+
declare interface LoginAsk extends AskBase {
|
|
197
|
+
kind: "login";
|
|
198
|
+
site: {
|
|
199
|
+
host: string;
|
|
200
|
+
title: string;
|
|
201
|
+
};
|
|
202
|
+
/** Inputs found on the page, to fill here instead of clicking into the picture. */
|
|
203
|
+
fields: {
|
|
204
|
+
id: string;
|
|
205
|
+
label: string;
|
|
206
|
+
secret: boolean;
|
|
207
|
+
}[];
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
declare interface MascotProps {
|
|
211
|
+
kind: string;
|
|
212
|
+
size?: number;
|
|
213
|
+
fluffy?: boolean;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
declare const MODEL_CLASSES: readonly ["classifier", "standard", "high", "highest", "image", "video", "audio", "speech"];
|
|
217
|
+
|
|
218
|
+
declare type ModelClass = (typeof MODEL_CLASSES)[number];
|
|
219
|
+
|
|
220
|
+
declare interface Named {
|
|
221
|
+
/** What people read: a column's head, a part's title, "add …". Without one, the key. */
|
|
222
|
+
label?: string;
|
|
223
|
+
/** What the model is to put there. */
|
|
224
|
+
description?: string;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/** What fills a note's gaps: words, numbers, other notes (said in the same language), lists. */
|
|
228
|
+
declare type NoteGap = Gap | RunNote | readonly NoteGap[];
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* What a step reports while it works, in words for each language: the runtime writes the English
|
|
232
|
+
* line into the run's log, a runner shows it in the language the person reads. The runtime's
|
|
233
|
+
* answers to the person running a shared wizard (a refusal, a failure) are notes too: it answers
|
|
234
|
+
* them in the wizard's language.
|
|
235
|
+
*/
|
|
236
|
+
declare const NOTES_EN: {
|
|
237
|
+
readonly entry: "Entry {n} of {total}";
|
|
238
|
+
readonly deciding: "Deciding what to do next…";
|
|
239
|
+
readonly choosingFields: "Choosing the right questions…";
|
|
240
|
+
readonly batchDone: "{done} of {total} done";
|
|
241
|
+
readonly editing: "Editing {n} of {total}";
|
|
242
|
+
readonly filming: "Filming {n} of {total}";
|
|
243
|
+
readonly clipsRendering: {
|
|
244
|
+
readonly one: "Rendering {count} clip – this takes a few minutes.";
|
|
245
|
+
readonly other: "Rendering {count} clips – this takes a few minutes.";
|
|
246
|
+
};
|
|
247
|
+
readonly videoRendering: "Rendering the video – this usually takes 1–3 minutes.";
|
|
248
|
+
readonly photo: "Looking at photo {n} of {total}";
|
|
249
|
+
readonly found: "{label}: {name}";
|
|
250
|
+
readonly listen: "Listening to “{label}”…";
|
|
251
|
+
readonly listenFailed: "“{label}” couldn’t be transcribed.";
|
|
252
|
+
readonly filmCutting: "Cutting the film – this takes about a minute.";
|
|
253
|
+
readonly filmProgress: "{pct} % cut";
|
|
254
|
+
readonly filmError: "The film reports: {detail}";
|
|
255
|
+
readonly widgetError: "The widget reports an error: {detail}";
|
|
256
|
+
readonly mcpConnected: "Connected to {names}";
|
|
257
|
+
readonly mcpUnreachable: "MCP server unreachable: {detail}";
|
|
258
|
+
readonly reads: "Reading {name}";
|
|
259
|
+
readonly readsMany: {
|
|
260
|
+
readonly one: "Reading {count} document";
|
|
261
|
+
readonly other: "Reading {count} documents";
|
|
262
|
+
};
|
|
263
|
+
readonly opens: "Opening {name}";
|
|
264
|
+
readonly clicks: "Clicking in the browser";
|
|
265
|
+
readonly clicksOn: "Clicking “{name}”";
|
|
266
|
+
readonly types: "Typing in the browser";
|
|
267
|
+
readonly typesText: "Typing “{text}”";
|
|
268
|
+
readonly selects: "Choosing “{option}”";
|
|
269
|
+
readonly scrolls: "Scrolling";
|
|
270
|
+
readonly presses: "Pressing {key}";
|
|
271
|
+
readonly goesBack: "Going back a page";
|
|
272
|
+
readonly waitsForPage: "Waiting for the page";
|
|
273
|
+
readonly fastLoop: "Doing in the browser: {goal}";
|
|
274
|
+
readonly personDrives: "You’re driving the browser – the wizard waits";
|
|
275
|
+
readonly agentDrives: "The wizard carries on in the browser";
|
|
276
|
+
readonly looksAtPage: "Looking at the page";
|
|
277
|
+
readonly waitsForSignIn: "Waiting for you to sign in to {name}";
|
|
278
|
+
readonly downloads: "Downloading {name}";
|
|
279
|
+
readonly runs: "Running: {command}";
|
|
280
|
+
readonly python: "Running Python";
|
|
281
|
+
readonly runsProgram: "Working through the data in one go";
|
|
282
|
+
readonly drawing: "Drawing an image";
|
|
283
|
+
readonly writesPage: "Writing the page “{title}”";
|
|
284
|
+
readonly searchesDocuments: "Searching the documents: {query}";
|
|
285
|
+
readonly searchesKnowledge: "Searching knowledge: {query} – {relevant} of {candidates} fit";
|
|
286
|
+
readonly listsKnowledge: "Listing knowledge";
|
|
287
|
+
readonly searchesMail: "Searching {label}";
|
|
288
|
+
readonly savesReceipts: {
|
|
289
|
+
readonly one: "Saving {count} receipt from {label}";
|
|
290
|
+
readonly other: "Saving {count} receipts from {label}";
|
|
291
|
+
};
|
|
292
|
+
readonly remembers: "Remembering {title}";
|
|
293
|
+
readonly files: {
|
|
294
|
+
readonly one: "Filing {count} file";
|
|
295
|
+
readonly other: "Filing {count} files";
|
|
296
|
+
};
|
|
297
|
+
readonly filmSetup: "Setting up the folder for the film";
|
|
298
|
+
readonly filmClient: "{client} is working on the film – this usually takes 10–40 minutes.";
|
|
299
|
+
readonly filmTask: "On the film: {task}";
|
|
300
|
+
readonly filmLooks: "Looking at frames of the film";
|
|
301
|
+
readonly filmFix: "The film didn’t render – Claude Code is fixing it";
|
|
302
|
+
readonly filmResume: "Picking the film up where it stopped";
|
|
303
|
+
readonly wizardUnavailable: "This wizard isn’t available right now.";
|
|
304
|
+
readonly translationFailed: "This wizard can’t be translated right now. It’s shown as it was written.";
|
|
305
|
+
readonly translationOff: "This wizard is only offered as it was written.";
|
|
306
|
+
readonly translationPlaceholder: "The translation of “{text}” needs every placeholder in curly brackets the original has.";
|
|
307
|
+
readonly wizardLimit: "This wizard has reached its limit for today. Try again tomorrow.";
|
|
308
|
+
readonly confirmHuman: "Confirm that you’re a person.";
|
|
309
|
+
readonly tooManyRuns: "You’ve started a lot of runs just now. Try again in an hour.";
|
|
310
|
+
readonly clientRefused: "This app may not start runs here.";
|
|
311
|
+
readonly clientLimit: "This app has started a lot of runs just now. Try again later.";
|
|
312
|
+
readonly runOver: "The run is over.";
|
|
313
|
+
readonly runBusy: "The wizard is working right now.";
|
|
314
|
+
readonly pageOutdated: "This page is out of date.";
|
|
315
|
+
readonly noStepBefore: "There is no step before this one.";
|
|
316
|
+
readonly checkFields: "Check the marked fields.";
|
|
317
|
+
readonly talkOff: "Live conversations aren’t turned on for this wizard.";
|
|
318
|
+
readonly talkKeyRefused: "The conversation couldn’t start: the OpenAI API key was refused.";
|
|
319
|
+
readonly talkFailed: "The conversation couldn’t start ({status}).";
|
|
320
|
+
readonly talkNoSecret: "The conversation couldn’t start: no access key came back.";
|
|
321
|
+
readonly tryLater: "Try again later.";
|
|
322
|
+
readonly recordingTooLarge: "The recording can be 10 MB at most.";
|
|
323
|
+
readonly fileTooLarge: "Choose a file of {mb} MB or less.";
|
|
324
|
+
readonly askClosed: "This question is no longer open.";
|
|
325
|
+
readonly noBrowser: "The wizard has no browser open right now.";
|
|
326
|
+
readonly notWaiting: "The wizard isn’t waiting for you right now.";
|
|
327
|
+
readonly pageActFailed: "That didn’t work on the page.";
|
|
328
|
+
readonly linkGone: "This link has expired or was withdrawn.";
|
|
329
|
+
readonly connected: "Connected. You can close this window.";
|
|
330
|
+
readonly connectFailed: "Connecting didn’t work. Try again.";
|
|
331
|
+
readonly connectCancelled: "Connecting was cancelled.";
|
|
332
|
+
readonly appleOff: "Apple Intelligence is turned off on this Mac. Turn it on in System Settings → Apple Intelligence & Siri.";
|
|
333
|
+
readonly appleLoading: "Apple is still loading the model for Apple Intelligence onto this Mac. Try again in a moment.";
|
|
334
|
+
readonly appleMissing: "The helper for Apple Intelligence (wizards-apple) is missing from this install.";
|
|
335
|
+
readonly appleOs: "Apple Intelligence needs macOS 26 or later.";
|
|
336
|
+
readonly appleDevice: "Apple Intelligence only works on a Mac with Apple silicon.";
|
|
337
|
+
readonly appleBusy: "Apple Intelligence isn’t taking more requests right now. Try again in a moment.";
|
|
338
|
+
readonly appleTooLong: "The text is too long for Apple Intelligence on this Mac (4,096 tokens for question and answer). Choose another model for this class under Settings → Models.";
|
|
339
|
+
readonly appleRefused: "Apple Intelligence turned the request down: Apple’s content rules don’t allow it.";
|
|
340
|
+
readonly appleLanguage: "Apple Intelligence doesn’t understand the language of this request.";
|
|
341
|
+
readonly appleFormat: "Apple Intelligence can’t answer in this format: {detail}";
|
|
342
|
+
readonly appleFailed: "Apple Intelligence: {detail}";
|
|
343
|
+
readonly appleNoFfmpeg: "Apple Intelligence can’t read {type}, and without ffmpeg the recording can’t be converted. Install ffmpeg or record as MP4 in the browser.";
|
|
344
|
+
readonly appleNotConverted: "Apple Intelligence couldn’t convert the recording: {detail}";
|
|
345
|
+
readonly connectorAlreadyExistsSpace: "The connector “{id}” already exists in this space.";
|
|
346
|
+
readonly connectorNotExist: "This connector doesn’t exist.";
|
|
347
|
+
readonly fieldMissing: "“{label}” is missing.";
|
|
348
|
+
readonly mailServerNotExist: "The mail server{host} doesn’t exist. Enter the IMAP server. For Gmail and Google Workspace, it’s imap.gmail.com.";
|
|
349
|
+
readonly mailServerNotResponding: "The mail server{host} isn’t responding. Check the IMAP server and port.";
|
|
350
|
+
readonly connectingNotWork: "Connecting didn’t work{host}: {detail}";
|
|
351
|
+
readonly connectEngentyAccountFirst: "Connect your engenty account first (Settings → Account). Then you can connect Google here.";
|
|
352
|
+
readonly engentyAccountNotReached: "Your engenty account can’t be reached right now. Try again later.";
|
|
353
|
+
readonly googleNoLongerAccepts: "Google no longer accepts this connection. Connect the account again.";
|
|
354
|
+
readonly googleNotConnectedThrough: "Google can’t be connected through your engenty account right now.";
|
|
355
|
+
readonly stepNeedsToolPlugin: "This step needs the tool “{id}”. The plugin “{plugin}” isn’t installed here.";
|
|
356
|
+
readonly clientNotSignedIn: "{name} isn’t signed in on this computer. Sign in under Settings → Models.";
|
|
357
|
+
readonly clientNotInstalled: "{name} isn’t installed on this computer. Install it under Settings → Models.";
|
|
358
|
+
readonly clientNoCredit: "The account {name} is signed in with has no credit or quota left.";
|
|
359
|
+
readonly clientAccountNotServed: "{name} no longer serves the account it is signed in with. Sign it in with another account, or choose another way under Settings → Models.";
|
|
360
|
+
readonly anthropicAccountClaudeCode: "The Anthropic account Claude Code is signed in with has no credit. Sign Claude Code in with your subscription under Settings → Models.";
|
|
361
|
+
readonly chatgptAccountCodexSigned: "The ChatGPT account Codex is signed in with has used up its quota. Try again later or choose another client.";
|
|
362
|
+
readonly builtTerminalNotAvailable: "The built-in terminal isn’t available on this computer. Run the command in your own terminal.";
|
|
363
|
+
readonly terminalNoLongerExists: "This terminal no longer exists.";
|
|
364
|
+
readonly imageTypeNotReadable: "Images of type {mime} can’t be read (PNG, JPEG and WebP work).";
|
|
365
|
+
readonly fileNotReadable: "“{name}” ({mime}) can’t be read.";
|
|
366
|
+
readonly creditsNotSignedIn: "This is set to run on credits, but you’re not signed in to an account.";
|
|
367
|
+
readonly accountNoLongerSigned: "The account is no longer signed in. Sign in again under Settings → Account.";
|
|
368
|
+
readonly modelNotUsedYet: "The model “{ref}” can’t be used yet. Add an API key under Settings → Models, or sign in to an account.";
|
|
369
|
+
readonly noModelForImages: "No model is set up for images.";
|
|
370
|
+
readonly noModelForVideos: "No model is set up for videos.";
|
|
371
|
+
readonly noModelForSpeech: "No model is set up for speech.";
|
|
372
|
+
readonly noOpenaiApiKey: "No OpenAI API key is set for voice conversations (Settings → Models).";
|
|
373
|
+
readonly modelNotAvailableAccount: "This model isn’t available with your account.";
|
|
374
|
+
readonly accountNoModelSet: "Your account has no model set up for this.";
|
|
375
|
+
readonly claudeCodeMakesFilms: "Claude Code makes films on this computer, using your subscription. Set it up as an AI subscription under Settings → Models.";
|
|
376
|
+
readonly macNeedsFfmpegTranscribe: "This Mac needs ffmpeg to transcribe recordings from Chrome or Firefox (WebM, Ogg). Safari and the app don’t. Install ffmpeg, e.g. with “brew install ffmpeg”.";
|
|
377
|
+
readonly fieldRequired: "Required";
|
|
378
|
+
readonly chooseAtLeast: "Choose at least {min}";
|
|
379
|
+
readonly chooseAtMost: "At most {max} – remove some";
|
|
380
|
+
readonly enterNumber: "Enter a number";
|
|
381
|
+
readonly invalidChoice: "Invalid choice";
|
|
382
|
+
readonly timeNotOffered: "This time isn’t offered";
|
|
383
|
+
readonly notValidEmailAddress: "Not a valid email address";
|
|
384
|
+
readonly notValidUrl: "Not a valid URL";
|
|
385
|
+
readonly wizardRunOutCredits: "This wizard has run out of credits for now. Try again later.";
|
|
386
|
+
readonly providerCreditLow: "Your credit with the model provider isn’t enough for this (videos need a minimum balance there). Top up there and try again.";
|
|
387
|
+
readonly aiServiceBusyRight: "The AI service is busy right now. Try again in a moment.";
|
|
388
|
+
readonly stepTookTooLong: "The step took too long. Try again.";
|
|
389
|
+
readonly aiServiceNotReached: "The AI service can’t be reached right now. Try again later.";
|
|
390
|
+
readonly notAvailableNow: "That isn’t available here right now.";
|
|
391
|
+
readonly fileNotFound: "File not found";
|
|
392
|
+
readonly connectFirst: "Connect first";
|
|
393
|
+
readonly noEntriesStepWork: "There are no entries for this step to work on.";
|
|
394
|
+
readonly stepNotReturnResult: "The step didn’t return a result.";
|
|
395
|
+
readonly documentNotCreated: "The document couldn’t be created.";
|
|
396
|
+
readonly stepMissingSourcesImages: "This step is missing its sources (images or scenes).";
|
|
397
|
+
readonly noTextReadAloud: "There is no text to read aloud.";
|
|
398
|
+
readonly wizardStillErrors: "The wizard still has errors.";
|
|
399
|
+
readonly noLanguageModelSet: "No language model is set up here.";
|
|
400
|
+
readonly creditsUsedUp: "Your credits are used up.";
|
|
401
|
+
readonly chooseFile: "Choose a file.";
|
|
402
|
+
readonly pageNotReached: "The page can’t be reached.";
|
|
403
|
+
readonly unknownEntry: "Unknown entry.";
|
|
404
|
+
readonly chooseWizardFileMb: "Choose a wizard file ({PACKAGE_EXTENSION}) of 30 MB or less.";
|
|
405
|
+
readonly recordingMbMost: "The recording can be 10 MB at most.";
|
|
406
|
+
readonly onlyFinishedResultsShared: "Only finished results can be shared.";
|
|
407
|
+
readonly gradientFailed: "Couldn’t make a gradient from that. Try describing it differently.";
|
|
408
|
+
readonly onlyOneSpaceAllowed: "Only one space is allowed here.";
|
|
409
|
+
readonly mostSpaces: {
|
|
410
|
+
readonly one: "You can have at most {count} space here.";
|
|
411
|
+
readonly other: "You can have at most {count} spaces here.";
|
|
412
|
+
};
|
|
413
|
+
readonly twoEntriesSameKey: "Two entries have the same key.";
|
|
414
|
+
readonly notDeleteLastSpace: "You can’t delete the last space.";
|
|
415
|
+
readonly notFound: "This doesn’t exist or was deleted.";
|
|
416
|
+
readonly categoryNeedsName: "A category needs a name.";
|
|
417
|
+
readonly unknownCategoryType: "Unknown type “{type}”.";
|
|
418
|
+
readonly spaceMostCategories: {
|
|
419
|
+
readonly one: "A space can have at most {count} category.";
|
|
420
|
+
readonly other: "A space can have at most {count} categories.";
|
|
421
|
+
};
|
|
422
|
+
readonly categoryAlreadyExists: "The category “{name}” already exists.";
|
|
423
|
+
readonly onlyChoiceCategoriesValues: "Only choice categories have values.";
|
|
424
|
+
readonly onlyValuesOneCategory: "Only values of one category can be merged.";
|
|
425
|
+
readonly templateNeedsNewerVersion: "This template needs a newer version of engenty wizards. Update engenty wizards first.";
|
|
426
|
+
readonly chatNotExist: "This chat doesn’t exist.";
|
|
427
|
+
readonly unknownRunner: "There’s no runner “{unknown}” here.";
|
|
428
|
+
readonly leastOneRunnerStay: "At least one runner has to stay on.";
|
|
429
|
+
readonly linkOpenRunnerTurned: "The link has to open a runner that’s turned on.";
|
|
430
|
+
readonly jobNotExistAlready: "This job doesn’t exist or has already finished.";
|
|
431
|
+
readonly accountAlreadySpace: "This account already has a space here.";
|
|
432
|
+
readonly accountAlreadySpaces: {
|
|
433
|
+
readonly one: "This account already has {count} space here.";
|
|
434
|
+
readonly other: "This account already has {count} spaces here.";
|
|
435
|
+
};
|
|
436
|
+
readonly roomMostPublishedWizards: {
|
|
437
|
+
readonly one: "There’s room for at most {count} published wizard here.";
|
|
438
|
+
readonly other: "There’s room for at most {count} published wizards here.";
|
|
439
|
+
};
|
|
440
|
+
readonly spaceIdAlreadyExists: "A space with this ID already exists here and didn’t come from your computer.";
|
|
441
|
+
readonly wizardIdAlreadyBelongs: "A wizard with this ID already belongs to another space here.";
|
|
442
|
+
readonly idAlreadyUse: "This ID is already in use here.";
|
|
443
|
+
readonly wizardNotSpace: "This wizard isn’t in the space.";
|
|
444
|
+
readonly invalidColumns: "Invalid columns.";
|
|
445
|
+
readonly spaceMostTables: {
|
|
446
|
+
readonly one: "A space can have at most {count} table.";
|
|
447
|
+
readonly other: "A space can have at most {count} tables.";
|
|
448
|
+
};
|
|
449
|
+
readonly tableBelongsOneWizard: "This table belongs to one of the wizard’s lists. Its columns come from the wizard.";
|
|
450
|
+
readonly entryAlreadyExists: "This entry already exists.";
|
|
451
|
+
readonly tableMostRows: {
|
|
452
|
+
readonly one: "A table can have at most {count} row.";
|
|
453
|
+
readonly other: "A table can have at most {count} rows.";
|
|
454
|
+
};
|
|
455
|
+
readonly spaceMostPages: {
|
|
456
|
+
readonly one: "A space can have at most {count} page.";
|
|
457
|
+
readonly other: "A space can have at most {count} pages.";
|
|
458
|
+
};
|
|
459
|
+
readonly pageNotSubpages: "This page can’t have subpages.";
|
|
460
|
+
readonly pageNotOwnSubpage: "A page can’t be its own subpage.";
|
|
461
|
+
readonly pageNeedsTitle: "A page needs a title.";
|
|
462
|
+
readonly unknownSpace: "There’s no space “{space}”.";
|
|
463
|
+
readonly noParentPage: "There’s no page with the key “{parent}” to put this page under.";
|
|
464
|
+
readonly onlyTeamAdmins: "Only team admins can do that. As a member, you can edit the wizards that already exist.";
|
|
465
|
+
readonly spaceEditedLocally: "You edit this space in engenty wizards on your computer, not here.";
|
|
466
|
+
readonly wizardsRunOncePublished: "Wizards run here once you publish them in engenty wizards on your computer. You build and edit them there.";
|
|
467
|
+
readonly logoImagePngSvg: "A logo is an image (PNG, SVG, JPEG, WebP).";
|
|
468
|
+
readonly patternImageSvgPng: "A pattern is an image (SVG, PNG, JPEG, WebP).";
|
|
469
|
+
readonly filesGoHere: "Images, videos, audio, PDFs, fonts, Lottie and 3D models go here. Texts to look things up in go under knowledge.";
|
|
470
|
+
readonly addressNotReached: "The address can’t be reached.";
|
|
471
|
+
readonly addressResponded: "The address responded with {status}.";
|
|
472
|
+
readonly addressLeadsWebPage: "The address leads to a web page, not an image.";
|
|
473
|
+
readonly addressFileTooLarge: "The file is too large.";
|
|
474
|
+
readonly onlyDocumentsIndex: "Only documents are in the index.";
|
|
475
|
+
readonly emptyTooLargeDocument: "“{name}” is empty or too large for a document.";
|
|
476
|
+
readonly spaceMostDocuments: {
|
|
477
|
+
readonly one: "A space can have at most {count} document.";
|
|
478
|
+
readonly other: "A space can have at most {count} documents.";
|
|
479
|
+
};
|
|
480
|
+
readonly accountSignedOut: "The account is signed out. Sign in again.";
|
|
481
|
+
readonly cloudNotReachedRight: "The cloud can’t be reached right now.";
|
|
482
|
+
readonly publishWizardFirst: "Publish the wizard first.";
|
|
483
|
+
readonly wizardJsonUnreadable: "This isn’t a wizard file: its wizard.json can’t be read.";
|
|
484
|
+
readonly wizardFileComesNewer: "This wizard file comes from a newer version, or it’s damaged. Update engenty wizards or export the wizard again.";
|
|
485
|
+
readonly fileOver5Mb: "{name} is larger than 5 MB.";
|
|
486
|
+
readonly wizardFileTooLarge: "The wizard file is too large: a workspace holds at most 200 files and 25 MB.";
|
|
487
|
+
readonly wizardFileNotOpened: "The wizard file can’t be opened. Export the wizard again and try once more.";
|
|
488
|
+
readonly wizardJsonMissing: "This isn’t a wizard file: wizard.json is missing.";
|
|
489
|
+
readonly notValidFilePath: "“{name}” isn’t a valid file path.";
|
|
490
|
+
readonly workspaceWizardFileLarger: "The workspace in the wizard file is larger than 25 MB.";
|
|
491
|
+
readonly unknownTemplate: "There’s no template “{starterId}”.";
|
|
492
|
+
readonly wizardChangedMeantime: "The wizard was changed in the meantime.";
|
|
493
|
+
readonly valueNotExist: "This value doesn’t exist.";
|
|
494
|
+
readonly nothingFiledUnderValue: "Nothing is filed under this value yet.";
|
|
495
|
+
readonly filmNotRenderedNeeds: "The film couldn’t be rendered. It needs ffmpeg and a timeline in the widget.";
|
|
496
|
+
readonly signInRefused: "The sign-in was refused{host}. Are the address and (app) password right? Gmail and Google Workspace need an app password and IMAP turned on.{answer}";
|
|
497
|
+
readonly serverSaid: " The server said: {answer}";
|
|
498
|
+
readonly viaAccountFailed: "Connecting through your engenty account didn’t work ({code}).";
|
|
499
|
+
readonly pluginInvalidInput: "“{id}” got invalid input: {path} – {problem}";
|
|
500
|
+
readonly filmClientStopped: "{name} stopped working on the film: {detail}. The work is saved. A new try carries on from there.";
|
|
501
|
+
readonly filmWorkSaved: "{problem} The work is saved. A new try carries on from there.";
|
|
502
|
+
readonly filmRenderFailed: "The film couldn’t be rendered: {detail}";
|
|
503
|
+
readonly commandNotStarted: "The command couldn’t start: {detail}";
|
|
504
|
+
readonly providerKeyMissing: "{provider} is chosen for {makes}, but no API key is set.";
|
|
505
|
+
readonly noModelFor: "No model is set up for {makes}.";
|
|
506
|
+
readonly noApiKeyFor: "No API key is set for {provider}.";
|
|
507
|
+
readonly freeTier: "Your AI Gateway key is on Vercel’s free tier, which doesn’t include {model}. Top up at Vercel ({url}) or choose another model under Settings → Models.";
|
|
508
|
+
readonly thisModel: "this model";
|
|
509
|
+
readonly quoted: "“{text}”";
|
|
510
|
+
readonly viewErrors: "The view has errors: {detail}";
|
|
511
|
+
readonly blockedSteps: "{steps}: {problem}";
|
|
512
|
+
readonly joined: "{first} {second}";
|
|
513
|
+
readonly stepFailed: "This step failed: {detail}";
|
|
514
|
+
readonly answersMissing: "Answers are missing or don’t fit: {answers}";
|
|
515
|
+
readonly fieldError: "{field} – {message}";
|
|
516
|
+
readonly templateNeedsPlugins: {
|
|
517
|
+
readonly one: "This template needs the plugin {plugins}: included with Pro on engenty.ai.";
|
|
518
|
+
readonly other: "This template needs the plugins {plugins}: included with Pro on engenty.ai.";
|
|
519
|
+
};
|
|
520
|
+
readonly pageMostChars: {
|
|
521
|
+
readonly one: "A page can have at most {count} character.";
|
|
522
|
+
readonly other: "A page can have at most {count} characters.";
|
|
523
|
+
};
|
|
524
|
+
readonly chooseFileUpTo: "Choose a file of {mb} MB or less.";
|
|
525
|
+
readonly roomMostFiles: {
|
|
526
|
+
readonly one: "There’s room for at most {count} file here.";
|
|
527
|
+
readonly other: "There’s room for at most {count} files here.";
|
|
528
|
+
};
|
|
529
|
+
readonly makesText: "text";
|
|
530
|
+
readonly makesImages: "images";
|
|
531
|
+
readonly makesVideos: "videos";
|
|
532
|
+
readonly makesSpeech: "speech";
|
|
533
|
+
readonly makesVoiceNotes: "voice notes";
|
|
534
|
+
};
|
|
535
|
+
|
|
536
|
+
declare type NumberShape = Named & {
|
|
537
|
+
kind: "number";
|
|
538
|
+
unit?: string;
|
|
539
|
+
};
|
|
540
|
+
|
|
541
|
+
declare interface ObjectShape extends Named {
|
|
542
|
+
kind: "object";
|
|
543
|
+
fields: Record<string, FieldShape>;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
/** A field of a wizard's page, as `PublicWizard.fields` lists it. */
|
|
547
|
+
declare interface PublicField {
|
|
548
|
+
id: string;
|
|
549
|
+
label: string;
|
|
550
|
+
kind: string;
|
|
551
|
+
options?: string[];
|
|
552
|
+
required?: boolean;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
/** An entry of a top-level list of the same output, by its `id`. */
|
|
556
|
+
declare type RefShape = Named & {
|
|
557
|
+
kind: "ref";
|
|
558
|
+
to: string;
|
|
559
|
+
};
|
|
560
|
+
|
|
561
|
+
/** What a running step asks the person; the step waits for the answer. */
|
|
562
|
+
declare type RunAsk = LoginAsk | ConfirmAsk;
|
|
563
|
+
|
|
564
|
+
declare interface RunEvent {
|
|
565
|
+
id: number;
|
|
566
|
+
at: string;
|
|
567
|
+
stepId: string | null;
|
|
568
|
+
type: "step_started" | "step_done" | "tool" | "info" | "error";
|
|
569
|
+
/** In German, as the run's log keeps it. */
|
|
570
|
+
message: string;
|
|
571
|
+
/** The same as a note a runner shows in the person's language; null for free text. */
|
|
572
|
+
note?: RunNote | null;
|
|
573
|
+
/** A picture of the run this is about (a photo being looked at, an image just made). */
|
|
574
|
+
asset?: string | null;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
/** A line of `RUN_NOTES` with what goes into its gaps. */
|
|
578
|
+
declare interface RunNote {
|
|
579
|
+
code: RunNoteCode;
|
|
580
|
+
params?: Record<string, NoteGap | undefined>;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
declare type RunNoteCode = keyof typeof NOTES_EN;
|
|
584
|
+
|
|
585
|
+
/**
|
|
586
|
+
* A run as the runner drives it: the view, and the commands a person can give. `useRun` in the
|
|
587
|
+
* studio (a server-sent stream), `useLocalRun` in the WordPress plugin (one request per step).
|
|
588
|
+
*/
|
|
589
|
+
declare interface RunSource {
|
|
590
|
+
view: RunView | null;
|
|
591
|
+
notFound: boolean;
|
|
592
|
+
error: string | null;
|
|
593
|
+
busy: boolean;
|
|
594
|
+
fieldErrors: Record<string, string>;
|
|
595
|
+
submitPage(stepId: string, values: Record<string, unknown>): Promise<boolean>;
|
|
596
|
+
accept(stepId: string, edits?: Record<string, string | Record<string, unknown>>): Promise<boolean>;
|
|
597
|
+
regenerate(stepId: string, target: string, note: string, items?: number[]): Promise<boolean>;
|
|
598
|
+
back(): Promise<boolean>;
|
|
599
|
+
retry(): Promise<boolean>;
|
|
600
|
+
/** A finished result's text in the language the run is read in (a translated wizard). */
|
|
601
|
+
translateResult?(stepId: string): Promise<boolean>;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
declare type RunStatus = "waiting_input" | "running" | "done" | "failed" | "cancelled";
|
|
605
|
+
|
|
606
|
+
/** How a wizard's pages look, taken from its space's brand (`runTheme`). Null: the runner's own. */
|
|
607
|
+
declare interface RunTheme {
|
|
608
|
+
/** Buttons and marks. */
|
|
609
|
+
accent: string | null;
|
|
610
|
+
/** What is there, done or good to know: ticks, tips, group headings. */
|
|
611
|
+
second: string | null;
|
|
612
|
+
/** The ground the pages stand on; its hue tints paper and ink. */
|
|
613
|
+
background: string | null;
|
|
614
|
+
/** Typefaces as CSS names them. */
|
|
615
|
+
display: string | null;
|
|
616
|
+
body: string | null;
|
|
617
|
+
/** The brand stands on a dark ground. */
|
|
618
|
+
dark: boolean;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
/** How a run in the viewer's language shows. */
|
|
622
|
+
declare interface RunTranslation {
|
|
623
|
+
/** The language, by its code ("fr"): any language, not only one of `LANGS`. */
|
|
624
|
+
lang: string;
|
|
625
|
+
/** What a choice shows, by its value. */
|
|
626
|
+
labels: Record<string, string>;
|
|
627
|
+
/** A model wrote some of it; false where the author wrote every text by hand. */
|
|
628
|
+
machine: boolean;
|
|
629
|
+
/** Results shown in this language, by step (`RunState.translated`). */
|
|
630
|
+
results: Record<string, string>;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
declare interface RunView {
|
|
634
|
+
id: string;
|
|
635
|
+
status: RunStatus;
|
|
636
|
+
mode: "test" | "live";
|
|
637
|
+
wizard: Pick<WizardDefinition, "title" | "description" | "avatar" | "intro">;
|
|
638
|
+
/** The language the wizard speaks, by its code: what is read aloud, and in which voice. */
|
|
639
|
+
lang: string;
|
|
640
|
+
/**
|
|
641
|
+
* The run in the viewer's language (a wizard translated on request): every text of the view
|
|
642
|
+
* is written in it, the choices keep their values and show `labels[value]`. Null: the
|
|
643
|
+
* wizard's own words.
|
|
644
|
+
*/
|
|
645
|
+
translation: RunTranslation | null;
|
|
646
|
+
/** A live conversation can be started on this run: the runtime has a model for it and the wizard has live voice or video on (always in a test). */
|
|
647
|
+
talk: boolean;
|
|
648
|
+
/** The step the person is on (interactive) or the one running. */
|
|
649
|
+
step: Step | null;
|
|
650
|
+
/** Pages and reviews answered before it, oldest first: what a chat shows above the current step. */
|
|
651
|
+
answered: Step[];
|
|
652
|
+
values: Record<string, unknown>;
|
|
653
|
+
/** What fields of the current page start with, from earlier steps (`prefill`). */
|
|
654
|
+
prefill: Record<string, unknown>;
|
|
655
|
+
/** What the `when` of the current page's fields read from before the page, by reference. */
|
|
656
|
+
known?: Record<string, unknown>;
|
|
657
|
+
/** Choices of the current page's fields that come from earlier data (`optionsFrom`). */
|
|
658
|
+
options?: Record<string, string[]>;
|
|
659
|
+
/** The same choices as cards, for fields that have `cards`. */
|
|
660
|
+
cards?: Record<string, CardOption[]>;
|
|
661
|
+
/** The decided fields (`ask`, `group`) of the current page that a decision kept. */
|
|
662
|
+
decidedFields?: string[];
|
|
663
|
+
/**
|
|
664
|
+
* What decided branches answered so far, by step, with the branches decided over (test runs:
|
|
665
|
+
* the studio shows them while the draft's branches are still those).
|
|
666
|
+
*/
|
|
667
|
+
decisions?: Record<string, ShownDecision>;
|
|
668
|
+
/** Choices of the current page that lead to a step without a model here, by field id. */
|
|
669
|
+
closed: Record<string, ClosedChoice>;
|
|
670
|
+
outputs: Record<string, StepOutput>;
|
|
671
|
+
/** Steps whose outputs the current step shows, with their definitions. */
|
|
672
|
+
shown: {
|
|
673
|
+
step: Step;
|
|
674
|
+
output: StepOutput | null;
|
|
675
|
+
formats: Format[];
|
|
676
|
+
label: string | null;
|
|
677
|
+
}[];
|
|
678
|
+
progress: {
|
|
679
|
+
done: number;
|
|
680
|
+
total: number;
|
|
681
|
+
};
|
|
682
|
+
canBack: boolean;
|
|
683
|
+
error: string | null;
|
|
684
|
+
events: RunEvent[];
|
|
685
|
+
brand: BrandView;
|
|
686
|
+
/** What the running step asks the person right now. */
|
|
687
|
+
ask: RunAsk | null;
|
|
688
|
+
/** Stored lists the current step shows (a page's list fields, a review, the result). */
|
|
689
|
+
lists: ShownList[];
|
|
690
|
+
/** The wizard's connections with what the person has connected. */
|
|
691
|
+
connections: ConnectionView[];
|
|
692
|
+
/** The wizard keeps things for the person between runs (lists, files, accounts). */
|
|
693
|
+
keeps: boolean;
|
|
694
|
+
/** Set once the result is shared. */
|
|
695
|
+
shareUrl: string | null;
|
|
696
|
+
/** When the run and its shared link are deleted; null = kept. */
|
|
697
|
+
expiresAt: string | null;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
/** `fields` only: a decision's levels, lowest first. */
|
|
701
|
+
declare type ScoreShape = Named & {
|
|
702
|
+
kind: "score";
|
|
703
|
+
options: string[];
|
|
704
|
+
};
|
|
705
|
+
|
|
706
|
+
/** A branch decision as the studio sees it: with the step's branches it was made over. */
|
|
707
|
+
declare interface ShownDecision extends BranchDecision {
|
|
708
|
+
over: NonNullable<Step["next"]>;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
/** A stored list the current step shows. */
|
|
712
|
+
declare interface ShownList {
|
|
713
|
+
def: ListDef;
|
|
714
|
+
rows: ListRow[];
|
|
715
|
+
formats: Format[];
|
|
716
|
+
label: string | null;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
declare type Step = z.infer<typeof stepSchema>;
|
|
720
|
+
|
|
721
|
+
declare interface StepOutput {
|
|
722
|
+
text?: string;
|
|
723
|
+
json?: unknown;
|
|
724
|
+
/** A decision step: how probable each answer is (1 or 0 where a language model answered). */
|
|
725
|
+
decided?: Record<string, number>;
|
|
726
|
+
/** A view from the surface catalog and the data it is bound to. */
|
|
727
|
+
surface?: Surface;
|
|
728
|
+
assets?: AssetRef[];
|
|
729
|
+
/**
|
|
730
|
+
* What the person did in the step's view, kept with the run: a checklist's ticks by component
|
|
731
|
+
* id, a widget's own state (`wizard.save`).
|
|
732
|
+
*/
|
|
733
|
+
view?: Record<string, unknown>;
|
|
734
|
+
/** Widgets: what loading it with this run's data showed. */
|
|
735
|
+
widget?: {
|
|
736
|
+
/** Seconds of animation the widget registered for video export; null = a still widget. */
|
|
737
|
+
duration: number | null;
|
|
738
|
+
errors: string[];
|
|
739
|
+
};
|
|
740
|
+
at: string;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
declare const stepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
744
|
+
id: z.ZodString;
|
|
745
|
+
title: z.ZodString;
|
|
746
|
+
description: z.ZodOptional<z.ZodString>;
|
|
747
|
+
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
748
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
749
|
+
field: z.ZodString;
|
|
750
|
+
op: z.ZodEnum<{
|
|
751
|
+
contains: "contains";
|
|
752
|
+
empty: "empty";
|
|
753
|
+
equals: "equals";
|
|
754
|
+
gt: "gt";
|
|
755
|
+
in: "in";
|
|
756
|
+
lt: "lt";
|
|
757
|
+
notEmpty: "notEmpty";
|
|
758
|
+
notEquals: "notEquals";
|
|
759
|
+
}>;
|
|
760
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
761
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
762
|
+
field: z.ZodString;
|
|
763
|
+
op: z.ZodEnum<{
|
|
764
|
+
contains: "contains";
|
|
765
|
+
empty: "empty";
|
|
766
|
+
equals: "equals";
|
|
767
|
+
gt: "gt";
|
|
768
|
+
in: "in";
|
|
769
|
+
lt: "lt";
|
|
770
|
+
notEmpty: "notEmpty";
|
|
771
|
+
notEquals: "notEquals";
|
|
772
|
+
}>;
|
|
773
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
774
|
+
}, z.core.$strip>>]>>;
|
|
775
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
776
|
+
goto: z.ZodString;
|
|
777
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
778
|
+
}, z.core.$strip>>>;
|
|
779
|
+
type: z.ZodLiteral<"page">;
|
|
780
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
781
|
+
id: z.ZodString;
|
|
782
|
+
label: z.ZodString;
|
|
783
|
+
kind: z.ZodEnum<{
|
|
784
|
+
audio: "audio";
|
|
785
|
+
color: "color";
|
|
786
|
+
connection: "connection";
|
|
787
|
+
date: "date";
|
|
788
|
+
email: "email";
|
|
789
|
+
file: "file";
|
|
790
|
+
image: "image";
|
|
791
|
+
items: "items";
|
|
792
|
+
list: "list";
|
|
793
|
+
location: "location";
|
|
794
|
+
multiselect: "multiselect";
|
|
795
|
+
number: "number";
|
|
796
|
+
select: "select";
|
|
797
|
+
signature: "signature";
|
|
798
|
+
slot: "slot";
|
|
799
|
+
text: "text";
|
|
800
|
+
textarea: "textarea";
|
|
801
|
+
toggle: "toggle";
|
|
802
|
+
url: "url";
|
|
803
|
+
}>;
|
|
804
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
805
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
806
|
+
help: z.ZodOptional<z.ZodString>;
|
|
807
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
808
|
+
default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
809
|
+
columns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
810
|
+
id: z.ZodString;
|
|
811
|
+
label: z.ZodString;
|
|
812
|
+
kind: z.ZodEnum<{
|
|
813
|
+
money: "money";
|
|
814
|
+
number: "number";
|
|
815
|
+
text: "text";
|
|
816
|
+
}>;
|
|
817
|
+
}, z.core.$strip>>>;
|
|
818
|
+
vat: z.ZodOptional<z.ZodObject<{
|
|
819
|
+
rate: z.ZodOptional<z.ZodNumber>;
|
|
820
|
+
field: z.ZodOptional<z.ZodString>;
|
|
821
|
+
}, z.core.$strip>>;
|
|
822
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
823
|
+
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
824
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
825
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
826
|
+
camera: z.ZodOptional<z.ZodBoolean>;
|
|
827
|
+
video: z.ZodOptional<z.ZodBoolean>;
|
|
828
|
+
listen: z.ZodOptional<z.ZodBoolean>;
|
|
829
|
+
scan: z.ZodOptional<z.ZodBoolean>;
|
|
830
|
+
connection: z.ZodOptional<z.ZodString>;
|
|
831
|
+
list: z.ZodOptional<z.ZodString>;
|
|
832
|
+
prefill: z.ZodOptional<z.ZodString>;
|
|
833
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
834
|
+
field: z.ZodString;
|
|
835
|
+
op: z.ZodEnum<{
|
|
836
|
+
contains: "contains";
|
|
837
|
+
empty: "empty";
|
|
838
|
+
equals: "equals";
|
|
839
|
+
gt: "gt";
|
|
840
|
+
in: "in";
|
|
841
|
+
lt: "lt";
|
|
842
|
+
notEmpty: "notEmpty";
|
|
843
|
+
notEquals: "notEquals";
|
|
844
|
+
}>;
|
|
845
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
846
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
847
|
+
field: z.ZodString;
|
|
848
|
+
op: z.ZodEnum<{
|
|
849
|
+
contains: "contains";
|
|
850
|
+
empty: "empty";
|
|
851
|
+
equals: "equals";
|
|
852
|
+
gt: "gt";
|
|
853
|
+
in: "in";
|
|
854
|
+
lt: "lt";
|
|
855
|
+
notEmpty: "notEmpty";
|
|
856
|
+
notEquals: "notEquals";
|
|
857
|
+
}>;
|
|
858
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
859
|
+
}, z.core.$strip>>]>>;
|
|
860
|
+
optionsFrom: z.ZodOptional<z.ZodString>;
|
|
861
|
+
cards: z.ZodOptional<z.ZodObject<{
|
|
862
|
+
label: z.ZodString;
|
|
863
|
+
value: z.ZodOptional<z.ZodString>;
|
|
864
|
+
image: z.ZodOptional<z.ZodString>;
|
|
865
|
+
subtitle: z.ZodOptional<z.ZodString>;
|
|
866
|
+
meta: z.ZodOptional<z.ZodString>;
|
|
867
|
+
link: z.ZodOptional<z.ZodString>;
|
|
868
|
+
}, z.core.$strip>>;
|
|
869
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
870
|
+
group: z.ZodOptional<z.ZodString>;
|
|
871
|
+
}, z.core.$strip>>;
|
|
872
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
873
|
+
id: z.ZodString;
|
|
874
|
+
instructions: z.ZodString;
|
|
875
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
876
|
+
}, z.core.$strip>>>;
|
|
877
|
+
cta: z.ZodOptional<z.ZodString>;
|
|
878
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
879
|
+
id: z.ZodString;
|
|
880
|
+
title: z.ZodString;
|
|
881
|
+
description: z.ZodOptional<z.ZodString>;
|
|
882
|
+
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
883
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
884
|
+
field: z.ZodString;
|
|
885
|
+
op: z.ZodEnum<{
|
|
886
|
+
contains: "contains";
|
|
887
|
+
empty: "empty";
|
|
888
|
+
equals: "equals";
|
|
889
|
+
gt: "gt";
|
|
890
|
+
in: "in";
|
|
891
|
+
lt: "lt";
|
|
892
|
+
notEmpty: "notEmpty";
|
|
893
|
+
notEquals: "notEquals";
|
|
894
|
+
}>;
|
|
895
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
896
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
897
|
+
field: z.ZodString;
|
|
898
|
+
op: z.ZodEnum<{
|
|
899
|
+
contains: "contains";
|
|
900
|
+
empty: "empty";
|
|
901
|
+
equals: "equals";
|
|
902
|
+
gt: "gt";
|
|
903
|
+
in: "in";
|
|
904
|
+
lt: "lt";
|
|
905
|
+
notEmpty: "notEmpty";
|
|
906
|
+
notEquals: "notEquals";
|
|
907
|
+
}>;
|
|
908
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
909
|
+
}, z.core.$strip>>]>>;
|
|
910
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
911
|
+
goto: z.ZodString;
|
|
912
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
913
|
+
}, z.core.$strip>>>;
|
|
914
|
+
type: z.ZodLiteral<"agent">;
|
|
915
|
+
instructions: z.ZodDefault<z.ZodString>;
|
|
916
|
+
call: z.ZodOptional<z.ZodObject<{
|
|
917
|
+
tool: z.ZodTemplateLiteral<`${string}.${string}`>;
|
|
918
|
+
input: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
919
|
+
}, z.core.$strip>>;
|
|
920
|
+
tools: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
921
|
+
browser: "browser";
|
|
922
|
+
code: "code";
|
|
923
|
+
http: "http";
|
|
924
|
+
image: "image";
|
|
925
|
+
pages: "pages";
|
|
926
|
+
sandbox: "sandbox";
|
|
927
|
+
web_fetch: "web_fetch";
|
|
928
|
+
web_search: "web_search";
|
|
929
|
+
}>, z.ZodTemplateLiteral<`${string}.${string}`>]>>>;
|
|
930
|
+
mcp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
931
|
+
connections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
932
|
+
output: z.ZodDefault<z.ZodObject<{
|
|
933
|
+
format: z.ZodEnum<{
|
|
934
|
+
json: "json";
|
|
935
|
+
markdown: "markdown";
|
|
936
|
+
text: "text";
|
|
937
|
+
}>;
|
|
938
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
939
|
+
id: z.ZodString;
|
|
940
|
+
kind: z.ZodEnum<{
|
|
941
|
+
choice: "choice";
|
|
942
|
+
list: "list";
|
|
943
|
+
number: "number";
|
|
944
|
+
score: "score";
|
|
945
|
+
table: "table";
|
|
946
|
+
text: "text";
|
|
947
|
+
yesno: "yesno";
|
|
948
|
+
}>;
|
|
949
|
+
description: z.ZodOptional<z.ZodString>;
|
|
950
|
+
columns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
951
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
952
|
+
}, z.core.$strip>>>;
|
|
953
|
+
schema: z.ZodOptional<z.ZodType<ObjectShape, unknown, z.core.$ZodTypeInternals<ObjectShape, unknown>>>;
|
|
954
|
+
surface: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodArray<z.ZodObject<{
|
|
955
|
+
id: z.ZodString;
|
|
956
|
+
component: z.ZodEnum<{
|
|
957
|
+
Actions: "Actions";
|
|
958
|
+
Badge: "Badge";
|
|
959
|
+
BarChart: "BarChart";
|
|
960
|
+
Button: "Button";
|
|
961
|
+
Callout: "Callout";
|
|
962
|
+
Card: "Card";
|
|
963
|
+
Checklist: "Checklist";
|
|
964
|
+
Chips: "Chips";
|
|
965
|
+
Column: "Column";
|
|
966
|
+
DetailGrid: "DetailGrid";
|
|
967
|
+
DonutChart: "DonutChart";
|
|
968
|
+
Fold: "Fold";
|
|
969
|
+
Grid: "Grid";
|
|
970
|
+
Group: "Group";
|
|
971
|
+
Image: "Image";
|
|
972
|
+
LineChart: "LineChart";
|
|
973
|
+
Link: "Link";
|
|
974
|
+
List: "List";
|
|
975
|
+
Metric: "Metric";
|
|
976
|
+
Row: "Row";
|
|
977
|
+
Steps: "Steps";
|
|
978
|
+
Table: "Table";
|
|
979
|
+
Tabs: "Tabs";
|
|
980
|
+
Text: "Text";
|
|
981
|
+
}>;
|
|
982
|
+
children: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodObject<{
|
|
983
|
+
path: z.ZodString;
|
|
984
|
+
componentId: z.ZodString;
|
|
985
|
+
}, z.core.$strip>]>>;
|
|
986
|
+
}, z.core.$loose>>]>>;
|
|
987
|
+
}, z.core.$strip>>;
|
|
988
|
+
model: z.ZodOptional<z.ZodEnum<{
|
|
989
|
+
classifier: "classifier";
|
|
990
|
+
high: "high";
|
|
991
|
+
highest: "highest";
|
|
992
|
+
standard: "standard";
|
|
993
|
+
}>>;
|
|
994
|
+
effort: z.ZodOptional<z.ZodEnum<{
|
|
995
|
+
high: "high";
|
|
996
|
+
low: "low";
|
|
997
|
+
medium: "medium";
|
|
998
|
+
}>>;
|
|
999
|
+
each: z.ZodOptional<z.ZodString>;
|
|
1000
|
+
working: z.ZodOptional<z.ZodString>;
|
|
1001
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1002
|
+
id: z.ZodString;
|
|
1003
|
+
title: z.ZodString;
|
|
1004
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1005
|
+
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1006
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1007
|
+
field: z.ZodString;
|
|
1008
|
+
op: z.ZodEnum<{
|
|
1009
|
+
contains: "contains";
|
|
1010
|
+
empty: "empty";
|
|
1011
|
+
equals: "equals";
|
|
1012
|
+
gt: "gt";
|
|
1013
|
+
in: "in";
|
|
1014
|
+
lt: "lt";
|
|
1015
|
+
notEmpty: "notEmpty";
|
|
1016
|
+
notEquals: "notEquals";
|
|
1017
|
+
}>;
|
|
1018
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1019
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1020
|
+
field: z.ZodString;
|
|
1021
|
+
op: z.ZodEnum<{
|
|
1022
|
+
contains: "contains";
|
|
1023
|
+
empty: "empty";
|
|
1024
|
+
equals: "equals";
|
|
1025
|
+
gt: "gt";
|
|
1026
|
+
in: "in";
|
|
1027
|
+
lt: "lt";
|
|
1028
|
+
notEmpty: "notEmpty";
|
|
1029
|
+
notEquals: "notEquals";
|
|
1030
|
+
}>;
|
|
1031
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1032
|
+
}, z.core.$strip>>]>>;
|
|
1033
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
1034
|
+
goto: z.ZodString;
|
|
1035
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1036
|
+
}, z.core.$strip>>>;
|
|
1037
|
+
type: z.ZodLiteral<"generate">;
|
|
1038
|
+
asset: z.ZodEnum<{
|
|
1039
|
+
dashboard: "dashboard";
|
|
1040
|
+
document: "document";
|
|
1041
|
+
image: "image";
|
|
1042
|
+
video: "video";
|
|
1043
|
+
voice: "voice";
|
|
1044
|
+
}>;
|
|
1045
|
+
prompt: z.ZodString;
|
|
1046
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
1047
|
+
aspectRatio: z.ZodOptional<z.ZodEnum<{
|
|
1048
|
+
"16:9": "16:9";
|
|
1049
|
+
"1:1": "1:1";
|
|
1050
|
+
"2:3": "2:3";
|
|
1051
|
+
"3:2": "3:2";
|
|
1052
|
+
"4:5": "4:5";
|
|
1053
|
+
"9:16": "9:16";
|
|
1054
|
+
}>>;
|
|
1055
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
1056
|
+
resolution: z.ZodOptional<z.ZodEnum<{
|
|
1057
|
+
"480p": "480p";
|
|
1058
|
+
"720p": "720p";
|
|
1059
|
+
}>>;
|
|
1060
|
+
style: z.ZodOptional<z.ZodString>;
|
|
1061
|
+
template: z.ZodOptional<z.ZodEnum<{
|
|
1062
|
+
briefing: "briefing";
|
|
1063
|
+
free: "free";
|
|
1064
|
+
invoice: "invoice";
|
|
1065
|
+
letter: "letter";
|
|
1066
|
+
offer: "offer";
|
|
1067
|
+
report: "report";
|
|
1068
|
+
}>>;
|
|
1069
|
+
}, z.core.$strip>>;
|
|
1070
|
+
referenceImage: z.ZodOptional<z.ZodString>;
|
|
1071
|
+
each: z.ZodOptional<z.ZodString>;
|
|
1072
|
+
model: z.ZodOptional<z.ZodEnum<{
|
|
1073
|
+
classifier: "classifier";
|
|
1074
|
+
high: "high";
|
|
1075
|
+
highest: "highest";
|
|
1076
|
+
standard: "standard";
|
|
1077
|
+
}>>;
|
|
1078
|
+
effort: z.ZodOptional<z.ZodEnum<{
|
|
1079
|
+
high: "high";
|
|
1080
|
+
low: "low";
|
|
1081
|
+
medium: "medium";
|
|
1082
|
+
}>>;
|
|
1083
|
+
working: z.ZodOptional<z.ZodString>;
|
|
1084
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1085
|
+
id: z.ZodString;
|
|
1086
|
+
title: z.ZodString;
|
|
1087
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1088
|
+
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1089
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1090
|
+
field: z.ZodString;
|
|
1091
|
+
op: z.ZodEnum<{
|
|
1092
|
+
contains: "contains";
|
|
1093
|
+
empty: "empty";
|
|
1094
|
+
equals: "equals";
|
|
1095
|
+
gt: "gt";
|
|
1096
|
+
in: "in";
|
|
1097
|
+
lt: "lt";
|
|
1098
|
+
notEmpty: "notEmpty";
|
|
1099
|
+
notEquals: "notEquals";
|
|
1100
|
+
}>;
|
|
1101
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1102
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1103
|
+
field: z.ZodString;
|
|
1104
|
+
op: z.ZodEnum<{
|
|
1105
|
+
contains: "contains";
|
|
1106
|
+
empty: "empty";
|
|
1107
|
+
equals: "equals";
|
|
1108
|
+
gt: "gt";
|
|
1109
|
+
in: "in";
|
|
1110
|
+
lt: "lt";
|
|
1111
|
+
notEmpty: "notEmpty";
|
|
1112
|
+
notEquals: "notEquals";
|
|
1113
|
+
}>;
|
|
1114
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1115
|
+
}, z.core.$strip>>]>>;
|
|
1116
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
1117
|
+
goto: z.ZodString;
|
|
1118
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1119
|
+
}, z.core.$strip>>>;
|
|
1120
|
+
type: z.ZodLiteral<"widget">;
|
|
1121
|
+
entry: z.ZodString;
|
|
1122
|
+
data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1123
|
+
sample: z.ZodOptional<z.ZodString>;
|
|
1124
|
+
layout: z.ZodOptional<z.ZodEnum<{
|
|
1125
|
+
fixed: "fixed";
|
|
1126
|
+
page: "page";
|
|
1127
|
+
}>>;
|
|
1128
|
+
size: z.ZodOptional<z.ZodObject<{
|
|
1129
|
+
width: z.ZodNumber;
|
|
1130
|
+
height: z.ZodNumber;
|
|
1131
|
+
}, z.core.$strip>>;
|
|
1132
|
+
video: z.ZodOptional<z.ZodBoolean>;
|
|
1133
|
+
working: z.ZodOptional<z.ZodString>;
|
|
1134
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1135
|
+
id: z.ZodString;
|
|
1136
|
+
title: z.ZodString;
|
|
1137
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1138
|
+
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1139
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1140
|
+
field: z.ZodString;
|
|
1141
|
+
op: z.ZodEnum<{
|
|
1142
|
+
contains: "contains";
|
|
1143
|
+
empty: "empty";
|
|
1144
|
+
equals: "equals";
|
|
1145
|
+
gt: "gt";
|
|
1146
|
+
in: "in";
|
|
1147
|
+
lt: "lt";
|
|
1148
|
+
notEmpty: "notEmpty";
|
|
1149
|
+
notEquals: "notEquals";
|
|
1150
|
+
}>;
|
|
1151
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1152
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1153
|
+
field: z.ZodString;
|
|
1154
|
+
op: z.ZodEnum<{
|
|
1155
|
+
contains: "contains";
|
|
1156
|
+
empty: "empty";
|
|
1157
|
+
equals: "equals";
|
|
1158
|
+
gt: "gt";
|
|
1159
|
+
in: "in";
|
|
1160
|
+
lt: "lt";
|
|
1161
|
+
notEmpty: "notEmpty";
|
|
1162
|
+
notEquals: "notEquals";
|
|
1163
|
+
}>;
|
|
1164
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1165
|
+
}, z.core.$strip>>]>>;
|
|
1166
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
1167
|
+
goto: z.ZodString;
|
|
1168
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1169
|
+
}, z.core.$strip>>>;
|
|
1170
|
+
type: z.ZodLiteral<"surface">;
|
|
1171
|
+
components: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1172
|
+
id: z.ZodString;
|
|
1173
|
+
component: z.ZodEnum<{
|
|
1174
|
+
Actions: "Actions";
|
|
1175
|
+
Badge: "Badge";
|
|
1176
|
+
BarChart: "BarChart";
|
|
1177
|
+
Button: "Button";
|
|
1178
|
+
Callout: "Callout";
|
|
1179
|
+
Card: "Card";
|
|
1180
|
+
Checklist: "Checklist";
|
|
1181
|
+
Chips: "Chips";
|
|
1182
|
+
Column: "Column";
|
|
1183
|
+
DetailGrid: "DetailGrid";
|
|
1184
|
+
DonutChart: "DonutChart";
|
|
1185
|
+
Fold: "Fold";
|
|
1186
|
+
Grid: "Grid";
|
|
1187
|
+
Group: "Group";
|
|
1188
|
+
Image: "Image";
|
|
1189
|
+
LineChart: "LineChart";
|
|
1190
|
+
Link: "Link";
|
|
1191
|
+
List: "List";
|
|
1192
|
+
Metric: "Metric";
|
|
1193
|
+
Row: "Row";
|
|
1194
|
+
Steps: "Steps";
|
|
1195
|
+
Table: "Table";
|
|
1196
|
+
Tabs: "Tabs";
|
|
1197
|
+
Text: "Text";
|
|
1198
|
+
}>;
|
|
1199
|
+
children: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodObject<{
|
|
1200
|
+
path: z.ZodString;
|
|
1201
|
+
componentId: z.ZodString;
|
|
1202
|
+
}, z.core.$strip>]>>;
|
|
1203
|
+
}, z.core.$loose>>>;
|
|
1204
|
+
candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1205
|
+
id: z.ZodString;
|
|
1206
|
+
description: z.ZodString;
|
|
1207
|
+
components: z.ZodArray<z.ZodObject<{
|
|
1208
|
+
id: z.ZodString;
|
|
1209
|
+
component: z.ZodEnum<{
|
|
1210
|
+
Actions: "Actions";
|
|
1211
|
+
Badge: "Badge";
|
|
1212
|
+
BarChart: "BarChart";
|
|
1213
|
+
Button: "Button";
|
|
1214
|
+
Callout: "Callout";
|
|
1215
|
+
Card: "Card";
|
|
1216
|
+
Checklist: "Checklist";
|
|
1217
|
+
Chips: "Chips";
|
|
1218
|
+
Column: "Column";
|
|
1219
|
+
DetailGrid: "DetailGrid";
|
|
1220
|
+
DonutChart: "DonutChart";
|
|
1221
|
+
Fold: "Fold";
|
|
1222
|
+
Grid: "Grid";
|
|
1223
|
+
Group: "Group";
|
|
1224
|
+
Image: "Image";
|
|
1225
|
+
LineChart: "LineChart";
|
|
1226
|
+
Link: "Link";
|
|
1227
|
+
List: "List";
|
|
1228
|
+
Metric: "Metric";
|
|
1229
|
+
Row: "Row";
|
|
1230
|
+
Steps: "Steps";
|
|
1231
|
+
Table: "Table";
|
|
1232
|
+
Tabs: "Tabs";
|
|
1233
|
+
Text: "Text";
|
|
1234
|
+
}>;
|
|
1235
|
+
children: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodObject<{
|
|
1236
|
+
path: z.ZodString;
|
|
1237
|
+
componentId: z.ZodString;
|
|
1238
|
+
}, z.core.$strip>]>>;
|
|
1239
|
+
}, z.core.$loose>>;
|
|
1240
|
+
group: z.ZodOptional<z.ZodString>;
|
|
1241
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1242
|
+
}, z.core.$strip>>>;
|
|
1243
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1244
|
+
id: z.ZodString;
|
|
1245
|
+
instructions: z.ZodString;
|
|
1246
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
1247
|
+
}, z.core.$strip>>>;
|
|
1248
|
+
data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1249
|
+
working: z.ZodOptional<z.ZodString>;
|
|
1250
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1251
|
+
id: z.ZodString;
|
|
1252
|
+
title: z.ZodString;
|
|
1253
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1254
|
+
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1255
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1256
|
+
field: z.ZodString;
|
|
1257
|
+
op: z.ZodEnum<{
|
|
1258
|
+
contains: "contains";
|
|
1259
|
+
empty: "empty";
|
|
1260
|
+
equals: "equals";
|
|
1261
|
+
gt: "gt";
|
|
1262
|
+
in: "in";
|
|
1263
|
+
lt: "lt";
|
|
1264
|
+
notEmpty: "notEmpty";
|
|
1265
|
+
notEquals: "notEquals";
|
|
1266
|
+
}>;
|
|
1267
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1268
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1269
|
+
field: z.ZodString;
|
|
1270
|
+
op: z.ZodEnum<{
|
|
1271
|
+
contains: "contains";
|
|
1272
|
+
empty: "empty";
|
|
1273
|
+
equals: "equals";
|
|
1274
|
+
gt: "gt";
|
|
1275
|
+
in: "in";
|
|
1276
|
+
lt: "lt";
|
|
1277
|
+
notEmpty: "notEmpty";
|
|
1278
|
+
notEquals: "notEquals";
|
|
1279
|
+
}>;
|
|
1280
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1281
|
+
}, z.core.$strip>>]>>;
|
|
1282
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
1283
|
+
goto: z.ZodString;
|
|
1284
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1285
|
+
}, z.core.$strip>>>;
|
|
1286
|
+
type: z.ZodLiteral<"film">;
|
|
1287
|
+
brief: z.ZodString;
|
|
1288
|
+
skills: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1289
|
+
kit: z.ZodOptional<z.ZodString>;
|
|
1290
|
+
inputs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1291
|
+
format: z.ZodDefault<z.ZodEnum<{
|
|
1292
|
+
"16:9": "16:9";
|
|
1293
|
+
"1:1": "1:1";
|
|
1294
|
+
"9:16": "9:16";
|
|
1295
|
+
}>>;
|
|
1296
|
+
from: z.ZodOptional<z.ZodString>;
|
|
1297
|
+
seconds: z.ZodOptional<z.ZodNumber>;
|
|
1298
|
+
model: z.ZodOptional<z.ZodEnum<{
|
|
1299
|
+
classifier: "classifier";
|
|
1300
|
+
high: "high";
|
|
1301
|
+
highest: "highest";
|
|
1302
|
+
standard: "standard";
|
|
1303
|
+
}>>;
|
|
1304
|
+
effort: z.ZodOptional<z.ZodEnum<{
|
|
1305
|
+
high: "high";
|
|
1306
|
+
low: "low";
|
|
1307
|
+
medium: "medium";
|
|
1308
|
+
}>>;
|
|
1309
|
+
working: z.ZodOptional<z.ZodString>;
|
|
1310
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1311
|
+
id: z.ZodString;
|
|
1312
|
+
title: z.ZodString;
|
|
1313
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1314
|
+
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1315
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1316
|
+
field: z.ZodString;
|
|
1317
|
+
op: z.ZodEnum<{
|
|
1318
|
+
contains: "contains";
|
|
1319
|
+
empty: "empty";
|
|
1320
|
+
equals: "equals";
|
|
1321
|
+
gt: "gt";
|
|
1322
|
+
in: "in";
|
|
1323
|
+
lt: "lt";
|
|
1324
|
+
notEmpty: "notEmpty";
|
|
1325
|
+
notEquals: "notEquals";
|
|
1326
|
+
}>;
|
|
1327
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1328
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1329
|
+
field: z.ZodString;
|
|
1330
|
+
op: z.ZodEnum<{
|
|
1331
|
+
contains: "contains";
|
|
1332
|
+
empty: "empty";
|
|
1333
|
+
equals: "equals";
|
|
1334
|
+
gt: "gt";
|
|
1335
|
+
in: "in";
|
|
1336
|
+
lt: "lt";
|
|
1337
|
+
notEmpty: "notEmpty";
|
|
1338
|
+
notEquals: "notEquals";
|
|
1339
|
+
}>;
|
|
1340
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1341
|
+
}, z.core.$strip>>]>>;
|
|
1342
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
1343
|
+
goto: z.ZodString;
|
|
1344
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1345
|
+
}, z.core.$strip>>>;
|
|
1346
|
+
type: z.ZodLiteral<"review">;
|
|
1347
|
+
show: z.ZodArray<z.ZodString>;
|
|
1348
|
+
edit: z.ZodOptional<z.ZodBoolean>;
|
|
1349
|
+
regenerate: z.ZodOptional<z.ZodBoolean>;
|
|
1350
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1351
|
+
id: z.ZodString;
|
|
1352
|
+
title: z.ZodString;
|
|
1353
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1354
|
+
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1355
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1356
|
+
field: z.ZodString;
|
|
1357
|
+
op: z.ZodEnum<{
|
|
1358
|
+
contains: "contains";
|
|
1359
|
+
empty: "empty";
|
|
1360
|
+
equals: "equals";
|
|
1361
|
+
gt: "gt";
|
|
1362
|
+
in: "in";
|
|
1363
|
+
lt: "lt";
|
|
1364
|
+
notEmpty: "notEmpty";
|
|
1365
|
+
notEquals: "notEquals";
|
|
1366
|
+
}>;
|
|
1367
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1368
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1369
|
+
field: z.ZodString;
|
|
1370
|
+
op: z.ZodEnum<{
|
|
1371
|
+
contains: "contains";
|
|
1372
|
+
empty: "empty";
|
|
1373
|
+
equals: "equals";
|
|
1374
|
+
gt: "gt";
|
|
1375
|
+
in: "in";
|
|
1376
|
+
lt: "lt";
|
|
1377
|
+
notEmpty: "notEmpty";
|
|
1378
|
+
notEquals: "notEquals";
|
|
1379
|
+
}>;
|
|
1380
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1381
|
+
}, z.core.$strip>>]>>;
|
|
1382
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
1383
|
+
goto: z.ZodString;
|
|
1384
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1385
|
+
}, z.core.$strip>>>;
|
|
1386
|
+
type: z.ZodLiteral<"result">;
|
|
1387
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1388
|
+
deliverables: z.ZodArray<z.ZodObject<{
|
|
1389
|
+
from: z.ZodString;
|
|
1390
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1391
|
+
formats: z.ZodArray<z.ZodEnum<{
|
|
1392
|
+
csv: "csv";
|
|
1393
|
+
docx: "docx";
|
|
1394
|
+
html: "html";
|
|
1395
|
+
json: "json";
|
|
1396
|
+
md: "md";
|
|
1397
|
+
mp3: "mp3";
|
|
1398
|
+
mp4: "mp4";
|
|
1399
|
+
pdf: "pdf";
|
|
1400
|
+
png: "png";
|
|
1401
|
+
txt: "txt";
|
|
1402
|
+
xlsx: "xlsx";
|
|
1403
|
+
zip: "zip";
|
|
1404
|
+
}>>;
|
|
1405
|
+
}, z.core.$strip>>;
|
|
1406
|
+
}, z.core.$strip>], "type">;
|
|
1407
|
+
|
|
1408
|
+
/** What a run shows: the components and the data they are bound to. */
|
|
1409
|
+
declare interface Surface {
|
|
1410
|
+
components: SurfaceComponent[];
|
|
1411
|
+
data: Record<string, unknown>;
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
declare type SurfaceComponent = z.infer<typeof surfaceComponentSchema>;
|
|
1415
|
+
|
|
1416
|
+
/** One component: its id, its kind, its children (ids, or a template repeated over an array). */
|
|
1417
|
+
declare const surfaceComponentSchema: z.ZodObject<{
|
|
1418
|
+
id: z.ZodString;
|
|
1419
|
+
component: z.ZodEnum<{
|
|
1420
|
+
Actions: "Actions";
|
|
1421
|
+
Badge: "Badge";
|
|
1422
|
+
BarChart: "BarChart";
|
|
1423
|
+
Button: "Button";
|
|
1424
|
+
Callout: "Callout";
|
|
1425
|
+
Card: "Card";
|
|
1426
|
+
Checklist: "Checklist";
|
|
1427
|
+
Chips: "Chips";
|
|
1428
|
+
Column: "Column";
|
|
1429
|
+
DetailGrid: "DetailGrid";
|
|
1430
|
+
DonutChart: "DonutChart";
|
|
1431
|
+
Fold: "Fold";
|
|
1432
|
+
Grid: "Grid";
|
|
1433
|
+
Group: "Group";
|
|
1434
|
+
Image: "Image";
|
|
1435
|
+
LineChart: "LineChart";
|
|
1436
|
+
Link: "Link";
|
|
1437
|
+
List: "List";
|
|
1438
|
+
Metric: "Metric";
|
|
1439
|
+
Row: "Row";
|
|
1440
|
+
Steps: "Steps";
|
|
1441
|
+
Table: "Table";
|
|
1442
|
+
Tabs: "Tabs";
|
|
1443
|
+
Text: "Text";
|
|
1444
|
+
}>;
|
|
1445
|
+
children: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodObject<{
|
|
1446
|
+
path: z.ZodString;
|
|
1447
|
+
componentId: z.ZodString;
|
|
1448
|
+
}, z.core.$strip>]>>;
|
|
1449
|
+
}, z.core.$loose>;
|
|
1450
|
+
|
|
1451
|
+
declare type TableColumn = z.infer<typeof tableColumnSchema>;
|
|
1452
|
+
|
|
1453
|
+
declare const tableColumnSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1454
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1455
|
+
edit: z.ZodOptional<z.ZodEnum<{
|
|
1456
|
+
inline: "inline";
|
|
1457
|
+
popout: "popout";
|
|
1458
|
+
}>>;
|
|
1459
|
+
id: z.ZodString;
|
|
1460
|
+
name: z.ZodString;
|
|
1461
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1462
|
+
format: z.ZodOptional<z.ZodObject<{
|
|
1463
|
+
style: z.ZodDefault<z.ZodEnum<{
|
|
1464
|
+
markdown: "markdown";
|
|
1465
|
+
multiline: "multiline";
|
|
1466
|
+
single: "single";
|
|
1467
|
+
}>>;
|
|
1468
|
+
}, z.core.$strip>>;
|
|
1469
|
+
type: z.ZodLiteral<"text">;
|
|
1470
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1471
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1472
|
+
edit: z.ZodOptional<z.ZodEnum<{
|
|
1473
|
+
inline: "inline";
|
|
1474
|
+
popout: "popout";
|
|
1475
|
+
}>>;
|
|
1476
|
+
id: z.ZodString;
|
|
1477
|
+
name: z.ZodString;
|
|
1478
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1479
|
+
format: z.ZodObject<{
|
|
1480
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
1481
|
+
fractionDigits: z.ZodOptional<z.ZodNumber>;
|
|
1482
|
+
grouping: z.ZodOptional<z.ZodBoolean>;
|
|
1483
|
+
style: z.ZodEnum<{
|
|
1484
|
+
currency: "currency";
|
|
1485
|
+
decimal: "decimal";
|
|
1486
|
+
integer: "integer";
|
|
1487
|
+
percent: "percent";
|
|
1488
|
+
}>;
|
|
1489
|
+
}, z.core.$strip>;
|
|
1490
|
+
type: z.ZodLiteral<"number">;
|
|
1491
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1492
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1493
|
+
edit: z.ZodOptional<z.ZodEnum<{
|
|
1494
|
+
inline: "inline";
|
|
1495
|
+
popout: "popout";
|
|
1496
|
+
}>>;
|
|
1497
|
+
id: z.ZodString;
|
|
1498
|
+
name: z.ZodString;
|
|
1499
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1500
|
+
format: z.ZodObject<{
|
|
1501
|
+
dateStyle: z.ZodOptional<z.ZodEnum<{
|
|
1502
|
+
iso: "iso";
|
|
1503
|
+
long: "long";
|
|
1504
|
+
medium: "medium";
|
|
1505
|
+
short: "short";
|
|
1506
|
+
}>>;
|
|
1507
|
+
kind: z.ZodEnum<{
|
|
1508
|
+
date: "date";
|
|
1509
|
+
datetime: "datetime";
|
|
1510
|
+
time: "time";
|
|
1511
|
+
}>;
|
|
1512
|
+
timePrecision: z.ZodOptional<z.ZodEnum<{
|
|
1513
|
+
hours: "hours";
|
|
1514
|
+
minutes: "minutes";
|
|
1515
|
+
seconds: "seconds";
|
|
1516
|
+
}>>;
|
|
1517
|
+
}, z.core.$strip>;
|
|
1518
|
+
type: z.ZodLiteral<"date">;
|
|
1519
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1520
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1521
|
+
edit: z.ZodOptional<z.ZodEnum<{
|
|
1522
|
+
inline: "inline";
|
|
1523
|
+
popout: "popout";
|
|
1524
|
+
}>>;
|
|
1525
|
+
id: z.ZodString;
|
|
1526
|
+
name: z.ZodString;
|
|
1527
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1528
|
+
format: z.ZodObject<{
|
|
1529
|
+
display: z.ZodEnum<{
|
|
1530
|
+
"decimal-hours": "decimal-hours";
|
|
1531
|
+
hms: "hms";
|
|
1532
|
+
hours: "hours";
|
|
1533
|
+
iso: "iso";
|
|
1534
|
+
minutes: "minutes";
|
|
1535
|
+
}>;
|
|
1536
|
+
inputUnit: z.ZodEnum<{
|
|
1537
|
+
days: "days";
|
|
1538
|
+
hours: "hours";
|
|
1539
|
+
milliseconds: "milliseconds";
|
|
1540
|
+
minutes: "minutes";
|
|
1541
|
+
seconds: "seconds";
|
|
1542
|
+
}>;
|
|
1543
|
+
}, z.core.$strip>;
|
|
1544
|
+
type: z.ZodLiteral<"duration">;
|
|
1545
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1546
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1547
|
+
edit: z.ZodOptional<z.ZodEnum<{
|
|
1548
|
+
inline: "inline";
|
|
1549
|
+
popout: "popout";
|
|
1550
|
+
}>>;
|
|
1551
|
+
id: z.ZodString;
|
|
1552
|
+
name: z.ZodString;
|
|
1553
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1554
|
+
format: z.ZodObject<{
|
|
1555
|
+
allowCustom: z.ZodBoolean;
|
|
1556
|
+
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
1557
|
+
options: z.ZodArray<z.ZodObject<{
|
|
1558
|
+
id: z.ZodString;
|
|
1559
|
+
label: z.ZodString;
|
|
1560
|
+
}, z.core.$strip>>;
|
|
1561
|
+
}, z.core.$strip>;
|
|
1562
|
+
type: z.ZodLiteral<"select">;
|
|
1563
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1564
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1565
|
+
edit: z.ZodOptional<z.ZodEnum<{
|
|
1566
|
+
inline: "inline";
|
|
1567
|
+
popout: "popout";
|
|
1568
|
+
}>>;
|
|
1569
|
+
id: z.ZodString;
|
|
1570
|
+
name: z.ZodString;
|
|
1571
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1572
|
+
type: z.ZodLiteral<"boolean">;
|
|
1573
|
+
}, z.core.$strip>], "type">;
|
|
1574
|
+
|
|
1575
|
+
/** `fields` only: rows of text or numbers; without columns the model picks them. */
|
|
1576
|
+
declare type TableShape = Named & {
|
|
1577
|
+
kind: "table";
|
|
1578
|
+
columns?: string[];
|
|
1579
|
+
};
|
|
1580
|
+
|
|
1581
|
+
declare type TextShape = Named & {
|
|
1582
|
+
kind: "text";
|
|
1583
|
+
long?: boolean;
|
|
1584
|
+
};
|
|
1585
|
+
|
|
1586
|
+
/**
|
|
1587
|
+
* One run, live: the runtime's stream of the whole view, plus the commands a person gives. The
|
|
1588
|
+
* same as the studio's `useRun` (apps/web/src/runner/useRun.ts), on the runner's own client, so
|
|
1589
|
+
* it talks to whichever runtime `configureWizards` named. `prefill` starts a page's fields with
|
|
1590
|
+
* answers the chat already knows; the person still sees and sends the page.
|
|
1591
|
+
*/
|
|
1592
|
+
export declare function useWizardRun(runId: string | null, prefill: Record<string, unknown> | undefined): RunSource;
|
|
1593
|
+
|
|
1594
|
+
/** The component an OpenUI library gets: `Wizard("<token>", "<note>", {prefill})`. */
|
|
1595
|
+
export declare const Wizard: DefinedComponent<ZodObject< {
|
|
1596
|
+
wizard: ZodString;
|
|
1597
|
+
note: ZodOptional<ZodString>;
|
|
1598
|
+
prefill: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
|
|
1599
|
+
}, $strip>>;
|
|
1600
|
+
|
|
1601
|
+
/**
|
|
1602
|
+
* The model's half of the Wizard component: its props, its description and the rules a system
|
|
1603
|
+
* prompt gets. Nothing here draws, so a chat server builds its prompt from this file alone.
|
|
1604
|
+
*/
|
|
1605
|
+
export declare const WIZARD_COMPONENT = "Wizard";
|
|
1606
|
+
|
|
1607
|
+
export declare const WIZARD_DESCRIPTION = "Runs a predefined wizard inline: its pages, AI steps, review and result, exactly as its author defined them. Use it whenever a listed wizard fits the request; never rebuild a wizard's pages with Form components.";
|
|
1608
|
+
|
|
1609
|
+
declare type WizardDefinition = z.infer<typeof wizardSchema>;
|
|
1610
|
+
|
|
1611
|
+
/** A wizard as the chat server lists it to the model. */
|
|
1612
|
+
export declare interface WizardInfo {
|
|
1613
|
+
token: string;
|
|
1614
|
+
title: string;
|
|
1615
|
+
description: string;
|
|
1616
|
+
fields: PublicField[];
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
export declare type WizardProps = z.infer<typeof wizardProps>;
|
|
1620
|
+
|
|
1621
|
+
export declare const wizardProps: z.ZodObject<{
|
|
1622
|
+
wizard: z.ZodString;
|
|
1623
|
+
note: z.ZodOptional<z.ZodString>;
|
|
1624
|
+
prefill: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1625
|
+
}, z.core.$strip>;
|
|
1626
|
+
|
|
1627
|
+
/** The rules a system prompt adds for the Wizard component: when to use it and which wizards exist. */
|
|
1628
|
+
export declare function wizardRules(wizards: WizardInfo[]): string[];
|
|
1629
|
+
|
|
1630
|
+
declare const wizardSchema: z.ZodObject<{
|
|
1631
|
+
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
1632
|
+
title: z.ZodString;
|
|
1633
|
+
description: z.ZodDefault<z.ZodString>;
|
|
1634
|
+
avatar: z.ZodDefault<z.ZodEnum<{
|
|
1635
|
+
bean: "bean";
|
|
1636
|
+
dome: "dome";
|
|
1637
|
+
drop: "drop";
|
|
1638
|
+
flame: "flame";
|
|
1639
|
+
oval: "oval";
|
|
1640
|
+
pebble: "pebble";
|
|
1641
|
+
round: "round";
|
|
1642
|
+
sprout: "sprout";
|
|
1643
|
+
tower: "tower";
|
|
1644
|
+
wedge: "wedge";
|
|
1645
|
+
}>>;
|
|
1646
|
+
intro: z.ZodOptional<z.ZodString>;
|
|
1647
|
+
lang: z.ZodOptional<z.ZodString>;
|
|
1648
|
+
lists: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1649
|
+
id: z.ZodString;
|
|
1650
|
+
title: z.ZodString;
|
|
1651
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1652
|
+
columns: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1653
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1654
|
+
edit: z.ZodOptional<z.ZodEnum<{
|
|
1655
|
+
inline: "inline";
|
|
1656
|
+
popout: "popout";
|
|
1657
|
+
}>>;
|
|
1658
|
+
id: z.ZodString;
|
|
1659
|
+
name: z.ZodString;
|
|
1660
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1661
|
+
format: z.ZodOptional<z.ZodObject<{
|
|
1662
|
+
style: z.ZodDefault<z.ZodEnum<{
|
|
1663
|
+
markdown: "markdown";
|
|
1664
|
+
multiline: "multiline";
|
|
1665
|
+
single: "single";
|
|
1666
|
+
}>>;
|
|
1667
|
+
}, z.core.$strip>>;
|
|
1668
|
+
type: z.ZodLiteral<"text">;
|
|
1669
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1670
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1671
|
+
edit: z.ZodOptional<z.ZodEnum<{
|
|
1672
|
+
inline: "inline";
|
|
1673
|
+
popout: "popout";
|
|
1674
|
+
}>>;
|
|
1675
|
+
id: z.ZodString;
|
|
1676
|
+
name: z.ZodString;
|
|
1677
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1678
|
+
format: z.ZodObject<{
|
|
1679
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
1680
|
+
fractionDigits: z.ZodOptional<z.ZodNumber>;
|
|
1681
|
+
grouping: z.ZodOptional<z.ZodBoolean>;
|
|
1682
|
+
style: z.ZodEnum<{
|
|
1683
|
+
currency: "currency";
|
|
1684
|
+
decimal: "decimal";
|
|
1685
|
+
integer: "integer";
|
|
1686
|
+
percent: "percent";
|
|
1687
|
+
}>;
|
|
1688
|
+
}, z.core.$strip>;
|
|
1689
|
+
type: z.ZodLiteral<"number">;
|
|
1690
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1691
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1692
|
+
edit: z.ZodOptional<z.ZodEnum<{
|
|
1693
|
+
inline: "inline";
|
|
1694
|
+
popout: "popout";
|
|
1695
|
+
}>>;
|
|
1696
|
+
id: z.ZodString;
|
|
1697
|
+
name: z.ZodString;
|
|
1698
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1699
|
+
format: z.ZodObject<{
|
|
1700
|
+
dateStyle: z.ZodOptional<z.ZodEnum<{
|
|
1701
|
+
iso: "iso";
|
|
1702
|
+
long: "long";
|
|
1703
|
+
medium: "medium";
|
|
1704
|
+
short: "short";
|
|
1705
|
+
}>>;
|
|
1706
|
+
kind: z.ZodEnum<{
|
|
1707
|
+
date: "date";
|
|
1708
|
+
datetime: "datetime";
|
|
1709
|
+
time: "time";
|
|
1710
|
+
}>;
|
|
1711
|
+
timePrecision: z.ZodOptional<z.ZodEnum<{
|
|
1712
|
+
hours: "hours";
|
|
1713
|
+
minutes: "minutes";
|
|
1714
|
+
seconds: "seconds";
|
|
1715
|
+
}>>;
|
|
1716
|
+
}, z.core.$strip>;
|
|
1717
|
+
type: z.ZodLiteral<"date">;
|
|
1718
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1719
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1720
|
+
edit: z.ZodOptional<z.ZodEnum<{
|
|
1721
|
+
inline: "inline";
|
|
1722
|
+
popout: "popout";
|
|
1723
|
+
}>>;
|
|
1724
|
+
id: z.ZodString;
|
|
1725
|
+
name: z.ZodString;
|
|
1726
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1727
|
+
format: z.ZodObject<{
|
|
1728
|
+
display: z.ZodEnum<{
|
|
1729
|
+
"decimal-hours": "decimal-hours";
|
|
1730
|
+
hms: "hms";
|
|
1731
|
+
hours: "hours";
|
|
1732
|
+
iso: "iso";
|
|
1733
|
+
minutes: "minutes";
|
|
1734
|
+
}>;
|
|
1735
|
+
inputUnit: z.ZodEnum<{
|
|
1736
|
+
days: "days";
|
|
1737
|
+
hours: "hours";
|
|
1738
|
+
milliseconds: "milliseconds";
|
|
1739
|
+
minutes: "minutes";
|
|
1740
|
+
seconds: "seconds";
|
|
1741
|
+
}>;
|
|
1742
|
+
}, z.core.$strip>;
|
|
1743
|
+
type: z.ZodLiteral<"duration">;
|
|
1744
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1745
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1746
|
+
edit: z.ZodOptional<z.ZodEnum<{
|
|
1747
|
+
inline: "inline";
|
|
1748
|
+
popout: "popout";
|
|
1749
|
+
}>>;
|
|
1750
|
+
id: z.ZodString;
|
|
1751
|
+
name: z.ZodString;
|
|
1752
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1753
|
+
format: z.ZodObject<{
|
|
1754
|
+
allowCustom: z.ZodBoolean;
|
|
1755
|
+
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
1756
|
+
options: z.ZodArray<z.ZodObject<{
|
|
1757
|
+
id: z.ZodString;
|
|
1758
|
+
label: z.ZodString;
|
|
1759
|
+
}, z.core.$strip>>;
|
|
1760
|
+
}, z.core.$strip>;
|
|
1761
|
+
type: z.ZodLiteral<"select">;
|
|
1762
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1763
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1764
|
+
edit: z.ZodOptional<z.ZodEnum<{
|
|
1765
|
+
inline: "inline";
|
|
1766
|
+
popout: "popout";
|
|
1767
|
+
}>>;
|
|
1768
|
+
id: z.ZodString;
|
|
1769
|
+
name: z.ZodString;
|
|
1770
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1771
|
+
type: z.ZodLiteral<"boolean">;
|
|
1772
|
+
}, z.core.$strip>], "type">>;
|
|
1773
|
+
key: z.ZodOptional<z.ZodString>;
|
|
1774
|
+
check: z.ZodOptional<z.ZodObject<{
|
|
1775
|
+
file: z.ZodOptional<z.ZodString>;
|
|
1776
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1777
|
+
}, z.core.$strip>>;
|
|
1778
|
+
shared: z.ZodOptional<z.ZodBoolean>;
|
|
1779
|
+
}, z.core.$strip>>>;
|
|
1780
|
+
connections: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1781
|
+
id: z.ZodString;
|
|
1782
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
1783
|
+
mail: "mail";
|
|
1784
|
+
}>>;
|
|
1785
|
+
connector: z.ZodOptional<z.ZodString>;
|
|
1786
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1787
|
+
policy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1788
|
+
allow: "allow";
|
|
1789
|
+
ask: "ask";
|
|
1790
|
+
}>>>;
|
|
1791
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1792
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1793
|
+
}, z.core.$strip>>>;
|
|
1794
|
+
steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1795
|
+
id: z.ZodString;
|
|
1796
|
+
title: z.ZodString;
|
|
1797
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1798
|
+
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1799
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1800
|
+
field: z.ZodString;
|
|
1801
|
+
op: z.ZodEnum<{
|
|
1802
|
+
contains: "contains";
|
|
1803
|
+
empty: "empty";
|
|
1804
|
+
equals: "equals";
|
|
1805
|
+
gt: "gt";
|
|
1806
|
+
in: "in";
|
|
1807
|
+
lt: "lt";
|
|
1808
|
+
notEmpty: "notEmpty";
|
|
1809
|
+
notEquals: "notEquals";
|
|
1810
|
+
}>;
|
|
1811
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1812
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1813
|
+
field: z.ZodString;
|
|
1814
|
+
op: z.ZodEnum<{
|
|
1815
|
+
contains: "contains";
|
|
1816
|
+
empty: "empty";
|
|
1817
|
+
equals: "equals";
|
|
1818
|
+
gt: "gt";
|
|
1819
|
+
in: "in";
|
|
1820
|
+
lt: "lt";
|
|
1821
|
+
notEmpty: "notEmpty";
|
|
1822
|
+
notEquals: "notEquals";
|
|
1823
|
+
}>;
|
|
1824
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1825
|
+
}, z.core.$strip>>]>>;
|
|
1826
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
1827
|
+
goto: z.ZodString;
|
|
1828
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1829
|
+
}, z.core.$strip>>>;
|
|
1830
|
+
type: z.ZodLiteral<"page">;
|
|
1831
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
1832
|
+
id: z.ZodString;
|
|
1833
|
+
label: z.ZodString;
|
|
1834
|
+
kind: z.ZodEnum<{
|
|
1835
|
+
audio: "audio";
|
|
1836
|
+
color: "color";
|
|
1837
|
+
connection: "connection";
|
|
1838
|
+
date: "date";
|
|
1839
|
+
email: "email";
|
|
1840
|
+
file: "file";
|
|
1841
|
+
image: "image";
|
|
1842
|
+
items: "items";
|
|
1843
|
+
list: "list";
|
|
1844
|
+
location: "location";
|
|
1845
|
+
multiselect: "multiselect";
|
|
1846
|
+
number: "number";
|
|
1847
|
+
select: "select";
|
|
1848
|
+
signature: "signature";
|
|
1849
|
+
slot: "slot";
|
|
1850
|
+
text: "text";
|
|
1851
|
+
textarea: "textarea";
|
|
1852
|
+
toggle: "toggle";
|
|
1853
|
+
url: "url";
|
|
1854
|
+
}>;
|
|
1855
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1856
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
1857
|
+
help: z.ZodOptional<z.ZodString>;
|
|
1858
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1859
|
+
default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1860
|
+
columns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1861
|
+
id: z.ZodString;
|
|
1862
|
+
label: z.ZodString;
|
|
1863
|
+
kind: z.ZodEnum<{
|
|
1864
|
+
money: "money";
|
|
1865
|
+
number: "number";
|
|
1866
|
+
text: "text";
|
|
1867
|
+
}>;
|
|
1868
|
+
}, z.core.$strip>>>;
|
|
1869
|
+
vat: z.ZodOptional<z.ZodObject<{
|
|
1870
|
+
rate: z.ZodOptional<z.ZodNumber>;
|
|
1871
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1872
|
+
}, z.core.$strip>>;
|
|
1873
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
1874
|
+
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
1875
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
1876
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1877
|
+
camera: z.ZodOptional<z.ZodBoolean>;
|
|
1878
|
+
video: z.ZodOptional<z.ZodBoolean>;
|
|
1879
|
+
listen: z.ZodOptional<z.ZodBoolean>;
|
|
1880
|
+
scan: z.ZodOptional<z.ZodBoolean>;
|
|
1881
|
+
connection: z.ZodOptional<z.ZodString>;
|
|
1882
|
+
list: z.ZodOptional<z.ZodString>;
|
|
1883
|
+
prefill: z.ZodOptional<z.ZodString>;
|
|
1884
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1885
|
+
field: z.ZodString;
|
|
1886
|
+
op: z.ZodEnum<{
|
|
1887
|
+
contains: "contains";
|
|
1888
|
+
empty: "empty";
|
|
1889
|
+
equals: "equals";
|
|
1890
|
+
gt: "gt";
|
|
1891
|
+
in: "in";
|
|
1892
|
+
lt: "lt";
|
|
1893
|
+
notEmpty: "notEmpty";
|
|
1894
|
+
notEquals: "notEquals";
|
|
1895
|
+
}>;
|
|
1896
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1897
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1898
|
+
field: z.ZodString;
|
|
1899
|
+
op: z.ZodEnum<{
|
|
1900
|
+
contains: "contains";
|
|
1901
|
+
empty: "empty";
|
|
1902
|
+
equals: "equals";
|
|
1903
|
+
gt: "gt";
|
|
1904
|
+
in: "in";
|
|
1905
|
+
lt: "lt";
|
|
1906
|
+
notEmpty: "notEmpty";
|
|
1907
|
+
notEquals: "notEquals";
|
|
1908
|
+
}>;
|
|
1909
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1910
|
+
}, z.core.$strip>>]>>;
|
|
1911
|
+
optionsFrom: z.ZodOptional<z.ZodString>;
|
|
1912
|
+
cards: z.ZodOptional<z.ZodObject<{
|
|
1913
|
+
label: z.ZodString;
|
|
1914
|
+
value: z.ZodOptional<z.ZodString>;
|
|
1915
|
+
image: z.ZodOptional<z.ZodString>;
|
|
1916
|
+
subtitle: z.ZodOptional<z.ZodString>;
|
|
1917
|
+
meta: z.ZodOptional<z.ZodString>;
|
|
1918
|
+
link: z.ZodOptional<z.ZodString>;
|
|
1919
|
+
}, z.core.$strip>>;
|
|
1920
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
1921
|
+
group: z.ZodOptional<z.ZodString>;
|
|
1922
|
+
}, z.core.$strip>>;
|
|
1923
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1924
|
+
id: z.ZodString;
|
|
1925
|
+
instructions: z.ZodString;
|
|
1926
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
1927
|
+
}, z.core.$strip>>>;
|
|
1928
|
+
cta: z.ZodOptional<z.ZodString>;
|
|
1929
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1930
|
+
id: z.ZodString;
|
|
1931
|
+
title: z.ZodString;
|
|
1932
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1933
|
+
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1934
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1935
|
+
field: z.ZodString;
|
|
1936
|
+
op: z.ZodEnum<{
|
|
1937
|
+
contains: "contains";
|
|
1938
|
+
empty: "empty";
|
|
1939
|
+
equals: "equals";
|
|
1940
|
+
gt: "gt";
|
|
1941
|
+
in: "in";
|
|
1942
|
+
lt: "lt";
|
|
1943
|
+
notEmpty: "notEmpty";
|
|
1944
|
+
notEquals: "notEquals";
|
|
1945
|
+
}>;
|
|
1946
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1947
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1948
|
+
field: z.ZodString;
|
|
1949
|
+
op: z.ZodEnum<{
|
|
1950
|
+
contains: "contains";
|
|
1951
|
+
empty: "empty";
|
|
1952
|
+
equals: "equals";
|
|
1953
|
+
gt: "gt";
|
|
1954
|
+
in: "in";
|
|
1955
|
+
lt: "lt";
|
|
1956
|
+
notEmpty: "notEmpty";
|
|
1957
|
+
notEquals: "notEquals";
|
|
1958
|
+
}>;
|
|
1959
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1960
|
+
}, z.core.$strip>>]>>;
|
|
1961
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
1962
|
+
goto: z.ZodString;
|
|
1963
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1964
|
+
}, z.core.$strip>>>;
|
|
1965
|
+
type: z.ZodLiteral<"agent">;
|
|
1966
|
+
instructions: z.ZodDefault<z.ZodString>;
|
|
1967
|
+
call: z.ZodOptional<z.ZodObject<{
|
|
1968
|
+
tool: z.ZodTemplateLiteral<`${string}.${string}`>;
|
|
1969
|
+
input: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1970
|
+
}, z.core.$strip>>;
|
|
1971
|
+
tools: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1972
|
+
browser: "browser";
|
|
1973
|
+
code: "code";
|
|
1974
|
+
http: "http";
|
|
1975
|
+
image: "image";
|
|
1976
|
+
pages: "pages";
|
|
1977
|
+
sandbox: "sandbox";
|
|
1978
|
+
web_fetch: "web_fetch";
|
|
1979
|
+
web_search: "web_search";
|
|
1980
|
+
}>, z.ZodTemplateLiteral<`${string}.${string}`>]>>>;
|
|
1981
|
+
mcp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1982
|
+
connections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1983
|
+
output: z.ZodDefault<z.ZodObject<{
|
|
1984
|
+
format: z.ZodEnum<{
|
|
1985
|
+
json: "json";
|
|
1986
|
+
markdown: "markdown";
|
|
1987
|
+
text: "text";
|
|
1988
|
+
}>;
|
|
1989
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1990
|
+
id: z.ZodString;
|
|
1991
|
+
kind: z.ZodEnum<{
|
|
1992
|
+
choice: "choice";
|
|
1993
|
+
list: "list";
|
|
1994
|
+
number: "number";
|
|
1995
|
+
score: "score";
|
|
1996
|
+
table: "table";
|
|
1997
|
+
text: "text";
|
|
1998
|
+
yesno: "yesno";
|
|
1999
|
+
}>;
|
|
2000
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2001
|
+
columns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2002
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2003
|
+
}, z.core.$strip>>>;
|
|
2004
|
+
schema: z.ZodOptional<z.ZodType<ObjectShape, unknown, z.core.$ZodTypeInternals<ObjectShape, unknown>>>;
|
|
2005
|
+
surface: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodArray<z.ZodObject<{
|
|
2006
|
+
id: z.ZodString;
|
|
2007
|
+
component: z.ZodEnum<{
|
|
2008
|
+
Actions: "Actions";
|
|
2009
|
+
Badge: "Badge";
|
|
2010
|
+
BarChart: "BarChart";
|
|
2011
|
+
Button: "Button";
|
|
2012
|
+
Callout: "Callout";
|
|
2013
|
+
Card: "Card";
|
|
2014
|
+
Checklist: "Checklist";
|
|
2015
|
+
Chips: "Chips";
|
|
2016
|
+
Column: "Column";
|
|
2017
|
+
DetailGrid: "DetailGrid";
|
|
2018
|
+
DonutChart: "DonutChart";
|
|
2019
|
+
Fold: "Fold";
|
|
2020
|
+
Grid: "Grid";
|
|
2021
|
+
Group: "Group";
|
|
2022
|
+
Image: "Image";
|
|
2023
|
+
LineChart: "LineChart";
|
|
2024
|
+
Link: "Link";
|
|
2025
|
+
List: "List";
|
|
2026
|
+
Metric: "Metric";
|
|
2027
|
+
Row: "Row";
|
|
2028
|
+
Steps: "Steps";
|
|
2029
|
+
Table: "Table";
|
|
2030
|
+
Tabs: "Tabs";
|
|
2031
|
+
Text: "Text";
|
|
2032
|
+
}>;
|
|
2033
|
+
children: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodObject<{
|
|
2034
|
+
path: z.ZodString;
|
|
2035
|
+
componentId: z.ZodString;
|
|
2036
|
+
}, z.core.$strip>]>>;
|
|
2037
|
+
}, z.core.$loose>>]>>;
|
|
2038
|
+
}, z.core.$strip>>;
|
|
2039
|
+
model: z.ZodOptional<z.ZodEnum<{
|
|
2040
|
+
classifier: "classifier";
|
|
2041
|
+
high: "high";
|
|
2042
|
+
highest: "highest";
|
|
2043
|
+
standard: "standard";
|
|
2044
|
+
}>>;
|
|
2045
|
+
effort: z.ZodOptional<z.ZodEnum<{
|
|
2046
|
+
high: "high";
|
|
2047
|
+
low: "low";
|
|
2048
|
+
medium: "medium";
|
|
2049
|
+
}>>;
|
|
2050
|
+
each: z.ZodOptional<z.ZodString>;
|
|
2051
|
+
working: z.ZodOptional<z.ZodString>;
|
|
2052
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2053
|
+
id: z.ZodString;
|
|
2054
|
+
title: z.ZodString;
|
|
2055
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2056
|
+
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2057
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
2058
|
+
field: z.ZodString;
|
|
2059
|
+
op: z.ZodEnum<{
|
|
2060
|
+
contains: "contains";
|
|
2061
|
+
empty: "empty";
|
|
2062
|
+
equals: "equals";
|
|
2063
|
+
gt: "gt";
|
|
2064
|
+
in: "in";
|
|
2065
|
+
lt: "lt";
|
|
2066
|
+
notEmpty: "notEmpty";
|
|
2067
|
+
notEquals: "notEquals";
|
|
2068
|
+
}>;
|
|
2069
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
2070
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
2071
|
+
field: z.ZodString;
|
|
2072
|
+
op: z.ZodEnum<{
|
|
2073
|
+
contains: "contains";
|
|
2074
|
+
empty: "empty";
|
|
2075
|
+
equals: "equals";
|
|
2076
|
+
gt: "gt";
|
|
2077
|
+
in: "in";
|
|
2078
|
+
lt: "lt";
|
|
2079
|
+
notEmpty: "notEmpty";
|
|
2080
|
+
notEquals: "notEquals";
|
|
2081
|
+
}>;
|
|
2082
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
2083
|
+
}, z.core.$strip>>]>>;
|
|
2084
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
2085
|
+
goto: z.ZodString;
|
|
2086
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
2087
|
+
}, z.core.$strip>>>;
|
|
2088
|
+
type: z.ZodLiteral<"generate">;
|
|
2089
|
+
asset: z.ZodEnum<{
|
|
2090
|
+
dashboard: "dashboard";
|
|
2091
|
+
document: "document";
|
|
2092
|
+
image: "image";
|
|
2093
|
+
video: "video";
|
|
2094
|
+
voice: "voice";
|
|
2095
|
+
}>;
|
|
2096
|
+
prompt: z.ZodString;
|
|
2097
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
2098
|
+
aspectRatio: z.ZodOptional<z.ZodEnum<{
|
|
2099
|
+
"16:9": "16:9";
|
|
2100
|
+
"1:1": "1:1";
|
|
2101
|
+
"2:3": "2:3";
|
|
2102
|
+
"3:2": "3:2";
|
|
2103
|
+
"4:5": "4:5";
|
|
2104
|
+
"9:16": "9:16";
|
|
2105
|
+
}>>;
|
|
2106
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
2107
|
+
resolution: z.ZodOptional<z.ZodEnum<{
|
|
2108
|
+
"480p": "480p";
|
|
2109
|
+
"720p": "720p";
|
|
2110
|
+
}>>;
|
|
2111
|
+
style: z.ZodOptional<z.ZodString>;
|
|
2112
|
+
template: z.ZodOptional<z.ZodEnum<{
|
|
2113
|
+
briefing: "briefing";
|
|
2114
|
+
free: "free";
|
|
2115
|
+
invoice: "invoice";
|
|
2116
|
+
letter: "letter";
|
|
2117
|
+
offer: "offer";
|
|
2118
|
+
report: "report";
|
|
2119
|
+
}>>;
|
|
2120
|
+
}, z.core.$strip>>;
|
|
2121
|
+
referenceImage: z.ZodOptional<z.ZodString>;
|
|
2122
|
+
each: z.ZodOptional<z.ZodString>;
|
|
2123
|
+
model: z.ZodOptional<z.ZodEnum<{
|
|
2124
|
+
classifier: "classifier";
|
|
2125
|
+
high: "high";
|
|
2126
|
+
highest: "highest";
|
|
2127
|
+
standard: "standard";
|
|
2128
|
+
}>>;
|
|
2129
|
+
effort: z.ZodOptional<z.ZodEnum<{
|
|
2130
|
+
high: "high";
|
|
2131
|
+
low: "low";
|
|
2132
|
+
medium: "medium";
|
|
2133
|
+
}>>;
|
|
2134
|
+
working: z.ZodOptional<z.ZodString>;
|
|
2135
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2136
|
+
id: z.ZodString;
|
|
2137
|
+
title: z.ZodString;
|
|
2138
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2139
|
+
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2140
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
2141
|
+
field: z.ZodString;
|
|
2142
|
+
op: z.ZodEnum<{
|
|
2143
|
+
contains: "contains";
|
|
2144
|
+
empty: "empty";
|
|
2145
|
+
equals: "equals";
|
|
2146
|
+
gt: "gt";
|
|
2147
|
+
in: "in";
|
|
2148
|
+
lt: "lt";
|
|
2149
|
+
notEmpty: "notEmpty";
|
|
2150
|
+
notEquals: "notEquals";
|
|
2151
|
+
}>;
|
|
2152
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
2153
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
2154
|
+
field: z.ZodString;
|
|
2155
|
+
op: z.ZodEnum<{
|
|
2156
|
+
contains: "contains";
|
|
2157
|
+
empty: "empty";
|
|
2158
|
+
equals: "equals";
|
|
2159
|
+
gt: "gt";
|
|
2160
|
+
in: "in";
|
|
2161
|
+
lt: "lt";
|
|
2162
|
+
notEmpty: "notEmpty";
|
|
2163
|
+
notEquals: "notEquals";
|
|
2164
|
+
}>;
|
|
2165
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
2166
|
+
}, z.core.$strip>>]>>;
|
|
2167
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
2168
|
+
goto: z.ZodString;
|
|
2169
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
2170
|
+
}, z.core.$strip>>>;
|
|
2171
|
+
type: z.ZodLiteral<"widget">;
|
|
2172
|
+
entry: z.ZodString;
|
|
2173
|
+
data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2174
|
+
sample: z.ZodOptional<z.ZodString>;
|
|
2175
|
+
layout: z.ZodOptional<z.ZodEnum<{
|
|
2176
|
+
fixed: "fixed";
|
|
2177
|
+
page: "page";
|
|
2178
|
+
}>>;
|
|
2179
|
+
size: z.ZodOptional<z.ZodObject<{
|
|
2180
|
+
width: z.ZodNumber;
|
|
2181
|
+
height: z.ZodNumber;
|
|
2182
|
+
}, z.core.$strip>>;
|
|
2183
|
+
video: z.ZodOptional<z.ZodBoolean>;
|
|
2184
|
+
working: z.ZodOptional<z.ZodString>;
|
|
2185
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2186
|
+
id: z.ZodString;
|
|
2187
|
+
title: z.ZodString;
|
|
2188
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2189
|
+
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2190
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
2191
|
+
field: z.ZodString;
|
|
2192
|
+
op: z.ZodEnum<{
|
|
2193
|
+
contains: "contains";
|
|
2194
|
+
empty: "empty";
|
|
2195
|
+
equals: "equals";
|
|
2196
|
+
gt: "gt";
|
|
2197
|
+
in: "in";
|
|
2198
|
+
lt: "lt";
|
|
2199
|
+
notEmpty: "notEmpty";
|
|
2200
|
+
notEquals: "notEquals";
|
|
2201
|
+
}>;
|
|
2202
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
2203
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
2204
|
+
field: z.ZodString;
|
|
2205
|
+
op: z.ZodEnum<{
|
|
2206
|
+
contains: "contains";
|
|
2207
|
+
empty: "empty";
|
|
2208
|
+
equals: "equals";
|
|
2209
|
+
gt: "gt";
|
|
2210
|
+
in: "in";
|
|
2211
|
+
lt: "lt";
|
|
2212
|
+
notEmpty: "notEmpty";
|
|
2213
|
+
notEquals: "notEquals";
|
|
2214
|
+
}>;
|
|
2215
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
2216
|
+
}, z.core.$strip>>]>>;
|
|
2217
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
2218
|
+
goto: z.ZodString;
|
|
2219
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
2220
|
+
}, z.core.$strip>>>;
|
|
2221
|
+
type: z.ZodLiteral<"surface">;
|
|
2222
|
+
components: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2223
|
+
id: z.ZodString;
|
|
2224
|
+
component: z.ZodEnum<{
|
|
2225
|
+
Actions: "Actions";
|
|
2226
|
+
Badge: "Badge";
|
|
2227
|
+
BarChart: "BarChart";
|
|
2228
|
+
Button: "Button";
|
|
2229
|
+
Callout: "Callout";
|
|
2230
|
+
Card: "Card";
|
|
2231
|
+
Checklist: "Checklist";
|
|
2232
|
+
Chips: "Chips";
|
|
2233
|
+
Column: "Column";
|
|
2234
|
+
DetailGrid: "DetailGrid";
|
|
2235
|
+
DonutChart: "DonutChart";
|
|
2236
|
+
Fold: "Fold";
|
|
2237
|
+
Grid: "Grid";
|
|
2238
|
+
Group: "Group";
|
|
2239
|
+
Image: "Image";
|
|
2240
|
+
LineChart: "LineChart";
|
|
2241
|
+
Link: "Link";
|
|
2242
|
+
List: "List";
|
|
2243
|
+
Metric: "Metric";
|
|
2244
|
+
Row: "Row";
|
|
2245
|
+
Steps: "Steps";
|
|
2246
|
+
Table: "Table";
|
|
2247
|
+
Tabs: "Tabs";
|
|
2248
|
+
Text: "Text";
|
|
2249
|
+
}>;
|
|
2250
|
+
children: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodObject<{
|
|
2251
|
+
path: z.ZodString;
|
|
2252
|
+
componentId: z.ZodString;
|
|
2253
|
+
}, z.core.$strip>]>>;
|
|
2254
|
+
}, z.core.$loose>>>;
|
|
2255
|
+
candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2256
|
+
id: z.ZodString;
|
|
2257
|
+
description: z.ZodString;
|
|
2258
|
+
components: z.ZodArray<z.ZodObject<{
|
|
2259
|
+
id: z.ZodString;
|
|
2260
|
+
component: z.ZodEnum<{
|
|
2261
|
+
Actions: "Actions";
|
|
2262
|
+
Badge: "Badge";
|
|
2263
|
+
BarChart: "BarChart";
|
|
2264
|
+
Button: "Button";
|
|
2265
|
+
Callout: "Callout";
|
|
2266
|
+
Card: "Card";
|
|
2267
|
+
Checklist: "Checklist";
|
|
2268
|
+
Chips: "Chips";
|
|
2269
|
+
Column: "Column";
|
|
2270
|
+
DetailGrid: "DetailGrid";
|
|
2271
|
+
DonutChart: "DonutChart";
|
|
2272
|
+
Fold: "Fold";
|
|
2273
|
+
Grid: "Grid";
|
|
2274
|
+
Group: "Group";
|
|
2275
|
+
Image: "Image";
|
|
2276
|
+
LineChart: "LineChart";
|
|
2277
|
+
Link: "Link";
|
|
2278
|
+
List: "List";
|
|
2279
|
+
Metric: "Metric";
|
|
2280
|
+
Row: "Row";
|
|
2281
|
+
Steps: "Steps";
|
|
2282
|
+
Table: "Table";
|
|
2283
|
+
Tabs: "Tabs";
|
|
2284
|
+
Text: "Text";
|
|
2285
|
+
}>;
|
|
2286
|
+
children: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodObject<{
|
|
2287
|
+
path: z.ZodString;
|
|
2288
|
+
componentId: z.ZodString;
|
|
2289
|
+
}, z.core.$strip>]>>;
|
|
2290
|
+
}, z.core.$loose>>;
|
|
2291
|
+
group: z.ZodOptional<z.ZodString>;
|
|
2292
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
2293
|
+
}, z.core.$strip>>>;
|
|
2294
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2295
|
+
id: z.ZodString;
|
|
2296
|
+
instructions: z.ZodString;
|
|
2297
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
2298
|
+
}, z.core.$strip>>>;
|
|
2299
|
+
data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2300
|
+
working: z.ZodOptional<z.ZodString>;
|
|
2301
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2302
|
+
id: z.ZodString;
|
|
2303
|
+
title: z.ZodString;
|
|
2304
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2305
|
+
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2306
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
2307
|
+
field: z.ZodString;
|
|
2308
|
+
op: z.ZodEnum<{
|
|
2309
|
+
contains: "contains";
|
|
2310
|
+
empty: "empty";
|
|
2311
|
+
equals: "equals";
|
|
2312
|
+
gt: "gt";
|
|
2313
|
+
in: "in";
|
|
2314
|
+
lt: "lt";
|
|
2315
|
+
notEmpty: "notEmpty";
|
|
2316
|
+
notEquals: "notEquals";
|
|
2317
|
+
}>;
|
|
2318
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
2319
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
2320
|
+
field: z.ZodString;
|
|
2321
|
+
op: z.ZodEnum<{
|
|
2322
|
+
contains: "contains";
|
|
2323
|
+
empty: "empty";
|
|
2324
|
+
equals: "equals";
|
|
2325
|
+
gt: "gt";
|
|
2326
|
+
in: "in";
|
|
2327
|
+
lt: "lt";
|
|
2328
|
+
notEmpty: "notEmpty";
|
|
2329
|
+
notEquals: "notEquals";
|
|
2330
|
+
}>;
|
|
2331
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
2332
|
+
}, z.core.$strip>>]>>;
|
|
2333
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
2334
|
+
goto: z.ZodString;
|
|
2335
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
2336
|
+
}, z.core.$strip>>>;
|
|
2337
|
+
type: z.ZodLiteral<"film">;
|
|
2338
|
+
brief: z.ZodString;
|
|
2339
|
+
skills: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2340
|
+
kit: z.ZodOptional<z.ZodString>;
|
|
2341
|
+
inputs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2342
|
+
format: z.ZodDefault<z.ZodEnum<{
|
|
2343
|
+
"16:9": "16:9";
|
|
2344
|
+
"1:1": "1:1";
|
|
2345
|
+
"9:16": "9:16";
|
|
2346
|
+
}>>;
|
|
2347
|
+
from: z.ZodOptional<z.ZodString>;
|
|
2348
|
+
seconds: z.ZodOptional<z.ZodNumber>;
|
|
2349
|
+
model: z.ZodOptional<z.ZodEnum<{
|
|
2350
|
+
classifier: "classifier";
|
|
2351
|
+
high: "high";
|
|
2352
|
+
highest: "highest";
|
|
2353
|
+
standard: "standard";
|
|
2354
|
+
}>>;
|
|
2355
|
+
effort: z.ZodOptional<z.ZodEnum<{
|
|
2356
|
+
high: "high";
|
|
2357
|
+
low: "low";
|
|
2358
|
+
medium: "medium";
|
|
2359
|
+
}>>;
|
|
2360
|
+
working: z.ZodOptional<z.ZodString>;
|
|
2361
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2362
|
+
id: z.ZodString;
|
|
2363
|
+
title: z.ZodString;
|
|
2364
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2365
|
+
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2366
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
2367
|
+
field: z.ZodString;
|
|
2368
|
+
op: z.ZodEnum<{
|
|
2369
|
+
contains: "contains";
|
|
2370
|
+
empty: "empty";
|
|
2371
|
+
equals: "equals";
|
|
2372
|
+
gt: "gt";
|
|
2373
|
+
in: "in";
|
|
2374
|
+
lt: "lt";
|
|
2375
|
+
notEmpty: "notEmpty";
|
|
2376
|
+
notEquals: "notEquals";
|
|
2377
|
+
}>;
|
|
2378
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
2379
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
2380
|
+
field: z.ZodString;
|
|
2381
|
+
op: z.ZodEnum<{
|
|
2382
|
+
contains: "contains";
|
|
2383
|
+
empty: "empty";
|
|
2384
|
+
equals: "equals";
|
|
2385
|
+
gt: "gt";
|
|
2386
|
+
in: "in";
|
|
2387
|
+
lt: "lt";
|
|
2388
|
+
notEmpty: "notEmpty";
|
|
2389
|
+
notEquals: "notEquals";
|
|
2390
|
+
}>;
|
|
2391
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
2392
|
+
}, z.core.$strip>>]>>;
|
|
2393
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
2394
|
+
goto: z.ZodString;
|
|
2395
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
2396
|
+
}, z.core.$strip>>>;
|
|
2397
|
+
type: z.ZodLiteral<"review">;
|
|
2398
|
+
show: z.ZodArray<z.ZodString>;
|
|
2399
|
+
edit: z.ZodOptional<z.ZodBoolean>;
|
|
2400
|
+
regenerate: z.ZodOptional<z.ZodBoolean>;
|
|
2401
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2402
|
+
id: z.ZodString;
|
|
2403
|
+
title: z.ZodString;
|
|
2404
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2405
|
+
next: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2406
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
2407
|
+
field: z.ZodString;
|
|
2408
|
+
op: z.ZodEnum<{
|
|
2409
|
+
contains: "contains";
|
|
2410
|
+
empty: "empty";
|
|
2411
|
+
equals: "equals";
|
|
2412
|
+
gt: "gt";
|
|
2413
|
+
in: "in";
|
|
2414
|
+
lt: "lt";
|
|
2415
|
+
notEmpty: "notEmpty";
|
|
2416
|
+
notEquals: "notEquals";
|
|
2417
|
+
}>;
|
|
2418
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
2419
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
2420
|
+
field: z.ZodString;
|
|
2421
|
+
op: z.ZodEnum<{
|
|
2422
|
+
contains: "contains";
|
|
2423
|
+
empty: "empty";
|
|
2424
|
+
equals: "equals";
|
|
2425
|
+
gt: "gt";
|
|
2426
|
+
in: "in";
|
|
2427
|
+
lt: "lt";
|
|
2428
|
+
notEmpty: "notEmpty";
|
|
2429
|
+
notEquals: "notEquals";
|
|
2430
|
+
}>;
|
|
2431
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
2432
|
+
}, z.core.$strip>>]>>;
|
|
2433
|
+
ask: z.ZodOptional<z.ZodString>;
|
|
2434
|
+
goto: z.ZodString;
|
|
2435
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
2436
|
+
}, z.core.$strip>>>;
|
|
2437
|
+
type: z.ZodLiteral<"result">;
|
|
2438
|
+
message: z.ZodOptional<z.ZodString>;
|
|
2439
|
+
deliverables: z.ZodArray<z.ZodObject<{
|
|
2440
|
+
from: z.ZodString;
|
|
2441
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2442
|
+
formats: z.ZodArray<z.ZodEnum<{
|
|
2443
|
+
csv: "csv";
|
|
2444
|
+
docx: "docx";
|
|
2445
|
+
html: "html";
|
|
2446
|
+
json: "json";
|
|
2447
|
+
md: "md";
|
|
2448
|
+
mp3: "mp3";
|
|
2449
|
+
mp4: "mp4";
|
|
2450
|
+
pdf: "pdf";
|
|
2451
|
+
png: "png";
|
|
2452
|
+
txt: "txt";
|
|
2453
|
+
xlsx: "xlsx";
|
|
2454
|
+
zip: "zip";
|
|
2455
|
+
}>>;
|
|
2456
|
+
}, z.core.$strip>>;
|
|
2457
|
+
}, z.core.$strip>], "type">>;
|
|
2458
|
+
}, z.core.$strip>;
|
|
2459
|
+
|
|
2460
|
+
export declare interface WizardsConfig {
|
|
2461
|
+
/**
|
|
2462
|
+
* Where the runtime answers, as the browser reaches it: a path the host proxies to it
|
|
2463
|
+
* (`/wizards-runtime`, so the runner's cookie stays first-party) or the runtime's address.
|
|
2464
|
+
*/
|
|
2465
|
+
runtime: string;
|
|
2466
|
+
/** The language of the runner's own words: `en` unless given. */
|
|
2467
|
+
lang?: Lang;
|
|
2468
|
+
/** The wizard's mascot above its pages; a plain dot in the wizard's colour unless given. */
|
|
2469
|
+
Mascot?: (props: MascotProps) => React.ReactNode;
|
|
2470
|
+
}
|
|
2471
|
+
|
|
2472
|
+
/** The component as a prompt sees it: the same name and props, nothing to draw. */
|
|
2473
|
+
export declare const WizardSpec: DefinedComponent<z.ZodObject<{
|
|
2474
|
+
wizard: z.ZodString;
|
|
2475
|
+
note: z.ZodOptional<z.ZodString>;
|
|
2476
|
+
prefill: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2477
|
+
}, z.core.$strip>>;
|
|
2478
|
+
|
|
2479
|
+
declare type YesNoShape = Named & {
|
|
2480
|
+
kind: "yesno";
|
|
2481
|
+
yes?: string;
|
|
2482
|
+
no?: string;
|
|
2483
|
+
};
|
|
2484
|
+
|
|
2485
|
+
export { }
|