@burdenoff/microfe-bigconsole 2026.1113.1 → 2026.1113.2
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/bigconsole/components/datasink/DataSinkCard.js +60 -58
- package/dist/bigconsole/components/widgets/WidgetWrapper.js +123 -121
- package/dist/bigconsole/context/BigConsoleContext.d.ts +2 -0
- package/dist/bigconsole/context/BigConsoleContext.js +14 -12
- package/dist/bigconsole/pages/DashboardViewPage.js +241 -239
- package/dist/bigconsole/pages/DashboardsPage.js +265 -262
- package/dist/bigconsole/pages/DataSinkViewPage.js +253 -251
- package/dist/bigconsole/pages/DataSinksPage.js +162 -160
- package/dist/bigconsole/pages/SettingsPage.js +127 -123
- package/dist/bigconsole/proactive/actions.d.ts +16 -0
- package/dist/bigconsole/proactive/actions.js +34 -0
- package/dist/bigconsole/proactive/activityEntity.d.ts +5 -0
- package/dist/bigconsole/proactive/activityEntity.js +27 -0
- package/dist/bigconsole/proactive/entities.d.ts +16 -0
- package/dist/bigconsole/proactive/entities.js +20 -0
- package/dist/bigconsole/proactive/index.d.ts +15 -0
- package/dist/bigconsole/proactive/index.js +5 -0
- package/dist/bigconsole/proactive/routes.d.ts +11 -0
- package/dist/bigconsole/proactive/routes.js +6 -0
- package/dist/bigconsole/types/index.d.ts +7 -0
- package/dist/generated/wspace-operations.js +213 -19
- package/dist/node_modules/zod/v4/classic/errors.js +42 -0
- package/dist/node_modules/zod/v4/classic/parse.js +5 -0
- package/dist/node_modules/zod/v4/classic/schemas.js +622 -0
- package/dist/node_modules/zod/v4/core/api.js +427 -0
- package/dist/node_modules/zod/v4/core/checks.js +141 -0
- package/dist/node_modules/zod/v4/core/core.js +82 -0
- package/dist/node_modules/zod/v4/core/doc.js +27 -0
- package/dist/node_modules/zod/v4/core/errors.js +88 -0
- package/dist/node_modules/zod/v4/core/json-schema-processors.js +190 -0
- package/dist/node_modules/zod/v4/core/memoizer.js +186 -0
- package/dist/node_modules/zod/v4/core/parse.js +157 -0
- package/dist/node_modules/zod/v4/core/regexes.js +32 -0
- package/dist/node_modules/zod/v4/core/registries.js +39 -0
- package/dist/node_modules/zod/v4/core/schemas.js +856 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.js +328 -0
- package/dist/node_modules/zod/v4/core/util.js +415 -0
- package/dist/node_modules/zod/v4/core/versions.js +7 -0
- package/dist/node_modules/zod/v4/locales/en.js +94 -0
- package/package.json +8 -4
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
import { $ZodCheck as e, $ZodCheckEndsWith as t, $ZodCheckIncludes as n, $ZodCheckLengthEquals as r, $ZodCheckLowerCase as i, $ZodCheckMaxLength as a, $ZodCheckMinLength as o, $ZodCheckOverwrite as s, $ZodCheckRegex as ee, $ZodCheckStartsWith as c, $ZodCheckUpperCase as l } from "./checks.js";
|
|
2
|
+
import { issue as u, normalizeParams as d, slugify as f } from "./util.js";
|
|
3
|
+
// node_modules/zod/v4/core/api.js
|
|
4
|
+
function p(e) {
|
|
5
|
+
return e.checks &&= [...e.checks], e;
|
|
6
|
+
}
|
|
7
|
+
// @__NO_SIDE_EFFECTS__
|
|
8
|
+
function m(e, t) {
|
|
9
|
+
return new e(p({
|
|
10
|
+
type: "string",
|
|
11
|
+
...d(t)
|
|
12
|
+
}));
|
|
13
|
+
}
|
|
14
|
+
// @__NO_SIDE_EFFECTS__
|
|
15
|
+
function h(e, t) {
|
|
16
|
+
return new e({
|
|
17
|
+
type: "string",
|
|
18
|
+
format: "email",
|
|
19
|
+
check: "string_format",
|
|
20
|
+
abort: !1,
|
|
21
|
+
...d(t)
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
// @__NO_SIDE_EFFECTS__
|
|
25
|
+
function g(e, t) {
|
|
26
|
+
return new e({
|
|
27
|
+
type: "string",
|
|
28
|
+
format: "guid",
|
|
29
|
+
check: "string_format",
|
|
30
|
+
abort: !1,
|
|
31
|
+
...d(t)
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
// @__NO_SIDE_EFFECTS__
|
|
35
|
+
function _(e, t) {
|
|
36
|
+
return new e({
|
|
37
|
+
type: "string",
|
|
38
|
+
format: "uuid",
|
|
39
|
+
check: "string_format",
|
|
40
|
+
abort: !1,
|
|
41
|
+
...d(t)
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
// @__NO_SIDE_EFFECTS__
|
|
45
|
+
function v(e, t) {
|
|
46
|
+
return new e({
|
|
47
|
+
type: "string",
|
|
48
|
+
format: "uuid",
|
|
49
|
+
check: "string_format",
|
|
50
|
+
abort: !1,
|
|
51
|
+
version: "v4",
|
|
52
|
+
...d(t)
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
// @__NO_SIDE_EFFECTS__
|
|
56
|
+
function y(e, t) {
|
|
57
|
+
return new e({
|
|
58
|
+
type: "string",
|
|
59
|
+
format: "uuid",
|
|
60
|
+
check: "string_format",
|
|
61
|
+
abort: !1,
|
|
62
|
+
version: "v6",
|
|
63
|
+
...d(t)
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
// @__NO_SIDE_EFFECTS__
|
|
67
|
+
function b(e, t) {
|
|
68
|
+
return new e({
|
|
69
|
+
type: "string",
|
|
70
|
+
format: "uuid",
|
|
71
|
+
check: "string_format",
|
|
72
|
+
abort: !1,
|
|
73
|
+
version: "v7",
|
|
74
|
+
...d(t)
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
// @__NO_SIDE_EFFECTS__
|
|
78
|
+
function x(e, t) {
|
|
79
|
+
return new e({
|
|
80
|
+
type: "string",
|
|
81
|
+
format: "url",
|
|
82
|
+
check: "string_format",
|
|
83
|
+
abort: !1,
|
|
84
|
+
...d(t)
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
// @__NO_SIDE_EFFECTS__
|
|
88
|
+
function S(e, t) {
|
|
89
|
+
return new e({
|
|
90
|
+
type: "string",
|
|
91
|
+
format: "emoji",
|
|
92
|
+
check: "string_format",
|
|
93
|
+
abort: !1,
|
|
94
|
+
...d(t)
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
// @__NO_SIDE_EFFECTS__
|
|
98
|
+
function C(e, t) {
|
|
99
|
+
return new e({
|
|
100
|
+
type: "string",
|
|
101
|
+
format: "nanoid",
|
|
102
|
+
check: "string_format",
|
|
103
|
+
abort: !1,
|
|
104
|
+
...d(t)
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
// @__NO_SIDE_EFFECTS__
|
|
108
|
+
function w(e, t) {
|
|
109
|
+
return new e({
|
|
110
|
+
type: "string",
|
|
111
|
+
format: "cuid",
|
|
112
|
+
check: "string_format",
|
|
113
|
+
abort: !1,
|
|
114
|
+
...d(t)
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
// @__NO_SIDE_EFFECTS__
|
|
118
|
+
function T(e, t) {
|
|
119
|
+
return new e({
|
|
120
|
+
type: "string",
|
|
121
|
+
format: "cuid2",
|
|
122
|
+
check: "string_format",
|
|
123
|
+
abort: !1,
|
|
124
|
+
...d(t)
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
// @__NO_SIDE_EFFECTS__
|
|
128
|
+
function E(e, t) {
|
|
129
|
+
return new e({
|
|
130
|
+
type: "string",
|
|
131
|
+
format: "ulid",
|
|
132
|
+
check: "string_format",
|
|
133
|
+
abort: !1,
|
|
134
|
+
...d(t)
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
// @__NO_SIDE_EFFECTS__
|
|
138
|
+
function D(e, t) {
|
|
139
|
+
return new e({
|
|
140
|
+
type: "string",
|
|
141
|
+
format: "xid",
|
|
142
|
+
check: "string_format",
|
|
143
|
+
abort: !1,
|
|
144
|
+
...d(t)
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
// @__NO_SIDE_EFFECTS__
|
|
148
|
+
function O(e, t) {
|
|
149
|
+
return new e({
|
|
150
|
+
type: "string",
|
|
151
|
+
format: "ksuid",
|
|
152
|
+
check: "string_format",
|
|
153
|
+
abort: !1,
|
|
154
|
+
...d(t)
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
// @__NO_SIDE_EFFECTS__
|
|
158
|
+
function k(e, t) {
|
|
159
|
+
return new e({
|
|
160
|
+
type: "string",
|
|
161
|
+
format: "ipv4",
|
|
162
|
+
check: "string_format",
|
|
163
|
+
abort: !1,
|
|
164
|
+
...d(t)
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
// @__NO_SIDE_EFFECTS__
|
|
168
|
+
function A(e, t) {
|
|
169
|
+
return new e({
|
|
170
|
+
type: "string",
|
|
171
|
+
format: "ipv6",
|
|
172
|
+
check: "string_format",
|
|
173
|
+
abort: !1,
|
|
174
|
+
...d(t)
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
// @__NO_SIDE_EFFECTS__
|
|
178
|
+
function j(e, t) {
|
|
179
|
+
return new e({
|
|
180
|
+
type: "string",
|
|
181
|
+
format: "cidrv4",
|
|
182
|
+
check: "string_format",
|
|
183
|
+
abort: !1,
|
|
184
|
+
...d(t)
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
// @__NO_SIDE_EFFECTS__
|
|
188
|
+
function te(e, t) {
|
|
189
|
+
return new e({
|
|
190
|
+
type: "string",
|
|
191
|
+
format: "cidrv6",
|
|
192
|
+
check: "string_format",
|
|
193
|
+
abort: !1,
|
|
194
|
+
...d(t)
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
// @__NO_SIDE_EFFECTS__
|
|
198
|
+
function M(e, t) {
|
|
199
|
+
return new e({
|
|
200
|
+
type: "string",
|
|
201
|
+
format: "base64",
|
|
202
|
+
check: "string_format",
|
|
203
|
+
abort: !1,
|
|
204
|
+
...d(t)
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
// @__NO_SIDE_EFFECTS__
|
|
208
|
+
function N(e, t) {
|
|
209
|
+
return new e({
|
|
210
|
+
type: "string",
|
|
211
|
+
format: "base64url",
|
|
212
|
+
check: "string_format",
|
|
213
|
+
abort: !1,
|
|
214
|
+
...d(t)
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
// @__NO_SIDE_EFFECTS__
|
|
218
|
+
function P(e, t) {
|
|
219
|
+
return new e({
|
|
220
|
+
type: "string",
|
|
221
|
+
format: "e164",
|
|
222
|
+
check: "string_format",
|
|
223
|
+
abort: !1,
|
|
224
|
+
...d(t)
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
// @__NO_SIDE_EFFECTS__
|
|
228
|
+
function F(e, t) {
|
|
229
|
+
return new e({
|
|
230
|
+
type: "string",
|
|
231
|
+
format: "jwt",
|
|
232
|
+
check: "string_format",
|
|
233
|
+
abort: !1,
|
|
234
|
+
...d(t)
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
// @__NO_SIDE_EFFECTS__
|
|
238
|
+
function I(e, t) {
|
|
239
|
+
return new e({
|
|
240
|
+
type: "string",
|
|
241
|
+
format: "datetime",
|
|
242
|
+
check: "string_format",
|
|
243
|
+
offset: !1,
|
|
244
|
+
local: !1,
|
|
245
|
+
precision: null,
|
|
246
|
+
...d(t)
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
// @__NO_SIDE_EFFECTS__
|
|
250
|
+
function L(e, t) {
|
|
251
|
+
return new e({
|
|
252
|
+
type: "string",
|
|
253
|
+
format: "date",
|
|
254
|
+
check: "string_format",
|
|
255
|
+
...d(t)
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
// @__NO_SIDE_EFFECTS__
|
|
259
|
+
function R(e, t) {
|
|
260
|
+
return new e({
|
|
261
|
+
type: "string",
|
|
262
|
+
format: "time",
|
|
263
|
+
check: "string_format",
|
|
264
|
+
precision: null,
|
|
265
|
+
...d(t)
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
// @__NO_SIDE_EFFECTS__
|
|
269
|
+
function z(e, t) {
|
|
270
|
+
return new e({
|
|
271
|
+
type: "string",
|
|
272
|
+
format: "duration",
|
|
273
|
+
check: "string_format",
|
|
274
|
+
...d(t)
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
// @__NO_SIDE_EFFECTS__
|
|
278
|
+
function B(e) {
|
|
279
|
+
return new e({ type: "unknown" });
|
|
280
|
+
}
|
|
281
|
+
// @__NO_SIDE_EFFECTS__
|
|
282
|
+
function V(e, t) {
|
|
283
|
+
return new e({
|
|
284
|
+
type: "never",
|
|
285
|
+
...d(t)
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
// @__NO_SIDE_EFFECTS__
|
|
289
|
+
function H(e, t) {
|
|
290
|
+
return new a({
|
|
291
|
+
check: "max_length",
|
|
292
|
+
...d(t),
|
|
293
|
+
maximum: e
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
// @__NO_SIDE_EFFECTS__
|
|
297
|
+
function U(e, t) {
|
|
298
|
+
return new o({
|
|
299
|
+
check: "min_length",
|
|
300
|
+
...d(t),
|
|
301
|
+
minimum: e
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
// @__NO_SIDE_EFFECTS__
|
|
305
|
+
function W(e, t) {
|
|
306
|
+
return new r({
|
|
307
|
+
check: "length_equals",
|
|
308
|
+
...d(t),
|
|
309
|
+
length: e
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
// @__NO_SIDE_EFFECTS__
|
|
313
|
+
function G(e, t) {
|
|
314
|
+
return new ee({
|
|
315
|
+
check: "string_format",
|
|
316
|
+
format: "regex",
|
|
317
|
+
...d(t),
|
|
318
|
+
pattern: e
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
// @__NO_SIDE_EFFECTS__
|
|
322
|
+
function K(e) {
|
|
323
|
+
return new i({
|
|
324
|
+
check: "string_format",
|
|
325
|
+
format: "lowercase",
|
|
326
|
+
...d(e)
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
// @__NO_SIDE_EFFECTS__
|
|
330
|
+
function q(e) {
|
|
331
|
+
return new l({
|
|
332
|
+
check: "string_format",
|
|
333
|
+
format: "uppercase",
|
|
334
|
+
...d(e)
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
// @__NO_SIDE_EFFECTS__
|
|
338
|
+
function J(e, t) {
|
|
339
|
+
return new n({
|
|
340
|
+
check: "string_format",
|
|
341
|
+
format: "includes",
|
|
342
|
+
...d(t),
|
|
343
|
+
includes: e
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
// @__NO_SIDE_EFFECTS__
|
|
347
|
+
function Y(e, t) {
|
|
348
|
+
return new c({
|
|
349
|
+
check: "string_format",
|
|
350
|
+
format: "starts_with",
|
|
351
|
+
...d(t),
|
|
352
|
+
prefix: e
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
// @__NO_SIDE_EFFECTS__
|
|
356
|
+
function X(e, n) {
|
|
357
|
+
return new t({
|
|
358
|
+
check: "string_format",
|
|
359
|
+
format: "ends_with",
|
|
360
|
+
...d(n),
|
|
361
|
+
suffix: e
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
// @__NO_SIDE_EFFECTS__
|
|
365
|
+
function Z(e) {
|
|
366
|
+
return new s({
|
|
367
|
+
check: "overwrite",
|
|
368
|
+
tx: e
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
// @__NO_SIDE_EFFECTS__
|
|
372
|
+
function Q(e) {
|
|
373
|
+
return /* @__PURE__ */ Z((t) => t.normalize(e));
|
|
374
|
+
}
|
|
375
|
+
// @__NO_SIDE_EFFECTS__
|
|
376
|
+
function ne() {
|
|
377
|
+
return /* @__PURE__ */ Z((e) => e.trim());
|
|
378
|
+
}
|
|
379
|
+
// @__NO_SIDE_EFFECTS__
|
|
380
|
+
function re() {
|
|
381
|
+
return /* @__PURE__ */ Z((e) => e.toLowerCase());
|
|
382
|
+
}
|
|
383
|
+
// @__NO_SIDE_EFFECTS__
|
|
384
|
+
function ie() {
|
|
385
|
+
return /* @__PURE__ */ Z((e) => e.toUpperCase());
|
|
386
|
+
}
|
|
387
|
+
// @__NO_SIDE_EFFECTS__
|
|
388
|
+
function ae() {
|
|
389
|
+
return /* @__PURE__ */ Z((e) => f(e));
|
|
390
|
+
}
|
|
391
|
+
// @__NO_SIDE_EFFECTS__
|
|
392
|
+
function oe(e, t, n) {
|
|
393
|
+
return new e({
|
|
394
|
+
type: "array",
|
|
395
|
+
element: t,
|
|
396
|
+
...d(n)
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
// @__NO_SIDE_EFFECTS__
|
|
400
|
+
function se(e, t, n) {
|
|
401
|
+
return new e({
|
|
402
|
+
type: "custom",
|
|
403
|
+
check: "custom",
|
|
404
|
+
fn: t,
|
|
405
|
+
...d(n)
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
// @__NO_SIDE_EFFECTS__
|
|
409
|
+
function ce(e, t) {
|
|
410
|
+
let n = /* @__PURE__ */ $((t) => (t.addIssue = (e) => {
|
|
411
|
+
if (typeof e == "string") t.issues.push(u(e, t.value, n._zod.def));
|
|
412
|
+
else {
|
|
413
|
+
let r = e;
|
|
414
|
+
r.fatal && (r.continue = !1), r.code ??= "custom", "input" in r || (r.input = t.value), r.inst ??= n, r.continue ??= !n._zod.def.abort, t.issues.push(u(r));
|
|
415
|
+
}
|
|
416
|
+
}, e(t.value, t)), t);
|
|
417
|
+
return n;
|
|
418
|
+
}
|
|
419
|
+
// @__NO_SIDE_EFFECTS__
|
|
420
|
+
function $(t, n) {
|
|
421
|
+
let r = new e({
|
|
422
|
+
check: "custom",
|
|
423
|
+
...d(n)
|
|
424
|
+
});
|
|
425
|
+
return r._zod.check = t, r;
|
|
426
|
+
}
|
|
427
|
+
export { oe as _array, M as _base64, N as _base64url, $ as _check, j as _cidrv4, te as _cidrv6, w as _cuid, T as _cuid2, P as _e164, h as _email, S as _emoji, X as _endsWith, g as _guid, J as _includes, k as _ipv4, A as _ipv6, L as _isoDate, I as _isoDateTime, z as _isoDuration, R as _isoTime, F as _jwt, O as _ksuid, W as _length, K as _lowercase, H as _maxLength, U as _minLength, C as _nanoid, V as _never, Q as _normalize, Z as _overwrite, se as _refine, G as _regex, ae as _slugify, Y as _startsWith, m as _string, ce as _superRefine, re as _toLowerCase, ie as _toUpperCase, ne as _trim, E as _ulid, B as _unknown, q as _uppercase, x as _url, _ as _uuid, v as _uuidv4, y as _uuidv6, b as _uuidv7, D as _xid };
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { $constructor as e } from "./core.js";
|
|
2
|
+
import { lowercase as t, uppercase as n } from "./regexes.js";
|
|
3
|
+
import { codePointLength as r, escapeRegex as i, getLengthableOrigin as a, nullish as o } from "./util.js";
|
|
4
|
+
// node_modules/zod/v4/core/checks.js
|
|
5
|
+
var s = /*@__PURE__*/ e("$ZodCheck", (e, t) => {
|
|
6
|
+
var n;
|
|
7
|
+
e._zod ??= {}, e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
|
|
8
|
+
}), c = (e) => {
|
|
9
|
+
let t = e.value;
|
|
10
|
+
return !o(t) && t.length !== void 0;
|
|
11
|
+
}, l = /*@__PURE__*/ e("$ZodCheckMaxLength", (e, t) => {
|
|
12
|
+
var n;
|
|
13
|
+
s.init(e, t), (n = e._zod.def).when ?? (n.when = c), e._zod.check = (n) => {
|
|
14
|
+
let i = n.value, o = i.length;
|
|
15
|
+
if ((typeof i == "string" && o > t.maximum ? r(i) : o) <= t.maximum) return;
|
|
16
|
+
let s = a(i);
|
|
17
|
+
n.issues.push({
|
|
18
|
+
origin: s,
|
|
19
|
+
code: "too_big",
|
|
20
|
+
maximum: t.maximum,
|
|
21
|
+
inclusive: !0,
|
|
22
|
+
input: i,
|
|
23
|
+
inst: e,
|
|
24
|
+
continue: !t.abort
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
}), u = /*@__PURE__*/ e("$ZodCheckMinLength", (e, t) => {
|
|
28
|
+
var n;
|
|
29
|
+
s.init(e, t), (n = e._zod.def).when ?? (n.when = c), e._zod.check = (n) => {
|
|
30
|
+
let i = n.value, o = i.length;
|
|
31
|
+
if ((typeof i == "string" && o >= t.minimum && o < t.minimum * 2 ? r(i) : o) >= t.minimum) return;
|
|
32
|
+
let s = a(i);
|
|
33
|
+
n.issues.push({
|
|
34
|
+
origin: s,
|
|
35
|
+
code: "too_small",
|
|
36
|
+
minimum: t.minimum,
|
|
37
|
+
inclusive: !0,
|
|
38
|
+
input: i,
|
|
39
|
+
inst: e,
|
|
40
|
+
continue: !t.abort
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
}), d = /*@__PURE__*/ e("$ZodCheckLengthEquals", (e, t) => {
|
|
44
|
+
var n;
|
|
45
|
+
s.init(e, t), (n = e._zod.def).when ?? (n.when = c), e._zod.check = (n) => {
|
|
46
|
+
let i = n.value, o = i.length, s = typeof i == "string" && o >= t.length && o <= t.length * 2 ? r(i) : o;
|
|
47
|
+
if (s === t.length) return;
|
|
48
|
+
let c = a(i), l = s > t.length;
|
|
49
|
+
n.issues.push({
|
|
50
|
+
origin: c,
|
|
51
|
+
...l ? {
|
|
52
|
+
code: "too_big",
|
|
53
|
+
maximum: t.length
|
|
54
|
+
} : {
|
|
55
|
+
code: "too_small",
|
|
56
|
+
minimum: t.length
|
|
57
|
+
},
|
|
58
|
+
inclusive: !0,
|
|
59
|
+
exact: !0,
|
|
60
|
+
input: n.value,
|
|
61
|
+
inst: e,
|
|
62
|
+
continue: !t.abort
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
}), f = /*@__PURE__*/ e("$ZodCheckStringFormat", (e, t) => {
|
|
66
|
+
var n, r;
|
|
67
|
+
s.init(e, t), t.pattern ? (n = e._zod).check ?? (n.check = (n) => {
|
|
68
|
+
t.pattern.lastIndex = 0, t.pattern.test(n.value) || n.issues.push({
|
|
69
|
+
origin: "string",
|
|
70
|
+
code: "invalid_format",
|
|
71
|
+
format: t.format,
|
|
72
|
+
input: n.value,
|
|
73
|
+
...t.pattern ? { pattern: t.pattern.toString() } : {},
|
|
74
|
+
inst: e,
|
|
75
|
+
continue: !t.abort
|
|
76
|
+
});
|
|
77
|
+
}) : (r = e._zod).check ?? (r.check = () => {});
|
|
78
|
+
}), p = /*@__PURE__*/ e("$ZodCheckRegex", (e, t) => {
|
|
79
|
+
f.init(e, t), e._zod.check = (n) => {
|
|
80
|
+
t.pattern.lastIndex = 0, t.pattern.test(n.value) || n.issues.push({
|
|
81
|
+
origin: "string",
|
|
82
|
+
code: "invalid_format",
|
|
83
|
+
format: "regex",
|
|
84
|
+
input: n.value,
|
|
85
|
+
pattern: t.pattern.toString(),
|
|
86
|
+
inst: e,
|
|
87
|
+
continue: !t.abort
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
}), m = /*@__PURE__*/ e("$ZodCheckLowerCase", (e, n) => {
|
|
91
|
+
n.pattern ??= t, f.init(e, n);
|
|
92
|
+
}), h = /*@__PURE__*/ e("$ZodCheckUpperCase", (e, t) => {
|
|
93
|
+
t.pattern ??= n, f.init(e, t);
|
|
94
|
+
}), g = /*@__PURE__*/ e("$ZodCheckIncludes", (e, t) => {
|
|
95
|
+
s.init(e, t);
|
|
96
|
+
let n = i(t.includes);
|
|
97
|
+
t.pattern = new RegExp(typeof t.position == "number" ? `^.{${t.position},}${n}` : n), e._zod.check = (n) => {
|
|
98
|
+
n.value.includes(t.includes, t.position) || n.issues.push({
|
|
99
|
+
origin: "string",
|
|
100
|
+
code: "invalid_format",
|
|
101
|
+
format: "includes",
|
|
102
|
+
includes: t.includes,
|
|
103
|
+
input: n.value,
|
|
104
|
+
inst: e,
|
|
105
|
+
continue: !t.abort
|
|
106
|
+
});
|
|
107
|
+
};
|
|
108
|
+
}), _ = /*@__PURE__*/ e("$ZodCheckStartsWith", (e, t) => {
|
|
109
|
+
s.init(e, t);
|
|
110
|
+
let n = RegExp(`^${i(t.prefix)}.*`);
|
|
111
|
+
t.pattern ??= n, e._zod.check = (n) => {
|
|
112
|
+
n.value.startsWith(t.prefix) || n.issues.push({
|
|
113
|
+
origin: "string",
|
|
114
|
+
code: "invalid_format",
|
|
115
|
+
format: "starts_with",
|
|
116
|
+
prefix: t.prefix,
|
|
117
|
+
input: n.value,
|
|
118
|
+
inst: e,
|
|
119
|
+
continue: !t.abort
|
|
120
|
+
});
|
|
121
|
+
};
|
|
122
|
+
}), v = /*@__PURE__*/ e("$ZodCheckEndsWith", (e, t) => {
|
|
123
|
+
s.init(e, t);
|
|
124
|
+
let n = RegExp(`.*${i(t.suffix)}$`);
|
|
125
|
+
t.pattern ??= n, e._zod.check = (n) => {
|
|
126
|
+
n.value.endsWith(t.suffix) || n.issues.push({
|
|
127
|
+
origin: "string",
|
|
128
|
+
code: "invalid_format",
|
|
129
|
+
format: "ends_with",
|
|
130
|
+
suffix: t.suffix,
|
|
131
|
+
input: n.value,
|
|
132
|
+
inst: e,
|
|
133
|
+
continue: !t.abort
|
|
134
|
+
});
|
|
135
|
+
};
|
|
136
|
+
}), y = /*@__PURE__*/ e("$ZodCheckOverwrite", (e, t) => {
|
|
137
|
+
s.init(e, t), e._zod.check = (e) => {
|
|
138
|
+
e.value = t.tx(e.value);
|
|
139
|
+
};
|
|
140
|
+
});
|
|
141
|
+
export { s as $ZodCheck, v as $ZodCheckEndsWith, g as $ZodCheckIncludes, d as $ZodCheckLengthEquals, m as $ZodCheckLowerCase, l as $ZodCheckMaxLength, u as $ZodCheckMinLength, y as $ZodCheckOverwrite, p as $ZodCheckRegex, _ as $ZodCheckStartsWith, f as $ZodCheckStringFormat, h as $ZodCheckUpperCase };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { members as e } from "./util.js";
|
|
2
|
+
// node_modules/zod/v4/core/core.js
|
|
3
|
+
var t, n = {
|
|
4
|
+
value: void 0,
|
|
5
|
+
enumerable: !1
|
|
6
|
+
}, r = "captureStackTrace" in Error ? Error : null;
|
|
7
|
+
function i(e) {
|
|
8
|
+
let t = r;
|
|
9
|
+
if (t) {
|
|
10
|
+
let n = t.stackTraceLimit;
|
|
11
|
+
if (typeof n == "number") {
|
|
12
|
+
try {
|
|
13
|
+
t.stackTraceLimit = 0;
|
|
14
|
+
} catch {
|
|
15
|
+
return r = null, new e();
|
|
16
|
+
}
|
|
17
|
+
try {
|
|
18
|
+
return new e();
|
|
19
|
+
} finally {
|
|
20
|
+
t.stackTraceLimit = n;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return new e();
|
|
25
|
+
}
|
|
26
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
27
|
+
function a(t, r, a, o) {
|
|
28
|
+
let s = {};
|
|
29
|
+
function c(e) {
|
|
30
|
+
this.def = e, this.constr = m, this.traits = /* @__PURE__ */ new Set();
|
|
31
|
+
}
|
|
32
|
+
c.prototype = s;
|
|
33
|
+
let l = a, u = l && /* @__PURE__ */ new WeakSet();
|
|
34
|
+
function d(i, a) {
|
|
35
|
+
if (!i._zod) {
|
|
36
|
+
n.value = new c(a);
|
|
37
|
+
try {
|
|
38
|
+
Object.defineProperty(i, "_zod", n);
|
|
39
|
+
} finally {
|
|
40
|
+
n.value = void 0;
|
|
41
|
+
}
|
|
42
|
+
} else if (i._zod.traits.has(t)) return;
|
|
43
|
+
if (i._zod.traits.add(t), r(i, a), u) {
|
|
44
|
+
let t = Object.getPrototypeOf(i), n = i._zod.constr.prototype, r = t;
|
|
45
|
+
for (; r && r !== n;) r = Object.getPrototypeOf(r);
|
|
46
|
+
let a = r ?? t;
|
|
47
|
+
u.has(a) || (u.add(a), e(a, l));
|
|
48
|
+
}
|
|
49
|
+
let o = m.prototype;
|
|
50
|
+
for (let e in o) Object.prototype.hasOwnProperty.call(o, e) && (e in i || (i[e] = o[e].bind(i)));
|
|
51
|
+
}
|
|
52
|
+
let f = o?.Parent ?? Object;
|
|
53
|
+
class p extends f {}
|
|
54
|
+
Object.defineProperty(p, "name", { value: t });
|
|
55
|
+
function m(e) {
|
|
56
|
+
let t = o?.Parent ? i(p) : this;
|
|
57
|
+
d(t, e);
|
|
58
|
+
let n = t._zod.deferred;
|
|
59
|
+
if (n) {
|
|
60
|
+
for (let e of n) e();
|
|
61
|
+
t._zod.deferred = void 0;
|
|
62
|
+
}
|
|
63
|
+
let r = globalThis.__zod_globalConfig?.postProcessor;
|
|
64
|
+
return r && r(t), t;
|
|
65
|
+
}
|
|
66
|
+
return Object.defineProperty(m, "init", { value: d }), Object.defineProperty(m, Symbol.hasInstance, { value: (e) => o?.Parent && e instanceof o.Parent ? !0 : e?._zod?.traits?.has(t) }), Object.defineProperty(m, "name", { value: t }), m;
|
|
67
|
+
}
|
|
68
|
+
var o = class extends Error {
|
|
69
|
+
constructor() {
|
|
70
|
+
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
71
|
+
}
|
|
72
|
+
}, s = class extends Error {
|
|
73
|
+
constructor(e) {
|
|
74
|
+
super(`Encountered unidirectional transform during encode: ${e}`), this.name = "ZodEncodeError";
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
(t = globalThis).__zod_globalConfig ?? (t.__zod_globalConfig = {});
|
|
78
|
+
var c = globalThis.__zod_globalConfig;
|
|
79
|
+
function l(e) {
|
|
80
|
+
return e && Object.assign(c, e), c;
|
|
81
|
+
}
|
|
82
|
+
export { o as $ZodAsyncError, s as $ZodEncodeError, a as $constructor, l as config, c as globalConfig };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// node_modules/zod/v4/core/doc.js
|
|
2
|
+
var e = class {
|
|
3
|
+
constructor(e = [], t = {}) {
|
|
4
|
+
this.content = [], this.indent = 0, this.args = e, this.closed = t;
|
|
5
|
+
}
|
|
6
|
+
indented(e) {
|
|
7
|
+
this.indent += 1;
|
|
8
|
+
try {
|
|
9
|
+
e(this);
|
|
10
|
+
} finally {
|
|
11
|
+
--this.indent;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
write(e) {
|
|
15
|
+
if (typeof e == "function") {
|
|
16
|
+
e(this, { execution: "sync" }), e(this, { execution: "async" });
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
let t = e.split("\n").filter((e) => e), n = Math.min(...t.map((e) => e.length - e.trimStart().length)), r = t.map((e) => e.slice(n)).map((e) => " ".repeat(this.indent * 2) + e);
|
|
20
|
+
for (let e of r) this.content.push(e);
|
|
21
|
+
}
|
|
22
|
+
compile() {
|
|
23
|
+
let e = Function, t = this?.content ?? [""];
|
|
24
|
+
return new e(...Object.keys(this.closed), `return function (${this.args.join(", ")}) {\n${t.join("\n")}\n};`)(...Object.values(this.closed));
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
export { e as Doc };
|