@underdogai/mesh-event-schemas 0.2.0 → 0.6.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.
Files changed (45) hide show
  1. package/dist/apppacks.d.ts +1242 -385
  2. package/dist/apppacks.d.ts.map +1 -1
  3. package/dist/apppacks.js +1 -1
  4. package/dist/blocks.d.ts +295 -58
  5. package/dist/blocks.d.ts.map +1 -1
  6. package/dist/blocks.js +90 -11
  7. package/dist/blocks.js.map +1 -1
  8. package/dist/capabilities.d.ts +2 -1
  9. package/dist/capabilities.d.ts.map +1 -1
  10. package/dist/capabilities.js +2 -1
  11. package/dist/capabilities.js.map +1 -1
  12. package/dist/events.d.ts +456 -95
  13. package/dist/events.d.ts.map +1 -1
  14. package/dist/events.js +109 -1
  15. package/dist/events.js.map +1 -1
  16. package/dist/geo.d.ts +52 -0
  17. package/dist/geo.d.ts.map +1 -0
  18. package/dist/geo.js +65 -0
  19. package/dist/geo.js.map +1 -0
  20. package/dist/index.d.ts +1 -0
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +1 -0
  23. package/dist/index.js.map +1 -1
  24. package/dist/namespace.d.ts +2 -0
  25. package/dist/namespace.d.ts.map +1 -1
  26. package/dist/namespace.js +2 -0
  27. package/dist/namespace.js.map +1 -1
  28. package/dist/registry.d.ts +3 -2
  29. package/dist/registry.d.ts.map +1 -1
  30. package/dist/registry.js +25 -3
  31. package/dist/registry.js.map +1 -1
  32. package/dist/surfaces.d.ts +47195 -12148
  33. package/dist/surfaces.d.ts.map +1 -1
  34. package/dist/surfaces.js +141 -3
  35. package/dist/surfaces.js.map +1 -1
  36. package/package.json +1 -1
  37. package/src/apppacks.ts +1 -1
  38. package/src/blocks.ts +92 -11
  39. package/src/capabilities.ts +2 -1
  40. package/src/events.ts +119 -4
  41. package/src/geo.ts +75 -0
  42. package/src/index.ts +1 -0
  43. package/src/namespace.ts +2 -0
  44. package/src/registry.ts +26 -2
  45. package/src/surfaces.ts +155 -2
package/dist/events.d.ts CHANGED
@@ -5,7 +5,6 @@
5
5
  * 모든 형태의 단일 진실 공급원이며, appservice·bridge·client가 공통으로 import 한다.
6
6
  */
7
7
  import { z } from "zod";
8
- import { type Tone } from "./blocks.js";
9
8
  import { EventType, UI_CONTENT_KEY } from "./namespace.js";
10
9
  export declare const SCHEMA_VERSION: 1;
11
10
  export declare const CardStateSchema: z.ZodEnum<["open", "submitted", "cancelled", "expired"]>;
@@ -51,14 +50,32 @@ export declare const UiCardContentSchema: z.ZodObject<{
51
50
  label: z.ZodString;
52
51
  value: z.ZodString;
53
52
  short: z.ZodOptional<z.ZodBoolean>;
53
+ parts: z.ZodOptional<z.ZodArray<z.ZodObject<{
54
+ text: z.ZodString;
55
+ tone: z.ZodOptional<z.ZodEnum<["neutral", "success", "warning", "danger", "info"]>>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ text: string;
58
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
59
+ }, {
60
+ text: string;
61
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
62
+ }>, "many">>;
54
63
  }, "strip", z.ZodTypeAny, {
55
64
  value: string;
56
65
  label: string;
57
66
  short?: boolean | undefined;
67
+ parts?: {
68
+ text: string;
69
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
70
+ }[] | undefined;
58
71
  }, {
59
72
  value: string;
60
73
  label: string;
61
74
  short?: boolean | undefined;
75
+ parts?: {
76
+ text: string;
77
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
78
+ }[] | undefined;
62
79
  }>, "many">;
63
80
  }, "strip", z.ZodTypeAny, {
64
81
  type: "fields";
@@ -66,6 +83,10 @@ export declare const UiCardContentSchema: z.ZodObject<{
66
83
  value: string;
67
84
  label: string;
68
85
  short?: boolean | undefined;
86
+ parts?: {
87
+ text: string;
88
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
89
+ }[] | undefined;
69
90
  }[];
70
91
  }, {
71
92
  type: "fields";
@@ -73,6 +94,10 @@ export declare const UiCardContentSchema: z.ZodObject<{
73
94
  value: string;
74
95
  label: string;
75
96
  short?: boolean | undefined;
97
+ parts?: {
98
+ text: string;
99
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
100
+ }[] | undefined;
76
101
  }[];
77
102
  }>, z.ZodObject<{
78
103
  type: z.ZodLiteral<"image">;
@@ -146,17 +171,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
146
171
  type: z.ZodLiteral<"progress">;
147
172
  value: z.ZodOptional<z.ZodNumber>;
148
173
  label: z.ZodOptional<z.ZodString>;
149
- tone: z.ZodOptional<z.ZodEnum<["neutral", "success", "warning", "danger", "info"]>>;
150
174
  }, "strip", z.ZodTypeAny, {
151
175
  type: "progress";
152
176
  value?: number | undefined;
153
177
  label?: string | undefined;
154
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
155
178
  }, {
156
179
  type: "progress";
157
180
  value?: number | undefined;
158
181
  label?: string | undefined;
159
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
160
182
  }>, z.ZodObject<{
161
183
  type: z.ZodLiteral<"steps">;
162
184
  items: z.ZodArray<z.ZodObject<{
@@ -252,7 +274,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
252
274
  type: z.ZodLiteral<"avatar">;
253
275
  name: z.ZodString;
254
276
  initials: z.ZodOptional<z.ZodString>;
255
- color: z.ZodOptional<z.ZodString>;
256
277
  src: z.ZodOptional<z.ZodString>;
257
278
  subtitle: z.ZodOptional<z.ZodString>;
258
279
  status: z.ZodOptional<z.ZodEnum<["online", "away", "busy", "offline"]>>;
@@ -261,7 +282,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
261
282
  name: string;
262
283
  status?: "online" | "away" | "busy" | "offline" | undefined;
263
284
  initials?: string | undefined;
264
- color?: string | undefined;
265
285
  src?: string | undefined;
266
286
  subtitle?: string | undefined;
267
287
  }, {
@@ -269,7 +289,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
269
289
  name: string;
270
290
  status?: "online" | "away" | "busy" | "offline" | undefined;
271
291
  initials?: string | undefined;
272
- color?: string | undefined;
273
292
  src?: string | undefined;
274
293
  subtitle?: string | undefined;
275
294
  }>, z.ZodObject<{
@@ -277,17 +296,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
277
296
  people: z.ZodArray<z.ZodObject<{
278
297
  name: z.ZodString;
279
298
  initials: z.ZodOptional<z.ZodString>;
280
- color: z.ZodOptional<z.ZodString>;
281
299
  src: z.ZodOptional<z.ZodString>;
282
300
  }, "strip", z.ZodTypeAny, {
283
301
  name: string;
284
302
  initials?: string | undefined;
285
- color?: string | undefined;
286
303
  src?: string | undefined;
287
304
  }, {
288
305
  name: string;
289
306
  initials?: string | undefined;
290
- color?: string | undefined;
291
307
  src?: string | undefined;
292
308
  }>, "many">;
293
309
  max: z.ZodOptional<z.ZodNumber>;
@@ -297,7 +313,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
297
313
  people: {
298
314
  name: string;
299
315
  initials?: string | undefined;
300
- color?: string | undefined;
301
316
  src?: string | undefined;
302
317
  }[];
303
318
  label?: string | undefined;
@@ -307,7 +322,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
307
322
  people: {
308
323
  name: string;
309
324
  initials?: string | undefined;
310
- color?: string | undefined;
311
325
  src?: string | undefined;
312
326
  }[];
313
327
  label?: string | undefined;
@@ -364,14 +378,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
364
378
  type: "callout";
365
379
  text: string;
366
380
  title?: string | undefined;
367
- icon?: string | undefined;
368
381
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
382
+ icon?: string | undefined;
369
383
  }, {
370
384
  type: "callout";
371
385
  text: string;
372
386
  title?: string | undefined;
373
- icon?: string | undefined;
374
387
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
388
+ icon?: string | undefined;
375
389
  }>, z.ZodObject<{
376
390
  type: z.ZodLiteral<"entityRef">;
377
391
  label: z.ZodString;
@@ -381,14 +395,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
381
395
  }, "strip", z.ZodTypeAny, {
382
396
  type: "entityRef";
383
397
  label: string;
384
- url?: string | undefined;
385
398
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
399
+ url?: string | undefined;
386
400
  entity?: string | undefined;
387
401
  }, {
388
402
  type: "entityRef";
389
403
  label: string;
390
- url?: string | undefined;
391
404
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
405
+ url?: string | undefined;
392
406
  entity?: string | undefined;
393
407
  }>, z.ZodObject<{
394
408
  type: z.ZodLiteral<"kanban">;
@@ -414,49 +428,49 @@ export declare const UiCardContentSchema: z.ZodObject<{
414
428
  }, "strip", z.ZodTypeAny, {
415
429
  title: string;
416
430
  id: string;
431
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
417
432
  badge?: {
418
433
  label: string;
419
434
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
420
435
  } | undefined;
421
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
422
436
  meta?: string[] | undefined;
423
437
  }, {
424
438
  title: string;
425
439
  id: string;
440
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
426
441
  badge?: {
427
442
  label: string;
428
443
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
429
444
  } | undefined;
430
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
431
445
  meta?: string[] | undefined;
432
446
  }>, "many">;
433
447
  }, "strip", z.ZodTypeAny, {
434
448
  title: string;
435
- id: string;
436
449
  cards: {
437
450
  title: string;
438
451
  id: string;
452
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
439
453
  badge?: {
440
454
  label: string;
441
455
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
442
456
  } | undefined;
443
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
444
457
  meta?: string[] | undefined;
445
458
  }[];
459
+ id: string;
446
460
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
447
461
  }, {
448
462
  title: string;
449
- id: string;
450
463
  cards: {
451
464
  title: string;
452
465
  id: string;
466
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
453
467
  badge?: {
454
468
  label: string;
455
469
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
456
470
  } | undefined;
457
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
458
471
  meta?: string[] | undefined;
459
472
  }[];
473
+ id: string;
460
474
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
461
475
  }>, "many">;
462
476
  caption: z.ZodOptional<z.ZodString>;
@@ -464,17 +478,17 @@ export declare const UiCardContentSchema: z.ZodObject<{
464
478
  type: "kanban";
465
479
  columns: {
466
480
  title: string;
467
- id: string;
468
481
  cards: {
469
482
  title: string;
470
483
  id: string;
484
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
471
485
  badge?: {
472
486
  label: string;
473
487
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
474
488
  } | undefined;
475
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
476
489
  meta?: string[] | undefined;
477
490
  }[];
491
+ id: string;
478
492
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
479
493
  }[];
480
494
  caption?: string | undefined;
@@ -482,17 +496,17 @@ export declare const UiCardContentSchema: z.ZodObject<{
482
496
  type: "kanban";
483
497
  columns: {
484
498
  title: string;
485
- id: string;
486
499
  cards: {
487
500
  title: string;
488
501
  id: string;
502
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
489
503
  badge?: {
490
504
  label: string;
491
505
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
492
506
  } | undefined;
493
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
494
507
  meta?: string[] | undefined;
495
508
  }[];
509
+ id: string;
496
510
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
497
511
  }[];
498
512
  caption?: string | undefined;
@@ -692,32 +706,40 @@ export declare const UiCardContentSchema: z.ZodObject<{
692
706
  options: z.ZodArray<z.ZodObject<{
693
707
  value: z.ZodString;
694
708
  label: z.ZodString;
709
+ hint: z.ZodOptional<z.ZodString>;
695
710
  }, "strip", z.ZodTypeAny, {
696
711
  value: string;
697
712
  label: string;
713
+ hint?: string | undefined;
698
714
  }, {
699
715
  value: string;
700
716
  label: string;
717
+ hint?: string | undefined;
701
718
  }>, "many">;
702
719
  value: z.ZodOptional<z.ZodString>;
720
+ style: z.ZodOptional<z.ZodEnum<["cards", "segmented"]>>;
703
721
  }, "strip", z.ZodTypeAny, {
704
722
  options: {
705
723
  value: string;
706
724
  label: string;
725
+ hint?: string | undefined;
707
726
  }[];
708
727
  type: "radio";
709
728
  name: string;
710
729
  value?: string | undefined;
711
730
  label?: string | undefined;
731
+ style?: "cards" | "segmented" | undefined;
712
732
  }, {
713
733
  options: {
714
734
  value: string;
715
735
  label: string;
736
+ hint?: string | undefined;
716
737
  }[];
717
738
  type: "radio";
718
739
  name: string;
719
740
  value?: string | undefined;
720
741
  label?: string | undefined;
742
+ style?: "cards" | "segmented" | undefined;
721
743
  }>, z.ZodObject<{
722
744
  type: z.ZodLiteral<"select">;
723
745
  name: z.ZodString;
@@ -772,6 +794,30 @@ export declare const UiCardContentSchema: z.ZodObject<{
772
794
  label: string;
773
795
  name: string;
774
796
  checked?: boolean | undefined;
797
+ }>, z.ZodObject<{
798
+ type: z.ZodLiteral<"location">;
799
+ name: z.ZodString;
800
+ label: z.ZodOptional<z.ZodString>;
801
+ purpose: z.ZodOptional<z.ZodString>;
802
+ required: z.ZodOptional<z.ZodBoolean>;
803
+ precise: z.ZodOptional<z.ZodBoolean>;
804
+ buttonText: z.ZodOptional<z.ZodString>;
805
+ }, "strip", z.ZodTypeAny, {
806
+ type: "location";
807
+ name: string;
808
+ label?: string | undefined;
809
+ required?: boolean | undefined;
810
+ purpose?: string | undefined;
811
+ precise?: boolean | undefined;
812
+ buttonText?: string | undefined;
813
+ }, {
814
+ type: "location";
815
+ name: string;
816
+ label?: string | undefined;
817
+ required?: boolean | undefined;
818
+ purpose?: string | undefined;
819
+ precise?: boolean | undefined;
820
+ buttonText?: string | undefined;
775
821
  }>, z.ZodObject<{
776
822
  type: z.ZodLiteral<"button">;
777
823
  action_id: z.ZodString;
@@ -795,6 +841,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
795
841
  cancel?: string | undefined;
796
842
  }>>;
797
843
  disabled: z.ZodOptional<z.ZodBoolean>;
844
+ hidden_for: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
798
845
  }, "strip", z.ZodTypeAny, {
799
846
  type: "button";
800
847
  text: string;
@@ -808,6 +855,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
808
855
  cancel?: string | undefined;
809
856
  } | undefined;
810
857
  disabled?: boolean | undefined;
858
+ hidden_for?: string[] | undefined;
811
859
  }, {
812
860
  type: "button";
813
861
  text: string;
@@ -821,6 +869,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
821
869
  cancel?: string | undefined;
822
870
  } | undefined;
823
871
  disabled?: boolean | undefined;
872
+ hidden_for?: string[] | undefined;
824
873
  }>, z.ZodObject<{
825
874
  type: z.ZodLiteral<"linkButton">;
826
875
  text: z.ZodString;
@@ -864,6 +913,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
864
913
  cancel?: string | undefined;
865
914
  }>>;
866
915
  disabled: z.ZodOptional<z.ZodBoolean>;
916
+ hidden_for: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
867
917
  }, "strip", z.ZodTypeAny, {
868
918
  type: "button";
869
919
  text: string;
@@ -877,6 +927,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
877
927
  cancel?: string | undefined;
878
928
  } | undefined;
879
929
  disabled?: boolean | undefined;
930
+ hidden_for?: string[] | undefined;
880
931
  }, {
881
932
  type: "button";
882
933
  text: string;
@@ -890,6 +941,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
890
941
  cancel?: string | undefined;
891
942
  } | undefined;
892
943
  disabled?: boolean | undefined;
944
+ hidden_for?: string[] | undefined;
893
945
  }>, z.ZodObject<{
894
946
  type: z.ZodLiteral<"linkButton">;
895
947
  text: z.ZodString;
@@ -924,6 +976,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
924
976
  cancel?: string | undefined;
925
977
  } | undefined;
926
978
  disabled?: boolean | undefined;
979
+ hidden_for?: string[] | undefined;
927
980
  } | {
928
981
  type: "linkButton";
929
982
  text: string;
@@ -946,6 +999,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
946
999
  cancel?: string | undefined;
947
1000
  } | undefined;
948
1001
  disabled?: boolean | undefined;
1002
+ hidden_for?: string[] | undefined;
949
1003
  } | {
950
1004
  type: "linkButton";
951
1005
  text: string;
@@ -1078,14 +1132,32 @@ export declare const UiCardContentSchema: z.ZodObject<{
1078
1132
  label: z.ZodString;
1079
1133
  value: z.ZodString;
1080
1134
  short: z.ZodOptional<z.ZodBoolean>;
1135
+ parts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1136
+ text: z.ZodString;
1137
+ tone: z.ZodOptional<z.ZodEnum<["neutral", "success", "warning", "danger", "info"]>>;
1138
+ }, "strip", z.ZodTypeAny, {
1139
+ text: string;
1140
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1141
+ }, {
1142
+ text: string;
1143
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1144
+ }>, "many">>;
1081
1145
  }, "strip", z.ZodTypeAny, {
1082
1146
  value: string;
1083
1147
  label: string;
1084
1148
  short?: boolean | undefined;
1149
+ parts?: {
1150
+ text: string;
1151
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1152
+ }[] | undefined;
1085
1153
  }, {
1086
1154
  value: string;
1087
1155
  label: string;
1088
1156
  short?: boolean | undefined;
1157
+ parts?: {
1158
+ text: string;
1159
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1160
+ }[] | undefined;
1089
1161
  }>, "many">;
1090
1162
  }, "strip", z.ZodTypeAny, {
1091
1163
  type: "fields";
@@ -1093,6 +1165,10 @@ export declare const UiCardContentSchema: z.ZodObject<{
1093
1165
  value: string;
1094
1166
  label: string;
1095
1167
  short?: boolean | undefined;
1168
+ parts?: {
1169
+ text: string;
1170
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1171
+ }[] | undefined;
1096
1172
  }[];
1097
1173
  }, {
1098
1174
  type: "fields";
@@ -1100,6 +1176,10 @@ export declare const UiCardContentSchema: z.ZodObject<{
1100
1176
  value: string;
1101
1177
  label: string;
1102
1178
  short?: boolean | undefined;
1179
+ parts?: {
1180
+ text: string;
1181
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1182
+ }[] | undefined;
1103
1183
  }[];
1104
1184
  }>, z.ZodObject<{
1105
1185
  type: z.ZodLiteral<"image">;
@@ -1173,17 +1253,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
1173
1253
  type: z.ZodLiteral<"progress">;
1174
1254
  value: z.ZodOptional<z.ZodNumber>;
1175
1255
  label: z.ZodOptional<z.ZodString>;
1176
- tone: z.ZodOptional<z.ZodEnum<["neutral", "success", "warning", "danger", "info"]>>;
1177
1256
  }, "strip", z.ZodTypeAny, {
1178
1257
  type: "progress";
1179
1258
  value?: number | undefined;
1180
1259
  label?: string | undefined;
1181
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1182
1260
  }, {
1183
1261
  type: "progress";
1184
1262
  value?: number | undefined;
1185
1263
  label?: string | undefined;
1186
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1187
1264
  }>, z.ZodObject<{
1188
1265
  type: z.ZodLiteral<"steps">;
1189
1266
  items: z.ZodArray<z.ZodObject<{
@@ -1279,7 +1356,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
1279
1356
  type: z.ZodLiteral<"avatar">;
1280
1357
  name: z.ZodString;
1281
1358
  initials: z.ZodOptional<z.ZodString>;
1282
- color: z.ZodOptional<z.ZodString>;
1283
1359
  src: z.ZodOptional<z.ZodString>;
1284
1360
  subtitle: z.ZodOptional<z.ZodString>;
1285
1361
  status: z.ZodOptional<z.ZodEnum<["online", "away", "busy", "offline"]>>;
@@ -1288,7 +1364,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
1288
1364
  name: string;
1289
1365
  status?: "online" | "away" | "busy" | "offline" | undefined;
1290
1366
  initials?: string | undefined;
1291
- color?: string | undefined;
1292
1367
  src?: string | undefined;
1293
1368
  subtitle?: string | undefined;
1294
1369
  }, {
@@ -1296,7 +1371,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
1296
1371
  name: string;
1297
1372
  status?: "online" | "away" | "busy" | "offline" | undefined;
1298
1373
  initials?: string | undefined;
1299
- color?: string | undefined;
1300
1374
  src?: string | undefined;
1301
1375
  subtitle?: string | undefined;
1302
1376
  }>, z.ZodObject<{
@@ -1304,17 +1378,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
1304
1378
  people: z.ZodArray<z.ZodObject<{
1305
1379
  name: z.ZodString;
1306
1380
  initials: z.ZodOptional<z.ZodString>;
1307
- color: z.ZodOptional<z.ZodString>;
1308
1381
  src: z.ZodOptional<z.ZodString>;
1309
1382
  }, "strip", z.ZodTypeAny, {
1310
1383
  name: string;
1311
1384
  initials?: string | undefined;
1312
- color?: string | undefined;
1313
1385
  src?: string | undefined;
1314
1386
  }, {
1315
1387
  name: string;
1316
1388
  initials?: string | undefined;
1317
- color?: string | undefined;
1318
1389
  src?: string | undefined;
1319
1390
  }>, "many">;
1320
1391
  max: z.ZodOptional<z.ZodNumber>;
@@ -1324,7 +1395,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
1324
1395
  people: {
1325
1396
  name: string;
1326
1397
  initials?: string | undefined;
1327
- color?: string | undefined;
1328
1398
  src?: string | undefined;
1329
1399
  }[];
1330
1400
  label?: string | undefined;
@@ -1334,7 +1404,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
1334
1404
  people: {
1335
1405
  name: string;
1336
1406
  initials?: string | undefined;
1337
- color?: string | undefined;
1338
1407
  src?: string | undefined;
1339
1408
  }[];
1340
1409
  label?: string | undefined;
@@ -1391,14 +1460,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
1391
1460
  type: "callout";
1392
1461
  text: string;
1393
1462
  title?: string | undefined;
1394
- icon?: string | undefined;
1395
1463
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1464
+ icon?: string | undefined;
1396
1465
  }, {
1397
1466
  type: "callout";
1398
1467
  text: string;
1399
1468
  title?: string | undefined;
1400
- icon?: string | undefined;
1401
1469
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1470
+ icon?: string | undefined;
1402
1471
  }>, z.ZodObject<{
1403
1472
  type: z.ZodLiteral<"entityRef">;
1404
1473
  label: z.ZodString;
@@ -1408,14 +1477,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
1408
1477
  }, "strip", z.ZodTypeAny, {
1409
1478
  type: "entityRef";
1410
1479
  label: string;
1411
- url?: string | undefined;
1412
1480
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1481
+ url?: string | undefined;
1413
1482
  entity?: string | undefined;
1414
1483
  }, {
1415
1484
  type: "entityRef";
1416
1485
  label: string;
1417
- url?: string | undefined;
1418
1486
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1487
+ url?: string | undefined;
1419
1488
  entity?: string | undefined;
1420
1489
  }>, z.ZodObject<{
1421
1490
  type: z.ZodLiteral<"kanban">;
@@ -1441,49 +1510,49 @@ export declare const UiCardContentSchema: z.ZodObject<{
1441
1510
  }, "strip", z.ZodTypeAny, {
1442
1511
  title: string;
1443
1512
  id: string;
1513
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1444
1514
  badge?: {
1445
1515
  label: string;
1446
1516
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1447
1517
  } | undefined;
1448
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1449
1518
  meta?: string[] | undefined;
1450
1519
  }, {
1451
1520
  title: string;
1452
1521
  id: string;
1522
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1453
1523
  badge?: {
1454
1524
  label: string;
1455
1525
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1456
1526
  } | undefined;
1457
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1458
1527
  meta?: string[] | undefined;
1459
1528
  }>, "many">;
1460
1529
  }, "strip", z.ZodTypeAny, {
1461
1530
  title: string;
1462
- id: string;
1463
1531
  cards: {
1464
1532
  title: string;
1465
1533
  id: string;
1534
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1466
1535
  badge?: {
1467
1536
  label: string;
1468
1537
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1469
1538
  } | undefined;
1470
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1471
1539
  meta?: string[] | undefined;
1472
1540
  }[];
1541
+ id: string;
1473
1542
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1474
1543
  }, {
1475
1544
  title: string;
1476
- id: string;
1477
1545
  cards: {
1478
1546
  title: string;
1479
1547
  id: string;
1548
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1480
1549
  badge?: {
1481
1550
  label: string;
1482
1551
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1483
1552
  } | undefined;
1484
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1485
1553
  meta?: string[] | undefined;
1486
1554
  }[];
1555
+ id: string;
1487
1556
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1488
1557
  }>, "many">;
1489
1558
  caption: z.ZodOptional<z.ZodString>;
@@ -1491,17 +1560,17 @@ export declare const UiCardContentSchema: z.ZodObject<{
1491
1560
  type: "kanban";
1492
1561
  columns: {
1493
1562
  title: string;
1494
- id: string;
1495
1563
  cards: {
1496
1564
  title: string;
1497
1565
  id: string;
1566
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1498
1567
  badge?: {
1499
1568
  label: string;
1500
1569
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1501
1570
  } | undefined;
1502
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1503
1571
  meta?: string[] | undefined;
1504
1572
  }[];
1573
+ id: string;
1505
1574
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1506
1575
  }[];
1507
1576
  caption?: string | undefined;
@@ -1509,17 +1578,17 @@ export declare const UiCardContentSchema: z.ZodObject<{
1509
1578
  type: "kanban";
1510
1579
  columns: {
1511
1580
  title: string;
1512
- id: string;
1513
1581
  cards: {
1514
1582
  title: string;
1515
1583
  id: string;
1584
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1516
1585
  badge?: {
1517
1586
  label: string;
1518
1587
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1519
1588
  } | undefined;
1520
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1521
1589
  meta?: string[] | undefined;
1522
1590
  }[];
1591
+ id: string;
1523
1592
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
1524
1593
  }[];
1525
1594
  caption?: string | undefined;
@@ -1719,32 +1788,40 @@ export declare const UiCardContentSchema: z.ZodObject<{
1719
1788
  options: z.ZodArray<z.ZodObject<{
1720
1789
  value: z.ZodString;
1721
1790
  label: z.ZodString;
1791
+ hint: z.ZodOptional<z.ZodString>;
1722
1792
  }, "strip", z.ZodTypeAny, {
1723
1793
  value: string;
1724
1794
  label: string;
1795
+ hint?: string | undefined;
1725
1796
  }, {
1726
1797
  value: string;
1727
1798
  label: string;
1799
+ hint?: string | undefined;
1728
1800
  }>, "many">;
1729
1801
  value: z.ZodOptional<z.ZodString>;
1802
+ style: z.ZodOptional<z.ZodEnum<["cards", "segmented"]>>;
1730
1803
  }, "strip", z.ZodTypeAny, {
1731
1804
  options: {
1732
1805
  value: string;
1733
1806
  label: string;
1807
+ hint?: string | undefined;
1734
1808
  }[];
1735
1809
  type: "radio";
1736
1810
  name: string;
1737
1811
  value?: string | undefined;
1738
1812
  label?: string | undefined;
1813
+ style?: "cards" | "segmented" | undefined;
1739
1814
  }, {
1740
1815
  options: {
1741
1816
  value: string;
1742
1817
  label: string;
1818
+ hint?: string | undefined;
1743
1819
  }[];
1744
1820
  type: "radio";
1745
1821
  name: string;
1746
1822
  value?: string | undefined;
1747
1823
  label?: string | undefined;
1824
+ style?: "cards" | "segmented" | undefined;
1748
1825
  }>, z.ZodObject<{
1749
1826
  type: z.ZodLiteral<"select">;
1750
1827
  name: z.ZodString;
@@ -1799,6 +1876,30 @@ export declare const UiCardContentSchema: z.ZodObject<{
1799
1876
  label: string;
1800
1877
  name: string;
1801
1878
  checked?: boolean | undefined;
1879
+ }>, z.ZodObject<{
1880
+ type: z.ZodLiteral<"location">;
1881
+ name: z.ZodString;
1882
+ label: z.ZodOptional<z.ZodString>;
1883
+ purpose: z.ZodOptional<z.ZodString>;
1884
+ required: z.ZodOptional<z.ZodBoolean>;
1885
+ precise: z.ZodOptional<z.ZodBoolean>;
1886
+ buttonText: z.ZodOptional<z.ZodString>;
1887
+ }, "strip", z.ZodTypeAny, {
1888
+ type: "location";
1889
+ name: string;
1890
+ label?: string | undefined;
1891
+ required?: boolean | undefined;
1892
+ purpose?: string | undefined;
1893
+ precise?: boolean | undefined;
1894
+ buttonText?: string | undefined;
1895
+ }, {
1896
+ type: "location";
1897
+ name: string;
1898
+ label?: string | undefined;
1899
+ required?: boolean | undefined;
1900
+ purpose?: string | undefined;
1901
+ precise?: boolean | undefined;
1902
+ buttonText?: string | undefined;
1802
1903
  }>, z.ZodObject<{
1803
1904
  type: z.ZodLiteral<"button">;
1804
1905
  action_id: z.ZodString;
@@ -1822,6 +1923,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
1822
1923
  cancel?: string | undefined;
1823
1924
  }>>;
1824
1925
  disabled: z.ZodOptional<z.ZodBoolean>;
1926
+ hidden_for: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1825
1927
  }, "strip", z.ZodTypeAny, {
1826
1928
  type: "button";
1827
1929
  text: string;
@@ -1835,6 +1937,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
1835
1937
  cancel?: string | undefined;
1836
1938
  } | undefined;
1837
1939
  disabled?: boolean | undefined;
1940
+ hidden_for?: string[] | undefined;
1838
1941
  }, {
1839
1942
  type: "button";
1840
1943
  text: string;
@@ -1848,6 +1951,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
1848
1951
  cancel?: string | undefined;
1849
1952
  } | undefined;
1850
1953
  disabled?: boolean | undefined;
1954
+ hidden_for?: string[] | undefined;
1851
1955
  }>, z.ZodObject<{
1852
1956
  type: z.ZodLiteral<"linkButton">;
1853
1957
  text: z.ZodString;
@@ -1891,6 +1995,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
1891
1995
  cancel?: string | undefined;
1892
1996
  }>>;
1893
1997
  disabled: z.ZodOptional<z.ZodBoolean>;
1998
+ hidden_for: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1894
1999
  }, "strip", z.ZodTypeAny, {
1895
2000
  type: "button";
1896
2001
  text: string;
@@ -1904,6 +2009,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
1904
2009
  cancel?: string | undefined;
1905
2010
  } | undefined;
1906
2011
  disabled?: boolean | undefined;
2012
+ hidden_for?: string[] | undefined;
1907
2013
  }, {
1908
2014
  type: "button";
1909
2015
  text: string;
@@ -1917,6 +2023,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
1917
2023
  cancel?: string | undefined;
1918
2024
  } | undefined;
1919
2025
  disabled?: boolean | undefined;
2026
+ hidden_for?: string[] | undefined;
1920
2027
  }>, z.ZodObject<{
1921
2028
  type: z.ZodLiteral<"linkButton">;
1922
2029
  text: z.ZodString;
@@ -1951,6 +2058,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
1951
2058
  cancel?: string | undefined;
1952
2059
  } | undefined;
1953
2060
  disabled?: boolean | undefined;
2061
+ hidden_for?: string[] | undefined;
1954
2062
  } | {
1955
2063
  type: "linkButton";
1956
2064
  text: string;
@@ -1973,6 +2081,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
1973
2081
  cancel?: string | undefined;
1974
2082
  } | undefined;
1975
2083
  disabled?: boolean | undefined;
2084
+ hidden_for?: string[] | undefined;
1976
2085
  } | {
1977
2086
  type: "linkButton";
1978
2087
  text: string;
@@ -2080,6 +2189,10 @@ export declare const UiCardContentSchema: z.ZodObject<{
2080
2189
  value: string;
2081
2190
  label: string;
2082
2191
  short?: boolean | undefined;
2192
+ parts?: {
2193
+ text: string;
2194
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2195
+ }[] | undefined;
2083
2196
  }[];
2084
2197
  } | {
2085
2198
  type: "image";
@@ -2131,11 +2244,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
2131
2244
  options: {
2132
2245
  value: string;
2133
2246
  label: string;
2247
+ hint?: string | undefined;
2134
2248
  }[];
2135
2249
  type: "radio";
2136
2250
  name: string;
2137
2251
  value?: string | undefined;
2138
2252
  label?: string | undefined;
2253
+ style?: "cards" | "segmented" | undefined;
2139
2254
  } | {
2140
2255
  options: {
2141
2256
  value: string;
@@ -2152,6 +2267,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
2152
2267
  label: string;
2153
2268
  name: string;
2154
2269
  checked?: boolean | undefined;
2270
+ } | {
2271
+ type: "location";
2272
+ name: string;
2273
+ label?: string | undefined;
2274
+ required?: boolean | undefined;
2275
+ purpose?: string | undefined;
2276
+ precise?: boolean | undefined;
2277
+ buttonText?: string | undefined;
2155
2278
  } | {
2156
2279
  type: "button";
2157
2280
  text: string;
@@ -2165,6 +2288,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
2165
2288
  cancel?: string | undefined;
2166
2289
  } | undefined;
2167
2290
  disabled?: boolean | undefined;
2291
+ hidden_for?: string[] | undefined;
2168
2292
  } | {
2169
2293
  type: "linkButton";
2170
2294
  text: string;
@@ -2186,6 +2310,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
2186
2310
  cancel?: string | undefined;
2187
2311
  } | undefined;
2188
2312
  disabled?: boolean | undefined;
2313
+ hidden_for?: string[] | undefined;
2189
2314
  } | {
2190
2315
  type: "linkButton";
2191
2316
  text: string;
@@ -2213,7 +2338,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
2213
2338
  type: "progress";
2214
2339
  value?: number | undefined;
2215
2340
  label?: string | undefined;
2216
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2217
2341
  } | {
2218
2342
  type: "steps";
2219
2343
  items: {
@@ -2262,7 +2386,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
2262
2386
  name: string;
2263
2387
  status?: "online" | "away" | "busy" | "offline" | undefined;
2264
2388
  initials?: string | undefined;
2265
- color?: string | undefined;
2266
2389
  src?: string | undefined;
2267
2390
  subtitle?: string | undefined;
2268
2391
  } | {
@@ -2270,7 +2393,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
2270
2393
  people: {
2271
2394
  name: string;
2272
2395
  initials?: string | undefined;
2273
- color?: string | undefined;
2274
2396
  src?: string | undefined;
2275
2397
  }[];
2276
2398
  label?: string | undefined;
@@ -2293,29 +2415,29 @@ export declare const UiCardContentSchema: z.ZodObject<{
2293
2415
  type: "callout";
2294
2416
  text: string;
2295
2417
  title?: string | undefined;
2296
- icon?: string | undefined;
2297
2418
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2419
+ icon?: string | undefined;
2298
2420
  } | {
2299
2421
  type: "entityRef";
2300
2422
  label: string;
2301
- url?: string | undefined;
2302
2423
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2424
+ url?: string | undefined;
2303
2425
  entity?: string | undefined;
2304
2426
  } | {
2305
2427
  type: "kanban";
2306
2428
  columns: {
2307
2429
  title: string;
2308
- id: string;
2309
2430
  cards: {
2310
2431
  title: string;
2311
2432
  id: string;
2433
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2312
2434
  badge?: {
2313
2435
  label: string;
2314
2436
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2315
2437
  } | undefined;
2316
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2317
2438
  meta?: string[] | undefined;
2318
2439
  }[];
2440
+ id: string;
2319
2441
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2320
2442
  }[];
2321
2443
  caption?: string | undefined;
@@ -2357,6 +2479,10 @@ export declare const UiCardContentSchema: z.ZodObject<{
2357
2479
  value: string;
2358
2480
  label: string;
2359
2481
  short?: boolean | undefined;
2482
+ parts?: {
2483
+ text: string;
2484
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2485
+ }[] | undefined;
2360
2486
  }[];
2361
2487
  } | {
2362
2488
  type: "image";
@@ -2408,11 +2534,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
2408
2534
  options: {
2409
2535
  value: string;
2410
2536
  label: string;
2537
+ hint?: string | undefined;
2411
2538
  }[];
2412
2539
  type: "radio";
2413
2540
  name: string;
2414
2541
  value?: string | undefined;
2415
2542
  label?: string | undefined;
2543
+ style?: "cards" | "segmented" | undefined;
2416
2544
  } | {
2417
2545
  options: {
2418
2546
  value: string;
@@ -2429,6 +2557,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
2429
2557
  label: string;
2430
2558
  name: string;
2431
2559
  checked?: boolean | undefined;
2560
+ } | {
2561
+ type: "location";
2562
+ name: string;
2563
+ label?: string | undefined;
2564
+ required?: boolean | undefined;
2565
+ purpose?: string | undefined;
2566
+ precise?: boolean | undefined;
2567
+ buttonText?: string | undefined;
2432
2568
  } | {
2433
2569
  type: "button";
2434
2570
  text: string;
@@ -2442,6 +2578,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
2442
2578
  cancel?: string | undefined;
2443
2579
  } | undefined;
2444
2580
  disabled?: boolean | undefined;
2581
+ hidden_for?: string[] | undefined;
2445
2582
  } | {
2446
2583
  type: "linkButton";
2447
2584
  text: string;
@@ -2463,6 +2600,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
2463
2600
  cancel?: string | undefined;
2464
2601
  } | undefined;
2465
2602
  disabled?: boolean | undefined;
2603
+ hidden_for?: string[] | undefined;
2466
2604
  } | {
2467
2605
  type: "linkButton";
2468
2606
  text: string;
@@ -2490,7 +2628,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
2490
2628
  type: "progress";
2491
2629
  value?: number | undefined;
2492
2630
  label?: string | undefined;
2493
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2494
2631
  } | {
2495
2632
  type: "steps";
2496
2633
  items: {
@@ -2539,7 +2676,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
2539
2676
  name: string;
2540
2677
  status?: "online" | "away" | "busy" | "offline" | undefined;
2541
2678
  initials?: string | undefined;
2542
- color?: string | undefined;
2543
2679
  src?: string | undefined;
2544
2680
  subtitle?: string | undefined;
2545
2681
  } | {
@@ -2547,7 +2683,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
2547
2683
  people: {
2548
2684
  name: string;
2549
2685
  initials?: string | undefined;
2550
- color?: string | undefined;
2551
2686
  src?: string | undefined;
2552
2687
  }[];
2553
2688
  label?: string | undefined;
@@ -2570,29 +2705,29 @@ export declare const UiCardContentSchema: z.ZodObject<{
2570
2705
  type: "callout";
2571
2706
  text: string;
2572
2707
  title?: string | undefined;
2573
- icon?: string | undefined;
2574
2708
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2709
+ icon?: string | undefined;
2575
2710
  } | {
2576
2711
  type: "entityRef";
2577
2712
  label: string;
2578
- url?: string | undefined;
2579
2713
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2714
+ url?: string | undefined;
2580
2715
  entity?: string | undefined;
2581
2716
  } | {
2582
2717
  type: "kanban";
2583
2718
  columns: {
2584
2719
  title: string;
2585
- id: string;
2586
2720
  cards: {
2587
2721
  title: string;
2588
2722
  id: string;
2723
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2589
2724
  badge?: {
2590
2725
  label: string;
2591
2726
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2592
2727
  } | undefined;
2593
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2594
2728
  meta?: string[] | undefined;
2595
2729
  }[];
2730
+ id: string;
2596
2731
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2597
2732
  }[];
2598
2733
  caption?: string | undefined;
@@ -2679,6 +2814,10 @@ export declare const UiCardContentSchema: z.ZodObject<{
2679
2814
  value: string;
2680
2815
  label: string;
2681
2816
  short?: boolean | undefined;
2817
+ parts?: {
2818
+ text: string;
2819
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2820
+ }[] | undefined;
2682
2821
  }[];
2683
2822
  } | {
2684
2823
  type: "image";
@@ -2730,11 +2869,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
2730
2869
  options: {
2731
2870
  value: string;
2732
2871
  label: string;
2872
+ hint?: string | undefined;
2733
2873
  }[];
2734
2874
  type: "radio";
2735
2875
  name: string;
2736
2876
  value?: string | undefined;
2737
2877
  label?: string | undefined;
2878
+ style?: "cards" | "segmented" | undefined;
2738
2879
  } | {
2739
2880
  options: {
2740
2881
  value: string;
@@ -2751,6 +2892,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
2751
2892
  label: string;
2752
2893
  name: string;
2753
2894
  checked?: boolean | undefined;
2895
+ } | {
2896
+ type: "location";
2897
+ name: string;
2898
+ label?: string | undefined;
2899
+ required?: boolean | undefined;
2900
+ purpose?: string | undefined;
2901
+ precise?: boolean | undefined;
2902
+ buttonText?: string | undefined;
2754
2903
  } | {
2755
2904
  type: "button";
2756
2905
  text: string;
@@ -2764,6 +2913,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
2764
2913
  cancel?: string | undefined;
2765
2914
  } | undefined;
2766
2915
  disabled?: boolean | undefined;
2916
+ hidden_for?: string[] | undefined;
2767
2917
  } | {
2768
2918
  type: "linkButton";
2769
2919
  text: string;
@@ -2785,6 +2935,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
2785
2935
  cancel?: string | undefined;
2786
2936
  } | undefined;
2787
2937
  disabled?: boolean | undefined;
2938
+ hidden_for?: string[] | undefined;
2788
2939
  } | {
2789
2940
  type: "linkButton";
2790
2941
  text: string;
@@ -2812,7 +2963,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
2812
2963
  type: "progress";
2813
2964
  value?: number | undefined;
2814
2965
  label?: string | undefined;
2815
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2816
2966
  } | {
2817
2967
  type: "steps";
2818
2968
  items: {
@@ -2861,7 +3011,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
2861
3011
  name: string;
2862
3012
  status?: "online" | "away" | "busy" | "offline" | undefined;
2863
3013
  initials?: string | undefined;
2864
- color?: string | undefined;
2865
3014
  src?: string | undefined;
2866
3015
  subtitle?: string | undefined;
2867
3016
  } | {
@@ -2869,7 +3018,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
2869
3018
  people: {
2870
3019
  name: string;
2871
3020
  initials?: string | undefined;
2872
- color?: string | undefined;
2873
3021
  src?: string | undefined;
2874
3022
  }[];
2875
3023
  label?: string | undefined;
@@ -2892,29 +3040,29 @@ export declare const UiCardContentSchema: z.ZodObject<{
2892
3040
  type: "callout";
2893
3041
  text: string;
2894
3042
  title?: string | undefined;
2895
- icon?: string | undefined;
2896
3043
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3044
+ icon?: string | undefined;
2897
3045
  } | {
2898
3046
  type: "entityRef";
2899
3047
  label: string;
2900
- url?: string | undefined;
2901
3048
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3049
+ url?: string | undefined;
2902
3050
  entity?: string | undefined;
2903
3051
  } | {
2904
3052
  type: "kanban";
2905
3053
  columns: {
2906
3054
  title: string;
2907
- id: string;
2908
3055
  cards: {
2909
3056
  title: string;
2910
3057
  id: string;
3058
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2911
3059
  badge?: {
2912
3060
  label: string;
2913
3061
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2914
3062
  } | undefined;
2915
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2916
3063
  meta?: string[] | undefined;
2917
3064
  }[];
3065
+ id: string;
2918
3066
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
2919
3067
  }[];
2920
3068
  caption?: string | undefined;
@@ -2972,6 +3120,10 @@ export declare const UiCardContentSchema: z.ZodObject<{
2972
3120
  value: string;
2973
3121
  label: string;
2974
3122
  short?: boolean | undefined;
3123
+ parts?: {
3124
+ text: string;
3125
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3126
+ }[] | undefined;
2975
3127
  }[];
2976
3128
  } | {
2977
3129
  type: "image";
@@ -3023,11 +3175,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
3023
3175
  options: {
3024
3176
  value: string;
3025
3177
  label: string;
3178
+ hint?: string | undefined;
3026
3179
  }[];
3027
3180
  type: "radio";
3028
3181
  name: string;
3029
3182
  value?: string | undefined;
3030
3183
  label?: string | undefined;
3184
+ style?: "cards" | "segmented" | undefined;
3031
3185
  } | {
3032
3186
  options: {
3033
3187
  value: string;
@@ -3044,6 +3198,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
3044
3198
  label: string;
3045
3199
  name: string;
3046
3200
  checked?: boolean | undefined;
3201
+ } | {
3202
+ type: "location";
3203
+ name: string;
3204
+ label?: string | undefined;
3205
+ required?: boolean | undefined;
3206
+ purpose?: string | undefined;
3207
+ precise?: boolean | undefined;
3208
+ buttonText?: string | undefined;
3047
3209
  } | {
3048
3210
  type: "button";
3049
3211
  text: string;
@@ -3057,6 +3219,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
3057
3219
  cancel?: string | undefined;
3058
3220
  } | undefined;
3059
3221
  disabled?: boolean | undefined;
3222
+ hidden_for?: string[] | undefined;
3060
3223
  } | {
3061
3224
  type: "linkButton";
3062
3225
  text: string;
@@ -3078,6 +3241,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
3078
3241
  cancel?: string | undefined;
3079
3242
  } | undefined;
3080
3243
  disabled?: boolean | undefined;
3244
+ hidden_for?: string[] | undefined;
3081
3245
  } | {
3082
3246
  type: "linkButton";
3083
3247
  text: string;
@@ -3105,7 +3269,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
3105
3269
  type: "progress";
3106
3270
  value?: number | undefined;
3107
3271
  label?: string | undefined;
3108
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3109
3272
  } | {
3110
3273
  type: "steps";
3111
3274
  items: {
@@ -3154,7 +3317,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
3154
3317
  name: string;
3155
3318
  status?: "online" | "away" | "busy" | "offline" | undefined;
3156
3319
  initials?: string | undefined;
3157
- color?: string | undefined;
3158
3320
  src?: string | undefined;
3159
3321
  subtitle?: string | undefined;
3160
3322
  } | {
@@ -3162,7 +3324,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
3162
3324
  people: {
3163
3325
  name: string;
3164
3326
  initials?: string | undefined;
3165
- color?: string | undefined;
3166
3327
  src?: string | undefined;
3167
3328
  }[];
3168
3329
  label?: string | undefined;
@@ -3185,29 +3346,29 @@ export declare const UiCardContentSchema: z.ZodObject<{
3185
3346
  type: "callout";
3186
3347
  text: string;
3187
3348
  title?: string | undefined;
3188
- icon?: string | undefined;
3189
3349
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3350
+ icon?: string | undefined;
3190
3351
  } | {
3191
3352
  type: "entityRef";
3192
3353
  label: string;
3193
- url?: string | undefined;
3194
3354
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3355
+ url?: string | undefined;
3195
3356
  entity?: string | undefined;
3196
3357
  } | {
3197
3358
  type: "kanban";
3198
3359
  columns: {
3199
3360
  title: string;
3200
- id: string;
3201
3361
  cards: {
3202
3362
  title: string;
3203
3363
  id: string;
3364
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3204
3365
  badge?: {
3205
3366
  label: string;
3206
3367
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3207
3368
  } | undefined;
3208
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3209
3369
  meta?: string[] | undefined;
3210
3370
  }[];
3371
+ id: string;
3211
3372
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3212
3373
  }[];
3213
3374
  caption?: string | undefined;
@@ -3270,6 +3431,10 @@ export declare const UiCardContentSchema: z.ZodObject<{
3270
3431
  value: string;
3271
3432
  label: string;
3272
3433
  short?: boolean | undefined;
3434
+ parts?: {
3435
+ text: string;
3436
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3437
+ }[] | undefined;
3273
3438
  }[];
3274
3439
  } | {
3275
3440
  type: "image";
@@ -3321,11 +3486,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
3321
3486
  options: {
3322
3487
  value: string;
3323
3488
  label: string;
3489
+ hint?: string | undefined;
3324
3490
  }[];
3325
3491
  type: "radio";
3326
3492
  name: string;
3327
3493
  value?: string | undefined;
3328
3494
  label?: string | undefined;
3495
+ style?: "cards" | "segmented" | undefined;
3329
3496
  } | {
3330
3497
  options: {
3331
3498
  value: string;
@@ -3342,6 +3509,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
3342
3509
  label: string;
3343
3510
  name: string;
3344
3511
  checked?: boolean | undefined;
3512
+ } | {
3513
+ type: "location";
3514
+ name: string;
3515
+ label?: string | undefined;
3516
+ required?: boolean | undefined;
3517
+ purpose?: string | undefined;
3518
+ precise?: boolean | undefined;
3519
+ buttonText?: string | undefined;
3345
3520
  } | {
3346
3521
  type: "button";
3347
3522
  text: string;
@@ -3355,6 +3530,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
3355
3530
  cancel?: string | undefined;
3356
3531
  } | undefined;
3357
3532
  disabled?: boolean | undefined;
3533
+ hidden_for?: string[] | undefined;
3358
3534
  } | {
3359
3535
  type: "linkButton";
3360
3536
  text: string;
@@ -3376,6 +3552,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
3376
3552
  cancel?: string | undefined;
3377
3553
  } | undefined;
3378
3554
  disabled?: boolean | undefined;
3555
+ hidden_for?: string[] | undefined;
3379
3556
  } | {
3380
3557
  type: "linkButton";
3381
3558
  text: string;
@@ -3403,7 +3580,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
3403
3580
  type: "progress";
3404
3581
  value?: number | undefined;
3405
3582
  label?: string | undefined;
3406
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3407
3583
  } | {
3408
3584
  type: "steps";
3409
3585
  items: {
@@ -3452,7 +3628,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
3452
3628
  name: string;
3453
3629
  status?: "online" | "away" | "busy" | "offline" | undefined;
3454
3630
  initials?: string | undefined;
3455
- color?: string | undefined;
3456
3631
  src?: string | undefined;
3457
3632
  subtitle?: string | undefined;
3458
3633
  } | {
@@ -3460,7 +3635,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
3460
3635
  people: {
3461
3636
  name: string;
3462
3637
  initials?: string | undefined;
3463
- color?: string | undefined;
3464
3638
  src?: string | undefined;
3465
3639
  }[];
3466
3640
  label?: string | undefined;
@@ -3483,29 +3657,29 @@ export declare const UiCardContentSchema: z.ZodObject<{
3483
3657
  type: "callout";
3484
3658
  text: string;
3485
3659
  title?: string | undefined;
3486
- icon?: string | undefined;
3487
3660
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3661
+ icon?: string | undefined;
3488
3662
  } | {
3489
3663
  type: "entityRef";
3490
3664
  label: string;
3491
- url?: string | undefined;
3492
3665
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3666
+ url?: string | undefined;
3493
3667
  entity?: string | undefined;
3494
3668
  } | {
3495
3669
  type: "kanban";
3496
3670
  columns: {
3497
3671
  title: string;
3498
- id: string;
3499
3672
  cards: {
3500
3673
  title: string;
3501
3674
  id: string;
3675
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3502
3676
  badge?: {
3503
3677
  label: string;
3504
3678
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3505
3679
  } | undefined;
3506
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3507
3680
  meta?: string[] | undefined;
3508
3681
  }[];
3682
+ id: string;
3509
3683
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3510
3684
  }[];
3511
3685
  caption?: string | undefined;
@@ -3547,6 +3721,10 @@ export declare const UiCardContentSchema: z.ZodObject<{
3547
3721
  value: string;
3548
3722
  label: string;
3549
3723
  short?: boolean | undefined;
3724
+ parts?: {
3725
+ text: string;
3726
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3727
+ }[] | undefined;
3550
3728
  }[];
3551
3729
  } | {
3552
3730
  type: "image";
@@ -3598,11 +3776,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
3598
3776
  options: {
3599
3777
  value: string;
3600
3778
  label: string;
3779
+ hint?: string | undefined;
3601
3780
  }[];
3602
3781
  type: "radio";
3603
3782
  name: string;
3604
3783
  value?: string | undefined;
3605
3784
  label?: string | undefined;
3785
+ style?: "cards" | "segmented" | undefined;
3606
3786
  } | {
3607
3787
  options: {
3608
3788
  value: string;
@@ -3619,6 +3799,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
3619
3799
  label: string;
3620
3800
  name: string;
3621
3801
  checked?: boolean | undefined;
3802
+ } | {
3803
+ type: "location";
3804
+ name: string;
3805
+ label?: string | undefined;
3806
+ required?: boolean | undefined;
3807
+ purpose?: string | undefined;
3808
+ precise?: boolean | undefined;
3809
+ buttonText?: string | undefined;
3622
3810
  } | {
3623
3811
  type: "button";
3624
3812
  text: string;
@@ -3632,6 +3820,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
3632
3820
  cancel?: string | undefined;
3633
3821
  } | undefined;
3634
3822
  disabled?: boolean | undefined;
3823
+ hidden_for?: string[] | undefined;
3635
3824
  } | {
3636
3825
  type: "linkButton";
3637
3826
  text: string;
@@ -3653,6 +3842,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
3653
3842
  cancel?: string | undefined;
3654
3843
  } | undefined;
3655
3844
  disabled?: boolean | undefined;
3845
+ hidden_for?: string[] | undefined;
3656
3846
  } | {
3657
3847
  type: "linkButton";
3658
3848
  text: string;
@@ -3680,7 +3870,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
3680
3870
  type: "progress";
3681
3871
  value?: number | undefined;
3682
3872
  label?: string | undefined;
3683
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3684
3873
  } | {
3685
3874
  type: "steps";
3686
3875
  items: {
@@ -3729,7 +3918,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
3729
3918
  name: string;
3730
3919
  status?: "online" | "away" | "busy" | "offline" | undefined;
3731
3920
  initials?: string | undefined;
3732
- color?: string | undefined;
3733
3921
  src?: string | undefined;
3734
3922
  subtitle?: string | undefined;
3735
3923
  } | {
@@ -3737,7 +3925,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
3737
3925
  people: {
3738
3926
  name: string;
3739
3927
  initials?: string | undefined;
3740
- color?: string | undefined;
3741
3928
  src?: string | undefined;
3742
3929
  }[];
3743
3930
  label?: string | undefined;
@@ -3760,29 +3947,29 @@ export declare const UiCardContentSchema: z.ZodObject<{
3760
3947
  type: "callout";
3761
3948
  text: string;
3762
3949
  title?: string | undefined;
3763
- icon?: string | undefined;
3764
3950
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3951
+ icon?: string | undefined;
3765
3952
  } | {
3766
3953
  type: "entityRef";
3767
3954
  label: string;
3768
- url?: string | undefined;
3769
3955
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3956
+ url?: string | undefined;
3770
3957
  entity?: string | undefined;
3771
3958
  } | {
3772
3959
  type: "kanban";
3773
3960
  columns: {
3774
3961
  title: string;
3775
- id: string;
3776
3962
  cards: {
3777
3963
  title: string;
3778
3964
  id: string;
3965
+ tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3779
3966
  badge?: {
3780
3967
  label: string;
3781
3968
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3782
3969
  } | undefined;
3783
- tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3784
3970
  meta?: string[] | undefined;
3785
3971
  }[];
3972
+ id: string;
3786
3973
  tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
3787
3974
  }[];
3788
3975
  caption?: string | undefined;
@@ -3812,16 +3999,71 @@ export declare const UiCardContentSchema: z.ZodObject<{
3812
3999
  expires_at?: number | undefined;
3813
4000
  }>;
3814
4001
  export type UiCardContent = z.infer<typeof UiCardContentSchema>;
4002
+ /**
4003
+ * 작성 클라이언트 환경(SCM-2 G6) — 폼 제출 시 클라가 **자기 신고로** 동봉하는 진단 메타.
4004
+ * 접수 폼처럼 "어떤 버전에서 쓰였나"가 중요한 액션의 디버깅 재료다. 위조 가능한 자기 신고이므로
4005
+ * 표시·진단용이지 권한·라우팅의 근거가 아니다(권위는 언제나 sender/서버). 모든 필드가 optional 인
4006
+ * 이유: 플랫폼마다 없는 축이 있고(웹엔 셸이 없다), 옛 클라는 아예 안 싣는다.
4007
+ */
4008
+ export declare const UiActionClientSchema: z.ZodObject<{
4009
+ /** "ios" | "android" | "desktop" | "web" — 새 값이 올 수 있어 enum 으로 닫지 않는다. */
4010
+ platform: z.ZodOptional<z.ZodString>;
4011
+ /** 실행 중인 웹 번들 id(`version+commit`) — 네이티브에선 지금 도는 OTA 번들이기도 하다. */
4012
+ bundle: z.ZodOptional<z.ZodString>;
4013
+ /** 셸 버전 — 네이티브 "version (build)" / 데스크탑 Tauri version. 웹은 없음. */
4014
+ shell: z.ZodOptional<z.ZodString>;
4015
+ /** navigator.userAgent — OS 버전·웹뷰 판별용. 길어서 표시는 별도 줄로. */
4016
+ ua: z.ZodOptional<z.ZodString>;
4017
+ }, "strip", z.ZodTypeAny, {
4018
+ platform?: string | undefined;
4019
+ bundle?: string | undefined;
4020
+ shell?: string | undefined;
4021
+ ua?: string | undefined;
4022
+ }, {
4023
+ platform?: string | undefined;
4024
+ bundle?: string | undefined;
4025
+ shell?: string | undefined;
4026
+ ua?: string | undefined;
4027
+ }>;
4028
+ export type UiActionClient = z.infer<typeof UiActionClientSchema>;
3815
4029
  export declare const UiActionContentSchema: z.ZodObject<{
3816
4030
  v: z.ZodDefault<z.ZodLiteral<1>>;
3817
4031
  card_id: z.ZodString;
3818
4032
  /** 어떤 컨트롤이 트리거했는지 (버튼의 action_id 등) */
3819
4033
  action_id: z.ZodString;
4034
+ /**
4035
+ * 사람이 읽는 컨트롤 이름 — 누른 시점의 버튼 글자(`ButtonBlock.text`)·모달 확인 라벨·명령 라벨의 **스냅샷**.
4036
+ * 로그·흔적은 이것을 먼저 보이고 없으면 `action_id` 로 폴백한다. 카드가 나중에 갱신·삭제돼도 "무엇을
4037
+ * 눌렀는지"가 이벤트 안에 남게 하려는 것이라, 렌더러가 발행 시점에 싣는다. 선택 필드 — 옛 이벤트·
4038
+ * 카드 없는 호출(SDK invoke)은 비어 있을 수 있다.
4039
+ */
4040
+ label: z.ZodOptional<z.ZodString>;
3820
4041
  action_type: z.ZodEnum<["button", "submit", "select", "cancel"]>;
3821
4042
  /** 폼 입력 수집 결과 (input/select/checkbox name → value) */
3822
4043
  values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3823
4044
  /** 어떤 버튼의 value였는지 (선택) */
3824
4045
  value: z.ZodOptional<z.ZodString>;
4046
+ /** 작성 환경(선택, G6) — `ModalSpec.diagnostics` 를 켠 모달의 confirm 제출에만 클라가 싣는다. */
4047
+ client: z.ZodOptional<z.ZodObject<{
4048
+ /** "ios" | "android" | "desktop" | "web" — 새 값이 올 수 있어 enum 으로 닫지 않는다. */
4049
+ platform: z.ZodOptional<z.ZodString>;
4050
+ /** 실행 중인 웹 번들 id(`version+commit`) — 네이티브에선 지금 도는 OTA 번들이기도 하다. */
4051
+ bundle: z.ZodOptional<z.ZodString>;
4052
+ /** 셸 버전 — 네이티브 "version (build)" / 데스크탑 Tauri version. 웹은 없음. */
4053
+ shell: z.ZodOptional<z.ZodString>;
4054
+ /** navigator.userAgent — OS 버전·웹뷰 판별용. 길어서 표시는 별도 줄로. */
4055
+ ua: z.ZodOptional<z.ZodString>;
4056
+ }, "strip", z.ZodTypeAny, {
4057
+ platform?: string | undefined;
4058
+ bundle?: string | undefined;
4059
+ shell?: string | undefined;
4060
+ ua?: string | undefined;
4061
+ }, {
4062
+ platform?: string | undefined;
4063
+ bundle?: string | undefined;
4064
+ shell?: string | undefined;
4065
+ ua?: string | undefined;
4066
+ }>>;
3825
4067
  "m.relates_to": z.ZodOptional<z.ZodObject<{
3826
4068
  rel_type: z.ZodLiteral<"m.reference">;
3827
4069
  event_id: z.ZodString;
@@ -3839,6 +4081,13 @@ export declare const UiActionContentSchema: z.ZodObject<{
3839
4081
  action_type: "cancel" | "select" | "button" | "submit";
3840
4082
  value?: string | undefined;
3841
4083
  values?: Record<string, unknown> | undefined;
4084
+ label?: string | undefined;
4085
+ client?: {
4086
+ platform?: string | undefined;
4087
+ bundle?: string | undefined;
4088
+ shell?: string | undefined;
4089
+ ua?: string | undefined;
4090
+ } | undefined;
3842
4091
  "m.relates_to"?: {
3843
4092
  rel_type: "m.reference";
3844
4093
  event_id: string;
@@ -3849,7 +4098,14 @@ export declare const UiActionContentSchema: z.ZodObject<{
3849
4098
  action_type: "cancel" | "select" | "button" | "submit";
3850
4099
  value?: string | undefined;
3851
4100
  values?: Record<string, unknown> | undefined;
4101
+ label?: string | undefined;
3852
4102
  v?: 1 | undefined;
4103
+ client?: {
4104
+ platform?: string | undefined;
4105
+ bundle?: string | undefined;
4106
+ shell?: string | undefined;
4107
+ ua?: string | undefined;
4108
+ } | undefined;
3853
4109
  "m.relates_to"?: {
3854
4110
  rel_type: "m.reference";
3855
4111
  event_id: string;
@@ -4563,6 +4819,105 @@ export declare const A2aResultContentSchema: z.ZodObject<{
4563
4819
  result?: Record<string, unknown> | undefined;
4564
4820
  }>;
4565
4821
  export type A2aResultContent = z.infer<typeof A2aResultContentSchema>;
4822
+ export declare const FilePreviewContentSchema: z.ZodEffects<z.ZodObject<{
4823
+ v: z.ZodDefault<z.ZodLiteral<1>>;
4824
+ /**
4825
+ * 생성 상태. 생략하면 ready 로 본다.
4826
+ * pending = 변환 중(수신측이 자리표시를 띄운다), failed = 생성 포기(철회 — 원본 타일로 복귀).
4827
+ */
4828
+ status: z.ZodOptional<z.ZodEnum<["pending", "ready", "failed"]>>;
4829
+ /** 봇이 업로드한 **미리보기 이미지**의 MXC URI (원본 파일의 mxc 가 아니다). ready 면 필수. */
4830
+ mxc: z.ZodOptional<z.ZodString>;
4831
+ /** 미리보기 이미지의 MIME (보통 image/png). 원본 파일의 MIME 이 아니다. ready 면 필수. */
4832
+ mime: z.ZodOptional<z.ZodString>;
4833
+ /**
4834
+ * 미리보기 파일명(선택). 클라 렌더러 판정은 mime 이 1차 키지만 확장자를 보조로 쓰는 경로가
4835
+ * 있어(previewRegistry), mime 이 뭉뚱그려 올 때 이 값이 판정을 건진다.
4836
+ */
4837
+ filename: z.ZodOptional<z.ZodString>;
4838
+ /** 미리보기 이미지의 픽셀 폭/높이 — 받기 전에 자리를 잡아 레이아웃 점프를 막는 힌트(선택). */
4839
+ w: z.ZodOptional<z.ZodNumber>;
4840
+ h: z.ZodOptional<z.ZodNumber>;
4841
+ /** 미리보기 이미지 바이트 크기(선택). */
4842
+ size: z.ZodOptional<z.ZodNumber>;
4843
+ /**
4844
+ * 어느 변환기가 만들었나(예: "drawing-renderer") — 진단 + 변환기별 라우팅 키.
4845
+ * 이름이 `source` 가 아닌 이유: 이 통로에서 "source" 는 원본 파일로 읽히는 게 자연스럽고,
4846
+ * 원본은 m.relates_to 가 가리킨다. 두 뜻이 한 이름을 나눠 쓰면 조용히 어긋난다.
4847
+ */
4848
+ generator: z.ZodString;
4849
+ /**
4850
+ * 원본 파일 이벤트를 참조(m.reference). 참조 이벤트 관례를 따라 형태는 optional 이지만,
4851
+ * 이게 없으면 어느 파일에 붙일지 알 수 없어 수신측이 그냥 무시한다 — 발행할 땐 항상 붙인다.
4852
+ */
4853
+ "m.relates_to": z.ZodOptional<z.ZodObject<{
4854
+ rel_type: z.ZodLiteral<"m.reference">;
4855
+ event_id: z.ZodString;
4856
+ }, "strip", z.ZodTypeAny, {
4857
+ rel_type: "m.reference";
4858
+ event_id: string;
4859
+ }, {
4860
+ rel_type: "m.reference";
4861
+ event_id: string;
4862
+ }>>;
4863
+ }, "strip", z.ZodTypeAny, {
4864
+ v: 1;
4865
+ generator: string;
4866
+ status?: "pending" | "ready" | "failed" | undefined;
4867
+ mxc?: string | undefined;
4868
+ filename?: string | undefined;
4869
+ size?: number | undefined;
4870
+ mime?: string | undefined;
4871
+ "m.relates_to"?: {
4872
+ rel_type: "m.reference";
4873
+ event_id: string;
4874
+ } | undefined;
4875
+ w?: number | undefined;
4876
+ h?: number | undefined;
4877
+ }, {
4878
+ generator: string;
4879
+ status?: "pending" | "ready" | "failed" | undefined;
4880
+ mxc?: string | undefined;
4881
+ filename?: string | undefined;
4882
+ size?: number | undefined;
4883
+ mime?: string | undefined;
4884
+ v?: 1 | undefined;
4885
+ "m.relates_to"?: {
4886
+ rel_type: "m.reference";
4887
+ event_id: string;
4888
+ } | undefined;
4889
+ w?: number | undefined;
4890
+ h?: number | undefined;
4891
+ }>, {
4892
+ v: 1;
4893
+ generator: string;
4894
+ status?: "pending" | "ready" | "failed" | undefined;
4895
+ mxc?: string | undefined;
4896
+ filename?: string | undefined;
4897
+ size?: number | undefined;
4898
+ mime?: string | undefined;
4899
+ "m.relates_to"?: {
4900
+ rel_type: "m.reference";
4901
+ event_id: string;
4902
+ } | undefined;
4903
+ w?: number | undefined;
4904
+ h?: number | undefined;
4905
+ }, {
4906
+ generator: string;
4907
+ status?: "pending" | "ready" | "failed" | undefined;
4908
+ mxc?: string | undefined;
4909
+ filename?: string | undefined;
4910
+ size?: number | undefined;
4911
+ mime?: string | undefined;
4912
+ v?: 1 | undefined;
4913
+ "m.relates_to"?: {
4914
+ rel_type: "m.reference";
4915
+ event_id: string;
4916
+ } | undefined;
4917
+ w?: number | undefined;
4918
+ h?: number | undefined;
4919
+ }>;
4920
+ export type FilePreviewContent = z.infer<typeof FilePreviewContentSchema>;
4566
4921
  /** UI 카드를 담은 m.room.message content. 미지원 클라는 body로, 우리 클라는 [UI_CONTENT_KEY]로 렌더. */
4567
4922
  export type UiMessageContent = {
4568
4923
  msgtype: "m.text";
@@ -4598,11 +4953,10 @@ export declare function buildUiMessageEdit(originalEventId: string, card: Omit<U
4598
4953
  };
4599
4954
  /** 라이브 카드 부분 갱신 명세 — 바뀐 progress/steps/state/title 만 담는다. */
4600
4955
  export interface CardPatch {
4601
- /** 첫 progress 블록 갱신 — 숫자면 value, 객체면 value/label/tone 부분 갱신. */
4956
+ /** 첫 progress 블록 갱신 — 숫자면 value, 객체면 value/label 부분 갱신. */
4602
4957
  progress?: number | {
4603
4958
  value?: number;
4604
4959
  label?: string;
4605
- tone?: Tone;
4606
4960
  };
4607
4961
  /** 첫 steps 블록의 항목을 인덱스로 부분 갱신(작업/단계 진행). */
4608
4962
  steps?: {
@@ -4689,6 +5043,13 @@ export declare function buildTaskCreate(task: Omit<TaskCreateContent, "v" | "sta
4689
5043
  export declare function buildTaskUpdate(update: Omit<TaskUpdateContent, "v"> & {
4690
5044
  v?: typeof SCHEMA_VERSION;
4691
5045
  }): TaskUpdateContent;
5046
+ /**
5047
+ * 파생 미리보기 content를 만든다 (org.corp.file.preview — 원본 파일 이벤트를 m.reference).
5048
+ * 한 원본에 대해 pending → ready(또는 failed) 순으로 여러 번 발행한다(전이 = 새 이벤트).
5049
+ */
5050
+ export declare function buildFilePreview(preview: Omit<FilePreviewContent, "v"> & {
5051
+ v?: typeof SCHEMA_VERSION;
5052
+ }): FilePreviewContent;
4692
5053
  /** UI 액션 회신 content를 만든다. */
4693
5054
  export declare function buildUiActionContent(action: Omit<UiActionContent, "v"> & {
4694
5055
  v?: typeof SCHEMA_VERSION;