@stonecrop/schema 0.10.3 → 0.10.5

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/schema.d.ts CHANGED
@@ -8,33 +8,13 @@ import { z } from 'zod';
8
8
  * @public
9
9
  */
10
10
  export declare const ActionDefinition: z.ZodObject<{
11
- /** Display label for the action */
12
11
  label: z.ZodString;
13
- /** Handler function name or path */
14
12
  handler: z.ZodString;
15
- /** Fields that must have values before action can execute */
16
- requiredFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
17
- /** Workflow states where this action is available */
18
- allowedStates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
19
- /** Whether to show a confirmation dialog */
13
+ requiredFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
14
+ allowedStates: z.ZodOptional<z.ZodArray<z.ZodString>>;
20
15
  confirm: z.ZodOptional<z.ZodBoolean>;
21
- /** Additional arguments for the action */
22
16
  args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
23
- }, "strip", z.ZodTypeAny, {
24
- label: string;
25
- handler: string;
26
- requiredFields?: string[] | undefined;
27
- allowedStates?: string[] | undefined;
28
- confirm?: boolean | undefined;
29
- args?: Record<string, unknown> | undefined;
30
- }, {
31
- label: string;
32
- handler: string;
33
- requiredFields?: string[] | undefined;
34
- allowedStates?: string[] | undefined;
35
- confirm?: boolean | undefined;
36
- args?: Record<string, unknown> | undefined;
37
- }>;
17
+ }, z.core.$strip>;
38
18
 
39
19
  /**
40
20
  * Action definition type inferred from Zod schema
@@ -242,207 +222,69 @@ export declare interface DoctypeContext {
242
222
  * @public
243
223
  */
244
224
  declare const DoctypeMeta: z.ZodObject<{
245
- /** Display name of the doctype */
246
225
  name: z.ZodString;
247
- /** URL-friendly slug (kebab-case) */
248
226
  slug: z.ZodOptional<z.ZodString>;
249
- /** Database table name */
250
227
  tableName: z.ZodOptional<z.ZodString>;
251
- /** Field definitions */
252
228
  fields: z.ZodArray<z.ZodObject<{
253
229
  fieldname: z.ZodString;
254
- fieldtype: z.ZodEnum<["Data", "Text", "Int", "Float", "Decimal", "Check", "Date", "Time", "Datetime", "Duration", "DateRange", "JSON", "Code", "Link", "Doctype", "Attach", "Currency", "Quantity", "Select"]>;
230
+ fieldtype: z.ZodEnum<{
231
+ Data: "Data";
232
+ Text: "Text";
233
+ Int: "Int";
234
+ Float: "Float";
235
+ Decimal: "Decimal";
236
+ Check: "Check";
237
+ Date: "Date";
238
+ Time: "Time";
239
+ Datetime: "Datetime";
240
+ Duration: "Duration";
241
+ DateRange: "DateRange";
242
+ JSON: "JSON";
243
+ Code: "Code";
244
+ Link: "Link";
245
+ Doctype: "Doctype";
246
+ Attach: "Attach";
247
+ Currency: "Currency";
248
+ Quantity: "Quantity";
249
+ Select: "Select";
250
+ }>;
255
251
  component: z.ZodOptional<z.ZodString>;
256
252
  label: z.ZodOptional<z.ZodString>;
257
253
  width: z.ZodOptional<z.ZodString>;
258
- align: z.ZodOptional<z.ZodEnum<["left", "center", "right", "start", "end"]>>;
254
+ align: z.ZodOptional<z.ZodEnum<{
255
+ left: "left";
256
+ center: "center";
257
+ right: "right";
258
+ start: "start";
259
+ end: "end";
260
+ }>>;
259
261
  required: z.ZodOptional<z.ZodBoolean>;
260
262
  readOnly: z.ZodOptional<z.ZodBoolean>;
261
263
  edit: z.ZodOptional<z.ZodBoolean>;
262
264
  hidden: z.ZodOptional<z.ZodBoolean>;
263
265
  value: z.ZodOptional<z.ZodUnknown>;
264
266
  default: z.ZodOptional<z.ZodUnknown>;
265
- options: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
267
+ options: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
266
268
  mask: z.ZodOptional<z.ZodString>;
267
269
  validation: z.ZodOptional<z.ZodObject<{
268
270
  errorMessage: z.ZodString;
269
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
270
- errorMessage: z.ZodString;
271
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
272
- errorMessage: z.ZodString;
273
- }, z.ZodTypeAny, "passthrough">>>;
274
- }, "strip", z.ZodTypeAny, {
275
- fieldname: string;
276
- fieldtype: "Data" | "Text" | "Int" | "Float" | "Decimal" | "Check" | "Date" | "Time" | "Datetime" | "Duration" | "DateRange" | "JSON" | "Code" | "Link" | "Doctype" | "Attach" | "Currency" | "Quantity" | "Select";
277
- value?: unknown;
278
- options?: string | string[] | Record<string, unknown> | undefined;
279
- validation?: z.objectOutputType<{
280
- errorMessage: z.ZodString;
281
- }, z.ZodTypeAny, "passthrough"> | undefined;
282
- component?: string | undefined;
283
- label?: string | undefined;
284
- width?: string | undefined;
285
- align?: "left" | "center" | "right" | "start" | "end" | undefined;
286
- required?: boolean | undefined;
287
- readOnly?: boolean | undefined;
288
- edit?: boolean | undefined;
289
- hidden?: boolean | undefined;
290
- default?: unknown;
291
- mask?: string | undefined;
292
- }, {
293
- fieldname: string;
294
- fieldtype: "Data" | "Text" | "Int" | "Float" | "Decimal" | "Check" | "Date" | "Time" | "Datetime" | "Duration" | "DateRange" | "JSON" | "Code" | "Link" | "Doctype" | "Attach" | "Currency" | "Quantity" | "Select";
295
- value?: unknown;
296
- options?: string | string[] | Record<string, unknown> | undefined;
297
- validation?: z.objectInputType<{
298
- errorMessage: z.ZodString;
299
- }, z.ZodTypeAny, "passthrough"> | undefined;
300
- component?: string | undefined;
301
- label?: string | undefined;
302
- width?: string | undefined;
303
- align?: "left" | "center" | "right" | "start" | "end" | undefined;
304
- required?: boolean | undefined;
305
- readOnly?: boolean | undefined;
306
- edit?: boolean | undefined;
307
- hidden?: boolean | undefined;
308
- default?: unknown;
309
- mask?: string | undefined;
310
- }>, "many">;
311
- /** Workflow configuration */
271
+ }, z.core.$loose>>;
272
+ }, z.core.$strip>>;
312
273
  workflow: z.ZodOptional<z.ZodObject<{
313
- /** List of workflow states */
314
- states: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
315
- /** Actions available in this workflow */
274
+ states: z.ZodOptional<z.ZodArray<z.ZodString>>;
316
275
  actions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
317
- /** Display label for the action */
318
276
  label: z.ZodString;
319
- /** Handler function name or path */
320
277
  handler: z.ZodString;
321
- /** Fields that must have values before action can execute */
322
- requiredFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
323
- /** Workflow states where this action is available */
324
- allowedStates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
325
- /** Whether to show a confirmation dialog */
278
+ requiredFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
279
+ allowedStates: z.ZodOptional<z.ZodArray<z.ZodString>>;
326
280
  confirm: z.ZodOptional<z.ZodBoolean>;
327
- /** Additional arguments for the action */
328
281
  args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
329
- }, "strip", z.ZodTypeAny, {
330
- label: string;
331
- handler: string;
332
- requiredFields?: string[] | undefined;
333
- allowedStates?: string[] | undefined;
334
- confirm?: boolean | undefined;
335
- args?: Record<string, unknown> | undefined;
336
- }, {
337
- label: string;
338
- handler: string;
339
- requiredFields?: string[] | undefined;
340
- allowedStates?: string[] | undefined;
341
- confirm?: boolean | undefined;
342
- args?: Record<string, unknown> | undefined;
343
- }>>>;
344
- }, "strip", z.ZodTypeAny, {
345
- states?: string[] | undefined;
346
- actions?: Record<string, {
347
- label: string;
348
- handler: string;
349
- requiredFields?: string[] | undefined;
350
- allowedStates?: string[] | undefined;
351
- confirm?: boolean | undefined;
352
- args?: Record<string, unknown> | undefined;
353
- }> | undefined;
354
- }, {
355
- states?: string[] | undefined;
356
- actions?: Record<string, {
357
- label: string;
358
- handler: string;
359
- requiredFields?: string[] | undefined;
360
- allowedStates?: string[] | undefined;
361
- confirm?: boolean | undefined;
362
- args?: Record<string, unknown> | undefined;
363
- }> | undefined;
364
- }>>;
365
- /** Parent doctype for inheritance */
282
+ }, z.core.$strip>>>;
283
+ }, z.core.$strip>>;
366
284
  inherits: z.ZodOptional<z.ZodString>;
367
- /** Doctype to use for list views */
368
285
  listDoctype: z.ZodOptional<z.ZodString>;
369
- /** Parent doctype for child tables */
370
286
  parentDoctype: z.ZodOptional<z.ZodString>;
371
- }, "strip", z.ZodTypeAny, {
372
- name: string;
373
- fields: {
374
- fieldname: string;
375
- fieldtype: "Data" | "Text" | "Int" | "Float" | "Decimal" | "Check" | "Date" | "Time" | "Datetime" | "Duration" | "DateRange" | "JSON" | "Code" | "Link" | "Doctype" | "Attach" | "Currency" | "Quantity" | "Select";
376
- value?: unknown;
377
- options?: string | string[] | Record<string, unknown> | undefined;
378
- validation?: z.objectOutputType<{
379
- errorMessage: z.ZodString;
380
- }, z.ZodTypeAny, "passthrough"> | undefined;
381
- component?: string | undefined;
382
- label?: string | undefined;
383
- width?: string | undefined;
384
- align?: "left" | "center" | "right" | "start" | "end" | undefined;
385
- required?: boolean | undefined;
386
- readOnly?: boolean | undefined;
387
- edit?: boolean | undefined;
388
- hidden?: boolean | undefined;
389
- default?: unknown;
390
- mask?: string | undefined;
391
- }[];
392
- slug?: string | undefined;
393
- tableName?: string | undefined;
394
- workflow?: {
395
- states?: string[] | undefined;
396
- actions?: Record<string, {
397
- label: string;
398
- handler: string;
399
- requiredFields?: string[] | undefined;
400
- allowedStates?: string[] | undefined;
401
- confirm?: boolean | undefined;
402
- args?: Record<string, unknown> | undefined;
403
- }> | undefined;
404
- } | undefined;
405
- inherits?: string | undefined;
406
- listDoctype?: string | undefined;
407
- parentDoctype?: string | undefined;
408
- }, {
409
- name: string;
410
- fields: {
411
- fieldname: string;
412
- fieldtype: "Data" | "Text" | "Int" | "Float" | "Decimal" | "Check" | "Date" | "Time" | "Datetime" | "Duration" | "DateRange" | "JSON" | "Code" | "Link" | "Doctype" | "Attach" | "Currency" | "Quantity" | "Select";
413
- value?: unknown;
414
- options?: string | string[] | Record<string, unknown> | undefined;
415
- validation?: z.objectInputType<{
416
- errorMessage: z.ZodString;
417
- }, z.ZodTypeAny, "passthrough"> | undefined;
418
- component?: string | undefined;
419
- label?: string | undefined;
420
- width?: string | undefined;
421
- align?: "left" | "center" | "right" | "start" | "end" | undefined;
422
- required?: boolean | undefined;
423
- readOnly?: boolean | undefined;
424
- edit?: boolean | undefined;
425
- hidden?: boolean | undefined;
426
- default?: unknown;
427
- mask?: string | undefined;
428
- }[];
429
- slug?: string | undefined;
430
- tableName?: string | undefined;
431
- workflow?: {
432
- states?: string[] | undefined;
433
- actions?: Record<string, {
434
- label: string;
435
- handler: string;
436
- requiredFields?: string[] | undefined;
437
- allowedStates?: string[] | undefined;
438
- confirm?: boolean | undefined;
439
- args?: Record<string, unknown> | undefined;
440
- }> | undefined;
441
- } | undefined;
442
- inherits?: string | undefined;
443
- listDoctype?: string | undefined;
444
- parentDoctype?: string | undefined;
445
- }>;
287
+ }, z.core.$strip>;
446
288
 
447
289
  /**
448
290
  * Doctype metadata type inferred from Zod schema
@@ -473,98 +315,51 @@ export declare interface DoctypeRef {
473
315
  * @public
474
316
  */
475
317
  declare const FieldMeta: z.ZodObject<{
476
- /** Unique identifier for the field within its doctype */
477
318
  fieldname: z.ZodString;
478
- /** Semantic field type - determines behavior and default component */
479
- fieldtype: z.ZodEnum<["Data", "Text", "Int", "Float", "Decimal", "Check", "Date", "Time", "Datetime", "Duration", "DateRange", "JSON", "Code", "Link", "Doctype", "Attach", "Currency", "Quantity", "Select"]>;
480
- /** Vue component to render this field. If not specified, derived from TYPE_MAP */
319
+ fieldtype: z.ZodEnum<{
320
+ Data: "Data";
321
+ Text: "Text";
322
+ Int: "Int";
323
+ Float: "Float";
324
+ Decimal: "Decimal";
325
+ Check: "Check";
326
+ Date: "Date";
327
+ Time: "Time";
328
+ Datetime: "Datetime";
329
+ Duration: "Duration";
330
+ DateRange: "DateRange";
331
+ JSON: "JSON";
332
+ Code: "Code";
333
+ Link: "Link";
334
+ Doctype: "Doctype";
335
+ Attach: "Attach";
336
+ Currency: "Currency";
337
+ Quantity: "Quantity";
338
+ Select: "Select";
339
+ }>;
481
340
  component: z.ZodOptional<z.ZodString>;
482
- /** Human-readable label for the field */
483
341
  label: z.ZodOptional<z.ZodString>;
484
- /** Width of the field (CSS value, e.g., "40ch", "200px") */
485
342
  width: z.ZodOptional<z.ZodString>;
486
- /** Text alignment within the field */
487
- align: z.ZodOptional<z.ZodEnum<["left", "center", "right", "start", "end"]>>;
488
- /** Whether the field is required */
343
+ align: z.ZodOptional<z.ZodEnum<{
344
+ left: "left";
345
+ center: "center";
346
+ right: "right";
347
+ start: "start";
348
+ end: "end";
349
+ }>>;
489
350
  required: z.ZodOptional<z.ZodBoolean>;
490
- /** Whether the field is read-only */
491
351
  readOnly: z.ZodOptional<z.ZodBoolean>;
492
- /** Whether the field is editable (for table cells) */
493
352
  edit: z.ZodOptional<z.ZodBoolean>;
494
- /** Whether the field is hidden from the UI */
495
353
  hidden: z.ZodOptional<z.ZodBoolean>;
496
- /** Current value of the field */
497
354
  value: z.ZodOptional<z.ZodUnknown>;
498
- /** Default value for new records */
499
355
  default: z.ZodOptional<z.ZodUnknown>;
500
- /**
501
- * Type-specific options:
502
- * - Link: target doctype slug ("customer")
503
- * - Doctype: child doctype slug ("sales-order-item")
504
- * - Select: choices array (["Draft", "Submitted"])
505
- * - Decimal: \{ precision, scale \}
506
- * - Code: \{ language \}
507
- */
508
- options: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
509
- /**
510
- * Input mask pattern. Accepts either a plain mask string or a stringified
511
- * arrow function that receives `locale` and returns a mask string.
512
- *
513
- * Plain pattern: `"##/##/####"`
514
- *
515
- * Function pattern: `"(locale) => locale === 'en-US' ? '(###) ###-####' : '####-######'"`
516
- */
356
+ options: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
517
357
  mask: z.ZodOptional<z.ZodString>;
518
- /** Validation configuration */
519
358
  validation: z.ZodOptional<z.ZodObject<{
520
359
  /** Error message to display when validation fails */
521
360
  errorMessage: z.ZodString;
522
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
523
- /** Error message to display when validation fails */
524
- errorMessage: z.ZodString;
525
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
526
- /** Error message to display when validation fails */
527
- errorMessage: z.ZodString;
528
- }, z.ZodTypeAny, "passthrough">>>;
529
- }, "strip", z.ZodTypeAny, {
530
- fieldname: string;
531
- fieldtype: "Data" | "Text" | "Int" | "Float" | "Decimal" | "Check" | "Date" | "Time" | "Datetime" | "Duration" | "DateRange" | "JSON" | "Code" | "Link" | "Doctype" | "Attach" | "Currency" | "Quantity" | "Select";
532
- value?: unknown;
533
- options?: string | string[] | Record<string, unknown> | undefined;
534
- validation?: z.objectOutputType<{
535
- /** Error message to display when validation fails */
536
- errorMessage: z.ZodString;
537
- }, z.ZodTypeAny, "passthrough"> | undefined;
538
- component?: string | undefined;
539
- label?: string | undefined;
540
- width?: string | undefined;
541
- align?: "left" | "center" | "right" | "start" | "end" | undefined;
542
- required?: boolean | undefined;
543
- readOnly?: boolean | undefined;
544
- edit?: boolean | undefined;
545
- hidden?: boolean | undefined;
546
- default?: unknown;
547
- mask?: string | undefined;
548
- }, {
549
- fieldname: string;
550
- fieldtype: "Data" | "Text" | "Int" | "Float" | "Decimal" | "Check" | "Date" | "Time" | "Datetime" | "Duration" | "DateRange" | "JSON" | "Code" | "Link" | "Doctype" | "Attach" | "Currency" | "Quantity" | "Select";
551
- value?: unknown;
552
- options?: string | string[] | Record<string, unknown> | undefined;
553
- validation?: z.objectInputType<{
554
- /** Error message to display when validation fails */
555
- errorMessage: z.ZodString;
556
- }, z.ZodTypeAny, "passthrough"> | undefined;
557
- component?: string | undefined;
558
- label?: string | undefined;
559
- width?: string | undefined;
560
- align?: "left" | "center" | "right" | "start" | "end" | undefined;
561
- required?: boolean | undefined;
562
- readOnly?: boolean | undefined;
563
- edit?: boolean | undefined;
564
- hidden?: boolean | undefined;
565
- default?: unknown;
566
- mask?: string | undefined;
567
- }>;
361
+ }, z.core.$loose>>;
362
+ }, z.core.$strip>;
568
363
 
569
364
  /**
570
365
  * Field metadata type inferred from Zod schema
@@ -585,7 +380,7 @@ export { FieldMeta as FieldMetaType }
585
380
  *
586
381
  * @public
587
382
  */
588
- declare const FieldOptions: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
383
+ declare const FieldOptions: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
589
384
 
590
385
  /**
591
386
  * Field options type inferred from Zod schema
@@ -618,13 +413,7 @@ export declare interface FieldTemplate {
618
413
  export declare const FieldValidation: z.ZodObject<{
619
414
  /** Error message to display when validation fails */
620
415
  errorMessage: z.ZodString;
621
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
622
- /** Error message to display when validation fails */
623
- errorMessage: z.ZodString;
624
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
625
- /** Error message to display when validation fails */
626
- errorMessage: z.ZodString;
627
- }, z.ZodTypeAny, "passthrough">>;
416
+ }, z.core.$loose>;
628
417
 
629
418
  /**
630
419
  * Field validation type inferred from Zod schema
@@ -844,7 +633,27 @@ export declare function snakeToLabel(snakeCase: string): string;
844
633
  * These are consistent across forms and tables.
845
634
  * @public
846
635
  */
847
- declare const StonecropFieldType: z.ZodEnum<["Data", "Text", "Int", "Float", "Decimal", "Check", "Date", "Time", "Datetime", "Duration", "DateRange", "JSON", "Code", "Link", "Doctype", "Attach", "Currency", "Quantity", "Select"]>;
636
+ declare const StonecropFieldType: z.ZodEnum<{
637
+ Data: "Data";
638
+ Text: "Text";
639
+ Int: "Int";
640
+ Float: "Float";
641
+ Decimal: "Decimal";
642
+ Check: "Check";
643
+ Date: "Date";
644
+ Time: "Time";
645
+ Datetime: "Datetime";
646
+ Duration: "Duration";
647
+ DateRange: "DateRange";
648
+ JSON: "JSON";
649
+ Code: "Code";
650
+ Link: "Link";
651
+ Doctype: "Doctype";
652
+ Attach: "Attach";
653
+ Currency: "Currency";
654
+ Quantity: "Quantity";
655
+ Select: "Select";
656
+ }>;
848
657
 
849
658
  /**
850
659
  * Stonecrop field type enum inferred from Zod schema
@@ -899,7 +708,7 @@ export declare function validateField(data: unknown): ValidationResult;
899
708
  */
900
709
  export declare interface ValidationError {
901
710
  /** Path to the invalid property */
902
- path: (string | number)[];
711
+ path: PropertyKey[];
903
712
  /** Error message */
904
713
  message: string;
905
714
  }
@@ -932,58 +741,16 @@ export declare const WELL_KNOWN_SCALARS: Record<string, FieldTemplate>;
932
741
  * @public
933
742
  */
934
743
  declare const WorkflowMeta: z.ZodObject<{
935
- /** List of workflow states */
936
- states: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
937
- /** Actions available in this workflow */
744
+ states: z.ZodOptional<z.ZodArray<z.ZodString>>;
938
745
  actions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
939
- /** Display label for the action */
940
746
  label: z.ZodString;
941
- /** Handler function name or path */
942
747
  handler: z.ZodString;
943
- /** Fields that must have values before action can execute */
944
- requiredFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
945
- /** Workflow states where this action is available */
946
- allowedStates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
947
- /** Whether to show a confirmation dialog */
748
+ requiredFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
749
+ allowedStates: z.ZodOptional<z.ZodArray<z.ZodString>>;
948
750
  confirm: z.ZodOptional<z.ZodBoolean>;
949
- /** Additional arguments for the action */
950
751
  args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
951
- }, "strip", z.ZodTypeAny, {
952
- label: string;
953
- handler: string;
954
- requiredFields?: string[] | undefined;
955
- allowedStates?: string[] | undefined;
956
- confirm?: boolean | undefined;
957
- args?: Record<string, unknown> | undefined;
958
- }, {
959
- label: string;
960
- handler: string;
961
- requiredFields?: string[] | undefined;
962
- allowedStates?: string[] | undefined;
963
- confirm?: boolean | undefined;
964
- args?: Record<string, unknown> | undefined;
965
- }>>>;
966
- }, "strip", z.ZodTypeAny, {
967
- states?: string[] | undefined;
968
- actions?: Record<string, {
969
- label: string;
970
- handler: string;
971
- requiredFields?: string[] | undefined;
972
- allowedStates?: string[] | undefined;
973
- confirm?: boolean | undefined;
974
- args?: Record<string, unknown> | undefined;
975
- }> | undefined;
976
- }, {
977
- states?: string[] | undefined;
978
- actions?: Record<string, {
979
- label: string;
980
- handler: string;
981
- requiredFields?: string[] | undefined;
982
- allowedStates?: string[] | undefined;
983
- confirm?: boolean | undefined;
984
- args?: Record<string, unknown> | undefined;
985
- }> | undefined;
986
- }>;
752
+ }, z.core.$strip>>>;
753
+ }, z.core.$strip>;
987
754
 
988
755
  /**
989
756
  * Workflow metadata type inferred from Zod schema