busa-sdk 0.19.2 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as createBusabaseClient, c as cloudContract, d as NodeIconSchema, f as CREATABLE_NODE_TYPES, h as OperationKind, i as ResolvedConfig, l as NodeOutput, m as NodeType, n as BusabaseConfig, o as resolveConfig, p as CreatableNodeType, r as DEFAULT_BASE_URL, s as CloudContract, t as BusabaseClient, u as NodeIcon } from "./client-kiUJSr_d.js";
1
+ import { $ as FileTreeReadFileVO, A as SearchResultKind, At as AttachmentRef, B as VaultRuntimeEnv, C as NodeSearchResultVO, Ct as VIEW_FIELD_MIN_WIDTH, D as ReviewVO, Dt as ViewSortVO, E as OperationVO, Et as ViewFilterVO, F as VaultAccessPolicy, Ft as CREATABLE_NODE_TYPES, G as AssetDetailVO, H as VaultSettingsVO, I as VaultEnvironment, It as CreatableNodeType, J as AssetVO, K as AssetTextStatus, L as VaultItemInput, Lt as NodeType, M as SourceAttributionVO, Mt as cloudContract, N as UserRefVO, Nt as NodeIcon, O as ReviewVerdict, Ot as ViewType, P as UpdateVaultSettingsDTO, Pt as NodeIconSchema, Q as FileTreeNodeVO, R as VaultItemKind, Rt as OperationKind, S as LookupRollup, St as VIEW_FIELD_MAX_WIDTH, T as OperationStatus, Tt as ViewFilterOperator, U as FileNodeMetadata, V as VaultScopeType, W as FileNodeVO, X as GrepResultVO, Y as GrepInputDTO, Z as FileTreeFileVO, _ as ChangeRequestVO, _t as GalleryCardSize, a as createBusabaseClient, at as FormPageSourceVO, b as CommitVO, bt as RecordLinkVO, c as AuditAction, ct as FormThemeVO, d as ChangeRequestBatchFailureVO, dt as ListFormsVO, et as NodeDetailVO, f as ChangeRequestCountsVO, ft as SubmitFormDTO, g as ChangeRequestTargetType, gt as BaseVO, h as ChangeRequestStatus, ht as BaseFieldVO, i as ResolvedConfig, it as FormFieldBindingVO, j as SearchResultVO, jt as CloudContract, k as SearchResponseVO, kt as ViewVO, l as AuditEventVO, lt as FormVO, m as ChangeRequestReviewBatchResultVO, mt as AssetAttachmentRef, n as BusabaseConfig, nt as CreateFormDTO, o as resolveConfig, ot as FormShareVO, p as ChangeRequestMergeBatchResultVO, pt as UpdateFormDTO, q as AssetUsageVO, r as DEFAULT_BASE_URL, rt as FormBoundFieldVO, s as AgentTaskVO, st as FormSubmitResultVO, t as BusabaseClient, tt as ActivityItemVO, u as BusabaseSourceChannel, ut as ListFormsDTO, v as CommentSubjectType, vt as GalleryCoverFit, w as NodeVO, wt as ViewConfigVO, x as FieldType, xt as RecordVO, y as CommentVO, yt as GanttScale, z as VaultItemVO } from "./client-DF6mrd6D.js";
2
2
  import { z } from "zod";
3
3
  //#region src/url.d.ts
4
4
  /**
@@ -7,2771 +7,6 @@ import { z } from "zod";
7
7
  */
8
8
  declare function normalizeBaseUrl(raw: string): string;
9
9
  //#endregion
10
- //#region ../../packages/open-domains/attachments/types/attachments.d.ts
11
- /**
12
- * Denormalized attachment reference stored inline in a record's `attachment`
13
- * field value (Airtable-style: the cell holds an array of these, so rendering
14
- * needs no join). `id` points at the `attachments` registry row.
15
- */
16
- declare const AttachmentRefSchema: z.ZodObject<{
17
- id: z.ZodString;
18
- url: z.ZodString;
19
- fileName: z.ZodString;
20
- mimeType: z.ZodString;
21
- size: z.ZodNumber;
22
- }, z.core.$strip>;
23
- type AttachmentRef = z.infer<typeof AttachmentRefSchema>;
24
- //#endregion
25
- //#region ../../packages/openlib/i18n/i-string.d.ts
26
- declare const iStringSchema: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<{
27
- de: "de";
28
- en: "en";
29
- es: "es";
30
- fr: "fr";
31
- ja: "ja";
32
- ko: "ko";
33
- pt: "pt";
34
- "zh-CN": "zh-CN";
35
- "zh-TW": "zh-TW";
36
- }> & z.core.$partial, z.ZodString>]>;
37
- type iString = z.infer<typeof iStringSchema>;
38
- //#endregion
39
- //#region ../../packages/busabase-contract/src/domains/base/types.d.ts
40
- interface AssetAttachmentRef extends AttachmentRef {
41
- attachmentId: string;
42
- assetId?: string;
43
- }
44
- interface BaseFieldVO {
45
- id: string;
46
- baseId: string;
47
- slug: string;
48
- /**
49
- * Display name — a plain string or a locale-keyed record
50
- * (e.g. { en: "Company", "zh-CN": "公司" }). Resolve with iStringParse.
51
- */
52
- name: iString;
53
- type: FieldType;
54
- required: boolean;
55
- position: number;
56
- options: {
57
- ai?: {
58
- model?: string;
59
- prompt?: string;
60
- reviewRequired?: boolean;
61
- sourceFieldIds?: string[];
62
- };
63
- attachment?: {
64
- maxFiles?: number;
65
- allowedMimeTypes?: string[];
66
- maxFileSize?: number;
67
- };
68
- choices?: Array<{
69
- color?: string;
70
- id: string;
71
- name: string;
72
- }>;
73
- code?: {
74
- language?: string;
75
- };
76
- embed?: {
77
- aspectRatio?: "16:9" | "4:3" | "1:1";
78
- height?: number;
79
- providers?: string[];
80
- };
81
- formula?: {
82
- expression: string;
83
- };
84
- inverseFieldId?: string;
85
- lookup?: {
86
- relationFieldSlug: string;
87
- targetFieldSlug: string;
88
- rollup?: LookupRollup;
89
- limit?: "all" | "first";
90
- };
91
- multiple?: boolean;
92
- targetBaseId?: string;
93
- number?: {
94
- format?: "plain" | "currency";
95
- currency?: string;
96
- locale?: string;
97
- };
98
- };
99
- }
100
- interface BaseVO {
101
- id: string;
102
- nodeId: string;
103
- slug: string;
104
- name: string;
105
- description: string;
106
- reviewPolicy: {
107
- kind: "single";
108
- requiredApprovals: number;
109
- };
110
- createdAt: string;
111
- fields: BaseFieldVO[];
112
- }
113
- type ViewFilterOperator = "contains" | "equals" | "not_empty" | "is_empty" | "is_true" | "is_false";
114
- interface ViewFilterVO {
115
- fieldSlug: string;
116
- fieldId?: string;
117
- operator: ViewFilterOperator;
118
- value?: unknown;
119
- }
120
- interface ViewSortVO {
121
- direction: "asc" | "desc";
122
- fieldSlug: string;
123
- fieldId?: string;
124
- }
125
- type ViewType = "table" | "gallery" | "kanban" | "calendar" | "gantt";
126
- type GalleryCoverFit = "cover" | "fit";
127
- type GalleryCardSize = "small" | "medium" | "large";
128
- type GanttScale = "week" | "month";
129
- declare const VIEW_FIELD_MIN_WIDTH = 92;
130
- declare const VIEW_FIELD_MAX_WIDTH = 640;
131
- interface ViewConfigVO {
132
- filters: ViewFilterVO[];
133
- sorts: ViewSortVO[];
134
- visibleFieldSlugs?: string[] | null;
135
- /** Table-only column widths in pixels, keyed by field slug. */
136
- fieldWidths?: Record<string, number>;
137
- coverFieldSlug?: string | null;
138
- coverFit?: GalleryCoverFit;
139
- cardSize?: GalleryCardSize;
140
- showFieldLabels?: boolean;
141
- stackByFieldSlug?: string | null;
142
- dateFieldSlug?: string | null;
143
- startFieldSlug?: string | null;
144
- endFieldSlug?: string | null;
145
- ganttScale?: GanttScale;
146
- }
147
- interface ViewVO {
148
- id: string;
149
- baseId: string;
150
- slug: string;
151
- name: string;
152
- description: string;
153
- type: ViewType;
154
- config: ViewConfigVO;
155
- status: "active" | "archived";
156
- createdBy: string;
157
- createdByUser?: UserRefVO | null;
158
- archivedAt: string | null;
159
- createdAt: string;
160
- updatedAt: string;
161
- }
162
- interface RecordVO {
163
- id: string;
164
- baseId: string;
165
- headCommitId: string;
166
- parentRecordId: string | null;
167
- parentCommitId: string | null;
168
- status: "active" | "archived";
169
- createdBy: string;
170
- createdByUser?: UserRefVO | null;
171
- archivedAt: string | null;
172
- createdAt: string;
173
- updatedAt: string;
174
- base: BaseVO;
175
- headCommit: CommitVO;
176
- }
177
- interface RecordLinkVO {
178
- id: string;
179
- baseId: string;
180
- fieldId: string;
181
- fieldSlug: string;
182
- sourceRecordId: string;
183
- targetBaseId: string;
184
- targetRecordId: string;
185
- commitId: string;
186
- position: number;
187
- createdAt: string;
188
- updatedAt: string;
189
- }
190
- //#endregion
191
- //#region ../../packages/busabase-contract/src/domains/form/types.d.ts
192
- /**
193
- * One input-to-field mapping. `inputName` is the name the agent-authored page
194
- * uses for a control; `fieldSlug` is the target Base field it writes to.
195
- * `required`/`label`/`help` are per-form overrides that DON'T mutate the Base
196
- * field definition (fixing APITable's "form not self-contained" limitation).
197
- */
198
- declare const FormFieldBindingSchema: z.ZodObject<{
199
- inputName: z.ZodString;
200
- fieldSlug: z.ZodString;
201
- required: z.ZodOptional<z.ZodBoolean>;
202
- label: z.ZodOptional<z.ZodString>;
203
- help: z.ZodOptional<z.ZodString>;
204
- }, z.core.$strip>;
205
- type FormFieldBindingVO = z.infer<typeof FormFieldBindingSchema>;
206
- /**
207
- * Client-safe control metadata for one bound Base field. Public Forms expose
208
- * only these curated fields, never the target Base or its records.
209
- */
210
- declare const FormBoundFieldSchema: z.ZodObject<{
211
- slug: z.ZodString;
212
- name: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<{
213
- de: "de";
214
- en: "en";
215
- es: "es";
216
- fr: "fr";
217
- ja: "ja";
218
- ko: "ko";
219
- pt: "pt";
220
- "zh-CN": "zh-CN";
221
- "zh-TW": "zh-TW";
222
- }> & z.core.$partial, z.ZodString>]>;
223
- type: z.ZodEnum<{
224
- ai_summary: "ai_summary";
225
- ai_tags: "ai_tags";
226
- attachment: "attachment";
227
- auto_number: "auto_number";
228
- checkbox: "checkbox";
229
- code: "code";
230
- created_by: "created_by";
231
- created_time: "created_time";
232
- date: "date";
233
- email: "email";
234
- embed: "embed";
235
- formula: "formula";
236
- html: "html";
237
- json: "json";
238
- longtext: "longtext";
239
- lookup: "lookup";
240
- markdown: "markdown";
241
- multiselect: "multiselect";
242
- number: "number";
243
- phone: "phone";
244
- relation: "relation";
245
- select: "select";
246
- text: "text";
247
- updated_by: "updated_by";
248
- updated_time: "updated_time";
249
- url: "url";
250
- whiteboard: "whiteboard";
251
- yaml: "yaml";
252
- }>;
253
- choices: z.ZodDefault<z.ZodArray<z.ZodObject<{
254
- id: z.ZodString;
255
- name: z.ZodString;
256
- }, z.core.$strip>>>;
257
- }, z.core.$strip>;
258
- type FormBoundFieldVO = z.infer<typeof FormBoundFieldSchema>;
259
- /** Optional theme tokens layered over the agent-authored page. */
260
- declare const FormThemeSchema: z.ZodObject<{
261
- logoUrl: z.ZodOptional<z.ZodString>;
262
- coverUrl: z.ZodOptional<z.ZodString>;
263
- brandColor: z.ZodOptional<z.ZodString>;
264
- hideBranding: z.ZodOptional<z.ZodBoolean>;
265
- }, z.core.$strip>;
266
- type FormThemeVO = z.infer<typeof FormThemeSchema>;
267
- /**
268
- * Page source: ONE HTML document the agent authors — `<style>`/`<script>` live
269
- * inside it, exactly as a real web page does. (This was briefly split into
270
- * html/css/js, but the renderer only ever concatenated the parts back into a
271
- * single document and no step needed them apart — the split was ceremony.)
272
- * Block-drag authoring is intentionally NOT built; the agent writes code.
273
- */
274
- declare const FormPageSourceSchema: z.ZodObject<{
275
- code: z.ZodOptional<z.ZodString>;
276
- theme: z.ZodOptional<z.ZodObject<{
277
- logoUrl: z.ZodOptional<z.ZodString>;
278
- coverUrl: z.ZodOptional<z.ZodString>;
279
- brandColor: z.ZodOptional<z.ZodString>;
280
- hideBranding: z.ZodOptional<z.ZodBoolean>;
281
- }, z.core.$strip>>;
282
- }, z.core.$strip>;
283
- type FormPageSourceVO = z.infer<typeof FormPageSourceSchema>;
284
- /**
285
- * Public/anonymous settings. No shareToken — the submit endpoint gates on these
286
- * flags. Three states: private / public+anonymous / public+require-login.
287
- */
288
- declare const FormShareSchema: z.ZodObject<{
289
- isPublic: z.ZodDefault<z.ZodBoolean>;
290
- anonymousSubmit: z.ZodDefault<z.ZodBoolean>;
291
- submitLimit: z.ZodOptional<z.ZodNumber>;
292
- requireCaptcha: z.ZodOptional<z.ZodBoolean>;
293
- }, z.core.$strip>;
294
- type FormShareVO = z.infer<typeof FormShareSchema>;
295
- declare const FormVOSchema: z.ZodObject<{
296
- id: z.ZodString;
297
- nodeId: z.ZodString;
298
- spaceId: z.ZodString;
299
- targetBaseId: z.ZodString;
300
- name: z.ZodString;
301
- description: z.ZodString;
302
- bindings: z.ZodArray<z.ZodObject<{
303
- inputName: z.ZodString;
304
- fieldSlug: z.ZodString;
305
- required: z.ZodOptional<z.ZodBoolean>;
306
- label: z.ZodOptional<z.ZodString>;
307
- help: z.ZodOptional<z.ZodString>;
308
- }, z.core.$strip>>;
309
- boundFields: z.ZodDefault<z.ZodArray<z.ZodObject<{
310
- slug: z.ZodString;
311
- name: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<{
312
- de: "de";
313
- en: "en";
314
- es: "es";
315
- fr: "fr";
316
- ja: "ja";
317
- ko: "ko";
318
- pt: "pt";
319
- "zh-CN": "zh-CN";
320
- "zh-TW": "zh-TW";
321
- }> & z.core.$partial, z.ZodString>]>;
322
- type: z.ZodEnum<{
323
- ai_summary: "ai_summary";
324
- ai_tags: "ai_tags";
325
- attachment: "attachment";
326
- auto_number: "auto_number";
327
- checkbox: "checkbox";
328
- code: "code";
329
- created_by: "created_by";
330
- created_time: "created_time";
331
- date: "date";
332
- email: "email";
333
- embed: "embed";
334
- formula: "formula";
335
- html: "html";
336
- json: "json";
337
- longtext: "longtext";
338
- lookup: "lookup";
339
- markdown: "markdown";
340
- multiselect: "multiselect";
341
- number: "number";
342
- phone: "phone";
343
- relation: "relation";
344
- select: "select";
345
- text: "text";
346
- updated_by: "updated_by";
347
- updated_time: "updated_time";
348
- url: "url";
349
- whiteboard: "whiteboard";
350
- yaml: "yaml";
351
- }>;
352
- choices: z.ZodDefault<z.ZodArray<z.ZodObject<{
353
- id: z.ZodString;
354
- name: z.ZodString;
355
- }, z.core.$strip>>>;
356
- }, z.core.$strip>>>;
357
- page: z.ZodObject<{
358
- code: z.ZodOptional<z.ZodString>;
359
- theme: z.ZodOptional<z.ZodObject<{
360
- logoUrl: z.ZodOptional<z.ZodString>;
361
- coverUrl: z.ZodOptional<z.ZodString>;
362
- brandColor: z.ZodOptional<z.ZodString>;
363
- hideBranding: z.ZodOptional<z.ZodBoolean>;
364
- }, z.core.$strip>>;
365
- }, z.core.$strip>;
366
- share: z.ZodObject<{
367
- isPublic: z.ZodDefault<z.ZodBoolean>;
368
- anonymousSubmit: z.ZodDefault<z.ZodBoolean>;
369
- submitLimit: z.ZodOptional<z.ZodNumber>;
370
- requireCaptcha: z.ZodOptional<z.ZodBoolean>;
371
- }, z.core.$strip>;
372
- submissionCount: z.ZodDefault<z.ZodNumber>;
373
- status: z.ZodEnum<{
374
- active: "active";
375
- archived: "archived";
376
- }>;
377
- createdBy: z.ZodString;
378
- createdAt: z.ZodString;
379
- updatedAt: z.ZodString;
380
- }, z.core.$strip>;
381
- type FormVO = z.infer<typeof FormVOSchema>;
382
- declare const ListFormsInputSchema: z.ZodObject<{
383
- targetBaseId: z.ZodString;
384
- limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
385
- cursor: z.ZodOptional<z.ZodString>;
386
- }, z.core.$strip>;
387
- type ListFormsDTO = z.infer<typeof ListFormsInputSchema>;
388
- declare const ListFormsVOSchema: z.ZodObject<{
389
- forms: z.ZodArray<z.ZodObject<{
390
- id: z.ZodString;
391
- nodeId: z.ZodString;
392
- spaceId: z.ZodString;
393
- targetBaseId: z.ZodString;
394
- name: z.ZodString;
395
- description: z.ZodString;
396
- bindings: z.ZodArray<z.ZodObject<{
397
- inputName: z.ZodString;
398
- fieldSlug: z.ZodString;
399
- required: z.ZodOptional<z.ZodBoolean>;
400
- label: z.ZodOptional<z.ZodString>;
401
- help: z.ZodOptional<z.ZodString>;
402
- }, z.core.$strip>>;
403
- boundFields: z.ZodDefault<z.ZodArray<z.ZodObject<{
404
- slug: z.ZodString;
405
- name: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<{
406
- de: "de";
407
- en: "en";
408
- es: "es";
409
- fr: "fr";
410
- ja: "ja";
411
- ko: "ko";
412
- pt: "pt";
413
- "zh-CN": "zh-CN";
414
- "zh-TW": "zh-TW";
415
- }> & z.core.$partial, z.ZodString>]>;
416
- type: z.ZodEnum<{
417
- ai_summary: "ai_summary";
418
- ai_tags: "ai_tags";
419
- attachment: "attachment";
420
- auto_number: "auto_number";
421
- checkbox: "checkbox";
422
- code: "code";
423
- created_by: "created_by";
424
- created_time: "created_time";
425
- date: "date";
426
- email: "email";
427
- embed: "embed";
428
- formula: "formula";
429
- html: "html";
430
- json: "json";
431
- longtext: "longtext";
432
- lookup: "lookup";
433
- markdown: "markdown";
434
- multiselect: "multiselect";
435
- number: "number";
436
- phone: "phone";
437
- relation: "relation";
438
- select: "select";
439
- text: "text";
440
- updated_by: "updated_by";
441
- updated_time: "updated_time";
442
- url: "url";
443
- whiteboard: "whiteboard";
444
- yaml: "yaml";
445
- }>;
446
- choices: z.ZodDefault<z.ZodArray<z.ZodObject<{
447
- id: z.ZodString;
448
- name: z.ZodString;
449
- }, z.core.$strip>>>;
450
- }, z.core.$strip>>>;
451
- page: z.ZodObject<{
452
- code: z.ZodOptional<z.ZodString>;
453
- theme: z.ZodOptional<z.ZodObject<{
454
- logoUrl: z.ZodOptional<z.ZodString>;
455
- coverUrl: z.ZodOptional<z.ZodString>;
456
- brandColor: z.ZodOptional<z.ZodString>;
457
- hideBranding: z.ZodOptional<z.ZodBoolean>;
458
- }, z.core.$strip>>;
459
- }, z.core.$strip>;
460
- share: z.ZodObject<{
461
- isPublic: z.ZodDefault<z.ZodBoolean>;
462
- anonymousSubmit: z.ZodDefault<z.ZodBoolean>;
463
- submitLimit: z.ZodOptional<z.ZodNumber>;
464
- requireCaptcha: z.ZodOptional<z.ZodBoolean>;
465
- }, z.core.$strip>;
466
- submissionCount: z.ZodDefault<z.ZodNumber>;
467
- status: z.ZodEnum<{
468
- active: "active";
469
- archived: "archived";
470
- }>;
471
- createdBy: z.ZodString;
472
- createdAt: z.ZodString;
473
- updatedAt: z.ZodString;
474
- }, z.core.$strip>>;
475
- nextCursor: z.ZodNullable<z.ZodString>;
476
- }, z.core.$strip>;
477
- type ListFormsVO = z.infer<typeof ListFormsVOSchema>;
478
- declare const CreateFormInputSchema: z.ZodObject<{
479
- nodeId: z.ZodString;
480
- targetBaseId: z.ZodString;
481
- name: z.ZodString;
482
- description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
483
- bindings: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
484
- inputName: z.ZodString;
485
- fieldSlug: z.ZodString;
486
- required: z.ZodOptional<z.ZodBoolean>;
487
- label: z.ZodOptional<z.ZodString>;
488
- help: z.ZodOptional<z.ZodString>;
489
- }, z.core.$strip>>>>;
490
- page: z.ZodDefault<z.ZodOptional<z.ZodObject<{
491
- code: z.ZodOptional<z.ZodString>;
492
- theme: z.ZodOptional<z.ZodObject<{
493
- logoUrl: z.ZodOptional<z.ZodString>;
494
- coverUrl: z.ZodOptional<z.ZodString>;
495
- brandColor: z.ZodOptional<z.ZodString>;
496
- hideBranding: z.ZodOptional<z.ZodBoolean>;
497
- }, z.core.$strip>>;
498
- }, z.core.$strip>>>;
499
- share: z.ZodDefault<z.ZodOptional<z.ZodObject<{
500
- isPublic: z.ZodDefault<z.ZodBoolean>;
501
- anonymousSubmit: z.ZodDefault<z.ZodBoolean>;
502
- submitLimit: z.ZodOptional<z.ZodNumber>;
503
- requireCaptcha: z.ZodOptional<z.ZodBoolean>;
504
- }, z.core.$strip>>>;
505
- }, z.core.$strip>;
506
- type CreateFormDTO = z.input<typeof CreateFormInputSchema>;
507
- declare const UpdateFormInputSchema: z.ZodObject<{
508
- name: z.ZodOptional<z.ZodString>;
509
- description: z.ZodOptional<z.ZodString>;
510
- bindings: z.ZodOptional<z.ZodArray<z.ZodObject<{
511
- inputName: z.ZodString;
512
- fieldSlug: z.ZodString;
513
- required: z.ZodOptional<z.ZodBoolean>;
514
- label: z.ZodOptional<z.ZodString>;
515
- help: z.ZodOptional<z.ZodString>;
516
- }, z.core.$strip>>>;
517
- page: z.ZodOptional<z.ZodObject<{
518
- code: z.ZodOptional<z.ZodString>;
519
- theme: z.ZodOptional<z.ZodObject<{
520
- logoUrl: z.ZodOptional<z.ZodString>;
521
- coverUrl: z.ZodOptional<z.ZodString>;
522
- brandColor: z.ZodOptional<z.ZodString>;
523
- hideBranding: z.ZodOptional<z.ZodBoolean>;
524
- }, z.core.$strip>>;
525
- }, z.core.$strip>>;
526
- share: z.ZodOptional<z.ZodObject<{
527
- isPublic: z.ZodDefault<z.ZodBoolean>;
528
- anonymousSubmit: z.ZodDefault<z.ZodBoolean>;
529
- submitLimit: z.ZodOptional<z.ZodNumber>;
530
- requireCaptcha: z.ZodOptional<z.ZodBoolean>;
531
- }, z.core.$strip>>;
532
- }, z.core.$strip>;
533
- type UpdateFormDTO = z.input<typeof UpdateFormInputSchema>;
534
- /** A filled-in submission: input names → values, plus optional anti-abuse token. */
535
- declare const SubmitFormInputSchema: z.ZodObject<{
536
- values: z.ZodRecord<z.ZodString, z.ZodUnknown>;
537
- captchaToken: z.ZodOptional<z.ZodString>;
538
- }, z.core.$strip>;
539
- type SubmitFormDTO = z.input<typeof SubmitFormInputSchema>;
540
- /** What the submit endpoint returns — the pending ChangeRequest id, never data. */
541
- declare const FormSubmitResultSchema: z.ZodObject<{
542
- changeRequestId: z.ZodString;
543
- status: z.ZodLiteral<"pending_review">;
544
- }, z.core.$strip>;
545
- type FormSubmitResultVO = z.infer<typeof FormSubmitResultSchema>;
546
- //#endregion
547
- //#region ../../packages/busabase-contract/src/contract/activity-schemas.d.ts
548
- /**
549
- * One activity-feed row, discriminated by `kind`. Each carries the VO(s) the
550
- * client needs to render its title/body/href:
551
- * - `change_request` — the CR "updated / opened / approved / merged" row.
552
- * - `operation` — one row per operation; `operationId` selects it within the CR.
553
- * - `record` — a record "updated / archived" row.
554
- * - `audit` — an audit-log row; `record` is the referenced record (for its href)
555
- * when the event points at one, else null.
556
- */
557
- declare const activityItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
558
- kind: z.ZodLiteral<"change_request">;
559
- timestamp: z.ZodString;
560
- changeRequest: z.ZodObject<{
561
- id: z.ZodString;
562
- baseId: z.ZodNullable<z.ZodString>;
563
- targetType: z.ZodEnum<{
564
- base: "base";
565
- node: "node";
566
- }>;
567
- nodeId: z.ZodNullable<z.ZodString>;
568
- status: z.ZodEnum<{
569
- abandoned: "abandoned";
570
- approved: "approved";
571
- changes_requested: "changes_requested";
572
- conflict: "conflict";
573
- in_review: "in_review";
574
- merged: "merged";
575
- rejected: "rejected";
576
- }>;
577
- submittedBy: z.ZodString;
578
- submittedByUser: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
579
- id: z.ZodString;
580
- name: z.ZodNullable<z.ZodString>;
581
- email: z.ZodNullable<z.ZodString>;
582
- image: z.ZodNullable<z.ZodString>;
583
- role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
584
- }, z.core.$strip>>>>;
585
- sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
586
- reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
587
- mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
588
- rejectedReason: z.ZodNullable<z.ZodString>;
589
- reviewedAt: z.ZodNullable<z.ZodString>;
590
- mergedAt: z.ZodNullable<z.ZodString>;
591
- createdAt: z.ZodString;
592
- updatedAt: z.ZodString;
593
- base: z.ZodNullable<z.ZodObject<{
594
- id: z.ZodString;
595
- nodeId: z.ZodString;
596
- slug: z.ZodString;
597
- name: z.ZodString;
598
- description: z.ZodString;
599
- reviewPolicy: z.ZodObject<{
600
- kind: z.ZodLiteral<"single">;
601
- requiredApprovals: z.ZodNumber;
602
- }, z.core.$strip>;
603
- createdAt: z.ZodString;
604
- fields: z.ZodArray<z.ZodObject<{
605
- id: z.ZodString;
606
- baseId: z.ZodString;
607
- slug: z.ZodString;
608
- name: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<{
609
- de: "de";
610
- en: "en";
611
- es: "es";
612
- fr: "fr";
613
- ja: "ja";
614
- ko: "ko";
615
- pt: "pt";
616
- "zh-CN": "zh-CN";
617
- "zh-TW": "zh-TW";
618
- }> & z.core.$partial, z.ZodString>]>;
619
- type: z.ZodEnum<{
620
- ai_summary: "ai_summary";
621
- ai_tags: "ai_tags";
622
- attachment: "attachment";
623
- auto_number: "auto_number";
624
- checkbox: "checkbox";
625
- code: "code";
626
- created_by: "created_by";
627
- created_time: "created_time";
628
- date: "date";
629
- email: "email";
630
- embed: "embed";
631
- formula: "formula";
632
- html: "html";
633
- json: "json";
634
- longtext: "longtext";
635
- lookup: "lookup";
636
- markdown: "markdown";
637
- multiselect: "multiselect";
638
- number: "number";
639
- phone: "phone";
640
- relation: "relation";
641
- select: "select";
642
- text: "text";
643
- updated_by: "updated_by";
644
- updated_time: "updated_time";
645
- url: "url";
646
- whiteboard: "whiteboard";
647
- yaml: "yaml";
648
- }>;
649
- required: z.ZodBoolean;
650
- position: z.ZodNumber;
651
- options: z.ZodDefault<z.ZodObject<{
652
- ai: z.ZodOptional<z.ZodObject<{
653
- model: z.ZodOptional<z.ZodString>;
654
- prompt: z.ZodOptional<z.ZodString>;
655
- reviewRequired: z.ZodOptional<z.ZodBoolean>;
656
- sourceFieldIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
657
- }, z.core.$strip>>;
658
- attachment: z.ZodOptional<z.ZodObject<{
659
- maxFiles: z.ZodOptional<z.ZodNumber>;
660
- allowedMimeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
661
- maxFileSize: z.ZodOptional<z.ZodNumber>;
662
- }, z.core.$strip>>;
663
- choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
664
- color: z.ZodOptional<z.ZodString>;
665
- id: z.ZodString;
666
- name: z.ZodString;
667
- }, z.core.$strip>>>;
668
- code: z.ZodOptional<z.ZodObject<{
669
- language: z.ZodOptional<z.ZodString>;
670
- }, z.core.$strip>>;
671
- embed: z.ZodOptional<z.ZodObject<{
672
- aspectRatio: z.ZodOptional<z.ZodEnum<{
673
- "16:9": "16:9";
674
- "1:1": "1:1";
675
- "4:3": "4:3";
676
- }>>;
677
- height: z.ZodOptional<z.ZodNumber>;
678
- providers: z.ZodOptional<z.ZodArray<z.ZodString>>;
679
- }, z.core.$strip>>;
680
- formula: z.ZodOptional<z.ZodObject<{
681
- expression: z.ZodString;
682
- }, z.core.$strip>>;
683
- inverseFieldId: z.ZodOptional<z.ZodString>;
684
- lookup: z.ZodOptional<z.ZodObject<{
685
- relationFieldSlug: z.ZodString;
686
- targetFieldSlug: z.ZodString;
687
- rollup: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
688
- average: "average";
689
- concatenate: "concatenate";
690
- count: "count";
691
- max: "max";
692
- min: "min";
693
- sum: "sum";
694
- values: "values";
695
- }>>>;
696
- limit: z.ZodOptional<z.ZodEnum<{
697
- all: "all";
698
- first: "first";
699
- }>>;
700
- }, z.core.$strip>>;
701
- multiple: z.ZodOptional<z.ZodBoolean>;
702
- number: z.ZodOptional<z.ZodObject<{
703
- format: z.ZodOptional<z.ZodEnum<{
704
- currency: "currency";
705
- plain: "plain";
706
- }>>;
707
- currency: z.ZodOptional<z.ZodString>;
708
- locale: z.ZodOptional<z.ZodString>;
709
- }, z.core.$strip>>;
710
- targetBaseId: z.ZodOptional<z.ZodString>;
711
- targetBaseSlug: z.ZodOptional<z.ZodString>;
712
- }, z.core.$strip>>;
713
- }, z.core.$strip>>;
714
- }, z.core.$strip>>;
715
- node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
716
- operations: z.ZodArray<z.ZodObject<{
717
- id: z.ZodString;
718
- changeRequestId: z.ZodString;
719
- baseId: z.ZodNullable<z.ZodString>;
720
- targetType: z.ZodEnum<{
721
- base: "base";
722
- node: "node";
723
- }>;
724
- nodeId: z.ZodNullable<z.ZodString>;
725
- operation: z.ZodEnum<{
726
- [x: `${string}_file_create`]: `${string}_file_create`;
727
- [x: `${string}_file_delete`]: `${string}_file_delete`;
728
- [x: `${string}_file_update`]: `${string}_file_update`;
729
- [x: `${string}_metadata_update`]: `${string}_metadata_update`;
730
- base_add_field: "base_add_field";
731
- base_archive: "base_archive";
732
- base_convert_field: "base_convert_field";
733
- base_delete_field: "base_delete_field";
734
- base_reorder_fields: "base_reorder_fields";
735
- base_restore: "base_restore";
736
- base_restore_field: "base_restore_field";
737
- base_update_field: "base_update_field";
738
- doc_update: "doc_update";
739
- html_document_update: "html_document_update";
740
- node_create: "node_create";
741
- node_delete: "node_delete";
742
- node_move: "node_move";
743
- node_rename: "node_rename";
744
- node_restore: "node_restore";
745
- record_create: "record_create";
746
- record_delete: "record_delete";
747
- record_restore: "record_restore";
748
- record_update: "record_update";
749
- record_variant: "record_variant";
750
- view_create: "view_create";
751
- view_delete: "view_delete";
752
- view_restore: "view_restore";
753
- view_update: "view_update";
754
- whiteboard_document_update: "whiteboard_document_update";
755
- workflow_document_update: "workflow_document_update";
756
- }>;
757
- status: z.ZodEnum<{
758
- archived: "archived";
759
- failed: "failed";
760
- merged: "merged";
761
- pending: "pending";
762
- }>;
763
- targetRecordId: z.ZodNullable<z.ZodString>;
764
- targetViewId: z.ZodNullable<z.ZodString>;
765
- filePath: z.ZodNullable<z.ZodString>;
766
- sourceRecordId: z.ZodNullable<z.ZodString>;
767
- sourceCommitId: z.ZodNullable<z.ZodString>;
768
- baseCommitId: z.ZodNullable<z.ZodString>;
769
- headCommitId: z.ZodString;
770
- deleteMode: z.ZodEnum<{
771
- archive: "archive";
772
- }>;
773
- mergedRecordId: z.ZodNullable<z.ZodString>;
774
- mergedViewId: z.ZodNullable<z.ZodString>;
775
- position: z.ZodNumber;
776
- createdAt: z.ZodString;
777
- updatedAt: z.ZodString;
778
- headCommit: z.ZodObject<{
779
- id: z.ZodString;
780
- baseId: z.ZodNullable<z.ZodString>;
781
- targetType: z.ZodEnum<{
782
- base: "base";
783
- node: "node";
784
- }>;
785
- nodeId: z.ZodNullable<z.ZodString>;
786
- operationId: z.ZodNullable<z.ZodString>;
787
- parentCommitId: z.ZodNullable<z.ZodString>;
788
- payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
789
- operation: z.ZodEnum<{
790
- [x: `${string}_file_create`]: `${string}_file_create`;
791
- [x: `${string}_file_delete`]: `${string}_file_delete`;
792
- [x: `${string}_file_update`]: `${string}_file_update`;
793
- [x: `${string}_metadata_update`]: `${string}_metadata_update`;
794
- base_add_field: "base_add_field";
795
- base_archive: "base_archive";
796
- base_convert_field: "base_convert_field";
797
- base_delete_field: "base_delete_field";
798
- base_reorder_fields: "base_reorder_fields";
799
- base_restore: "base_restore";
800
- base_restore_field: "base_restore_field";
801
- base_update_field: "base_update_field";
802
- doc_update: "doc_update";
803
- html_document_update: "html_document_update";
804
- node_create: "node_create";
805
- node_delete: "node_delete";
806
- node_move: "node_move";
807
- node_rename: "node_rename";
808
- node_restore: "node_restore";
809
- record_create: "record_create";
810
- record_delete: "record_delete";
811
- record_restore: "record_restore";
812
- record_update: "record_update";
813
- record_variant: "record_variant";
814
- view_create: "view_create";
815
- view_delete: "view_delete";
816
- view_restore: "view_restore";
817
- view_update: "view_update";
818
- whiteboard_document_update: "whiteboard_document_update";
819
- workflow_document_update: "workflow_document_update";
820
- }>;
821
- message: z.ZodString;
822
- author: z.ZodString;
823
- authorUser: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
824
- id: z.ZodString;
825
- name: z.ZodNullable<z.ZodString>;
826
- email: z.ZodNullable<z.ZodString>;
827
- image: z.ZodNullable<z.ZodString>;
828
- role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
829
- }, z.core.$strip>>>>;
830
- createdAt: z.ZodString;
831
- }, z.core.$strip>;
832
- baseFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
833
- }, z.core.$strip>>;
834
- primaryOperation: z.ZodNullable<z.ZodObject<{
835
- id: z.ZodString;
836
- changeRequestId: z.ZodString;
837
- baseId: z.ZodNullable<z.ZodString>;
838
- targetType: z.ZodEnum<{
839
- base: "base";
840
- node: "node";
841
- }>;
842
- nodeId: z.ZodNullable<z.ZodString>;
843
- operation: z.ZodEnum<{
844
- [x: `${string}_file_create`]: `${string}_file_create`;
845
- [x: `${string}_file_delete`]: `${string}_file_delete`;
846
- [x: `${string}_file_update`]: `${string}_file_update`;
847
- [x: `${string}_metadata_update`]: `${string}_metadata_update`;
848
- base_add_field: "base_add_field";
849
- base_archive: "base_archive";
850
- base_convert_field: "base_convert_field";
851
- base_delete_field: "base_delete_field";
852
- base_reorder_fields: "base_reorder_fields";
853
- base_restore: "base_restore";
854
- base_restore_field: "base_restore_field";
855
- base_update_field: "base_update_field";
856
- doc_update: "doc_update";
857
- html_document_update: "html_document_update";
858
- node_create: "node_create";
859
- node_delete: "node_delete";
860
- node_move: "node_move";
861
- node_rename: "node_rename";
862
- node_restore: "node_restore";
863
- record_create: "record_create";
864
- record_delete: "record_delete";
865
- record_restore: "record_restore";
866
- record_update: "record_update";
867
- record_variant: "record_variant";
868
- view_create: "view_create";
869
- view_delete: "view_delete";
870
- view_restore: "view_restore";
871
- view_update: "view_update";
872
- whiteboard_document_update: "whiteboard_document_update";
873
- workflow_document_update: "workflow_document_update";
874
- }>;
875
- status: z.ZodEnum<{
876
- archived: "archived";
877
- failed: "failed";
878
- merged: "merged";
879
- pending: "pending";
880
- }>;
881
- targetRecordId: z.ZodNullable<z.ZodString>;
882
- targetViewId: z.ZodNullable<z.ZodString>;
883
- filePath: z.ZodNullable<z.ZodString>;
884
- sourceRecordId: z.ZodNullable<z.ZodString>;
885
- sourceCommitId: z.ZodNullable<z.ZodString>;
886
- baseCommitId: z.ZodNullable<z.ZodString>;
887
- headCommitId: z.ZodString;
888
- deleteMode: z.ZodEnum<{
889
- archive: "archive";
890
- }>;
891
- mergedRecordId: z.ZodNullable<z.ZodString>;
892
- mergedViewId: z.ZodNullable<z.ZodString>;
893
- position: z.ZodNumber;
894
- createdAt: z.ZodString;
895
- updatedAt: z.ZodString;
896
- headCommit: z.ZodObject<{
897
- id: z.ZodString;
898
- baseId: z.ZodNullable<z.ZodString>;
899
- targetType: z.ZodEnum<{
900
- base: "base";
901
- node: "node";
902
- }>;
903
- nodeId: z.ZodNullable<z.ZodString>;
904
- operationId: z.ZodNullable<z.ZodString>;
905
- parentCommitId: z.ZodNullable<z.ZodString>;
906
- payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
907
- operation: z.ZodEnum<{
908
- [x: `${string}_file_create`]: `${string}_file_create`;
909
- [x: `${string}_file_delete`]: `${string}_file_delete`;
910
- [x: `${string}_file_update`]: `${string}_file_update`;
911
- [x: `${string}_metadata_update`]: `${string}_metadata_update`;
912
- base_add_field: "base_add_field";
913
- base_archive: "base_archive";
914
- base_convert_field: "base_convert_field";
915
- base_delete_field: "base_delete_field";
916
- base_reorder_fields: "base_reorder_fields";
917
- base_restore: "base_restore";
918
- base_restore_field: "base_restore_field";
919
- base_update_field: "base_update_field";
920
- doc_update: "doc_update";
921
- html_document_update: "html_document_update";
922
- node_create: "node_create";
923
- node_delete: "node_delete";
924
- node_move: "node_move";
925
- node_rename: "node_rename";
926
- node_restore: "node_restore";
927
- record_create: "record_create";
928
- record_delete: "record_delete";
929
- record_restore: "record_restore";
930
- record_update: "record_update";
931
- record_variant: "record_variant";
932
- view_create: "view_create";
933
- view_delete: "view_delete";
934
- view_restore: "view_restore";
935
- view_update: "view_update";
936
- whiteboard_document_update: "whiteboard_document_update";
937
- workflow_document_update: "workflow_document_update";
938
- }>;
939
- message: z.ZodString;
940
- author: z.ZodString;
941
- authorUser: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
942
- id: z.ZodString;
943
- name: z.ZodNullable<z.ZodString>;
944
- email: z.ZodNullable<z.ZodString>;
945
- image: z.ZodNullable<z.ZodString>;
946
- role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
947
- }, z.core.$strip>>>>;
948
- createdAt: z.ZodString;
949
- }, z.core.$strip>;
950
- baseFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
951
- }, z.core.$strip>>;
952
- operationCount: z.ZodNumber;
953
- reviews: z.ZodArray<z.ZodObject<{
954
- id: z.ZodString;
955
- changeRequestId: z.ZodString;
956
- reviewerId: z.ZodString;
957
- reviewer: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
958
- id: z.ZodString;
959
- name: z.ZodNullable<z.ZodString>;
960
- email: z.ZodNullable<z.ZodString>;
961
- image: z.ZodNullable<z.ZodString>;
962
- role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
963
- }, z.core.$strip>>>>;
964
- verdict: z.ZodEnum<{
965
- approved: "approved";
966
- rejected: "rejected";
967
- }>;
968
- reason: z.ZodNullable<z.ZodString>;
969
- visibleOperationHeads: z.ZodRecord<z.ZodString, z.ZodString>;
970
- createdAt: z.ZodString;
971
- }, z.core.$strip>>;
972
- }, z.core.$strip>;
973
- }, z.core.$strip>, z.ZodObject<{
974
- kind: z.ZodLiteral<"operation">;
975
- timestamp: z.ZodString;
976
- operationId: z.ZodString;
977
- changeRequest: z.ZodObject<{
978
- id: z.ZodString;
979
- baseId: z.ZodNullable<z.ZodString>;
980
- targetType: z.ZodEnum<{
981
- base: "base";
982
- node: "node";
983
- }>;
984
- nodeId: z.ZodNullable<z.ZodString>;
985
- status: z.ZodEnum<{
986
- abandoned: "abandoned";
987
- approved: "approved";
988
- changes_requested: "changes_requested";
989
- conflict: "conflict";
990
- in_review: "in_review";
991
- merged: "merged";
992
- rejected: "rejected";
993
- }>;
994
- submittedBy: z.ZodString;
995
- submittedByUser: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
996
- id: z.ZodString;
997
- name: z.ZodNullable<z.ZodString>;
998
- email: z.ZodNullable<z.ZodString>;
999
- image: z.ZodNullable<z.ZodString>;
1000
- role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1001
- }, z.core.$strip>>>>;
1002
- sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1003
- reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1004
- mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1005
- rejectedReason: z.ZodNullable<z.ZodString>;
1006
- reviewedAt: z.ZodNullable<z.ZodString>;
1007
- mergedAt: z.ZodNullable<z.ZodString>;
1008
- createdAt: z.ZodString;
1009
- updatedAt: z.ZodString;
1010
- base: z.ZodNullable<z.ZodObject<{
1011
- id: z.ZodString;
1012
- nodeId: z.ZodString;
1013
- slug: z.ZodString;
1014
- name: z.ZodString;
1015
- description: z.ZodString;
1016
- reviewPolicy: z.ZodObject<{
1017
- kind: z.ZodLiteral<"single">;
1018
- requiredApprovals: z.ZodNumber;
1019
- }, z.core.$strip>;
1020
- createdAt: z.ZodString;
1021
- fields: z.ZodArray<z.ZodObject<{
1022
- id: z.ZodString;
1023
- baseId: z.ZodString;
1024
- slug: z.ZodString;
1025
- name: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<{
1026
- de: "de";
1027
- en: "en";
1028
- es: "es";
1029
- fr: "fr";
1030
- ja: "ja";
1031
- ko: "ko";
1032
- pt: "pt";
1033
- "zh-CN": "zh-CN";
1034
- "zh-TW": "zh-TW";
1035
- }> & z.core.$partial, z.ZodString>]>;
1036
- type: z.ZodEnum<{
1037
- ai_summary: "ai_summary";
1038
- ai_tags: "ai_tags";
1039
- attachment: "attachment";
1040
- auto_number: "auto_number";
1041
- checkbox: "checkbox";
1042
- code: "code";
1043
- created_by: "created_by";
1044
- created_time: "created_time";
1045
- date: "date";
1046
- email: "email";
1047
- embed: "embed";
1048
- formula: "formula";
1049
- html: "html";
1050
- json: "json";
1051
- longtext: "longtext";
1052
- lookup: "lookup";
1053
- markdown: "markdown";
1054
- multiselect: "multiselect";
1055
- number: "number";
1056
- phone: "phone";
1057
- relation: "relation";
1058
- select: "select";
1059
- text: "text";
1060
- updated_by: "updated_by";
1061
- updated_time: "updated_time";
1062
- url: "url";
1063
- whiteboard: "whiteboard";
1064
- yaml: "yaml";
1065
- }>;
1066
- required: z.ZodBoolean;
1067
- position: z.ZodNumber;
1068
- options: z.ZodDefault<z.ZodObject<{
1069
- ai: z.ZodOptional<z.ZodObject<{
1070
- model: z.ZodOptional<z.ZodString>;
1071
- prompt: z.ZodOptional<z.ZodString>;
1072
- reviewRequired: z.ZodOptional<z.ZodBoolean>;
1073
- sourceFieldIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1074
- }, z.core.$strip>>;
1075
- attachment: z.ZodOptional<z.ZodObject<{
1076
- maxFiles: z.ZodOptional<z.ZodNumber>;
1077
- allowedMimeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1078
- maxFileSize: z.ZodOptional<z.ZodNumber>;
1079
- }, z.core.$strip>>;
1080
- choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
1081
- color: z.ZodOptional<z.ZodString>;
1082
- id: z.ZodString;
1083
- name: z.ZodString;
1084
- }, z.core.$strip>>>;
1085
- code: z.ZodOptional<z.ZodObject<{
1086
- language: z.ZodOptional<z.ZodString>;
1087
- }, z.core.$strip>>;
1088
- embed: z.ZodOptional<z.ZodObject<{
1089
- aspectRatio: z.ZodOptional<z.ZodEnum<{
1090
- "16:9": "16:9";
1091
- "1:1": "1:1";
1092
- "4:3": "4:3";
1093
- }>>;
1094
- height: z.ZodOptional<z.ZodNumber>;
1095
- providers: z.ZodOptional<z.ZodArray<z.ZodString>>;
1096
- }, z.core.$strip>>;
1097
- formula: z.ZodOptional<z.ZodObject<{
1098
- expression: z.ZodString;
1099
- }, z.core.$strip>>;
1100
- inverseFieldId: z.ZodOptional<z.ZodString>;
1101
- lookup: z.ZodOptional<z.ZodObject<{
1102
- relationFieldSlug: z.ZodString;
1103
- targetFieldSlug: z.ZodString;
1104
- rollup: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
1105
- average: "average";
1106
- concatenate: "concatenate";
1107
- count: "count";
1108
- max: "max";
1109
- min: "min";
1110
- sum: "sum";
1111
- values: "values";
1112
- }>>>;
1113
- limit: z.ZodOptional<z.ZodEnum<{
1114
- all: "all";
1115
- first: "first";
1116
- }>>;
1117
- }, z.core.$strip>>;
1118
- multiple: z.ZodOptional<z.ZodBoolean>;
1119
- number: z.ZodOptional<z.ZodObject<{
1120
- format: z.ZodOptional<z.ZodEnum<{
1121
- currency: "currency";
1122
- plain: "plain";
1123
- }>>;
1124
- currency: z.ZodOptional<z.ZodString>;
1125
- locale: z.ZodOptional<z.ZodString>;
1126
- }, z.core.$strip>>;
1127
- targetBaseId: z.ZodOptional<z.ZodString>;
1128
- targetBaseSlug: z.ZodOptional<z.ZodString>;
1129
- }, z.core.$strip>>;
1130
- }, z.core.$strip>>;
1131
- }, z.core.$strip>>;
1132
- node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
1133
- operations: z.ZodArray<z.ZodObject<{
1134
- id: z.ZodString;
1135
- changeRequestId: z.ZodString;
1136
- baseId: z.ZodNullable<z.ZodString>;
1137
- targetType: z.ZodEnum<{
1138
- base: "base";
1139
- node: "node";
1140
- }>;
1141
- nodeId: z.ZodNullable<z.ZodString>;
1142
- operation: z.ZodEnum<{
1143
- [x: `${string}_file_create`]: `${string}_file_create`;
1144
- [x: `${string}_file_delete`]: `${string}_file_delete`;
1145
- [x: `${string}_file_update`]: `${string}_file_update`;
1146
- [x: `${string}_metadata_update`]: `${string}_metadata_update`;
1147
- base_add_field: "base_add_field";
1148
- base_archive: "base_archive";
1149
- base_convert_field: "base_convert_field";
1150
- base_delete_field: "base_delete_field";
1151
- base_reorder_fields: "base_reorder_fields";
1152
- base_restore: "base_restore";
1153
- base_restore_field: "base_restore_field";
1154
- base_update_field: "base_update_field";
1155
- doc_update: "doc_update";
1156
- html_document_update: "html_document_update";
1157
- node_create: "node_create";
1158
- node_delete: "node_delete";
1159
- node_move: "node_move";
1160
- node_rename: "node_rename";
1161
- node_restore: "node_restore";
1162
- record_create: "record_create";
1163
- record_delete: "record_delete";
1164
- record_restore: "record_restore";
1165
- record_update: "record_update";
1166
- record_variant: "record_variant";
1167
- view_create: "view_create";
1168
- view_delete: "view_delete";
1169
- view_restore: "view_restore";
1170
- view_update: "view_update";
1171
- whiteboard_document_update: "whiteboard_document_update";
1172
- workflow_document_update: "workflow_document_update";
1173
- }>;
1174
- status: z.ZodEnum<{
1175
- archived: "archived";
1176
- failed: "failed";
1177
- merged: "merged";
1178
- pending: "pending";
1179
- }>;
1180
- targetRecordId: z.ZodNullable<z.ZodString>;
1181
- targetViewId: z.ZodNullable<z.ZodString>;
1182
- filePath: z.ZodNullable<z.ZodString>;
1183
- sourceRecordId: z.ZodNullable<z.ZodString>;
1184
- sourceCommitId: z.ZodNullable<z.ZodString>;
1185
- baseCommitId: z.ZodNullable<z.ZodString>;
1186
- headCommitId: z.ZodString;
1187
- deleteMode: z.ZodEnum<{
1188
- archive: "archive";
1189
- }>;
1190
- mergedRecordId: z.ZodNullable<z.ZodString>;
1191
- mergedViewId: z.ZodNullable<z.ZodString>;
1192
- position: z.ZodNumber;
1193
- createdAt: z.ZodString;
1194
- updatedAt: z.ZodString;
1195
- headCommit: z.ZodObject<{
1196
- id: z.ZodString;
1197
- baseId: z.ZodNullable<z.ZodString>;
1198
- targetType: z.ZodEnum<{
1199
- base: "base";
1200
- node: "node";
1201
- }>;
1202
- nodeId: z.ZodNullable<z.ZodString>;
1203
- operationId: z.ZodNullable<z.ZodString>;
1204
- parentCommitId: z.ZodNullable<z.ZodString>;
1205
- payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1206
- operation: z.ZodEnum<{
1207
- [x: `${string}_file_create`]: `${string}_file_create`;
1208
- [x: `${string}_file_delete`]: `${string}_file_delete`;
1209
- [x: `${string}_file_update`]: `${string}_file_update`;
1210
- [x: `${string}_metadata_update`]: `${string}_metadata_update`;
1211
- base_add_field: "base_add_field";
1212
- base_archive: "base_archive";
1213
- base_convert_field: "base_convert_field";
1214
- base_delete_field: "base_delete_field";
1215
- base_reorder_fields: "base_reorder_fields";
1216
- base_restore: "base_restore";
1217
- base_restore_field: "base_restore_field";
1218
- base_update_field: "base_update_field";
1219
- doc_update: "doc_update";
1220
- html_document_update: "html_document_update";
1221
- node_create: "node_create";
1222
- node_delete: "node_delete";
1223
- node_move: "node_move";
1224
- node_rename: "node_rename";
1225
- node_restore: "node_restore";
1226
- record_create: "record_create";
1227
- record_delete: "record_delete";
1228
- record_restore: "record_restore";
1229
- record_update: "record_update";
1230
- record_variant: "record_variant";
1231
- view_create: "view_create";
1232
- view_delete: "view_delete";
1233
- view_restore: "view_restore";
1234
- view_update: "view_update";
1235
- whiteboard_document_update: "whiteboard_document_update";
1236
- workflow_document_update: "workflow_document_update";
1237
- }>;
1238
- message: z.ZodString;
1239
- author: z.ZodString;
1240
- authorUser: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1241
- id: z.ZodString;
1242
- name: z.ZodNullable<z.ZodString>;
1243
- email: z.ZodNullable<z.ZodString>;
1244
- image: z.ZodNullable<z.ZodString>;
1245
- role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1246
- }, z.core.$strip>>>>;
1247
- createdAt: z.ZodString;
1248
- }, z.core.$strip>;
1249
- baseFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1250
- }, z.core.$strip>>;
1251
- primaryOperation: z.ZodNullable<z.ZodObject<{
1252
- id: z.ZodString;
1253
- changeRequestId: z.ZodString;
1254
- baseId: z.ZodNullable<z.ZodString>;
1255
- targetType: z.ZodEnum<{
1256
- base: "base";
1257
- node: "node";
1258
- }>;
1259
- nodeId: z.ZodNullable<z.ZodString>;
1260
- operation: z.ZodEnum<{
1261
- [x: `${string}_file_create`]: `${string}_file_create`;
1262
- [x: `${string}_file_delete`]: `${string}_file_delete`;
1263
- [x: `${string}_file_update`]: `${string}_file_update`;
1264
- [x: `${string}_metadata_update`]: `${string}_metadata_update`;
1265
- base_add_field: "base_add_field";
1266
- base_archive: "base_archive";
1267
- base_convert_field: "base_convert_field";
1268
- base_delete_field: "base_delete_field";
1269
- base_reorder_fields: "base_reorder_fields";
1270
- base_restore: "base_restore";
1271
- base_restore_field: "base_restore_field";
1272
- base_update_field: "base_update_field";
1273
- doc_update: "doc_update";
1274
- html_document_update: "html_document_update";
1275
- node_create: "node_create";
1276
- node_delete: "node_delete";
1277
- node_move: "node_move";
1278
- node_rename: "node_rename";
1279
- node_restore: "node_restore";
1280
- record_create: "record_create";
1281
- record_delete: "record_delete";
1282
- record_restore: "record_restore";
1283
- record_update: "record_update";
1284
- record_variant: "record_variant";
1285
- view_create: "view_create";
1286
- view_delete: "view_delete";
1287
- view_restore: "view_restore";
1288
- view_update: "view_update";
1289
- whiteboard_document_update: "whiteboard_document_update";
1290
- workflow_document_update: "workflow_document_update";
1291
- }>;
1292
- status: z.ZodEnum<{
1293
- archived: "archived";
1294
- failed: "failed";
1295
- merged: "merged";
1296
- pending: "pending";
1297
- }>;
1298
- targetRecordId: z.ZodNullable<z.ZodString>;
1299
- targetViewId: z.ZodNullable<z.ZodString>;
1300
- filePath: z.ZodNullable<z.ZodString>;
1301
- sourceRecordId: z.ZodNullable<z.ZodString>;
1302
- sourceCommitId: z.ZodNullable<z.ZodString>;
1303
- baseCommitId: z.ZodNullable<z.ZodString>;
1304
- headCommitId: z.ZodString;
1305
- deleteMode: z.ZodEnum<{
1306
- archive: "archive";
1307
- }>;
1308
- mergedRecordId: z.ZodNullable<z.ZodString>;
1309
- mergedViewId: z.ZodNullable<z.ZodString>;
1310
- position: z.ZodNumber;
1311
- createdAt: z.ZodString;
1312
- updatedAt: z.ZodString;
1313
- headCommit: z.ZodObject<{
1314
- id: z.ZodString;
1315
- baseId: z.ZodNullable<z.ZodString>;
1316
- targetType: z.ZodEnum<{
1317
- base: "base";
1318
- node: "node";
1319
- }>;
1320
- nodeId: z.ZodNullable<z.ZodString>;
1321
- operationId: z.ZodNullable<z.ZodString>;
1322
- parentCommitId: z.ZodNullable<z.ZodString>;
1323
- payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1324
- operation: z.ZodEnum<{
1325
- [x: `${string}_file_create`]: `${string}_file_create`;
1326
- [x: `${string}_file_delete`]: `${string}_file_delete`;
1327
- [x: `${string}_file_update`]: `${string}_file_update`;
1328
- [x: `${string}_metadata_update`]: `${string}_metadata_update`;
1329
- base_add_field: "base_add_field";
1330
- base_archive: "base_archive";
1331
- base_convert_field: "base_convert_field";
1332
- base_delete_field: "base_delete_field";
1333
- base_reorder_fields: "base_reorder_fields";
1334
- base_restore: "base_restore";
1335
- base_restore_field: "base_restore_field";
1336
- base_update_field: "base_update_field";
1337
- doc_update: "doc_update";
1338
- html_document_update: "html_document_update";
1339
- node_create: "node_create";
1340
- node_delete: "node_delete";
1341
- node_move: "node_move";
1342
- node_rename: "node_rename";
1343
- node_restore: "node_restore";
1344
- record_create: "record_create";
1345
- record_delete: "record_delete";
1346
- record_restore: "record_restore";
1347
- record_update: "record_update";
1348
- record_variant: "record_variant";
1349
- view_create: "view_create";
1350
- view_delete: "view_delete";
1351
- view_restore: "view_restore";
1352
- view_update: "view_update";
1353
- whiteboard_document_update: "whiteboard_document_update";
1354
- workflow_document_update: "workflow_document_update";
1355
- }>;
1356
- message: z.ZodString;
1357
- author: z.ZodString;
1358
- authorUser: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1359
- id: z.ZodString;
1360
- name: z.ZodNullable<z.ZodString>;
1361
- email: z.ZodNullable<z.ZodString>;
1362
- image: z.ZodNullable<z.ZodString>;
1363
- role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1364
- }, z.core.$strip>>>>;
1365
- createdAt: z.ZodString;
1366
- }, z.core.$strip>;
1367
- baseFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1368
- }, z.core.$strip>>;
1369
- operationCount: z.ZodNumber;
1370
- reviews: z.ZodArray<z.ZodObject<{
1371
- id: z.ZodString;
1372
- changeRequestId: z.ZodString;
1373
- reviewerId: z.ZodString;
1374
- reviewer: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1375
- id: z.ZodString;
1376
- name: z.ZodNullable<z.ZodString>;
1377
- email: z.ZodNullable<z.ZodString>;
1378
- image: z.ZodNullable<z.ZodString>;
1379
- role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1380
- }, z.core.$strip>>>>;
1381
- verdict: z.ZodEnum<{
1382
- approved: "approved";
1383
- rejected: "rejected";
1384
- }>;
1385
- reason: z.ZodNullable<z.ZodString>;
1386
- visibleOperationHeads: z.ZodRecord<z.ZodString, z.ZodString>;
1387
- createdAt: z.ZodString;
1388
- }, z.core.$strip>>;
1389
- }, z.core.$strip>;
1390
- }, z.core.$strip>, z.ZodObject<{
1391
- kind: z.ZodLiteral<"record">;
1392
- timestamp: z.ZodString;
1393
- record: z.ZodObject<{
1394
- id: z.ZodString;
1395
- baseId: z.ZodString;
1396
- headCommitId: z.ZodString;
1397
- parentRecordId: z.ZodNullable<z.ZodString>;
1398
- parentCommitId: z.ZodNullable<z.ZodString>;
1399
- status: z.ZodEnum<{
1400
- active: "active";
1401
- archived: "archived";
1402
- }>;
1403
- createdBy: z.ZodString;
1404
- createdByUser: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1405
- id: z.ZodString;
1406
- name: z.ZodNullable<z.ZodString>;
1407
- email: z.ZodNullable<z.ZodString>;
1408
- image: z.ZodNullable<z.ZodString>;
1409
- role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1410
- }, z.core.$strip>>>>;
1411
- archivedAt: z.ZodNullable<z.ZodString>;
1412
- createdAt: z.ZodString;
1413
- updatedAt: z.ZodString;
1414
- base: z.ZodObject<{
1415
- id: z.ZodString;
1416
- nodeId: z.ZodString;
1417
- slug: z.ZodString;
1418
- name: z.ZodString;
1419
- description: z.ZodString;
1420
- reviewPolicy: z.ZodObject<{
1421
- kind: z.ZodLiteral<"single">;
1422
- requiredApprovals: z.ZodNumber;
1423
- }, z.core.$strip>;
1424
- createdAt: z.ZodString;
1425
- fields: z.ZodArray<z.ZodObject<{
1426
- id: z.ZodString;
1427
- baseId: z.ZodString;
1428
- slug: z.ZodString;
1429
- name: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<{
1430
- de: "de";
1431
- en: "en";
1432
- es: "es";
1433
- fr: "fr";
1434
- ja: "ja";
1435
- ko: "ko";
1436
- pt: "pt";
1437
- "zh-CN": "zh-CN";
1438
- "zh-TW": "zh-TW";
1439
- }> & z.core.$partial, z.ZodString>]>;
1440
- type: z.ZodEnum<{
1441
- ai_summary: "ai_summary";
1442
- ai_tags: "ai_tags";
1443
- attachment: "attachment";
1444
- auto_number: "auto_number";
1445
- checkbox: "checkbox";
1446
- code: "code";
1447
- created_by: "created_by";
1448
- created_time: "created_time";
1449
- date: "date";
1450
- email: "email";
1451
- embed: "embed";
1452
- formula: "formula";
1453
- html: "html";
1454
- json: "json";
1455
- longtext: "longtext";
1456
- lookup: "lookup";
1457
- markdown: "markdown";
1458
- multiselect: "multiselect";
1459
- number: "number";
1460
- phone: "phone";
1461
- relation: "relation";
1462
- select: "select";
1463
- text: "text";
1464
- updated_by: "updated_by";
1465
- updated_time: "updated_time";
1466
- url: "url";
1467
- whiteboard: "whiteboard";
1468
- yaml: "yaml";
1469
- }>;
1470
- required: z.ZodBoolean;
1471
- position: z.ZodNumber;
1472
- options: z.ZodDefault<z.ZodObject<{
1473
- ai: z.ZodOptional<z.ZodObject<{
1474
- model: z.ZodOptional<z.ZodString>;
1475
- prompt: z.ZodOptional<z.ZodString>;
1476
- reviewRequired: z.ZodOptional<z.ZodBoolean>;
1477
- sourceFieldIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1478
- }, z.core.$strip>>;
1479
- attachment: z.ZodOptional<z.ZodObject<{
1480
- maxFiles: z.ZodOptional<z.ZodNumber>;
1481
- allowedMimeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1482
- maxFileSize: z.ZodOptional<z.ZodNumber>;
1483
- }, z.core.$strip>>;
1484
- choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
1485
- color: z.ZodOptional<z.ZodString>;
1486
- id: z.ZodString;
1487
- name: z.ZodString;
1488
- }, z.core.$strip>>>;
1489
- code: z.ZodOptional<z.ZodObject<{
1490
- language: z.ZodOptional<z.ZodString>;
1491
- }, z.core.$strip>>;
1492
- embed: z.ZodOptional<z.ZodObject<{
1493
- aspectRatio: z.ZodOptional<z.ZodEnum<{
1494
- "16:9": "16:9";
1495
- "1:1": "1:1";
1496
- "4:3": "4:3";
1497
- }>>;
1498
- height: z.ZodOptional<z.ZodNumber>;
1499
- providers: z.ZodOptional<z.ZodArray<z.ZodString>>;
1500
- }, z.core.$strip>>;
1501
- formula: z.ZodOptional<z.ZodObject<{
1502
- expression: z.ZodString;
1503
- }, z.core.$strip>>;
1504
- inverseFieldId: z.ZodOptional<z.ZodString>;
1505
- lookup: z.ZodOptional<z.ZodObject<{
1506
- relationFieldSlug: z.ZodString;
1507
- targetFieldSlug: z.ZodString;
1508
- rollup: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
1509
- average: "average";
1510
- concatenate: "concatenate";
1511
- count: "count";
1512
- max: "max";
1513
- min: "min";
1514
- sum: "sum";
1515
- values: "values";
1516
- }>>>;
1517
- limit: z.ZodOptional<z.ZodEnum<{
1518
- all: "all";
1519
- first: "first";
1520
- }>>;
1521
- }, z.core.$strip>>;
1522
- multiple: z.ZodOptional<z.ZodBoolean>;
1523
- number: z.ZodOptional<z.ZodObject<{
1524
- format: z.ZodOptional<z.ZodEnum<{
1525
- currency: "currency";
1526
- plain: "plain";
1527
- }>>;
1528
- currency: z.ZodOptional<z.ZodString>;
1529
- locale: z.ZodOptional<z.ZodString>;
1530
- }, z.core.$strip>>;
1531
- targetBaseId: z.ZodOptional<z.ZodString>;
1532
- targetBaseSlug: z.ZodOptional<z.ZodString>;
1533
- }, z.core.$strip>>;
1534
- }, z.core.$strip>>;
1535
- }, z.core.$strip>;
1536
- headCommit: z.ZodObject<{
1537
- id: z.ZodString;
1538
- baseId: z.ZodNullable<z.ZodString>;
1539
- targetType: z.ZodEnum<{
1540
- base: "base";
1541
- node: "node";
1542
- }>;
1543
- nodeId: z.ZodNullable<z.ZodString>;
1544
- operationId: z.ZodNullable<z.ZodString>;
1545
- parentCommitId: z.ZodNullable<z.ZodString>;
1546
- payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1547
- operation: z.ZodEnum<{
1548
- [x: `${string}_file_create`]: `${string}_file_create`;
1549
- [x: `${string}_file_delete`]: `${string}_file_delete`;
1550
- [x: `${string}_file_update`]: `${string}_file_update`;
1551
- [x: `${string}_metadata_update`]: `${string}_metadata_update`;
1552
- base_add_field: "base_add_field";
1553
- base_archive: "base_archive";
1554
- base_convert_field: "base_convert_field";
1555
- base_delete_field: "base_delete_field";
1556
- base_reorder_fields: "base_reorder_fields";
1557
- base_restore: "base_restore";
1558
- base_restore_field: "base_restore_field";
1559
- base_update_field: "base_update_field";
1560
- doc_update: "doc_update";
1561
- html_document_update: "html_document_update";
1562
- node_create: "node_create";
1563
- node_delete: "node_delete";
1564
- node_move: "node_move";
1565
- node_rename: "node_rename";
1566
- node_restore: "node_restore";
1567
- record_create: "record_create";
1568
- record_delete: "record_delete";
1569
- record_restore: "record_restore";
1570
- record_update: "record_update";
1571
- record_variant: "record_variant";
1572
- view_create: "view_create";
1573
- view_delete: "view_delete";
1574
- view_restore: "view_restore";
1575
- view_update: "view_update";
1576
- whiteboard_document_update: "whiteboard_document_update";
1577
- workflow_document_update: "workflow_document_update";
1578
- }>;
1579
- message: z.ZodString;
1580
- author: z.ZodString;
1581
- authorUser: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1582
- id: z.ZodString;
1583
- name: z.ZodNullable<z.ZodString>;
1584
- email: z.ZodNullable<z.ZodString>;
1585
- image: z.ZodNullable<z.ZodString>;
1586
- role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1587
- }, z.core.$strip>>>>;
1588
- createdAt: z.ZodString;
1589
- }, z.core.$strip>;
1590
- }, z.core.$strip>;
1591
- }, z.core.$strip>, z.ZodObject<{
1592
- kind: z.ZodLiteral<"audit">;
1593
- timestamp: z.ZodString;
1594
- auditEvent: z.ZodObject<{
1595
- id: z.ZodString;
1596
- action: z.ZodEnum<{
1597
- "airapp.created": "airapp.created";
1598
- "asset.deleted": "asset.deleted";
1599
- "asset.metadata_updated": "asset.metadata_updated";
1600
- "asset.text_marked_none": "asset.text_marked_none";
1601
- "asset.text_written": "asset.text_written";
1602
- "base.created": "base.created";
1603
- "change_request.created": "change_request.created";
1604
- "change_request.deleted": "change_request.deleted";
1605
- "change_request.merged": "change_request.merged";
1606
- "change_request.reviewed": "change_request.reviewed";
1607
- "change_request.updated": "change_request.updated";
1608
- "doc.created": "doc.created";
1609
- "doc.updated": "doc.updated";
1610
- "drive.created": "drive.created";
1611
- "field.created": "field.created";
1612
- "file.created": "file.created";
1613
- "node.metadata_updated": "node.metadata_updated";
1614
- "node.purged": "node.purged";
1615
- "record.viewed": "record.viewed";
1616
- "skill.created": "skill.created";
1617
- }>;
1618
- actorId: z.ZodString;
1619
- actor: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1620
- id: z.ZodString;
1621
- name: z.ZodNullable<z.ZodString>;
1622
- email: z.ZodNullable<z.ZodString>;
1623
- image: z.ZodNullable<z.ZodString>;
1624
- role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1625
- }, z.core.$strip>>>>;
1626
- baseId: z.ZodNullable<z.ZodString>;
1627
- recordId: z.ZodNullable<z.ZodString>;
1628
- changeRequestId: z.ZodNullable<z.ZodString>;
1629
- operationId: z.ZodNullable<z.ZodString>;
1630
- commitId: z.ZodNullable<z.ZodString>;
1631
- metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1632
- createdAt: z.ZodString;
1633
- }, z.core.$strip>;
1634
- record: z.ZodNullable<z.ZodObject<{
1635
- id: z.ZodString;
1636
- baseId: z.ZodString;
1637
- headCommitId: z.ZodString;
1638
- parentRecordId: z.ZodNullable<z.ZodString>;
1639
- parentCommitId: z.ZodNullable<z.ZodString>;
1640
- status: z.ZodEnum<{
1641
- active: "active";
1642
- archived: "archived";
1643
- }>;
1644
- createdBy: z.ZodString;
1645
- createdByUser: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1646
- id: z.ZodString;
1647
- name: z.ZodNullable<z.ZodString>;
1648
- email: z.ZodNullable<z.ZodString>;
1649
- image: z.ZodNullable<z.ZodString>;
1650
- role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1651
- }, z.core.$strip>>>>;
1652
- archivedAt: z.ZodNullable<z.ZodString>;
1653
- createdAt: z.ZodString;
1654
- updatedAt: z.ZodString;
1655
- base: z.ZodObject<{
1656
- id: z.ZodString;
1657
- nodeId: z.ZodString;
1658
- slug: z.ZodString;
1659
- name: z.ZodString;
1660
- description: z.ZodString;
1661
- reviewPolicy: z.ZodObject<{
1662
- kind: z.ZodLiteral<"single">;
1663
- requiredApprovals: z.ZodNumber;
1664
- }, z.core.$strip>;
1665
- createdAt: z.ZodString;
1666
- fields: z.ZodArray<z.ZodObject<{
1667
- id: z.ZodString;
1668
- baseId: z.ZodString;
1669
- slug: z.ZodString;
1670
- name: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<{
1671
- de: "de";
1672
- en: "en";
1673
- es: "es";
1674
- fr: "fr";
1675
- ja: "ja";
1676
- ko: "ko";
1677
- pt: "pt";
1678
- "zh-CN": "zh-CN";
1679
- "zh-TW": "zh-TW";
1680
- }> & z.core.$partial, z.ZodString>]>;
1681
- type: z.ZodEnum<{
1682
- ai_summary: "ai_summary";
1683
- ai_tags: "ai_tags";
1684
- attachment: "attachment";
1685
- auto_number: "auto_number";
1686
- checkbox: "checkbox";
1687
- code: "code";
1688
- created_by: "created_by";
1689
- created_time: "created_time";
1690
- date: "date";
1691
- email: "email";
1692
- embed: "embed";
1693
- formula: "formula";
1694
- html: "html";
1695
- json: "json";
1696
- longtext: "longtext";
1697
- lookup: "lookup";
1698
- markdown: "markdown";
1699
- multiselect: "multiselect";
1700
- number: "number";
1701
- phone: "phone";
1702
- relation: "relation";
1703
- select: "select";
1704
- text: "text";
1705
- updated_by: "updated_by";
1706
- updated_time: "updated_time";
1707
- url: "url";
1708
- whiteboard: "whiteboard";
1709
- yaml: "yaml";
1710
- }>;
1711
- required: z.ZodBoolean;
1712
- position: z.ZodNumber;
1713
- options: z.ZodDefault<z.ZodObject<{
1714
- ai: z.ZodOptional<z.ZodObject<{
1715
- model: z.ZodOptional<z.ZodString>;
1716
- prompt: z.ZodOptional<z.ZodString>;
1717
- reviewRequired: z.ZodOptional<z.ZodBoolean>;
1718
- sourceFieldIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1719
- }, z.core.$strip>>;
1720
- attachment: z.ZodOptional<z.ZodObject<{
1721
- maxFiles: z.ZodOptional<z.ZodNumber>;
1722
- allowedMimeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1723
- maxFileSize: z.ZodOptional<z.ZodNumber>;
1724
- }, z.core.$strip>>;
1725
- choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
1726
- color: z.ZodOptional<z.ZodString>;
1727
- id: z.ZodString;
1728
- name: z.ZodString;
1729
- }, z.core.$strip>>>;
1730
- code: z.ZodOptional<z.ZodObject<{
1731
- language: z.ZodOptional<z.ZodString>;
1732
- }, z.core.$strip>>;
1733
- embed: z.ZodOptional<z.ZodObject<{
1734
- aspectRatio: z.ZodOptional<z.ZodEnum<{
1735
- "16:9": "16:9";
1736
- "1:1": "1:1";
1737
- "4:3": "4:3";
1738
- }>>;
1739
- height: z.ZodOptional<z.ZodNumber>;
1740
- providers: z.ZodOptional<z.ZodArray<z.ZodString>>;
1741
- }, z.core.$strip>>;
1742
- formula: z.ZodOptional<z.ZodObject<{
1743
- expression: z.ZodString;
1744
- }, z.core.$strip>>;
1745
- inverseFieldId: z.ZodOptional<z.ZodString>;
1746
- lookup: z.ZodOptional<z.ZodObject<{
1747
- relationFieldSlug: z.ZodString;
1748
- targetFieldSlug: z.ZodString;
1749
- rollup: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
1750
- average: "average";
1751
- concatenate: "concatenate";
1752
- count: "count";
1753
- max: "max";
1754
- min: "min";
1755
- sum: "sum";
1756
- values: "values";
1757
- }>>>;
1758
- limit: z.ZodOptional<z.ZodEnum<{
1759
- all: "all";
1760
- first: "first";
1761
- }>>;
1762
- }, z.core.$strip>>;
1763
- multiple: z.ZodOptional<z.ZodBoolean>;
1764
- number: z.ZodOptional<z.ZodObject<{
1765
- format: z.ZodOptional<z.ZodEnum<{
1766
- currency: "currency";
1767
- plain: "plain";
1768
- }>>;
1769
- currency: z.ZodOptional<z.ZodString>;
1770
- locale: z.ZodOptional<z.ZodString>;
1771
- }, z.core.$strip>>;
1772
- targetBaseId: z.ZodOptional<z.ZodString>;
1773
- targetBaseSlug: z.ZodOptional<z.ZodString>;
1774
- }, z.core.$strip>>;
1775
- }, z.core.$strip>>;
1776
- }, z.core.$strip>;
1777
- headCommit: z.ZodObject<{
1778
- id: z.ZodString;
1779
- baseId: z.ZodNullable<z.ZodString>;
1780
- targetType: z.ZodEnum<{
1781
- base: "base";
1782
- node: "node";
1783
- }>;
1784
- nodeId: z.ZodNullable<z.ZodString>;
1785
- operationId: z.ZodNullable<z.ZodString>;
1786
- parentCommitId: z.ZodNullable<z.ZodString>;
1787
- payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1788
- operation: z.ZodEnum<{
1789
- [x: `${string}_file_create`]: `${string}_file_create`;
1790
- [x: `${string}_file_delete`]: `${string}_file_delete`;
1791
- [x: `${string}_file_update`]: `${string}_file_update`;
1792
- [x: `${string}_metadata_update`]: `${string}_metadata_update`;
1793
- base_add_field: "base_add_field";
1794
- base_archive: "base_archive";
1795
- base_convert_field: "base_convert_field";
1796
- base_delete_field: "base_delete_field";
1797
- base_reorder_fields: "base_reorder_fields";
1798
- base_restore: "base_restore";
1799
- base_restore_field: "base_restore_field";
1800
- base_update_field: "base_update_field";
1801
- doc_update: "doc_update";
1802
- html_document_update: "html_document_update";
1803
- node_create: "node_create";
1804
- node_delete: "node_delete";
1805
- node_move: "node_move";
1806
- node_rename: "node_rename";
1807
- node_restore: "node_restore";
1808
- record_create: "record_create";
1809
- record_delete: "record_delete";
1810
- record_restore: "record_restore";
1811
- record_update: "record_update";
1812
- record_variant: "record_variant";
1813
- view_create: "view_create";
1814
- view_delete: "view_delete";
1815
- view_restore: "view_restore";
1816
- view_update: "view_update";
1817
- whiteboard_document_update: "whiteboard_document_update";
1818
- workflow_document_update: "workflow_document_update";
1819
- }>;
1820
- message: z.ZodString;
1821
- author: z.ZodString;
1822
- authorUser: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1823
- id: z.ZodString;
1824
- name: z.ZodNullable<z.ZodString>;
1825
- email: z.ZodNullable<z.ZodString>;
1826
- image: z.ZodNullable<z.ZodString>;
1827
- role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1828
- }, z.core.$strip>>>>;
1829
- createdAt: z.ZodString;
1830
- }, z.core.$strip>;
1831
- }, z.core.$strip>>;
1832
- }, z.core.$strip>], "kind">;
1833
- type ActivityItemVO = z.infer<typeof activityItemSchema>;
1834
- //#endregion
1835
- //#region ../../packages/busabase-contract/src/contract/node-detail-schemas.d.ts
1836
- declare const NodeDetailVOSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1837
- node: z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>;
1838
- children: z.ZodArray<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
1839
- type: z.ZodLiteral<"folder">;
1840
- }, z.core.$strip>, z.ZodObject<{
1841
- node: z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>;
1842
- storagePrefix: z.ZodString;
1843
- body: z.ZodString;
1844
- type: z.ZodLiteral<"doc">;
1845
- }, z.core.$strip>, z.ZodObject<{
1846
- node: z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>;
1847
- asset: z.ZodObject<{
1848
- id: z.ZodString;
1849
- attachmentId: z.ZodString;
1850
- name: z.ZodString;
1851
- contentKind: z.ZodEnum<{
1852
- binary: "binary";
1853
- text: "text";
1854
- }>;
1855
- metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1856
- fileName: z.ZodString;
1857
- mimeType: z.ZodString;
1858
- size: z.ZodNumber;
1859
- url: z.ZodString;
1860
- contentHash: z.ZodNullable<z.ZodString>;
1861
- usageCount: z.ZodNumber;
1862
- textStatus: z.ZodEnum<{
1863
- missing: "missing";
1864
- none: "none";
1865
- present: "present";
1866
- stale: "stale";
1867
- }>;
1868
- createdAt: z.ZodString;
1869
- }, z.core.$strip>;
1870
- type: z.ZodLiteral<"file">;
1871
- }, z.core.$strip>, z.ZodObject<{
1872
- node: z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>;
1873
- entryFile: z.ZodString;
1874
- visibility: z.ZodEnum<{
1875
- private: "private";
1876
- public: "public";
1877
- workspace: "workspace";
1878
- }>;
1879
- version: z.ZodString;
1880
- files: z.ZodArray<z.ZodObject<{
1881
- path: z.ZodString;
1882
- name: z.ZodString;
1883
- size: z.ZodNumber;
1884
- updatedAt: z.ZodNullable<z.ZodString>;
1885
- mimeType: z.ZodNullable<z.ZodString>;
1886
- assetId: z.ZodString;
1887
- displayName: z.ZodNullable<z.ZodString>;
1888
- }, z.core.$strip>>;
1889
- skippedGitignorePaths: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
1890
- type: z.ZodLiteral<"skill">;
1891
- }, z.core.$strip>, z.ZodObject<{
1892
- node: z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>;
1893
- entryFile: z.ZodString;
1894
- visibility: z.ZodEnum<{
1895
- private: "private";
1896
- public: "public";
1897
- workspace: "workspace";
1898
- }>;
1899
- version: z.ZodString;
1900
- files: z.ZodArray<z.ZodObject<{
1901
- path: z.ZodString;
1902
- name: z.ZodString;
1903
- size: z.ZodNumber;
1904
- updatedAt: z.ZodNullable<z.ZodString>;
1905
- mimeType: z.ZodNullable<z.ZodString>;
1906
- assetId: z.ZodString;
1907
- displayName: z.ZodNullable<z.ZodString>;
1908
- }, z.core.$strip>>;
1909
- skippedGitignorePaths: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
1910
- type: z.ZodLiteral<"drive">;
1911
- }, z.core.$strip>, z.ZodObject<{
1912
- node: z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>;
1913
- entryFile: z.ZodString;
1914
- visibility: z.ZodEnum<{
1915
- private: "private";
1916
- public: "public";
1917
- workspace: "workspace";
1918
- }>;
1919
- version: z.ZodString;
1920
- files: z.ZodArray<z.ZodObject<{
1921
- path: z.ZodString;
1922
- name: z.ZodString;
1923
- size: z.ZodNumber;
1924
- updatedAt: z.ZodNullable<z.ZodString>;
1925
- mimeType: z.ZodNullable<z.ZodString>;
1926
- assetId: z.ZodString;
1927
- displayName: z.ZodNullable<z.ZodString>;
1928
- }, z.core.$strip>>;
1929
- skippedGitignorePaths: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
1930
- type: z.ZodLiteral<"airapp">;
1931
- }, z.core.$strip>, z.ZodObject<{
1932
- type: z.ZodLiteral<"base">;
1933
- node: z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>;
1934
- }, z.core.$strip>, z.ZodObject<{
1935
- type: z.ZodLiteral<"form">;
1936
- node: z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>;
1937
- }, z.core.$strip>, z.ZodObject<{
1938
- type: z.ZodLiteral<"whiteboard">;
1939
- node: z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>;
1940
- document: z.ZodType<{
1941
- version: 1;
1942
- elements: unknown[];
1943
- appState: Record<string, unknown>;
1944
- }, unknown, z.core.$ZodTypeInternals<{
1945
- version: 1;
1946
- elements: unknown[];
1947
- appState: Record<string, unknown>;
1948
- }, unknown>>;
1949
- }, z.core.$strip>, z.ZodObject<{
1950
- type: z.ZodLiteral<"workflow">;
1951
- node: z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>;
1952
- document: z.ZodType<{
1953
- version: 2;
1954
- nodes: ({
1955
- id: string;
1956
- position: {
1957
- x: number;
1958
- y: number;
1959
- };
1960
- label: string;
1961
- description: string;
1962
- kind: "trigger";
1963
- eventName: string;
1964
- } | {
1965
- id: string;
1966
- position: {
1967
- x: number;
1968
- y: number;
1969
- };
1970
- label: string;
1971
- description: string;
1972
- kind: "webhook";
1973
- method: "DELETE" | "GET" | "PATCH" | "POST" | "PUT";
1974
- url: string;
1975
- } | {
1976
- id: string;
1977
- position: {
1978
- x: number;
1979
- y: number;
1980
- };
1981
- label: string;
1982
- description: string;
1983
- kind: "function";
1984
- webhookRuleId: string;
1985
- functionName: string;
1986
- } | {
1987
- id: string;
1988
- position: {
1989
- x: number;
1990
- y: number;
1991
- };
1992
- label: string;
1993
- description: string;
1994
- kind: "condition";
1995
- expression: string;
1996
- } | {
1997
- id: string;
1998
- position: {
1999
- x: number;
2000
- y: number;
2001
- };
2002
- label: string;
2003
- description: string;
2004
- kind: "wait";
2005
- duration: number;
2006
- unit: "days" | "hours" | "minutes";
2007
- } | {
2008
- id: string;
2009
- position: {
2010
- x: number;
2011
- y: number;
2012
- };
2013
- label: string;
2014
- description: string;
2015
- kind: "approval";
2016
- approver: string;
2017
- } | {
2018
- id: string;
2019
- position: {
2020
- x: number;
2021
- y: number;
2022
- };
2023
- label: string;
2024
- description: string;
2025
- kind: "action";
2026
- actionName: string;
2027
- } | {
2028
- id: string;
2029
- position: {
2030
- x: number;
2031
- y: number;
2032
- };
2033
- label: string;
2034
- description: string;
2035
- kind: "end";
2036
- outcome: string;
2037
- })[];
2038
- edges: {
2039
- id: string;
2040
- source: string;
2041
- target: string;
2042
- label: string;
2043
- outcome: string;
2044
- }[];
2045
- settings: {
2046
- executionMode: "event" | "manual";
2047
- concurrency: number;
2048
- timeoutMs: number;
2049
- errorPolicy: "continue" | "stop";
2050
- };
2051
- }, unknown, z.core.$ZodTypeInternals<{
2052
- version: 2;
2053
- nodes: ({
2054
- id: string;
2055
- position: {
2056
- x: number;
2057
- y: number;
2058
- };
2059
- label: string;
2060
- description: string;
2061
- kind: "trigger";
2062
- eventName: string;
2063
- } | {
2064
- id: string;
2065
- position: {
2066
- x: number;
2067
- y: number;
2068
- };
2069
- label: string;
2070
- description: string;
2071
- kind: "webhook";
2072
- method: "DELETE" | "GET" | "PATCH" | "POST" | "PUT";
2073
- url: string;
2074
- } | {
2075
- id: string;
2076
- position: {
2077
- x: number;
2078
- y: number;
2079
- };
2080
- label: string;
2081
- description: string;
2082
- kind: "function";
2083
- webhookRuleId: string;
2084
- functionName: string;
2085
- } | {
2086
- id: string;
2087
- position: {
2088
- x: number;
2089
- y: number;
2090
- };
2091
- label: string;
2092
- description: string;
2093
- kind: "condition";
2094
- expression: string;
2095
- } | {
2096
- id: string;
2097
- position: {
2098
- x: number;
2099
- y: number;
2100
- };
2101
- label: string;
2102
- description: string;
2103
- kind: "wait";
2104
- duration: number;
2105
- unit: "days" | "hours" | "minutes";
2106
- } | {
2107
- id: string;
2108
- position: {
2109
- x: number;
2110
- y: number;
2111
- };
2112
- label: string;
2113
- description: string;
2114
- kind: "approval";
2115
- approver: string;
2116
- } | {
2117
- id: string;
2118
- position: {
2119
- x: number;
2120
- y: number;
2121
- };
2122
- label: string;
2123
- description: string;
2124
- kind: "action";
2125
- actionName: string;
2126
- } | {
2127
- id: string;
2128
- position: {
2129
- x: number;
2130
- y: number;
2131
- };
2132
- label: string;
2133
- description: string;
2134
- kind: "end";
2135
- outcome: string;
2136
- })[];
2137
- edges: {
2138
- id: string;
2139
- source: string;
2140
- target: string;
2141
- label: string;
2142
- outcome: string;
2143
- }[];
2144
- settings: {
2145
- executionMode: "event" | "manual";
2146
- concurrency: number;
2147
- timeoutMs: number;
2148
- errorPolicy: "continue" | "stop";
2149
- };
2150
- }, unknown>>;
2151
- }, z.core.$strip>, z.ZodObject<{
2152
- type: z.ZodLiteral<"html">;
2153
- node: z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>;
2154
- document: z.ZodType<{
2155
- version: 1;
2156
- source: string;
2157
- }, unknown, z.core.$ZodTypeInternals<{
2158
- version: 1;
2159
- source: string;
2160
- }, unknown>>;
2161
- }, z.core.$strip>], "type">;
2162
- type NodeDetailVO = z.infer<typeof NodeDetailVOSchema>;
2163
- //#endregion
2164
- //#region ../../packages/busabase-contract/src/domains/filetree/types.d.ts
2165
- interface FileTreeFileVO {
2166
- path: string;
2167
- name: string;
2168
- size: number;
2169
- updatedAt: string | null;
2170
- mimeType: string | null;
2171
- assetId: string;
2172
- displayName: string | null;
2173
- }
2174
- interface FileTreeNodeVO {
2175
- node: NodeVO;
2176
- entryFile: string;
2177
- visibility: "private" | "workspace" | "public";
2178
- version: string;
2179
- files: FileTreeFileVO[];
2180
- skippedGitignorePaths?: string[];
2181
- }
2182
- interface FileTreeReadFileVO {
2183
- nodeId: string;
2184
- path: string;
2185
- encoding: "utf8" | "url";
2186
- content: string;
2187
- mimeType: string;
2188
- assetId: string;
2189
- displayName: string | null;
2190
- assetUrl: string | null;
2191
- contentHash: string;
2192
- }
2193
- //#endregion
2194
- //#region ../../packages/busabase-contract/src/domains/assets/types.d.ts
2195
- /**
2196
- * Derived text-slot status for an Asset (Drive Grep Retrieval). `missing` is
2197
- * the absence of a `busabase_asset_texts` row (no writer has supplied text
2198
- * yet, or a pre-existing asset hasn't been lazily self-healed by a grep call);
2199
- * `present` / `none` / `stale` are the row's own `status` column.
2200
- */
2201
- declare const AssetTextStatusSchema: z.ZodEnum<{
2202
- missing: "missing";
2203
- none: "none";
2204
- present: "present";
2205
- stale: "stale";
2206
- }>;
2207
- type AssetTextStatus = z.infer<typeof AssetTextStatusSchema>;
2208
- /** One library entry: the deduped file + its busabase metadata + usage count. */
2209
- declare const AssetVOSchema: z.ZodObject<{
2210
- id: z.ZodString;
2211
- attachmentId: z.ZodString;
2212
- name: z.ZodString;
2213
- contentKind: z.ZodEnum<{
2214
- binary: "binary";
2215
- text: "text";
2216
- }>;
2217
- metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2218
- fileName: z.ZodString;
2219
- mimeType: z.ZodString;
2220
- size: z.ZodNumber;
2221
- url: z.ZodString;
2222
- contentHash: z.ZodNullable<z.ZodString>;
2223
- usageCount: z.ZodNumber;
2224
- textStatus: z.ZodEnum<{
2225
- missing: "missing";
2226
- none: "none";
2227
- present: "present";
2228
- stale: "stale";
2229
- }>;
2230
- createdAt: z.ZodString;
2231
- }, z.core.$strip>;
2232
- type AssetVO = z.infer<typeof AssetVOSchema>;
2233
- /** One place an asset is referenced — the row behind "Where Used". */
2234
- declare const AssetUsageVOSchema: z.ZodObject<{
2235
- ownerType: z.ZodEnum<{
2236
- airapp: "airapp";
2237
- base: "base";
2238
- doc: "doc";
2239
- drive: "drive";
2240
- file_node: "file_node";
2241
- skill: "skill";
2242
- }>;
2243
- nodeId: z.ZodString;
2244
- nodeName: z.ZodString;
2245
- nodeType: z.ZodString;
2246
- nodeSlug: z.ZodString;
2247
- path: z.ZodNullable<z.ZodString>;
2248
- recordId: z.ZodNullable<z.ZodString>;
2249
- fieldSlug: z.ZodNullable<z.ZodString>;
2250
- blockId: z.ZodNullable<z.ZodString>;
2251
- createdAt: z.ZodString;
2252
- }, z.core.$strip>;
2253
- type AssetUsageVO = z.infer<typeof AssetUsageVOSchema>;
2254
- /** Asset detail = the library entry plus every place it is used. */
2255
- declare const AssetDetailVOSchema: z.ZodObject<{
2256
- asset: z.ZodObject<{
2257
- id: z.ZodString;
2258
- attachmentId: z.ZodString;
2259
- name: z.ZodString;
2260
- contentKind: z.ZodEnum<{
2261
- binary: "binary";
2262
- text: "text";
2263
- }>;
2264
- metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2265
- fileName: z.ZodString;
2266
- mimeType: z.ZodString;
2267
- size: z.ZodNumber;
2268
- url: z.ZodString;
2269
- contentHash: z.ZodNullable<z.ZodString>;
2270
- usageCount: z.ZodNumber;
2271
- textStatus: z.ZodEnum<{
2272
- missing: "missing";
2273
- none: "none";
2274
- present: "present";
2275
- stale: "stale";
2276
- }>;
2277
- createdAt: z.ZodString;
2278
- }, z.core.$strip>;
2279
- usages: z.ZodArray<z.ZodObject<{
2280
- ownerType: z.ZodEnum<{
2281
- airapp: "airapp";
2282
- base: "base";
2283
- doc: "doc";
2284
- drive: "drive";
2285
- file_node: "file_node";
2286
- skill: "skill";
2287
- }>;
2288
- nodeId: z.ZodString;
2289
- nodeName: z.ZodString;
2290
- nodeType: z.ZodString;
2291
- nodeSlug: z.ZodString;
2292
- path: z.ZodNullable<z.ZodString>;
2293
- recordId: z.ZodNullable<z.ZodString>;
2294
- fieldSlug: z.ZodNullable<z.ZodString>;
2295
- blockId: z.ZodNullable<z.ZodString>;
2296
- createdAt: z.ZodString;
2297
- }, z.core.$strip>>;
2298
- }, z.core.$strip>;
2299
- type AssetDetailVO = z.infer<typeof AssetDetailVOSchema>;
2300
- /** Files-only grep input used internally and by the SDK's `assets.grep` convenience adapter. */
2301
- declare const GrepInputSchema: z.ZodObject<{
2302
- pattern: z.ZodString;
2303
- flags: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2304
- scope: z.ZodOptional<z.ZodObject<{
2305
- assetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2306
- drivePath: z.ZodOptional<z.ZodString>;
2307
- mimeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2308
- }, z.core.$strip>>;
2309
- maxMatches: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
2310
- contextLines: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
2311
- }, z.core.$strip>;
2312
- /** Caller input before Zod applies defaults. */
2313
- type GrepInputDTO = z.input<typeof GrepInputSchema>;
2314
- declare const GrepResultVOSchema: z.ZodObject<{
2315
- matches: z.ZodArray<z.ZodObject<{
2316
- assetId: z.ZodString;
2317
- fileName: z.ZodString;
2318
- drivePath: z.ZodString;
2319
- line: z.ZodNumber;
2320
- column: z.ZodNumber;
2321
- text: z.ZodString;
2322
- before: z.ZodArray<z.ZodString>;
2323
- after: z.ZodArray<z.ZodString>;
2324
- }, z.core.$strip>>;
2325
- filesScanned: z.ZodNumber;
2326
- missing: z.ZodArray<z.ZodString>;
2327
- stale: z.ZodArray<z.ZodString>;
2328
- unsearchable: z.ZodNumber;
2329
- errored: z.ZodArray<z.ZodString>;
2330
- notReached: z.ZodNumber;
2331
- truncated: z.ZodBoolean;
2332
- }, z.core.$strip>;
2333
- type GrepResultVO = z.infer<typeof GrepResultVOSchema>;
2334
- //#endregion
2335
- //#region ../../packages/busabase-contract/src/domains/file-node/types.d.ts
2336
- declare const FileNodeMetadataSchema: z.ZodObject<{
2337
- assetId: z.ZodString;
2338
- }, z.core.$strip>;
2339
- type FileNodeMetadata = z.infer<typeof FileNodeMetadataSchema>;
2340
- declare const FileNodeVOSchema: z.ZodObject<{
2341
- node: z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>;
2342
- asset: z.ZodObject<{
2343
- id: z.ZodString;
2344
- attachmentId: z.ZodString;
2345
- name: z.ZodString;
2346
- contentKind: z.ZodEnum<{
2347
- binary: "binary";
2348
- text: "text";
2349
- }>;
2350
- metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2351
- fileName: z.ZodString;
2352
- mimeType: z.ZodString;
2353
- size: z.ZodNumber;
2354
- url: z.ZodString;
2355
- contentHash: z.ZodNullable<z.ZodString>;
2356
- usageCount: z.ZodNumber;
2357
- textStatus: z.ZodEnum<{
2358
- missing: "missing";
2359
- none: "none";
2360
- present: "present";
2361
- stale: "stale";
2362
- }>;
2363
- createdAt: z.ZodString;
2364
- }, z.core.$strip>;
2365
- }, z.core.$strip>;
2366
- type FileNodeVO = z.infer<typeof FileNodeVOSchema>;
2367
- //#endregion
2368
- //#region ../../packages/busabase-contract/src/domains/vault/types.d.ts
2369
- declare const VaultItemKindSchema: z.ZodEnum<{
2370
- secret: "secret";
2371
- variable: "variable";
2372
- }>;
2373
- type VaultItemKind = z.infer<typeof VaultItemKindSchema>;
2374
- declare const VaultScopeTypeSchema: z.ZodEnum<{
2375
- agent: "agent";
2376
- api_key: "api_key";
2377
- base: "base";
2378
- personal: "personal";
2379
- tool: "tool";
2380
- workspace: "workspace";
2381
- }>;
2382
- type VaultScopeType = z.infer<typeof VaultScopeTypeSchema>;
2383
- declare const VaultEnvironmentSchema: z.ZodEnum<{
2384
- development: "development";
2385
- local: "local";
2386
- production: "production";
2387
- staging: "staging";
2388
- }>;
2389
- type VaultEnvironment = z.infer<typeof VaultEnvironmentSchema>;
2390
- declare const VaultAccessPolicySchema: z.ZodObject<{
2391
- runtime: z.ZodDefault<z.ZodBoolean>;
2392
- reveal: z.ZodDefault<z.ZodBoolean>;
2393
- edit: z.ZodDefault<z.ZodBoolean>;
2394
- share: z.ZodDefault<z.ZodBoolean>;
2395
- }, z.core.$strip>;
2396
- type VaultAccessPolicy = z.infer<typeof VaultAccessPolicySchema>;
2397
- declare const VaultItemInputSchema: z.ZodObject<{
2398
- id: z.ZodOptional<z.ZodString>;
2399
- kind: z.ZodEnum<{
2400
- secret: "secret";
2401
- variable: "variable";
2402
- }>;
2403
- key: z.ZodString;
2404
- value: z.ZodString;
2405
- scopeType: z.ZodDefault<z.ZodEnum<{
2406
- agent: "agent";
2407
- api_key: "api_key";
2408
- base: "base";
2409
- personal: "personal";
2410
- tool: "tool";
2411
- workspace: "workspace";
2412
- }>>;
2413
- scopeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2414
- environment: z.ZodDefault<z.ZodEnum<{
2415
- development: "development";
2416
- local: "local";
2417
- production: "production";
2418
- staging: "staging";
2419
- }>>;
2420
- description: z.ZodDefault<z.ZodString>;
2421
- access: z.ZodDefault<z.ZodObject<{
2422
- runtime: z.ZodDefault<z.ZodBoolean>;
2423
- reveal: z.ZodDefault<z.ZodBoolean>;
2424
- edit: z.ZodDefault<z.ZodBoolean>;
2425
- share: z.ZodDefault<z.ZodBoolean>;
2426
- }, z.core.$strip>>;
2427
- }, z.core.$strip>;
2428
- type VaultItemInput = z.infer<typeof VaultItemInputSchema>;
2429
- declare const UpdateVaultSettingsInputSchema: z.ZodObject<{
2430
- items: z.ZodArray<z.ZodObject<{
2431
- id: z.ZodOptional<z.ZodString>;
2432
- kind: z.ZodEnum<{
2433
- secret: "secret";
2434
- variable: "variable";
2435
- }>;
2436
- key: z.ZodString;
2437
- value: z.ZodString;
2438
- scopeType: z.ZodDefault<z.ZodEnum<{
2439
- agent: "agent";
2440
- api_key: "api_key";
2441
- base: "base";
2442
- personal: "personal";
2443
- tool: "tool";
2444
- workspace: "workspace";
2445
- }>>;
2446
- scopeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2447
- environment: z.ZodDefault<z.ZodEnum<{
2448
- development: "development";
2449
- local: "local";
2450
- production: "production";
2451
- staging: "staging";
2452
- }>>;
2453
- description: z.ZodDefault<z.ZodString>;
2454
- access: z.ZodDefault<z.ZodObject<{
2455
- runtime: z.ZodDefault<z.ZodBoolean>;
2456
- reveal: z.ZodDefault<z.ZodBoolean>;
2457
- edit: z.ZodDefault<z.ZodBoolean>;
2458
- share: z.ZodDefault<z.ZodBoolean>;
2459
- }, z.core.$strip>>;
2460
- }, z.core.$strip>>;
2461
- }, z.core.$strip>;
2462
- type UpdateVaultSettingsDTO = z.infer<typeof UpdateVaultSettingsInputSchema>;
2463
- declare const VaultItemVOSchema: z.ZodObject<{
2464
- kind: z.ZodEnum<{
2465
- secret: "secret";
2466
- variable: "variable";
2467
- }>;
2468
- key: z.ZodString;
2469
- value: z.ZodString;
2470
- scopeType: z.ZodDefault<z.ZodEnum<{
2471
- agent: "agent";
2472
- api_key: "api_key";
2473
- base: "base";
2474
- personal: "personal";
2475
- tool: "tool";
2476
- workspace: "workspace";
2477
- }>>;
2478
- environment: z.ZodDefault<z.ZodEnum<{
2479
- development: "development";
2480
- local: "local";
2481
- production: "production";
2482
- staging: "staging";
2483
- }>>;
2484
- description: z.ZodDefault<z.ZodString>;
2485
- access: z.ZodDefault<z.ZodObject<{
2486
- runtime: z.ZodDefault<z.ZodBoolean>;
2487
- reveal: z.ZodDefault<z.ZodBoolean>;
2488
- edit: z.ZodDefault<z.ZodBoolean>;
2489
- share: z.ZodDefault<z.ZodBoolean>;
2490
- }, z.core.$strip>>;
2491
- id: z.ZodString;
2492
- scopeId: z.ZodNullable<z.ZodString>;
2493
- updatedAt: z.ZodString;
2494
- createdAt: z.ZodString;
2495
- lastUsedAt: z.ZodNullable<z.ZodString>;
2496
- }, z.core.$strip>;
2497
- type VaultItemVO = z.infer<typeof VaultItemVOSchema>;
2498
- declare const VaultSettingsVOSchema: z.ZodObject<{
2499
- ownerId: z.ZodNullable<z.ZodString>;
2500
- items: z.ZodArray<z.ZodObject<{
2501
- kind: z.ZodEnum<{
2502
- secret: "secret";
2503
- variable: "variable";
2504
- }>;
2505
- key: z.ZodString;
2506
- value: z.ZodString;
2507
- scopeType: z.ZodDefault<z.ZodEnum<{
2508
- agent: "agent";
2509
- api_key: "api_key";
2510
- base: "base";
2511
- personal: "personal";
2512
- tool: "tool";
2513
- workspace: "workspace";
2514
- }>>;
2515
- environment: z.ZodDefault<z.ZodEnum<{
2516
- development: "development";
2517
- local: "local";
2518
- production: "production";
2519
- staging: "staging";
2520
- }>>;
2521
- description: z.ZodDefault<z.ZodString>;
2522
- access: z.ZodDefault<z.ZodObject<{
2523
- runtime: z.ZodDefault<z.ZodBoolean>;
2524
- reveal: z.ZodDefault<z.ZodBoolean>;
2525
- edit: z.ZodDefault<z.ZodBoolean>;
2526
- share: z.ZodDefault<z.ZodBoolean>;
2527
- }, z.core.$strip>>;
2528
- id: z.ZodString;
2529
- scopeId: z.ZodNullable<z.ZodString>;
2530
- updatedAt: z.ZodString;
2531
- createdAt: z.ZodString;
2532
- lastUsedAt: z.ZodNullable<z.ZodString>;
2533
- }, z.core.$strip>>;
2534
- updatedAt: z.ZodNullable<z.ZodString>;
2535
- }, z.core.$strip>;
2536
- type VaultSettingsVO = z.infer<typeof VaultSettingsVOSchema>;
2537
- declare const VaultRuntimeEnvSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
2538
- type VaultRuntimeEnv = z.infer<typeof VaultRuntimeEnvSchema>;
2539
- //#endregion
2540
- //#region ../../packages/busabase-contract/src/types/index.d.ts
2541
- type FieldType = "text" | "longtext" | "markdown" | "html" | "attachment" | "relation" | "number" | "date" | "checkbox" | "select" | "multiselect" | "url" | "embed" | "email" | "phone" | "created_time" | "updated_time" | "created_by" | "updated_by" | "auto_number" | "ai_summary" | "ai_tags" | "code" | "json" | "yaml" | "formula" | "lookup" | "whiteboard";
2542
- /** Rollup functions a `lookup` field can apply — mirrors `lookupRollupSchema`. */
2543
- type LookupRollup = "values" | "count" | "sum" | "average" | "min" | "max" | "concatenate";
2544
- type ChangeRequestStatus = "in_review" | "changes_requested" | "approved" | "rejected" | "merged" | "abandoned" | "conflict";
2545
- type OperationStatus = "pending" | "merged" | "archived" | "failed";
2546
- type ChangeRequestTargetType = "base" | "node";
2547
- type ReviewVerdict = "approved" | "rejected";
2548
- type SearchResultKind = "record" | "change_request" | "base" | "file";
2549
- type CommentSubjectType = "record" | "change_request" | "operation" | "commit";
2550
- type AuditAction = "record.viewed" | "change_request.created" | "change_request.updated" | "change_request.deleted" | "change_request.reviewed" | "change_request.merged" | "base.created" | "field.created" | "doc.created" | "doc.updated" | "file.created" | "skill.created" | "drive.created" | "airapp.created" | "asset.deleted" | "asset.metadata_updated" | "asset.text_written" | "asset.text_marked_none" | "node.metadata_updated" | "node.purged";
2551
- interface UserRefVO {
2552
- id: string;
2553
- name: string | null;
2554
- email: string | null;
2555
- image: string | null;
2556
- role?: string | null;
2557
- }
2558
- /**
2559
- * Cheap, name/slug-only match from `nodes.searchByName` — deliberately a much
2560
- * smaller projection than `NodeVO` (no `description`/`metadata`/tree shape):
2561
- * this backs the dashboard's instant quick-jump palette, not the sidebar tree
2562
- * or a node's own detail view. `path` is the route this node navigates to
2563
- * (e.g. `/base/{slug}`), not a filesystem/breadcrumb tree path.
2564
- */
2565
- interface NodeSearchResultVO {
2566
- id: string;
2567
- type: NodeType;
2568
- name: string;
2569
- slug: string;
2570
- path: string;
2571
- updatedAt: string;
2572
- }
2573
- interface NodeVO {
2574
- id: string;
2575
- parentId: string | null;
2576
- type: NodeType;
2577
- slug: string;
2578
- name: string;
2579
- description: string;
2580
- /**
2581
- * Free-form extension data — the caller's bag. The product reads nothing here
2582
- * except `version`, a label the user writes and the product never interprets.
2583
- * Kept in sync with `NodeOutput` in `contract/schemas.ts`, which is the shape
2584
- * the wire schema actually validates.
2585
- */
2586
- metadata: Record<string, unknown> & {
2587
- version?: string;
2588
- };
2589
- /**
2590
- * This node's OWN declared visibility, or null when it inherits from its
2591
- * ancestors. A real column rather than a metadata key, because it is the node
2592
- * ACL's only explicit input — see `content/spec/node-content-storage.md` (D1).
2593
- */
2594
- explicitVisibility: "private" | "workspace" | "public" | null;
2595
- /**
2596
- * This node's custom avatar (emoji or cropped/uploaded image), or `null`
2597
- * when the node has none and every host falls back to its type icon
2598
- * (`nodeIconForType`). See `NodeIconSchema` for the two variants.
2599
- */
2600
- icon?: NodeIcon | null;
2601
- position: number;
2602
- createdAt: string;
2603
- updatedAt: string;
2604
- baseId: string | null;
2605
- children: NodeVO[];
2606
- /**
2607
- * Whether this node has children beyond what `children` carries — see the
2608
- * matching field on the contract's `NodeOutput` (contract/schemas.ts) for
2609
- * the full depth-boundary explanation. Optional/omitted is safe to treat
2610
- * as `children.length > 0`.
2611
- */
2612
- hasChildren?: boolean;
2613
- }
2614
- interface CommitVO {
2615
- id: string;
2616
- baseId: string | null;
2617
- targetType: ChangeRequestTargetType;
2618
- nodeId: string | null;
2619
- operationId: string | null;
2620
- parentCommitId: string | null;
2621
- /**
2622
- * Polymorphic change payload; its shape is determined by `operation`.
2623
- * Intentionally loose here — see the comment on `commitSchema.payload` in
2624
- * `contract/schemas.ts`. Historical commits predate payload validation, and this
2625
- * VO is what history/approval screens read, so it must stay permissive.
2626
- */
2627
- payload: Record<string, unknown>;
2628
- operation: OperationKind;
2629
- message: string;
2630
- author: string;
2631
- authorUser?: UserRefVO | null;
2632
- createdAt: string;
2633
- }
2634
- interface OperationVO {
2635
- id: string;
2636
- changeRequestId: string;
2637
- baseId: string | null;
2638
- targetType: ChangeRequestTargetType;
2639
- nodeId: string | null;
2640
- operation: OperationKind;
2641
- status: OperationStatus;
2642
- targetRecordId: string | null;
2643
- targetViewId: string | null;
2644
- filePath: string | null;
2645
- sourceRecordId: string | null;
2646
- sourceCommitId: string | null;
2647
- baseCommitId: string | null;
2648
- headCommitId: string;
2649
- deleteMode: "archive";
2650
- mergedRecordId: string | null;
2651
- mergedViewId: string | null;
2652
- position: number;
2653
- createdAt: string;
2654
- updatedAt: string;
2655
- headCommit: CommitVO;
2656
- baseFields: Record<string, unknown> | null;
2657
- }
2658
- interface ChangeRequestVO {
2659
- id: string;
2660
- baseId: string | null;
2661
- targetType: ChangeRequestTargetType;
2662
- nodeId: string | null;
2663
- status: ChangeRequestStatus;
2664
- submittedBy: string;
2665
- submittedByUser?: UserRefVO | null;
2666
- sourceMeta: Record<string, unknown>;
2667
- reviewPolicySnapshot: Record<string, unknown>;
2668
- mergeSummary: Record<string, unknown>;
2669
- rejectedReason: string | null;
2670
- reviewedAt: string | null;
2671
- mergedAt: string | null;
2672
- createdAt: string;
2673
- updatedAt: string;
2674
- base: BaseVO | null;
2675
- node: NodeVO | null;
2676
- operations: OperationVO[];
2677
- primaryOperation: OperationVO | null;
2678
- operationCount: number;
2679
- reviews: ReviewVO[];
2680
- }
2681
- interface ChangeRequestBatchFailureVO {
2682
- changeRequestId: string;
2683
- ok: false;
2684
- error: string;
2685
- code?: string;
2686
- data?: unknown;
2687
- }
2688
- interface ChangeRequestReviewBatchResultVO {
2689
- results: Array<{
2690
- changeRequestId: string;
2691
- ok: true;
2692
- status: string;
2693
- changeRequest: ChangeRequestVO;
2694
- } | ChangeRequestBatchFailureVO>;
2695
- }
2696
- interface ChangeRequestMergeBatchResultVO {
2697
- results: Array<{
2698
- changeRequestId: string;
2699
- ok: true;
2700
- status: string;
2701
- changeRequest: ChangeRequestVO;
2702
- record: RecordVO | null;
2703
- view: ViewVO | null;
2704
- } | ChangeRequestBatchFailureVO>;
2705
- }
2706
- interface ChangeRequestCountsVO {
2707
- review: number;
2708
- changes: number;
2709
- created: number;
2710
- approved: number;
2711
- merged: number;
2712
- rejected: number;
2713
- }
2714
- interface ReviewVO {
2715
- id: string;
2716
- changeRequestId: string;
2717
- reviewerId: string;
2718
- reviewer?: UserRefVO | null;
2719
- verdict: ReviewVerdict;
2720
- reason: string | null;
2721
- visibleOperationHeads: Record<string, string>;
2722
- createdAt: string;
2723
- }
2724
- interface CommentVO {
2725
- id: string;
2726
- subjectType: CommentSubjectType;
2727
- subjectId: string;
2728
- recordId: string | null;
2729
- changeRequestId: string | null;
2730
- operationId: string | null;
2731
- commitId: string | null;
2732
- authorId: string;
2733
- author?: UserRefVO | null;
2734
- body: string;
2735
- mentionsAi: boolean;
2736
- createdAt: string;
2737
- updatedAt: string;
2738
- }
2739
- interface AgentTaskVO {
2740
- changeRequest: ChangeRequestVO;
2741
- trigger: "changes_requested" | "ai_mention";
2742
- reviewReason: string | null;
2743
- aiComments: CommentVO[];
2744
- }
2745
- interface SearchResultVO {
2746
- id: string;
2747
- kind: SearchResultKind;
2748
- title: string;
2749
- body: string;
2750
- eyebrow: string;
2751
- href: string;
2752
- updatedAt: string | null;
2753
- }
2754
- interface SearchResponseVO {
2755
- query: string;
2756
- limit: number;
2757
- offset: number;
2758
- hasMore: boolean;
2759
- results: SearchResultVO[];
2760
- }
2761
- interface AuditEventVO {
2762
- id: string;
2763
- action: AuditAction;
2764
- actorId: string;
2765
- actor?: UserRefVO | null;
2766
- baseId: string | null;
2767
- recordId: string | null;
2768
- changeRequestId: string | null;
2769
- operationId: string | null;
2770
- commitId: string | null;
2771
- metadata: Record<string, unknown>;
2772
- createdAt: string;
2773
- }
2774
- //#endregion
2775
10
  //#region ../../packages/busabase-contract/src/contract/grep-schemas.d.ts
2776
11
  declare const UnifiedGrepInputSchema: z.ZodObject<{
2777
12
  pattern: z.ZodString;
@@ -3059,7 +294,7 @@ declare class Busabase {
3059
294
  * This is the *authenticated*, durable link: it never expires, but the reader
3060
295
  * needs a session unless the node has public sharing enabled. For a no-login
3061
296
  * link, mint a Cloud embed link instead —
3062
- * `bb.embedLinks.create({ nodeId })` returns `{ url, iframeUrl }`.
297
+ * `bb.embedLinks.create({ type: "node", typeId: nodeId })` returns `{ url, iframeUrl }`.
3063
298
  *
3064
299
  * @example
3065
300
  * ```ts
@@ -3190,4 +425,4 @@ declare class Busabase {
3190
425
  }>>>>;
3191
426
  }
3192
427
  //#endregion
3193
- export { type ActivityItemVO, type AgentTaskVO, type FileTreeFileVO as AirAppFileVO, type FileTreeFileVO as DriveFileVO, type FileTreeFileVO, type FileTreeFileVO as SkillFileVO, type FileTreeReadFileVO as AirAppReadFileVO, type FileTreeReadFileVO as DriveReadFileVO, type FileTreeReadFileVO, type FileTreeReadFileVO as SkillReadFileVO, type FileTreeNodeVO as AirAppVO, type FileTreeNodeVO as DriveVO, type FileTreeNodeVO, type FileTreeNodeVO as SkillVO, type AssetAttachmentRef, type AssetDetailVO, type AssetTextStatus, type AssetUsageVO, type AssetVO, type AttachmentRef, type AuditAction, type AuditEventVO, type BaseFieldVO, type BaseVO, Busabase, type BusabaseAssetsClient, BusabaseChangeRequestsClient, type BusabaseClient, type BusabaseConfig, type BusabaseRecordsClient, CREATABLE_NODE_TYPES, type ChangeRequestBatchFailureVO, type ChangeRequestCountsVO, type ChangeRequestMergeBatchResultVO, type ChangeRequestReviewBatchResultVO, type ChangeRequestStatus, type ChangeRequestTargetType, type ChangeRequestVO, type CloudContract, type CommentSubjectType, type CommentVO, type CommitVO, type CreatableNodeType, type CreateFormDTO, DEFAULT_BASE_URL, type FieldType, type FileNodeMetadata, type FileNodeVO, type FormBoundFieldVO, type FormFieldBindingVO, type FormPageSourceVO, type FormShareVO, type FormSubmitResultVO, type FormThemeVO, type FormVO, type GalleryCardSize, type GalleryCoverFit, type GanttScale, type ListFormsDTO, type ListFormsVO, type LookupRollup, type NodeDetailVO, type NodeIcon, type NodeIconSchema, type NodeSearchResultVO, type NodeType, type NodeVO, type NodeWebUrlInput, type OperationKind, type OperationStatus, type OperationVO, type RecordByFieldInput, type RecordLinkVO, type RecordVO, type ResolvedConfig, type ReviewVO, type ReviewVerdict, type SearchResponseVO, type SearchResultKind, type SearchResultVO, type SubmitFormDTO, type UpdateFormDTO, type UpdateVaultSettingsDTO, type UserRefVO, type VIEW_FIELD_MAX_WIDTH, type VIEW_FIELD_MIN_WIDTH, type VaultAccessPolicy, type VaultEnvironment, type VaultItemInput, type VaultItemKind, type VaultItemVO, type VaultRuntimeEnv, type VaultScopeType, type VaultSettingsVO, type ViewConfigVO, type ViewFilterOperator, type ViewFilterVO, type ViewSortVO, type ViewType, type ViewVO, cloudContract, createBusabaseClient, getRecordByField, grepAssets, nodeWebUrl, normalizeBaseUrl, resolveConfig, toFilesOnlyGrepResult, toUnifiedFilesGrepInput };
428
+ export { type ActivityItemVO, type AgentTaskVO, type FileTreeFileVO as AirAppFileVO, type FileTreeFileVO as DriveFileVO, type FileTreeFileVO, type FileTreeFileVO as SkillFileVO, type FileTreeReadFileVO as AirAppReadFileVO, type FileTreeReadFileVO as DriveReadFileVO, type FileTreeReadFileVO, type FileTreeReadFileVO as SkillReadFileVO, type FileTreeNodeVO as AirAppVO, type FileTreeNodeVO as DriveVO, type FileTreeNodeVO, type FileTreeNodeVO as SkillVO, type AssetAttachmentRef, type AssetDetailVO, type AssetTextStatus, type AssetUsageVO, type AssetVO, type AttachmentRef, type AuditAction, type AuditEventVO, type BaseFieldVO, type BaseVO, Busabase, type BusabaseAssetsClient, BusabaseChangeRequestsClient, type BusabaseClient, type BusabaseConfig, type BusabaseRecordsClient, type BusabaseSourceChannel, CREATABLE_NODE_TYPES, type ChangeRequestBatchFailureVO, type ChangeRequestCountsVO, type ChangeRequestMergeBatchResultVO, type ChangeRequestReviewBatchResultVO, type ChangeRequestStatus, type ChangeRequestTargetType, type ChangeRequestVO, type CloudContract, type CommentSubjectType, type CommentVO, type CommitVO, type CreatableNodeType, type CreateFormDTO, DEFAULT_BASE_URL, type FieldType, type FileNodeMetadata, type FileNodeVO, type FormBoundFieldVO, type FormFieldBindingVO, type FormPageSourceVO, type FormShareVO, type FormSubmitResultVO, type FormThemeVO, type FormVO, type GalleryCardSize, type GalleryCoverFit, type GanttScale, type ListFormsDTO, type ListFormsVO, type LookupRollup, type NodeDetailVO, type NodeIcon, type NodeIconSchema, type NodeSearchResultVO, type NodeType, type NodeVO, type NodeWebUrlInput, type OperationKind, type OperationStatus, type OperationVO, type RecordByFieldInput, type RecordLinkVO, type RecordVO, type ResolvedConfig, type ReviewVO, type ReviewVerdict, type SearchResponseVO, type SearchResultKind, type SearchResultVO, type SourceAttributionVO, type SubmitFormDTO, type UpdateFormDTO, type UpdateVaultSettingsDTO, type UserRefVO, type VIEW_FIELD_MAX_WIDTH, type VIEW_FIELD_MIN_WIDTH, type VaultAccessPolicy, type VaultEnvironment, type VaultItemInput, type VaultItemKind, type VaultItemVO, type VaultRuntimeEnv, type VaultScopeType, type VaultSettingsVO, type ViewConfigVO, type ViewFilterOperator, type ViewFilterVO, type ViewSortVO, type ViewType, type ViewVO, cloudContract, createBusabaseClient, getRecordByField, grepAssets, nodeWebUrl, normalizeBaseUrl, resolveConfig, toFilesOnlyGrepResult, toUnifiedFilesGrepInput };