@underdogai/mesh-event-schemas 0.3.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.
- package/dist/apppacks.d.ts +834 -225
- package/dist/apppacks.d.ts.map +1 -1
- package/dist/apppacks.js +1 -1
- package/dist/blocks.d.ts +207 -38
- package/dist/blocks.d.ts.map +1 -1
- package/dist/blocks.js +78 -11
- package/dist/blocks.js.map +1 -1
- package/dist/capabilities.d.ts +2 -1
- package/dist/capabilities.d.ts.map +1 -1
- package/dist/capabilities.js +2 -1
- package/dist/capabilities.js.map +1 -1
- package/dist/events.d.ts +342 -57
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +109 -1
- package/dist/events.js.map +1 -1
- package/dist/geo.d.ts +52 -0
- package/dist/geo.d.ts.map +1 -0
- package/dist/geo.js +65 -0
- package/dist/geo.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/namespace.d.ts +2 -0
- package/dist/namespace.d.ts.map +1 -1
- package/dist/namespace.js +2 -0
- package/dist/namespace.js.map +1 -1
- package/dist/registry.d.ts +3 -2
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +25 -3
- package/dist/registry.js.map +1 -1
- package/dist/surfaces.d.ts +3970 -1160
- package/dist/surfaces.d.ts.map +1 -1
- package/dist/surfaces.js +8 -1
- package/dist/surfaces.js.map +1 -1
- package/package.json +1 -1
- package/src/apppacks.ts +1 -1
- package/src/blocks.ts +80 -11
- package/src/capabilities.ts +2 -1
- package/src/events.ts +119 -4
- package/src/geo.ts +75 -0
- package/src/index.ts +1 -0
- package/src/namespace.ts +2 -0
- package/src/registry.ts +26 -2
- package/src/surfaces.ts +8 -0
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"]>;
|
|
@@ -172,17 +171,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
172
171
|
type: z.ZodLiteral<"progress">;
|
|
173
172
|
value: z.ZodOptional<z.ZodNumber>;
|
|
174
173
|
label: z.ZodOptional<z.ZodString>;
|
|
175
|
-
tone: z.ZodOptional<z.ZodEnum<["neutral", "success", "warning", "danger", "info"]>>;
|
|
176
174
|
}, "strip", z.ZodTypeAny, {
|
|
177
175
|
type: "progress";
|
|
178
176
|
value?: number | undefined;
|
|
179
177
|
label?: string | undefined;
|
|
180
|
-
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
181
178
|
}, {
|
|
182
179
|
type: "progress";
|
|
183
180
|
value?: number | undefined;
|
|
184
181
|
label?: string | undefined;
|
|
185
|
-
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
186
182
|
}>, z.ZodObject<{
|
|
187
183
|
type: z.ZodLiteral<"steps">;
|
|
188
184
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -278,7 +274,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
278
274
|
type: z.ZodLiteral<"avatar">;
|
|
279
275
|
name: z.ZodString;
|
|
280
276
|
initials: z.ZodOptional<z.ZodString>;
|
|
281
|
-
color: z.ZodOptional<z.ZodString>;
|
|
282
277
|
src: z.ZodOptional<z.ZodString>;
|
|
283
278
|
subtitle: z.ZodOptional<z.ZodString>;
|
|
284
279
|
status: z.ZodOptional<z.ZodEnum<["online", "away", "busy", "offline"]>>;
|
|
@@ -287,7 +282,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
287
282
|
name: string;
|
|
288
283
|
status?: "online" | "away" | "busy" | "offline" | undefined;
|
|
289
284
|
initials?: string | undefined;
|
|
290
|
-
color?: string | undefined;
|
|
291
285
|
src?: string | undefined;
|
|
292
286
|
subtitle?: string | undefined;
|
|
293
287
|
}, {
|
|
@@ -295,7 +289,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
295
289
|
name: string;
|
|
296
290
|
status?: "online" | "away" | "busy" | "offline" | undefined;
|
|
297
291
|
initials?: string | undefined;
|
|
298
|
-
color?: string | undefined;
|
|
299
292
|
src?: string | undefined;
|
|
300
293
|
subtitle?: string | undefined;
|
|
301
294
|
}>, z.ZodObject<{
|
|
@@ -303,17 +296,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
303
296
|
people: z.ZodArray<z.ZodObject<{
|
|
304
297
|
name: z.ZodString;
|
|
305
298
|
initials: z.ZodOptional<z.ZodString>;
|
|
306
|
-
color: z.ZodOptional<z.ZodString>;
|
|
307
299
|
src: z.ZodOptional<z.ZodString>;
|
|
308
300
|
}, "strip", z.ZodTypeAny, {
|
|
309
301
|
name: string;
|
|
310
302
|
initials?: string | undefined;
|
|
311
|
-
color?: string | undefined;
|
|
312
303
|
src?: string | undefined;
|
|
313
304
|
}, {
|
|
314
305
|
name: string;
|
|
315
306
|
initials?: string | undefined;
|
|
316
|
-
color?: string | undefined;
|
|
317
307
|
src?: string | undefined;
|
|
318
308
|
}>, "many">;
|
|
319
309
|
max: z.ZodOptional<z.ZodNumber>;
|
|
@@ -323,7 +313,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
323
313
|
people: {
|
|
324
314
|
name: string;
|
|
325
315
|
initials?: string | undefined;
|
|
326
|
-
color?: string | undefined;
|
|
327
316
|
src?: string | undefined;
|
|
328
317
|
}[];
|
|
329
318
|
label?: string | undefined;
|
|
@@ -333,7 +322,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
333
322
|
people: {
|
|
334
323
|
name: string;
|
|
335
324
|
initials?: string | undefined;
|
|
336
|
-
color?: string | undefined;
|
|
337
325
|
src?: string | undefined;
|
|
338
326
|
}[];
|
|
339
327
|
label?: string | undefined;
|
|
@@ -458,7 +446,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
458
446
|
}>, "many">;
|
|
459
447
|
}, "strip", z.ZodTypeAny, {
|
|
460
448
|
title: string;
|
|
461
|
-
id: string;
|
|
462
449
|
cards: {
|
|
463
450
|
title: string;
|
|
464
451
|
id: string;
|
|
@@ -469,10 +456,10 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
469
456
|
} | undefined;
|
|
470
457
|
meta?: string[] | undefined;
|
|
471
458
|
}[];
|
|
459
|
+
id: string;
|
|
472
460
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
473
461
|
}, {
|
|
474
462
|
title: string;
|
|
475
|
-
id: string;
|
|
476
463
|
cards: {
|
|
477
464
|
title: string;
|
|
478
465
|
id: string;
|
|
@@ -483,6 +470,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
483
470
|
} | undefined;
|
|
484
471
|
meta?: string[] | undefined;
|
|
485
472
|
}[];
|
|
473
|
+
id: string;
|
|
486
474
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
487
475
|
}>, "many">;
|
|
488
476
|
caption: z.ZodOptional<z.ZodString>;
|
|
@@ -490,7 +478,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
490
478
|
type: "kanban";
|
|
491
479
|
columns: {
|
|
492
480
|
title: string;
|
|
493
|
-
id: string;
|
|
494
481
|
cards: {
|
|
495
482
|
title: string;
|
|
496
483
|
id: string;
|
|
@@ -501,6 +488,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
501
488
|
} | undefined;
|
|
502
489
|
meta?: string[] | undefined;
|
|
503
490
|
}[];
|
|
491
|
+
id: string;
|
|
504
492
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
505
493
|
}[];
|
|
506
494
|
caption?: string | undefined;
|
|
@@ -508,7 +496,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
508
496
|
type: "kanban";
|
|
509
497
|
columns: {
|
|
510
498
|
title: string;
|
|
511
|
-
id: string;
|
|
512
499
|
cards: {
|
|
513
500
|
title: string;
|
|
514
501
|
id: string;
|
|
@@ -519,6 +506,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
519
506
|
} | undefined;
|
|
520
507
|
meta?: string[] | undefined;
|
|
521
508
|
}[];
|
|
509
|
+
id: string;
|
|
522
510
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
523
511
|
}[];
|
|
524
512
|
caption?: string | undefined;
|
|
@@ -718,32 +706,40 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
718
706
|
options: z.ZodArray<z.ZodObject<{
|
|
719
707
|
value: z.ZodString;
|
|
720
708
|
label: z.ZodString;
|
|
709
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
721
710
|
}, "strip", z.ZodTypeAny, {
|
|
722
711
|
value: string;
|
|
723
712
|
label: string;
|
|
713
|
+
hint?: string | undefined;
|
|
724
714
|
}, {
|
|
725
715
|
value: string;
|
|
726
716
|
label: string;
|
|
717
|
+
hint?: string | undefined;
|
|
727
718
|
}>, "many">;
|
|
728
719
|
value: z.ZodOptional<z.ZodString>;
|
|
720
|
+
style: z.ZodOptional<z.ZodEnum<["cards", "segmented"]>>;
|
|
729
721
|
}, "strip", z.ZodTypeAny, {
|
|
730
722
|
options: {
|
|
731
723
|
value: string;
|
|
732
724
|
label: string;
|
|
725
|
+
hint?: string | undefined;
|
|
733
726
|
}[];
|
|
734
727
|
type: "radio";
|
|
735
728
|
name: string;
|
|
736
729
|
value?: string | undefined;
|
|
737
730
|
label?: string | undefined;
|
|
731
|
+
style?: "cards" | "segmented" | undefined;
|
|
738
732
|
}, {
|
|
739
733
|
options: {
|
|
740
734
|
value: string;
|
|
741
735
|
label: string;
|
|
736
|
+
hint?: string | undefined;
|
|
742
737
|
}[];
|
|
743
738
|
type: "radio";
|
|
744
739
|
name: string;
|
|
745
740
|
value?: string | undefined;
|
|
746
741
|
label?: string | undefined;
|
|
742
|
+
style?: "cards" | "segmented" | undefined;
|
|
747
743
|
}>, z.ZodObject<{
|
|
748
744
|
type: z.ZodLiteral<"select">;
|
|
749
745
|
name: z.ZodString;
|
|
@@ -798,6 +794,30 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
798
794
|
label: string;
|
|
799
795
|
name: string;
|
|
800
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;
|
|
801
821
|
}>, z.ZodObject<{
|
|
802
822
|
type: z.ZodLiteral<"button">;
|
|
803
823
|
action_id: z.ZodString;
|
|
@@ -821,6 +841,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
821
841
|
cancel?: string | undefined;
|
|
822
842
|
}>>;
|
|
823
843
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
844
|
+
hidden_for: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
824
845
|
}, "strip", z.ZodTypeAny, {
|
|
825
846
|
type: "button";
|
|
826
847
|
text: string;
|
|
@@ -834,6 +855,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
834
855
|
cancel?: string | undefined;
|
|
835
856
|
} | undefined;
|
|
836
857
|
disabled?: boolean | undefined;
|
|
858
|
+
hidden_for?: string[] | undefined;
|
|
837
859
|
}, {
|
|
838
860
|
type: "button";
|
|
839
861
|
text: string;
|
|
@@ -847,6 +869,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
847
869
|
cancel?: string | undefined;
|
|
848
870
|
} | undefined;
|
|
849
871
|
disabled?: boolean | undefined;
|
|
872
|
+
hidden_for?: string[] | undefined;
|
|
850
873
|
}>, z.ZodObject<{
|
|
851
874
|
type: z.ZodLiteral<"linkButton">;
|
|
852
875
|
text: z.ZodString;
|
|
@@ -890,6 +913,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
890
913
|
cancel?: string | undefined;
|
|
891
914
|
}>>;
|
|
892
915
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
916
|
+
hidden_for: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
893
917
|
}, "strip", z.ZodTypeAny, {
|
|
894
918
|
type: "button";
|
|
895
919
|
text: string;
|
|
@@ -903,6 +927,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
903
927
|
cancel?: string | undefined;
|
|
904
928
|
} | undefined;
|
|
905
929
|
disabled?: boolean | undefined;
|
|
930
|
+
hidden_for?: string[] | undefined;
|
|
906
931
|
}, {
|
|
907
932
|
type: "button";
|
|
908
933
|
text: string;
|
|
@@ -916,6 +941,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
916
941
|
cancel?: string | undefined;
|
|
917
942
|
} | undefined;
|
|
918
943
|
disabled?: boolean | undefined;
|
|
944
|
+
hidden_for?: string[] | undefined;
|
|
919
945
|
}>, z.ZodObject<{
|
|
920
946
|
type: z.ZodLiteral<"linkButton">;
|
|
921
947
|
text: z.ZodString;
|
|
@@ -950,6 +976,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
950
976
|
cancel?: string | undefined;
|
|
951
977
|
} | undefined;
|
|
952
978
|
disabled?: boolean | undefined;
|
|
979
|
+
hidden_for?: string[] | undefined;
|
|
953
980
|
} | {
|
|
954
981
|
type: "linkButton";
|
|
955
982
|
text: string;
|
|
@@ -972,6 +999,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
972
999
|
cancel?: string | undefined;
|
|
973
1000
|
} | undefined;
|
|
974
1001
|
disabled?: boolean | undefined;
|
|
1002
|
+
hidden_for?: string[] | undefined;
|
|
975
1003
|
} | {
|
|
976
1004
|
type: "linkButton";
|
|
977
1005
|
text: string;
|
|
@@ -1225,17 +1253,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1225
1253
|
type: z.ZodLiteral<"progress">;
|
|
1226
1254
|
value: z.ZodOptional<z.ZodNumber>;
|
|
1227
1255
|
label: z.ZodOptional<z.ZodString>;
|
|
1228
|
-
tone: z.ZodOptional<z.ZodEnum<["neutral", "success", "warning", "danger", "info"]>>;
|
|
1229
1256
|
}, "strip", z.ZodTypeAny, {
|
|
1230
1257
|
type: "progress";
|
|
1231
1258
|
value?: number | undefined;
|
|
1232
1259
|
label?: string | undefined;
|
|
1233
|
-
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
1234
1260
|
}, {
|
|
1235
1261
|
type: "progress";
|
|
1236
1262
|
value?: number | undefined;
|
|
1237
1263
|
label?: string | undefined;
|
|
1238
|
-
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
1239
1264
|
}>, z.ZodObject<{
|
|
1240
1265
|
type: z.ZodLiteral<"steps">;
|
|
1241
1266
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -1331,7 +1356,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1331
1356
|
type: z.ZodLiteral<"avatar">;
|
|
1332
1357
|
name: z.ZodString;
|
|
1333
1358
|
initials: z.ZodOptional<z.ZodString>;
|
|
1334
|
-
color: z.ZodOptional<z.ZodString>;
|
|
1335
1359
|
src: z.ZodOptional<z.ZodString>;
|
|
1336
1360
|
subtitle: z.ZodOptional<z.ZodString>;
|
|
1337
1361
|
status: z.ZodOptional<z.ZodEnum<["online", "away", "busy", "offline"]>>;
|
|
@@ -1340,7 +1364,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1340
1364
|
name: string;
|
|
1341
1365
|
status?: "online" | "away" | "busy" | "offline" | undefined;
|
|
1342
1366
|
initials?: string | undefined;
|
|
1343
|
-
color?: string | undefined;
|
|
1344
1367
|
src?: string | undefined;
|
|
1345
1368
|
subtitle?: string | undefined;
|
|
1346
1369
|
}, {
|
|
@@ -1348,7 +1371,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1348
1371
|
name: string;
|
|
1349
1372
|
status?: "online" | "away" | "busy" | "offline" | undefined;
|
|
1350
1373
|
initials?: string | undefined;
|
|
1351
|
-
color?: string | undefined;
|
|
1352
1374
|
src?: string | undefined;
|
|
1353
1375
|
subtitle?: string | undefined;
|
|
1354
1376
|
}>, z.ZodObject<{
|
|
@@ -1356,17 +1378,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1356
1378
|
people: z.ZodArray<z.ZodObject<{
|
|
1357
1379
|
name: z.ZodString;
|
|
1358
1380
|
initials: z.ZodOptional<z.ZodString>;
|
|
1359
|
-
color: z.ZodOptional<z.ZodString>;
|
|
1360
1381
|
src: z.ZodOptional<z.ZodString>;
|
|
1361
1382
|
}, "strip", z.ZodTypeAny, {
|
|
1362
1383
|
name: string;
|
|
1363
1384
|
initials?: string | undefined;
|
|
1364
|
-
color?: string | undefined;
|
|
1365
1385
|
src?: string | undefined;
|
|
1366
1386
|
}, {
|
|
1367
1387
|
name: string;
|
|
1368
1388
|
initials?: string | undefined;
|
|
1369
|
-
color?: string | undefined;
|
|
1370
1389
|
src?: string | undefined;
|
|
1371
1390
|
}>, "many">;
|
|
1372
1391
|
max: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1376,7 +1395,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1376
1395
|
people: {
|
|
1377
1396
|
name: string;
|
|
1378
1397
|
initials?: string | undefined;
|
|
1379
|
-
color?: string | undefined;
|
|
1380
1398
|
src?: string | undefined;
|
|
1381
1399
|
}[];
|
|
1382
1400
|
label?: string | undefined;
|
|
@@ -1386,7 +1404,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1386
1404
|
people: {
|
|
1387
1405
|
name: string;
|
|
1388
1406
|
initials?: string | undefined;
|
|
1389
|
-
color?: string | undefined;
|
|
1390
1407
|
src?: string | undefined;
|
|
1391
1408
|
}[];
|
|
1392
1409
|
label?: string | undefined;
|
|
@@ -1511,7 +1528,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1511
1528
|
}>, "many">;
|
|
1512
1529
|
}, "strip", z.ZodTypeAny, {
|
|
1513
1530
|
title: string;
|
|
1514
|
-
id: string;
|
|
1515
1531
|
cards: {
|
|
1516
1532
|
title: string;
|
|
1517
1533
|
id: string;
|
|
@@ -1522,10 +1538,10 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1522
1538
|
} | undefined;
|
|
1523
1539
|
meta?: string[] | undefined;
|
|
1524
1540
|
}[];
|
|
1541
|
+
id: string;
|
|
1525
1542
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
1526
1543
|
}, {
|
|
1527
1544
|
title: string;
|
|
1528
|
-
id: string;
|
|
1529
1545
|
cards: {
|
|
1530
1546
|
title: string;
|
|
1531
1547
|
id: string;
|
|
@@ -1536,6 +1552,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1536
1552
|
} | undefined;
|
|
1537
1553
|
meta?: string[] | undefined;
|
|
1538
1554
|
}[];
|
|
1555
|
+
id: string;
|
|
1539
1556
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
1540
1557
|
}>, "many">;
|
|
1541
1558
|
caption: z.ZodOptional<z.ZodString>;
|
|
@@ -1543,7 +1560,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1543
1560
|
type: "kanban";
|
|
1544
1561
|
columns: {
|
|
1545
1562
|
title: string;
|
|
1546
|
-
id: string;
|
|
1547
1563
|
cards: {
|
|
1548
1564
|
title: string;
|
|
1549
1565
|
id: string;
|
|
@@ -1554,6 +1570,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1554
1570
|
} | undefined;
|
|
1555
1571
|
meta?: string[] | undefined;
|
|
1556
1572
|
}[];
|
|
1573
|
+
id: string;
|
|
1557
1574
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
1558
1575
|
}[];
|
|
1559
1576
|
caption?: string | undefined;
|
|
@@ -1561,7 +1578,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1561
1578
|
type: "kanban";
|
|
1562
1579
|
columns: {
|
|
1563
1580
|
title: string;
|
|
1564
|
-
id: string;
|
|
1565
1581
|
cards: {
|
|
1566
1582
|
title: string;
|
|
1567
1583
|
id: string;
|
|
@@ -1572,6 +1588,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1572
1588
|
} | undefined;
|
|
1573
1589
|
meta?: string[] | undefined;
|
|
1574
1590
|
}[];
|
|
1591
|
+
id: string;
|
|
1575
1592
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
1576
1593
|
}[];
|
|
1577
1594
|
caption?: string | undefined;
|
|
@@ -1771,32 +1788,40 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1771
1788
|
options: z.ZodArray<z.ZodObject<{
|
|
1772
1789
|
value: z.ZodString;
|
|
1773
1790
|
label: z.ZodString;
|
|
1791
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
1774
1792
|
}, "strip", z.ZodTypeAny, {
|
|
1775
1793
|
value: string;
|
|
1776
1794
|
label: string;
|
|
1795
|
+
hint?: string | undefined;
|
|
1777
1796
|
}, {
|
|
1778
1797
|
value: string;
|
|
1779
1798
|
label: string;
|
|
1799
|
+
hint?: string | undefined;
|
|
1780
1800
|
}>, "many">;
|
|
1781
1801
|
value: z.ZodOptional<z.ZodString>;
|
|
1802
|
+
style: z.ZodOptional<z.ZodEnum<["cards", "segmented"]>>;
|
|
1782
1803
|
}, "strip", z.ZodTypeAny, {
|
|
1783
1804
|
options: {
|
|
1784
1805
|
value: string;
|
|
1785
1806
|
label: string;
|
|
1807
|
+
hint?: string | undefined;
|
|
1786
1808
|
}[];
|
|
1787
1809
|
type: "radio";
|
|
1788
1810
|
name: string;
|
|
1789
1811
|
value?: string | undefined;
|
|
1790
1812
|
label?: string | undefined;
|
|
1813
|
+
style?: "cards" | "segmented" | undefined;
|
|
1791
1814
|
}, {
|
|
1792
1815
|
options: {
|
|
1793
1816
|
value: string;
|
|
1794
1817
|
label: string;
|
|
1818
|
+
hint?: string | undefined;
|
|
1795
1819
|
}[];
|
|
1796
1820
|
type: "radio";
|
|
1797
1821
|
name: string;
|
|
1798
1822
|
value?: string | undefined;
|
|
1799
1823
|
label?: string | undefined;
|
|
1824
|
+
style?: "cards" | "segmented" | undefined;
|
|
1800
1825
|
}>, z.ZodObject<{
|
|
1801
1826
|
type: z.ZodLiteral<"select">;
|
|
1802
1827
|
name: z.ZodString;
|
|
@@ -1851,6 +1876,30 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1851
1876
|
label: string;
|
|
1852
1877
|
name: string;
|
|
1853
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;
|
|
1854
1903
|
}>, z.ZodObject<{
|
|
1855
1904
|
type: z.ZodLiteral<"button">;
|
|
1856
1905
|
action_id: z.ZodString;
|
|
@@ -1874,6 +1923,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1874
1923
|
cancel?: string | undefined;
|
|
1875
1924
|
}>>;
|
|
1876
1925
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
1926
|
+
hidden_for: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1877
1927
|
}, "strip", z.ZodTypeAny, {
|
|
1878
1928
|
type: "button";
|
|
1879
1929
|
text: string;
|
|
@@ -1887,6 +1937,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1887
1937
|
cancel?: string | undefined;
|
|
1888
1938
|
} | undefined;
|
|
1889
1939
|
disabled?: boolean | undefined;
|
|
1940
|
+
hidden_for?: string[] | undefined;
|
|
1890
1941
|
}, {
|
|
1891
1942
|
type: "button";
|
|
1892
1943
|
text: string;
|
|
@@ -1900,6 +1951,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1900
1951
|
cancel?: string | undefined;
|
|
1901
1952
|
} | undefined;
|
|
1902
1953
|
disabled?: boolean | undefined;
|
|
1954
|
+
hidden_for?: string[] | undefined;
|
|
1903
1955
|
}>, z.ZodObject<{
|
|
1904
1956
|
type: z.ZodLiteral<"linkButton">;
|
|
1905
1957
|
text: z.ZodString;
|
|
@@ -1943,6 +1995,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1943
1995
|
cancel?: string | undefined;
|
|
1944
1996
|
}>>;
|
|
1945
1997
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
1998
|
+
hidden_for: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1946
1999
|
}, "strip", z.ZodTypeAny, {
|
|
1947
2000
|
type: "button";
|
|
1948
2001
|
text: string;
|
|
@@ -1956,6 +2009,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1956
2009
|
cancel?: string | undefined;
|
|
1957
2010
|
} | undefined;
|
|
1958
2011
|
disabled?: boolean | undefined;
|
|
2012
|
+
hidden_for?: string[] | undefined;
|
|
1959
2013
|
}, {
|
|
1960
2014
|
type: "button";
|
|
1961
2015
|
text: string;
|
|
@@ -1969,6 +2023,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1969
2023
|
cancel?: string | undefined;
|
|
1970
2024
|
} | undefined;
|
|
1971
2025
|
disabled?: boolean | undefined;
|
|
2026
|
+
hidden_for?: string[] | undefined;
|
|
1972
2027
|
}>, z.ZodObject<{
|
|
1973
2028
|
type: z.ZodLiteral<"linkButton">;
|
|
1974
2029
|
text: z.ZodString;
|
|
@@ -2003,6 +2058,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2003
2058
|
cancel?: string | undefined;
|
|
2004
2059
|
} | undefined;
|
|
2005
2060
|
disabled?: boolean | undefined;
|
|
2061
|
+
hidden_for?: string[] | undefined;
|
|
2006
2062
|
} | {
|
|
2007
2063
|
type: "linkButton";
|
|
2008
2064
|
text: string;
|
|
@@ -2025,6 +2081,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2025
2081
|
cancel?: string | undefined;
|
|
2026
2082
|
} | undefined;
|
|
2027
2083
|
disabled?: boolean | undefined;
|
|
2084
|
+
hidden_for?: string[] | undefined;
|
|
2028
2085
|
} | {
|
|
2029
2086
|
type: "linkButton";
|
|
2030
2087
|
text: string;
|
|
@@ -2187,11 +2244,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2187
2244
|
options: {
|
|
2188
2245
|
value: string;
|
|
2189
2246
|
label: string;
|
|
2247
|
+
hint?: string | undefined;
|
|
2190
2248
|
}[];
|
|
2191
2249
|
type: "radio";
|
|
2192
2250
|
name: string;
|
|
2193
2251
|
value?: string | undefined;
|
|
2194
2252
|
label?: string | undefined;
|
|
2253
|
+
style?: "cards" | "segmented" | undefined;
|
|
2195
2254
|
} | {
|
|
2196
2255
|
options: {
|
|
2197
2256
|
value: string;
|
|
@@ -2208,6 +2267,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2208
2267
|
label: string;
|
|
2209
2268
|
name: string;
|
|
2210
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;
|
|
2211
2278
|
} | {
|
|
2212
2279
|
type: "button";
|
|
2213
2280
|
text: string;
|
|
@@ -2221,6 +2288,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2221
2288
|
cancel?: string | undefined;
|
|
2222
2289
|
} | undefined;
|
|
2223
2290
|
disabled?: boolean | undefined;
|
|
2291
|
+
hidden_for?: string[] | undefined;
|
|
2224
2292
|
} | {
|
|
2225
2293
|
type: "linkButton";
|
|
2226
2294
|
text: string;
|
|
@@ -2242,6 +2310,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2242
2310
|
cancel?: string | undefined;
|
|
2243
2311
|
} | undefined;
|
|
2244
2312
|
disabled?: boolean | undefined;
|
|
2313
|
+
hidden_for?: string[] | undefined;
|
|
2245
2314
|
} | {
|
|
2246
2315
|
type: "linkButton";
|
|
2247
2316
|
text: string;
|
|
@@ -2269,7 +2338,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2269
2338
|
type: "progress";
|
|
2270
2339
|
value?: number | undefined;
|
|
2271
2340
|
label?: string | undefined;
|
|
2272
|
-
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
2273
2341
|
} | {
|
|
2274
2342
|
type: "steps";
|
|
2275
2343
|
items: {
|
|
@@ -2318,7 +2386,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2318
2386
|
name: string;
|
|
2319
2387
|
status?: "online" | "away" | "busy" | "offline" | undefined;
|
|
2320
2388
|
initials?: string | undefined;
|
|
2321
|
-
color?: string | undefined;
|
|
2322
2389
|
src?: string | undefined;
|
|
2323
2390
|
subtitle?: string | undefined;
|
|
2324
2391
|
} | {
|
|
@@ -2326,7 +2393,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2326
2393
|
people: {
|
|
2327
2394
|
name: string;
|
|
2328
2395
|
initials?: string | undefined;
|
|
2329
|
-
color?: string | undefined;
|
|
2330
2396
|
src?: string | undefined;
|
|
2331
2397
|
}[];
|
|
2332
2398
|
label?: string | undefined;
|
|
@@ -2361,7 +2427,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2361
2427
|
type: "kanban";
|
|
2362
2428
|
columns: {
|
|
2363
2429
|
title: string;
|
|
2364
|
-
id: string;
|
|
2365
2430
|
cards: {
|
|
2366
2431
|
title: string;
|
|
2367
2432
|
id: string;
|
|
@@ -2372,6 +2437,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2372
2437
|
} | undefined;
|
|
2373
2438
|
meta?: string[] | undefined;
|
|
2374
2439
|
}[];
|
|
2440
|
+
id: string;
|
|
2375
2441
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
2376
2442
|
}[];
|
|
2377
2443
|
caption?: string | undefined;
|
|
@@ -2468,11 +2534,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2468
2534
|
options: {
|
|
2469
2535
|
value: string;
|
|
2470
2536
|
label: string;
|
|
2537
|
+
hint?: string | undefined;
|
|
2471
2538
|
}[];
|
|
2472
2539
|
type: "radio";
|
|
2473
2540
|
name: string;
|
|
2474
2541
|
value?: string | undefined;
|
|
2475
2542
|
label?: string | undefined;
|
|
2543
|
+
style?: "cards" | "segmented" | undefined;
|
|
2476
2544
|
} | {
|
|
2477
2545
|
options: {
|
|
2478
2546
|
value: string;
|
|
@@ -2489,6 +2557,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2489
2557
|
label: string;
|
|
2490
2558
|
name: string;
|
|
2491
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;
|
|
2492
2568
|
} | {
|
|
2493
2569
|
type: "button";
|
|
2494
2570
|
text: string;
|
|
@@ -2502,6 +2578,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2502
2578
|
cancel?: string | undefined;
|
|
2503
2579
|
} | undefined;
|
|
2504
2580
|
disabled?: boolean | undefined;
|
|
2581
|
+
hidden_for?: string[] | undefined;
|
|
2505
2582
|
} | {
|
|
2506
2583
|
type: "linkButton";
|
|
2507
2584
|
text: string;
|
|
@@ -2523,6 +2600,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2523
2600
|
cancel?: string | undefined;
|
|
2524
2601
|
} | undefined;
|
|
2525
2602
|
disabled?: boolean | undefined;
|
|
2603
|
+
hidden_for?: string[] | undefined;
|
|
2526
2604
|
} | {
|
|
2527
2605
|
type: "linkButton";
|
|
2528
2606
|
text: string;
|
|
@@ -2550,7 +2628,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2550
2628
|
type: "progress";
|
|
2551
2629
|
value?: number | undefined;
|
|
2552
2630
|
label?: string | undefined;
|
|
2553
|
-
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
2554
2631
|
} | {
|
|
2555
2632
|
type: "steps";
|
|
2556
2633
|
items: {
|
|
@@ -2599,7 +2676,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2599
2676
|
name: string;
|
|
2600
2677
|
status?: "online" | "away" | "busy" | "offline" | undefined;
|
|
2601
2678
|
initials?: string | undefined;
|
|
2602
|
-
color?: string | undefined;
|
|
2603
2679
|
src?: string | undefined;
|
|
2604
2680
|
subtitle?: string | undefined;
|
|
2605
2681
|
} | {
|
|
@@ -2607,7 +2683,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2607
2683
|
people: {
|
|
2608
2684
|
name: string;
|
|
2609
2685
|
initials?: string | undefined;
|
|
2610
|
-
color?: string | undefined;
|
|
2611
2686
|
src?: string | undefined;
|
|
2612
2687
|
}[];
|
|
2613
2688
|
label?: string | undefined;
|
|
@@ -2642,7 +2717,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2642
2717
|
type: "kanban";
|
|
2643
2718
|
columns: {
|
|
2644
2719
|
title: string;
|
|
2645
|
-
id: string;
|
|
2646
2720
|
cards: {
|
|
2647
2721
|
title: string;
|
|
2648
2722
|
id: string;
|
|
@@ -2653,6 +2727,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2653
2727
|
} | undefined;
|
|
2654
2728
|
meta?: string[] | undefined;
|
|
2655
2729
|
}[];
|
|
2730
|
+
id: string;
|
|
2656
2731
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
2657
2732
|
}[];
|
|
2658
2733
|
caption?: string | undefined;
|
|
@@ -2794,11 +2869,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2794
2869
|
options: {
|
|
2795
2870
|
value: string;
|
|
2796
2871
|
label: string;
|
|
2872
|
+
hint?: string | undefined;
|
|
2797
2873
|
}[];
|
|
2798
2874
|
type: "radio";
|
|
2799
2875
|
name: string;
|
|
2800
2876
|
value?: string | undefined;
|
|
2801
2877
|
label?: string | undefined;
|
|
2878
|
+
style?: "cards" | "segmented" | undefined;
|
|
2802
2879
|
} | {
|
|
2803
2880
|
options: {
|
|
2804
2881
|
value: string;
|
|
@@ -2815,6 +2892,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2815
2892
|
label: string;
|
|
2816
2893
|
name: string;
|
|
2817
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;
|
|
2818
2903
|
} | {
|
|
2819
2904
|
type: "button";
|
|
2820
2905
|
text: string;
|
|
@@ -2828,6 +2913,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2828
2913
|
cancel?: string | undefined;
|
|
2829
2914
|
} | undefined;
|
|
2830
2915
|
disabled?: boolean | undefined;
|
|
2916
|
+
hidden_for?: string[] | undefined;
|
|
2831
2917
|
} | {
|
|
2832
2918
|
type: "linkButton";
|
|
2833
2919
|
text: string;
|
|
@@ -2849,6 +2935,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2849
2935
|
cancel?: string | undefined;
|
|
2850
2936
|
} | undefined;
|
|
2851
2937
|
disabled?: boolean | undefined;
|
|
2938
|
+
hidden_for?: string[] | undefined;
|
|
2852
2939
|
} | {
|
|
2853
2940
|
type: "linkButton";
|
|
2854
2941
|
text: string;
|
|
@@ -2876,7 +2963,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2876
2963
|
type: "progress";
|
|
2877
2964
|
value?: number | undefined;
|
|
2878
2965
|
label?: string | undefined;
|
|
2879
|
-
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
2880
2966
|
} | {
|
|
2881
2967
|
type: "steps";
|
|
2882
2968
|
items: {
|
|
@@ -2925,7 +3011,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2925
3011
|
name: string;
|
|
2926
3012
|
status?: "online" | "away" | "busy" | "offline" | undefined;
|
|
2927
3013
|
initials?: string | undefined;
|
|
2928
|
-
color?: string | undefined;
|
|
2929
3014
|
src?: string | undefined;
|
|
2930
3015
|
subtitle?: string | undefined;
|
|
2931
3016
|
} | {
|
|
@@ -2933,7 +3018,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2933
3018
|
people: {
|
|
2934
3019
|
name: string;
|
|
2935
3020
|
initials?: string | undefined;
|
|
2936
|
-
color?: string | undefined;
|
|
2937
3021
|
src?: string | undefined;
|
|
2938
3022
|
}[];
|
|
2939
3023
|
label?: string | undefined;
|
|
@@ -2968,7 +3052,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2968
3052
|
type: "kanban";
|
|
2969
3053
|
columns: {
|
|
2970
3054
|
title: string;
|
|
2971
|
-
id: string;
|
|
2972
3055
|
cards: {
|
|
2973
3056
|
title: string;
|
|
2974
3057
|
id: string;
|
|
@@ -2979,6 +3062,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2979
3062
|
} | undefined;
|
|
2980
3063
|
meta?: string[] | undefined;
|
|
2981
3064
|
}[];
|
|
3065
|
+
id: string;
|
|
2982
3066
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
2983
3067
|
}[];
|
|
2984
3068
|
caption?: string | undefined;
|
|
@@ -3091,11 +3175,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3091
3175
|
options: {
|
|
3092
3176
|
value: string;
|
|
3093
3177
|
label: string;
|
|
3178
|
+
hint?: string | undefined;
|
|
3094
3179
|
}[];
|
|
3095
3180
|
type: "radio";
|
|
3096
3181
|
name: string;
|
|
3097
3182
|
value?: string | undefined;
|
|
3098
3183
|
label?: string | undefined;
|
|
3184
|
+
style?: "cards" | "segmented" | undefined;
|
|
3099
3185
|
} | {
|
|
3100
3186
|
options: {
|
|
3101
3187
|
value: string;
|
|
@@ -3112,6 +3198,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3112
3198
|
label: string;
|
|
3113
3199
|
name: string;
|
|
3114
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;
|
|
3115
3209
|
} | {
|
|
3116
3210
|
type: "button";
|
|
3117
3211
|
text: string;
|
|
@@ -3125,6 +3219,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3125
3219
|
cancel?: string | undefined;
|
|
3126
3220
|
} | undefined;
|
|
3127
3221
|
disabled?: boolean | undefined;
|
|
3222
|
+
hidden_for?: string[] | undefined;
|
|
3128
3223
|
} | {
|
|
3129
3224
|
type: "linkButton";
|
|
3130
3225
|
text: string;
|
|
@@ -3146,6 +3241,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3146
3241
|
cancel?: string | undefined;
|
|
3147
3242
|
} | undefined;
|
|
3148
3243
|
disabled?: boolean | undefined;
|
|
3244
|
+
hidden_for?: string[] | undefined;
|
|
3149
3245
|
} | {
|
|
3150
3246
|
type: "linkButton";
|
|
3151
3247
|
text: string;
|
|
@@ -3173,7 +3269,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3173
3269
|
type: "progress";
|
|
3174
3270
|
value?: number | undefined;
|
|
3175
3271
|
label?: string | undefined;
|
|
3176
|
-
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
3177
3272
|
} | {
|
|
3178
3273
|
type: "steps";
|
|
3179
3274
|
items: {
|
|
@@ -3222,7 +3317,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3222
3317
|
name: string;
|
|
3223
3318
|
status?: "online" | "away" | "busy" | "offline" | undefined;
|
|
3224
3319
|
initials?: string | undefined;
|
|
3225
|
-
color?: string | undefined;
|
|
3226
3320
|
src?: string | undefined;
|
|
3227
3321
|
subtitle?: string | undefined;
|
|
3228
3322
|
} | {
|
|
@@ -3230,7 +3324,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3230
3324
|
people: {
|
|
3231
3325
|
name: string;
|
|
3232
3326
|
initials?: string | undefined;
|
|
3233
|
-
color?: string | undefined;
|
|
3234
3327
|
src?: string | undefined;
|
|
3235
3328
|
}[];
|
|
3236
3329
|
label?: string | undefined;
|
|
@@ -3265,7 +3358,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3265
3358
|
type: "kanban";
|
|
3266
3359
|
columns: {
|
|
3267
3360
|
title: string;
|
|
3268
|
-
id: string;
|
|
3269
3361
|
cards: {
|
|
3270
3362
|
title: string;
|
|
3271
3363
|
id: string;
|
|
@@ -3276,6 +3368,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3276
3368
|
} | undefined;
|
|
3277
3369
|
meta?: string[] | undefined;
|
|
3278
3370
|
}[];
|
|
3371
|
+
id: string;
|
|
3279
3372
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
3280
3373
|
}[];
|
|
3281
3374
|
caption?: string | undefined;
|
|
@@ -3393,11 +3486,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3393
3486
|
options: {
|
|
3394
3487
|
value: string;
|
|
3395
3488
|
label: string;
|
|
3489
|
+
hint?: string | undefined;
|
|
3396
3490
|
}[];
|
|
3397
3491
|
type: "radio";
|
|
3398
3492
|
name: string;
|
|
3399
3493
|
value?: string | undefined;
|
|
3400
3494
|
label?: string | undefined;
|
|
3495
|
+
style?: "cards" | "segmented" | undefined;
|
|
3401
3496
|
} | {
|
|
3402
3497
|
options: {
|
|
3403
3498
|
value: string;
|
|
@@ -3414,6 +3509,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3414
3509
|
label: string;
|
|
3415
3510
|
name: string;
|
|
3416
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;
|
|
3417
3520
|
} | {
|
|
3418
3521
|
type: "button";
|
|
3419
3522
|
text: string;
|
|
@@ -3427,6 +3530,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3427
3530
|
cancel?: string | undefined;
|
|
3428
3531
|
} | undefined;
|
|
3429
3532
|
disabled?: boolean | undefined;
|
|
3533
|
+
hidden_for?: string[] | undefined;
|
|
3430
3534
|
} | {
|
|
3431
3535
|
type: "linkButton";
|
|
3432
3536
|
text: string;
|
|
@@ -3448,6 +3552,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3448
3552
|
cancel?: string | undefined;
|
|
3449
3553
|
} | undefined;
|
|
3450
3554
|
disabled?: boolean | undefined;
|
|
3555
|
+
hidden_for?: string[] | undefined;
|
|
3451
3556
|
} | {
|
|
3452
3557
|
type: "linkButton";
|
|
3453
3558
|
text: string;
|
|
@@ -3475,7 +3580,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3475
3580
|
type: "progress";
|
|
3476
3581
|
value?: number | undefined;
|
|
3477
3582
|
label?: string | undefined;
|
|
3478
|
-
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
3479
3583
|
} | {
|
|
3480
3584
|
type: "steps";
|
|
3481
3585
|
items: {
|
|
@@ -3524,7 +3628,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3524
3628
|
name: string;
|
|
3525
3629
|
status?: "online" | "away" | "busy" | "offline" | undefined;
|
|
3526
3630
|
initials?: string | undefined;
|
|
3527
|
-
color?: string | undefined;
|
|
3528
3631
|
src?: string | undefined;
|
|
3529
3632
|
subtitle?: string | undefined;
|
|
3530
3633
|
} | {
|
|
@@ -3532,7 +3635,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3532
3635
|
people: {
|
|
3533
3636
|
name: string;
|
|
3534
3637
|
initials?: string | undefined;
|
|
3535
|
-
color?: string | undefined;
|
|
3536
3638
|
src?: string | undefined;
|
|
3537
3639
|
}[];
|
|
3538
3640
|
label?: string | undefined;
|
|
@@ -3567,7 +3669,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3567
3669
|
type: "kanban";
|
|
3568
3670
|
columns: {
|
|
3569
3671
|
title: string;
|
|
3570
|
-
id: string;
|
|
3571
3672
|
cards: {
|
|
3572
3673
|
title: string;
|
|
3573
3674
|
id: string;
|
|
@@ -3578,6 +3679,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3578
3679
|
} | undefined;
|
|
3579
3680
|
meta?: string[] | undefined;
|
|
3580
3681
|
}[];
|
|
3682
|
+
id: string;
|
|
3581
3683
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
3582
3684
|
}[];
|
|
3583
3685
|
caption?: string | undefined;
|
|
@@ -3674,11 +3776,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3674
3776
|
options: {
|
|
3675
3777
|
value: string;
|
|
3676
3778
|
label: string;
|
|
3779
|
+
hint?: string | undefined;
|
|
3677
3780
|
}[];
|
|
3678
3781
|
type: "radio";
|
|
3679
3782
|
name: string;
|
|
3680
3783
|
value?: string | undefined;
|
|
3681
3784
|
label?: string | undefined;
|
|
3785
|
+
style?: "cards" | "segmented" | undefined;
|
|
3682
3786
|
} | {
|
|
3683
3787
|
options: {
|
|
3684
3788
|
value: string;
|
|
@@ -3695,6 +3799,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3695
3799
|
label: string;
|
|
3696
3800
|
name: string;
|
|
3697
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;
|
|
3698
3810
|
} | {
|
|
3699
3811
|
type: "button";
|
|
3700
3812
|
text: string;
|
|
@@ -3708,6 +3820,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3708
3820
|
cancel?: string | undefined;
|
|
3709
3821
|
} | undefined;
|
|
3710
3822
|
disabled?: boolean | undefined;
|
|
3823
|
+
hidden_for?: string[] | undefined;
|
|
3711
3824
|
} | {
|
|
3712
3825
|
type: "linkButton";
|
|
3713
3826
|
text: string;
|
|
@@ -3729,6 +3842,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3729
3842
|
cancel?: string | undefined;
|
|
3730
3843
|
} | undefined;
|
|
3731
3844
|
disabled?: boolean | undefined;
|
|
3845
|
+
hidden_for?: string[] | undefined;
|
|
3732
3846
|
} | {
|
|
3733
3847
|
type: "linkButton";
|
|
3734
3848
|
text: string;
|
|
@@ -3756,7 +3870,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3756
3870
|
type: "progress";
|
|
3757
3871
|
value?: number | undefined;
|
|
3758
3872
|
label?: string | undefined;
|
|
3759
|
-
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
3760
3873
|
} | {
|
|
3761
3874
|
type: "steps";
|
|
3762
3875
|
items: {
|
|
@@ -3805,7 +3918,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3805
3918
|
name: string;
|
|
3806
3919
|
status?: "online" | "away" | "busy" | "offline" | undefined;
|
|
3807
3920
|
initials?: string | undefined;
|
|
3808
|
-
color?: string | undefined;
|
|
3809
3921
|
src?: string | undefined;
|
|
3810
3922
|
subtitle?: string | undefined;
|
|
3811
3923
|
} | {
|
|
@@ -3813,7 +3925,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3813
3925
|
people: {
|
|
3814
3926
|
name: string;
|
|
3815
3927
|
initials?: string | undefined;
|
|
3816
|
-
color?: string | undefined;
|
|
3817
3928
|
src?: string | undefined;
|
|
3818
3929
|
}[];
|
|
3819
3930
|
label?: string | undefined;
|
|
@@ -3848,7 +3959,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3848
3959
|
type: "kanban";
|
|
3849
3960
|
columns: {
|
|
3850
3961
|
title: string;
|
|
3851
|
-
id: string;
|
|
3852
3962
|
cards: {
|
|
3853
3963
|
title: string;
|
|
3854
3964
|
id: string;
|
|
@@ -3859,6 +3969,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3859
3969
|
} | undefined;
|
|
3860
3970
|
meta?: string[] | undefined;
|
|
3861
3971
|
}[];
|
|
3972
|
+
id: string;
|
|
3862
3973
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
3863
3974
|
}[];
|
|
3864
3975
|
caption?: string | undefined;
|
|
@@ -3888,16 +3999,71 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3888
3999
|
expires_at?: number | undefined;
|
|
3889
4000
|
}>;
|
|
3890
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>;
|
|
3891
4029
|
export declare const UiActionContentSchema: z.ZodObject<{
|
|
3892
4030
|
v: z.ZodDefault<z.ZodLiteral<1>>;
|
|
3893
4031
|
card_id: z.ZodString;
|
|
3894
4032
|
/** 어떤 컨트롤이 트리거했는지 (버튼의 action_id 등) */
|
|
3895
4033
|
action_id: z.ZodString;
|
|
4034
|
+
/**
|
|
4035
|
+
* 사람이 읽는 컨트롤 이름 — 누른 시점의 버튼 글자(`ButtonBlock.text`)·모달 확인 라벨·명령 라벨의 **스냅샷**.
|
|
4036
|
+
* 로그·흔적은 이것을 먼저 보이고 없으면 `action_id` 로 폴백한다. 카드가 나중에 갱신·삭제돼도 "무엇을
|
|
4037
|
+
* 눌렀는지"가 이벤트 안에 남게 하려는 것이라, 렌더러가 발행 시점에 싣는다. 선택 필드 — 옛 이벤트·
|
|
4038
|
+
* 카드 없는 호출(SDK invoke)은 비어 있을 수 있다.
|
|
4039
|
+
*/
|
|
4040
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3896
4041
|
action_type: z.ZodEnum<["button", "submit", "select", "cancel"]>;
|
|
3897
4042
|
/** 폼 입력 수집 결과 (input/select/checkbox name → value) */
|
|
3898
4043
|
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3899
4044
|
/** 어떤 버튼의 value였는지 (선택) */
|
|
3900
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
|
+
}>>;
|
|
3901
4067
|
"m.relates_to": z.ZodOptional<z.ZodObject<{
|
|
3902
4068
|
rel_type: z.ZodLiteral<"m.reference">;
|
|
3903
4069
|
event_id: z.ZodString;
|
|
@@ -3915,6 +4081,13 @@ export declare const UiActionContentSchema: z.ZodObject<{
|
|
|
3915
4081
|
action_type: "cancel" | "select" | "button" | "submit";
|
|
3916
4082
|
value?: string | undefined;
|
|
3917
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;
|
|
3918
4091
|
"m.relates_to"?: {
|
|
3919
4092
|
rel_type: "m.reference";
|
|
3920
4093
|
event_id: string;
|
|
@@ -3925,7 +4098,14 @@ export declare const UiActionContentSchema: z.ZodObject<{
|
|
|
3925
4098
|
action_type: "cancel" | "select" | "button" | "submit";
|
|
3926
4099
|
value?: string | undefined;
|
|
3927
4100
|
values?: Record<string, unknown> | undefined;
|
|
4101
|
+
label?: string | undefined;
|
|
3928
4102
|
v?: 1 | undefined;
|
|
4103
|
+
client?: {
|
|
4104
|
+
platform?: string | undefined;
|
|
4105
|
+
bundle?: string | undefined;
|
|
4106
|
+
shell?: string | undefined;
|
|
4107
|
+
ua?: string | undefined;
|
|
4108
|
+
} | undefined;
|
|
3929
4109
|
"m.relates_to"?: {
|
|
3930
4110
|
rel_type: "m.reference";
|
|
3931
4111
|
event_id: string;
|
|
@@ -4639,6 +4819,105 @@ export declare const A2aResultContentSchema: z.ZodObject<{
|
|
|
4639
4819
|
result?: Record<string, unknown> | undefined;
|
|
4640
4820
|
}>;
|
|
4641
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>;
|
|
4642
4921
|
/** UI 카드를 담은 m.room.message content. 미지원 클라는 body로, 우리 클라는 [UI_CONTENT_KEY]로 렌더. */
|
|
4643
4922
|
export type UiMessageContent = {
|
|
4644
4923
|
msgtype: "m.text";
|
|
@@ -4674,11 +4953,10 @@ export declare function buildUiMessageEdit(originalEventId: string, card: Omit<U
|
|
|
4674
4953
|
};
|
|
4675
4954
|
/** 라이브 카드 부분 갱신 명세 — 바뀐 progress/steps/state/title 만 담는다. */
|
|
4676
4955
|
export interface CardPatch {
|
|
4677
|
-
/** 첫 progress 블록 갱신 — 숫자면 value, 객체면 value/label
|
|
4956
|
+
/** 첫 progress 블록 갱신 — 숫자면 value, 객체면 value/label 부분 갱신. */
|
|
4678
4957
|
progress?: number | {
|
|
4679
4958
|
value?: number;
|
|
4680
4959
|
label?: string;
|
|
4681
|
-
tone?: Tone;
|
|
4682
4960
|
};
|
|
4683
4961
|
/** 첫 steps 블록의 항목을 인덱스로 부분 갱신(작업/단계 진행). */
|
|
4684
4962
|
steps?: {
|
|
@@ -4765,6 +5043,13 @@ export declare function buildTaskCreate(task: Omit<TaskCreateContent, "v" | "sta
|
|
|
4765
5043
|
export declare function buildTaskUpdate(update: Omit<TaskUpdateContent, "v"> & {
|
|
4766
5044
|
v?: typeof SCHEMA_VERSION;
|
|
4767
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;
|
|
4768
5053
|
/** UI 액션 회신 content를 만든다. */
|
|
4769
5054
|
export declare function buildUiActionContent(action: Omit<UiActionContent, "v"> & {
|
|
4770
5055
|
v?: typeof SCHEMA_VERSION;
|