@underdogai/mesh-event-schemas 0.3.0 → 0.8.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 +6070 -693
- package/dist/apppacks.d.ts.map +1 -1
- package/dist/apppacks.js +1 -1
- package/dist/blocks.d.ts +1402 -84
- package/dist/blocks.d.ts.map +1 -1
- package/dist/blocks.js +246 -13
- package/dist/blocks.js.map +1 -1
- package/dist/capabilities.d.ts +13 -1
- package/dist/capabilities.d.ts.map +1 -1
- package/dist/capabilities.js +13 -1
- package/dist/capabilities.js.map +1 -1
- package/dist/events.d.ts +1875 -174
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +190 -2
- 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 +13 -0
- package/dist/namespace.d.ts.map +1 -1
- package/dist/namespace.js +13 -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 +36 -3
- package/dist/registry.js.map +1 -1
- package/dist/surfaces.d.ts +31135 -3417
- 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 +260 -14
- package/src/capabilities.ts +13 -1
- package/src/events.ts +207 -5
- package/src/geo.ts +75 -0
- package/src/index.ts +1 -0
- package/src/namespace.ts +13 -0
- package/src/registry.ts +38 -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"]>;
|
|
@@ -61,6 +60,37 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
61
60
|
text: string;
|
|
62
61
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
63
62
|
}>, "many">>;
|
|
63
|
+
ref: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
64
|
+
user: z.ZodString;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
user: string;
|
|
67
|
+
}, {
|
|
68
|
+
user: string;
|
|
69
|
+
}>, z.ZodObject<{
|
|
70
|
+
entity: z.ZodObject<{
|
|
71
|
+
type: z.ZodString;
|
|
72
|
+
id: z.ZodString;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
type: string;
|
|
75
|
+
id: string;
|
|
76
|
+
}, {
|
|
77
|
+
type: string;
|
|
78
|
+
id: string;
|
|
79
|
+
}>;
|
|
80
|
+
url: z.ZodOptional<z.ZodString>;
|
|
81
|
+
}, "strip", z.ZodTypeAny, {
|
|
82
|
+
entity: {
|
|
83
|
+
type: string;
|
|
84
|
+
id: string;
|
|
85
|
+
};
|
|
86
|
+
url?: string | undefined;
|
|
87
|
+
}, {
|
|
88
|
+
entity: {
|
|
89
|
+
type: string;
|
|
90
|
+
id: string;
|
|
91
|
+
};
|
|
92
|
+
url?: string | undefined;
|
|
93
|
+
}>]>>;
|
|
64
94
|
}, "strip", z.ZodTypeAny, {
|
|
65
95
|
value: string;
|
|
66
96
|
label: string;
|
|
@@ -69,6 +99,15 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
69
99
|
text: string;
|
|
70
100
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
71
101
|
}[] | undefined;
|
|
102
|
+
ref?: {
|
|
103
|
+
user: string;
|
|
104
|
+
} | {
|
|
105
|
+
entity: {
|
|
106
|
+
type: string;
|
|
107
|
+
id: string;
|
|
108
|
+
};
|
|
109
|
+
url?: string | undefined;
|
|
110
|
+
} | undefined;
|
|
72
111
|
}, {
|
|
73
112
|
value: string;
|
|
74
113
|
label: string;
|
|
@@ -77,6 +116,15 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
77
116
|
text: string;
|
|
78
117
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
79
118
|
}[] | undefined;
|
|
119
|
+
ref?: {
|
|
120
|
+
user: string;
|
|
121
|
+
} | {
|
|
122
|
+
entity: {
|
|
123
|
+
type: string;
|
|
124
|
+
id: string;
|
|
125
|
+
};
|
|
126
|
+
url?: string | undefined;
|
|
127
|
+
} | undefined;
|
|
80
128
|
}>, "many">;
|
|
81
129
|
}, "strip", z.ZodTypeAny, {
|
|
82
130
|
type: "fields";
|
|
@@ -88,6 +136,15 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
88
136
|
text: string;
|
|
89
137
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
90
138
|
}[] | undefined;
|
|
139
|
+
ref?: {
|
|
140
|
+
user: string;
|
|
141
|
+
} | {
|
|
142
|
+
entity: {
|
|
143
|
+
type: string;
|
|
144
|
+
id: string;
|
|
145
|
+
};
|
|
146
|
+
url?: string | undefined;
|
|
147
|
+
} | undefined;
|
|
91
148
|
}[];
|
|
92
149
|
}, {
|
|
93
150
|
type: "fields";
|
|
@@ -99,6 +156,15 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
99
156
|
text: string;
|
|
100
157
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
101
158
|
}[] | undefined;
|
|
159
|
+
ref?: {
|
|
160
|
+
user: string;
|
|
161
|
+
} | {
|
|
162
|
+
entity: {
|
|
163
|
+
type: string;
|
|
164
|
+
id: string;
|
|
165
|
+
};
|
|
166
|
+
url?: string | undefined;
|
|
167
|
+
} | undefined;
|
|
102
168
|
}[];
|
|
103
169
|
}>, z.ZodObject<{
|
|
104
170
|
type: z.ZodLiteral<"image">;
|
|
@@ -172,17 +238,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
172
238
|
type: z.ZodLiteral<"progress">;
|
|
173
239
|
value: z.ZodOptional<z.ZodNumber>;
|
|
174
240
|
label: z.ZodOptional<z.ZodString>;
|
|
175
|
-
tone: z.ZodOptional<z.ZodEnum<["neutral", "success", "warning", "danger", "info"]>>;
|
|
176
241
|
}, "strip", z.ZodTypeAny, {
|
|
177
242
|
type: "progress";
|
|
178
243
|
value?: number | undefined;
|
|
179
244
|
label?: string | undefined;
|
|
180
|
-
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
181
245
|
}, {
|
|
182
246
|
type: "progress";
|
|
183
247
|
value?: number | undefined;
|
|
184
248
|
label?: string | undefined;
|
|
185
|
-
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
186
249
|
}>, z.ZodObject<{
|
|
187
250
|
type: z.ZodLiteral<"steps">;
|
|
188
251
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -191,25 +254,25 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
191
254
|
note: z.ZodOptional<z.ZodString>;
|
|
192
255
|
}, "strip", z.ZodTypeAny, {
|
|
193
256
|
label: string;
|
|
194
|
-
status?: "
|
|
257
|
+
status?: "error" | "done" | "active" | "todo" | undefined;
|
|
195
258
|
note?: string | undefined;
|
|
196
259
|
}, {
|
|
197
260
|
label: string;
|
|
198
|
-
status?: "
|
|
261
|
+
status?: "error" | "done" | "active" | "todo" | undefined;
|
|
199
262
|
note?: string | undefined;
|
|
200
263
|
}>, "many">;
|
|
201
264
|
}, "strip", z.ZodTypeAny, {
|
|
202
265
|
type: "steps";
|
|
203
266
|
items: {
|
|
204
267
|
label: string;
|
|
205
|
-
status?: "
|
|
268
|
+
status?: "error" | "done" | "active" | "todo" | undefined;
|
|
206
269
|
note?: string | undefined;
|
|
207
270
|
}[];
|
|
208
271
|
}, {
|
|
209
272
|
type: "steps";
|
|
210
273
|
items: {
|
|
211
274
|
label: string;
|
|
212
|
-
status?: "
|
|
275
|
+
status?: "error" | "done" | "active" | "todo" | undefined;
|
|
213
276
|
note?: string | undefined;
|
|
214
277
|
}[];
|
|
215
278
|
}>, z.ZodObject<{
|
|
@@ -278,24 +341,70 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
278
341
|
type: z.ZodLiteral<"avatar">;
|
|
279
342
|
name: z.ZodString;
|
|
280
343
|
initials: z.ZodOptional<z.ZodString>;
|
|
281
|
-
color: z.ZodOptional<z.ZodString>;
|
|
282
344
|
src: z.ZodOptional<z.ZodString>;
|
|
283
345
|
subtitle: z.ZodOptional<z.ZodString>;
|
|
346
|
+
ref: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
347
|
+
user: z.ZodString;
|
|
348
|
+
}, "strip", z.ZodTypeAny, {
|
|
349
|
+
user: string;
|
|
350
|
+
}, {
|
|
351
|
+
user: string;
|
|
352
|
+
}>, z.ZodObject<{
|
|
353
|
+
entity: z.ZodObject<{
|
|
354
|
+
type: z.ZodString;
|
|
355
|
+
id: z.ZodString;
|
|
356
|
+
}, "strip", z.ZodTypeAny, {
|
|
357
|
+
type: string;
|
|
358
|
+
id: string;
|
|
359
|
+
}, {
|
|
360
|
+
type: string;
|
|
361
|
+
id: string;
|
|
362
|
+
}>;
|
|
363
|
+
url: z.ZodOptional<z.ZodString>;
|
|
364
|
+
}, "strip", z.ZodTypeAny, {
|
|
365
|
+
entity: {
|
|
366
|
+
type: string;
|
|
367
|
+
id: string;
|
|
368
|
+
};
|
|
369
|
+
url?: string | undefined;
|
|
370
|
+
}, {
|
|
371
|
+
entity: {
|
|
372
|
+
type: string;
|
|
373
|
+
id: string;
|
|
374
|
+
};
|
|
375
|
+
url?: string | undefined;
|
|
376
|
+
}>]>>;
|
|
284
377
|
status: z.ZodOptional<z.ZodEnum<["online", "away", "busy", "offline"]>>;
|
|
285
378
|
}, "strip", z.ZodTypeAny, {
|
|
286
379
|
type: "avatar";
|
|
287
380
|
name: string;
|
|
288
381
|
status?: "online" | "away" | "busy" | "offline" | undefined;
|
|
382
|
+
ref?: {
|
|
383
|
+
user: string;
|
|
384
|
+
} | {
|
|
385
|
+
entity: {
|
|
386
|
+
type: string;
|
|
387
|
+
id: string;
|
|
388
|
+
};
|
|
389
|
+
url?: string | undefined;
|
|
390
|
+
} | undefined;
|
|
289
391
|
initials?: string | undefined;
|
|
290
|
-
color?: string | undefined;
|
|
291
392
|
src?: string | undefined;
|
|
292
393
|
subtitle?: string | undefined;
|
|
293
394
|
}, {
|
|
294
395
|
type: "avatar";
|
|
295
396
|
name: string;
|
|
296
397
|
status?: "online" | "away" | "busy" | "offline" | undefined;
|
|
398
|
+
ref?: {
|
|
399
|
+
user: string;
|
|
400
|
+
} | {
|
|
401
|
+
entity: {
|
|
402
|
+
type: string;
|
|
403
|
+
id: string;
|
|
404
|
+
};
|
|
405
|
+
url?: string | undefined;
|
|
406
|
+
} | undefined;
|
|
297
407
|
initials?: string | undefined;
|
|
298
|
-
color?: string | undefined;
|
|
299
408
|
src?: string | undefined;
|
|
300
409
|
subtitle?: string | undefined;
|
|
301
410
|
}>, z.ZodObject<{
|
|
@@ -303,17 +412,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
303
412
|
people: z.ZodArray<z.ZodObject<{
|
|
304
413
|
name: z.ZodString;
|
|
305
414
|
initials: z.ZodOptional<z.ZodString>;
|
|
306
|
-
color: z.ZodOptional<z.ZodString>;
|
|
307
415
|
src: z.ZodOptional<z.ZodString>;
|
|
308
416
|
}, "strip", z.ZodTypeAny, {
|
|
309
417
|
name: string;
|
|
310
418
|
initials?: string | undefined;
|
|
311
|
-
color?: string | undefined;
|
|
312
419
|
src?: string | undefined;
|
|
313
420
|
}, {
|
|
314
421
|
name: string;
|
|
315
422
|
initials?: string | undefined;
|
|
316
|
-
color?: string | undefined;
|
|
317
423
|
src?: string | undefined;
|
|
318
424
|
}>, "many">;
|
|
319
425
|
max: z.ZodOptional<z.ZodNumber>;
|
|
@@ -323,7 +429,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
323
429
|
people: {
|
|
324
430
|
name: string;
|
|
325
431
|
initials?: string | undefined;
|
|
326
|
-
color?: string | undefined;
|
|
327
432
|
src?: string | undefined;
|
|
328
433
|
}[];
|
|
329
434
|
label?: string | undefined;
|
|
@@ -333,7 +438,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
333
438
|
people: {
|
|
334
439
|
name: string;
|
|
335
440
|
initials?: string | undefined;
|
|
336
|
-
color?: string | undefined;
|
|
337
441
|
src?: string | undefined;
|
|
338
442
|
}[];
|
|
339
443
|
label?: string | undefined;
|
|
@@ -407,15 +511,15 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
407
511
|
}, "strip", z.ZodTypeAny, {
|
|
408
512
|
type: "entityRef";
|
|
409
513
|
label: string;
|
|
410
|
-
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
411
|
-
url?: string | undefined;
|
|
412
514
|
entity?: string | undefined;
|
|
515
|
+
url?: string | undefined;
|
|
516
|
+
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
413
517
|
}, {
|
|
414
518
|
type: "entityRef";
|
|
415
519
|
label: string;
|
|
416
|
-
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
417
|
-
url?: string | undefined;
|
|
418
520
|
entity?: string | undefined;
|
|
521
|
+
url?: string | undefined;
|
|
522
|
+
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
419
523
|
}>, z.ZodObject<{
|
|
420
524
|
type: z.ZodLiteral<"kanban">;
|
|
421
525
|
columns: z.ZodArray<z.ZodObject<{
|
|
@@ -438,8 +542,8 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
438
542
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
439
543
|
}>>;
|
|
440
544
|
}, "strip", z.ZodTypeAny, {
|
|
441
|
-
title: string;
|
|
442
545
|
id: string;
|
|
546
|
+
title: string;
|
|
443
547
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
444
548
|
badge?: {
|
|
445
549
|
label: string;
|
|
@@ -447,8 +551,8 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
447
551
|
} | undefined;
|
|
448
552
|
meta?: string[] | undefined;
|
|
449
553
|
}, {
|
|
450
|
-
title: string;
|
|
451
554
|
id: string;
|
|
555
|
+
title: string;
|
|
452
556
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
453
557
|
badge?: {
|
|
454
558
|
label: string;
|
|
@@ -457,11 +561,11 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
457
561
|
meta?: string[] | undefined;
|
|
458
562
|
}>, "many">;
|
|
459
563
|
}, "strip", z.ZodTypeAny, {
|
|
460
|
-
title: string;
|
|
461
564
|
id: string;
|
|
565
|
+
title: string;
|
|
462
566
|
cards: {
|
|
463
|
-
title: string;
|
|
464
567
|
id: string;
|
|
568
|
+
title: string;
|
|
465
569
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
466
570
|
badge?: {
|
|
467
571
|
label: string;
|
|
@@ -471,11 +575,11 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
471
575
|
}[];
|
|
472
576
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
473
577
|
}, {
|
|
474
|
-
title: string;
|
|
475
578
|
id: string;
|
|
579
|
+
title: string;
|
|
476
580
|
cards: {
|
|
477
|
-
title: string;
|
|
478
581
|
id: string;
|
|
582
|
+
title: string;
|
|
479
583
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
480
584
|
badge?: {
|
|
481
585
|
label: string;
|
|
@@ -489,11 +593,11 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
489
593
|
}, "strip", z.ZodTypeAny, {
|
|
490
594
|
type: "kanban";
|
|
491
595
|
columns: {
|
|
492
|
-
title: string;
|
|
493
596
|
id: string;
|
|
597
|
+
title: string;
|
|
494
598
|
cards: {
|
|
495
|
-
title: string;
|
|
496
599
|
id: string;
|
|
600
|
+
title: string;
|
|
497
601
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
498
602
|
badge?: {
|
|
499
603
|
label: string;
|
|
@@ -507,11 +611,11 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
507
611
|
}, {
|
|
508
612
|
type: "kanban";
|
|
509
613
|
columns: {
|
|
510
|
-
title: string;
|
|
511
614
|
id: string;
|
|
615
|
+
title: string;
|
|
512
616
|
cards: {
|
|
513
|
-
title: string;
|
|
514
617
|
id: string;
|
|
618
|
+
title: string;
|
|
515
619
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
516
620
|
badge?: {
|
|
517
621
|
label: string;
|
|
@@ -540,6 +644,175 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
540
644
|
label?: string | undefined;
|
|
541
645
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
542
646
|
expiredText?: string | undefined;
|
|
647
|
+
}>, z.ZodObject<{
|
|
648
|
+
type: z.ZodLiteral<"activity">;
|
|
649
|
+
label: z.ZodOptional<z.ZodString>;
|
|
650
|
+
maxVisible: z.ZodOptional<z.ZodNumber>;
|
|
651
|
+
items: z.ZodArray<z.ZodObject<{
|
|
652
|
+
who: z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
653
|
+
user: z.ZodString;
|
|
654
|
+
}, "strip", z.ZodTypeAny, {
|
|
655
|
+
user: string;
|
|
656
|
+
}, {
|
|
657
|
+
user: string;
|
|
658
|
+
}>, z.ZodObject<{
|
|
659
|
+
entity: z.ZodObject<{
|
|
660
|
+
type: z.ZodString;
|
|
661
|
+
id: z.ZodString;
|
|
662
|
+
}, "strip", z.ZodTypeAny, {
|
|
663
|
+
type: string;
|
|
664
|
+
id: string;
|
|
665
|
+
}, {
|
|
666
|
+
type: string;
|
|
667
|
+
id: string;
|
|
668
|
+
}>;
|
|
669
|
+
url: z.ZodOptional<z.ZodString>;
|
|
670
|
+
}, "strip", z.ZodTypeAny, {
|
|
671
|
+
entity: {
|
|
672
|
+
type: string;
|
|
673
|
+
id: string;
|
|
674
|
+
};
|
|
675
|
+
url?: string | undefined;
|
|
676
|
+
}, {
|
|
677
|
+
entity: {
|
|
678
|
+
type: string;
|
|
679
|
+
id: string;
|
|
680
|
+
};
|
|
681
|
+
url?: string | undefined;
|
|
682
|
+
}>]>]>;
|
|
683
|
+
what: z.ZodString;
|
|
684
|
+
at: z.ZodString;
|
|
685
|
+
tone: z.ZodOptional<z.ZodEnum<["neutral", "success", "warning", "danger", "info"]>>;
|
|
686
|
+
to: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
687
|
+
user: z.ZodString;
|
|
688
|
+
}, "strip", z.ZodTypeAny, {
|
|
689
|
+
user: string;
|
|
690
|
+
}, {
|
|
691
|
+
user: string;
|
|
692
|
+
}>, z.ZodObject<{
|
|
693
|
+
entity: z.ZodObject<{
|
|
694
|
+
type: z.ZodString;
|
|
695
|
+
id: z.ZodString;
|
|
696
|
+
}, "strip", z.ZodTypeAny, {
|
|
697
|
+
type: string;
|
|
698
|
+
id: string;
|
|
699
|
+
}, {
|
|
700
|
+
type: string;
|
|
701
|
+
id: string;
|
|
702
|
+
}>;
|
|
703
|
+
url: z.ZodOptional<z.ZodString>;
|
|
704
|
+
}, "strip", z.ZodTypeAny, {
|
|
705
|
+
entity: {
|
|
706
|
+
type: string;
|
|
707
|
+
id: string;
|
|
708
|
+
};
|
|
709
|
+
url?: string | undefined;
|
|
710
|
+
}, {
|
|
711
|
+
entity: {
|
|
712
|
+
type: string;
|
|
713
|
+
id: string;
|
|
714
|
+
};
|
|
715
|
+
url?: string | undefined;
|
|
716
|
+
}>]>]>>;
|
|
717
|
+
}, "strip", z.ZodTypeAny, {
|
|
718
|
+
at: string;
|
|
719
|
+
who: string | {
|
|
720
|
+
user: string;
|
|
721
|
+
} | {
|
|
722
|
+
entity: {
|
|
723
|
+
type: string;
|
|
724
|
+
id: string;
|
|
725
|
+
};
|
|
726
|
+
url?: string | undefined;
|
|
727
|
+
};
|
|
728
|
+
what: string;
|
|
729
|
+
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
730
|
+
to?: string | {
|
|
731
|
+
user: string;
|
|
732
|
+
} | {
|
|
733
|
+
entity: {
|
|
734
|
+
type: string;
|
|
735
|
+
id: string;
|
|
736
|
+
};
|
|
737
|
+
url?: string | undefined;
|
|
738
|
+
} | undefined;
|
|
739
|
+
}, {
|
|
740
|
+
at: string;
|
|
741
|
+
who: string | {
|
|
742
|
+
user: string;
|
|
743
|
+
} | {
|
|
744
|
+
entity: {
|
|
745
|
+
type: string;
|
|
746
|
+
id: string;
|
|
747
|
+
};
|
|
748
|
+
url?: string | undefined;
|
|
749
|
+
};
|
|
750
|
+
what: string;
|
|
751
|
+
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
752
|
+
to?: string | {
|
|
753
|
+
user: string;
|
|
754
|
+
} | {
|
|
755
|
+
entity: {
|
|
756
|
+
type: string;
|
|
757
|
+
id: string;
|
|
758
|
+
};
|
|
759
|
+
url?: string | undefined;
|
|
760
|
+
} | undefined;
|
|
761
|
+
}>, "many">;
|
|
762
|
+
}, "strip", z.ZodTypeAny, {
|
|
763
|
+
type: "activity";
|
|
764
|
+
items: {
|
|
765
|
+
at: string;
|
|
766
|
+
who: string | {
|
|
767
|
+
user: string;
|
|
768
|
+
} | {
|
|
769
|
+
entity: {
|
|
770
|
+
type: string;
|
|
771
|
+
id: string;
|
|
772
|
+
};
|
|
773
|
+
url?: string | undefined;
|
|
774
|
+
};
|
|
775
|
+
what: string;
|
|
776
|
+
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
777
|
+
to?: string | {
|
|
778
|
+
user: string;
|
|
779
|
+
} | {
|
|
780
|
+
entity: {
|
|
781
|
+
type: string;
|
|
782
|
+
id: string;
|
|
783
|
+
};
|
|
784
|
+
url?: string | undefined;
|
|
785
|
+
} | undefined;
|
|
786
|
+
}[];
|
|
787
|
+
label?: string | undefined;
|
|
788
|
+
maxVisible?: number | undefined;
|
|
789
|
+
}, {
|
|
790
|
+
type: "activity";
|
|
791
|
+
items: {
|
|
792
|
+
at: string;
|
|
793
|
+
who: string | {
|
|
794
|
+
user: string;
|
|
795
|
+
} | {
|
|
796
|
+
entity: {
|
|
797
|
+
type: string;
|
|
798
|
+
id: string;
|
|
799
|
+
};
|
|
800
|
+
url?: string | undefined;
|
|
801
|
+
};
|
|
802
|
+
what: string;
|
|
803
|
+
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
804
|
+
to?: string | {
|
|
805
|
+
user: string;
|
|
806
|
+
} | {
|
|
807
|
+
entity: {
|
|
808
|
+
type: string;
|
|
809
|
+
id: string;
|
|
810
|
+
};
|
|
811
|
+
url?: string | undefined;
|
|
812
|
+
} | undefined;
|
|
813
|
+
}[];
|
|
814
|
+
label?: string | undefined;
|
|
815
|
+
maxVisible?: number | undefined;
|
|
543
816
|
}>, z.ZodObject<{
|
|
544
817
|
type: z.ZodLiteral<"code">;
|
|
545
818
|
code: z.ZodString;
|
|
@@ -599,6 +872,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
599
872
|
title: z.ZodString;
|
|
600
873
|
open: z.ZodOptional<z.ZodBoolean>;
|
|
601
874
|
tone: z.ZodOptional<z.ZodEnum<["neutral", "success", "warning", "danger", "info"]>>;
|
|
875
|
+
legacy_for: z.ZodOptional<z.ZodEnum<["activity"]>>;
|
|
602
876
|
blocks: z.ZodArray<z.ZodLazy<z.ZodTypeAny>, "many">;
|
|
603
877
|
}, "strip", z.ZodTypeAny, {
|
|
604
878
|
type: "collapsible";
|
|
@@ -606,12 +880,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
606
880
|
blocks: any[];
|
|
607
881
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
608
882
|
open?: boolean | undefined;
|
|
883
|
+
legacy_for?: "activity" | undefined;
|
|
609
884
|
}, {
|
|
610
885
|
type: "collapsible";
|
|
611
886
|
title: string;
|
|
612
887
|
blocks: any[];
|
|
613
888
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
614
889
|
open?: boolean | undefined;
|
|
890
|
+
legacy_for?: "activity" | undefined;
|
|
615
891
|
}>, z.ZodObject<{
|
|
616
892
|
type: z.ZodLiteral<"widget">;
|
|
617
893
|
url: z.ZodString;
|
|
@@ -643,26 +919,44 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
643
919
|
value: z.ZodOptional<z.ZodString>;
|
|
644
920
|
accept: z.ZodOptional<z.ZodString>;
|
|
645
921
|
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
922
|
+
min: z.ZodOptional<z.ZodString>;
|
|
923
|
+
max: z.ZodOptional<z.ZodString>;
|
|
924
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
925
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
926
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
927
|
+
error: z.ZodOptional<z.ZodString>;
|
|
646
928
|
}, "strip", z.ZodTypeAny, {
|
|
647
929
|
type: "input";
|
|
648
930
|
name: string;
|
|
649
931
|
value?: string | undefined;
|
|
650
932
|
label?: string | undefined;
|
|
651
|
-
input?: "number" | "
|
|
933
|
+
input?: "number" | "date" | "url" | "text" | "textarea" | "datetime" | "time" | "email" | "file" | undefined;
|
|
652
934
|
placeholder?: string | undefined;
|
|
653
935
|
required?: boolean | undefined;
|
|
654
936
|
accept?: string | undefined;
|
|
655
937
|
multiple?: boolean | undefined;
|
|
938
|
+
min?: string | undefined;
|
|
939
|
+
max?: string | undefined;
|
|
940
|
+
minLength?: number | undefined;
|
|
941
|
+
maxLength?: number | undefined;
|
|
942
|
+
pattern?: string | undefined;
|
|
943
|
+
error?: string | undefined;
|
|
656
944
|
}, {
|
|
657
945
|
type: "input";
|
|
658
946
|
name: string;
|
|
659
947
|
value?: string | undefined;
|
|
660
948
|
label?: string | undefined;
|
|
661
|
-
input?: "number" | "
|
|
949
|
+
input?: "number" | "date" | "url" | "text" | "textarea" | "datetime" | "time" | "email" | "file" | undefined;
|
|
662
950
|
placeholder?: string | undefined;
|
|
663
951
|
required?: boolean | undefined;
|
|
664
952
|
accept?: string | undefined;
|
|
665
953
|
multiple?: boolean | undefined;
|
|
954
|
+
min?: string | undefined;
|
|
955
|
+
max?: string | undefined;
|
|
956
|
+
minLength?: number | undefined;
|
|
957
|
+
maxLength?: number | undefined;
|
|
958
|
+
pattern?: string | undefined;
|
|
959
|
+
error?: string | undefined;
|
|
666
960
|
}>, z.ZodObject<{
|
|
667
961
|
type: z.ZodLiteral<"toggle">;
|
|
668
962
|
name: z.ZodString;
|
|
@@ -718,32 +1012,46 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
718
1012
|
options: z.ZodArray<z.ZodObject<{
|
|
719
1013
|
value: z.ZodString;
|
|
720
1014
|
label: z.ZodString;
|
|
1015
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
721
1016
|
}, "strip", z.ZodTypeAny, {
|
|
722
1017
|
value: string;
|
|
723
1018
|
label: string;
|
|
1019
|
+
hint?: string | undefined;
|
|
724
1020
|
}, {
|
|
725
1021
|
value: string;
|
|
726
1022
|
label: string;
|
|
1023
|
+
hint?: string | undefined;
|
|
727
1024
|
}>, "many">;
|
|
728
1025
|
value: z.ZodOptional<z.ZodString>;
|
|
1026
|
+
style: z.ZodOptional<z.ZodEnum<["cards", "segmented"]>>;
|
|
1027
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1028
|
+
error: z.ZodOptional<z.ZodString>;
|
|
729
1029
|
}, "strip", z.ZodTypeAny, {
|
|
730
1030
|
options: {
|
|
731
1031
|
value: string;
|
|
732
1032
|
label: string;
|
|
1033
|
+
hint?: string | undefined;
|
|
733
1034
|
}[];
|
|
734
1035
|
type: "radio";
|
|
735
1036
|
name: string;
|
|
736
1037
|
value?: string | undefined;
|
|
737
1038
|
label?: string | undefined;
|
|
1039
|
+
required?: boolean | undefined;
|
|
1040
|
+
error?: string | undefined;
|
|
1041
|
+
style?: "cards" | "segmented" | undefined;
|
|
738
1042
|
}, {
|
|
739
1043
|
options: {
|
|
740
1044
|
value: string;
|
|
741
1045
|
label: string;
|
|
1046
|
+
hint?: string | undefined;
|
|
742
1047
|
}[];
|
|
743
1048
|
type: "radio";
|
|
744
1049
|
name: string;
|
|
745
1050
|
value?: string | undefined;
|
|
746
1051
|
label?: string | undefined;
|
|
1052
|
+
required?: boolean | undefined;
|
|
1053
|
+
error?: string | undefined;
|
|
1054
|
+
style?: "cards" | "segmented" | undefined;
|
|
747
1055
|
}>, z.ZodObject<{
|
|
748
1056
|
type: z.ZodLiteral<"select">;
|
|
749
1057
|
name: z.ZodString;
|
|
@@ -752,36 +1060,115 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
752
1060
|
options: z.ZodArray<z.ZodObject<{
|
|
753
1061
|
value: z.ZodString;
|
|
754
1062
|
label: z.ZodString;
|
|
1063
|
+
ref: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1064
|
+
user: z.ZodString;
|
|
1065
|
+
}, "strip", z.ZodTypeAny, {
|
|
1066
|
+
user: string;
|
|
1067
|
+
}, {
|
|
1068
|
+
user: string;
|
|
1069
|
+
}>, z.ZodObject<{
|
|
1070
|
+
entity: z.ZodObject<{
|
|
1071
|
+
type: z.ZodString;
|
|
1072
|
+
id: z.ZodString;
|
|
1073
|
+
}, "strip", z.ZodTypeAny, {
|
|
1074
|
+
type: string;
|
|
1075
|
+
id: string;
|
|
1076
|
+
}, {
|
|
1077
|
+
type: string;
|
|
1078
|
+
id: string;
|
|
1079
|
+
}>;
|
|
1080
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1081
|
+
}, "strip", z.ZodTypeAny, {
|
|
1082
|
+
entity: {
|
|
1083
|
+
type: string;
|
|
1084
|
+
id: string;
|
|
1085
|
+
};
|
|
1086
|
+
url?: string | undefined;
|
|
1087
|
+
}, {
|
|
1088
|
+
entity: {
|
|
1089
|
+
type: string;
|
|
1090
|
+
id: string;
|
|
1091
|
+
};
|
|
1092
|
+
url?: string | undefined;
|
|
1093
|
+
}>]>>;
|
|
755
1094
|
}, "strip", z.ZodTypeAny, {
|
|
756
1095
|
value: string;
|
|
757
1096
|
label: string;
|
|
1097
|
+
ref?: {
|
|
1098
|
+
user: string;
|
|
1099
|
+
} | {
|
|
1100
|
+
entity: {
|
|
1101
|
+
type: string;
|
|
1102
|
+
id: string;
|
|
1103
|
+
};
|
|
1104
|
+
url?: string | undefined;
|
|
1105
|
+
} | undefined;
|
|
758
1106
|
}, {
|
|
759
1107
|
value: string;
|
|
760
1108
|
label: string;
|
|
1109
|
+
ref?: {
|
|
1110
|
+
user: string;
|
|
1111
|
+
} | {
|
|
1112
|
+
entity: {
|
|
1113
|
+
type: string;
|
|
1114
|
+
id: string;
|
|
1115
|
+
};
|
|
1116
|
+
url?: string | undefined;
|
|
1117
|
+
} | undefined;
|
|
761
1118
|
}>, "many">;
|
|
762
1119
|
value: z.ZodOptional<z.ZodString>;
|
|
763
1120
|
multi: z.ZodOptional<z.ZodBoolean>;
|
|
1121
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1122
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
1123
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1124
|
+
error: z.ZodOptional<z.ZodString>;
|
|
764
1125
|
}, "strip", z.ZodTypeAny, {
|
|
765
1126
|
options: {
|
|
766
1127
|
value: string;
|
|
767
1128
|
label: string;
|
|
1129
|
+
ref?: {
|
|
1130
|
+
user: string;
|
|
1131
|
+
} | {
|
|
1132
|
+
entity: {
|
|
1133
|
+
type: string;
|
|
1134
|
+
id: string;
|
|
1135
|
+
};
|
|
1136
|
+
url?: string | undefined;
|
|
1137
|
+
} | undefined;
|
|
768
1138
|
}[];
|
|
769
1139
|
type: "select";
|
|
770
1140
|
name: string;
|
|
771
1141
|
value?: string | undefined;
|
|
772
1142
|
label?: string | undefined;
|
|
773
1143
|
placeholder?: string | undefined;
|
|
1144
|
+
required?: boolean | undefined;
|
|
1145
|
+
min?: number | undefined;
|
|
1146
|
+
max?: number | undefined;
|
|
1147
|
+
error?: string | undefined;
|
|
774
1148
|
multi?: boolean | undefined;
|
|
775
1149
|
}, {
|
|
776
1150
|
options: {
|
|
777
1151
|
value: string;
|
|
778
1152
|
label: string;
|
|
1153
|
+
ref?: {
|
|
1154
|
+
user: string;
|
|
1155
|
+
} | {
|
|
1156
|
+
entity: {
|
|
1157
|
+
type: string;
|
|
1158
|
+
id: string;
|
|
1159
|
+
};
|
|
1160
|
+
url?: string | undefined;
|
|
1161
|
+
} | undefined;
|
|
779
1162
|
}[];
|
|
780
1163
|
type: "select";
|
|
781
1164
|
name: string;
|
|
782
1165
|
value?: string | undefined;
|
|
783
1166
|
label?: string | undefined;
|
|
784
1167
|
placeholder?: string | undefined;
|
|
1168
|
+
required?: boolean | undefined;
|
|
1169
|
+
min?: number | undefined;
|
|
1170
|
+
max?: number | undefined;
|
|
1171
|
+
error?: string | undefined;
|
|
785
1172
|
multi?: boolean | undefined;
|
|
786
1173
|
}>, z.ZodObject<{
|
|
787
1174
|
type: z.ZodLiteral<"checkbox">;
|
|
@@ -798,6 +1185,30 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
798
1185
|
label: string;
|
|
799
1186
|
name: string;
|
|
800
1187
|
checked?: boolean | undefined;
|
|
1188
|
+
}>, z.ZodObject<{
|
|
1189
|
+
type: z.ZodLiteral<"location">;
|
|
1190
|
+
name: z.ZodString;
|
|
1191
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1192
|
+
purpose: z.ZodOptional<z.ZodString>;
|
|
1193
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1194
|
+
precise: z.ZodOptional<z.ZodBoolean>;
|
|
1195
|
+
buttonText: z.ZodOptional<z.ZodString>;
|
|
1196
|
+
}, "strip", z.ZodTypeAny, {
|
|
1197
|
+
type: "location";
|
|
1198
|
+
name: string;
|
|
1199
|
+
label?: string | undefined;
|
|
1200
|
+
required?: boolean | undefined;
|
|
1201
|
+
purpose?: string | undefined;
|
|
1202
|
+
precise?: boolean | undefined;
|
|
1203
|
+
buttonText?: string | undefined;
|
|
1204
|
+
}, {
|
|
1205
|
+
type: "location";
|
|
1206
|
+
name: string;
|
|
1207
|
+
label?: string | undefined;
|
|
1208
|
+
required?: boolean | undefined;
|
|
1209
|
+
purpose?: string | undefined;
|
|
1210
|
+
precise?: boolean | undefined;
|
|
1211
|
+
buttonText?: string | undefined;
|
|
801
1212
|
}>, z.ZodObject<{
|
|
802
1213
|
type: z.ZodLiteral<"button">;
|
|
803
1214
|
action_id: z.ZodString;
|
|
@@ -821,6 +1232,9 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
821
1232
|
cancel?: string | undefined;
|
|
822
1233
|
}>>;
|
|
823
1234
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
1235
|
+
hidden_for: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1236
|
+
visible_for: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1237
|
+
disabled_reason: z.ZodOptional<z.ZodString>;
|
|
824
1238
|
}, "strip", z.ZodTypeAny, {
|
|
825
1239
|
type: "button";
|
|
826
1240
|
text: string;
|
|
@@ -834,6 +1248,9 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
834
1248
|
cancel?: string | undefined;
|
|
835
1249
|
} | undefined;
|
|
836
1250
|
disabled?: boolean | undefined;
|
|
1251
|
+
hidden_for?: string[] | undefined;
|
|
1252
|
+
visible_for?: string[] | undefined;
|
|
1253
|
+
disabled_reason?: string | undefined;
|
|
837
1254
|
}, {
|
|
838
1255
|
type: "button";
|
|
839
1256
|
text: string;
|
|
@@ -847,6 +1264,9 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
847
1264
|
cancel?: string | undefined;
|
|
848
1265
|
} | undefined;
|
|
849
1266
|
disabled?: boolean | undefined;
|
|
1267
|
+
hidden_for?: string[] | undefined;
|
|
1268
|
+
visible_for?: string[] | undefined;
|
|
1269
|
+
disabled_reason?: string | undefined;
|
|
850
1270
|
}>, z.ZodObject<{
|
|
851
1271
|
type: z.ZodLiteral<"linkButton">;
|
|
852
1272
|
text: z.ZodString;
|
|
@@ -855,14 +1275,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
855
1275
|
external: z.ZodOptional<z.ZodBoolean>;
|
|
856
1276
|
}, "strip", z.ZodTypeAny, {
|
|
857
1277
|
type: "linkButton";
|
|
858
|
-
text: string;
|
|
859
1278
|
url: string;
|
|
1279
|
+
text: string;
|
|
860
1280
|
style?: "danger" | "default" | "primary" | undefined;
|
|
861
1281
|
external?: boolean | undefined;
|
|
862
1282
|
}, {
|
|
863
1283
|
type: "linkButton";
|
|
864
|
-
text: string;
|
|
865
1284
|
url: string;
|
|
1285
|
+
text: string;
|
|
866
1286
|
style?: "danger" | "default" | "primary" | undefined;
|
|
867
1287
|
external?: boolean | undefined;
|
|
868
1288
|
}>, z.ZodObject<{
|
|
@@ -890,6 +1310,9 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
890
1310
|
cancel?: string | undefined;
|
|
891
1311
|
}>>;
|
|
892
1312
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
1313
|
+
hidden_for: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1314
|
+
visible_for: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1315
|
+
disabled_reason: z.ZodOptional<z.ZodString>;
|
|
893
1316
|
}, "strip", z.ZodTypeAny, {
|
|
894
1317
|
type: "button";
|
|
895
1318
|
text: string;
|
|
@@ -903,6 +1326,9 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
903
1326
|
cancel?: string | undefined;
|
|
904
1327
|
} | undefined;
|
|
905
1328
|
disabled?: boolean | undefined;
|
|
1329
|
+
hidden_for?: string[] | undefined;
|
|
1330
|
+
visible_for?: string[] | undefined;
|
|
1331
|
+
disabled_reason?: string | undefined;
|
|
906
1332
|
}, {
|
|
907
1333
|
type: "button";
|
|
908
1334
|
text: string;
|
|
@@ -916,6 +1342,9 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
916
1342
|
cancel?: string | undefined;
|
|
917
1343
|
} | undefined;
|
|
918
1344
|
disabled?: boolean | undefined;
|
|
1345
|
+
hidden_for?: string[] | undefined;
|
|
1346
|
+
visible_for?: string[] | undefined;
|
|
1347
|
+
disabled_reason?: string | undefined;
|
|
919
1348
|
}>, z.ZodObject<{
|
|
920
1349
|
type: z.ZodLiteral<"linkButton">;
|
|
921
1350
|
text: z.ZodString;
|
|
@@ -924,14 +1353,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
924
1353
|
external: z.ZodOptional<z.ZodBoolean>;
|
|
925
1354
|
}, "strip", z.ZodTypeAny, {
|
|
926
1355
|
type: "linkButton";
|
|
927
|
-
text: string;
|
|
928
1356
|
url: string;
|
|
1357
|
+
text: string;
|
|
929
1358
|
style?: "danger" | "default" | "primary" | undefined;
|
|
930
1359
|
external?: boolean | undefined;
|
|
931
1360
|
}, {
|
|
932
1361
|
type: "linkButton";
|
|
933
|
-
text: string;
|
|
934
1362
|
url: string;
|
|
1363
|
+
text: string;
|
|
935
1364
|
style?: "danger" | "default" | "primary" | undefined;
|
|
936
1365
|
external?: boolean | undefined;
|
|
937
1366
|
}>]>, "many">;
|
|
@@ -950,10 +1379,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
950
1379
|
cancel?: string | undefined;
|
|
951
1380
|
} | undefined;
|
|
952
1381
|
disabled?: boolean | undefined;
|
|
1382
|
+
hidden_for?: string[] | undefined;
|
|
1383
|
+
visible_for?: string[] | undefined;
|
|
1384
|
+
disabled_reason?: string | undefined;
|
|
953
1385
|
} | {
|
|
954
1386
|
type: "linkButton";
|
|
955
|
-
text: string;
|
|
956
1387
|
url: string;
|
|
1388
|
+
text: string;
|
|
957
1389
|
style?: "danger" | "default" | "primary" | undefined;
|
|
958
1390
|
external?: boolean | undefined;
|
|
959
1391
|
})[];
|
|
@@ -972,10 +1404,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
972
1404
|
cancel?: string | undefined;
|
|
973
1405
|
} | undefined;
|
|
974
1406
|
disabled?: boolean | undefined;
|
|
1407
|
+
hidden_for?: string[] | undefined;
|
|
1408
|
+
visible_for?: string[] | undefined;
|
|
1409
|
+
disabled_reason?: string | undefined;
|
|
975
1410
|
} | {
|
|
976
1411
|
type: "linkButton";
|
|
977
|
-
text: string;
|
|
978
1412
|
url: string;
|
|
1413
|
+
text: string;
|
|
979
1414
|
style?: "danger" | "default" | "primary" | undefined;
|
|
980
1415
|
external?: boolean | undefined;
|
|
981
1416
|
})[];
|
|
@@ -1004,6 +1439,9 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1004
1439
|
cancel?: string | undefined;
|
|
1005
1440
|
}>>;
|
|
1006
1441
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
1442
|
+
visible_for: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1443
|
+
hidden_for: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1444
|
+
disabled_reason: z.ZodOptional<z.ZodString>;
|
|
1007
1445
|
}, "strip", z.ZodTypeAny, {
|
|
1008
1446
|
text: string;
|
|
1009
1447
|
action_id: string;
|
|
@@ -1016,6 +1454,9 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1016
1454
|
cancel?: string | undefined;
|
|
1017
1455
|
} | undefined;
|
|
1018
1456
|
disabled?: boolean | undefined;
|
|
1457
|
+
hidden_for?: string[] | undefined;
|
|
1458
|
+
visible_for?: string[] | undefined;
|
|
1459
|
+
disabled_reason?: string | undefined;
|
|
1019
1460
|
}, {
|
|
1020
1461
|
text: string;
|
|
1021
1462
|
action_id: string;
|
|
@@ -1028,6 +1469,9 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1028
1469
|
cancel?: string | undefined;
|
|
1029
1470
|
} | undefined;
|
|
1030
1471
|
disabled?: boolean | undefined;
|
|
1472
|
+
hidden_for?: string[] | undefined;
|
|
1473
|
+
visible_for?: string[] | undefined;
|
|
1474
|
+
disabled_reason?: string | undefined;
|
|
1031
1475
|
}>, "many">;
|
|
1032
1476
|
}, "strip", z.ZodTypeAny, {
|
|
1033
1477
|
type: "overflow";
|
|
@@ -1043,6 +1487,9 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1043
1487
|
cancel?: string | undefined;
|
|
1044
1488
|
} | undefined;
|
|
1045
1489
|
disabled?: boolean | undefined;
|
|
1490
|
+
hidden_for?: string[] | undefined;
|
|
1491
|
+
visible_for?: string[] | undefined;
|
|
1492
|
+
disabled_reason?: string | undefined;
|
|
1046
1493
|
}[];
|
|
1047
1494
|
label?: string | undefined;
|
|
1048
1495
|
}, {
|
|
@@ -1059,6 +1506,9 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1059
1506
|
cancel?: string | undefined;
|
|
1060
1507
|
} | undefined;
|
|
1061
1508
|
disabled?: boolean | undefined;
|
|
1509
|
+
hidden_for?: string[] | undefined;
|
|
1510
|
+
visible_for?: string[] | undefined;
|
|
1511
|
+
disabled_reason?: string | undefined;
|
|
1062
1512
|
}[];
|
|
1063
1513
|
label?: string | undefined;
|
|
1064
1514
|
}>]>, "many">>;
|
|
@@ -1114,6 +1564,37 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1114
1564
|
text: string;
|
|
1115
1565
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
1116
1566
|
}>, "many">>;
|
|
1567
|
+
ref: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1568
|
+
user: z.ZodString;
|
|
1569
|
+
}, "strip", z.ZodTypeAny, {
|
|
1570
|
+
user: string;
|
|
1571
|
+
}, {
|
|
1572
|
+
user: string;
|
|
1573
|
+
}>, z.ZodObject<{
|
|
1574
|
+
entity: z.ZodObject<{
|
|
1575
|
+
type: z.ZodString;
|
|
1576
|
+
id: z.ZodString;
|
|
1577
|
+
}, "strip", z.ZodTypeAny, {
|
|
1578
|
+
type: string;
|
|
1579
|
+
id: string;
|
|
1580
|
+
}, {
|
|
1581
|
+
type: string;
|
|
1582
|
+
id: string;
|
|
1583
|
+
}>;
|
|
1584
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1585
|
+
}, "strip", z.ZodTypeAny, {
|
|
1586
|
+
entity: {
|
|
1587
|
+
type: string;
|
|
1588
|
+
id: string;
|
|
1589
|
+
};
|
|
1590
|
+
url?: string | undefined;
|
|
1591
|
+
}, {
|
|
1592
|
+
entity: {
|
|
1593
|
+
type: string;
|
|
1594
|
+
id: string;
|
|
1595
|
+
};
|
|
1596
|
+
url?: string | undefined;
|
|
1597
|
+
}>]>>;
|
|
1117
1598
|
}, "strip", z.ZodTypeAny, {
|
|
1118
1599
|
value: string;
|
|
1119
1600
|
label: string;
|
|
@@ -1122,6 +1603,15 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1122
1603
|
text: string;
|
|
1123
1604
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
1124
1605
|
}[] | undefined;
|
|
1606
|
+
ref?: {
|
|
1607
|
+
user: string;
|
|
1608
|
+
} | {
|
|
1609
|
+
entity: {
|
|
1610
|
+
type: string;
|
|
1611
|
+
id: string;
|
|
1612
|
+
};
|
|
1613
|
+
url?: string | undefined;
|
|
1614
|
+
} | undefined;
|
|
1125
1615
|
}, {
|
|
1126
1616
|
value: string;
|
|
1127
1617
|
label: string;
|
|
@@ -1130,6 +1620,15 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1130
1620
|
text: string;
|
|
1131
1621
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
1132
1622
|
}[] | undefined;
|
|
1623
|
+
ref?: {
|
|
1624
|
+
user: string;
|
|
1625
|
+
} | {
|
|
1626
|
+
entity: {
|
|
1627
|
+
type: string;
|
|
1628
|
+
id: string;
|
|
1629
|
+
};
|
|
1630
|
+
url?: string | undefined;
|
|
1631
|
+
} | undefined;
|
|
1133
1632
|
}>, "many">;
|
|
1134
1633
|
}, "strip", z.ZodTypeAny, {
|
|
1135
1634
|
type: "fields";
|
|
@@ -1141,6 +1640,15 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1141
1640
|
text: string;
|
|
1142
1641
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
1143
1642
|
}[] | undefined;
|
|
1643
|
+
ref?: {
|
|
1644
|
+
user: string;
|
|
1645
|
+
} | {
|
|
1646
|
+
entity: {
|
|
1647
|
+
type: string;
|
|
1648
|
+
id: string;
|
|
1649
|
+
};
|
|
1650
|
+
url?: string | undefined;
|
|
1651
|
+
} | undefined;
|
|
1144
1652
|
}[];
|
|
1145
1653
|
}, {
|
|
1146
1654
|
type: "fields";
|
|
@@ -1152,6 +1660,15 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1152
1660
|
text: string;
|
|
1153
1661
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
1154
1662
|
}[] | undefined;
|
|
1663
|
+
ref?: {
|
|
1664
|
+
user: string;
|
|
1665
|
+
} | {
|
|
1666
|
+
entity: {
|
|
1667
|
+
type: string;
|
|
1668
|
+
id: string;
|
|
1669
|
+
};
|
|
1670
|
+
url?: string | undefined;
|
|
1671
|
+
} | undefined;
|
|
1155
1672
|
}[];
|
|
1156
1673
|
}>, z.ZodObject<{
|
|
1157
1674
|
type: z.ZodLiteral<"image">;
|
|
@@ -1225,17 +1742,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1225
1742
|
type: z.ZodLiteral<"progress">;
|
|
1226
1743
|
value: z.ZodOptional<z.ZodNumber>;
|
|
1227
1744
|
label: z.ZodOptional<z.ZodString>;
|
|
1228
|
-
tone: z.ZodOptional<z.ZodEnum<["neutral", "success", "warning", "danger", "info"]>>;
|
|
1229
1745
|
}, "strip", z.ZodTypeAny, {
|
|
1230
1746
|
type: "progress";
|
|
1231
1747
|
value?: number | undefined;
|
|
1232
1748
|
label?: string | undefined;
|
|
1233
|
-
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
1234
1749
|
}, {
|
|
1235
1750
|
type: "progress";
|
|
1236
1751
|
value?: number | undefined;
|
|
1237
1752
|
label?: string | undefined;
|
|
1238
|
-
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
1239
1753
|
}>, z.ZodObject<{
|
|
1240
1754
|
type: z.ZodLiteral<"steps">;
|
|
1241
1755
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -1244,25 +1758,25 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1244
1758
|
note: z.ZodOptional<z.ZodString>;
|
|
1245
1759
|
}, "strip", z.ZodTypeAny, {
|
|
1246
1760
|
label: string;
|
|
1247
|
-
status?: "
|
|
1761
|
+
status?: "error" | "done" | "active" | "todo" | undefined;
|
|
1248
1762
|
note?: string | undefined;
|
|
1249
1763
|
}, {
|
|
1250
1764
|
label: string;
|
|
1251
|
-
status?: "
|
|
1765
|
+
status?: "error" | "done" | "active" | "todo" | undefined;
|
|
1252
1766
|
note?: string | undefined;
|
|
1253
1767
|
}>, "many">;
|
|
1254
1768
|
}, "strip", z.ZodTypeAny, {
|
|
1255
1769
|
type: "steps";
|
|
1256
1770
|
items: {
|
|
1257
1771
|
label: string;
|
|
1258
|
-
status?: "
|
|
1772
|
+
status?: "error" | "done" | "active" | "todo" | undefined;
|
|
1259
1773
|
note?: string | undefined;
|
|
1260
1774
|
}[];
|
|
1261
1775
|
}, {
|
|
1262
1776
|
type: "steps";
|
|
1263
1777
|
items: {
|
|
1264
1778
|
label: string;
|
|
1265
|
-
status?: "
|
|
1779
|
+
status?: "error" | "done" | "active" | "todo" | undefined;
|
|
1266
1780
|
note?: string | undefined;
|
|
1267
1781
|
}[];
|
|
1268
1782
|
}>, z.ZodObject<{
|
|
@@ -1331,24 +1845,70 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1331
1845
|
type: z.ZodLiteral<"avatar">;
|
|
1332
1846
|
name: z.ZodString;
|
|
1333
1847
|
initials: z.ZodOptional<z.ZodString>;
|
|
1334
|
-
color: z.ZodOptional<z.ZodString>;
|
|
1335
1848
|
src: z.ZodOptional<z.ZodString>;
|
|
1336
1849
|
subtitle: z.ZodOptional<z.ZodString>;
|
|
1850
|
+
ref: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1851
|
+
user: z.ZodString;
|
|
1852
|
+
}, "strip", z.ZodTypeAny, {
|
|
1853
|
+
user: string;
|
|
1854
|
+
}, {
|
|
1855
|
+
user: string;
|
|
1856
|
+
}>, z.ZodObject<{
|
|
1857
|
+
entity: z.ZodObject<{
|
|
1858
|
+
type: z.ZodString;
|
|
1859
|
+
id: z.ZodString;
|
|
1860
|
+
}, "strip", z.ZodTypeAny, {
|
|
1861
|
+
type: string;
|
|
1862
|
+
id: string;
|
|
1863
|
+
}, {
|
|
1864
|
+
type: string;
|
|
1865
|
+
id: string;
|
|
1866
|
+
}>;
|
|
1867
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1868
|
+
}, "strip", z.ZodTypeAny, {
|
|
1869
|
+
entity: {
|
|
1870
|
+
type: string;
|
|
1871
|
+
id: string;
|
|
1872
|
+
};
|
|
1873
|
+
url?: string | undefined;
|
|
1874
|
+
}, {
|
|
1875
|
+
entity: {
|
|
1876
|
+
type: string;
|
|
1877
|
+
id: string;
|
|
1878
|
+
};
|
|
1879
|
+
url?: string | undefined;
|
|
1880
|
+
}>]>>;
|
|
1337
1881
|
status: z.ZodOptional<z.ZodEnum<["online", "away", "busy", "offline"]>>;
|
|
1338
1882
|
}, "strip", z.ZodTypeAny, {
|
|
1339
1883
|
type: "avatar";
|
|
1340
1884
|
name: string;
|
|
1341
1885
|
status?: "online" | "away" | "busy" | "offline" | undefined;
|
|
1886
|
+
ref?: {
|
|
1887
|
+
user: string;
|
|
1888
|
+
} | {
|
|
1889
|
+
entity: {
|
|
1890
|
+
type: string;
|
|
1891
|
+
id: string;
|
|
1892
|
+
};
|
|
1893
|
+
url?: string | undefined;
|
|
1894
|
+
} | undefined;
|
|
1342
1895
|
initials?: string | undefined;
|
|
1343
|
-
color?: string | undefined;
|
|
1344
1896
|
src?: string | undefined;
|
|
1345
1897
|
subtitle?: string | undefined;
|
|
1346
1898
|
}, {
|
|
1347
1899
|
type: "avatar";
|
|
1348
1900
|
name: string;
|
|
1349
1901
|
status?: "online" | "away" | "busy" | "offline" | undefined;
|
|
1902
|
+
ref?: {
|
|
1903
|
+
user: string;
|
|
1904
|
+
} | {
|
|
1905
|
+
entity: {
|
|
1906
|
+
type: string;
|
|
1907
|
+
id: string;
|
|
1908
|
+
};
|
|
1909
|
+
url?: string | undefined;
|
|
1910
|
+
} | undefined;
|
|
1350
1911
|
initials?: string | undefined;
|
|
1351
|
-
color?: string | undefined;
|
|
1352
1912
|
src?: string | undefined;
|
|
1353
1913
|
subtitle?: string | undefined;
|
|
1354
1914
|
}>, z.ZodObject<{
|
|
@@ -1356,17 +1916,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1356
1916
|
people: z.ZodArray<z.ZodObject<{
|
|
1357
1917
|
name: z.ZodString;
|
|
1358
1918
|
initials: z.ZodOptional<z.ZodString>;
|
|
1359
|
-
color: z.ZodOptional<z.ZodString>;
|
|
1360
1919
|
src: z.ZodOptional<z.ZodString>;
|
|
1361
1920
|
}, "strip", z.ZodTypeAny, {
|
|
1362
1921
|
name: string;
|
|
1363
1922
|
initials?: string | undefined;
|
|
1364
|
-
color?: string | undefined;
|
|
1365
1923
|
src?: string | undefined;
|
|
1366
1924
|
}, {
|
|
1367
1925
|
name: string;
|
|
1368
1926
|
initials?: string | undefined;
|
|
1369
|
-
color?: string | undefined;
|
|
1370
1927
|
src?: string | undefined;
|
|
1371
1928
|
}>, "many">;
|
|
1372
1929
|
max: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1376,7 +1933,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1376
1933
|
people: {
|
|
1377
1934
|
name: string;
|
|
1378
1935
|
initials?: string | undefined;
|
|
1379
|
-
color?: string | undefined;
|
|
1380
1936
|
src?: string | undefined;
|
|
1381
1937
|
}[];
|
|
1382
1938
|
label?: string | undefined;
|
|
@@ -1386,7 +1942,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1386
1942
|
people: {
|
|
1387
1943
|
name: string;
|
|
1388
1944
|
initials?: string | undefined;
|
|
1389
|
-
color?: string | undefined;
|
|
1390
1945
|
src?: string | undefined;
|
|
1391
1946
|
}[];
|
|
1392
1947
|
label?: string | undefined;
|
|
@@ -1460,15 +2015,15 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1460
2015
|
}, "strip", z.ZodTypeAny, {
|
|
1461
2016
|
type: "entityRef";
|
|
1462
2017
|
label: string;
|
|
1463
|
-
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
1464
|
-
url?: string | undefined;
|
|
1465
2018
|
entity?: string | undefined;
|
|
2019
|
+
url?: string | undefined;
|
|
2020
|
+
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
1466
2021
|
}, {
|
|
1467
2022
|
type: "entityRef";
|
|
1468
2023
|
label: string;
|
|
1469
|
-
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
1470
|
-
url?: string | undefined;
|
|
1471
2024
|
entity?: string | undefined;
|
|
2025
|
+
url?: string | undefined;
|
|
2026
|
+
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
1472
2027
|
}>, z.ZodObject<{
|
|
1473
2028
|
type: z.ZodLiteral<"kanban">;
|
|
1474
2029
|
columns: z.ZodArray<z.ZodObject<{
|
|
@@ -1491,8 +2046,8 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1491
2046
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
1492
2047
|
}>>;
|
|
1493
2048
|
}, "strip", z.ZodTypeAny, {
|
|
1494
|
-
title: string;
|
|
1495
2049
|
id: string;
|
|
2050
|
+
title: string;
|
|
1496
2051
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
1497
2052
|
badge?: {
|
|
1498
2053
|
label: string;
|
|
@@ -1500,8 +2055,8 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1500
2055
|
} | undefined;
|
|
1501
2056
|
meta?: string[] | undefined;
|
|
1502
2057
|
}, {
|
|
1503
|
-
title: string;
|
|
1504
2058
|
id: string;
|
|
2059
|
+
title: string;
|
|
1505
2060
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
1506
2061
|
badge?: {
|
|
1507
2062
|
label: string;
|
|
@@ -1510,11 +2065,11 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1510
2065
|
meta?: string[] | undefined;
|
|
1511
2066
|
}>, "many">;
|
|
1512
2067
|
}, "strip", z.ZodTypeAny, {
|
|
1513
|
-
title: string;
|
|
1514
2068
|
id: string;
|
|
2069
|
+
title: string;
|
|
1515
2070
|
cards: {
|
|
1516
|
-
title: string;
|
|
1517
2071
|
id: string;
|
|
2072
|
+
title: string;
|
|
1518
2073
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
1519
2074
|
badge?: {
|
|
1520
2075
|
label: string;
|
|
@@ -1524,11 +2079,11 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1524
2079
|
}[];
|
|
1525
2080
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
1526
2081
|
}, {
|
|
1527
|
-
title: string;
|
|
1528
2082
|
id: string;
|
|
2083
|
+
title: string;
|
|
1529
2084
|
cards: {
|
|
1530
|
-
title: string;
|
|
1531
2085
|
id: string;
|
|
2086
|
+
title: string;
|
|
1532
2087
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
1533
2088
|
badge?: {
|
|
1534
2089
|
label: string;
|
|
@@ -1542,11 +2097,11 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1542
2097
|
}, "strip", z.ZodTypeAny, {
|
|
1543
2098
|
type: "kanban";
|
|
1544
2099
|
columns: {
|
|
1545
|
-
title: string;
|
|
1546
2100
|
id: string;
|
|
2101
|
+
title: string;
|
|
1547
2102
|
cards: {
|
|
1548
|
-
title: string;
|
|
1549
2103
|
id: string;
|
|
2104
|
+
title: string;
|
|
1550
2105
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
1551
2106
|
badge?: {
|
|
1552
2107
|
label: string;
|
|
@@ -1560,11 +2115,11 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1560
2115
|
}, {
|
|
1561
2116
|
type: "kanban";
|
|
1562
2117
|
columns: {
|
|
1563
|
-
title: string;
|
|
1564
2118
|
id: string;
|
|
2119
|
+
title: string;
|
|
1565
2120
|
cards: {
|
|
1566
|
-
title: string;
|
|
1567
2121
|
id: string;
|
|
2122
|
+
title: string;
|
|
1568
2123
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
1569
2124
|
badge?: {
|
|
1570
2125
|
label: string;
|
|
@@ -1593,6 +2148,175 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1593
2148
|
label?: string | undefined;
|
|
1594
2149
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
1595
2150
|
expiredText?: string | undefined;
|
|
2151
|
+
}>, z.ZodObject<{
|
|
2152
|
+
type: z.ZodLiteral<"activity">;
|
|
2153
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2154
|
+
maxVisible: z.ZodOptional<z.ZodNumber>;
|
|
2155
|
+
items: z.ZodArray<z.ZodObject<{
|
|
2156
|
+
who: z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
2157
|
+
user: z.ZodString;
|
|
2158
|
+
}, "strip", z.ZodTypeAny, {
|
|
2159
|
+
user: string;
|
|
2160
|
+
}, {
|
|
2161
|
+
user: string;
|
|
2162
|
+
}>, z.ZodObject<{
|
|
2163
|
+
entity: z.ZodObject<{
|
|
2164
|
+
type: z.ZodString;
|
|
2165
|
+
id: z.ZodString;
|
|
2166
|
+
}, "strip", z.ZodTypeAny, {
|
|
2167
|
+
type: string;
|
|
2168
|
+
id: string;
|
|
2169
|
+
}, {
|
|
2170
|
+
type: string;
|
|
2171
|
+
id: string;
|
|
2172
|
+
}>;
|
|
2173
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2174
|
+
}, "strip", z.ZodTypeAny, {
|
|
2175
|
+
entity: {
|
|
2176
|
+
type: string;
|
|
2177
|
+
id: string;
|
|
2178
|
+
};
|
|
2179
|
+
url?: string | undefined;
|
|
2180
|
+
}, {
|
|
2181
|
+
entity: {
|
|
2182
|
+
type: string;
|
|
2183
|
+
id: string;
|
|
2184
|
+
};
|
|
2185
|
+
url?: string | undefined;
|
|
2186
|
+
}>]>]>;
|
|
2187
|
+
what: z.ZodString;
|
|
2188
|
+
at: z.ZodString;
|
|
2189
|
+
tone: z.ZodOptional<z.ZodEnum<["neutral", "success", "warning", "danger", "info"]>>;
|
|
2190
|
+
to: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
2191
|
+
user: z.ZodString;
|
|
2192
|
+
}, "strip", z.ZodTypeAny, {
|
|
2193
|
+
user: string;
|
|
2194
|
+
}, {
|
|
2195
|
+
user: string;
|
|
2196
|
+
}>, z.ZodObject<{
|
|
2197
|
+
entity: z.ZodObject<{
|
|
2198
|
+
type: z.ZodString;
|
|
2199
|
+
id: z.ZodString;
|
|
2200
|
+
}, "strip", z.ZodTypeAny, {
|
|
2201
|
+
type: string;
|
|
2202
|
+
id: string;
|
|
2203
|
+
}, {
|
|
2204
|
+
type: string;
|
|
2205
|
+
id: string;
|
|
2206
|
+
}>;
|
|
2207
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2208
|
+
}, "strip", z.ZodTypeAny, {
|
|
2209
|
+
entity: {
|
|
2210
|
+
type: string;
|
|
2211
|
+
id: string;
|
|
2212
|
+
};
|
|
2213
|
+
url?: string | undefined;
|
|
2214
|
+
}, {
|
|
2215
|
+
entity: {
|
|
2216
|
+
type: string;
|
|
2217
|
+
id: string;
|
|
2218
|
+
};
|
|
2219
|
+
url?: string | undefined;
|
|
2220
|
+
}>]>]>>;
|
|
2221
|
+
}, "strip", z.ZodTypeAny, {
|
|
2222
|
+
at: string;
|
|
2223
|
+
who: string | {
|
|
2224
|
+
user: string;
|
|
2225
|
+
} | {
|
|
2226
|
+
entity: {
|
|
2227
|
+
type: string;
|
|
2228
|
+
id: string;
|
|
2229
|
+
};
|
|
2230
|
+
url?: string | undefined;
|
|
2231
|
+
};
|
|
2232
|
+
what: string;
|
|
2233
|
+
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
2234
|
+
to?: string | {
|
|
2235
|
+
user: string;
|
|
2236
|
+
} | {
|
|
2237
|
+
entity: {
|
|
2238
|
+
type: string;
|
|
2239
|
+
id: string;
|
|
2240
|
+
};
|
|
2241
|
+
url?: string | undefined;
|
|
2242
|
+
} | undefined;
|
|
2243
|
+
}, {
|
|
2244
|
+
at: string;
|
|
2245
|
+
who: string | {
|
|
2246
|
+
user: string;
|
|
2247
|
+
} | {
|
|
2248
|
+
entity: {
|
|
2249
|
+
type: string;
|
|
2250
|
+
id: string;
|
|
2251
|
+
};
|
|
2252
|
+
url?: string | undefined;
|
|
2253
|
+
};
|
|
2254
|
+
what: string;
|
|
2255
|
+
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
2256
|
+
to?: string | {
|
|
2257
|
+
user: string;
|
|
2258
|
+
} | {
|
|
2259
|
+
entity: {
|
|
2260
|
+
type: string;
|
|
2261
|
+
id: string;
|
|
2262
|
+
};
|
|
2263
|
+
url?: string | undefined;
|
|
2264
|
+
} | undefined;
|
|
2265
|
+
}>, "many">;
|
|
2266
|
+
}, "strip", z.ZodTypeAny, {
|
|
2267
|
+
type: "activity";
|
|
2268
|
+
items: {
|
|
2269
|
+
at: string;
|
|
2270
|
+
who: string | {
|
|
2271
|
+
user: string;
|
|
2272
|
+
} | {
|
|
2273
|
+
entity: {
|
|
2274
|
+
type: string;
|
|
2275
|
+
id: string;
|
|
2276
|
+
};
|
|
2277
|
+
url?: string | undefined;
|
|
2278
|
+
};
|
|
2279
|
+
what: string;
|
|
2280
|
+
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
2281
|
+
to?: string | {
|
|
2282
|
+
user: string;
|
|
2283
|
+
} | {
|
|
2284
|
+
entity: {
|
|
2285
|
+
type: string;
|
|
2286
|
+
id: string;
|
|
2287
|
+
};
|
|
2288
|
+
url?: string | undefined;
|
|
2289
|
+
} | undefined;
|
|
2290
|
+
}[];
|
|
2291
|
+
label?: string | undefined;
|
|
2292
|
+
maxVisible?: number | undefined;
|
|
2293
|
+
}, {
|
|
2294
|
+
type: "activity";
|
|
2295
|
+
items: {
|
|
2296
|
+
at: string;
|
|
2297
|
+
who: string | {
|
|
2298
|
+
user: string;
|
|
2299
|
+
} | {
|
|
2300
|
+
entity: {
|
|
2301
|
+
type: string;
|
|
2302
|
+
id: string;
|
|
2303
|
+
};
|
|
2304
|
+
url?: string | undefined;
|
|
2305
|
+
};
|
|
2306
|
+
what: string;
|
|
2307
|
+
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
2308
|
+
to?: string | {
|
|
2309
|
+
user: string;
|
|
2310
|
+
} | {
|
|
2311
|
+
entity: {
|
|
2312
|
+
type: string;
|
|
2313
|
+
id: string;
|
|
2314
|
+
};
|
|
2315
|
+
url?: string | undefined;
|
|
2316
|
+
} | undefined;
|
|
2317
|
+
}[];
|
|
2318
|
+
label?: string | undefined;
|
|
2319
|
+
maxVisible?: number | undefined;
|
|
1596
2320
|
}>, z.ZodObject<{
|
|
1597
2321
|
type: z.ZodLiteral<"code">;
|
|
1598
2322
|
code: z.ZodString;
|
|
@@ -1652,6 +2376,7 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1652
2376
|
title: z.ZodString;
|
|
1653
2377
|
open: z.ZodOptional<z.ZodBoolean>;
|
|
1654
2378
|
tone: z.ZodOptional<z.ZodEnum<["neutral", "success", "warning", "danger", "info"]>>;
|
|
2379
|
+
legacy_for: z.ZodOptional<z.ZodEnum<["activity"]>>;
|
|
1655
2380
|
blocks: z.ZodArray<z.ZodLazy<z.ZodTypeAny>, "many">;
|
|
1656
2381
|
}, "strip", z.ZodTypeAny, {
|
|
1657
2382
|
type: "collapsible";
|
|
@@ -1659,12 +2384,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1659
2384
|
blocks: any[];
|
|
1660
2385
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
1661
2386
|
open?: boolean | undefined;
|
|
2387
|
+
legacy_for?: "activity" | undefined;
|
|
1662
2388
|
}, {
|
|
1663
2389
|
type: "collapsible";
|
|
1664
2390
|
title: string;
|
|
1665
2391
|
blocks: any[];
|
|
1666
2392
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
1667
2393
|
open?: boolean | undefined;
|
|
2394
|
+
legacy_for?: "activity" | undefined;
|
|
1668
2395
|
}>, z.ZodObject<{
|
|
1669
2396
|
type: z.ZodLiteral<"widget">;
|
|
1670
2397
|
url: z.ZodString;
|
|
@@ -1696,26 +2423,44 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1696
2423
|
value: z.ZodOptional<z.ZodString>;
|
|
1697
2424
|
accept: z.ZodOptional<z.ZodString>;
|
|
1698
2425
|
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
2426
|
+
min: z.ZodOptional<z.ZodString>;
|
|
2427
|
+
max: z.ZodOptional<z.ZodString>;
|
|
2428
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
2429
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
2430
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
2431
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1699
2432
|
}, "strip", z.ZodTypeAny, {
|
|
1700
2433
|
type: "input";
|
|
1701
2434
|
name: string;
|
|
1702
2435
|
value?: string | undefined;
|
|
1703
2436
|
label?: string | undefined;
|
|
1704
|
-
input?: "number" | "
|
|
2437
|
+
input?: "number" | "date" | "url" | "text" | "textarea" | "datetime" | "time" | "email" | "file" | undefined;
|
|
1705
2438
|
placeholder?: string | undefined;
|
|
1706
2439
|
required?: boolean | undefined;
|
|
1707
2440
|
accept?: string | undefined;
|
|
1708
2441
|
multiple?: boolean | undefined;
|
|
2442
|
+
min?: string | undefined;
|
|
2443
|
+
max?: string | undefined;
|
|
2444
|
+
minLength?: number | undefined;
|
|
2445
|
+
maxLength?: number | undefined;
|
|
2446
|
+
pattern?: string | undefined;
|
|
2447
|
+
error?: string | undefined;
|
|
1709
2448
|
}, {
|
|
1710
2449
|
type: "input";
|
|
1711
2450
|
name: string;
|
|
1712
2451
|
value?: string | undefined;
|
|
1713
2452
|
label?: string | undefined;
|
|
1714
|
-
input?: "number" | "
|
|
2453
|
+
input?: "number" | "date" | "url" | "text" | "textarea" | "datetime" | "time" | "email" | "file" | undefined;
|
|
1715
2454
|
placeholder?: string | undefined;
|
|
1716
2455
|
required?: boolean | undefined;
|
|
1717
2456
|
accept?: string | undefined;
|
|
1718
2457
|
multiple?: boolean | undefined;
|
|
2458
|
+
min?: string | undefined;
|
|
2459
|
+
max?: string | undefined;
|
|
2460
|
+
minLength?: number | undefined;
|
|
2461
|
+
maxLength?: number | undefined;
|
|
2462
|
+
pattern?: string | undefined;
|
|
2463
|
+
error?: string | undefined;
|
|
1719
2464
|
}>, z.ZodObject<{
|
|
1720
2465
|
type: z.ZodLiteral<"toggle">;
|
|
1721
2466
|
name: z.ZodString;
|
|
@@ -1771,32 +2516,46 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1771
2516
|
options: z.ZodArray<z.ZodObject<{
|
|
1772
2517
|
value: z.ZodString;
|
|
1773
2518
|
label: z.ZodString;
|
|
2519
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
1774
2520
|
}, "strip", z.ZodTypeAny, {
|
|
1775
2521
|
value: string;
|
|
1776
2522
|
label: string;
|
|
2523
|
+
hint?: string | undefined;
|
|
1777
2524
|
}, {
|
|
1778
2525
|
value: string;
|
|
1779
2526
|
label: string;
|
|
2527
|
+
hint?: string | undefined;
|
|
1780
2528
|
}>, "many">;
|
|
1781
2529
|
value: z.ZodOptional<z.ZodString>;
|
|
2530
|
+
style: z.ZodOptional<z.ZodEnum<["cards", "segmented"]>>;
|
|
2531
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
2532
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1782
2533
|
}, "strip", z.ZodTypeAny, {
|
|
1783
2534
|
options: {
|
|
1784
2535
|
value: string;
|
|
1785
2536
|
label: string;
|
|
2537
|
+
hint?: string | undefined;
|
|
1786
2538
|
}[];
|
|
1787
2539
|
type: "radio";
|
|
1788
2540
|
name: string;
|
|
1789
2541
|
value?: string | undefined;
|
|
1790
2542
|
label?: string | undefined;
|
|
2543
|
+
required?: boolean | undefined;
|
|
2544
|
+
error?: string | undefined;
|
|
2545
|
+
style?: "cards" | "segmented" | undefined;
|
|
1791
2546
|
}, {
|
|
1792
2547
|
options: {
|
|
1793
2548
|
value: string;
|
|
1794
2549
|
label: string;
|
|
2550
|
+
hint?: string | undefined;
|
|
1795
2551
|
}[];
|
|
1796
2552
|
type: "radio";
|
|
1797
2553
|
name: string;
|
|
1798
2554
|
value?: string | undefined;
|
|
1799
2555
|
label?: string | undefined;
|
|
2556
|
+
required?: boolean | undefined;
|
|
2557
|
+
error?: string | undefined;
|
|
2558
|
+
style?: "cards" | "segmented" | undefined;
|
|
1800
2559
|
}>, z.ZodObject<{
|
|
1801
2560
|
type: z.ZodLiteral<"select">;
|
|
1802
2561
|
name: z.ZodString;
|
|
@@ -1805,36 +2564,115 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1805
2564
|
options: z.ZodArray<z.ZodObject<{
|
|
1806
2565
|
value: z.ZodString;
|
|
1807
2566
|
label: z.ZodString;
|
|
2567
|
+
ref: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
2568
|
+
user: z.ZodString;
|
|
2569
|
+
}, "strip", z.ZodTypeAny, {
|
|
2570
|
+
user: string;
|
|
2571
|
+
}, {
|
|
2572
|
+
user: string;
|
|
2573
|
+
}>, z.ZodObject<{
|
|
2574
|
+
entity: z.ZodObject<{
|
|
2575
|
+
type: z.ZodString;
|
|
2576
|
+
id: z.ZodString;
|
|
2577
|
+
}, "strip", z.ZodTypeAny, {
|
|
2578
|
+
type: string;
|
|
2579
|
+
id: string;
|
|
2580
|
+
}, {
|
|
2581
|
+
type: string;
|
|
2582
|
+
id: string;
|
|
2583
|
+
}>;
|
|
2584
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2585
|
+
}, "strip", z.ZodTypeAny, {
|
|
2586
|
+
entity: {
|
|
2587
|
+
type: string;
|
|
2588
|
+
id: string;
|
|
2589
|
+
};
|
|
2590
|
+
url?: string | undefined;
|
|
2591
|
+
}, {
|
|
2592
|
+
entity: {
|
|
2593
|
+
type: string;
|
|
2594
|
+
id: string;
|
|
2595
|
+
};
|
|
2596
|
+
url?: string | undefined;
|
|
2597
|
+
}>]>>;
|
|
1808
2598
|
}, "strip", z.ZodTypeAny, {
|
|
1809
2599
|
value: string;
|
|
1810
2600
|
label: string;
|
|
2601
|
+
ref?: {
|
|
2602
|
+
user: string;
|
|
2603
|
+
} | {
|
|
2604
|
+
entity: {
|
|
2605
|
+
type: string;
|
|
2606
|
+
id: string;
|
|
2607
|
+
};
|
|
2608
|
+
url?: string | undefined;
|
|
2609
|
+
} | undefined;
|
|
1811
2610
|
}, {
|
|
1812
2611
|
value: string;
|
|
1813
2612
|
label: string;
|
|
2613
|
+
ref?: {
|
|
2614
|
+
user: string;
|
|
2615
|
+
} | {
|
|
2616
|
+
entity: {
|
|
2617
|
+
type: string;
|
|
2618
|
+
id: string;
|
|
2619
|
+
};
|
|
2620
|
+
url?: string | undefined;
|
|
2621
|
+
} | undefined;
|
|
1814
2622
|
}>, "many">;
|
|
1815
2623
|
value: z.ZodOptional<z.ZodString>;
|
|
1816
2624
|
multi: z.ZodOptional<z.ZodBoolean>;
|
|
2625
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
2626
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
2627
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
2628
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1817
2629
|
}, "strip", z.ZodTypeAny, {
|
|
1818
2630
|
options: {
|
|
1819
2631
|
value: string;
|
|
1820
2632
|
label: string;
|
|
2633
|
+
ref?: {
|
|
2634
|
+
user: string;
|
|
2635
|
+
} | {
|
|
2636
|
+
entity: {
|
|
2637
|
+
type: string;
|
|
2638
|
+
id: string;
|
|
2639
|
+
};
|
|
2640
|
+
url?: string | undefined;
|
|
2641
|
+
} | undefined;
|
|
1821
2642
|
}[];
|
|
1822
2643
|
type: "select";
|
|
1823
2644
|
name: string;
|
|
1824
2645
|
value?: string | undefined;
|
|
1825
2646
|
label?: string | undefined;
|
|
1826
2647
|
placeholder?: string | undefined;
|
|
2648
|
+
required?: boolean | undefined;
|
|
2649
|
+
min?: number | undefined;
|
|
2650
|
+
max?: number | undefined;
|
|
2651
|
+
error?: string | undefined;
|
|
1827
2652
|
multi?: boolean | undefined;
|
|
1828
2653
|
}, {
|
|
1829
2654
|
options: {
|
|
1830
2655
|
value: string;
|
|
1831
2656
|
label: string;
|
|
2657
|
+
ref?: {
|
|
2658
|
+
user: string;
|
|
2659
|
+
} | {
|
|
2660
|
+
entity: {
|
|
2661
|
+
type: string;
|
|
2662
|
+
id: string;
|
|
2663
|
+
};
|
|
2664
|
+
url?: string | undefined;
|
|
2665
|
+
} | undefined;
|
|
1832
2666
|
}[];
|
|
1833
2667
|
type: "select";
|
|
1834
2668
|
name: string;
|
|
1835
2669
|
value?: string | undefined;
|
|
1836
2670
|
label?: string | undefined;
|
|
1837
2671
|
placeholder?: string | undefined;
|
|
2672
|
+
required?: boolean | undefined;
|
|
2673
|
+
min?: number | undefined;
|
|
2674
|
+
max?: number | undefined;
|
|
2675
|
+
error?: string | undefined;
|
|
1838
2676
|
multi?: boolean | undefined;
|
|
1839
2677
|
}>, z.ZodObject<{
|
|
1840
2678
|
type: z.ZodLiteral<"checkbox">;
|
|
@@ -1851,6 +2689,30 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1851
2689
|
label: string;
|
|
1852
2690
|
name: string;
|
|
1853
2691
|
checked?: boolean | undefined;
|
|
2692
|
+
}>, z.ZodObject<{
|
|
2693
|
+
type: z.ZodLiteral<"location">;
|
|
2694
|
+
name: z.ZodString;
|
|
2695
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2696
|
+
purpose: z.ZodOptional<z.ZodString>;
|
|
2697
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
2698
|
+
precise: z.ZodOptional<z.ZodBoolean>;
|
|
2699
|
+
buttonText: z.ZodOptional<z.ZodString>;
|
|
2700
|
+
}, "strip", z.ZodTypeAny, {
|
|
2701
|
+
type: "location";
|
|
2702
|
+
name: string;
|
|
2703
|
+
label?: string | undefined;
|
|
2704
|
+
required?: boolean | undefined;
|
|
2705
|
+
purpose?: string | undefined;
|
|
2706
|
+
precise?: boolean | undefined;
|
|
2707
|
+
buttonText?: string | undefined;
|
|
2708
|
+
}, {
|
|
2709
|
+
type: "location";
|
|
2710
|
+
name: string;
|
|
2711
|
+
label?: string | undefined;
|
|
2712
|
+
required?: boolean | undefined;
|
|
2713
|
+
purpose?: string | undefined;
|
|
2714
|
+
precise?: boolean | undefined;
|
|
2715
|
+
buttonText?: string | undefined;
|
|
1854
2716
|
}>, z.ZodObject<{
|
|
1855
2717
|
type: z.ZodLiteral<"button">;
|
|
1856
2718
|
action_id: z.ZodString;
|
|
@@ -1874,6 +2736,9 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1874
2736
|
cancel?: string | undefined;
|
|
1875
2737
|
}>>;
|
|
1876
2738
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
2739
|
+
hidden_for: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2740
|
+
visible_for: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2741
|
+
disabled_reason: z.ZodOptional<z.ZodString>;
|
|
1877
2742
|
}, "strip", z.ZodTypeAny, {
|
|
1878
2743
|
type: "button";
|
|
1879
2744
|
text: string;
|
|
@@ -1887,6 +2752,9 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1887
2752
|
cancel?: string | undefined;
|
|
1888
2753
|
} | undefined;
|
|
1889
2754
|
disabled?: boolean | undefined;
|
|
2755
|
+
hidden_for?: string[] | undefined;
|
|
2756
|
+
visible_for?: string[] | undefined;
|
|
2757
|
+
disabled_reason?: string | undefined;
|
|
1890
2758
|
}, {
|
|
1891
2759
|
type: "button";
|
|
1892
2760
|
text: string;
|
|
@@ -1900,6 +2768,9 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1900
2768
|
cancel?: string | undefined;
|
|
1901
2769
|
} | undefined;
|
|
1902
2770
|
disabled?: boolean | undefined;
|
|
2771
|
+
hidden_for?: string[] | undefined;
|
|
2772
|
+
visible_for?: string[] | undefined;
|
|
2773
|
+
disabled_reason?: string | undefined;
|
|
1903
2774
|
}>, z.ZodObject<{
|
|
1904
2775
|
type: z.ZodLiteral<"linkButton">;
|
|
1905
2776
|
text: z.ZodString;
|
|
@@ -1908,14 +2779,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1908
2779
|
external: z.ZodOptional<z.ZodBoolean>;
|
|
1909
2780
|
}, "strip", z.ZodTypeAny, {
|
|
1910
2781
|
type: "linkButton";
|
|
1911
|
-
text: string;
|
|
1912
2782
|
url: string;
|
|
2783
|
+
text: string;
|
|
1913
2784
|
style?: "danger" | "default" | "primary" | undefined;
|
|
1914
2785
|
external?: boolean | undefined;
|
|
1915
2786
|
}, {
|
|
1916
2787
|
type: "linkButton";
|
|
1917
|
-
text: string;
|
|
1918
2788
|
url: string;
|
|
2789
|
+
text: string;
|
|
1919
2790
|
style?: "danger" | "default" | "primary" | undefined;
|
|
1920
2791
|
external?: boolean | undefined;
|
|
1921
2792
|
}>, z.ZodObject<{
|
|
@@ -1943,6 +2814,9 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1943
2814
|
cancel?: string | undefined;
|
|
1944
2815
|
}>>;
|
|
1945
2816
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
2817
|
+
hidden_for: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2818
|
+
visible_for: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2819
|
+
disabled_reason: z.ZodOptional<z.ZodString>;
|
|
1946
2820
|
}, "strip", z.ZodTypeAny, {
|
|
1947
2821
|
type: "button";
|
|
1948
2822
|
text: string;
|
|
@@ -1956,6 +2830,9 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1956
2830
|
cancel?: string | undefined;
|
|
1957
2831
|
} | undefined;
|
|
1958
2832
|
disabled?: boolean | undefined;
|
|
2833
|
+
hidden_for?: string[] | undefined;
|
|
2834
|
+
visible_for?: string[] | undefined;
|
|
2835
|
+
disabled_reason?: string | undefined;
|
|
1959
2836
|
}, {
|
|
1960
2837
|
type: "button";
|
|
1961
2838
|
text: string;
|
|
@@ -1969,6 +2846,9 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1969
2846
|
cancel?: string | undefined;
|
|
1970
2847
|
} | undefined;
|
|
1971
2848
|
disabled?: boolean | undefined;
|
|
2849
|
+
hidden_for?: string[] | undefined;
|
|
2850
|
+
visible_for?: string[] | undefined;
|
|
2851
|
+
disabled_reason?: string | undefined;
|
|
1972
2852
|
}>, z.ZodObject<{
|
|
1973
2853
|
type: z.ZodLiteral<"linkButton">;
|
|
1974
2854
|
text: z.ZodString;
|
|
@@ -1977,14 +2857,14 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
1977
2857
|
external: z.ZodOptional<z.ZodBoolean>;
|
|
1978
2858
|
}, "strip", z.ZodTypeAny, {
|
|
1979
2859
|
type: "linkButton";
|
|
1980
|
-
text: string;
|
|
1981
2860
|
url: string;
|
|
2861
|
+
text: string;
|
|
1982
2862
|
style?: "danger" | "default" | "primary" | undefined;
|
|
1983
2863
|
external?: boolean | undefined;
|
|
1984
2864
|
}, {
|
|
1985
2865
|
type: "linkButton";
|
|
1986
|
-
text: string;
|
|
1987
2866
|
url: string;
|
|
2867
|
+
text: string;
|
|
1988
2868
|
style?: "danger" | "default" | "primary" | undefined;
|
|
1989
2869
|
external?: boolean | undefined;
|
|
1990
2870
|
}>]>, "many">;
|
|
@@ -2003,10 +2883,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2003
2883
|
cancel?: string | undefined;
|
|
2004
2884
|
} | undefined;
|
|
2005
2885
|
disabled?: boolean | undefined;
|
|
2886
|
+
hidden_for?: string[] | undefined;
|
|
2887
|
+
visible_for?: string[] | undefined;
|
|
2888
|
+
disabled_reason?: string | undefined;
|
|
2006
2889
|
} | {
|
|
2007
2890
|
type: "linkButton";
|
|
2008
|
-
text: string;
|
|
2009
2891
|
url: string;
|
|
2892
|
+
text: string;
|
|
2010
2893
|
style?: "danger" | "default" | "primary" | undefined;
|
|
2011
2894
|
external?: boolean | undefined;
|
|
2012
2895
|
})[];
|
|
@@ -2025,10 +2908,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2025
2908
|
cancel?: string | undefined;
|
|
2026
2909
|
} | undefined;
|
|
2027
2910
|
disabled?: boolean | undefined;
|
|
2911
|
+
hidden_for?: string[] | undefined;
|
|
2912
|
+
visible_for?: string[] | undefined;
|
|
2913
|
+
disabled_reason?: string | undefined;
|
|
2028
2914
|
} | {
|
|
2029
2915
|
type: "linkButton";
|
|
2030
|
-
text: string;
|
|
2031
2916
|
url: string;
|
|
2917
|
+
text: string;
|
|
2032
2918
|
style?: "danger" | "default" | "primary" | undefined;
|
|
2033
2919
|
external?: boolean | undefined;
|
|
2034
2920
|
})[];
|
|
@@ -2057,6 +2943,9 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2057
2943
|
cancel?: string | undefined;
|
|
2058
2944
|
}>>;
|
|
2059
2945
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
2946
|
+
visible_for: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2947
|
+
hidden_for: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2948
|
+
disabled_reason: z.ZodOptional<z.ZodString>;
|
|
2060
2949
|
}, "strip", z.ZodTypeAny, {
|
|
2061
2950
|
text: string;
|
|
2062
2951
|
action_id: string;
|
|
@@ -2069,6 +2958,9 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2069
2958
|
cancel?: string | undefined;
|
|
2070
2959
|
} | undefined;
|
|
2071
2960
|
disabled?: boolean | undefined;
|
|
2961
|
+
hidden_for?: string[] | undefined;
|
|
2962
|
+
visible_for?: string[] | undefined;
|
|
2963
|
+
disabled_reason?: string | undefined;
|
|
2072
2964
|
}, {
|
|
2073
2965
|
text: string;
|
|
2074
2966
|
action_id: string;
|
|
@@ -2081,6 +2973,9 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2081
2973
|
cancel?: string | undefined;
|
|
2082
2974
|
} | undefined;
|
|
2083
2975
|
disabled?: boolean | undefined;
|
|
2976
|
+
hidden_for?: string[] | undefined;
|
|
2977
|
+
visible_for?: string[] | undefined;
|
|
2978
|
+
disabled_reason?: string | undefined;
|
|
2084
2979
|
}>, "many">;
|
|
2085
2980
|
}, "strip", z.ZodTypeAny, {
|
|
2086
2981
|
type: "overflow";
|
|
@@ -2096,6 +2991,9 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2096
2991
|
cancel?: string | undefined;
|
|
2097
2992
|
} | undefined;
|
|
2098
2993
|
disabled?: boolean | undefined;
|
|
2994
|
+
hidden_for?: string[] | undefined;
|
|
2995
|
+
visible_for?: string[] | undefined;
|
|
2996
|
+
disabled_reason?: string | undefined;
|
|
2099
2997
|
}[];
|
|
2100
2998
|
label?: string | undefined;
|
|
2101
2999
|
}, {
|
|
@@ -2112,6 +3010,9 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2112
3010
|
cancel?: string | undefined;
|
|
2113
3011
|
} | undefined;
|
|
2114
3012
|
disabled?: boolean | undefined;
|
|
3013
|
+
hidden_for?: string[] | undefined;
|
|
3014
|
+
visible_for?: string[] | undefined;
|
|
3015
|
+
disabled_reason?: string | undefined;
|
|
2115
3016
|
}[];
|
|
2116
3017
|
label?: string | undefined;
|
|
2117
3018
|
}>]>, "many">;
|
|
@@ -2136,6 +3037,15 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2136
3037
|
text: string;
|
|
2137
3038
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
2138
3039
|
}[] | undefined;
|
|
3040
|
+
ref?: {
|
|
3041
|
+
user: string;
|
|
3042
|
+
} | {
|
|
3043
|
+
entity: {
|
|
3044
|
+
type: string;
|
|
3045
|
+
id: string;
|
|
3046
|
+
};
|
|
3047
|
+
url?: string | undefined;
|
|
3048
|
+
} | undefined;
|
|
2139
3049
|
}[];
|
|
2140
3050
|
} | {
|
|
2141
3051
|
type: "image";
|
|
@@ -2162,11 +3072,17 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2162
3072
|
name: string;
|
|
2163
3073
|
value?: string | undefined;
|
|
2164
3074
|
label?: string | undefined;
|
|
2165
|
-
input?: "number" | "
|
|
3075
|
+
input?: "number" | "date" | "url" | "text" | "textarea" | "datetime" | "time" | "email" | "file" | undefined;
|
|
2166
3076
|
placeholder?: string | undefined;
|
|
2167
3077
|
required?: boolean | undefined;
|
|
2168
3078
|
accept?: string | undefined;
|
|
2169
3079
|
multiple?: boolean | undefined;
|
|
3080
|
+
min?: string | undefined;
|
|
3081
|
+
max?: string | undefined;
|
|
3082
|
+
minLength?: number | undefined;
|
|
3083
|
+
maxLength?: number | undefined;
|
|
3084
|
+
pattern?: string | undefined;
|
|
3085
|
+
error?: string | undefined;
|
|
2170
3086
|
} | {
|
|
2171
3087
|
type: "toggle";
|
|
2172
3088
|
label: string;
|
|
@@ -2187,27 +3103,52 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2187
3103
|
options: {
|
|
2188
3104
|
value: string;
|
|
2189
3105
|
label: string;
|
|
3106
|
+
hint?: string | undefined;
|
|
2190
3107
|
}[];
|
|
2191
3108
|
type: "radio";
|
|
2192
3109
|
name: string;
|
|
2193
3110
|
value?: string | undefined;
|
|
2194
3111
|
label?: string | undefined;
|
|
3112
|
+
required?: boolean | undefined;
|
|
3113
|
+
error?: string | undefined;
|
|
3114
|
+
style?: "cards" | "segmented" | undefined;
|
|
2195
3115
|
} | {
|
|
2196
3116
|
options: {
|
|
2197
3117
|
value: string;
|
|
2198
3118
|
label: string;
|
|
3119
|
+
ref?: {
|
|
3120
|
+
user: string;
|
|
3121
|
+
} | {
|
|
3122
|
+
entity: {
|
|
3123
|
+
type: string;
|
|
3124
|
+
id: string;
|
|
3125
|
+
};
|
|
3126
|
+
url?: string | undefined;
|
|
3127
|
+
} | undefined;
|
|
2199
3128
|
}[];
|
|
2200
3129
|
type: "select";
|
|
2201
3130
|
name: string;
|
|
2202
3131
|
value?: string | undefined;
|
|
2203
3132
|
label?: string | undefined;
|
|
2204
3133
|
placeholder?: string | undefined;
|
|
3134
|
+
required?: boolean | undefined;
|
|
3135
|
+
min?: number | undefined;
|
|
3136
|
+
max?: number | undefined;
|
|
3137
|
+
error?: string | undefined;
|
|
2205
3138
|
multi?: boolean | undefined;
|
|
2206
3139
|
} | {
|
|
2207
3140
|
type: "checkbox";
|
|
2208
3141
|
label: string;
|
|
2209
3142
|
name: string;
|
|
2210
3143
|
checked?: boolean | undefined;
|
|
3144
|
+
} | {
|
|
3145
|
+
type: "location";
|
|
3146
|
+
name: string;
|
|
3147
|
+
label?: string | undefined;
|
|
3148
|
+
required?: boolean | undefined;
|
|
3149
|
+
purpose?: string | undefined;
|
|
3150
|
+
precise?: boolean | undefined;
|
|
3151
|
+
buttonText?: string | undefined;
|
|
2211
3152
|
} | {
|
|
2212
3153
|
type: "button";
|
|
2213
3154
|
text: string;
|
|
@@ -2221,10 +3162,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2221
3162
|
cancel?: string | undefined;
|
|
2222
3163
|
} | undefined;
|
|
2223
3164
|
disabled?: boolean | undefined;
|
|
3165
|
+
hidden_for?: string[] | undefined;
|
|
3166
|
+
visible_for?: string[] | undefined;
|
|
3167
|
+
disabled_reason?: string | undefined;
|
|
2224
3168
|
} | {
|
|
2225
3169
|
type: "linkButton";
|
|
2226
|
-
text: string;
|
|
2227
3170
|
url: string;
|
|
3171
|
+
text: string;
|
|
2228
3172
|
style?: "danger" | "default" | "primary" | undefined;
|
|
2229
3173
|
external?: boolean | undefined;
|
|
2230
3174
|
} | {
|
|
@@ -2242,10 +3186,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2242
3186
|
cancel?: string | undefined;
|
|
2243
3187
|
} | undefined;
|
|
2244
3188
|
disabled?: boolean | undefined;
|
|
3189
|
+
hidden_for?: string[] | undefined;
|
|
3190
|
+
visible_for?: string[] | undefined;
|
|
3191
|
+
disabled_reason?: string | undefined;
|
|
2245
3192
|
} | {
|
|
2246
3193
|
type: "linkButton";
|
|
2247
|
-
text: string;
|
|
2248
3194
|
url: string;
|
|
3195
|
+
text: string;
|
|
2249
3196
|
style?: "danger" | "default" | "primary" | undefined;
|
|
2250
3197
|
external?: boolean | undefined;
|
|
2251
3198
|
})[];
|
|
@@ -2263,18 +3210,20 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2263
3210
|
cancel?: string | undefined;
|
|
2264
3211
|
} | undefined;
|
|
2265
3212
|
disabled?: boolean | undefined;
|
|
3213
|
+
hidden_for?: string[] | undefined;
|
|
3214
|
+
visible_for?: string[] | undefined;
|
|
3215
|
+
disabled_reason?: string | undefined;
|
|
2266
3216
|
}[];
|
|
2267
3217
|
label?: string | undefined;
|
|
2268
3218
|
} | {
|
|
2269
3219
|
type: "progress";
|
|
2270
3220
|
value?: number | undefined;
|
|
2271
3221
|
label?: string | undefined;
|
|
2272
|
-
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
2273
3222
|
} | {
|
|
2274
3223
|
type: "steps";
|
|
2275
3224
|
items: {
|
|
2276
3225
|
label: string;
|
|
2277
|
-
status?: "
|
|
3226
|
+
status?: "error" | "done" | "active" | "todo" | undefined;
|
|
2278
3227
|
note?: string | undefined;
|
|
2279
3228
|
}[];
|
|
2280
3229
|
} | {
|
|
@@ -2317,8 +3266,16 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2317
3266
|
type: "avatar";
|
|
2318
3267
|
name: string;
|
|
2319
3268
|
status?: "online" | "away" | "busy" | "offline" | undefined;
|
|
3269
|
+
ref?: {
|
|
3270
|
+
user: string;
|
|
3271
|
+
} | {
|
|
3272
|
+
entity: {
|
|
3273
|
+
type: string;
|
|
3274
|
+
id: string;
|
|
3275
|
+
};
|
|
3276
|
+
url?: string | undefined;
|
|
3277
|
+
} | undefined;
|
|
2320
3278
|
initials?: string | undefined;
|
|
2321
|
-
color?: string | undefined;
|
|
2322
3279
|
src?: string | undefined;
|
|
2323
3280
|
subtitle?: string | undefined;
|
|
2324
3281
|
} | {
|
|
@@ -2326,7 +3283,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2326
3283
|
people: {
|
|
2327
3284
|
name: string;
|
|
2328
3285
|
initials?: string | undefined;
|
|
2329
|
-
color?: string | undefined;
|
|
2330
3286
|
src?: string | undefined;
|
|
2331
3287
|
}[];
|
|
2332
3288
|
label?: string | undefined;
|
|
@@ -2354,17 +3310,17 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2354
3310
|
} | {
|
|
2355
3311
|
type: "entityRef";
|
|
2356
3312
|
label: string;
|
|
2357
|
-
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
2358
|
-
url?: string | undefined;
|
|
2359
3313
|
entity?: string | undefined;
|
|
3314
|
+
url?: string | undefined;
|
|
3315
|
+
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
2360
3316
|
} | {
|
|
2361
3317
|
type: "kanban";
|
|
2362
3318
|
columns: {
|
|
2363
|
-
title: string;
|
|
2364
3319
|
id: string;
|
|
3320
|
+
title: string;
|
|
2365
3321
|
cards: {
|
|
2366
|
-
title: string;
|
|
2367
3322
|
id: string;
|
|
3323
|
+
title: string;
|
|
2368
3324
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
2369
3325
|
badge?: {
|
|
2370
3326
|
label: string;
|
|
@@ -2387,6 +3343,34 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2387
3343
|
blocks: any[];
|
|
2388
3344
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
2389
3345
|
open?: boolean | undefined;
|
|
3346
|
+
legacy_for?: "activity" | undefined;
|
|
3347
|
+
} | {
|
|
3348
|
+
type: "activity";
|
|
3349
|
+
items: {
|
|
3350
|
+
at: string;
|
|
3351
|
+
who: string | {
|
|
3352
|
+
user: string;
|
|
3353
|
+
} | {
|
|
3354
|
+
entity: {
|
|
3355
|
+
type: string;
|
|
3356
|
+
id: string;
|
|
3357
|
+
};
|
|
3358
|
+
url?: string | undefined;
|
|
3359
|
+
};
|
|
3360
|
+
what: string;
|
|
3361
|
+
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
3362
|
+
to?: string | {
|
|
3363
|
+
user: string;
|
|
3364
|
+
} | {
|
|
3365
|
+
entity: {
|
|
3366
|
+
type: string;
|
|
3367
|
+
id: string;
|
|
3368
|
+
};
|
|
3369
|
+
url?: string | undefined;
|
|
3370
|
+
} | undefined;
|
|
3371
|
+
}[];
|
|
3372
|
+
label?: string | undefined;
|
|
3373
|
+
maxVisible?: number | undefined;
|
|
2390
3374
|
} | {
|
|
2391
3375
|
type: "widget";
|
|
2392
3376
|
url: string;
|
|
@@ -2417,6 +3401,15 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2417
3401
|
text: string;
|
|
2418
3402
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
2419
3403
|
}[] | undefined;
|
|
3404
|
+
ref?: {
|
|
3405
|
+
user: string;
|
|
3406
|
+
} | {
|
|
3407
|
+
entity: {
|
|
3408
|
+
type: string;
|
|
3409
|
+
id: string;
|
|
3410
|
+
};
|
|
3411
|
+
url?: string | undefined;
|
|
3412
|
+
} | undefined;
|
|
2420
3413
|
}[];
|
|
2421
3414
|
} | {
|
|
2422
3415
|
type: "image";
|
|
@@ -2443,11 +3436,17 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2443
3436
|
name: string;
|
|
2444
3437
|
value?: string | undefined;
|
|
2445
3438
|
label?: string | undefined;
|
|
2446
|
-
input?: "number" | "
|
|
3439
|
+
input?: "number" | "date" | "url" | "text" | "textarea" | "datetime" | "time" | "email" | "file" | undefined;
|
|
2447
3440
|
placeholder?: string | undefined;
|
|
2448
3441
|
required?: boolean | undefined;
|
|
2449
3442
|
accept?: string | undefined;
|
|
2450
3443
|
multiple?: boolean | undefined;
|
|
3444
|
+
min?: string | undefined;
|
|
3445
|
+
max?: string | undefined;
|
|
3446
|
+
minLength?: number | undefined;
|
|
3447
|
+
maxLength?: number | undefined;
|
|
3448
|
+
pattern?: string | undefined;
|
|
3449
|
+
error?: string | undefined;
|
|
2451
3450
|
} | {
|
|
2452
3451
|
type: "toggle";
|
|
2453
3452
|
label: string;
|
|
@@ -2468,27 +3467,52 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2468
3467
|
options: {
|
|
2469
3468
|
value: string;
|
|
2470
3469
|
label: string;
|
|
3470
|
+
hint?: string | undefined;
|
|
2471
3471
|
}[];
|
|
2472
3472
|
type: "radio";
|
|
2473
3473
|
name: string;
|
|
2474
3474
|
value?: string | undefined;
|
|
2475
3475
|
label?: string | undefined;
|
|
3476
|
+
required?: boolean | undefined;
|
|
3477
|
+
error?: string | undefined;
|
|
3478
|
+
style?: "cards" | "segmented" | undefined;
|
|
2476
3479
|
} | {
|
|
2477
3480
|
options: {
|
|
2478
3481
|
value: string;
|
|
2479
3482
|
label: string;
|
|
3483
|
+
ref?: {
|
|
3484
|
+
user: string;
|
|
3485
|
+
} | {
|
|
3486
|
+
entity: {
|
|
3487
|
+
type: string;
|
|
3488
|
+
id: string;
|
|
3489
|
+
};
|
|
3490
|
+
url?: string | undefined;
|
|
3491
|
+
} | undefined;
|
|
2480
3492
|
}[];
|
|
2481
3493
|
type: "select";
|
|
2482
3494
|
name: string;
|
|
2483
3495
|
value?: string | undefined;
|
|
2484
3496
|
label?: string | undefined;
|
|
2485
3497
|
placeholder?: string | undefined;
|
|
3498
|
+
required?: boolean | undefined;
|
|
3499
|
+
min?: number | undefined;
|
|
3500
|
+
max?: number | undefined;
|
|
3501
|
+
error?: string | undefined;
|
|
2486
3502
|
multi?: boolean | undefined;
|
|
2487
3503
|
} | {
|
|
2488
3504
|
type: "checkbox";
|
|
2489
3505
|
label: string;
|
|
2490
3506
|
name: string;
|
|
2491
3507
|
checked?: boolean | undefined;
|
|
3508
|
+
} | {
|
|
3509
|
+
type: "location";
|
|
3510
|
+
name: string;
|
|
3511
|
+
label?: string | undefined;
|
|
3512
|
+
required?: boolean | undefined;
|
|
3513
|
+
purpose?: string | undefined;
|
|
3514
|
+
precise?: boolean | undefined;
|
|
3515
|
+
buttonText?: string | undefined;
|
|
2492
3516
|
} | {
|
|
2493
3517
|
type: "button";
|
|
2494
3518
|
text: string;
|
|
@@ -2502,10 +3526,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2502
3526
|
cancel?: string | undefined;
|
|
2503
3527
|
} | undefined;
|
|
2504
3528
|
disabled?: boolean | undefined;
|
|
3529
|
+
hidden_for?: string[] | undefined;
|
|
3530
|
+
visible_for?: string[] | undefined;
|
|
3531
|
+
disabled_reason?: string | undefined;
|
|
2505
3532
|
} | {
|
|
2506
3533
|
type: "linkButton";
|
|
2507
|
-
text: string;
|
|
2508
3534
|
url: string;
|
|
3535
|
+
text: string;
|
|
2509
3536
|
style?: "danger" | "default" | "primary" | undefined;
|
|
2510
3537
|
external?: boolean | undefined;
|
|
2511
3538
|
} | {
|
|
@@ -2523,10 +3550,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2523
3550
|
cancel?: string | undefined;
|
|
2524
3551
|
} | undefined;
|
|
2525
3552
|
disabled?: boolean | undefined;
|
|
3553
|
+
hidden_for?: string[] | undefined;
|
|
3554
|
+
visible_for?: string[] | undefined;
|
|
3555
|
+
disabled_reason?: string | undefined;
|
|
2526
3556
|
} | {
|
|
2527
3557
|
type: "linkButton";
|
|
2528
|
-
text: string;
|
|
2529
3558
|
url: string;
|
|
3559
|
+
text: string;
|
|
2530
3560
|
style?: "danger" | "default" | "primary" | undefined;
|
|
2531
3561
|
external?: boolean | undefined;
|
|
2532
3562
|
})[];
|
|
@@ -2544,18 +3574,20 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2544
3574
|
cancel?: string | undefined;
|
|
2545
3575
|
} | undefined;
|
|
2546
3576
|
disabled?: boolean | undefined;
|
|
3577
|
+
hidden_for?: string[] | undefined;
|
|
3578
|
+
visible_for?: string[] | undefined;
|
|
3579
|
+
disabled_reason?: string | undefined;
|
|
2547
3580
|
}[];
|
|
2548
3581
|
label?: string | undefined;
|
|
2549
3582
|
} | {
|
|
2550
3583
|
type: "progress";
|
|
2551
3584
|
value?: number | undefined;
|
|
2552
3585
|
label?: string | undefined;
|
|
2553
|
-
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
2554
3586
|
} | {
|
|
2555
3587
|
type: "steps";
|
|
2556
3588
|
items: {
|
|
2557
3589
|
label: string;
|
|
2558
|
-
status?: "
|
|
3590
|
+
status?: "error" | "done" | "active" | "todo" | undefined;
|
|
2559
3591
|
note?: string | undefined;
|
|
2560
3592
|
}[];
|
|
2561
3593
|
} | {
|
|
@@ -2598,8 +3630,16 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2598
3630
|
type: "avatar";
|
|
2599
3631
|
name: string;
|
|
2600
3632
|
status?: "online" | "away" | "busy" | "offline" | undefined;
|
|
3633
|
+
ref?: {
|
|
3634
|
+
user: string;
|
|
3635
|
+
} | {
|
|
3636
|
+
entity: {
|
|
3637
|
+
type: string;
|
|
3638
|
+
id: string;
|
|
3639
|
+
};
|
|
3640
|
+
url?: string | undefined;
|
|
3641
|
+
} | undefined;
|
|
2601
3642
|
initials?: string | undefined;
|
|
2602
|
-
color?: string | undefined;
|
|
2603
3643
|
src?: string | undefined;
|
|
2604
3644
|
subtitle?: string | undefined;
|
|
2605
3645
|
} | {
|
|
@@ -2607,7 +3647,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2607
3647
|
people: {
|
|
2608
3648
|
name: string;
|
|
2609
3649
|
initials?: string | undefined;
|
|
2610
|
-
color?: string | undefined;
|
|
2611
3650
|
src?: string | undefined;
|
|
2612
3651
|
}[];
|
|
2613
3652
|
label?: string | undefined;
|
|
@@ -2635,17 +3674,17 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2635
3674
|
} | {
|
|
2636
3675
|
type: "entityRef";
|
|
2637
3676
|
label: string;
|
|
2638
|
-
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
2639
|
-
url?: string | undefined;
|
|
2640
3677
|
entity?: string | undefined;
|
|
3678
|
+
url?: string | undefined;
|
|
3679
|
+
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
2641
3680
|
} | {
|
|
2642
3681
|
type: "kanban";
|
|
2643
3682
|
columns: {
|
|
2644
|
-
title: string;
|
|
2645
3683
|
id: string;
|
|
3684
|
+
title: string;
|
|
2646
3685
|
cards: {
|
|
2647
|
-
title: string;
|
|
2648
3686
|
id: string;
|
|
3687
|
+
title: string;
|
|
2649
3688
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
2650
3689
|
badge?: {
|
|
2651
3690
|
label: string;
|
|
@@ -2668,6 +3707,34 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2668
3707
|
blocks: any[];
|
|
2669
3708
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
2670
3709
|
open?: boolean | undefined;
|
|
3710
|
+
legacy_for?: "activity" | undefined;
|
|
3711
|
+
} | {
|
|
3712
|
+
type: "activity";
|
|
3713
|
+
items: {
|
|
3714
|
+
at: string;
|
|
3715
|
+
who: string | {
|
|
3716
|
+
user: string;
|
|
3717
|
+
} | {
|
|
3718
|
+
entity: {
|
|
3719
|
+
type: string;
|
|
3720
|
+
id: string;
|
|
3721
|
+
};
|
|
3722
|
+
url?: string | undefined;
|
|
3723
|
+
};
|
|
3724
|
+
what: string;
|
|
3725
|
+
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
3726
|
+
to?: string | {
|
|
3727
|
+
user: string;
|
|
3728
|
+
} | {
|
|
3729
|
+
entity: {
|
|
3730
|
+
type: string;
|
|
3731
|
+
id: string;
|
|
3732
|
+
};
|
|
3733
|
+
url?: string | undefined;
|
|
3734
|
+
} | undefined;
|
|
3735
|
+
}[];
|
|
3736
|
+
label?: string | undefined;
|
|
3737
|
+
maxVisible?: number | undefined;
|
|
2671
3738
|
} | {
|
|
2672
3739
|
type: "widget";
|
|
2673
3740
|
url: string;
|
|
@@ -2743,6 +3810,15 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2743
3810
|
text: string;
|
|
2744
3811
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
2745
3812
|
}[] | undefined;
|
|
3813
|
+
ref?: {
|
|
3814
|
+
user: string;
|
|
3815
|
+
} | {
|
|
3816
|
+
entity: {
|
|
3817
|
+
type: string;
|
|
3818
|
+
id: string;
|
|
3819
|
+
};
|
|
3820
|
+
url?: string | undefined;
|
|
3821
|
+
} | undefined;
|
|
2746
3822
|
}[];
|
|
2747
3823
|
} | {
|
|
2748
3824
|
type: "image";
|
|
@@ -2769,11 +3845,17 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2769
3845
|
name: string;
|
|
2770
3846
|
value?: string | undefined;
|
|
2771
3847
|
label?: string | undefined;
|
|
2772
|
-
input?: "number" | "
|
|
3848
|
+
input?: "number" | "date" | "url" | "text" | "textarea" | "datetime" | "time" | "email" | "file" | undefined;
|
|
2773
3849
|
placeholder?: string | undefined;
|
|
2774
3850
|
required?: boolean | undefined;
|
|
2775
3851
|
accept?: string | undefined;
|
|
2776
3852
|
multiple?: boolean | undefined;
|
|
3853
|
+
min?: string | undefined;
|
|
3854
|
+
max?: string | undefined;
|
|
3855
|
+
minLength?: number | undefined;
|
|
3856
|
+
maxLength?: number | undefined;
|
|
3857
|
+
pattern?: string | undefined;
|
|
3858
|
+
error?: string | undefined;
|
|
2777
3859
|
} | {
|
|
2778
3860
|
type: "toggle";
|
|
2779
3861
|
label: string;
|
|
@@ -2794,27 +3876,52 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2794
3876
|
options: {
|
|
2795
3877
|
value: string;
|
|
2796
3878
|
label: string;
|
|
3879
|
+
hint?: string | undefined;
|
|
2797
3880
|
}[];
|
|
2798
3881
|
type: "radio";
|
|
2799
3882
|
name: string;
|
|
2800
3883
|
value?: string | undefined;
|
|
2801
3884
|
label?: string | undefined;
|
|
3885
|
+
required?: boolean | undefined;
|
|
3886
|
+
error?: string | undefined;
|
|
3887
|
+
style?: "cards" | "segmented" | undefined;
|
|
2802
3888
|
} | {
|
|
2803
3889
|
options: {
|
|
2804
3890
|
value: string;
|
|
2805
3891
|
label: string;
|
|
3892
|
+
ref?: {
|
|
3893
|
+
user: string;
|
|
3894
|
+
} | {
|
|
3895
|
+
entity: {
|
|
3896
|
+
type: string;
|
|
3897
|
+
id: string;
|
|
3898
|
+
};
|
|
3899
|
+
url?: string | undefined;
|
|
3900
|
+
} | undefined;
|
|
2806
3901
|
}[];
|
|
2807
3902
|
type: "select";
|
|
2808
3903
|
name: string;
|
|
2809
3904
|
value?: string | undefined;
|
|
2810
3905
|
label?: string | undefined;
|
|
2811
3906
|
placeholder?: string | undefined;
|
|
3907
|
+
required?: boolean | undefined;
|
|
3908
|
+
min?: number | undefined;
|
|
3909
|
+
max?: number | undefined;
|
|
3910
|
+
error?: string | undefined;
|
|
2812
3911
|
multi?: boolean | undefined;
|
|
2813
3912
|
} | {
|
|
2814
3913
|
type: "checkbox";
|
|
2815
3914
|
label: string;
|
|
2816
3915
|
name: string;
|
|
2817
3916
|
checked?: boolean | undefined;
|
|
3917
|
+
} | {
|
|
3918
|
+
type: "location";
|
|
3919
|
+
name: string;
|
|
3920
|
+
label?: string | undefined;
|
|
3921
|
+
required?: boolean | undefined;
|
|
3922
|
+
purpose?: string | undefined;
|
|
3923
|
+
precise?: boolean | undefined;
|
|
3924
|
+
buttonText?: string | undefined;
|
|
2818
3925
|
} | {
|
|
2819
3926
|
type: "button";
|
|
2820
3927
|
text: string;
|
|
@@ -2828,10 +3935,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2828
3935
|
cancel?: string | undefined;
|
|
2829
3936
|
} | undefined;
|
|
2830
3937
|
disabled?: boolean | undefined;
|
|
3938
|
+
hidden_for?: string[] | undefined;
|
|
3939
|
+
visible_for?: string[] | undefined;
|
|
3940
|
+
disabled_reason?: string | undefined;
|
|
2831
3941
|
} | {
|
|
2832
3942
|
type: "linkButton";
|
|
2833
|
-
text: string;
|
|
2834
3943
|
url: string;
|
|
3944
|
+
text: string;
|
|
2835
3945
|
style?: "danger" | "default" | "primary" | undefined;
|
|
2836
3946
|
external?: boolean | undefined;
|
|
2837
3947
|
} | {
|
|
@@ -2849,10 +3959,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2849
3959
|
cancel?: string | undefined;
|
|
2850
3960
|
} | undefined;
|
|
2851
3961
|
disabled?: boolean | undefined;
|
|
3962
|
+
hidden_for?: string[] | undefined;
|
|
3963
|
+
visible_for?: string[] | undefined;
|
|
3964
|
+
disabled_reason?: string | undefined;
|
|
2852
3965
|
} | {
|
|
2853
3966
|
type: "linkButton";
|
|
2854
|
-
text: string;
|
|
2855
3967
|
url: string;
|
|
3968
|
+
text: string;
|
|
2856
3969
|
style?: "danger" | "default" | "primary" | undefined;
|
|
2857
3970
|
external?: boolean | undefined;
|
|
2858
3971
|
})[];
|
|
@@ -2870,18 +3983,20 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2870
3983
|
cancel?: string | undefined;
|
|
2871
3984
|
} | undefined;
|
|
2872
3985
|
disabled?: boolean | undefined;
|
|
3986
|
+
hidden_for?: string[] | undefined;
|
|
3987
|
+
visible_for?: string[] | undefined;
|
|
3988
|
+
disabled_reason?: string | undefined;
|
|
2873
3989
|
}[];
|
|
2874
3990
|
label?: string | undefined;
|
|
2875
3991
|
} | {
|
|
2876
3992
|
type: "progress";
|
|
2877
3993
|
value?: number | undefined;
|
|
2878
3994
|
label?: string | undefined;
|
|
2879
|
-
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
2880
3995
|
} | {
|
|
2881
3996
|
type: "steps";
|
|
2882
3997
|
items: {
|
|
2883
3998
|
label: string;
|
|
2884
|
-
status?: "
|
|
3999
|
+
status?: "error" | "done" | "active" | "todo" | undefined;
|
|
2885
4000
|
note?: string | undefined;
|
|
2886
4001
|
}[];
|
|
2887
4002
|
} | {
|
|
@@ -2924,8 +4039,16 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2924
4039
|
type: "avatar";
|
|
2925
4040
|
name: string;
|
|
2926
4041
|
status?: "online" | "away" | "busy" | "offline" | undefined;
|
|
4042
|
+
ref?: {
|
|
4043
|
+
user: string;
|
|
4044
|
+
} | {
|
|
4045
|
+
entity: {
|
|
4046
|
+
type: string;
|
|
4047
|
+
id: string;
|
|
4048
|
+
};
|
|
4049
|
+
url?: string | undefined;
|
|
4050
|
+
} | undefined;
|
|
2927
4051
|
initials?: string | undefined;
|
|
2928
|
-
color?: string | undefined;
|
|
2929
4052
|
src?: string | undefined;
|
|
2930
4053
|
subtitle?: string | undefined;
|
|
2931
4054
|
} | {
|
|
@@ -2933,7 +4056,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2933
4056
|
people: {
|
|
2934
4057
|
name: string;
|
|
2935
4058
|
initials?: string | undefined;
|
|
2936
|
-
color?: string | undefined;
|
|
2937
4059
|
src?: string | undefined;
|
|
2938
4060
|
}[];
|
|
2939
4061
|
label?: string | undefined;
|
|
@@ -2961,17 +4083,17 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2961
4083
|
} | {
|
|
2962
4084
|
type: "entityRef";
|
|
2963
4085
|
label: string;
|
|
2964
|
-
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
2965
|
-
url?: string | undefined;
|
|
2966
4086
|
entity?: string | undefined;
|
|
4087
|
+
url?: string | undefined;
|
|
4088
|
+
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
2967
4089
|
} | {
|
|
2968
4090
|
type: "kanban";
|
|
2969
4091
|
columns: {
|
|
2970
|
-
title: string;
|
|
2971
4092
|
id: string;
|
|
4093
|
+
title: string;
|
|
2972
4094
|
cards: {
|
|
2973
|
-
title: string;
|
|
2974
4095
|
id: string;
|
|
4096
|
+
title: string;
|
|
2975
4097
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
2976
4098
|
badge?: {
|
|
2977
4099
|
label: string;
|
|
@@ -2986,14 +4108,42 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
2986
4108
|
type: "countdown";
|
|
2987
4109
|
target: string;
|
|
2988
4110
|
label?: string | undefined;
|
|
2989
|
-
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
2990
|
-
expiredText?: string | undefined;
|
|
2991
|
-
} | {
|
|
2992
|
-
type: "collapsible";
|
|
2993
|
-
title: string;
|
|
2994
|
-
blocks: any[];
|
|
2995
|
-
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
2996
|
-
open?: boolean | undefined;
|
|
4111
|
+
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
4112
|
+
expiredText?: string | undefined;
|
|
4113
|
+
} | {
|
|
4114
|
+
type: "collapsible";
|
|
4115
|
+
title: string;
|
|
4116
|
+
blocks: any[];
|
|
4117
|
+
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
4118
|
+
open?: boolean | undefined;
|
|
4119
|
+
legacy_for?: "activity" | undefined;
|
|
4120
|
+
} | {
|
|
4121
|
+
type: "activity";
|
|
4122
|
+
items: {
|
|
4123
|
+
at: string;
|
|
4124
|
+
who: string | {
|
|
4125
|
+
user: string;
|
|
4126
|
+
} | {
|
|
4127
|
+
entity: {
|
|
4128
|
+
type: string;
|
|
4129
|
+
id: string;
|
|
4130
|
+
};
|
|
4131
|
+
url?: string | undefined;
|
|
4132
|
+
};
|
|
4133
|
+
what: string;
|
|
4134
|
+
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
4135
|
+
to?: string | {
|
|
4136
|
+
user: string;
|
|
4137
|
+
} | {
|
|
4138
|
+
entity: {
|
|
4139
|
+
type: string;
|
|
4140
|
+
id: string;
|
|
4141
|
+
};
|
|
4142
|
+
url?: string | undefined;
|
|
4143
|
+
} | undefined;
|
|
4144
|
+
}[];
|
|
4145
|
+
label?: string | undefined;
|
|
4146
|
+
maxVisible?: number | undefined;
|
|
2997
4147
|
} | {
|
|
2998
4148
|
type: "widget";
|
|
2999
4149
|
url: string;
|
|
@@ -3040,6 +4190,15 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3040
4190
|
text: string;
|
|
3041
4191
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
3042
4192
|
}[] | undefined;
|
|
4193
|
+
ref?: {
|
|
4194
|
+
user: string;
|
|
4195
|
+
} | {
|
|
4196
|
+
entity: {
|
|
4197
|
+
type: string;
|
|
4198
|
+
id: string;
|
|
4199
|
+
};
|
|
4200
|
+
url?: string | undefined;
|
|
4201
|
+
} | undefined;
|
|
3043
4202
|
}[];
|
|
3044
4203
|
} | {
|
|
3045
4204
|
type: "image";
|
|
@@ -3066,11 +4225,17 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3066
4225
|
name: string;
|
|
3067
4226
|
value?: string | undefined;
|
|
3068
4227
|
label?: string | undefined;
|
|
3069
|
-
input?: "number" | "
|
|
4228
|
+
input?: "number" | "date" | "url" | "text" | "textarea" | "datetime" | "time" | "email" | "file" | undefined;
|
|
3070
4229
|
placeholder?: string | undefined;
|
|
3071
4230
|
required?: boolean | undefined;
|
|
3072
4231
|
accept?: string | undefined;
|
|
3073
4232
|
multiple?: boolean | undefined;
|
|
4233
|
+
min?: string | undefined;
|
|
4234
|
+
max?: string | undefined;
|
|
4235
|
+
minLength?: number | undefined;
|
|
4236
|
+
maxLength?: number | undefined;
|
|
4237
|
+
pattern?: string | undefined;
|
|
4238
|
+
error?: string | undefined;
|
|
3074
4239
|
} | {
|
|
3075
4240
|
type: "toggle";
|
|
3076
4241
|
label: string;
|
|
@@ -3091,27 +4256,52 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3091
4256
|
options: {
|
|
3092
4257
|
value: string;
|
|
3093
4258
|
label: string;
|
|
4259
|
+
hint?: string | undefined;
|
|
3094
4260
|
}[];
|
|
3095
4261
|
type: "radio";
|
|
3096
4262
|
name: string;
|
|
3097
4263
|
value?: string | undefined;
|
|
3098
4264
|
label?: string | undefined;
|
|
4265
|
+
required?: boolean | undefined;
|
|
4266
|
+
error?: string | undefined;
|
|
4267
|
+
style?: "cards" | "segmented" | undefined;
|
|
3099
4268
|
} | {
|
|
3100
4269
|
options: {
|
|
3101
4270
|
value: string;
|
|
3102
4271
|
label: string;
|
|
4272
|
+
ref?: {
|
|
4273
|
+
user: string;
|
|
4274
|
+
} | {
|
|
4275
|
+
entity: {
|
|
4276
|
+
type: string;
|
|
4277
|
+
id: string;
|
|
4278
|
+
};
|
|
4279
|
+
url?: string | undefined;
|
|
4280
|
+
} | undefined;
|
|
3103
4281
|
}[];
|
|
3104
4282
|
type: "select";
|
|
3105
4283
|
name: string;
|
|
3106
4284
|
value?: string | undefined;
|
|
3107
4285
|
label?: string | undefined;
|
|
3108
4286
|
placeholder?: string | undefined;
|
|
4287
|
+
required?: boolean | undefined;
|
|
4288
|
+
min?: number | undefined;
|
|
4289
|
+
max?: number | undefined;
|
|
4290
|
+
error?: string | undefined;
|
|
3109
4291
|
multi?: boolean | undefined;
|
|
3110
4292
|
} | {
|
|
3111
4293
|
type: "checkbox";
|
|
3112
4294
|
label: string;
|
|
3113
4295
|
name: string;
|
|
3114
4296
|
checked?: boolean | undefined;
|
|
4297
|
+
} | {
|
|
4298
|
+
type: "location";
|
|
4299
|
+
name: string;
|
|
4300
|
+
label?: string | undefined;
|
|
4301
|
+
required?: boolean | undefined;
|
|
4302
|
+
purpose?: string | undefined;
|
|
4303
|
+
precise?: boolean | undefined;
|
|
4304
|
+
buttonText?: string | undefined;
|
|
3115
4305
|
} | {
|
|
3116
4306
|
type: "button";
|
|
3117
4307
|
text: string;
|
|
@@ -3125,10 +4315,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3125
4315
|
cancel?: string | undefined;
|
|
3126
4316
|
} | undefined;
|
|
3127
4317
|
disabled?: boolean | undefined;
|
|
4318
|
+
hidden_for?: string[] | undefined;
|
|
4319
|
+
visible_for?: string[] | undefined;
|
|
4320
|
+
disabled_reason?: string | undefined;
|
|
3128
4321
|
} | {
|
|
3129
4322
|
type: "linkButton";
|
|
3130
|
-
text: string;
|
|
3131
4323
|
url: string;
|
|
4324
|
+
text: string;
|
|
3132
4325
|
style?: "danger" | "default" | "primary" | undefined;
|
|
3133
4326
|
external?: boolean | undefined;
|
|
3134
4327
|
} | {
|
|
@@ -3146,10 +4339,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3146
4339
|
cancel?: string | undefined;
|
|
3147
4340
|
} | undefined;
|
|
3148
4341
|
disabled?: boolean | undefined;
|
|
4342
|
+
hidden_for?: string[] | undefined;
|
|
4343
|
+
visible_for?: string[] | undefined;
|
|
4344
|
+
disabled_reason?: string | undefined;
|
|
3149
4345
|
} | {
|
|
3150
4346
|
type: "linkButton";
|
|
3151
|
-
text: string;
|
|
3152
4347
|
url: string;
|
|
4348
|
+
text: string;
|
|
3153
4349
|
style?: "danger" | "default" | "primary" | undefined;
|
|
3154
4350
|
external?: boolean | undefined;
|
|
3155
4351
|
})[];
|
|
@@ -3167,18 +4363,20 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3167
4363
|
cancel?: string | undefined;
|
|
3168
4364
|
} | undefined;
|
|
3169
4365
|
disabled?: boolean | undefined;
|
|
4366
|
+
hidden_for?: string[] | undefined;
|
|
4367
|
+
visible_for?: string[] | undefined;
|
|
4368
|
+
disabled_reason?: string | undefined;
|
|
3170
4369
|
}[];
|
|
3171
4370
|
label?: string | undefined;
|
|
3172
4371
|
} | {
|
|
3173
4372
|
type: "progress";
|
|
3174
4373
|
value?: number | undefined;
|
|
3175
4374
|
label?: string | undefined;
|
|
3176
|
-
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
3177
4375
|
} | {
|
|
3178
4376
|
type: "steps";
|
|
3179
4377
|
items: {
|
|
3180
4378
|
label: string;
|
|
3181
|
-
status?: "
|
|
4379
|
+
status?: "error" | "done" | "active" | "todo" | undefined;
|
|
3182
4380
|
note?: string | undefined;
|
|
3183
4381
|
}[];
|
|
3184
4382
|
} | {
|
|
@@ -3221,8 +4419,16 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3221
4419
|
type: "avatar";
|
|
3222
4420
|
name: string;
|
|
3223
4421
|
status?: "online" | "away" | "busy" | "offline" | undefined;
|
|
4422
|
+
ref?: {
|
|
4423
|
+
user: string;
|
|
4424
|
+
} | {
|
|
4425
|
+
entity: {
|
|
4426
|
+
type: string;
|
|
4427
|
+
id: string;
|
|
4428
|
+
};
|
|
4429
|
+
url?: string | undefined;
|
|
4430
|
+
} | undefined;
|
|
3224
4431
|
initials?: string | undefined;
|
|
3225
|
-
color?: string | undefined;
|
|
3226
4432
|
src?: string | undefined;
|
|
3227
4433
|
subtitle?: string | undefined;
|
|
3228
4434
|
} | {
|
|
@@ -3230,7 +4436,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3230
4436
|
people: {
|
|
3231
4437
|
name: string;
|
|
3232
4438
|
initials?: string | undefined;
|
|
3233
|
-
color?: string | undefined;
|
|
3234
4439
|
src?: string | undefined;
|
|
3235
4440
|
}[];
|
|
3236
4441
|
label?: string | undefined;
|
|
@@ -3258,17 +4463,17 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3258
4463
|
} | {
|
|
3259
4464
|
type: "entityRef";
|
|
3260
4465
|
label: string;
|
|
3261
|
-
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
3262
|
-
url?: string | undefined;
|
|
3263
4466
|
entity?: string | undefined;
|
|
4467
|
+
url?: string | undefined;
|
|
4468
|
+
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
3264
4469
|
} | {
|
|
3265
4470
|
type: "kanban";
|
|
3266
4471
|
columns: {
|
|
3267
|
-
title: string;
|
|
3268
4472
|
id: string;
|
|
4473
|
+
title: string;
|
|
3269
4474
|
cards: {
|
|
3270
|
-
title: string;
|
|
3271
4475
|
id: string;
|
|
4476
|
+
title: string;
|
|
3272
4477
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
3273
4478
|
badge?: {
|
|
3274
4479
|
label: string;
|
|
@@ -3291,6 +4496,34 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3291
4496
|
blocks: any[];
|
|
3292
4497
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
3293
4498
|
open?: boolean | undefined;
|
|
4499
|
+
legacy_for?: "activity" | undefined;
|
|
4500
|
+
} | {
|
|
4501
|
+
type: "activity";
|
|
4502
|
+
items: {
|
|
4503
|
+
at: string;
|
|
4504
|
+
who: string | {
|
|
4505
|
+
user: string;
|
|
4506
|
+
} | {
|
|
4507
|
+
entity: {
|
|
4508
|
+
type: string;
|
|
4509
|
+
id: string;
|
|
4510
|
+
};
|
|
4511
|
+
url?: string | undefined;
|
|
4512
|
+
};
|
|
4513
|
+
what: string;
|
|
4514
|
+
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
4515
|
+
to?: string | {
|
|
4516
|
+
user: string;
|
|
4517
|
+
} | {
|
|
4518
|
+
entity: {
|
|
4519
|
+
type: string;
|
|
4520
|
+
id: string;
|
|
4521
|
+
};
|
|
4522
|
+
url?: string | undefined;
|
|
4523
|
+
} | undefined;
|
|
4524
|
+
}[];
|
|
4525
|
+
label?: string | undefined;
|
|
4526
|
+
maxVisible?: number | undefined;
|
|
3294
4527
|
} | {
|
|
3295
4528
|
type: "widget";
|
|
3296
4529
|
url: string;
|
|
@@ -3342,6 +4575,15 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3342
4575
|
text: string;
|
|
3343
4576
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
3344
4577
|
}[] | undefined;
|
|
4578
|
+
ref?: {
|
|
4579
|
+
user: string;
|
|
4580
|
+
} | {
|
|
4581
|
+
entity: {
|
|
4582
|
+
type: string;
|
|
4583
|
+
id: string;
|
|
4584
|
+
};
|
|
4585
|
+
url?: string | undefined;
|
|
4586
|
+
} | undefined;
|
|
3345
4587
|
}[];
|
|
3346
4588
|
} | {
|
|
3347
4589
|
type: "image";
|
|
@@ -3368,11 +4610,17 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3368
4610
|
name: string;
|
|
3369
4611
|
value?: string | undefined;
|
|
3370
4612
|
label?: string | undefined;
|
|
3371
|
-
input?: "number" | "
|
|
4613
|
+
input?: "number" | "date" | "url" | "text" | "textarea" | "datetime" | "time" | "email" | "file" | undefined;
|
|
3372
4614
|
placeholder?: string | undefined;
|
|
3373
4615
|
required?: boolean | undefined;
|
|
3374
4616
|
accept?: string | undefined;
|
|
3375
4617
|
multiple?: boolean | undefined;
|
|
4618
|
+
min?: string | undefined;
|
|
4619
|
+
max?: string | undefined;
|
|
4620
|
+
minLength?: number | undefined;
|
|
4621
|
+
maxLength?: number | undefined;
|
|
4622
|
+
pattern?: string | undefined;
|
|
4623
|
+
error?: string | undefined;
|
|
3376
4624
|
} | {
|
|
3377
4625
|
type: "toggle";
|
|
3378
4626
|
label: string;
|
|
@@ -3393,27 +4641,52 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3393
4641
|
options: {
|
|
3394
4642
|
value: string;
|
|
3395
4643
|
label: string;
|
|
4644
|
+
hint?: string | undefined;
|
|
3396
4645
|
}[];
|
|
3397
4646
|
type: "radio";
|
|
3398
4647
|
name: string;
|
|
3399
4648
|
value?: string | undefined;
|
|
3400
4649
|
label?: string | undefined;
|
|
4650
|
+
required?: boolean | undefined;
|
|
4651
|
+
error?: string | undefined;
|
|
4652
|
+
style?: "cards" | "segmented" | undefined;
|
|
3401
4653
|
} | {
|
|
3402
4654
|
options: {
|
|
3403
4655
|
value: string;
|
|
3404
4656
|
label: string;
|
|
4657
|
+
ref?: {
|
|
4658
|
+
user: string;
|
|
4659
|
+
} | {
|
|
4660
|
+
entity: {
|
|
4661
|
+
type: string;
|
|
4662
|
+
id: string;
|
|
4663
|
+
};
|
|
4664
|
+
url?: string | undefined;
|
|
4665
|
+
} | undefined;
|
|
3405
4666
|
}[];
|
|
3406
4667
|
type: "select";
|
|
3407
4668
|
name: string;
|
|
3408
4669
|
value?: string | undefined;
|
|
3409
4670
|
label?: string | undefined;
|
|
3410
4671
|
placeholder?: string | undefined;
|
|
4672
|
+
required?: boolean | undefined;
|
|
4673
|
+
min?: number | undefined;
|
|
4674
|
+
max?: number | undefined;
|
|
4675
|
+
error?: string | undefined;
|
|
3411
4676
|
multi?: boolean | undefined;
|
|
3412
4677
|
} | {
|
|
3413
4678
|
type: "checkbox";
|
|
3414
4679
|
label: string;
|
|
3415
4680
|
name: string;
|
|
3416
4681
|
checked?: boolean | undefined;
|
|
4682
|
+
} | {
|
|
4683
|
+
type: "location";
|
|
4684
|
+
name: string;
|
|
4685
|
+
label?: string | undefined;
|
|
4686
|
+
required?: boolean | undefined;
|
|
4687
|
+
purpose?: string | undefined;
|
|
4688
|
+
precise?: boolean | undefined;
|
|
4689
|
+
buttonText?: string | undefined;
|
|
3417
4690
|
} | {
|
|
3418
4691
|
type: "button";
|
|
3419
4692
|
text: string;
|
|
@@ -3427,10 +4700,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3427
4700
|
cancel?: string | undefined;
|
|
3428
4701
|
} | undefined;
|
|
3429
4702
|
disabled?: boolean | undefined;
|
|
4703
|
+
hidden_for?: string[] | undefined;
|
|
4704
|
+
visible_for?: string[] | undefined;
|
|
4705
|
+
disabled_reason?: string | undefined;
|
|
3430
4706
|
} | {
|
|
3431
4707
|
type: "linkButton";
|
|
3432
|
-
text: string;
|
|
3433
4708
|
url: string;
|
|
4709
|
+
text: string;
|
|
3434
4710
|
style?: "danger" | "default" | "primary" | undefined;
|
|
3435
4711
|
external?: boolean | undefined;
|
|
3436
4712
|
} | {
|
|
@@ -3448,10 +4724,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3448
4724
|
cancel?: string | undefined;
|
|
3449
4725
|
} | undefined;
|
|
3450
4726
|
disabled?: boolean | undefined;
|
|
4727
|
+
hidden_for?: string[] | undefined;
|
|
4728
|
+
visible_for?: string[] | undefined;
|
|
4729
|
+
disabled_reason?: string | undefined;
|
|
3451
4730
|
} | {
|
|
3452
4731
|
type: "linkButton";
|
|
3453
|
-
text: string;
|
|
3454
4732
|
url: string;
|
|
4733
|
+
text: string;
|
|
3455
4734
|
style?: "danger" | "default" | "primary" | undefined;
|
|
3456
4735
|
external?: boolean | undefined;
|
|
3457
4736
|
})[];
|
|
@@ -3469,18 +4748,20 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3469
4748
|
cancel?: string | undefined;
|
|
3470
4749
|
} | undefined;
|
|
3471
4750
|
disabled?: boolean | undefined;
|
|
4751
|
+
hidden_for?: string[] | undefined;
|
|
4752
|
+
visible_for?: string[] | undefined;
|
|
4753
|
+
disabled_reason?: string | undefined;
|
|
3472
4754
|
}[];
|
|
3473
4755
|
label?: string | undefined;
|
|
3474
4756
|
} | {
|
|
3475
4757
|
type: "progress";
|
|
3476
4758
|
value?: number | undefined;
|
|
3477
4759
|
label?: string | undefined;
|
|
3478
|
-
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
3479
4760
|
} | {
|
|
3480
4761
|
type: "steps";
|
|
3481
4762
|
items: {
|
|
3482
4763
|
label: string;
|
|
3483
|
-
status?: "
|
|
4764
|
+
status?: "error" | "done" | "active" | "todo" | undefined;
|
|
3484
4765
|
note?: string | undefined;
|
|
3485
4766
|
}[];
|
|
3486
4767
|
} | {
|
|
@@ -3523,8 +4804,16 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3523
4804
|
type: "avatar";
|
|
3524
4805
|
name: string;
|
|
3525
4806
|
status?: "online" | "away" | "busy" | "offline" | undefined;
|
|
4807
|
+
ref?: {
|
|
4808
|
+
user: string;
|
|
4809
|
+
} | {
|
|
4810
|
+
entity: {
|
|
4811
|
+
type: string;
|
|
4812
|
+
id: string;
|
|
4813
|
+
};
|
|
4814
|
+
url?: string | undefined;
|
|
4815
|
+
} | undefined;
|
|
3526
4816
|
initials?: string | undefined;
|
|
3527
|
-
color?: string | undefined;
|
|
3528
4817
|
src?: string | undefined;
|
|
3529
4818
|
subtitle?: string | undefined;
|
|
3530
4819
|
} | {
|
|
@@ -3532,7 +4821,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3532
4821
|
people: {
|
|
3533
4822
|
name: string;
|
|
3534
4823
|
initials?: string | undefined;
|
|
3535
|
-
color?: string | undefined;
|
|
3536
4824
|
src?: string | undefined;
|
|
3537
4825
|
}[];
|
|
3538
4826
|
label?: string | undefined;
|
|
@@ -3560,17 +4848,17 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3560
4848
|
} | {
|
|
3561
4849
|
type: "entityRef";
|
|
3562
4850
|
label: string;
|
|
3563
|
-
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
3564
|
-
url?: string | undefined;
|
|
3565
4851
|
entity?: string | undefined;
|
|
4852
|
+
url?: string | undefined;
|
|
4853
|
+
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
3566
4854
|
} | {
|
|
3567
4855
|
type: "kanban";
|
|
3568
4856
|
columns: {
|
|
3569
|
-
title: string;
|
|
3570
4857
|
id: string;
|
|
4858
|
+
title: string;
|
|
3571
4859
|
cards: {
|
|
3572
|
-
title: string;
|
|
3573
4860
|
id: string;
|
|
4861
|
+
title: string;
|
|
3574
4862
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
3575
4863
|
badge?: {
|
|
3576
4864
|
label: string;
|
|
@@ -3593,6 +4881,34 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3593
4881
|
blocks: any[];
|
|
3594
4882
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
3595
4883
|
open?: boolean | undefined;
|
|
4884
|
+
legacy_for?: "activity" | undefined;
|
|
4885
|
+
} | {
|
|
4886
|
+
type: "activity";
|
|
4887
|
+
items: {
|
|
4888
|
+
at: string;
|
|
4889
|
+
who: string | {
|
|
4890
|
+
user: string;
|
|
4891
|
+
} | {
|
|
4892
|
+
entity: {
|
|
4893
|
+
type: string;
|
|
4894
|
+
id: string;
|
|
4895
|
+
};
|
|
4896
|
+
url?: string | undefined;
|
|
4897
|
+
};
|
|
4898
|
+
what: string;
|
|
4899
|
+
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
4900
|
+
to?: string | {
|
|
4901
|
+
user: string;
|
|
4902
|
+
} | {
|
|
4903
|
+
entity: {
|
|
4904
|
+
type: string;
|
|
4905
|
+
id: string;
|
|
4906
|
+
};
|
|
4907
|
+
url?: string | undefined;
|
|
4908
|
+
} | undefined;
|
|
4909
|
+
}[];
|
|
4910
|
+
label?: string | undefined;
|
|
4911
|
+
maxVisible?: number | undefined;
|
|
3596
4912
|
} | {
|
|
3597
4913
|
type: "widget";
|
|
3598
4914
|
url: string;
|
|
@@ -3623,6 +4939,15 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3623
4939
|
text: string;
|
|
3624
4940
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
3625
4941
|
}[] | undefined;
|
|
4942
|
+
ref?: {
|
|
4943
|
+
user: string;
|
|
4944
|
+
} | {
|
|
4945
|
+
entity: {
|
|
4946
|
+
type: string;
|
|
4947
|
+
id: string;
|
|
4948
|
+
};
|
|
4949
|
+
url?: string | undefined;
|
|
4950
|
+
} | undefined;
|
|
3626
4951
|
}[];
|
|
3627
4952
|
} | {
|
|
3628
4953
|
type: "image";
|
|
@@ -3649,11 +4974,17 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3649
4974
|
name: string;
|
|
3650
4975
|
value?: string | undefined;
|
|
3651
4976
|
label?: string | undefined;
|
|
3652
|
-
input?: "number" | "
|
|
4977
|
+
input?: "number" | "date" | "url" | "text" | "textarea" | "datetime" | "time" | "email" | "file" | undefined;
|
|
3653
4978
|
placeholder?: string | undefined;
|
|
3654
4979
|
required?: boolean | undefined;
|
|
3655
4980
|
accept?: string | undefined;
|
|
3656
4981
|
multiple?: boolean | undefined;
|
|
4982
|
+
min?: string | undefined;
|
|
4983
|
+
max?: string | undefined;
|
|
4984
|
+
minLength?: number | undefined;
|
|
4985
|
+
maxLength?: number | undefined;
|
|
4986
|
+
pattern?: string | undefined;
|
|
4987
|
+
error?: string | undefined;
|
|
3657
4988
|
} | {
|
|
3658
4989
|
type: "toggle";
|
|
3659
4990
|
label: string;
|
|
@@ -3674,27 +5005,52 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3674
5005
|
options: {
|
|
3675
5006
|
value: string;
|
|
3676
5007
|
label: string;
|
|
5008
|
+
hint?: string | undefined;
|
|
3677
5009
|
}[];
|
|
3678
5010
|
type: "radio";
|
|
3679
5011
|
name: string;
|
|
3680
5012
|
value?: string | undefined;
|
|
3681
5013
|
label?: string | undefined;
|
|
5014
|
+
required?: boolean | undefined;
|
|
5015
|
+
error?: string | undefined;
|
|
5016
|
+
style?: "cards" | "segmented" | undefined;
|
|
3682
5017
|
} | {
|
|
3683
5018
|
options: {
|
|
3684
5019
|
value: string;
|
|
3685
5020
|
label: string;
|
|
5021
|
+
ref?: {
|
|
5022
|
+
user: string;
|
|
5023
|
+
} | {
|
|
5024
|
+
entity: {
|
|
5025
|
+
type: string;
|
|
5026
|
+
id: string;
|
|
5027
|
+
};
|
|
5028
|
+
url?: string | undefined;
|
|
5029
|
+
} | undefined;
|
|
3686
5030
|
}[];
|
|
3687
5031
|
type: "select";
|
|
3688
5032
|
name: string;
|
|
3689
5033
|
value?: string | undefined;
|
|
3690
5034
|
label?: string | undefined;
|
|
3691
5035
|
placeholder?: string | undefined;
|
|
5036
|
+
required?: boolean | undefined;
|
|
5037
|
+
min?: number | undefined;
|
|
5038
|
+
max?: number | undefined;
|
|
5039
|
+
error?: string | undefined;
|
|
3692
5040
|
multi?: boolean | undefined;
|
|
3693
5041
|
} | {
|
|
3694
5042
|
type: "checkbox";
|
|
3695
5043
|
label: string;
|
|
3696
5044
|
name: string;
|
|
3697
5045
|
checked?: boolean | undefined;
|
|
5046
|
+
} | {
|
|
5047
|
+
type: "location";
|
|
5048
|
+
name: string;
|
|
5049
|
+
label?: string | undefined;
|
|
5050
|
+
required?: boolean | undefined;
|
|
5051
|
+
purpose?: string | undefined;
|
|
5052
|
+
precise?: boolean | undefined;
|
|
5053
|
+
buttonText?: string | undefined;
|
|
3698
5054
|
} | {
|
|
3699
5055
|
type: "button";
|
|
3700
5056
|
text: string;
|
|
@@ -3708,10 +5064,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3708
5064
|
cancel?: string | undefined;
|
|
3709
5065
|
} | undefined;
|
|
3710
5066
|
disabled?: boolean | undefined;
|
|
5067
|
+
hidden_for?: string[] | undefined;
|
|
5068
|
+
visible_for?: string[] | undefined;
|
|
5069
|
+
disabled_reason?: string | undefined;
|
|
3711
5070
|
} | {
|
|
3712
5071
|
type: "linkButton";
|
|
3713
|
-
text: string;
|
|
3714
5072
|
url: string;
|
|
5073
|
+
text: string;
|
|
3715
5074
|
style?: "danger" | "default" | "primary" | undefined;
|
|
3716
5075
|
external?: boolean | undefined;
|
|
3717
5076
|
} | {
|
|
@@ -3729,10 +5088,13 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3729
5088
|
cancel?: string | undefined;
|
|
3730
5089
|
} | undefined;
|
|
3731
5090
|
disabled?: boolean | undefined;
|
|
5091
|
+
hidden_for?: string[] | undefined;
|
|
5092
|
+
visible_for?: string[] | undefined;
|
|
5093
|
+
disabled_reason?: string | undefined;
|
|
3732
5094
|
} | {
|
|
3733
5095
|
type: "linkButton";
|
|
3734
|
-
text: string;
|
|
3735
5096
|
url: string;
|
|
5097
|
+
text: string;
|
|
3736
5098
|
style?: "danger" | "default" | "primary" | undefined;
|
|
3737
5099
|
external?: boolean | undefined;
|
|
3738
5100
|
})[];
|
|
@@ -3750,18 +5112,20 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3750
5112
|
cancel?: string | undefined;
|
|
3751
5113
|
} | undefined;
|
|
3752
5114
|
disabled?: boolean | undefined;
|
|
5115
|
+
hidden_for?: string[] | undefined;
|
|
5116
|
+
visible_for?: string[] | undefined;
|
|
5117
|
+
disabled_reason?: string | undefined;
|
|
3753
5118
|
}[];
|
|
3754
5119
|
label?: string | undefined;
|
|
3755
5120
|
} | {
|
|
3756
5121
|
type: "progress";
|
|
3757
5122
|
value?: number | undefined;
|
|
3758
5123
|
label?: string | undefined;
|
|
3759
|
-
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
3760
5124
|
} | {
|
|
3761
5125
|
type: "steps";
|
|
3762
5126
|
items: {
|
|
3763
5127
|
label: string;
|
|
3764
|
-
status?: "
|
|
5128
|
+
status?: "error" | "done" | "active" | "todo" | undefined;
|
|
3765
5129
|
note?: string | undefined;
|
|
3766
5130
|
}[];
|
|
3767
5131
|
} | {
|
|
@@ -3804,8 +5168,16 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3804
5168
|
type: "avatar";
|
|
3805
5169
|
name: string;
|
|
3806
5170
|
status?: "online" | "away" | "busy" | "offline" | undefined;
|
|
5171
|
+
ref?: {
|
|
5172
|
+
user: string;
|
|
5173
|
+
} | {
|
|
5174
|
+
entity: {
|
|
5175
|
+
type: string;
|
|
5176
|
+
id: string;
|
|
5177
|
+
};
|
|
5178
|
+
url?: string | undefined;
|
|
5179
|
+
} | undefined;
|
|
3807
5180
|
initials?: string | undefined;
|
|
3808
|
-
color?: string | undefined;
|
|
3809
5181
|
src?: string | undefined;
|
|
3810
5182
|
subtitle?: string | undefined;
|
|
3811
5183
|
} | {
|
|
@@ -3813,7 +5185,6 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3813
5185
|
people: {
|
|
3814
5186
|
name: string;
|
|
3815
5187
|
initials?: string | undefined;
|
|
3816
|
-
color?: string | undefined;
|
|
3817
5188
|
src?: string | undefined;
|
|
3818
5189
|
}[];
|
|
3819
5190
|
label?: string | undefined;
|
|
@@ -3841,17 +5212,17 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3841
5212
|
} | {
|
|
3842
5213
|
type: "entityRef";
|
|
3843
5214
|
label: string;
|
|
3844
|
-
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
3845
|
-
url?: string | undefined;
|
|
3846
5215
|
entity?: string | undefined;
|
|
5216
|
+
url?: string | undefined;
|
|
5217
|
+
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
3847
5218
|
} | {
|
|
3848
5219
|
type: "kanban";
|
|
3849
5220
|
columns: {
|
|
3850
|
-
title: string;
|
|
3851
5221
|
id: string;
|
|
5222
|
+
title: string;
|
|
3852
5223
|
cards: {
|
|
3853
|
-
title: string;
|
|
3854
5224
|
id: string;
|
|
5225
|
+
title: string;
|
|
3855
5226
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
3856
5227
|
badge?: {
|
|
3857
5228
|
label: string;
|
|
@@ -3874,6 +5245,34 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3874
5245
|
blocks: any[];
|
|
3875
5246
|
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
3876
5247
|
open?: boolean | undefined;
|
|
5248
|
+
legacy_for?: "activity" | undefined;
|
|
5249
|
+
} | {
|
|
5250
|
+
type: "activity";
|
|
5251
|
+
items: {
|
|
5252
|
+
at: string;
|
|
5253
|
+
who: string | {
|
|
5254
|
+
user: string;
|
|
5255
|
+
} | {
|
|
5256
|
+
entity: {
|
|
5257
|
+
type: string;
|
|
5258
|
+
id: string;
|
|
5259
|
+
};
|
|
5260
|
+
url?: string | undefined;
|
|
5261
|
+
};
|
|
5262
|
+
what: string;
|
|
5263
|
+
tone?: "neutral" | "success" | "warning" | "danger" | "info" | undefined;
|
|
5264
|
+
to?: string | {
|
|
5265
|
+
user: string;
|
|
5266
|
+
} | {
|
|
5267
|
+
entity: {
|
|
5268
|
+
type: string;
|
|
5269
|
+
id: string;
|
|
5270
|
+
};
|
|
5271
|
+
url?: string | undefined;
|
|
5272
|
+
} | undefined;
|
|
5273
|
+
}[];
|
|
5274
|
+
label?: string | undefined;
|
|
5275
|
+
maxVisible?: number | undefined;
|
|
3877
5276
|
} | {
|
|
3878
5277
|
type: "widget";
|
|
3879
5278
|
url: string;
|
|
@@ -3888,16 +5287,76 @@ export declare const UiCardContentSchema: z.ZodObject<{
|
|
|
3888
5287
|
expires_at?: number | undefined;
|
|
3889
5288
|
}>;
|
|
3890
5289
|
export type UiCardContent = z.infer<typeof UiCardContentSchema>;
|
|
5290
|
+
/**
|
|
5291
|
+
* 작성 클라이언트 환경(SCM-2 G6) — 폼 제출 시 클라가 **자기 신고로** 동봉하는 진단 메타.
|
|
5292
|
+
* 접수 폼처럼 "어떤 버전에서 쓰였나"가 중요한 액션의 디버깅 재료다. 위조 가능한 자기 신고이므로
|
|
5293
|
+
* 표시·진단용이지 권한·라우팅의 근거가 아니다(권위는 언제나 sender/서버). 모든 필드가 optional 인
|
|
5294
|
+
* 이유: 플랫폼마다 없는 축이 있고(웹엔 셸이 없다), 옛 클라는 아예 안 싣는다.
|
|
5295
|
+
*/
|
|
5296
|
+
export declare const UiActionClientSchema: z.ZodObject<{
|
|
5297
|
+
/** "ios" | "android" | "desktop" | "web" — 새 값이 올 수 있어 enum 으로 닫지 않는다. */
|
|
5298
|
+
platform: z.ZodOptional<z.ZodString>;
|
|
5299
|
+
/** 실행 중인 웹 번들 id(`version+commit`) — 네이티브에선 지금 도는 OTA 번들이기도 하다. */
|
|
5300
|
+
bundle: z.ZodOptional<z.ZodString>;
|
|
5301
|
+
/** 셸 버전 — 네이티브 "version (build)" / 데스크탑 Tauri version. 웹은 없음. */
|
|
5302
|
+
shell: z.ZodOptional<z.ZodString>;
|
|
5303
|
+
/** navigator.userAgent — OS 버전·웹뷰 판별용. 길어서 표시는 별도 줄로. */
|
|
5304
|
+
ua: z.ZodOptional<z.ZodString>;
|
|
5305
|
+
}, "strip", z.ZodTypeAny, {
|
|
5306
|
+
platform?: string | undefined;
|
|
5307
|
+
bundle?: string | undefined;
|
|
5308
|
+
shell?: string | undefined;
|
|
5309
|
+
ua?: string | undefined;
|
|
5310
|
+
}, {
|
|
5311
|
+
platform?: string | undefined;
|
|
5312
|
+
bundle?: string | undefined;
|
|
5313
|
+
shell?: string | undefined;
|
|
5314
|
+
ua?: string | undefined;
|
|
5315
|
+
}>;
|
|
5316
|
+
export type UiActionClient = z.infer<typeof UiActionClientSchema>;
|
|
3891
5317
|
export declare const UiActionContentSchema: z.ZodObject<{
|
|
3892
5318
|
v: z.ZodDefault<z.ZodLiteral<1>>;
|
|
3893
5319
|
card_id: z.ZodString;
|
|
3894
5320
|
/** 어떤 컨트롤이 트리거했는지 (버튼의 action_id 등) */
|
|
3895
5321
|
action_id: z.ZodString;
|
|
3896
|
-
|
|
5322
|
+
/**
|
|
5323
|
+
* 사람이 읽는 컨트롤 이름 — 누른 시점의 버튼 글자(`ButtonBlock.text`)·모달 확인 라벨·명령 라벨의 **스냅샷**.
|
|
5324
|
+
* 로그·흔적은 이것을 먼저 보이고 없으면 `action_id` 로 폴백한다. 카드가 나중에 갱신·삭제돼도 "무엇을
|
|
5325
|
+
* 눌렀는지"가 이벤트 안에 남게 하려는 것이라, 렌더러가 발행 시점에 싣는다. 선택 필드 — 옛 이벤트·
|
|
5326
|
+
* 카드 없는 호출(SDK invoke)은 비어 있을 수 있다.
|
|
5327
|
+
*/
|
|
5328
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5329
|
+
/**
|
|
5330
|
+
* `"query"`(0.7.0) — **후보를 묻는** 액션이다(`select` 의 `source: { kind: "query" }`). 사람이
|
|
5331
|
+
* 누른 게 아니라 타이핑이 만든 요청이므로 앱은 부작용 없이 `ctx.result({ kind: "options", … })` 로만
|
|
5332
|
+
* 답해야 한다. enum 확장이라 **옛 서버는 zod 실패로 무시**한다 — 게시 순서가 서버 먼저인 이유다.
|
|
5333
|
+
*/
|
|
5334
|
+
action_type: z.ZodEnum<["button", "submit", "select", "cancel", "query"]>;
|
|
3897
5335
|
/** 폼 입력 수집 결과 (input/select/checkbox name → value) */
|
|
3898
5336
|
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3899
5337
|
/** 어떤 버튼의 value였는지 (선택) */
|
|
3900
5338
|
value: z.ZodOptional<z.ZodString>;
|
|
5339
|
+
/** 작성 환경(선택, G6) — `ModalSpec.diagnostics` 를 켠 모달의 confirm 제출에만 클라가 싣는다. */
|
|
5340
|
+
client: z.ZodOptional<z.ZodObject<{
|
|
5341
|
+
/** "ios" | "android" | "desktop" | "web" — 새 값이 올 수 있어 enum 으로 닫지 않는다. */
|
|
5342
|
+
platform: z.ZodOptional<z.ZodString>;
|
|
5343
|
+
/** 실행 중인 웹 번들 id(`version+commit`) — 네이티브에선 지금 도는 OTA 번들이기도 하다. */
|
|
5344
|
+
bundle: z.ZodOptional<z.ZodString>;
|
|
5345
|
+
/** 셸 버전 — 네이티브 "version (build)" / 데스크탑 Tauri version. 웹은 없음. */
|
|
5346
|
+
shell: z.ZodOptional<z.ZodString>;
|
|
5347
|
+
/** navigator.userAgent — OS 버전·웹뷰 판별용. 길어서 표시는 별도 줄로. */
|
|
5348
|
+
ua: z.ZodOptional<z.ZodString>;
|
|
5349
|
+
}, "strip", z.ZodTypeAny, {
|
|
5350
|
+
platform?: string | undefined;
|
|
5351
|
+
bundle?: string | undefined;
|
|
5352
|
+
shell?: string | undefined;
|
|
5353
|
+
ua?: string | undefined;
|
|
5354
|
+
}, {
|
|
5355
|
+
platform?: string | undefined;
|
|
5356
|
+
bundle?: string | undefined;
|
|
5357
|
+
shell?: string | undefined;
|
|
5358
|
+
ua?: string | undefined;
|
|
5359
|
+
}>>;
|
|
3901
5360
|
"m.relates_to": z.ZodOptional<z.ZodObject<{
|
|
3902
5361
|
rel_type: z.ZodLiteral<"m.reference">;
|
|
3903
5362
|
event_id: z.ZodString;
|
|
@@ -3912,9 +5371,16 @@ export declare const UiActionContentSchema: z.ZodObject<{
|
|
|
3912
5371
|
action_id: string;
|
|
3913
5372
|
v: 1;
|
|
3914
5373
|
card_id: string;
|
|
3915
|
-
action_type: "cancel" | "select" | "button" | "submit";
|
|
5374
|
+
action_type: "cancel" | "select" | "button" | "submit" | "query";
|
|
3916
5375
|
value?: string | undefined;
|
|
3917
5376
|
values?: Record<string, unknown> | undefined;
|
|
5377
|
+
label?: string | undefined;
|
|
5378
|
+
client?: {
|
|
5379
|
+
platform?: string | undefined;
|
|
5380
|
+
bundle?: string | undefined;
|
|
5381
|
+
shell?: string | undefined;
|
|
5382
|
+
ua?: string | undefined;
|
|
5383
|
+
} | undefined;
|
|
3918
5384
|
"m.relates_to"?: {
|
|
3919
5385
|
rel_type: "m.reference";
|
|
3920
5386
|
event_id: string;
|
|
@@ -3922,16 +5388,134 @@ export declare const UiActionContentSchema: z.ZodObject<{
|
|
|
3922
5388
|
}, {
|
|
3923
5389
|
action_id: string;
|
|
3924
5390
|
card_id: string;
|
|
3925
|
-
action_type: "cancel" | "select" | "button" | "submit";
|
|
5391
|
+
action_type: "cancel" | "select" | "button" | "submit" | "query";
|
|
3926
5392
|
value?: string | undefined;
|
|
3927
5393
|
values?: Record<string, unknown> | undefined;
|
|
5394
|
+
label?: string | undefined;
|
|
3928
5395
|
v?: 1 | undefined;
|
|
5396
|
+
client?: {
|
|
5397
|
+
platform?: string | undefined;
|
|
5398
|
+
bundle?: string | undefined;
|
|
5399
|
+
shell?: string | undefined;
|
|
5400
|
+
ua?: string | undefined;
|
|
5401
|
+
} | undefined;
|
|
3929
5402
|
"m.relates_to"?: {
|
|
3930
5403
|
rel_type: "m.reference";
|
|
3931
5404
|
event_id: string;
|
|
3932
5405
|
} | undefined;
|
|
3933
5406
|
}>;
|
|
3934
5407
|
export type UiActionContent = z.infer<typeof UiActionContentSchema>;
|
|
5408
|
+
/**
|
|
5409
|
+
* 액션 한 건의 **판정 결과**. 지금까지 앱이 `send` 로 방에 쌓던 오류 카드·거절 카드가 이 채널로 온다.
|
|
5410
|
+
*
|
|
5411
|
+
* 네 종류가 한 모양을 쓴다(감사 문서 A): 값 검증 실패(`reject`) · 권한 거절(`denied`) ·
|
|
5412
|
+
* 성공 확인(`ok`) · 동적 후보 응답(`options`). 생애주기가 같은 술어 — "이 액션이 (이 값, 이 사람)에게
|
|
5413
|
+
* 지금 유효한가" — 라서 채널을 나눌 이유가 없다.
|
|
5414
|
+
*
|
|
5415
|
+
* 🔴 **v1 은 방 이벤트다.** to-device 가 아니라: (1) 페더레이션·다중 기기에서 방 이벤트가 단순하고,
|
|
5416
|
+
* (2) 클라가 이미 방 타임라인을 읽고 있어 새 배관이 필요 없다. 대신 **방 멤버가 읽을 수는 있다** —
|
|
5417
|
+
* 그래서 비밀(다른 사람의 데이터)을 여기 싣지 않는다. `to` 는 "누구에게 그릴지"이지 접근 통제가 아니다.
|
|
5418
|
+
* to-device 전환은 후속 최적화다(그때도 이 스키마는 그대로 쓴다).
|
|
5419
|
+
*/
|
|
5420
|
+
export declare const UiActionResultContentSchema: z.ZodObject<{
|
|
5421
|
+
v: z.ZodDefault<z.ZodLiteral<1>>;
|
|
5422
|
+
/** 어떤 카드의 결과인지 — 액션의 `card_id` 를 그대로 되돌려 준다. */
|
|
5423
|
+
card_id: z.ZodString;
|
|
5424
|
+
/** 어떤 컨트롤의 결과인지 — 액션의 `action_id`. 클라가 그 버튼/필드 아래에 그린다. */
|
|
5425
|
+
action_id: z.ZodString;
|
|
5426
|
+
/**
|
|
5427
|
+
* 무엇을 말하는가.
|
|
5428
|
+
* - `ok`: 처리됐다(`message` 를 토스트로).
|
|
5429
|
+
* - `reject`: 값이 잘못됐다 — `errors` 가 필드 이름 → 문장.
|
|
5430
|
+
* - `denied`: 이 사람은 못 한다 — `reason` 한 줄.
|
|
5431
|
+
* - `options`: 물어본 후보를 준다 — `name`(어느 select 인지) + `options`.
|
|
5432
|
+
*/
|
|
5433
|
+
kind: z.ZodEnum<["ok", "reject", "denied", "options"]>;
|
|
5434
|
+
/** `ok`/`denied` 의 사람이 읽을 한 줄(작성자 소유 문장). */
|
|
5435
|
+
message: z.ZodOptional<z.ZodString>;
|
|
5436
|
+
/** `reject` — 입력 블록의 `name` → 그 필드 아래에 그릴 문장. */
|
|
5437
|
+
errors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5438
|
+
/** `denied` — 왜 못 하는지 한 줄. */
|
|
5439
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
5440
|
+
/** `options` — 어느 `select` 의 후보인가(그 블록의 `name`). */
|
|
5441
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5442
|
+
/** `options` — 후보 목록. 모양은 `SelectBlockSchema.options` 와 같다(hint 포함). */
|
|
5443
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5444
|
+
value: z.ZodString;
|
|
5445
|
+
label: z.ZodString;
|
|
5446
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
5447
|
+
}, "strip", z.ZodTypeAny, {
|
|
5448
|
+
value: string;
|
|
5449
|
+
label: string;
|
|
5450
|
+
hint?: string | undefined;
|
|
5451
|
+
}, {
|
|
5452
|
+
value: string;
|
|
5453
|
+
label: string;
|
|
5454
|
+
hint?: string | undefined;
|
|
5455
|
+
}>, "many">>;
|
|
5456
|
+
/**
|
|
5457
|
+
* 이 결과를 **볼 사람**(MXID). 액션을 보낸 사람이다. 🔴 다른 뷰어는 이 이벤트를 받아도 그리지 않는다 —
|
|
5458
|
+
* 판정은 클라가 하고(`to !== selfId` 면 무시), 그게 접근 통제가 아니라는 점은 위 머리말 그대로다.
|
|
5459
|
+
*/
|
|
5460
|
+
to: z.ZodString;
|
|
5461
|
+
/**
|
|
5462
|
+
* 원본 **카드** 이벤트 id(있으면). `m.relates_to` 는 **액션** 이벤트를 가리키므로, 카드까지 두 단계를
|
|
5463
|
+
* 거슬러야 한다 — 이 키가 있으면 클라 인덱싱이 한 단계로 끝난다(없어도 동작한다, 느릴 뿐).
|
|
5464
|
+
*/
|
|
5465
|
+
card_event_id: z.ZodOptional<z.ZodString>;
|
|
5466
|
+
/** 이 결과가 답하는 **액션** 이벤트(`org.corp.ui.action`). */
|
|
5467
|
+
"m.relates_to": z.ZodOptional<z.ZodObject<{
|
|
5468
|
+
rel_type: z.ZodLiteral<"m.reference">;
|
|
5469
|
+
event_id: z.ZodString;
|
|
5470
|
+
}, "strip", z.ZodTypeAny, {
|
|
5471
|
+
rel_type: "m.reference";
|
|
5472
|
+
event_id: string;
|
|
5473
|
+
}, {
|
|
5474
|
+
rel_type: "m.reference";
|
|
5475
|
+
event_id: string;
|
|
5476
|
+
}>>;
|
|
5477
|
+
}, "strip", z.ZodTypeAny, {
|
|
5478
|
+
action_id: string;
|
|
5479
|
+
to: string;
|
|
5480
|
+
v: 1;
|
|
5481
|
+
card_id: string;
|
|
5482
|
+
kind: "options" | "ok" | "reject" | "denied";
|
|
5483
|
+
message?: string | undefined;
|
|
5484
|
+
options?: {
|
|
5485
|
+
value: string;
|
|
5486
|
+
label: string;
|
|
5487
|
+
hint?: string | undefined;
|
|
5488
|
+
}[] | undefined;
|
|
5489
|
+
name?: string | undefined;
|
|
5490
|
+
"m.relates_to"?: {
|
|
5491
|
+
rel_type: "m.reference";
|
|
5492
|
+
event_id: string;
|
|
5493
|
+
} | undefined;
|
|
5494
|
+
errors?: Record<string, string> | undefined;
|
|
5495
|
+
reason?: string | undefined;
|
|
5496
|
+
card_event_id?: string | undefined;
|
|
5497
|
+
}, {
|
|
5498
|
+
action_id: string;
|
|
5499
|
+
to: string;
|
|
5500
|
+
card_id: string;
|
|
5501
|
+
kind: "options" | "ok" | "reject" | "denied";
|
|
5502
|
+
message?: string | undefined;
|
|
5503
|
+
options?: {
|
|
5504
|
+
value: string;
|
|
5505
|
+
label: string;
|
|
5506
|
+
hint?: string | undefined;
|
|
5507
|
+
}[] | undefined;
|
|
5508
|
+
name?: string | undefined;
|
|
5509
|
+
v?: 1 | undefined;
|
|
5510
|
+
"m.relates_to"?: {
|
|
5511
|
+
rel_type: "m.reference";
|
|
5512
|
+
event_id: string;
|
|
5513
|
+
} | undefined;
|
|
5514
|
+
errors?: Record<string, string> | undefined;
|
|
5515
|
+
reason?: string | undefined;
|
|
5516
|
+
card_event_id?: string | undefined;
|
|
5517
|
+
}>;
|
|
5518
|
+
export type UiActionResultContent = z.infer<typeof UiActionResultContentSchema>;
|
|
3935
5519
|
export declare const CommandContentSchema: z.ZodObject<{
|
|
3936
5520
|
v: z.ZodDefault<z.ZodLiteral<1>>;
|
|
3937
5521
|
/** 의도 식별자 (예: "invoice.approve") */
|
|
@@ -4059,20 +5643,20 @@ export declare const WorkflowStateContentSchema: z.ZodObject<{
|
|
|
4059
5643
|
}, "strip", z.ZodTypeAny, {
|
|
4060
5644
|
status: string;
|
|
4061
5645
|
v: 1;
|
|
4062
|
-
data?: Record<string, unknown> | undefined;
|
|
4063
5646
|
entity?: {
|
|
4064
5647
|
type: string;
|
|
4065
5648
|
id: string;
|
|
4066
5649
|
} | undefined;
|
|
5650
|
+
data?: Record<string, unknown> | undefined;
|
|
4067
5651
|
updated_by?: string | undefined;
|
|
4068
5652
|
updated_at?: number | undefined;
|
|
4069
5653
|
}, {
|
|
4070
5654
|
status: string;
|
|
4071
|
-
data?: Record<string, unknown> | undefined;
|
|
4072
5655
|
entity?: {
|
|
4073
5656
|
type: string;
|
|
4074
5657
|
id: string;
|
|
4075
5658
|
} | undefined;
|
|
5659
|
+
data?: Record<string, unknown> | undefined;
|
|
4076
5660
|
v?: 1 | undefined;
|
|
4077
5661
|
updated_by?: string | undefined;
|
|
4078
5662
|
updated_at?: number | undefined;
|
|
@@ -4305,7 +5889,7 @@ export declare const ApprovalDecisionContentSchema: z.ZodObject<{
|
|
|
4305
5889
|
v: 1;
|
|
4306
5890
|
request_id: string;
|
|
4307
5891
|
approver: string;
|
|
4308
|
-
decision: "
|
|
5892
|
+
decision: "reject" | "approve";
|
|
4309
5893
|
note?: string | undefined;
|
|
4310
5894
|
"m.relates_to"?: {
|
|
4311
5895
|
rel_type: "m.reference";
|
|
@@ -4314,7 +5898,7 @@ export declare const ApprovalDecisionContentSchema: z.ZodObject<{
|
|
|
4314
5898
|
}, {
|
|
4315
5899
|
request_id: string;
|
|
4316
5900
|
approver: string;
|
|
4317
|
-
decision: "
|
|
5901
|
+
decision: "reject" | "approve";
|
|
4318
5902
|
note?: string | undefined;
|
|
4319
5903
|
v?: 1 | undefined;
|
|
4320
5904
|
"m.relates_to"?: {
|
|
@@ -4335,14 +5919,14 @@ export declare const AgentPlanStepSchema: z.ZodObject<{
|
|
|
4335
5919
|
status: z.ZodDefault<z.ZodEnum<["queued", "active", "done", "error"]>>;
|
|
4336
5920
|
note: z.ZodOptional<z.ZodString>;
|
|
4337
5921
|
}, "strip", z.ZodTypeAny, {
|
|
4338
|
-
status: "
|
|
4339
|
-
label: string;
|
|
5922
|
+
status: "error" | "done" | "active" | "queued";
|
|
4340
5923
|
id: string;
|
|
5924
|
+
label: string;
|
|
4341
5925
|
note?: string | undefined;
|
|
4342
5926
|
}, {
|
|
4343
|
-
label: string;
|
|
4344
5927
|
id: string;
|
|
4345
|
-
|
|
5928
|
+
label: string;
|
|
5929
|
+
status?: "error" | "done" | "active" | "queued" | undefined;
|
|
4346
5930
|
note?: string | undefined;
|
|
4347
5931
|
}>;
|
|
4348
5932
|
export type AgentPlanStep = z.infer<typeof AgentPlanStepSchema>;
|
|
@@ -4362,23 +5946,23 @@ export declare const AgentPlanContentSchema: z.ZodObject<{
|
|
|
4362
5946
|
status: z.ZodDefault<z.ZodEnum<["queued", "active", "done", "error"]>>;
|
|
4363
5947
|
note: z.ZodOptional<z.ZodString>;
|
|
4364
5948
|
}, "strip", z.ZodTypeAny, {
|
|
4365
|
-
status: "
|
|
4366
|
-
label: string;
|
|
5949
|
+
status: "error" | "done" | "active" | "queued";
|
|
4367
5950
|
id: string;
|
|
5951
|
+
label: string;
|
|
4368
5952
|
note?: string | undefined;
|
|
4369
5953
|
}, {
|
|
4370
|
-
label: string;
|
|
4371
5954
|
id: string;
|
|
4372
|
-
|
|
5955
|
+
label: string;
|
|
5956
|
+
status?: "error" | "done" | "active" | "queued" | undefined;
|
|
4373
5957
|
note?: string | undefined;
|
|
4374
5958
|
}>, "many">;
|
|
4375
5959
|
/** 전체 공정률 0~100(생략 시 클라가 done/total 로 산출). */
|
|
4376
5960
|
progress: z.ZodOptional<z.ZodNumber>;
|
|
4377
5961
|
}, "strip", z.ZodTypeAny, {
|
|
4378
5962
|
steps: {
|
|
4379
|
-
status: "
|
|
4380
|
-
label: string;
|
|
5963
|
+
status: "error" | "done" | "active" | "queued";
|
|
4381
5964
|
id: string;
|
|
5965
|
+
label: string;
|
|
4382
5966
|
note?: string | undefined;
|
|
4383
5967
|
}[];
|
|
4384
5968
|
v: 1;
|
|
@@ -4388,9 +5972,9 @@ export declare const AgentPlanContentSchema: z.ZodObject<{
|
|
|
4388
5972
|
agent?: string | undefined;
|
|
4389
5973
|
}, {
|
|
4390
5974
|
steps: {
|
|
4391
|
-
label: string;
|
|
4392
5975
|
id: string;
|
|
4393
|
-
|
|
5976
|
+
label: string;
|
|
5977
|
+
status?: "error" | "done" | "active" | "queued" | undefined;
|
|
4394
5978
|
note?: string | undefined;
|
|
4395
5979
|
}[];
|
|
4396
5980
|
run_id: string;
|
|
@@ -4422,7 +6006,7 @@ export declare const AgentStepContentSchema: z.ZodObject<{
|
|
|
4422
6006
|
event_id: string;
|
|
4423
6007
|
}>>;
|
|
4424
6008
|
}, "strip", z.ZodTypeAny, {
|
|
4425
|
-
status: "
|
|
6009
|
+
status: "error" | "done" | "active" | "queued";
|
|
4426
6010
|
v: 1;
|
|
4427
6011
|
run_id: string;
|
|
4428
6012
|
step_id: string;
|
|
@@ -4433,7 +6017,7 @@ export declare const AgentStepContentSchema: z.ZodObject<{
|
|
|
4433
6017
|
event_id: string;
|
|
4434
6018
|
} | undefined;
|
|
4435
6019
|
}, {
|
|
4436
|
-
status: "
|
|
6020
|
+
status: "error" | "done" | "active" | "queued";
|
|
4437
6021
|
run_id: string;
|
|
4438
6022
|
step_id: string;
|
|
4439
6023
|
progress?: number | undefined;
|
|
@@ -4583,16 +6167,16 @@ export declare const A2aRequestContentSchema: z.ZodObject<{
|
|
|
4583
6167
|
request_id: string;
|
|
4584
6168
|
from_agent: string;
|
|
4585
6169
|
to_agent: string;
|
|
4586
|
-
payload?: Record<string, unknown> | undefined;
|
|
4587
6170
|
reason?: string | undefined;
|
|
6171
|
+
payload?: Record<string, unknown> | undefined;
|
|
4588
6172
|
}, {
|
|
4589
6173
|
intent: string;
|
|
4590
6174
|
request_id: string;
|
|
4591
6175
|
from_agent: string;
|
|
4592
6176
|
to_agent: string;
|
|
4593
6177
|
v?: 1 | undefined;
|
|
4594
|
-
payload?: Record<string, unknown> | undefined;
|
|
4595
6178
|
reason?: string | undefined;
|
|
6179
|
+
payload?: Record<string, unknown> | undefined;
|
|
4596
6180
|
}>;
|
|
4597
6181
|
export type A2aRequestContent = z.infer<typeof A2aRequestContentSchema>;
|
|
4598
6182
|
export declare const A2aResultContentSchema: z.ZodObject<{
|
|
@@ -4639,6 +6223,105 @@ export declare const A2aResultContentSchema: z.ZodObject<{
|
|
|
4639
6223
|
result?: Record<string, unknown> | undefined;
|
|
4640
6224
|
}>;
|
|
4641
6225
|
export type A2aResultContent = z.infer<typeof A2aResultContentSchema>;
|
|
6226
|
+
export declare const FilePreviewContentSchema: z.ZodEffects<z.ZodObject<{
|
|
6227
|
+
v: z.ZodDefault<z.ZodLiteral<1>>;
|
|
6228
|
+
/**
|
|
6229
|
+
* 생성 상태. 생략하면 ready 로 본다.
|
|
6230
|
+
* pending = 변환 중(수신측이 자리표시를 띄운다), failed = 생성 포기(철회 — 원본 타일로 복귀).
|
|
6231
|
+
*/
|
|
6232
|
+
status: z.ZodOptional<z.ZodEnum<["pending", "ready", "failed"]>>;
|
|
6233
|
+
/** 봇이 업로드한 **미리보기 이미지**의 MXC URI (원본 파일의 mxc 가 아니다). ready 면 필수. */
|
|
6234
|
+
mxc: z.ZodOptional<z.ZodString>;
|
|
6235
|
+
/** 미리보기 이미지의 MIME (보통 image/png). 원본 파일의 MIME 이 아니다. ready 면 필수. */
|
|
6236
|
+
mime: z.ZodOptional<z.ZodString>;
|
|
6237
|
+
/**
|
|
6238
|
+
* 미리보기 파일명(선택). 클라 렌더러 판정은 mime 이 1차 키지만 확장자를 보조로 쓰는 경로가
|
|
6239
|
+
* 있어(previewRegistry), mime 이 뭉뚱그려 올 때 이 값이 판정을 건진다.
|
|
6240
|
+
*/
|
|
6241
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
6242
|
+
/** 미리보기 이미지의 픽셀 폭/높이 — 받기 전에 자리를 잡아 레이아웃 점프를 막는 힌트(선택). */
|
|
6243
|
+
w: z.ZodOptional<z.ZodNumber>;
|
|
6244
|
+
h: z.ZodOptional<z.ZodNumber>;
|
|
6245
|
+
/** 미리보기 이미지 바이트 크기(선택). */
|
|
6246
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
6247
|
+
/**
|
|
6248
|
+
* 어느 변환기가 만들었나(예: "drawing-renderer") — 진단 + 변환기별 라우팅 키.
|
|
6249
|
+
* 이름이 `source` 가 아닌 이유: 이 통로에서 "source" 는 원본 파일로 읽히는 게 자연스럽고,
|
|
6250
|
+
* 원본은 m.relates_to 가 가리킨다. 두 뜻이 한 이름을 나눠 쓰면 조용히 어긋난다.
|
|
6251
|
+
*/
|
|
6252
|
+
generator: z.ZodString;
|
|
6253
|
+
/**
|
|
6254
|
+
* 원본 파일 이벤트를 참조(m.reference). 참조 이벤트 관례를 따라 형태는 optional 이지만,
|
|
6255
|
+
* 이게 없으면 어느 파일에 붙일지 알 수 없어 수신측이 그냥 무시한다 — 발행할 땐 항상 붙인다.
|
|
6256
|
+
*/
|
|
6257
|
+
"m.relates_to": z.ZodOptional<z.ZodObject<{
|
|
6258
|
+
rel_type: z.ZodLiteral<"m.reference">;
|
|
6259
|
+
event_id: z.ZodString;
|
|
6260
|
+
}, "strip", z.ZodTypeAny, {
|
|
6261
|
+
rel_type: "m.reference";
|
|
6262
|
+
event_id: string;
|
|
6263
|
+
}, {
|
|
6264
|
+
rel_type: "m.reference";
|
|
6265
|
+
event_id: string;
|
|
6266
|
+
}>>;
|
|
6267
|
+
}, "strip", z.ZodTypeAny, {
|
|
6268
|
+
v: 1;
|
|
6269
|
+
generator: string;
|
|
6270
|
+
status?: "pending" | "ready" | "failed" | undefined;
|
|
6271
|
+
mxc?: string | undefined;
|
|
6272
|
+
filename?: string | undefined;
|
|
6273
|
+
size?: number | undefined;
|
|
6274
|
+
mime?: string | undefined;
|
|
6275
|
+
"m.relates_to"?: {
|
|
6276
|
+
rel_type: "m.reference";
|
|
6277
|
+
event_id: string;
|
|
6278
|
+
} | undefined;
|
|
6279
|
+
w?: number | undefined;
|
|
6280
|
+
h?: number | undefined;
|
|
6281
|
+
}, {
|
|
6282
|
+
generator: string;
|
|
6283
|
+
status?: "pending" | "ready" | "failed" | undefined;
|
|
6284
|
+
mxc?: string | undefined;
|
|
6285
|
+
filename?: string | undefined;
|
|
6286
|
+
size?: number | undefined;
|
|
6287
|
+
mime?: string | undefined;
|
|
6288
|
+
v?: 1 | undefined;
|
|
6289
|
+
"m.relates_to"?: {
|
|
6290
|
+
rel_type: "m.reference";
|
|
6291
|
+
event_id: string;
|
|
6292
|
+
} | undefined;
|
|
6293
|
+
w?: number | undefined;
|
|
6294
|
+
h?: number | undefined;
|
|
6295
|
+
}>, {
|
|
6296
|
+
v: 1;
|
|
6297
|
+
generator: string;
|
|
6298
|
+
status?: "pending" | "ready" | "failed" | undefined;
|
|
6299
|
+
mxc?: string | undefined;
|
|
6300
|
+
filename?: string | undefined;
|
|
6301
|
+
size?: number | undefined;
|
|
6302
|
+
mime?: string | undefined;
|
|
6303
|
+
"m.relates_to"?: {
|
|
6304
|
+
rel_type: "m.reference";
|
|
6305
|
+
event_id: string;
|
|
6306
|
+
} | undefined;
|
|
6307
|
+
w?: number | undefined;
|
|
6308
|
+
h?: number | undefined;
|
|
6309
|
+
}, {
|
|
6310
|
+
generator: string;
|
|
6311
|
+
status?: "pending" | "ready" | "failed" | undefined;
|
|
6312
|
+
mxc?: string | undefined;
|
|
6313
|
+
filename?: string | undefined;
|
|
6314
|
+
size?: number | undefined;
|
|
6315
|
+
mime?: string | undefined;
|
|
6316
|
+
v?: 1 | undefined;
|
|
6317
|
+
"m.relates_to"?: {
|
|
6318
|
+
rel_type: "m.reference";
|
|
6319
|
+
event_id: string;
|
|
6320
|
+
} | undefined;
|
|
6321
|
+
w?: number | undefined;
|
|
6322
|
+
h?: number | undefined;
|
|
6323
|
+
}>;
|
|
6324
|
+
export type FilePreviewContent = z.infer<typeof FilePreviewContentSchema>;
|
|
4642
6325
|
/** UI 카드를 담은 m.room.message content. 미지원 클라는 body로, 우리 클라는 [UI_CONTENT_KEY]로 렌더. */
|
|
4643
6326
|
export type UiMessageContent = {
|
|
4644
6327
|
msgtype: "m.text";
|
|
@@ -4674,11 +6357,10 @@ export declare function buildUiMessageEdit(originalEventId: string, card: Omit<U
|
|
|
4674
6357
|
};
|
|
4675
6358
|
/** 라이브 카드 부분 갱신 명세 — 바뀐 progress/steps/state/title 만 담는다. */
|
|
4676
6359
|
export interface CardPatch {
|
|
4677
|
-
/** 첫 progress 블록 갱신 — 숫자면 value, 객체면 value/label
|
|
6360
|
+
/** 첫 progress 블록 갱신 — 숫자면 value, 객체면 value/label 부분 갱신. */
|
|
4678
6361
|
progress?: number | {
|
|
4679
6362
|
value?: number;
|
|
4680
6363
|
label?: string;
|
|
4681
|
-
tone?: Tone;
|
|
4682
6364
|
};
|
|
4683
6365
|
/** 첫 steps 블록의 항목을 인덱스로 부분 갱신(작업/단계 진행). */
|
|
4684
6366
|
steps?: {
|
|
@@ -4765,10 +6447,29 @@ export declare function buildTaskCreate(task: Omit<TaskCreateContent, "v" | "sta
|
|
|
4765
6447
|
export declare function buildTaskUpdate(update: Omit<TaskUpdateContent, "v"> & {
|
|
4766
6448
|
v?: typeof SCHEMA_VERSION;
|
|
4767
6449
|
}): TaskUpdateContent;
|
|
6450
|
+
/**
|
|
6451
|
+
* 파생 미리보기 content를 만든다 (org.corp.file.preview — 원본 파일 이벤트를 m.reference).
|
|
6452
|
+
* 한 원본에 대해 pending → ready(또는 failed) 순으로 여러 번 발행한다(전이 = 새 이벤트).
|
|
6453
|
+
*/
|
|
6454
|
+
export declare function buildFilePreview(preview: Omit<FilePreviewContent, "v"> & {
|
|
6455
|
+
v?: typeof SCHEMA_VERSION;
|
|
6456
|
+
}): FilePreviewContent;
|
|
4768
6457
|
/** UI 액션 회신 content를 만든다. */
|
|
4769
6458
|
export declare function buildUiActionContent(action: Omit<UiActionContent, "v"> & {
|
|
4770
6459
|
v?: typeof SCHEMA_VERSION;
|
|
4771
6460
|
}): UiActionContent;
|
|
6461
|
+
/**
|
|
6462
|
+
* 액션 결과 회신 content 를 만든다 (0.7.0). **strict** 다 — 보낼 때 잘못된 모양은 즉시 거부한다
|
|
6463
|
+
* (`buildUiCardContent` 와 같은 자세: 인바운드만 관대하고 아웃바운드는 엄격).
|
|
6464
|
+
*/
|
|
6465
|
+
export declare function buildUiActionResult(result: Omit<UiActionResultContent, "v"> & {
|
|
6466
|
+
v?: typeof SCHEMA_VERSION;
|
|
6467
|
+
}): UiActionResultContent;
|
|
6468
|
+
/**
|
|
6469
|
+
* 인바운드 액션 결과를 읽는다 — 모양이 안 맞으면 `null`(타임라인을 깨뜨리지 않는다).
|
|
6470
|
+
* 클라는 여기서 나온 뒤 `to === selfId` 인 것만 그린다(`to` 는 표시 대상이지 접근 통제가 아니다).
|
|
6471
|
+
*/
|
|
6472
|
+
export declare function extractUiActionResult(content: unknown): UiActionResultContent | null;
|
|
4772
6473
|
/** m.room.message content 또는 임의 객체에서 끼워진 UI 카드를 추출한다(있으면). */
|
|
4773
6474
|
export declare function extractUiCard(content: unknown): UiCardContent | null;
|
|
4774
6475
|
export { EventType, UI_CONTENT_KEY };
|