@meetopenbot/plugin-sdk 2.2.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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/ui-schema.d.ts +438 -0
- package/dist/ui-schema.d.ts.map +1 -0
- package/dist/ui-schema.js +115 -0
- package/dist/ui-schema.js.map +1 -0
- package/dist/ui.d.ts +15 -1
- package/dist/ui.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC"}
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,438 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const uiWidgetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
|
+
kind: z.ZodLiteral<"message">;
|
|
4
|
+
body: z.ZodOptional<z.ZodString>;
|
|
5
|
+
widgetId: z.ZodOptional<z.ZodString>;
|
|
6
|
+
title: z.ZodOptional<z.ZodString>;
|
|
7
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8
|
+
media: z.ZodOptional<z.ZodObject<{
|
|
9
|
+
type: z.ZodEnum<{
|
|
10
|
+
image: "image";
|
|
11
|
+
video: "video";
|
|
12
|
+
audio: "audio";
|
|
13
|
+
file: "file";
|
|
14
|
+
}>;
|
|
15
|
+
url: z.ZodString;
|
|
16
|
+
title: z.ZodOptional<z.ZodString>;
|
|
17
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
18
|
+
thumbnailUrl: z.ZodOptional<z.ZodString>;
|
|
19
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
22
|
+
id: z.ZodString;
|
|
23
|
+
label: z.ZodString;
|
|
24
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
25
|
+
variant: z.ZodOptional<z.ZodEnum<{
|
|
26
|
+
primary: "primary";
|
|
27
|
+
secondary: "secondary";
|
|
28
|
+
danger: "danger";
|
|
29
|
+
}>>;
|
|
30
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
}, z.core.$strip>>>;
|
|
32
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
33
|
+
open: "open";
|
|
34
|
+
submitted: "submitted";
|
|
35
|
+
cancelled: "cancelled";
|
|
36
|
+
error: "error";
|
|
37
|
+
}>>;
|
|
38
|
+
display: z.ZodOptional<z.ZodEnum<{
|
|
39
|
+
expanded: "expanded";
|
|
40
|
+
collapsed: "collapsed";
|
|
41
|
+
}>>;
|
|
42
|
+
groupId: z.ZodOptional<z.ZodString>;
|
|
43
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
44
|
+
small: "small";
|
|
45
|
+
medium: "medium";
|
|
46
|
+
large: "large";
|
|
47
|
+
full: "full";
|
|
48
|
+
}>>;
|
|
49
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
50
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
51
|
+
kind: z.ZodLiteral<"choice">;
|
|
52
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
53
|
+
id: z.ZodString;
|
|
54
|
+
label: z.ZodString;
|
|
55
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
56
|
+
variant: z.ZodOptional<z.ZodEnum<{
|
|
57
|
+
primary: "primary";
|
|
58
|
+
secondary: "secondary";
|
|
59
|
+
danger: "danger";
|
|
60
|
+
}>>;
|
|
61
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
+
}, z.core.$strip>>;
|
|
63
|
+
widgetId: z.ZodOptional<z.ZodString>;
|
|
64
|
+
title: z.ZodOptional<z.ZodString>;
|
|
65
|
+
description: z.ZodOptional<z.ZodString>;
|
|
66
|
+
media: z.ZodOptional<z.ZodObject<{
|
|
67
|
+
type: z.ZodEnum<{
|
|
68
|
+
image: "image";
|
|
69
|
+
video: "video";
|
|
70
|
+
audio: "audio";
|
|
71
|
+
file: "file";
|
|
72
|
+
}>;
|
|
73
|
+
url: z.ZodString;
|
|
74
|
+
title: z.ZodOptional<z.ZodString>;
|
|
75
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
76
|
+
thumbnailUrl: z.ZodOptional<z.ZodString>;
|
|
77
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
78
|
+
}, z.core.$strip>>;
|
|
79
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
80
|
+
open: "open";
|
|
81
|
+
submitted: "submitted";
|
|
82
|
+
cancelled: "cancelled";
|
|
83
|
+
error: "error";
|
|
84
|
+
}>>;
|
|
85
|
+
display: z.ZodOptional<z.ZodEnum<{
|
|
86
|
+
expanded: "expanded";
|
|
87
|
+
collapsed: "collapsed";
|
|
88
|
+
}>>;
|
|
89
|
+
groupId: z.ZodOptional<z.ZodString>;
|
|
90
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
91
|
+
small: "small";
|
|
92
|
+
medium: "medium";
|
|
93
|
+
large: "large";
|
|
94
|
+
full: "full";
|
|
95
|
+
}>>;
|
|
96
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
97
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
98
|
+
kind: z.ZodLiteral<"form">;
|
|
99
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
100
|
+
id: z.ZodString;
|
|
101
|
+
label: z.ZodString;
|
|
102
|
+
type: z.ZodEnum<{
|
|
103
|
+
number: "number";
|
|
104
|
+
boolean: "boolean";
|
|
105
|
+
password: "password";
|
|
106
|
+
textarea: "textarea";
|
|
107
|
+
text: "text";
|
|
108
|
+
select: "select";
|
|
109
|
+
multiselect: "multiselect";
|
|
110
|
+
date: "date";
|
|
111
|
+
}>;
|
|
112
|
+
description: z.ZodOptional<z.ZodString>;
|
|
113
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
114
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
115
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
116
|
+
label: z.ZodString;
|
|
117
|
+
value: z.ZodString;
|
|
118
|
+
}, z.core.$strip>>>;
|
|
119
|
+
defaultValue: z.ZodOptional<z.ZodUnknown>;
|
|
120
|
+
}, z.core.$strip>>;
|
|
121
|
+
submitLabel: z.ZodOptional<z.ZodString>;
|
|
122
|
+
widgetId: z.ZodOptional<z.ZodString>;
|
|
123
|
+
title: z.ZodOptional<z.ZodString>;
|
|
124
|
+
description: z.ZodOptional<z.ZodString>;
|
|
125
|
+
media: z.ZodOptional<z.ZodObject<{
|
|
126
|
+
type: z.ZodEnum<{
|
|
127
|
+
image: "image";
|
|
128
|
+
video: "video";
|
|
129
|
+
audio: "audio";
|
|
130
|
+
file: "file";
|
|
131
|
+
}>;
|
|
132
|
+
url: z.ZodString;
|
|
133
|
+
title: z.ZodOptional<z.ZodString>;
|
|
134
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
135
|
+
thumbnailUrl: z.ZodOptional<z.ZodString>;
|
|
136
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
137
|
+
}, z.core.$strip>>;
|
|
138
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
139
|
+
id: z.ZodString;
|
|
140
|
+
label: z.ZodString;
|
|
141
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
142
|
+
variant: z.ZodOptional<z.ZodEnum<{
|
|
143
|
+
primary: "primary";
|
|
144
|
+
secondary: "secondary";
|
|
145
|
+
danger: "danger";
|
|
146
|
+
}>>;
|
|
147
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
148
|
+
}, z.core.$strip>>>;
|
|
149
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
150
|
+
open: "open";
|
|
151
|
+
submitted: "submitted";
|
|
152
|
+
cancelled: "cancelled";
|
|
153
|
+
error: "error";
|
|
154
|
+
}>>;
|
|
155
|
+
display: z.ZodOptional<z.ZodEnum<{
|
|
156
|
+
expanded: "expanded";
|
|
157
|
+
collapsed: "collapsed";
|
|
158
|
+
}>>;
|
|
159
|
+
groupId: z.ZodOptional<z.ZodString>;
|
|
160
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
161
|
+
small: "small";
|
|
162
|
+
medium: "medium";
|
|
163
|
+
large: "large";
|
|
164
|
+
full: "full";
|
|
165
|
+
}>>;
|
|
166
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
167
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
168
|
+
kind: z.ZodLiteral<"list">;
|
|
169
|
+
items: z.ZodArray<z.ZodObject<{
|
|
170
|
+
id: z.ZodString;
|
|
171
|
+
label: z.ZodString;
|
|
172
|
+
description: z.ZodOptional<z.ZodString>;
|
|
173
|
+
image: z.ZodOptional<z.ZodString>;
|
|
174
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
175
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
176
|
+
id: z.ZodString;
|
|
177
|
+
label: z.ZodString;
|
|
178
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
179
|
+
variant: z.ZodOptional<z.ZodEnum<{
|
|
180
|
+
primary: "primary";
|
|
181
|
+
secondary: "secondary";
|
|
182
|
+
danger: "danger";
|
|
183
|
+
}>>;
|
|
184
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
185
|
+
}, z.core.$strip>>>;
|
|
186
|
+
status: z.ZodOptional<z.ZodString>;
|
|
187
|
+
statusVariant: z.ZodOptional<z.ZodEnum<{
|
|
188
|
+
success: "success";
|
|
189
|
+
danger: "danger";
|
|
190
|
+
default: "default";
|
|
191
|
+
warning: "warning";
|
|
192
|
+
info: "info";
|
|
193
|
+
}>>;
|
|
194
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
195
|
+
}, z.core.$strip>>;
|
|
196
|
+
layout: z.ZodOptional<z.ZodEnum<{
|
|
197
|
+
default: "default";
|
|
198
|
+
checklist: "checklist";
|
|
199
|
+
}>>;
|
|
200
|
+
widgetId: z.ZodOptional<z.ZodString>;
|
|
201
|
+
title: z.ZodOptional<z.ZodString>;
|
|
202
|
+
description: z.ZodOptional<z.ZodString>;
|
|
203
|
+
media: z.ZodOptional<z.ZodObject<{
|
|
204
|
+
type: z.ZodEnum<{
|
|
205
|
+
image: "image";
|
|
206
|
+
video: "video";
|
|
207
|
+
audio: "audio";
|
|
208
|
+
file: "file";
|
|
209
|
+
}>;
|
|
210
|
+
url: z.ZodString;
|
|
211
|
+
title: z.ZodOptional<z.ZodString>;
|
|
212
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
213
|
+
thumbnailUrl: z.ZodOptional<z.ZodString>;
|
|
214
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
215
|
+
}, z.core.$strip>>;
|
|
216
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
217
|
+
id: z.ZodString;
|
|
218
|
+
label: z.ZodString;
|
|
219
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
220
|
+
variant: z.ZodOptional<z.ZodEnum<{
|
|
221
|
+
primary: "primary";
|
|
222
|
+
secondary: "secondary";
|
|
223
|
+
danger: "danger";
|
|
224
|
+
}>>;
|
|
225
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
226
|
+
}, z.core.$strip>>>;
|
|
227
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
228
|
+
open: "open";
|
|
229
|
+
submitted: "submitted";
|
|
230
|
+
cancelled: "cancelled";
|
|
231
|
+
error: "error";
|
|
232
|
+
}>>;
|
|
233
|
+
display: z.ZodOptional<z.ZodEnum<{
|
|
234
|
+
expanded: "expanded";
|
|
235
|
+
collapsed: "collapsed";
|
|
236
|
+
}>>;
|
|
237
|
+
groupId: z.ZodOptional<z.ZodString>;
|
|
238
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
239
|
+
small: "small";
|
|
240
|
+
medium: "medium";
|
|
241
|
+
large: "large";
|
|
242
|
+
full: "full";
|
|
243
|
+
}>>;
|
|
244
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
245
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
246
|
+
kind: z.ZodLiteral<"media">;
|
|
247
|
+
items: z.ZodArray<z.ZodObject<{
|
|
248
|
+
type: z.ZodEnum<{
|
|
249
|
+
image: "image";
|
|
250
|
+
video: "video";
|
|
251
|
+
audio: "audio";
|
|
252
|
+
file: "file";
|
|
253
|
+
}>;
|
|
254
|
+
url: z.ZodString;
|
|
255
|
+
title: z.ZodOptional<z.ZodString>;
|
|
256
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
257
|
+
thumbnailUrl: z.ZodOptional<z.ZodString>;
|
|
258
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
259
|
+
}, z.core.$strip>>;
|
|
260
|
+
layout: z.ZodOptional<z.ZodEnum<{
|
|
261
|
+
single: "single";
|
|
262
|
+
grid: "grid";
|
|
263
|
+
carousel: "carousel";
|
|
264
|
+
}>>;
|
|
265
|
+
widgetId: z.ZodOptional<z.ZodString>;
|
|
266
|
+
title: z.ZodOptional<z.ZodString>;
|
|
267
|
+
description: z.ZodOptional<z.ZodString>;
|
|
268
|
+
media: z.ZodOptional<z.ZodObject<{
|
|
269
|
+
type: z.ZodEnum<{
|
|
270
|
+
image: "image";
|
|
271
|
+
video: "video";
|
|
272
|
+
audio: "audio";
|
|
273
|
+
file: "file";
|
|
274
|
+
}>;
|
|
275
|
+
url: z.ZodString;
|
|
276
|
+
title: z.ZodOptional<z.ZodString>;
|
|
277
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
278
|
+
thumbnailUrl: z.ZodOptional<z.ZodString>;
|
|
279
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
280
|
+
}, z.core.$strip>>;
|
|
281
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
282
|
+
id: z.ZodString;
|
|
283
|
+
label: z.ZodString;
|
|
284
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
285
|
+
variant: z.ZodOptional<z.ZodEnum<{
|
|
286
|
+
primary: "primary";
|
|
287
|
+
secondary: "secondary";
|
|
288
|
+
danger: "danger";
|
|
289
|
+
}>>;
|
|
290
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
291
|
+
}, z.core.$strip>>>;
|
|
292
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
293
|
+
open: "open";
|
|
294
|
+
submitted: "submitted";
|
|
295
|
+
cancelled: "cancelled";
|
|
296
|
+
error: "error";
|
|
297
|
+
}>>;
|
|
298
|
+
display: z.ZodOptional<z.ZodEnum<{
|
|
299
|
+
expanded: "expanded";
|
|
300
|
+
collapsed: "collapsed";
|
|
301
|
+
}>>;
|
|
302
|
+
groupId: z.ZodOptional<z.ZodString>;
|
|
303
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
304
|
+
small: "small";
|
|
305
|
+
medium: "medium";
|
|
306
|
+
large: "large";
|
|
307
|
+
full: "full";
|
|
308
|
+
}>>;
|
|
309
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
310
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
311
|
+
kind: z.ZodLiteral<"diff">;
|
|
312
|
+
files: z.ZodArray<z.ZodObject<{
|
|
313
|
+
path: z.ZodString;
|
|
314
|
+
oldPath: z.ZodOptional<z.ZodString>;
|
|
315
|
+
status: z.ZodEnum<{
|
|
316
|
+
added: "added";
|
|
317
|
+
deleted: "deleted";
|
|
318
|
+
modified: "modified";
|
|
319
|
+
renamed: "renamed";
|
|
320
|
+
}>;
|
|
321
|
+
language: z.ZodOptional<z.ZodString>;
|
|
322
|
+
additions: z.ZodOptional<z.ZodNumber>;
|
|
323
|
+
deletions: z.ZodOptional<z.ZodNumber>;
|
|
324
|
+
patch: z.ZodOptional<z.ZodString>;
|
|
325
|
+
before: z.ZodOptional<z.ZodString>;
|
|
326
|
+
after: z.ZodOptional<z.ZodString>;
|
|
327
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
328
|
+
}, z.core.$strip>>;
|
|
329
|
+
layout: z.ZodOptional<z.ZodEnum<{
|
|
330
|
+
unified: "unified";
|
|
331
|
+
split: "split";
|
|
332
|
+
}>>;
|
|
333
|
+
widgetId: z.ZodOptional<z.ZodString>;
|
|
334
|
+
title: z.ZodOptional<z.ZodString>;
|
|
335
|
+
description: z.ZodOptional<z.ZodString>;
|
|
336
|
+
media: z.ZodOptional<z.ZodObject<{
|
|
337
|
+
type: z.ZodEnum<{
|
|
338
|
+
image: "image";
|
|
339
|
+
video: "video";
|
|
340
|
+
audio: "audio";
|
|
341
|
+
file: "file";
|
|
342
|
+
}>;
|
|
343
|
+
url: z.ZodString;
|
|
344
|
+
title: z.ZodOptional<z.ZodString>;
|
|
345
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
346
|
+
thumbnailUrl: z.ZodOptional<z.ZodString>;
|
|
347
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
348
|
+
}, z.core.$strip>>;
|
|
349
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
350
|
+
id: z.ZodString;
|
|
351
|
+
label: z.ZodString;
|
|
352
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
353
|
+
variant: z.ZodOptional<z.ZodEnum<{
|
|
354
|
+
primary: "primary";
|
|
355
|
+
secondary: "secondary";
|
|
356
|
+
danger: "danger";
|
|
357
|
+
}>>;
|
|
358
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
359
|
+
}, z.core.$strip>>>;
|
|
360
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
361
|
+
open: "open";
|
|
362
|
+
submitted: "submitted";
|
|
363
|
+
cancelled: "cancelled";
|
|
364
|
+
error: "error";
|
|
365
|
+
}>>;
|
|
366
|
+
display: z.ZodOptional<z.ZodEnum<{
|
|
367
|
+
expanded: "expanded";
|
|
368
|
+
collapsed: "collapsed";
|
|
369
|
+
}>>;
|
|
370
|
+
groupId: z.ZodOptional<z.ZodString>;
|
|
371
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
372
|
+
small: "small";
|
|
373
|
+
medium: "medium";
|
|
374
|
+
large: "large";
|
|
375
|
+
full: "full";
|
|
376
|
+
}>>;
|
|
377
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
378
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
379
|
+
kind: z.ZodLiteral<"table">;
|
|
380
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
381
|
+
id: z.ZodString;
|
|
382
|
+
label: z.ZodString;
|
|
383
|
+
align: z.ZodOptional<z.ZodEnum<{
|
|
384
|
+
left: "left";
|
|
385
|
+
right: "right";
|
|
386
|
+
center: "center";
|
|
387
|
+
}>>;
|
|
388
|
+
}, z.core.$strip>>;
|
|
389
|
+
rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
390
|
+
widgetId: z.ZodOptional<z.ZodString>;
|
|
391
|
+
title: z.ZodOptional<z.ZodString>;
|
|
392
|
+
description: z.ZodOptional<z.ZodString>;
|
|
393
|
+
media: z.ZodOptional<z.ZodObject<{
|
|
394
|
+
type: z.ZodEnum<{
|
|
395
|
+
image: "image";
|
|
396
|
+
video: "video";
|
|
397
|
+
audio: "audio";
|
|
398
|
+
file: "file";
|
|
399
|
+
}>;
|
|
400
|
+
url: z.ZodString;
|
|
401
|
+
title: z.ZodOptional<z.ZodString>;
|
|
402
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
403
|
+
thumbnailUrl: z.ZodOptional<z.ZodString>;
|
|
404
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
405
|
+
}, z.core.$strip>>;
|
|
406
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
407
|
+
id: z.ZodString;
|
|
408
|
+
label: z.ZodString;
|
|
409
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
410
|
+
variant: z.ZodOptional<z.ZodEnum<{
|
|
411
|
+
primary: "primary";
|
|
412
|
+
secondary: "secondary";
|
|
413
|
+
danger: "danger";
|
|
414
|
+
}>>;
|
|
415
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
416
|
+
}, z.core.$strip>>>;
|
|
417
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
418
|
+
open: "open";
|
|
419
|
+
submitted: "submitted";
|
|
420
|
+
cancelled: "cancelled";
|
|
421
|
+
error: "error";
|
|
422
|
+
}>>;
|
|
423
|
+
display: z.ZodOptional<z.ZodEnum<{
|
|
424
|
+
expanded: "expanded";
|
|
425
|
+
collapsed: "collapsed";
|
|
426
|
+
}>>;
|
|
427
|
+
groupId: z.ZodOptional<z.ZodString>;
|
|
428
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
429
|
+
small: "small";
|
|
430
|
+
medium: "medium";
|
|
431
|
+
large: "large";
|
|
432
|
+
full: "full";
|
|
433
|
+
}>>;
|
|
434
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
435
|
+
}, z.core.$strip>], "kind">;
|
|
436
|
+
/** One-line reason a widget payload does not match the schema, or null when it does. */
|
|
437
|
+
export declare function uiWidgetIssue(widget: unknown): string | null;
|
|
438
|
+
//# sourceMappingURL=ui-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-schema.d.ts","sourceRoot":"","sources":["../src/ui-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmDxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAkEzB,CAAC;AAEH,wFAAwF;AACxF,wBAAgB,aAAa,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAM5D"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Runtime shape of `RenderUIWidgetData` (`ui.ts`). Keep the two in step: the
|
|
4
|
+
* runtime checks every `client:ui:widget` against this before it is stored.
|
|
5
|
+
* Objects are non-strict so producers may carry extra keys.
|
|
6
|
+
*/
|
|
7
|
+
const action = z.object({
|
|
8
|
+
id: z.string().min(1),
|
|
9
|
+
label: z.string(),
|
|
10
|
+
value: z.unknown().optional(),
|
|
11
|
+
variant: z.enum(['primary', 'secondary', 'danger']).optional(),
|
|
12
|
+
disabled: z.boolean().optional(),
|
|
13
|
+
});
|
|
14
|
+
const field = z.object({
|
|
15
|
+
id: z.string().min(1),
|
|
16
|
+
label: z.string(),
|
|
17
|
+
type: z.enum(['text', 'textarea', 'number', 'boolean', 'select', 'multiselect', 'date', 'password']),
|
|
18
|
+
description: z.string().optional(),
|
|
19
|
+
placeholder: z.string().optional(),
|
|
20
|
+
required: z.boolean().optional(),
|
|
21
|
+
options: z.array(z.object({ label: z.string(), value: z.string() })).optional(),
|
|
22
|
+
defaultValue: z.unknown().optional(),
|
|
23
|
+
});
|
|
24
|
+
const mediaItem = z.object({
|
|
25
|
+
type: z.enum(['image', 'video', 'audio', 'file']),
|
|
26
|
+
url: z.string(),
|
|
27
|
+
title: z.string().optional(),
|
|
28
|
+
alt: z.string().optional(),
|
|
29
|
+
thumbnailUrl: z.string().optional(),
|
|
30
|
+
metadata: z.record(z.string(), z.unknown()).optional(),
|
|
31
|
+
});
|
|
32
|
+
const base = {
|
|
33
|
+
widgetId: z.string().optional(),
|
|
34
|
+
title: z.string().optional(),
|
|
35
|
+
description: z.string().optional(),
|
|
36
|
+
media: mediaItem.optional(),
|
|
37
|
+
actions: z.array(action).optional(),
|
|
38
|
+
state: z.enum(['open', 'submitted', 'cancelled', 'error']).optional(),
|
|
39
|
+
display: z.enum(['expanded', 'collapsed']).optional(),
|
|
40
|
+
groupId: z.string().optional(),
|
|
41
|
+
size: z.enum(['small', 'medium', 'large', 'full']).optional(),
|
|
42
|
+
metadata: z.record(z.string(), z.unknown()).optional(),
|
|
43
|
+
};
|
|
44
|
+
const statusVariant = z.enum(['default', 'success', 'warning', 'danger', 'info']);
|
|
45
|
+
export const uiWidgetSchema = z.discriminatedUnion('kind', [
|
|
46
|
+
z.object({ ...base, kind: z.literal('message'), body: z.string().optional() }),
|
|
47
|
+
z.object({ ...base, kind: z.literal('choice'), actions: z.array(action).min(1) }),
|
|
48
|
+
z.object({
|
|
49
|
+
...base,
|
|
50
|
+
kind: z.literal('form'),
|
|
51
|
+
fields: z.array(field),
|
|
52
|
+
submitLabel: z.string().optional(),
|
|
53
|
+
}),
|
|
54
|
+
z.object({
|
|
55
|
+
...base,
|
|
56
|
+
kind: z.literal('list'),
|
|
57
|
+
items: z.array(z.object({
|
|
58
|
+
id: z.string(),
|
|
59
|
+
label: z.string(),
|
|
60
|
+
description: z.string().optional(),
|
|
61
|
+
image: z.string().optional(),
|
|
62
|
+
badge: z.string().optional(),
|
|
63
|
+
actions: z.array(action).optional(),
|
|
64
|
+
status: z.string().optional(),
|
|
65
|
+
statusVariant: statusVariant.optional(),
|
|
66
|
+
metadata: z.record(z.string(), z.unknown()).optional(),
|
|
67
|
+
})),
|
|
68
|
+
layout: z.enum(['default', 'checklist']).optional(),
|
|
69
|
+
}),
|
|
70
|
+
z.object({
|
|
71
|
+
...base,
|
|
72
|
+
kind: z.literal('media'),
|
|
73
|
+
items: z.array(mediaItem),
|
|
74
|
+
layout: z.enum(['single', 'grid', 'carousel']).optional(),
|
|
75
|
+
}),
|
|
76
|
+
z.object({
|
|
77
|
+
...base,
|
|
78
|
+
kind: z.literal('diff'),
|
|
79
|
+
files: z.array(z.object({
|
|
80
|
+
path: z.string(),
|
|
81
|
+
oldPath: z.string().optional(),
|
|
82
|
+
status: z.enum(['added', 'deleted', 'modified', 'renamed']),
|
|
83
|
+
language: z.string().optional(),
|
|
84
|
+
additions: z.number().optional(),
|
|
85
|
+
deletions: z.number().optional(),
|
|
86
|
+
patch: z.string().optional(),
|
|
87
|
+
before: z.string().optional(),
|
|
88
|
+
after: z.string().optional(),
|
|
89
|
+
truncated: z.boolean().optional(),
|
|
90
|
+
})),
|
|
91
|
+
layout: z.enum(['unified', 'split']).optional(),
|
|
92
|
+
}),
|
|
93
|
+
z.object({
|
|
94
|
+
...base,
|
|
95
|
+
kind: z.literal('table'),
|
|
96
|
+
columns: z
|
|
97
|
+
.array(z.object({
|
|
98
|
+
id: z.string().min(1),
|
|
99
|
+
label: z.string(),
|
|
100
|
+
align: z.enum(['left', 'right', 'center']).optional(),
|
|
101
|
+
}))
|
|
102
|
+
.min(1),
|
|
103
|
+
rows: z.array(z.record(z.string(), z.union([z.string(), z.number(), z.boolean(), z.null()]))),
|
|
104
|
+
}),
|
|
105
|
+
]);
|
|
106
|
+
/** One-line reason a widget payload does not match the schema, or null when it does. */
|
|
107
|
+
export function uiWidgetIssue(widget) {
|
|
108
|
+
const result = uiWidgetSchema.safeParse(widget);
|
|
109
|
+
if (result.success)
|
|
110
|
+
return null;
|
|
111
|
+
const issue = result.error.issues[0];
|
|
112
|
+
const path = issue?.path.length ? issue.path.join('.') : 'widget';
|
|
113
|
+
return `${path}: ${issue?.message ?? 'invalid widget'}`;
|
|
114
|
+
}
|
|
115
|
+
//# sourceMappingURL=ui-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-schema.js","sourceRoot":"","sources":["../src/ui-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AAEH,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC7B,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,EA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CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;IAClE,OAAO,GAAG,IAAI,KAAK,KAAK,EAAE,OAAO,IAAI,gBAAgB,EAAE,CAAC;AAC1D,CAAC"}
|
package/dist/ui.d.ts
CHANGED
|
@@ -106,7 +106,19 @@ export type UIDiffWidget = UIWidgetBase & {
|
|
|
106
106
|
files: UIDiffFile[];
|
|
107
107
|
layout?: 'unified' | 'split';
|
|
108
108
|
};
|
|
109
|
-
export type
|
|
109
|
+
export type UITableColumn = {
|
|
110
|
+
id: string;
|
|
111
|
+
label: string;
|
|
112
|
+
align?: 'left' | 'right' | 'center';
|
|
113
|
+
};
|
|
114
|
+
export type UITableCell = string | number | boolean | null;
|
|
115
|
+
export type UITableWidget = UIWidgetBase & {
|
|
116
|
+
kind: 'table';
|
|
117
|
+
columns: UITableColumn[];
|
|
118
|
+
/** Each row maps column id → cell value. */
|
|
119
|
+
rows: Array<Record<string, UITableCell>>;
|
|
120
|
+
};
|
|
121
|
+
export type UIWidgetSpec = UIMessageWidget | UIChoiceWidget | UIFormWidget | UIListWidget | UIMediaWidget | UIDiffWidget | UITableWidget;
|
|
110
122
|
export type RenderUIWidgetData = (Omit<UIMessageWidget, 'widgetId'> & {
|
|
111
123
|
widgetId?: string;
|
|
112
124
|
}) | (Omit<UIChoiceWidget, 'widgetId'> & {
|
|
@@ -119,5 +131,7 @@ export type RenderUIWidgetData = (Omit<UIMessageWidget, 'widgetId'> & {
|
|
|
119
131
|
widgetId?: string;
|
|
120
132
|
}) | (Omit<UIDiffWidget, 'widgetId'> & {
|
|
121
133
|
widgetId?: string;
|
|
134
|
+
}) | (Omit<UITableWidget, 'widgetId'> & {
|
|
135
|
+
widgetId?: string;
|
|
122
136
|
});
|
|
123
137
|
//# sourceMappingURL=ui.d.ts.map
|
package/dist/ui.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.d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