@underdogai/mesh-event-schemas 0.1.0 → 0.3.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/events.d.ts CHANGED
@@ -51,14 +51,32 @@ export declare const UiCardContentSchema: z.ZodObject<{
51
51
  label: z.ZodString;
52
52
  value: z.ZodString;
53
53
  short: z.ZodOptional<z.ZodBoolean>;
54
+ parts: z.ZodOptional<z.ZodArray<z.ZodObject<{
55
+ text: z.ZodString;
56
+ tone: z.ZodOptional<z.ZodEnum<["neutral", "success", "warning", "danger", "info"]>>;
57
+ }, "strip", z.ZodTypeAny, {
58
+ text: string;
59
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
60
+ }, {
61
+ text: string;
62
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
63
+ }>, "many">>;
54
64
  }, "strip", z.ZodTypeAny, {
55
65
  value: string;
56
66
  label: string;
57
67
  short?: boolean | undefined;
68
+ parts?: {
69
+ text: string;
70
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
71
+ }[] | undefined;
58
72
  }, {
59
73
  value: string;
60
74
  label: string;
61
75
  short?: boolean | undefined;
76
+ parts?: {
77
+ text: string;
78
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
79
+ }[] | undefined;
62
80
  }>, "many">;
63
81
  }, "strip", z.ZodTypeAny, {
64
82
  type: "fields";
@@ -66,6 +84,10 @@ export declare const UiCardContentSchema: z.ZodObject<{
66
84
  value: string;
67
85
  label: string;
68
86
  short?: boolean | undefined;
87
+ parts?: {
88
+ text: string;
89
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
90
+ }[] | undefined;
69
91
  }[];
70
92
  }, {
71
93
  type: "fields";
@@ -73,6 +95,10 @@ export declare const UiCardContentSchema: z.ZodObject<{
73
95
  value: string;
74
96
  label: string;
75
97
  short?: boolean | undefined;
98
+ parts?: {
99
+ text: string;
100
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
101
+ }[] | undefined;
76
102
  }[];
77
103
  }>, z.ZodObject<{
78
104
  type: z.ZodLiteral<"image">;
@@ -364,14 +390,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
364
390
  type: "callout";
365
391
  text: string;
366
392
  title?: string | undefined;
367
- icon?: string | undefined;
368
393
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
394
+ icon?: string | undefined;
369
395
  }, {
370
396
  type: "callout";
371
397
  text: string;
372
398
  title?: string | undefined;
373
- icon?: string | undefined;
374
399
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
400
+ icon?: string | undefined;
375
401
  }>, z.ZodObject<{
376
402
  type: z.ZodLiteral<"entityRef">;
377
403
  label: z.ZodString;
@@ -381,14 +407,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
381
407
  }, "strip", z.ZodTypeAny, {
382
408
  type: "entityRef";
383
409
  label: string;
384
- url?: string | undefined;
385
410
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
411
+ url?: string | undefined;
386
412
  entity?: string | undefined;
387
413
  }, {
388
414
  type: "entityRef";
389
415
  label: string;
390
- url?: string | undefined;
391
416
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
417
+ url?: string | undefined;
392
418
  entity?: string | undefined;
393
419
  }>, z.ZodObject<{
394
420
  type: z.ZodLiteral<"kanban">;
@@ -414,20 +440,20 @@ export declare const UiCardContentSchema: z.ZodObject<{
414
440
  }, "strip", z.ZodTypeAny, {
415
441
  title: string;
416
442
  id: string;
443
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
417
444
  badge?: {
418
445
  label: string;
419
446
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
420
447
  } | undefined;
421
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
422
448
  meta?: string[] | undefined;
423
449
  }, {
424
450
  title: string;
425
451
  id: string;
452
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
426
453
  badge?: {
427
454
  label: string;
428
455
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
429
456
  } | undefined;
430
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
431
457
  meta?: string[] | undefined;
432
458
  }>, "many">;
433
459
  }, "strip", z.ZodTypeAny, {
@@ -436,11 +462,11 @@ export declare const UiCardContentSchema: z.ZodObject<{
436
462
  cards: {
437
463
  title: string;
438
464
  id: string;
465
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
439
466
  badge?: {
440
467
  label: string;
441
468
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
442
469
  } | undefined;
443
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
444
470
  meta?: string[] | undefined;
445
471
  }[];
446
472
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
@@ -450,11 +476,11 @@ export declare const UiCardContentSchema: z.ZodObject<{
450
476
  cards: {
451
477
  title: string;
452
478
  id: string;
479
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
453
480
  badge?: {
454
481
  label: string;
455
482
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
456
483
  } | undefined;
457
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
458
484
  meta?: string[] | undefined;
459
485
  }[];
460
486
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
@@ -468,11 +494,11 @@ export declare const UiCardContentSchema: z.ZodObject<{
468
494
  cards: {
469
495
  title: string;
470
496
  id: string;
497
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
471
498
  badge?: {
472
499
  label: string;
473
500
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
474
501
  } | undefined;
475
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
476
502
  meta?: string[] | undefined;
477
503
  }[];
478
504
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
@@ -486,11 +512,11 @@ export declare const UiCardContentSchema: z.ZodObject<{
486
512
  cards: {
487
513
  title: string;
488
514
  id: string;
515
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
489
516
  badge?: {
490
517
  label: string;
491
518
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
492
519
  } | undefined;
493
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
494
520
  meta?: string[] | undefined;
495
521
  }[];
496
522
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
@@ -610,27 +636,33 @@ export declare const UiCardContentSchema: z.ZodObject<{
610
636
  }>, z.ZodObject<{
611
637
  type: z.ZodLiteral<"input">;
612
638
  name: z.ZodString;
613
- input: z.ZodOptional<z.ZodEnum<["text", "textarea", "number", "date", "datetime", "time"]>>;
639
+ input: z.ZodOptional<z.ZodEnum<["text", "textarea", "number", "date", "datetime", "time", "url", "email", "file"]>>;
614
640
  label: z.ZodOptional<z.ZodString>;
615
641
  placeholder: z.ZodOptional<z.ZodString>;
616
642
  required: z.ZodOptional<z.ZodBoolean>;
617
643
  value: z.ZodOptional<z.ZodString>;
644
+ accept: z.ZodOptional<z.ZodString>;
645
+ multiple: z.ZodOptional<z.ZodBoolean>;
618
646
  }, "strip", z.ZodTypeAny, {
619
647
  type: "input";
620
648
  name: string;
621
649
  value?: string | undefined;
622
650
  label?: string | undefined;
623
- input?: "number" | "text" | "date" | "textarea" | "datetime" | "time" | undefined;
651
+ input?: "number" | "text" | "date" | "url" | "textarea" | "datetime" | "time" | "email" | "file" | undefined;
624
652
  placeholder?: string | undefined;
625
653
  required?: boolean | undefined;
654
+ accept?: string | undefined;
655
+ multiple?: boolean | undefined;
626
656
  }, {
627
657
  type: "input";
628
658
  name: string;
629
659
  value?: string | undefined;
630
660
  label?: string | undefined;
631
- input?: "number" | "text" | "date" | "textarea" | "datetime" | "time" | undefined;
661
+ input?: "number" | "text" | "date" | "url" | "textarea" | "datetime" | "time" | "email" | "file" | undefined;
632
662
  placeholder?: string | undefined;
633
663
  required?: boolean | undefined;
664
+ accept?: string | undefined;
665
+ multiple?: boolean | undefined;
634
666
  }>, z.ZodObject<{
635
667
  type: z.ZodLiteral<"toggle">;
636
668
  name: z.ZodString;
@@ -1072,14 +1104,32 @@ export declare const UiCardContentSchema: z.ZodObject<{
1072
1104
  label: z.ZodString;
1073
1105
  value: z.ZodString;
1074
1106
  short: z.ZodOptional<z.ZodBoolean>;
1107
+ parts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1108
+ text: z.ZodString;
1109
+ tone: z.ZodOptional<z.ZodEnum<["neutral", "success", "warning", "danger", "info"]>>;
1110
+ }, "strip", z.ZodTypeAny, {
1111
+ text: string;
1112
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1113
+ }, {
1114
+ text: string;
1115
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1116
+ }>, "many">>;
1075
1117
  }, "strip", z.ZodTypeAny, {
1076
1118
  value: string;
1077
1119
  label: string;
1078
1120
  short?: boolean | undefined;
1121
+ parts?: {
1122
+ text: string;
1123
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1124
+ }[] | undefined;
1079
1125
  }, {
1080
1126
  value: string;
1081
1127
  label: string;
1082
1128
  short?: boolean | undefined;
1129
+ parts?: {
1130
+ text: string;
1131
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1132
+ }[] | undefined;
1083
1133
  }>, "many">;
1084
1134
  }, "strip", z.ZodTypeAny, {
1085
1135
  type: "fields";
@@ -1087,6 +1137,10 @@ export declare const UiCardContentSchema: z.ZodObject<{
1087
1137
  value: string;
1088
1138
  label: string;
1089
1139
  short?: boolean | undefined;
1140
+ parts?: {
1141
+ text: string;
1142
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1143
+ }[] | undefined;
1090
1144
  }[];
1091
1145
  }, {
1092
1146
  type: "fields";
@@ -1094,6 +1148,10 @@ export declare const UiCardContentSchema: z.ZodObject<{
1094
1148
  value: string;
1095
1149
  label: string;
1096
1150
  short?: boolean | undefined;
1151
+ parts?: {
1152
+ text: string;
1153
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1154
+ }[] | undefined;
1097
1155
  }[];
1098
1156
  }>, z.ZodObject<{
1099
1157
  type: z.ZodLiteral<"image">;
@@ -1385,14 +1443,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
1385
1443
  type: "callout";
1386
1444
  text: string;
1387
1445
  title?: string | undefined;
1388
- icon?: string | undefined;
1389
1446
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1447
+ icon?: string | undefined;
1390
1448
  }, {
1391
1449
  type: "callout";
1392
1450
  text: string;
1393
1451
  title?: string | undefined;
1394
- icon?: string | undefined;
1395
1452
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1453
+ icon?: string | undefined;
1396
1454
  }>, z.ZodObject<{
1397
1455
  type: z.ZodLiteral<"entityRef">;
1398
1456
  label: z.ZodString;
@@ -1402,14 +1460,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
1402
1460
  }, "strip", z.ZodTypeAny, {
1403
1461
  type: "entityRef";
1404
1462
  label: string;
1405
- url?: string | undefined;
1406
1463
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1464
+ url?: string | undefined;
1407
1465
  entity?: string | undefined;
1408
1466
  }, {
1409
1467
  type: "entityRef";
1410
1468
  label: string;
1411
- url?: string | undefined;
1412
1469
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1470
+ url?: string | undefined;
1413
1471
  entity?: string | undefined;
1414
1472
  }>, z.ZodObject<{
1415
1473
  type: z.ZodLiteral<"kanban">;
@@ -1435,20 +1493,20 @@ export declare const UiCardContentSchema: z.ZodObject<{
1435
1493
  }, "strip", z.ZodTypeAny, {
1436
1494
  title: string;
1437
1495
  id: string;
1496
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1438
1497
  badge?: {
1439
1498
  label: string;
1440
1499
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1441
1500
  } | undefined;
1442
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1443
1501
  meta?: string[] | undefined;
1444
1502
  }, {
1445
1503
  title: string;
1446
1504
  id: string;
1505
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1447
1506
  badge?: {
1448
1507
  label: string;
1449
1508
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1450
1509
  } | undefined;
1451
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1452
1510
  meta?: string[] | undefined;
1453
1511
  }>, "many">;
1454
1512
  }, "strip", z.ZodTypeAny, {
@@ -1457,11 +1515,11 @@ export declare const UiCardContentSchema: z.ZodObject<{
1457
1515
  cards: {
1458
1516
  title: string;
1459
1517
  id: string;
1518
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1460
1519
  badge?: {
1461
1520
  label: string;
1462
1521
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1463
1522
  } | undefined;
1464
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1465
1523
  meta?: string[] | undefined;
1466
1524
  }[];
1467
1525
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
@@ -1471,11 +1529,11 @@ export declare const UiCardContentSchema: z.ZodObject<{
1471
1529
  cards: {
1472
1530
  title: string;
1473
1531
  id: string;
1532
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1474
1533
  badge?: {
1475
1534
  label: string;
1476
1535
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1477
1536
  } | undefined;
1478
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1479
1537
  meta?: string[] | undefined;
1480
1538
  }[];
1481
1539
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
@@ -1489,11 +1547,11 @@ export declare const UiCardContentSchema: z.ZodObject<{
1489
1547
  cards: {
1490
1548
  title: string;
1491
1549
  id: string;
1550
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1492
1551
  badge?: {
1493
1552
  label: string;
1494
1553
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1495
1554
  } | undefined;
1496
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1497
1555
  meta?: string[] | undefined;
1498
1556
  }[];
1499
1557
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
@@ -1507,11 +1565,11 @@ export declare const UiCardContentSchema: z.ZodObject<{
1507
1565
  cards: {
1508
1566
  title: string;
1509
1567
  id: string;
1568
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1510
1569
  badge?: {
1511
1570
  label: string;
1512
1571
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1513
1572
  } | undefined;
1514
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1515
1573
  meta?: string[] | undefined;
1516
1574
  }[];
1517
1575
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
@@ -1631,27 +1689,33 @@ export declare const UiCardContentSchema: z.ZodObject<{
1631
1689
  }>, z.ZodObject<{
1632
1690
  type: z.ZodLiteral<"input">;
1633
1691
  name: z.ZodString;
1634
- input: z.ZodOptional<z.ZodEnum<["text", "textarea", "number", "date", "datetime", "time"]>>;
1692
+ input: z.ZodOptional<z.ZodEnum<["text", "textarea", "number", "date", "datetime", "time", "url", "email", "file"]>>;
1635
1693
  label: z.ZodOptional<z.ZodString>;
1636
1694
  placeholder: z.ZodOptional<z.ZodString>;
1637
1695
  required: z.ZodOptional<z.ZodBoolean>;
1638
1696
  value: z.ZodOptional<z.ZodString>;
1697
+ accept: z.ZodOptional<z.ZodString>;
1698
+ multiple: z.ZodOptional<z.ZodBoolean>;
1639
1699
  }, "strip", z.ZodTypeAny, {
1640
1700
  type: "input";
1641
1701
  name: string;
1642
1702
  value?: string | undefined;
1643
1703
  label?: string | undefined;
1644
- input?: "number" | "text" | "date" | "textarea" | "datetime" | "time" | undefined;
1704
+ input?: "number" | "text" | "date" | "url" | "textarea" | "datetime" | "time" | "email" | "file" | undefined;
1645
1705
  placeholder?: string | undefined;
1646
1706
  required?: boolean | undefined;
1707
+ accept?: string | undefined;
1708
+ multiple?: boolean | undefined;
1647
1709
  }, {
1648
1710
  type: "input";
1649
1711
  name: string;
1650
1712
  value?: string | undefined;
1651
1713
  label?: string | undefined;
1652
- input?: "number" | "text" | "date" | "textarea" | "datetime" | "time" | undefined;
1714
+ input?: "number" | "text" | "date" | "url" | "textarea" | "datetime" | "time" | "email" | "file" | undefined;
1653
1715
  placeholder?: string | undefined;
1654
1716
  required?: boolean | undefined;
1717
+ accept?: string | undefined;
1718
+ multiple?: boolean | undefined;
1655
1719
  }>, z.ZodObject<{
1656
1720
  type: z.ZodLiteral<"toggle">;
1657
1721
  name: z.ZodString;
@@ -2068,6 +2132,10 @@ export declare const UiCardContentSchema: z.ZodObject<{
2068
2132
  value: string;
2069
2133
  label: string;
2070
2134
  short?: boolean | undefined;
2135
+ parts?: {
2136
+ text: string;
2137
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2138
+ }[] | undefined;
2071
2139
  }[];
2072
2140
  } | {
2073
2141
  type: "image";
@@ -2094,9 +2162,11 @@ export declare const UiCardContentSchema: z.ZodObject<{
2094
2162
  name: string;
2095
2163
  value?: string | undefined;
2096
2164
  label?: string | undefined;
2097
- input?: "number" | "text" | "date" | "textarea" | "datetime" | "time" | undefined;
2165
+ input?: "number" | "text" | "date" | "url" | "textarea" | "datetime" | "time" | "email" | "file" | undefined;
2098
2166
  placeholder?: string | undefined;
2099
2167
  required?: boolean | undefined;
2168
+ accept?: string | undefined;
2169
+ multiple?: boolean | undefined;
2100
2170
  } | {
2101
2171
  type: "toggle";
2102
2172
  label: string;
@@ -2279,13 +2349,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
2279
2349
  type: "callout";
2280
2350
  text: string;
2281
2351
  title?: string | undefined;
2282
- icon?: string | undefined;
2283
2352
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2353
+ icon?: string | undefined;
2284
2354
  } | {
2285
2355
  type: "entityRef";
2286
2356
  label: string;
2287
- url?: string | undefined;
2288
2357
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2358
+ url?: string | undefined;
2289
2359
  entity?: string | undefined;
2290
2360
  } | {
2291
2361
  type: "kanban";
@@ -2295,11 +2365,11 @@ export declare const UiCardContentSchema: z.ZodObject<{
2295
2365
  cards: {
2296
2366
  title: string;
2297
2367
  id: string;
2368
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2298
2369
  badge?: {
2299
2370
  label: string;
2300
2371
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2301
2372
  } | undefined;
2302
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2303
2373
  meta?: string[] | undefined;
2304
2374
  }[];
2305
2375
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
@@ -2343,6 +2413,10 @@ export declare const UiCardContentSchema: z.ZodObject<{
2343
2413
  value: string;
2344
2414
  label: string;
2345
2415
  short?: boolean | undefined;
2416
+ parts?: {
2417
+ text: string;
2418
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2419
+ }[] | undefined;
2346
2420
  }[];
2347
2421
  } | {
2348
2422
  type: "image";
@@ -2369,9 +2443,11 @@ export declare const UiCardContentSchema: z.ZodObject<{
2369
2443
  name: string;
2370
2444
  value?: string | undefined;
2371
2445
  label?: string | undefined;
2372
- input?: "number" | "text" | "date" | "textarea" | "datetime" | "time" | undefined;
2446
+ input?: "number" | "text" | "date" | "url" | "textarea" | "datetime" | "time" | "email" | "file" | undefined;
2373
2447
  placeholder?: string | undefined;
2374
2448
  required?: boolean | undefined;
2449
+ accept?: string | undefined;
2450
+ multiple?: boolean | undefined;
2375
2451
  } | {
2376
2452
  type: "toggle";
2377
2453
  label: string;
@@ -2554,13 +2630,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
2554
2630
  type: "callout";
2555
2631
  text: string;
2556
2632
  title?: string | undefined;
2557
- icon?: string | undefined;
2558
2633
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2634
+ icon?: string | undefined;
2559
2635
  } | {
2560
2636
  type: "entityRef";
2561
2637
  label: string;
2562
- url?: string | undefined;
2563
2638
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2639
+ url?: string | undefined;
2564
2640
  entity?: string | undefined;
2565
2641
  } | {
2566
2642
  type: "kanban";
@@ -2570,11 +2646,11 @@ export declare const UiCardContentSchema: z.ZodObject<{
2570
2646
  cards: {
2571
2647
  title: string;
2572
2648
  id: string;
2649
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2573
2650
  badge?: {
2574
2651
  label: string;
2575
2652
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2576
2653
  } | undefined;
2577
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2578
2654
  meta?: string[] | undefined;
2579
2655
  }[];
2580
2656
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
@@ -2663,6 +2739,10 @@ export declare const UiCardContentSchema: z.ZodObject<{
2663
2739
  value: string;
2664
2740
  label: string;
2665
2741
  short?: boolean | undefined;
2742
+ parts?: {
2743
+ text: string;
2744
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2745
+ }[] | undefined;
2666
2746
  }[];
2667
2747
  } | {
2668
2748
  type: "image";
@@ -2689,9 +2769,11 @@ export declare const UiCardContentSchema: z.ZodObject<{
2689
2769
  name: string;
2690
2770
  value?: string | undefined;
2691
2771
  label?: string | undefined;
2692
- input?: "number" | "text" | "date" | "textarea" | "datetime" | "time" | undefined;
2772
+ input?: "number" | "text" | "date" | "url" | "textarea" | "datetime" | "time" | "email" | "file" | undefined;
2693
2773
  placeholder?: string | undefined;
2694
2774
  required?: boolean | undefined;
2775
+ accept?: string | undefined;
2776
+ multiple?: boolean | undefined;
2695
2777
  } | {
2696
2778
  type: "toggle";
2697
2779
  label: string;
@@ -2874,13 +2956,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
2874
2956
  type: "callout";
2875
2957
  text: string;
2876
2958
  title?: string | undefined;
2877
- icon?: string | undefined;
2878
2959
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2960
+ icon?: string | undefined;
2879
2961
  } | {
2880
2962
  type: "entityRef";
2881
2963
  label: string;
2882
- url?: string | undefined;
2883
2964
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2965
+ url?: string | undefined;
2884
2966
  entity?: string | undefined;
2885
2967
  } | {
2886
2968
  type: "kanban";
@@ -2890,11 +2972,11 @@ export declare const UiCardContentSchema: z.ZodObject<{
2890
2972
  cards: {
2891
2973
  title: string;
2892
2974
  id: string;
2975
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2893
2976
  badge?: {
2894
2977
  label: string;
2895
2978
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2896
2979
  } | undefined;
2897
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2898
2980
  meta?: string[] | undefined;
2899
2981
  }[];
2900
2982
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
@@ -2954,6 +3036,10 @@ export declare const UiCardContentSchema: z.ZodObject<{
2954
3036
  value: string;
2955
3037
  label: string;
2956
3038
  short?: boolean | undefined;
3039
+ parts?: {
3040
+ text: string;
3041
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3042
+ }[] | undefined;
2957
3043
  }[];
2958
3044
  } | {
2959
3045
  type: "image";
@@ -2980,9 +3066,11 @@ export declare const UiCardContentSchema: z.ZodObject<{
2980
3066
  name: string;
2981
3067
  value?: string | undefined;
2982
3068
  label?: string | undefined;
2983
- input?: "number" | "text" | "date" | "textarea" | "datetime" | "time" | undefined;
3069
+ input?: "number" | "text" | "date" | "url" | "textarea" | "datetime" | "time" | "email" | "file" | undefined;
2984
3070
  placeholder?: string | undefined;
2985
3071
  required?: boolean | undefined;
3072
+ accept?: string | undefined;
3073
+ multiple?: boolean | undefined;
2986
3074
  } | {
2987
3075
  type: "toggle";
2988
3076
  label: string;
@@ -3165,13 +3253,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
3165
3253
  type: "callout";
3166
3254
  text: string;
3167
3255
  title?: string | undefined;
3168
- icon?: string | undefined;
3169
3256
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3257
+ icon?: string | undefined;
3170
3258
  } | {
3171
3259
  type: "entityRef";
3172
3260
  label: string;
3173
- url?: string | undefined;
3174
3261
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3262
+ url?: string | undefined;
3175
3263
  entity?: string | undefined;
3176
3264
  } | {
3177
3265
  type: "kanban";
@@ -3181,11 +3269,11 @@ export declare const UiCardContentSchema: z.ZodObject<{
3181
3269
  cards: {
3182
3270
  title: string;
3183
3271
  id: string;
3272
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3184
3273
  badge?: {
3185
3274
  label: string;
3186
3275
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3187
3276
  } | undefined;
3188
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3189
3277
  meta?: string[] | undefined;
3190
3278
  }[];
3191
3279
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
@@ -3250,6 +3338,10 @@ export declare const UiCardContentSchema: z.ZodObject<{
3250
3338
  value: string;
3251
3339
  label: string;
3252
3340
  short?: boolean | undefined;
3341
+ parts?: {
3342
+ text: string;
3343
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3344
+ }[] | undefined;
3253
3345
  }[];
3254
3346
  } | {
3255
3347
  type: "image";
@@ -3276,9 +3368,11 @@ export declare const UiCardContentSchema: z.ZodObject<{
3276
3368
  name: string;
3277
3369
  value?: string | undefined;
3278
3370
  label?: string | undefined;
3279
- input?: "number" | "text" | "date" | "textarea" | "datetime" | "time" | undefined;
3371
+ input?: "number" | "text" | "date" | "url" | "textarea" | "datetime" | "time" | "email" | "file" | undefined;
3280
3372
  placeholder?: string | undefined;
3281
3373
  required?: boolean | undefined;
3374
+ accept?: string | undefined;
3375
+ multiple?: boolean | undefined;
3282
3376
  } | {
3283
3377
  type: "toggle";
3284
3378
  label: string;
@@ -3461,13 +3555,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
3461
3555
  type: "callout";
3462
3556
  text: string;
3463
3557
  title?: string | undefined;
3464
- icon?: string | undefined;
3465
3558
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3559
+ icon?: string | undefined;
3466
3560
  } | {
3467
3561
  type: "entityRef";
3468
3562
  label: string;
3469
- url?: string | undefined;
3470
3563
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3564
+ url?: string | undefined;
3471
3565
  entity?: string | undefined;
3472
3566
  } | {
3473
3567
  type: "kanban";
@@ -3477,11 +3571,11 @@ export declare const UiCardContentSchema: z.ZodObject<{
3477
3571
  cards: {
3478
3572
  title: string;
3479
3573
  id: string;
3574
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3480
3575
  badge?: {
3481
3576
  label: string;
3482
3577
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3483
3578
  } | undefined;
3484
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3485
3579
  meta?: string[] | undefined;
3486
3580
  }[];
3487
3581
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
@@ -3525,6 +3619,10 @@ export declare const UiCardContentSchema: z.ZodObject<{
3525
3619
  value: string;
3526
3620
  label: string;
3527
3621
  short?: boolean | undefined;
3622
+ parts?: {
3623
+ text: string;
3624
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3625
+ }[] | undefined;
3528
3626
  }[];
3529
3627
  } | {
3530
3628
  type: "image";
@@ -3551,9 +3649,11 @@ export declare const UiCardContentSchema: z.ZodObject<{
3551
3649
  name: string;
3552
3650
  value?: string | undefined;
3553
3651
  label?: string | undefined;
3554
- input?: "number" | "text" | "date" | "textarea" | "datetime" | "time" | undefined;
3652
+ input?: "number" | "text" | "date" | "url" | "textarea" | "datetime" | "time" | "email" | "file" | undefined;
3555
3653
  placeholder?: string | undefined;
3556
3654
  required?: boolean | undefined;
3655
+ accept?: string | undefined;
3656
+ multiple?: boolean | undefined;
3557
3657
  } | {
3558
3658
  type: "toggle";
3559
3659
  label: string;
@@ -3736,13 +3836,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
3736
3836
  type: "callout";
3737
3837
  text: string;
3738
3838
  title?: string | undefined;
3739
- icon?: string | undefined;
3740
3839
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3840
+ icon?: string | undefined;
3741
3841
  } | {
3742
3842
  type: "entityRef";
3743
3843
  label: string;
3744
- url?: string | undefined;
3745
3844
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3845
+ url?: string | undefined;
3746
3846
  entity?: string | undefined;
3747
3847
  } | {
3748
3848
  type: "kanban";
@@ -3752,11 +3852,11 @@ export declare const UiCardContentSchema: z.ZodObject<{
3752
3852
  cards: {
3753
3853
  title: string;
3754
3854
  id: string;
3855
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3755
3856
  badge?: {
3756
3857
  label: string;
3757
3858
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3758
3859
  } | undefined;
3759
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3760
3860
  meta?: string[] | undefined;
3761
3861
  }[];
3762
3862
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
@@ -3907,6 +4007,39 @@ export declare const AgentCapabilityContentSchema: z.ZodObject<{
3907
4007
  display_name?: string | undefined;
3908
4008
  }>;
3909
4009
  export type AgentCapabilityContent = z.infer<typeof AgentCapabilityContentSchema>;
4010
+ /** 한 액션의 ACL — allow: 허용 MXID 목록(빈 배열 = 아무도 못 부름, fail-closed 명시). */
4011
+ export declare const AppActionAclSchema: z.ZodObject<{
4012
+ allow: z.ZodArray<z.ZodString, "many">;
4013
+ }, "strip", z.ZodTypeAny, {
4014
+ allow: string[];
4015
+ }, {
4016
+ allow: string[];
4017
+ }>;
4018
+ export type AppActionAcl = z.infer<typeof AppActionAclSchema>;
4019
+ export declare const AppAclContentSchema: z.ZodObject<{
4020
+ v: z.ZodDefault<z.ZodLiteral<1>>;
4021
+ /** action_id → ACL. 없는 액션은 제한 없음. */
4022
+ actions: z.ZodRecord<z.ZodString, z.ZodObject<{
4023
+ allow: z.ZodArray<z.ZodString, "many">;
4024
+ }, "strip", z.ZodTypeAny, {
4025
+ allow: string[];
4026
+ }, {
4027
+ allow: string[];
4028
+ }>>;
4029
+ }, "strip", z.ZodTypeAny, {
4030
+ actions: Record<string, {
4031
+ allow: string[];
4032
+ }>;
4033
+ v: 1;
4034
+ }, {
4035
+ actions: Record<string, {
4036
+ allow: string[];
4037
+ }>;
4038
+ v?: 1 | undefined;
4039
+ }>;
4040
+ export type AppAclContent = z.infer<typeof AppAclContentSchema>;
4041
+ /** 앱의 ACL 상태 이벤트 타입 — `org.corp.<app>.acl`(앱 네임스페이스 소유 규칙과 동일). */
4042
+ export declare function appAclEventType(app: string): string;
3910
4043
  export declare const WorkflowStateContentSchema: z.ZodObject<{
3911
4044
  v: z.ZodDefault<z.ZodLiteral<1>>;
3912
4045
  status: z.ZodString;
@@ -3997,6 +4130,91 @@ export type RoomAppsContent = z.infer<typeof RoomAppsContentSchema>;
3997
4130
  export declare function buildRoomApps(roomApps: Omit<RoomAppsContent, "v"> & {
3998
4131
  v?: typeof SCHEMA_VERSION;
3999
4132
  }): RoomAppsContent;
4133
+ /** 노트 블록의 닫힌 종류 집합 — 모르는 종류는 수신측이 문단으로 관용 처리한다. */
4134
+ export declare const NOTE_BLOCK_TYPES: readonly ["paragraph", "heading", "bullet", "numbered", "todo", "quote", "code", "divider"];
4135
+ export type NoteBlockType = (typeof NOTE_BLOCK_TYPES)[number];
4136
+ export declare const NoteBlockContentSchema: z.ZodObject<{
4137
+ v: z.ZodDefault<z.ZodLiteral<1>>;
4138
+ type: z.ZodEnum<["paragraph", "heading", "bullet", "numbered", "todo", "quote", "code", "divider"]>;
4139
+ /** 본문 — 인라인 마크다운(**굵게**·`코드`·[링크]). divider 는 빈 문자열. 상한은 이벤트 크기 방어. */
4140
+ text: z.ZodDefault<z.ZodString>;
4141
+ /** 정렬 키(분수 인덱스). 문자열 오름차순 = 표시 순서. */
4142
+ order: z.ZodString;
4143
+ /** 제목 단계 — type="heading" 일 때만 의미(그 외엔 무시). */
4144
+ level: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
4145
+ /** 체크 여부 — type="todo" 일 때만 의미. */
4146
+ checked: z.ZodOptional<z.ZodBoolean>;
4147
+ }, "strip", z.ZodTypeAny, {
4148
+ type: "code" | "heading" | "divider" | "todo" | "paragraph" | "bullet" | "numbered" | "quote";
4149
+ text: string;
4150
+ v: 1;
4151
+ order: string;
4152
+ level?: 1 | 2 | 3 | undefined;
4153
+ checked?: boolean | undefined;
4154
+ }, {
4155
+ type: "code" | "heading" | "divider" | "todo" | "paragraph" | "bullet" | "numbered" | "quote";
4156
+ order: string;
4157
+ text?: string | undefined;
4158
+ level?: 1 | 2 | 3 | undefined;
4159
+ checked?: boolean | undefined;
4160
+ v?: 1 | undefined;
4161
+ }>;
4162
+ export type NoteBlockContent = z.infer<typeof NoteBlockContentSchema>;
4163
+ /** 노트 블록 content 를 만든다 (org.corp.note.block, state_key = 블록 id). */
4164
+ export declare function buildNoteBlock(block: Omit<NoteBlockContent, "v" | "text"> & {
4165
+ v?: typeof SCHEMA_VERSION;
4166
+ text?: string;
4167
+ }): NoteBlockContent;
4168
+ export declare const NoteMetaContentSchema: z.ZodObject<{
4169
+ v: z.ZodDefault<z.ZodLiteral<1>>;
4170
+ /** 노트 제목. 비어 있으면 클라이언트가 기본 이름으로 대체한다. */
4171
+ title: z.ZodDefault<z.ZodString>;
4172
+ /**
4173
+ * 노트 **목록**의 정렬 키(분수 인덱스) — 블록의 `order` 와 같은 방식·같은 이유다.
4174
+ * 옛 노트엔 없다(그때는 채널당 하나였다) → 없으면 수신측이 노트 id 를 대신 쓴다.
4175
+ */
4176
+ order: z.ZodOptional<z.ZodString>;
4177
+ }, "strip", z.ZodTypeAny, {
4178
+ title: string;
4179
+ v: 1;
4180
+ order?: string | undefined;
4181
+ }, {
4182
+ title?: string | undefined;
4183
+ v?: 1 | undefined;
4184
+ order?: string | undefined;
4185
+ }>;
4186
+ export type NoteMetaContent = z.infer<typeof NoteMetaContentSchema>;
4187
+ /** 노트 메타 content 를 만든다 (org.corp.note.meta, state_key = 노트 id — 기본 노트는 ""). */
4188
+ export declare function buildNoteMeta(meta: Omit<NoteMetaContent, "v" | "title"> & {
4189
+ v?: typeof SCHEMA_VERSION;
4190
+ title?: string;
4191
+ }): NoteMetaContent;
4192
+ export declare const NoteEditingContentSchema: z.ZodObject<{
4193
+ v: z.ZodDefault<z.ZodLiteral<1>>;
4194
+ /** 지금 만지는 중인 블록 id. 편집을 멈추면 빈 content 로 지운다. */
4195
+ block_id: z.ZodString;
4196
+ /**
4197
+ * 발신 시각(ms, 발신자 시계). 수신측이 `Date.now() - ts > TTL` 로 스테일을 버린다.
4198
+ *
4199
+ * origin_server_ts 가 아니라 content 에 두는 이유가 둘: ① 편집이 길어질 때 보내는 갱신이
4200
+ * **직전과 같은 content 면 서버가 무시할 수 있어** 표시가 조용히 굳는다 — ts 가 매번 달라 그걸 막는다.
4201
+ * ② 수신측은 자기 시계(Date.now())로 비교하는데 서버 시계와 섞으면 기준이 두 개가 된다.
4202
+ */
4203
+ ts: z.ZodNumber;
4204
+ }, "strip", z.ZodTypeAny, {
4205
+ v: 1;
4206
+ block_id: string;
4207
+ ts: number;
4208
+ }, {
4209
+ block_id: string;
4210
+ ts: number;
4211
+ v?: 1 | undefined;
4212
+ }>;
4213
+ export type NoteEditingContent = z.infer<typeof NoteEditingContentSchema>;
4214
+ /** 편집중 표시 content 를 만든다 (org.corp.note.editing, state_key = 편집자 MXID). */
4215
+ export declare function buildNoteEditing(editing: Omit<NoteEditingContent, "v"> & {
4216
+ v?: typeof SCHEMA_VERSION;
4217
+ }): NoteEditingContent;
4000
4218
  export declare const EntitySnapshotContentSchema: z.ZodObject<{
4001
4219
  v: z.ZodDefault<z.ZodLiteral<1>>;
4002
4220
  /** 이 스냅샷이 다루는 엔티티 타입 (room.binding.entity_type 과 일치). */