@reforma/components 0.1.6 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/dist/Scrollable/Scrollable.d.ts +1 -2
  2. package/dist/Scrollable/Scrollable.d.ts.map +1 -1
  3. package/dist/Scrollable/Scrollable.js +45 -38
  4. package/dist/Scrollable/Scrollable.js.map +1 -1
  5. package/dist/Scrollable/useScrollChrome.d.ts +1 -2
  6. package/dist/Scrollable/useScrollChrome.d.ts.map +1 -1
  7. package/dist/Scrollable/useScrollChrome.js +125 -110
  8. package/dist/Scrollable/useScrollChrome.js.map +1 -1
  9. package/dist/chat/ComposerBanner/ComposerBanner.d.ts +2 -1
  10. package/dist/chat/ComposerBanner/ComposerBanner.d.ts.map +1 -1
  11. package/dist/chat/ComposerBanner/ComposerBanner.js +37 -29
  12. package/dist/chat/ComposerBanner/ComposerBanner.js.map +1 -1
  13. package/dist/chat/ComposerBanner/ComposerBanner.module.css +1 -1
  14. package/dist/chat/ComposerBanner/ComposerBanner.module.css.js +5 -3
  15. package/dist/chat/ComposerBanner/ComposerBanner.module.css.js.map +1 -1
  16. package/dist/chat/Tool/agent/AgentTool.d.ts.map +1 -1
  17. package/dist/chat/Tool/agent/AgentTool.js +89 -90
  18. package/dist/chat/Tool/agent/AgentTool.js.map +1 -1
  19. package/dist/chat/Tool/edit/EditTool.js +1 -1
  20. package/dist/chat/Tool/edit/EditTool.js.map +1 -1
  21. package/dist/node_modules/zod/v4/classic/errors.js +38 -0
  22. package/dist/node_modules/zod/v4/classic/errors.js.map +1 -0
  23. package/dist/node_modules/zod/v4/classic/parse.js +21 -0
  24. package/dist/node_modules/zod/v4/classic/parse.js.map +1 -0
  25. package/dist/node_modules/zod/v4/classic/schemas.js +822 -0
  26. package/dist/node_modules/zod/v4/classic/schemas.js.map +1 -0
  27. package/dist/node_modules/zod/v4/core/api.js +561 -0
  28. package/dist/node_modules/zod/v4/core/api.js.map +1 -0
  29. package/dist/node_modules/zod/v4/core/checks.js +262 -0
  30. package/dist/node_modules/zod/v4/core/checks.js.map +1 -0
  31. package/dist/node_modules/zod/v4/core/core.js +97 -0
  32. package/dist/node_modules/zod/v4/core/core.js.map +1 -0
  33. package/dist/node_modules/zod/v4/core/doc.js +35 -0
  34. package/dist/node_modules/zod/v4/core/doc.js.map +1 -0
  35. package/dist/node_modules/zod/v4/core/errors.js +79 -0
  36. package/dist/node_modules/zod/v4/core/errors.js.map +1 -0
  37. package/dist/node_modules/zod/v4/core/json-schema-processors.js +308 -0
  38. package/dist/node_modules/zod/v4/core/json-schema-processors.js.map +1 -0
  39. package/dist/node_modules/zod/v4/core/memoizer.js +203 -0
  40. package/dist/node_modules/zod/v4/core/memoizer.js.map +1 -0
  41. package/dist/node_modules/zod/v4/core/parse.js +113 -0
  42. package/dist/node_modules/zod/v4/core/parse.js.map +1 -0
  43. package/dist/node_modules/zod/v4/core/regexes.js +59 -0
  44. package/dist/node_modules/zod/v4/core/regexes.js.map +1 -0
  45. package/dist/node_modules/zod/v4/core/registries.js +41 -0
  46. package/dist/node_modules/zod/v4/core/registries.js.map +1 -0
  47. package/dist/node_modules/zod/v4/core/schemas.js +1104 -0
  48. package/dist/node_modules/zod/v4/core/schemas.js.map +1 -0
  49. package/dist/node_modules/zod/v4/core/to-json-schema.js +380 -0
  50. package/dist/node_modules/zod/v4/core/to-json-schema.js.map +1 -0
  51. package/dist/node_modules/zod/v4/core/util.js +465 -0
  52. package/dist/node_modules/zod/v4/core/util.js.map +1 -0
  53. package/dist/node_modules/zod/v4/core/versions.js +9 -0
  54. package/dist/node_modules/zod/v4/core/versions.js.map +1 -0
  55. package/dist/node_modules/zod/v4/locales/en.js +97 -0
  56. package/dist/node_modules/zod/v4/locales/en.js.map +1 -0
  57. package/dist/openui/actions.d.ts +16 -0
  58. package/dist/openui/actions.d.ts.map +1 -0
  59. package/dist/openui/actions.js +58 -0
  60. package/dist/openui/actions.js.map +1 -0
  61. package/dist/openui/components/controls.d.ts +34 -0
  62. package/dist/openui/components/controls.d.ts.map +1 -0
  63. package/dist/openui/components/controls.js +40 -0
  64. package/dist/openui/components/controls.js.map +1 -0
  65. package/dist/openui/components/layout.d.ts +74 -0
  66. package/dist/openui/components/layout.d.ts.map +1 -0
  67. package/dist/openui/components/layout.js +154 -0
  68. package/dist/openui/components/layout.js.map +1 -0
  69. package/dist/openui/components/list.d.ts +17 -0
  70. package/dist/openui/components/list.d.ts.map +1 -0
  71. package/dist/openui/components/list.js +96 -0
  72. package/dist/openui/components/list.js.map +1 -0
  73. package/dist/openui/components/svg.d.ts +100 -0
  74. package/dist/openui/components/svg.d.ts.map +1 -0
  75. package/dist/openui/components/svg.js +246 -0
  76. package/dist/openui/components/svg.js.map +1 -0
  77. package/dist/openui/components/table.d.ts +6 -0
  78. package/dist/openui/components/table.d.ts.map +1 -0
  79. package/dist/openui/components/table.js +54 -0
  80. package/dist/openui/components/table.js.map +1 -0
  81. package/dist/openui/components/text.d.ts +89 -0
  82. package/dist/openui/components/text.d.ts.map +1 -0
  83. package/dist/openui/components/text.js +181 -0
  84. package/dist/openui/components/text.js.map +1 -0
  85. package/dist/openui/functions/colors.d.ts +12 -0
  86. package/dist/openui/functions/colors.d.ts.map +1 -0
  87. package/dist/openui/functions/colors.js +32 -0
  88. package/dist/openui/functions/colors.js.map +1 -0
  89. package/dist/openui/functions/data.d.ts +170 -0
  90. package/dist/openui/functions/data.d.ts.map +1 -0
  91. package/dist/openui/functions/data.js +308 -0
  92. package/dist/openui/functions/data.js.map +1 -0
  93. package/dist/openui/functions/dates.d.ts +57 -0
  94. package/dist/openui/functions/dates.d.ts.map +1 -0
  95. package/dist/openui/functions/dates.js +184 -0
  96. package/dist/openui/functions/dates.js.map +1 -0
  97. package/dist/openui/functions/index.d.ts +136 -0
  98. package/dist/openui/functions/index.d.ts.map +1 -0
  99. package/dist/openui/functions/index.js +11 -0
  100. package/dist/openui/functions/index.js.map +1 -0
  101. package/dist/openui/functions/lists.d.ts +102 -0
  102. package/dist/openui/functions/lists.d.ts.map +1 -0
  103. package/dist/openui/functions/lists.js +305 -0
  104. package/dist/openui/functions/lists.js.map +1 -0
  105. package/dist/openui/functions/numbers.d.ts +72 -0
  106. package/dist/openui/functions/numbers.d.ts.map +1 -0
  107. package/dist/openui/functions/numbers.js +201 -0
  108. package/dist/openui/functions/numbers.js.map +1 -0
  109. package/dist/openui/functions/shared.d.ts +28 -0
  110. package/dist/openui/functions/shared.d.ts.map +1 -0
  111. package/dist/openui/functions/shared.js +69 -0
  112. package/dist/openui/functions/shared.js.map +1 -0
  113. package/dist/openui/functions/text.d.ts +97 -0
  114. package/dist/openui/functions/text.d.ts.map +1 -0
  115. package/dist/openui/functions/text.js +223 -0
  116. package/dist/openui/functions/text.js.map +1 -0
  117. package/dist/openui/index.d.ts +5 -0
  118. package/dist/openui/index.d.ts.map +1 -0
  119. package/dist/openui/index.js +14 -0
  120. package/dist/openui/index.js.map +1 -0
  121. package/dist/openui/library.d.ts +8 -0
  122. package/dist/openui/library.d.ts.map +1 -0
  123. package/dist/openui/library.js +37 -0
  124. package/dist/openui/library.js.map +1 -0
  125. package/dist/openui/schema.d.ts +36 -0
  126. package/dist/openui/schema.d.ts.map +1 -0
  127. package/dist/openui/schema.js +24 -0
  128. package/dist/openui/schema.js.map +1 -0
  129. package/package.json +4 -2
@@ -0,0 +1,822 @@
1
+ import { objectProcessor as G, unionProcessor as K, recordProcessor as Y, enumProcessor as V, optionalProcessor as E, nonoptionalProcessor as X, numberProcessor as q, booleanProcessor as H, anyProcessor as Q, arrayProcessor as ee, stringProcessor as te, readonlyProcessor as re, pipeProcessor as ne, catchProcessor as oe, prefaultProcessor as ie, defaultProcessor as ce, transformProcessor as se, intersectionProcessor as ue, nullableProcessor as ae, aggregateChecks as d, customProcessor as he, unknownProcessor as de, neverProcessor as me } from "../core/json-schema-processors.js";
2
+ import { createToJSONSchemaMethod as le, createStandardJSONSchemaMethod as S } from "../core/to-json-schema.js";
3
+ import pe from "../locales/en.js";
4
+ import { safeDecodeAsync as Ze, safeEncodeAsync as _e, safeDecode as fe, safeEncode as ye, decodeAsync as ke, encodeAsync as Se, decode as Ie, encode as Oe, safeParseAsync as Ne, safeParse as we, parseAsync as ge, parse as ve } from "./parse.js";
5
+ import { normalizeParams as h, required as De, partial as I, omit as ze, pick as $e, merge as Pe, safeExtend as Te, extend as be, mergeDefs as m, installLazyProp as Ee, derived as U, own as O, hide as Ue, clone as xe, constantCatch as Je, shallowClone as x, issue as N } from "../core/util.js";
6
+ import { _boolean as Ae, _any as Ce, _number as Re, _array as je, _string as Le, _isoDuration as Fe, _isoTime as Be, _isoDate as Me, _isoDateTime as We, _e164 as Ge, _cidrv6 as Ke, _cidrv4 as Ye, _ipv6 as Ve, _ipv4 as Xe, _ksuid as qe, _xid as He, _base64url as Qe, _base64 as et, _ulid as tt, _cuid2 as rt, _cuid as nt, _nanoid as ot, _uuidv7 as it, _uuidv6 as ct, _uuidv4 as st, _uuid as ut, _guid as at, _emoji as ht, _jwt as dt, _url as mt, _email as lt, _length as J, _maxLength as A, _minLength as Z, _overwrite as pt, _superRefine as Zt, _refine as _t, _slugify as ft, _toUpperCase as yt, _toLowerCase as kt, _normalize as St, _trim as It, _uppercase as Ot, _lowercase as Nt, _endsWith as wt, _startsWith as gt, _includes as vt, _regex as Dt, _multipleOf as w, _lte as f, _lt as g, _gte as y, _gt as v, _int as zt, _never as $t, _unknown as Pt } from "../core/api.js";
7
+ import { $constructor as o, globalConfig as C, config as R, $ZodEncodeError as Tt } from "../core/core.js";
8
+ import { $ZodObjectJIT as bt, $ZodUnion as Et, $ZodRecord as Ut, $ZodEnum as xt, $ZodOptional as Jt, $ZodExactOptional as At, $ZodNonOptional as Ct, $ZodString as j, $ZodNumber as Rt, $ZodBoolean as jt, $ZodAny as Lt, $ZodArray as Ft, $ZodType as Bt, $ZodReadonly as Mt, $ZodPipe as Wt, $ZodCatch as Gt, $ZodPrefault as Kt, $ZodDefault as Yt, $ZodTransform as Vt, $ZodIntersection as Xt, $ZodNullable as qt, standardProps as Ht, $ZodISODateTime as Qt, $ZodISODate as er, $ZodISOTime as tr, $ZodISODuration as rr, $ZodEmail as nr, $ZodGUID as or, $ZodUUID as ir, $ZodURL as cr, $ZodEmoji as sr, $ZodNanoID as ur, $ZodCUID as ar, $ZodCUID2 as hr, $ZodULID as dr, $ZodXID as mr, $ZodKSUID as lr, $ZodIPv4 as pr, $ZodIPv6 as Zr, $ZodCIDRv4 as _r, $ZodCIDRv6 as fr, $ZodBase64 as yr, $ZodBase64URL as kr, $ZodE164 as Sr, $ZodJWT as Ir, $ZodStringFormat as Or, $ZodCustom as Nr, $ZodNumberFormat as wr, $ZodUnknown as gr, $ZodNever as vr } from "../core/schemas.js";
9
+ import { globalRegistry as l } from "../core/registries.js";
10
+ import { validateAsync as Dr, validate as zr } from "../core/parse.js";
11
+ import { memoizer as $r } from "../core/memoizer.js";
12
+ function Pr() {
13
+ C.localeError || R(pe());
14
+ }
15
+ function _() {
16
+ C.memoizer || R({ memoizer: $r() });
17
+ }
18
+ const c = /* @__PURE__ */ o("ZodType", (e, t) => (Pr(), Bt.init(e, t), e.def = t, e.type = t.type, e), {
19
+ check(...e) {
20
+ const t = this.def;
21
+ return this.clone(m(t, {
22
+ checks: [
23
+ ...t.checks ?? [],
24
+ ...e.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
25
+ ]
26
+ }), { parent: !0 });
27
+ },
28
+ with(...e) {
29
+ return this.check(...e);
30
+ },
31
+ clone(e, t) {
32
+ return xe(this, e, t);
33
+ },
34
+ brand() {
35
+ return this;
36
+ },
37
+ register(e, t) {
38
+ return e.add(this, t), this;
39
+ },
40
+ refine(e, t) {
41
+ return this.check(Tn(e, t));
42
+ },
43
+ superRefine(e, t) {
44
+ return this.check(bn(e, t));
45
+ },
46
+ overwrite(e) {
47
+ return this.check(pt(e));
48
+ },
49
+ optional() {
50
+ return P(this);
51
+ },
52
+ exactOptional() {
53
+ return yn(this);
54
+ },
55
+ nullable() {
56
+ return T(this);
57
+ },
58
+ nullish() {
59
+ return P(T(this));
60
+ },
61
+ nonoptional(e) {
62
+ return wn(this, e);
63
+ },
64
+ array() {
65
+ return an(this);
66
+ },
67
+ or(e) {
68
+ return mn([this, e]);
69
+ },
70
+ and(e) {
71
+ return pn(this, e);
72
+ },
73
+ transform(e) {
74
+ return b(this, fn(e));
75
+ },
76
+ default(e) {
77
+ return In(this, e);
78
+ },
79
+ prefault(e) {
80
+ return Nn(this, e);
81
+ },
82
+ catch(e) {
83
+ return vn(this, e);
84
+ },
85
+ pipe(e) {
86
+ return b(this, e);
87
+ },
88
+ readonly() {
89
+ return $n(this);
90
+ },
91
+ describe(e) {
92
+ const t = this.clone();
93
+ return l.add(t, { description: e }), t;
94
+ },
95
+ meta(...e) {
96
+ if (e.length === 0)
97
+ return l.get(this);
98
+ const t = this.clone();
99
+ return l.add(t, e[0]), t;
100
+ },
101
+ isOptional() {
102
+ return this.safeParse(void 0).success;
103
+ },
104
+ isNullable() {
105
+ return this.safeParse(null).success;
106
+ },
107
+ apply(e, ...t) {
108
+ return t.length === 0 ? e(this) : e(this, ...t);
109
+ },
110
+ // Overrides core's `~standard` to add `jsonSchema`. Must stay a prototype entry: redefining it per instance demotes instances to dictionary mode.
111
+ get "~standard"() {
112
+ return Ue(this, "~standard", {
113
+ ...Ht(this),
114
+ jsonSchema: {
115
+ input: S(this, "input"),
116
+ output: S(this, "output")
117
+ }
118
+ });
119
+ },
120
+ set "~standard"(e) {
121
+ O(this, "~standard", e);
122
+ },
123
+ parse: function e(t, r) {
124
+ return ve(this, t, r, { callee: e });
125
+ },
126
+ parseAsync: async function e(t, r) {
127
+ return await ge(this, t, r, { callee: e });
128
+ },
129
+ safeParse(e, t) {
130
+ return we(this, e, t);
131
+ },
132
+ async safeParseAsync(e, t) {
133
+ return Ne(this, e, t);
134
+ },
135
+ // `spa` is an alias: same function object as `safeParseAsync`, as before.
136
+ get spa() {
137
+ return this?.safeParseAsync;
138
+ },
139
+ set spa(e) {
140
+ O(this, "spa", e);
141
+ },
142
+ validate(e, t) {
143
+ return zr(this, e, t);
144
+ },
145
+ validateAsync(e, t) {
146
+ return Dr(this, e, t);
147
+ },
148
+ encode: function e(t, r) {
149
+ return Oe(this, t, r, { callee: e });
150
+ },
151
+ decode: function e(t, r) {
152
+ return Ie(this, t, r, { callee: e });
153
+ },
154
+ encodeAsync: async function e(t, r) {
155
+ return await Se(this, t, r, { callee: e });
156
+ },
157
+ decodeAsync: async function e(t, r) {
158
+ return await ke(this, t, r, { callee: e });
159
+ },
160
+ safeEncode(e, t) {
161
+ return ye(this, e, t);
162
+ },
163
+ safeDecode(e, t) {
164
+ return fe(this, e, t);
165
+ },
166
+ async safeEncodeAsync(e, t) {
167
+ return _e(this, e, t);
168
+ },
169
+ async safeDecodeAsync(e, t) {
170
+ return Ze(this, e, t);
171
+ },
172
+ toJSONSchema(e) {
173
+ return le(this, {})(e);
174
+ },
175
+ // Reads through to the registry on every access, so it must not cache.
176
+ get description() {
177
+ return l.get(this)?.description;
178
+ },
179
+ // No setter: `schema._def = x` throws, as it did when `_def` was a non-writable own property.
180
+ get _def() {
181
+ return this._zod.def;
182
+ }
183
+ }), L = /* @__PURE__ */ o(
184
+ "_ZodString",
185
+ (e, t) => {
186
+ j.init(e, t), c.init(e, t), e._zod.processJSONSchema = (r, n, i) => te(e, r, n);
187
+ },
188
+ /* @__PURE__ */ U({
189
+ format: (e) => d(e).format ?? null,
190
+ minLength: (e) => d(e).minimum ?? null,
191
+ maxLength: (e) => d(e).maximum ?? null
192
+ }, {
193
+ regex(...e) {
194
+ return this.check(Dt(...e));
195
+ },
196
+ includes(...e) {
197
+ return this.check(vt(...e));
198
+ },
199
+ startsWith(...e) {
200
+ return this.check(gt(...e));
201
+ },
202
+ endsWith(...e) {
203
+ return this.check(wt(...e));
204
+ },
205
+ min(...e) {
206
+ return this.check(Z(...e));
207
+ },
208
+ max(...e) {
209
+ return this.check(A(...e));
210
+ },
211
+ length(...e) {
212
+ return this.check(J(...e));
213
+ },
214
+ nonempty(...e) {
215
+ return this.check(Z(1, ...e));
216
+ },
217
+ lowercase(e) {
218
+ return this.check(Nt(e));
219
+ },
220
+ uppercase(e) {
221
+ return this.check(Ot(e));
222
+ },
223
+ trim() {
224
+ return this.check(It());
225
+ },
226
+ normalize(...e) {
227
+ return this.check(St(...e));
228
+ },
229
+ toLowerCase() {
230
+ return this.check(kt());
231
+ },
232
+ toUpperCase() {
233
+ return this.check(yt());
234
+ },
235
+ slugify() {
236
+ return this.check(ft());
237
+ }
238
+ })
239
+ ), Tr = /* @__PURE__ */ o("ZodString", (e, t) => {
240
+ j.init(e, t), L.init(e, t);
241
+ }, {
242
+ email(e) {
243
+ return this.check(lt(Ar, e));
244
+ },
245
+ url(e) {
246
+ return this.check(mt(Rr, e));
247
+ },
248
+ jwt(e) {
249
+ return this.check(dt(en, e));
250
+ },
251
+ emoji(e) {
252
+ return this.check(ht(jr, e));
253
+ },
254
+ guid(e) {
255
+ return this.check(at(Cr, e));
256
+ },
257
+ uuid(e) {
258
+ return this.check(ut(p, e));
259
+ },
260
+ uuidv4(e) {
261
+ return this.check(st(p, e));
262
+ },
263
+ uuidv6(e) {
264
+ return this.check(ct(p, e));
265
+ },
266
+ uuidv7(e) {
267
+ return this.check(it(p, e));
268
+ },
269
+ nanoid(e) {
270
+ return this.check(ot(Lr, e));
271
+ },
272
+ cuid(e) {
273
+ return this.check(nt(Fr, e));
274
+ },
275
+ cuid2(e) {
276
+ return this.check(rt(Br, e));
277
+ },
278
+ ulid(e) {
279
+ return this.check(tt(Mr, e));
280
+ },
281
+ base64(e) {
282
+ return this.check(et(qr, e));
283
+ },
284
+ base64url(e) {
285
+ return this.check(Qe(Hr, e));
286
+ },
287
+ xid(e) {
288
+ return this.check(He(Wr, e));
289
+ },
290
+ ksuid(e) {
291
+ return this.check(qe(Gr, e));
292
+ },
293
+ ipv4(e) {
294
+ return this.check(Xe(Kr, e));
295
+ },
296
+ ipv6(e) {
297
+ return this.check(Ve(Yr, e));
298
+ },
299
+ cidrv4(e) {
300
+ return this.check(Ye(Vr, e));
301
+ },
302
+ cidrv6(e) {
303
+ return this.check(Ke(Xr, e));
304
+ },
305
+ e164(e) {
306
+ return this.check(Ge(Qr, e));
307
+ },
308
+ datetime(e) {
309
+ return this.check(We(Er, e));
310
+ },
311
+ date(e) {
312
+ return this.check(Me(Ur, e));
313
+ },
314
+ time(e) {
315
+ return this.check(Be(xr, e));
316
+ },
317
+ duration(e) {
318
+ return this.check(Fe(Jr, e));
319
+ }
320
+ });
321
+ function br(e) {
322
+ return Le(Tr, e);
323
+ }
324
+ const s = /* @__PURE__ */ o("ZodStringFormat", (e, t) => {
325
+ Or.init(e, t), L.init(e, t);
326
+ }), Er = /* @__PURE__ */ o("ZodISODateTime", (e, t) => {
327
+ Qt.init(e, t), s.init(e, t);
328
+ }), Ur = /* @__PURE__ */ o("ZodISODate", (e, t) => {
329
+ er.init(e, t), s.init(e, t);
330
+ }), xr = /* @__PURE__ */ o("ZodISOTime", (e, t) => {
331
+ tr.init(e, t), s.init(e, t);
332
+ }), Jr = /* @__PURE__ */ o("ZodISODuration", (e, t) => {
333
+ rr.init(e, t), s.init(e, t);
334
+ }), Ar = /* @__PURE__ */ o("ZodEmail", (e, t) => {
335
+ nr.init(e, t), s.init(e, t);
336
+ }), Cr = /* @__PURE__ */ o("ZodGUID", (e, t) => {
337
+ or.init(e, t), s.init(e, t);
338
+ }), p = /* @__PURE__ */ o("ZodUUID", (e, t) => {
339
+ ir.init(e, t), s.init(e, t);
340
+ }), Rr = /* @__PURE__ */ o("ZodURL", (e, t) => {
341
+ cr.init(e, t), s.init(e, t);
342
+ }), jr = /* @__PURE__ */ o("ZodEmoji", (e, t) => {
343
+ sr.init(e, t), s.init(e, t);
344
+ }), Lr = /* @__PURE__ */ o("ZodNanoID", (e, t) => {
345
+ ur.init(e, t), s.init(e, t);
346
+ }), Fr = /* @__PURE__ */ o("ZodCUID", (e, t) => {
347
+ ar.init(e, t), s.init(e, t);
348
+ }), Br = /* @__PURE__ */ o("ZodCUID2", (e, t) => {
349
+ hr.init(e, t), s.init(e, t);
350
+ }), Mr = /* @__PURE__ */ o("ZodULID", (e, t) => {
351
+ dr.init(e, t), s.init(e, t);
352
+ }), Wr = /* @__PURE__ */ o("ZodXID", (e, t) => {
353
+ mr.init(e, t), s.init(e, t);
354
+ }), Gr = /* @__PURE__ */ o("ZodKSUID", (e, t) => {
355
+ lr.init(e, t), s.init(e, t);
356
+ }), Kr = /* @__PURE__ */ o("ZodIPv4", (e, t) => {
357
+ pr.init(e, t), s.init(e, t);
358
+ }), Yr = /* @__PURE__ */ o("ZodIPv6", (e, t) => {
359
+ Zr.init(e, t), s.init(e, t);
360
+ }), Vr = /* @__PURE__ */ o("ZodCIDRv4", (e, t) => {
361
+ _r.init(e, t), s.init(e, t);
362
+ }), Xr = /* @__PURE__ */ o("ZodCIDRv6", (e, t) => {
363
+ fr.init(e, t), s.init(e, t);
364
+ }), qr = /* @__PURE__ */ o("ZodBase64", (e, t) => {
365
+ yr.init(e, t), s.init(e, t);
366
+ }), Hr = /* @__PURE__ */ o("ZodBase64URL", (e, t) => {
367
+ kr.init(e, t), s.init(e, t);
368
+ }), Qr = /* @__PURE__ */ o("ZodE164", (e, t) => {
369
+ Sr.init(e, t), s.init(e, t);
370
+ }), en = /* @__PURE__ */ o("ZodJWT", (e, t) => {
371
+ Ir.init(e, t), s.init(e, t);
372
+ }), F = /* @__PURE__ */ o(
373
+ "ZodNumber",
374
+ (e, t) => {
375
+ Rt.init(e, t), c.init(e, t), e._zod.processJSONSchema = (r, n, i) => q(e, r, n, i), e.isFinite = !0;
376
+ },
377
+ /* @__PURE__ */ U({
378
+ minValue: (e) => {
379
+ const { minimum: t, exclusiveMinimum: r } = d(e);
380
+ return Math.max(t ?? Number.NEGATIVE_INFINITY, r ?? Number.NEGATIVE_INFINITY);
381
+ },
382
+ maxValue: (e) => {
383
+ const { maximum: t, exclusiveMaximum: r } = d(e);
384
+ return Math.min(t ?? Number.POSITIVE_INFINITY, r ?? Number.POSITIVE_INFINITY);
385
+ },
386
+ isInt: (e) => {
387
+ const { isInt: t, multipleOf: r } = d(e);
388
+ return !!t || !!r?.some(Number.isSafeInteger);
389
+ },
390
+ format: (e) => d(e).format ?? null
391
+ }, {
392
+ gt(e, t) {
393
+ return this.check(v(e, t));
394
+ },
395
+ gte(e, t) {
396
+ return this.check(y(e, t));
397
+ },
398
+ min(e, t) {
399
+ return this.check(y(e, t));
400
+ },
401
+ lt(e, t) {
402
+ return this.check(g(e, t));
403
+ },
404
+ lte(e, t) {
405
+ return this.check(f(e, t));
406
+ },
407
+ max(e, t) {
408
+ return this.check(f(e, t));
409
+ },
410
+ int(e) {
411
+ return this.check(D(e));
412
+ },
413
+ safe(e) {
414
+ return this.check(D(e));
415
+ },
416
+ positive(e) {
417
+ return this.check(v(0, e));
418
+ },
419
+ nonnegative(e) {
420
+ return this.check(y(0, e));
421
+ },
422
+ negative(e) {
423
+ return this.check(g(0, e));
424
+ },
425
+ nonpositive(e) {
426
+ return this.check(f(0, e));
427
+ },
428
+ multipleOf(e, t) {
429
+ return this.check(w(e, t));
430
+ },
431
+ step(e, t) {
432
+ return this.check(w(e, t));
433
+ },
434
+ finite() {
435
+ return this;
436
+ }
437
+ })
438
+ );
439
+ function Mn(e) {
440
+ return Re(F, e);
441
+ }
442
+ const tn = /* @__PURE__ */ o("ZodNumberFormat", (e, t) => {
443
+ wr.init(e, t), F.init(e, t);
444
+ });
445
+ function D(e) {
446
+ return zt(tn, e);
447
+ }
448
+ const rn = /* @__PURE__ */ o("ZodBoolean", (e, t) => {
449
+ jt.init(e, t), c.init(e, t), e._zod.processJSONSchema = (r, n, i) => H(e, r, n);
450
+ });
451
+ function Wn(e) {
452
+ return Ae(rn, e);
453
+ }
454
+ const nn = /* @__PURE__ */ o("ZodAny", (e, t) => {
455
+ Lt.init(e, t), c.init(e, t), e._zod.processJSONSchema = (r, n, i) => Q();
456
+ });
457
+ function Gn() {
458
+ return Ce(nn);
459
+ }
460
+ const on = /* @__PURE__ */ o("ZodUnknown", (e, t) => {
461
+ gr.init(e, t), c.init(e, t), e._zod.processJSONSchema = (r, n, i) => de();
462
+ });
463
+ function z() {
464
+ return Pt(on);
465
+ }
466
+ const cn = /* @__PURE__ */ o("ZodNever", (e, t) => {
467
+ vr.init(e, t), c.init(e, t), e._zod.processJSONSchema = (r, n, i) => me(e, r, n);
468
+ });
469
+ function sn(e) {
470
+ return $t(cn, e);
471
+ }
472
+ const un = /* @__PURE__ */ o("ZodArray", (e, t) => {
473
+ _(), Ft.init(e, t), c.init(e, t), e._zod.processJSONSchema = (r, n, i) => ee(e, r, n, i), e.element = t.element;
474
+ }, {
475
+ min(e, t) {
476
+ return this.check(Z(e, t));
477
+ },
478
+ nonempty(e) {
479
+ return this.check(Z(1, e));
480
+ },
481
+ max(e, t) {
482
+ return this.check(A(e, t));
483
+ },
484
+ length(e, t) {
485
+ return this.check(J(e, t));
486
+ },
487
+ unwrap() {
488
+ return this.element;
489
+ }
490
+ });
491
+ function an(e, t) {
492
+ return je(un, e, t);
493
+ }
494
+ const hn = /* @__PURE__ */ o("ZodObject", (e, t) => {
495
+ _(), bt.init(e, t), c.init(e, t), e._zod.processJSONSchema = (r, n, i) => G(e, r, n, i), Ee(e, "shape", (r) => r._zod.def.shape, !1);
496
+ }, {
497
+ keyof() {
498
+ return Zn(Object.keys(this._zod.def.shape));
499
+ },
500
+ catchall(e) {
501
+ return this.clone(m(this._zod.def, { catchall: e }));
502
+ },
503
+ passthrough() {
504
+ return this.clone(m(this._zod.def, { catchall: z() }));
505
+ },
506
+ loose() {
507
+ return this.clone(m(this._zod.def, { catchall: z() }));
508
+ },
509
+ strict() {
510
+ return this.clone(m(this._zod.def, { catchall: sn() }));
511
+ },
512
+ strip() {
513
+ return this.clone(m(this._zod.def, { catchall: void 0 }));
514
+ },
515
+ extend(e) {
516
+ return be(this, e);
517
+ },
518
+ safeExtend(e) {
519
+ return Te(this, e);
520
+ },
521
+ merge(e) {
522
+ return Pe(this, e);
523
+ },
524
+ pick(e) {
525
+ return $e(this, e);
526
+ },
527
+ omit(e) {
528
+ return ze(this, e);
529
+ },
530
+ partial(...e) {
531
+ return I(B, this, e[0]);
532
+ },
533
+ exactPartial(...e) {
534
+ return I(M, this, e[0], "exactPartial");
535
+ },
536
+ required(...e) {
537
+ return De(W, this, e[0]);
538
+ }
539
+ });
540
+ function Kn(e, t) {
541
+ const r = {
542
+ type: "object",
543
+ shape: e ?? {},
544
+ ...h(t)
545
+ };
546
+ return new hn(r);
547
+ }
548
+ const dn = /* @__PURE__ */ o("ZodUnion", (e, t) => {
549
+ Et.init(e, t), c.init(e, t), e._zod.processJSONSchema = (r, n, i) => K(e, r, n, i), e.options = t.options;
550
+ });
551
+ function mn(e, t) {
552
+ return new dn({
553
+ type: "union",
554
+ options: e,
555
+ ...h(t)
556
+ });
557
+ }
558
+ const ln = /* @__PURE__ */ o("ZodIntersection", (e, t) => {
559
+ Xt.init(e, t), c.init(e, t), e._zod.processJSONSchema = (r, n, i) => ue(e, r, n, i);
560
+ });
561
+ function pn(e, t) {
562
+ return new ln({
563
+ type: "intersection",
564
+ left: e,
565
+ right: t
566
+ });
567
+ }
568
+ const $ = /* @__PURE__ */ o("ZodRecord", (e, t) => {
569
+ _(), Ut.init(e, t), c.init(e, t), e._zod.processJSONSchema = (r, n, i) => Y(e, r, n, i), e.keyType = t.keyType, e.valueType = t.valueType;
570
+ });
571
+ function Yn(e, t, r) {
572
+ return !t || !t._zod ? new $({
573
+ type: "record",
574
+ keyType: br(),
575
+ valueType: e,
576
+ ...h(t)
577
+ }) : new $({
578
+ type: "record",
579
+ keyType: e,
580
+ valueType: t,
581
+ ...h(r)
582
+ });
583
+ }
584
+ const k = /* @__PURE__ */ o("ZodEnum", (e, t) => {
585
+ xt.init(e, t), c.init(e, t), e._zod.processJSONSchema = (n, i, a) => V(e, n, i), e.enum = t.entries, e.options = [...e._zod.values];
586
+ const r = new Set(Object.keys(t.entries));
587
+ e.extract = (n, i) => {
588
+ const a = {};
589
+ for (const u of n)
590
+ if (r.has(u))
591
+ a[u] = t.entries[u];
592
+ else
593
+ throw new Error(`Key ${u} not found in enum`);
594
+ return new k({
595
+ ...t,
596
+ checks: [],
597
+ ...h(i),
598
+ entries: a
599
+ });
600
+ }, e.exclude = (n, i) => {
601
+ const a = { ...t.entries };
602
+ for (const u of n)
603
+ if (r.has(u))
604
+ delete a[u];
605
+ else
606
+ throw new Error(`Key ${u} not found in enum`);
607
+ return new k({
608
+ ...t,
609
+ checks: [],
610
+ ...h(i),
611
+ entries: a
612
+ });
613
+ };
614
+ });
615
+ function Zn(e, t) {
616
+ const r = Array.isArray(e) ? Object.fromEntries(e.map((n) => [n, n])) : e;
617
+ return new k({
618
+ type: "enum",
619
+ entries: r,
620
+ ...h(t)
621
+ });
622
+ }
623
+ const _n = /* @__PURE__ */ o("ZodTransform", (e, t) => {
624
+ _(), Vt.init(e, t), c.init(e, t), e._zod.processJSONSchema = (r, n, i) => se(e, r, n, i), e._zod.parse = (r, n) => {
625
+ if (n.direction === "backward")
626
+ throw new Tt(e.constructor.name);
627
+ r.addIssue = (a) => {
628
+ if (typeof a == "string")
629
+ r.issues.push(N(a, r.value, t));
630
+ else {
631
+ const u = a;
632
+ u.fatal && (u.continue = !1), u.code ?? (u.code = "custom"), "input" in u || (u.input = r.value), u.inst ?? (u.inst = e), r.issues.push(N(u));
633
+ }
634
+ };
635
+ const i = t.transform(r.value, r);
636
+ return i instanceof Promise ? i.then((a) => (r.value = a, r)) : (r.value = i, r);
637
+ };
638
+ });
639
+ function fn(e) {
640
+ return new _n({
641
+ type: "transform",
642
+ transform: e
643
+ });
644
+ }
645
+ const B = /* @__PURE__ */ o("ZodOptional", (e, t) => {
646
+ Jt.init(e, t), c.init(e, t), e._zod.processJSONSchema = (r, n, i) => E(e, r, n, i), e.unwrap = () => e._zod.def.innerType;
647
+ });
648
+ function P(e) {
649
+ return new B({
650
+ type: "optional",
651
+ innerType: e
652
+ });
653
+ }
654
+ const M = /* @__PURE__ */ o("ZodExactOptional", (e, t) => {
655
+ At.init(e, t), c.init(e, t), e._zod.processJSONSchema = (r, n, i) => E(e, r, n, i), e.unwrap = () => e._zod.def.innerType;
656
+ });
657
+ function yn(e) {
658
+ return new M({
659
+ type: "optional",
660
+ innerType: e
661
+ });
662
+ }
663
+ const kn = /* @__PURE__ */ o("ZodNullable", (e, t) => {
664
+ qt.init(e, t), c.init(e, t), e._zod.processJSONSchema = (r, n, i) => ae(e, r, n, i), e.unwrap = () => e._zod.def.innerType;
665
+ });
666
+ function T(e) {
667
+ return new kn({
668
+ type: "nullable",
669
+ innerType: e
670
+ });
671
+ }
672
+ const Sn = /* @__PURE__ */ o("ZodDefault", (e, t) => {
673
+ Yt.init(e, t), c.init(e, t), e._zod.processJSONSchema = (r, n, i) => ce(e, r, n, i), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
674
+ });
675
+ function In(e, t) {
676
+ return new Sn({
677
+ type: "default",
678
+ innerType: e,
679
+ get defaultValue() {
680
+ return typeof t == "function" ? t() : x(t);
681
+ }
682
+ });
683
+ }
684
+ const On = /* @__PURE__ */ o("ZodPrefault", (e, t) => {
685
+ Kt.init(e, t), c.init(e, t), e._zod.processJSONSchema = (r, n, i) => ie(e, r, n, i), e.unwrap = () => e._zod.def.innerType;
686
+ });
687
+ function Nn(e, t) {
688
+ return new On({
689
+ type: "prefault",
690
+ innerType: e,
691
+ get defaultValue() {
692
+ return typeof t == "function" ? t() : x(t);
693
+ }
694
+ });
695
+ }
696
+ const W = /* @__PURE__ */ o("ZodNonOptional", (e, t) => {
697
+ Ct.init(e, t), c.init(e, t), e._zod.processJSONSchema = (r, n, i) => X(e, r, n, i), e.unwrap = () => e._zod.def.innerType;
698
+ });
699
+ function wn(e, t) {
700
+ return new W({
701
+ type: "nonoptional",
702
+ innerType: e,
703
+ ...h(t)
704
+ });
705
+ }
706
+ const gn = /* @__PURE__ */ o("ZodCatch", (e, t) => {
707
+ Gt.init(e, t), c.init(e, t), e._zod.processJSONSchema = (r, n, i) => oe(e, r, n, i), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
708
+ });
709
+ function vn(e, t) {
710
+ return new gn({
711
+ type: "catch",
712
+ innerType: e,
713
+ catchValue: typeof t == "function" ? t : Je(t)
714
+ });
715
+ }
716
+ const Dn = /* @__PURE__ */ o("ZodPipe", (e, t) => {
717
+ Wt.init(e, t), c.init(e, t), e._zod.processJSONSchema = (r, n, i) => ne(e, r, n, i), e.in = t.in, e.out = t.out;
718
+ });
719
+ function b(e, t) {
720
+ return new Dn({
721
+ type: "pipe",
722
+ in: e,
723
+ out: t
724
+ // ...util.normalizeParams(params),
725
+ });
726
+ }
727
+ const zn = /* @__PURE__ */ o("ZodReadonly", (e, t) => {
728
+ Mt.init(e, t), c.init(e, t), e._zod.processJSONSchema = (r, n, i) => re(e, r, n, i), e.unwrap = () => e._zod.def.innerType;
729
+ });
730
+ function $n(e) {
731
+ return new zn({
732
+ type: "readonly",
733
+ innerType: e
734
+ });
735
+ }
736
+ const Pn = /* @__PURE__ */ o("ZodCustom", (e, t) => {
737
+ Nr.init(e, t), c.init(e, t), e._zod.processJSONSchema = (r, n, i) => he(e, r, n, i);
738
+ });
739
+ function Tn(e, t = {}) {
740
+ return _t(Pn, e, t);
741
+ }
742
+ function bn(e, t) {
743
+ return Zt(e, t);
744
+ }
745
+ export {
746
+ nn as ZodAny,
747
+ un as ZodArray,
748
+ qr as ZodBase64,
749
+ Hr as ZodBase64URL,
750
+ rn as ZodBoolean,
751
+ Vr as ZodCIDRv4,
752
+ Xr as ZodCIDRv6,
753
+ Fr as ZodCUID,
754
+ Br as ZodCUID2,
755
+ gn as ZodCatch,
756
+ Pn as ZodCustom,
757
+ Sn as ZodDefault,
758
+ Qr as ZodE164,
759
+ Ar as ZodEmail,
760
+ jr as ZodEmoji,
761
+ k as ZodEnum,
762
+ M as ZodExactOptional,
763
+ Cr as ZodGUID,
764
+ Kr as ZodIPv4,
765
+ Yr as ZodIPv6,
766
+ Ur as ZodISODate,
767
+ Er as ZodISODateTime,
768
+ Jr as ZodISODuration,
769
+ xr as ZodISOTime,
770
+ ln as ZodIntersection,
771
+ en as ZodJWT,
772
+ Gr as ZodKSUID,
773
+ Lr as ZodNanoID,
774
+ cn as ZodNever,
775
+ W as ZodNonOptional,
776
+ kn as ZodNullable,
777
+ F as ZodNumber,
778
+ tn as ZodNumberFormat,
779
+ hn as ZodObject,
780
+ B as ZodOptional,
781
+ Dn as ZodPipe,
782
+ On as ZodPrefault,
783
+ zn as ZodReadonly,
784
+ $ as ZodRecord,
785
+ Tr as ZodString,
786
+ s as ZodStringFormat,
787
+ _n as ZodTransform,
788
+ c as ZodType,
789
+ Mr as ZodULID,
790
+ Rr as ZodURL,
791
+ p as ZodUUID,
792
+ dn as ZodUnion,
793
+ on as ZodUnknown,
794
+ Wr as ZodXID,
795
+ L as _ZodString,
796
+ In as _default,
797
+ Gn as any,
798
+ an as array,
799
+ Wn as boolean,
800
+ vn as catch,
801
+ Zn as enum,
802
+ yn as exactOptional,
803
+ D as int,
804
+ pn as intersection,
805
+ sn as never,
806
+ wn as nonoptional,
807
+ T as nullable,
808
+ Mn as number,
809
+ Kn as object,
810
+ P as optional,
811
+ b as pipe,
812
+ Nn as prefault,
813
+ $n as readonly,
814
+ Yn as record,
815
+ Tn as refine,
816
+ br as string,
817
+ bn as superRefine,
818
+ fn as transform,
819
+ mn as union,
820
+ z as unknown
821
+ };
822
+ //# sourceMappingURL=schemas.js.map