tempest.games 0.2.78 → 0.2.80
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/CHANGELOG.md +15 -0
- package/bin/backend.bun.js +12 -11
- package/bin/backend.worker.tribunal.bun.js +555 -433
- package/bin/frontend.bun.js +1 -1
- package/bin/setup-db.bun.js +1 -1
- package/package.json +6 -6
|
@@ -3449,7 +3449,7 @@ var selfListSelectors = selectorFamily({
|
|
|
3449
3449
|
});
|
|
3450
3450
|
var ROOMS = globalThis.ATOM_IO_REALTIME_SERVER_ROOMS ?? (globalThis.ATOM_IO_REALTIME_SERVER_ROOMS = /* @__PURE__ */ new Map);
|
|
3451
3451
|
|
|
3452
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
3452
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/external.js
|
|
3453
3453
|
var exports_external = {};
|
|
3454
3454
|
__export(exports_external, {
|
|
3455
3455
|
xid: () => xid2,
|
|
@@ -3483,6 +3483,7 @@ __export(exports_external, {
|
|
|
3483
3483
|
string: () => string2,
|
|
3484
3484
|
strictObject: () => strictObject,
|
|
3485
3485
|
startsWith: () => _startsWith,
|
|
3486
|
+
slugify: () => _slugify,
|
|
3486
3487
|
size: () => _size,
|
|
3487
3488
|
setErrorMap: () => setErrorMap,
|
|
3488
3489
|
set: () => set,
|
|
@@ -3528,9 +3529,11 @@ __export(exports_external, {
|
|
|
3528
3529
|
minSize: () => _minSize,
|
|
3529
3530
|
minLength: () => _minLength,
|
|
3530
3531
|
mime: () => _mime,
|
|
3532
|
+
meta: () => meta2,
|
|
3531
3533
|
maxSize: () => _maxSize,
|
|
3532
3534
|
maxLength: () => _maxLength,
|
|
3533
3535
|
map: () => map,
|
|
3536
|
+
mac: () => mac2,
|
|
3534
3537
|
lte: () => _lte,
|
|
3535
3538
|
lt: () => _lt,
|
|
3536
3539
|
lowercase: () => _lowercase,
|
|
@@ -3575,6 +3578,7 @@ __export(exports_external, {
|
|
|
3575
3578
|
email: () => email2,
|
|
3576
3579
|
e164: () => e1642,
|
|
3577
3580
|
discriminatedUnion: () => discriminatedUnion,
|
|
3581
|
+
describe: () => describe2,
|
|
3578
3582
|
decodeAsync: () => decodeAsync2,
|
|
3579
3583
|
decode: () => decode2,
|
|
3580
3584
|
date: () => date3,
|
|
@@ -3633,6 +3637,7 @@ __export(exports_external, {
|
|
|
3633
3637
|
ZodNanoID: () => ZodNanoID,
|
|
3634
3638
|
ZodNaN: () => ZodNaN,
|
|
3635
3639
|
ZodMap: () => ZodMap,
|
|
3640
|
+
ZodMAC: () => ZodMAC,
|
|
3636
3641
|
ZodLiteral: () => ZodLiteral,
|
|
3637
3642
|
ZodLazy: () => ZodLazy,
|
|
3638
3643
|
ZodKSUID: () => ZodKSUID,
|
|
@@ -3679,7 +3684,7 @@ __export(exports_external, {
|
|
|
3679
3684
|
$brand: () => $brand
|
|
3680
3685
|
});
|
|
3681
3686
|
|
|
3682
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
3687
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/index.js
|
|
3683
3688
|
var exports_core2 = {};
|
|
3684
3689
|
__export(exports_core2, {
|
|
3685
3690
|
version: () => version,
|
|
@@ -3698,6 +3703,7 @@ __export(exports_core2, {
|
|
|
3698
3703
|
prettifyError: () => prettifyError,
|
|
3699
3704
|
parseAsync: () => parseAsync,
|
|
3700
3705
|
parse: () => parse,
|
|
3706
|
+
meta: () => meta,
|
|
3701
3707
|
locales: () => exports_locales,
|
|
3702
3708
|
isValidJWT: () => isValidJWT,
|
|
3703
3709
|
isValidBase64URL: () => isValidBase64URL,
|
|
@@ -3708,6 +3714,7 @@ __export(exports_core2, {
|
|
|
3708
3714
|
flattenError: () => flattenError,
|
|
3709
3715
|
encodeAsync: () => encodeAsync,
|
|
3710
3716
|
encode: () => encode,
|
|
3717
|
+
describe: () => describe,
|
|
3711
3718
|
decodeAsync: () => decodeAsync,
|
|
3712
3719
|
decode: () => decode,
|
|
3713
3720
|
config: () => config,
|
|
@@ -3739,6 +3746,7 @@ __export(exports_core2, {
|
|
|
3739
3746
|
_stringFormat: () => _stringFormat,
|
|
3740
3747
|
_string: () => _string,
|
|
3741
3748
|
_startsWith: () => _startsWith,
|
|
3749
|
+
_slugify: () => _slugify,
|
|
3742
3750
|
_size: () => _size,
|
|
3743
3751
|
_set: () => _set,
|
|
3744
3752
|
_safeParseAsync: () => _safeParseAsync,
|
|
@@ -3780,6 +3788,7 @@ __export(exports_core2, {
|
|
|
3780
3788
|
_maxLength: () => _maxLength,
|
|
3781
3789
|
_max: () => _lte,
|
|
3782
3790
|
_map: () => _map,
|
|
3791
|
+
_mac: () => _mac,
|
|
3783
3792
|
_lte: () => _lte,
|
|
3784
3793
|
_lt: () => _lt,
|
|
3785
3794
|
_lowercase: () => _lowercase,
|
|
@@ -3880,6 +3889,7 @@ __export(exports_core2, {
|
|
|
3880
3889
|
$ZodNanoID: () => $ZodNanoID,
|
|
3881
3890
|
$ZodNaN: () => $ZodNaN,
|
|
3882
3891
|
$ZodMap: () => $ZodMap,
|
|
3892
|
+
$ZodMAC: () => $ZodMAC,
|
|
3883
3893
|
$ZodLiteral: () => $ZodLiteral,
|
|
3884
3894
|
$ZodLazy: () => $ZodLazy,
|
|
3885
3895
|
$ZodKSUID: () => $ZodKSUID,
|
|
@@ -3943,26 +3953,35 @@ __export(exports_core2, {
|
|
|
3943
3953
|
$ZodAny: () => $ZodAny
|
|
3944
3954
|
});
|
|
3945
3955
|
|
|
3946
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
3956
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/core.js
|
|
3947
3957
|
var NEVER = Object.freeze({
|
|
3948
3958
|
status: "aborted"
|
|
3949
3959
|
});
|
|
3950
3960
|
function $constructor(name, initializer, params) {
|
|
3951
3961
|
function init(inst, def) {
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3962
|
+
if (!inst._zod) {
|
|
3963
|
+
Object.defineProperty(inst, "_zod", {
|
|
3964
|
+
value: {
|
|
3965
|
+
def,
|
|
3966
|
+
constr: _,
|
|
3967
|
+
traits: new Set
|
|
3968
|
+
},
|
|
3969
|
+
enumerable: false
|
|
3970
|
+
});
|
|
3971
|
+
}
|
|
3972
|
+
if (inst._zod.traits.has(name)) {
|
|
3973
|
+
return;
|
|
3974
|
+
}
|
|
3958
3975
|
inst._zod.traits.add(name);
|
|
3959
3976
|
initializer(inst, def);
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3977
|
+
const proto = _.prototype;
|
|
3978
|
+
const keys = Object.keys(proto);
|
|
3979
|
+
for (let i = 0;i < keys.length; i++) {
|
|
3980
|
+
const k = keys[i];
|
|
3981
|
+
if (!(k in inst)) {
|
|
3982
|
+
inst[k] = proto[k].bind(inst);
|
|
3983
|
+
}
|
|
3963
3984
|
}
|
|
3964
|
-
inst._zod.constr = _;
|
|
3965
|
-
inst._zod.def = def;
|
|
3966
3985
|
}
|
|
3967
3986
|
const Parent = params?.Parent ?? Object;
|
|
3968
3987
|
|
|
@@ -4010,7 +4029,7 @@ function config(newConfig) {
|
|
|
4010
4029
|
Object.assign(globalConfig, newConfig);
|
|
4011
4030
|
return globalConfig;
|
|
4012
4031
|
}
|
|
4013
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
4032
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/util.js
|
|
4014
4033
|
var exports_util = {};
|
|
4015
4034
|
__export(exports_util, {
|
|
4016
4035
|
unwrapMessage: () => unwrapMessage,
|
|
@@ -4018,6 +4037,7 @@ __export(exports_util, {
|
|
|
4018
4037
|
uint8ArrayToBase64url: () => uint8ArrayToBase64url,
|
|
4019
4038
|
uint8ArrayToBase64: () => uint8ArrayToBase64,
|
|
4020
4039
|
stringifyPrimitive: () => stringifyPrimitive,
|
|
4040
|
+
slugify: () => slugify,
|
|
4021
4041
|
shallowClone: () => shallowClone,
|
|
4022
4042
|
safeExtend: () => safeExtend,
|
|
4023
4043
|
required: () => required,
|
|
@@ -4205,6 +4225,9 @@ function randomString(length = 10) {
|
|
|
4205
4225
|
function esc(str) {
|
|
4206
4226
|
return JSON.stringify(str);
|
|
4207
4227
|
}
|
|
4228
|
+
function slugify(input) {
|
|
4229
|
+
return input.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
4230
|
+
}
|
|
4208
4231
|
var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {};
|
|
4209
4232
|
function isObject(data) {
|
|
4210
4233
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
@@ -4227,6 +4250,8 @@ function isPlainObject(o) {
|
|
|
4227
4250
|
const ctor = o.constructor;
|
|
4228
4251
|
if (ctor === undefined)
|
|
4229
4252
|
return true;
|
|
4253
|
+
if (typeof ctor !== "function")
|
|
4254
|
+
return true;
|
|
4230
4255
|
const prot = ctor.prototype;
|
|
4231
4256
|
if (isObject(prot) === false)
|
|
4232
4257
|
return false;
|
|
@@ -4639,7 +4664,7 @@ class Class {
|
|
|
4639
4664
|
constructor(..._args) {}
|
|
4640
4665
|
}
|
|
4641
4666
|
|
|
4642
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
4667
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/errors.js
|
|
4643
4668
|
var initializer = (inst, def) => {
|
|
4644
4669
|
inst.name = "$ZodError";
|
|
4645
4670
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -4776,7 +4801,7 @@ function prettifyError(error) {
|
|
|
4776
4801
|
`);
|
|
4777
4802
|
}
|
|
4778
4803
|
|
|
4779
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
4804
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/parse.js
|
|
4780
4805
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
4781
4806
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
4782
4807
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -4863,7 +4888,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
4863
4888
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
4864
4889
|
};
|
|
4865
4890
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
4866
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
4891
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/regexes.js
|
|
4867
4892
|
var exports_regexes = {};
|
|
4868
4893
|
__export(exports_regexes, {
|
|
4869
4894
|
xid: () => xid,
|
|
@@ -4896,6 +4921,7 @@ __export(exports_regexes, {
|
|
|
4896
4921
|
md5_hex: () => md5_hex,
|
|
4897
4922
|
md5_base64url: () => md5_base64url,
|
|
4898
4923
|
md5_base64: () => md5_base64,
|
|
4924
|
+
mac: () => mac,
|
|
4899
4925
|
lowercase: () => lowercase,
|
|
4900
4926
|
ksuid: () => ksuid,
|
|
4901
4927
|
ipv6: () => ipv6,
|
|
@@ -4953,6 +4979,10 @@ function emoji() {
|
|
|
4953
4979
|
}
|
|
4954
4980
|
var ipv4 = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;
|
|
4955
4981
|
var ipv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/;
|
|
4982
|
+
var mac = (delimiter) => {
|
|
4983
|
+
const escapedDelim = escapeRegex(delimiter ?? ":");
|
|
4984
|
+
return new RegExp(`^(?:[0-9A-F]{2}${escapedDelim}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${escapedDelim}){5}[0-9a-f]{2}$`);
|
|
4985
|
+
};
|
|
4956
4986
|
var cidrv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/;
|
|
4957
4987
|
var cidrv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
|
|
4958
4988
|
var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;
|
|
@@ -5015,7 +5045,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
|
|
5015
5045
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
5016
5046
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
5017
5047
|
|
|
5018
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
5048
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/checks.js
|
|
5019
5049
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
5020
5050
|
var _a;
|
|
5021
5051
|
inst._zod ?? (inst._zod = {});
|
|
@@ -5556,7 +5586,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
5556
5586
|
};
|
|
5557
5587
|
});
|
|
5558
5588
|
|
|
5559
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
5589
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/doc.js
|
|
5560
5590
|
class Doc {
|
|
5561
5591
|
constructor(args = []) {
|
|
5562
5592
|
this.content = [];
|
|
@@ -5594,14 +5624,14 @@ class Doc {
|
|
|
5594
5624
|
}
|
|
5595
5625
|
}
|
|
5596
5626
|
|
|
5597
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
5627
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/versions.js
|
|
5598
5628
|
var version = {
|
|
5599
5629
|
major: 4,
|
|
5600
5630
|
minor: 1,
|
|
5601
|
-
patch:
|
|
5631
|
+
patch: 13
|
|
5602
5632
|
};
|
|
5603
5633
|
|
|
5604
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
5634
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/schemas.js
|
|
5605
5635
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
5606
5636
|
var _a;
|
|
5607
5637
|
inst ?? (inst = {});
|
|
@@ -5775,7 +5805,7 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
5775
5805
|
code: "invalid_format",
|
|
5776
5806
|
format: "url",
|
|
5777
5807
|
note: "Invalid hostname",
|
|
5778
|
-
pattern: hostname.source,
|
|
5808
|
+
pattern: def.hostname.source,
|
|
5779
5809
|
input: payload.value,
|
|
5780
5810
|
inst,
|
|
5781
5811
|
continue: !def.abort
|
|
@@ -5860,18 +5890,12 @@ var $ZodISODuration = /* @__PURE__ */ $constructor("$ZodISODuration", (inst, def
|
|
|
5860
5890
|
var $ZodIPv4 = /* @__PURE__ */ $constructor("$ZodIPv4", (inst, def) => {
|
|
5861
5891
|
def.pattern ?? (def.pattern = ipv4);
|
|
5862
5892
|
$ZodStringFormat.init(inst, def);
|
|
5863
|
-
inst._zod.
|
|
5864
|
-
const bag = inst2._zod.bag;
|
|
5865
|
-
bag.format = `ipv4`;
|
|
5866
|
-
});
|
|
5893
|
+
inst._zod.bag.format = `ipv4`;
|
|
5867
5894
|
});
|
|
5868
5895
|
var $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {
|
|
5869
5896
|
def.pattern ?? (def.pattern = ipv6);
|
|
5870
5897
|
$ZodStringFormat.init(inst, def);
|
|
5871
|
-
inst._zod.
|
|
5872
|
-
const bag = inst2._zod.bag;
|
|
5873
|
-
bag.format = `ipv6`;
|
|
5874
|
-
});
|
|
5898
|
+
inst._zod.bag.format = `ipv6`;
|
|
5875
5899
|
inst._zod.check = (payload) => {
|
|
5876
5900
|
try {
|
|
5877
5901
|
new URL(`http://[${payload.value}]`);
|
|
@@ -5886,6 +5910,11 @@ var $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {
|
|
|
5886
5910
|
}
|
|
5887
5911
|
};
|
|
5888
5912
|
});
|
|
5913
|
+
var $ZodMAC = /* @__PURE__ */ $constructor("$ZodMAC", (inst, def) => {
|
|
5914
|
+
def.pattern ?? (def.pattern = mac(def.delimiter));
|
|
5915
|
+
$ZodStringFormat.init(inst, def);
|
|
5916
|
+
inst._zod.bag.format = `mac`;
|
|
5917
|
+
});
|
|
5889
5918
|
var $ZodCIDRv4 = /* @__PURE__ */ $constructor("$ZodCIDRv4", (inst, def) => {
|
|
5890
5919
|
def.pattern ?? (def.pattern = cidrv4);
|
|
5891
5920
|
$ZodStringFormat.init(inst, def);
|
|
@@ -5933,9 +5962,7 @@ function isValidBase64(data) {
|
|
|
5933
5962
|
var $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
|
|
5934
5963
|
def.pattern ?? (def.pattern = base64);
|
|
5935
5964
|
$ZodStringFormat.init(inst, def);
|
|
5936
|
-
inst._zod.
|
|
5937
|
-
inst2._zod.bag.contentEncoding = "base64";
|
|
5938
|
-
});
|
|
5965
|
+
inst._zod.bag.contentEncoding = "base64";
|
|
5939
5966
|
inst._zod.check = (payload) => {
|
|
5940
5967
|
if (isValidBase64(payload.value))
|
|
5941
5968
|
return;
|
|
@@ -5958,9 +5985,7 @@ function isValidBase64URL(data) {
|
|
|
5958
5985
|
var $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def) => {
|
|
5959
5986
|
def.pattern ?? (def.pattern = base64url);
|
|
5960
5987
|
$ZodStringFormat.init(inst, def);
|
|
5961
|
-
inst._zod.
|
|
5962
|
-
inst2._zod.bag.contentEncoding = "base64url";
|
|
5963
|
-
});
|
|
5988
|
+
inst._zod.bag.contentEncoding = "base64url";
|
|
5964
5989
|
inst._zod.check = (payload) => {
|
|
5965
5990
|
if (isValidBase64URL(payload.value))
|
|
5966
5991
|
return;
|
|
@@ -6048,7 +6073,7 @@ var $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
|
|
|
6048
6073
|
return payload;
|
|
6049
6074
|
};
|
|
6050
6075
|
});
|
|
6051
|
-
var $ZodNumberFormat = /* @__PURE__ */ $constructor("$
|
|
6076
|
+
var $ZodNumberFormat = /* @__PURE__ */ $constructor("$ZodNumberFormat", (inst, def) => {
|
|
6052
6077
|
$ZodCheckNumberFormat.init(inst, def);
|
|
6053
6078
|
$ZodNumber.init(inst, def);
|
|
6054
6079
|
});
|
|
@@ -6091,7 +6116,7 @@ var $ZodBigInt = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def) => {
|
|
|
6091
6116
|
return payload;
|
|
6092
6117
|
};
|
|
6093
6118
|
});
|
|
6094
|
-
var $ZodBigIntFormat = /* @__PURE__ */ $constructor("$
|
|
6119
|
+
var $ZodBigIntFormat = /* @__PURE__ */ $constructor("$ZodBigIntFormat", (inst, def) => {
|
|
6095
6120
|
$ZodCheckBigIntFormat.init(inst, def);
|
|
6096
6121
|
$ZodBigInt.init(inst, def);
|
|
6097
6122
|
});
|
|
@@ -6276,7 +6301,7 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
6276
6301
|
const keySet = def.keySet;
|
|
6277
6302
|
const _catchall = def.catchall._zod;
|
|
6278
6303
|
const t = _catchall.def.type;
|
|
6279
|
-
for (const key
|
|
6304
|
+
for (const key in input) {
|
|
6280
6305
|
if (keySet.has(key))
|
|
6281
6306
|
continue;
|
|
6282
6307
|
if (t === "never") {
|
|
@@ -6651,7 +6676,6 @@ function handleIntersectionResults(result, left, right) {
|
|
|
6651
6676
|
var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
|
|
6652
6677
|
$ZodType.init(inst, def);
|
|
6653
6678
|
const items = def.items;
|
|
6654
|
-
const optStart = items.length - [...items].reverse().findIndex((item) => item._zod.optin !== "optional");
|
|
6655
6679
|
inst._zod.parse = (payload, ctx) => {
|
|
6656
6680
|
const input = payload.value;
|
|
6657
6681
|
if (!Array.isArray(input)) {
|
|
@@ -6665,6 +6689,8 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
|
|
|
6665
6689
|
}
|
|
6666
6690
|
payload.value = [];
|
|
6667
6691
|
const proms = [];
|
|
6692
|
+
const reversedIndex = [...items].reverse().findIndex((item) => item._zod.optin !== "optional");
|
|
6693
|
+
const optStart = reversedIndex === -1 ? 0 : items.length - reversedIndex;
|
|
6668
6694
|
if (!def.rest) {
|
|
6669
6695
|
const tooBig = input.length > items.length;
|
|
6670
6696
|
const tooSmall = input.length < optStart - 1;
|
|
@@ -6735,11 +6761,13 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
6735
6761
|
return payload;
|
|
6736
6762
|
}
|
|
6737
6763
|
const proms = [];
|
|
6738
|
-
|
|
6739
|
-
|
|
6764
|
+
const values = def.keyType._zod.values;
|
|
6765
|
+
if (values) {
|
|
6740
6766
|
payload.value = {};
|
|
6767
|
+
const recordKeys = new Set;
|
|
6741
6768
|
for (const key of values) {
|
|
6742
6769
|
if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
|
|
6770
|
+
recordKeys.add(typeof key === "number" ? key.toString() : key);
|
|
6743
6771
|
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
6744
6772
|
if (result instanceof Promise) {
|
|
6745
6773
|
proms.push(result.then((result2) => {
|
|
@@ -6758,7 +6786,7 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
6758
6786
|
}
|
|
6759
6787
|
let unrecognized;
|
|
6760
6788
|
for (const key in input) {
|
|
6761
|
-
if (!
|
|
6789
|
+
if (!recordKeys.has(key)) {
|
|
6762
6790
|
unrecognized = unrecognized ?? [];
|
|
6763
6791
|
unrecognized.push(key);
|
|
6764
6792
|
}
|
|
@@ -6933,11 +6961,12 @@ var $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
|
|
|
6933
6961
|
if (def.values.length === 0) {
|
|
6934
6962
|
throw new Error("Cannot create literal schema with no valid values");
|
|
6935
6963
|
}
|
|
6936
|
-
|
|
6964
|
+
const values = new Set(def.values);
|
|
6965
|
+
inst._zod.values = values;
|
|
6937
6966
|
inst._zod.pattern = new RegExp(`^(${def.values.map((o) => typeof o === "string" ? escapeRegex(o) : o ? escapeRegex(o.toString()) : String(o)).join("|")})$`);
|
|
6938
6967
|
inst._zod.parse = (payload, _ctx) => {
|
|
6939
6968
|
const input = payload.value;
|
|
6940
|
-
if (
|
|
6969
|
+
if (values.has(input)) {
|
|
6941
6970
|
return payload;
|
|
6942
6971
|
}
|
|
6943
6972
|
payload.issues.push({
|
|
@@ -7250,8 +7279,8 @@ var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
|
7250
7279
|
$ZodType.init(inst, def);
|
|
7251
7280
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
7252
7281
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
7253
|
-
defineLazy(inst._zod, "optin", () => def.innerType
|
|
7254
|
-
defineLazy(inst._zod, "optout", () => def.innerType
|
|
7282
|
+
defineLazy(inst._zod, "optin", () => def.innerType?._zod?.optin);
|
|
7283
|
+
defineLazy(inst._zod, "optout", () => def.innerType?._zod?.optout);
|
|
7255
7284
|
inst._zod.parse = (payload, ctx) => {
|
|
7256
7285
|
if (ctx.direction === "backward") {
|
|
7257
7286
|
return def.innerType._zod.run(payload, ctx);
|
|
@@ -7398,10 +7427,10 @@ var $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => {
|
|
|
7398
7427
|
var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
|
|
7399
7428
|
$ZodType.init(inst, def);
|
|
7400
7429
|
defineLazy(inst._zod, "innerType", () => def.getter());
|
|
7401
|
-
defineLazy(inst._zod, "pattern", () => inst._zod.innerType
|
|
7402
|
-
defineLazy(inst._zod, "propValues", () => inst._zod.innerType
|
|
7403
|
-
defineLazy(inst._zod, "optin", () => inst._zod.innerType
|
|
7404
|
-
defineLazy(inst._zod, "optout", () => inst._zod.innerType
|
|
7430
|
+
defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
|
|
7431
|
+
defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
|
|
7432
|
+
defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? undefined);
|
|
7433
|
+
defineLazy(inst._zod, "optout", () => inst._zod.innerType?._zod?.optout ?? undefined);
|
|
7405
7434
|
inst._zod.parse = (payload, ctx) => {
|
|
7406
7435
|
const inner = inst._zod.innerType;
|
|
7407
7436
|
return inner._zod.run(payload, ctx);
|
|
@@ -7437,7 +7466,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
7437
7466
|
payload.issues.push(issue(_iss));
|
|
7438
7467
|
}
|
|
7439
7468
|
}
|
|
7440
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
7469
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/index.js
|
|
7441
7470
|
var exports_locales = {};
|
|
7442
7471
|
__export(exports_locales, {
|
|
7443
7472
|
zhTW: () => zh_TW_default,
|
|
@@ -7489,7 +7518,7 @@ __export(exports_locales, {
|
|
|
7489
7518
|
ar: () => ar_default
|
|
7490
7519
|
});
|
|
7491
7520
|
|
|
7492
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
7521
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ar.js
|
|
7493
7522
|
var error = () => {
|
|
7494
7523
|
const Sizable = {
|
|
7495
7524
|
string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
|
|
@@ -7605,7 +7634,7 @@ function ar_default() {
|
|
|
7605
7634
|
localeError: error()
|
|
7606
7635
|
};
|
|
7607
7636
|
}
|
|
7608
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
7637
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/az.js
|
|
7609
7638
|
var error2 = () => {
|
|
7610
7639
|
const Sizable = {
|
|
7611
7640
|
string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
|
|
@@ -7720,7 +7749,7 @@ function az_default() {
|
|
|
7720
7749
|
localeError: error2()
|
|
7721
7750
|
};
|
|
7722
7751
|
}
|
|
7723
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
7752
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/be.js
|
|
7724
7753
|
function getBelarusianPlural(count, one, few, many) {
|
|
7725
7754
|
const absCount = Math.abs(count);
|
|
7726
7755
|
const lastDigit = absCount % 10;
|
|
@@ -7884,7 +7913,7 @@ function be_default() {
|
|
|
7884
7913
|
localeError: error3()
|
|
7885
7914
|
};
|
|
7886
7915
|
}
|
|
7887
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
7916
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/bg.js
|
|
7888
7917
|
var parsedType = (data) => {
|
|
7889
7918
|
const t = typeof data;
|
|
7890
7919
|
switch (t) {
|
|
@@ -8012,7 +8041,7 @@ function bg_default() {
|
|
|
8012
8041
|
localeError: error4()
|
|
8013
8042
|
};
|
|
8014
8043
|
}
|
|
8015
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
8044
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ca.js
|
|
8016
8045
|
var error5 = () => {
|
|
8017
8046
|
const Sizable = {
|
|
8018
8047
|
string: { unit: "car\xE0cters", verb: "contenir" },
|
|
@@ -8129,7 +8158,7 @@ function ca_default() {
|
|
|
8129
8158
|
localeError: error5()
|
|
8130
8159
|
};
|
|
8131
8160
|
}
|
|
8132
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
8161
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/cs.js
|
|
8133
8162
|
var error6 = () => {
|
|
8134
8163
|
const Sizable = {
|
|
8135
8164
|
string: { unit: "znak\u016F", verb: "m\xEDt" },
|
|
@@ -8264,7 +8293,7 @@ function cs_default() {
|
|
|
8264
8293
|
localeError: error6()
|
|
8265
8294
|
};
|
|
8266
8295
|
}
|
|
8267
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
8296
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/da.js
|
|
8268
8297
|
var error7 = () => {
|
|
8269
8298
|
const Sizable = {
|
|
8270
8299
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -8395,7 +8424,7 @@ function da_default() {
|
|
|
8395
8424
|
localeError: error7()
|
|
8396
8425
|
};
|
|
8397
8426
|
}
|
|
8398
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
8427
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/de.js
|
|
8399
8428
|
var error8 = () => {
|
|
8400
8429
|
const Sizable = {
|
|
8401
8430
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -8511,7 +8540,7 @@ function de_default() {
|
|
|
8511
8540
|
localeError: error8()
|
|
8512
8541
|
};
|
|
8513
8542
|
}
|
|
8514
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
8543
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/en.js
|
|
8515
8544
|
var parsedType2 = (data) => {
|
|
8516
8545
|
const t = typeof data;
|
|
8517
8546
|
switch (t) {
|
|
@@ -8563,6 +8592,7 @@ var error9 = () => {
|
|
|
8563
8592
|
duration: "ISO duration",
|
|
8564
8593
|
ipv4: "IPv4 address",
|
|
8565
8594
|
ipv6: "IPv6 address",
|
|
8595
|
+
mac: "MAC address",
|
|
8566
8596
|
cidrv4: "IPv4 range",
|
|
8567
8597
|
cidrv6: "IPv6 range",
|
|
8568
8598
|
base64: "base64-encoded string",
|
|
@@ -8628,7 +8658,7 @@ function en_default() {
|
|
|
8628
8658
|
localeError: error9()
|
|
8629
8659
|
};
|
|
8630
8660
|
}
|
|
8631
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
8661
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/eo.js
|
|
8632
8662
|
var parsedType3 = (data) => {
|
|
8633
8663
|
const t = typeof data;
|
|
8634
8664
|
switch (t) {
|
|
@@ -8744,7 +8774,7 @@ function eo_default() {
|
|
|
8744
8774
|
localeError: error10()
|
|
8745
8775
|
};
|
|
8746
8776
|
}
|
|
8747
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
8777
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/es.js
|
|
8748
8778
|
var error11 = () => {
|
|
8749
8779
|
const Sizable = {
|
|
8750
8780
|
string: { unit: "caracteres", verb: "tener" },
|
|
@@ -8892,7 +8922,7 @@ function es_default() {
|
|
|
8892
8922
|
localeError: error11()
|
|
8893
8923
|
};
|
|
8894
8924
|
}
|
|
8895
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
8925
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/fa.js
|
|
8896
8926
|
var error12 = () => {
|
|
8897
8927
|
const Sizable = {
|
|
8898
8928
|
string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
@@ -9014,7 +9044,7 @@ function fa_default() {
|
|
|
9014
9044
|
localeError: error12()
|
|
9015
9045
|
};
|
|
9016
9046
|
}
|
|
9017
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9047
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/fi.js
|
|
9018
9048
|
var error13 = () => {
|
|
9019
9049
|
const Sizable = {
|
|
9020
9050
|
string: { unit: "merkki\xE4", subject: "merkkijonon" },
|
|
@@ -9136,7 +9166,7 @@ function fi_default() {
|
|
|
9136
9166
|
localeError: error13()
|
|
9137
9167
|
};
|
|
9138
9168
|
}
|
|
9139
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9169
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/fr.js
|
|
9140
9170
|
var error14 = () => {
|
|
9141
9171
|
const Sizable = {
|
|
9142
9172
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -9252,7 +9282,7 @@ function fr_default() {
|
|
|
9252
9282
|
localeError: error14()
|
|
9253
9283
|
};
|
|
9254
9284
|
}
|
|
9255
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9285
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/fr-CA.js
|
|
9256
9286
|
var error15 = () => {
|
|
9257
9287
|
const Sizable = {
|
|
9258
9288
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -9369,112 +9399,202 @@ function fr_CA_default() {
|
|
|
9369
9399
|
localeError: error15()
|
|
9370
9400
|
};
|
|
9371
9401
|
}
|
|
9372
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9402
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/he.js
|
|
9373
9403
|
var error16 = () => {
|
|
9404
|
+
const TypeNames = {
|
|
9405
|
+
string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
|
|
9406
|
+
number: { label: "\u05DE\u05E1\u05E4\u05E8", gender: "m" },
|
|
9407
|
+
boolean: { label: "\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9", gender: "m" },
|
|
9408
|
+
bigint: { label: "BigInt", gender: "m" },
|
|
9409
|
+
date: { label: "\u05EA\u05D0\u05E8\u05D9\u05DA", gender: "m" },
|
|
9410
|
+
array: { label: "\u05DE\u05E2\u05E8\u05DA", gender: "m" },
|
|
9411
|
+
object: { label: "\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8", gender: "m" },
|
|
9412
|
+
null: { label: "\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)", gender: "m" },
|
|
9413
|
+
undefined: { label: "\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)", gender: "m" },
|
|
9414
|
+
symbol: { label: "\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)", gender: "m" },
|
|
9415
|
+
function: { label: "\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4", gender: "f" },
|
|
9416
|
+
map: { label: "\u05DE\u05E4\u05D4 (Map)", gender: "f" },
|
|
9417
|
+
set: { label: "\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)", gender: "f" },
|
|
9418
|
+
file: { label: "\u05E7\u05D5\u05D1\u05E5", gender: "m" },
|
|
9419
|
+
promise: { label: "Promise", gender: "m" },
|
|
9420
|
+
NaN: { label: "NaN", gender: "m" },
|
|
9421
|
+
unknown: { label: "\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2", gender: "m" },
|
|
9422
|
+
value: { label: "\u05E2\u05E8\u05DA", gender: "m" }
|
|
9423
|
+
};
|
|
9374
9424
|
const Sizable = {
|
|
9375
|
-
string: { unit: "\
|
|
9376
|
-
file: { unit: "\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",
|
|
9377
|
-
array: { unit: "\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",
|
|
9378
|
-
set: { unit: "\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",
|
|
9425
|
+
string: { unit: "\u05EA\u05D5\u05D5\u05D9\u05DD", shortLabel: "\u05E7\u05E6\u05E8", longLabel: "\u05D0\u05E8\u05D5\u05DA" },
|
|
9426
|
+
file: { unit: "\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" },
|
|
9427
|
+
array: { unit: "\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" },
|
|
9428
|
+
set: { unit: "\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" },
|
|
9429
|
+
number: { unit: "", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" }
|
|
9430
|
+
};
|
|
9431
|
+
const typeEntry = (t) => t ? TypeNames[t] : undefined;
|
|
9432
|
+
const typeLabel = (t) => {
|
|
9433
|
+
const e = typeEntry(t);
|
|
9434
|
+
if (e)
|
|
9435
|
+
return e.label;
|
|
9436
|
+
return t ?? TypeNames.unknown.label;
|
|
9379
9437
|
};
|
|
9380
|
-
|
|
9438
|
+
const withDefinite = (t) => `\u05D4${typeLabel(t)}`;
|
|
9439
|
+
const verbFor = (t) => {
|
|
9440
|
+
const e = typeEntry(t);
|
|
9441
|
+
const gender = e?.gender ?? "m";
|
|
9442
|
+
return gender === "f" ? "\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA" : "\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA";
|
|
9443
|
+
};
|
|
9444
|
+
const getSizing = (origin) => {
|
|
9445
|
+
if (!origin)
|
|
9446
|
+
return null;
|
|
9381
9447
|
return Sizable[origin] ?? null;
|
|
9382
|
-
}
|
|
9448
|
+
};
|
|
9383
9449
|
const parsedType4 = (data) => {
|
|
9384
9450
|
const t = typeof data;
|
|
9385
9451
|
switch (t) {
|
|
9386
|
-
case "number":
|
|
9452
|
+
case "number":
|
|
9387
9453
|
return Number.isNaN(data) ? "NaN" : "number";
|
|
9388
|
-
}
|
|
9389
9454
|
case "object": {
|
|
9390
|
-
if (Array.isArray(data))
|
|
9455
|
+
if (Array.isArray(data))
|
|
9391
9456
|
return "array";
|
|
9392
|
-
|
|
9393
|
-
if (data === null) {
|
|
9457
|
+
if (data === null)
|
|
9394
9458
|
return "null";
|
|
9395
|
-
}
|
|
9396
9459
|
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
9397
9460
|
return data.constructor.name;
|
|
9398
9461
|
}
|
|
9462
|
+
return "object";
|
|
9399
9463
|
}
|
|
9464
|
+
default:
|
|
9465
|
+
return t;
|
|
9400
9466
|
}
|
|
9401
|
-
return t;
|
|
9402
9467
|
};
|
|
9403
9468
|
const Nouns = {
|
|
9404
|
-
regex: "\u05E7\u05DC\u05D8",
|
|
9405
|
-
email: "\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",
|
|
9406
|
-
url: "\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",
|
|
9407
|
-
emoji: "\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",
|
|
9408
|
-
uuid: "UUID",
|
|
9409
|
-
|
|
9410
|
-
|
|
9411
|
-
|
|
9412
|
-
|
|
9413
|
-
|
|
9414
|
-
|
|
9415
|
-
|
|
9416
|
-
|
|
9417
|
-
|
|
9418
|
-
|
|
9419
|
-
|
|
9420
|
-
|
|
9421
|
-
|
|
9422
|
-
|
|
9423
|
-
|
|
9424
|
-
|
|
9425
|
-
|
|
9426
|
-
|
|
9427
|
-
|
|
9428
|
-
|
|
9429
|
-
|
|
9430
|
-
|
|
9431
|
-
|
|
9469
|
+
regex: { label: "\u05E7\u05DC\u05D8", gender: "m" },
|
|
9470
|
+
email: { label: "\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC", gender: "f" },
|
|
9471
|
+
url: { label: "\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA", gender: "f" },
|
|
9472
|
+
emoji: { label: "\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9", gender: "m" },
|
|
9473
|
+
uuid: { label: "UUID", gender: "m" },
|
|
9474
|
+
nanoid: { label: "nanoid", gender: "m" },
|
|
9475
|
+
guid: { label: "GUID", gender: "m" },
|
|
9476
|
+
cuid: { label: "cuid", gender: "m" },
|
|
9477
|
+
cuid2: { label: "cuid2", gender: "m" },
|
|
9478
|
+
ulid: { label: "ULID", gender: "m" },
|
|
9479
|
+
xid: { label: "XID", gender: "m" },
|
|
9480
|
+
ksuid: { label: "KSUID", gender: "m" },
|
|
9481
|
+
datetime: { label: "\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO", gender: "m" },
|
|
9482
|
+
date: { label: "\u05EA\u05D0\u05E8\u05D9\u05DA ISO", gender: "m" },
|
|
9483
|
+
time: { label: "\u05D6\u05DE\u05DF ISO", gender: "m" },
|
|
9484
|
+
duration: { label: "\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO", gender: "m" },
|
|
9485
|
+
ipv4: { label: "\u05DB\u05EA\u05D5\u05D1\u05EA IPv4", gender: "f" },
|
|
9486
|
+
ipv6: { label: "\u05DB\u05EA\u05D5\u05D1\u05EA IPv6", gender: "f" },
|
|
9487
|
+
cidrv4: { label: "\u05D8\u05D5\u05D5\u05D7 IPv4", gender: "m" },
|
|
9488
|
+
cidrv6: { label: "\u05D8\u05D5\u05D5\u05D7 IPv6", gender: "m" },
|
|
9489
|
+
base64: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64", gender: "f" },
|
|
9490
|
+
base64url: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA", gender: "f" },
|
|
9491
|
+
json_string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON", gender: "f" },
|
|
9492
|
+
e164: { label: "\u05DE\u05E1\u05E4\u05E8 E.164", gender: "m" },
|
|
9493
|
+
jwt: { label: "JWT", gender: "m" },
|
|
9494
|
+
ends_with: { label: "\u05E7\u05DC\u05D8", gender: "m" },
|
|
9495
|
+
includes: { label: "\u05E7\u05DC\u05D8", gender: "m" },
|
|
9496
|
+
lowercase: { label: "\u05E7\u05DC\u05D8", gender: "m" },
|
|
9497
|
+
starts_with: { label: "\u05E7\u05DC\u05D8", gender: "m" },
|
|
9498
|
+
uppercase: { label: "\u05E7\u05DC\u05D8", gender: "m" }
|
|
9432
9499
|
};
|
|
9433
9500
|
return (issue2) => {
|
|
9434
9501
|
switch (issue2.code) {
|
|
9435
|
-
case "invalid_type":
|
|
9436
|
-
|
|
9437
|
-
|
|
9438
|
-
|
|
9439
|
-
|
|
9440
|
-
return `\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \
|
|
9502
|
+
case "invalid_type": {
|
|
9503
|
+
const expectedKey = issue2.expected;
|
|
9504
|
+
const expected = typeLabel(expectedKey);
|
|
9505
|
+
const receivedKey = parsedType4(issue2.input);
|
|
9506
|
+
const received = TypeNames[receivedKey]?.label ?? receivedKey;
|
|
9507
|
+
return `\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${received}`;
|
|
9508
|
+
}
|
|
9509
|
+
case "invalid_value": {
|
|
9510
|
+
if (issue2.values.length === 1) {
|
|
9511
|
+
return `\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${stringifyPrimitive(issue2.values[0])}`;
|
|
9512
|
+
}
|
|
9513
|
+
const stringified = issue2.values.map((v) => stringifyPrimitive(v));
|
|
9514
|
+
if (issue2.values.length === 2) {
|
|
9515
|
+
return `\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${stringified[0]} \u05D0\u05D5 ${stringified[1]}`;
|
|
9516
|
+
}
|
|
9517
|
+
const lastValue = stringified[stringified.length - 1];
|
|
9518
|
+
const restValues = stringified.slice(0, -1).join(", ");
|
|
9519
|
+
return `\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${restValues} \u05D0\u05D5 ${lastValue}`;
|
|
9520
|
+
}
|
|
9441
9521
|
case "too_big": {
|
|
9442
|
-
const adj = issue2.inclusive ? "<=" : "<";
|
|
9443
9522
|
const sizing = getSizing(issue2.origin);
|
|
9444
|
-
|
|
9445
|
-
|
|
9446
|
-
|
|
9523
|
+
const subject = withDefinite(issue2.origin ?? "value");
|
|
9524
|
+
if (issue2.origin === "string") {
|
|
9525
|
+
return `${sizing?.longLabel ?? "\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${subject} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${issue2.maximum.toString()} ${sizing?.unit ?? ""} ${issue2.inclusive ? "\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA" : "\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();
|
|
9526
|
+
}
|
|
9527
|
+
if (issue2.origin === "number") {
|
|
9528
|
+
const comparison = issue2.inclusive ? `\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${issue2.maximum}` : `\u05E7\u05D8\u05DF \u05DE-${issue2.maximum}`;
|
|
9529
|
+
return `\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${subject} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${comparison}`;
|
|
9530
|
+
}
|
|
9531
|
+
if (issue2.origin === "array" || issue2.origin === "set") {
|
|
9532
|
+
const verb = issue2.origin === "set" ? "\u05E6\u05E8\u05D9\u05DB\u05D4" : "\u05E6\u05E8\u05D9\u05DA";
|
|
9533
|
+
const comparison = issue2.inclusive ? `${issue2.maximum} ${sizing?.unit ?? ""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA` : `\u05E4\u05D7\u05D5\u05EA \u05DE-${issue2.maximum} ${sizing?.unit ?? ""}`;
|
|
9534
|
+
return `\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${subject} ${verb} \u05DC\u05D4\u05DB\u05D9\u05DC ${comparison}`.trim();
|
|
9535
|
+
}
|
|
9536
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
9537
|
+
const be = verbFor(issue2.origin ?? "value");
|
|
9538
|
+
if (sizing?.unit) {
|
|
9539
|
+
return `${sizing.longLabel} \u05DE\u05D3\u05D9: ${subject} ${be} ${adj}${issue2.maximum.toString()} ${sizing.unit}`;
|
|
9540
|
+
}
|
|
9541
|
+
return `${sizing?.longLabel ?? "\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${subject} ${be} ${adj}${issue2.maximum.toString()}`;
|
|
9447
9542
|
}
|
|
9448
9543
|
case "too_small": {
|
|
9449
|
-
const adj = issue2.inclusive ? ">=" : ">";
|
|
9450
9544
|
const sizing = getSizing(issue2.origin);
|
|
9451
|
-
|
|
9452
|
-
|
|
9545
|
+
const subject = withDefinite(issue2.origin ?? "value");
|
|
9546
|
+
if (issue2.origin === "string") {
|
|
9547
|
+
return `${sizing?.shortLabel ?? "\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${subject} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${issue2.minimum.toString()} ${sizing?.unit ?? ""} ${issue2.inclusive ? "\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8" : "\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();
|
|
9548
|
+
}
|
|
9549
|
+
if (issue2.origin === "number") {
|
|
9550
|
+
const comparison = issue2.inclusive ? `\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${issue2.minimum}` : `\u05D2\u05D3\u05D5\u05DC \u05DE-${issue2.minimum}`;
|
|
9551
|
+
return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${subject} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${comparison}`;
|
|
9552
|
+
}
|
|
9553
|
+
if (issue2.origin === "array" || issue2.origin === "set") {
|
|
9554
|
+
const verb = issue2.origin === "set" ? "\u05E6\u05E8\u05D9\u05DB\u05D4" : "\u05E6\u05E8\u05D9\u05DA";
|
|
9555
|
+
if (issue2.minimum === 1 && issue2.inclusive) {
|
|
9556
|
+
const singularPhrase = issue2.origin === "set" ? "\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3" : "\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3";
|
|
9557
|
+
return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${subject} ${verb} \u05DC\u05D4\u05DB\u05D9\u05DC ${singularPhrase}`;
|
|
9558
|
+
}
|
|
9559
|
+
const comparison = issue2.inclusive ? `${issue2.minimum} ${sizing?.unit ?? ""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8` : `\u05D9\u05D5\u05EA\u05E8 \u05DE-${issue2.minimum} ${sizing?.unit ?? ""}`;
|
|
9560
|
+
return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${subject} ${verb} \u05DC\u05D4\u05DB\u05D9\u05DC ${comparison}`.trim();
|
|
9561
|
+
}
|
|
9562
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
9563
|
+
const be = verbFor(issue2.origin ?? "value");
|
|
9564
|
+
if (sizing?.unit) {
|
|
9565
|
+
return `${sizing.shortLabel} \u05DE\u05D3\u05D9: ${subject} ${be} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
9453
9566
|
}
|
|
9454
|
-
return
|
|
9567
|
+
return `${sizing?.shortLabel ?? "\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${subject} ${be} ${adj}${issue2.minimum.toString()}`;
|
|
9455
9568
|
}
|
|
9456
9569
|
case "invalid_format": {
|
|
9457
9570
|
const _issue = issue2;
|
|
9458
9571
|
if (_issue.format === "starts_with")
|
|
9459
|
-
return `\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \
|
|
9572
|
+
return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${_issue.prefix}"`;
|
|
9460
9573
|
if (_issue.format === "ends_with")
|
|
9461
|
-
return `\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \
|
|
9574
|
+
return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${_issue.suffix}"`;
|
|
9462
9575
|
if (_issue.format === "includes")
|
|
9463
|
-
return `\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \
|
|
9576
|
+
return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${_issue.includes}"`;
|
|
9464
9577
|
if (_issue.format === "regex")
|
|
9465
|
-
return `\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \
|
|
9466
|
-
|
|
9578
|
+
return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${_issue.pattern}`;
|
|
9579
|
+
const nounEntry = Nouns[_issue.format];
|
|
9580
|
+
const noun = nounEntry?.label ?? _issue.format;
|
|
9581
|
+
const gender = nounEntry?.gender ?? "m";
|
|
9582
|
+
const adjective = gender === "f" ? "\u05EA\u05E7\u05D9\u05E0\u05D4" : "\u05EA\u05E7\u05D9\u05DF";
|
|
9583
|
+
return `${noun} \u05DC\u05D0 ${adjective}`;
|
|
9467
9584
|
}
|
|
9468
9585
|
case "not_multiple_of":
|
|
9469
9586
|
return `\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${issue2.divisor}`;
|
|
9470
9587
|
case "unrecognized_keys":
|
|
9471
9588
|
return `\u05DE\u05E4\u05EA\u05D7${issue2.keys.length > 1 ? "\u05D5\u05EA" : ""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${issue2.keys.length > 1 ? "\u05D9\u05DD" : "\u05D4"}: ${joinValues(issue2.keys, ", ")}`;
|
|
9472
|
-
case "invalid_key":
|
|
9473
|
-
return `\
|
|
9589
|
+
case "invalid_key": {
|
|
9590
|
+
return `\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8`;
|
|
9591
|
+
}
|
|
9474
9592
|
case "invalid_union":
|
|
9475
9593
|
return "\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";
|
|
9476
|
-
case "invalid_element":
|
|
9477
|
-
|
|
9594
|
+
case "invalid_element": {
|
|
9595
|
+
const place = withDefinite(issue2.origin ?? "array");
|
|
9596
|
+
return `\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${place}`;
|
|
9597
|
+
}
|
|
9478
9598
|
default:
|
|
9479
9599
|
return `\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF`;
|
|
9480
9600
|
}
|
|
@@ -9485,7 +9605,7 @@ function he_default() {
|
|
|
9485
9605
|
localeError: error16()
|
|
9486
9606
|
};
|
|
9487
9607
|
}
|
|
9488
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9608
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/hu.js
|
|
9489
9609
|
var error17 = () => {
|
|
9490
9610
|
const Sizable = {
|
|
9491
9611
|
string: { unit: "karakter", verb: "legyen" },
|
|
@@ -9601,7 +9721,7 @@ function hu_default() {
|
|
|
9601
9721
|
localeError: error17()
|
|
9602
9722
|
};
|
|
9603
9723
|
}
|
|
9604
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9724
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/id.js
|
|
9605
9725
|
var error18 = () => {
|
|
9606
9726
|
const Sizable = {
|
|
9607
9727
|
string: { unit: "karakter", verb: "memiliki" },
|
|
@@ -9717,7 +9837,7 @@ function id_default() {
|
|
|
9717
9837
|
localeError: error18()
|
|
9718
9838
|
};
|
|
9719
9839
|
}
|
|
9720
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9840
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/is.js
|
|
9721
9841
|
var parsedType4 = (data) => {
|
|
9722
9842
|
const t = typeof data;
|
|
9723
9843
|
switch (t) {
|
|
@@ -9834,7 +9954,7 @@ function is_default() {
|
|
|
9834
9954
|
localeError: error19()
|
|
9835
9955
|
};
|
|
9836
9956
|
}
|
|
9837
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9957
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/it.js
|
|
9838
9958
|
var error20 = () => {
|
|
9839
9959
|
const Sizable = {
|
|
9840
9960
|
string: { unit: "caratteri", verb: "avere" },
|
|
@@ -9950,7 +10070,7 @@ function it_default() {
|
|
|
9950
10070
|
localeError: error20()
|
|
9951
10071
|
};
|
|
9952
10072
|
}
|
|
9953
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
10073
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ja.js
|
|
9954
10074
|
var error21 = () => {
|
|
9955
10075
|
const Sizable = {
|
|
9956
10076
|
string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
|
|
@@ -10065,7 +10185,7 @@ function ja_default() {
|
|
|
10065
10185
|
localeError: error21()
|
|
10066
10186
|
};
|
|
10067
10187
|
}
|
|
10068
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
10188
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ka.js
|
|
10069
10189
|
var parsedType5 = (data) => {
|
|
10070
10190
|
const t = typeof data;
|
|
10071
10191
|
switch (t) {
|
|
@@ -10190,7 +10310,7 @@ function ka_default() {
|
|
|
10190
10310
|
localeError: error22()
|
|
10191
10311
|
};
|
|
10192
10312
|
}
|
|
10193
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
10313
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/km.js
|
|
10194
10314
|
var error23 = () => {
|
|
10195
10315
|
const Sizable = {
|
|
10196
10316
|
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
@@ -10308,11 +10428,11 @@ function km_default() {
|
|
|
10308
10428
|
};
|
|
10309
10429
|
}
|
|
10310
10430
|
|
|
10311
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
10431
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/kh.js
|
|
10312
10432
|
function kh_default() {
|
|
10313
10433
|
return km_default();
|
|
10314
10434
|
}
|
|
10315
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
10435
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ko.js
|
|
10316
10436
|
var error24 = () => {
|
|
10317
10437
|
const Sizable = {
|
|
10318
10438
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
@@ -10433,7 +10553,7 @@ function ko_default() {
|
|
|
10433
10553
|
localeError: error24()
|
|
10434
10554
|
};
|
|
10435
10555
|
}
|
|
10436
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
10556
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/lt.js
|
|
10437
10557
|
var parsedType6 = (data) => {
|
|
10438
10558
|
const t = typeof data;
|
|
10439
10559
|
return parsedTypeFromType(t, data);
|
|
@@ -10662,7 +10782,7 @@ function lt_default() {
|
|
|
10662
10782
|
localeError: error25()
|
|
10663
10783
|
};
|
|
10664
10784
|
}
|
|
10665
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
10785
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/mk.js
|
|
10666
10786
|
var error26 = () => {
|
|
10667
10787
|
const Sizable = {
|
|
10668
10788
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
@@ -10779,7 +10899,7 @@ function mk_default() {
|
|
|
10779
10899
|
localeError: error26()
|
|
10780
10900
|
};
|
|
10781
10901
|
}
|
|
10782
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
10902
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ms.js
|
|
10783
10903
|
var error27 = () => {
|
|
10784
10904
|
const Sizable = {
|
|
10785
10905
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
@@ -10895,13 +11015,13 @@ function ms_default() {
|
|
|
10895
11015
|
localeError: error27()
|
|
10896
11016
|
};
|
|
10897
11017
|
}
|
|
10898
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
11018
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/nl.js
|
|
10899
11019
|
var error28 = () => {
|
|
10900
11020
|
const Sizable = {
|
|
10901
|
-
string: { unit: "tekens" },
|
|
10902
|
-
file: { unit: "bytes" },
|
|
10903
|
-
array: { unit: "elementen" },
|
|
10904
|
-
set: { unit: "elementen" }
|
|
11021
|
+
string: { unit: "tekens", verb: "te hebben" },
|
|
11022
|
+
file: { unit: "bytes", verb: "te hebben" },
|
|
11023
|
+
array: { unit: "elementen", verb: "te hebben" },
|
|
11024
|
+
set: { unit: "elementen", verb: "te hebben" }
|
|
10905
11025
|
};
|
|
10906
11026
|
function getSizing(origin) {
|
|
10907
11027
|
return Sizable[origin] ?? null;
|
|
@@ -10968,16 +11088,16 @@ var error28 = () => {
|
|
|
10968
11088
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
10969
11089
|
const sizing = getSizing(issue2.origin);
|
|
10970
11090
|
if (sizing)
|
|
10971
|
-
return `Te
|
|
10972
|
-
return `Te
|
|
11091
|
+
return `Te groot: verwacht dat ${issue2.origin ?? "waarde"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementen"}`;
|
|
11092
|
+
return `Te groot: verwacht dat ${issue2.origin ?? "waarde"} ${adj}${issue2.maximum.toString()} is`;
|
|
10973
11093
|
}
|
|
10974
11094
|
case "too_small": {
|
|
10975
11095
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
10976
11096
|
const sizing = getSizing(issue2.origin);
|
|
10977
11097
|
if (sizing) {
|
|
10978
|
-
return `Te
|
|
11098
|
+
return `Te klein: verwacht dat ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
10979
11099
|
}
|
|
10980
|
-
return `Te
|
|
11100
|
+
return `Te klein: verwacht dat ${issue2.origin} ${adj}${issue2.minimum.toString()} is`;
|
|
10981
11101
|
}
|
|
10982
11102
|
case "invalid_format": {
|
|
10983
11103
|
const _issue = issue2;
|
|
@@ -11012,7 +11132,7 @@ function nl_default() {
|
|
|
11012
11132
|
localeError: error28()
|
|
11013
11133
|
};
|
|
11014
11134
|
}
|
|
11015
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
11135
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/no.js
|
|
11016
11136
|
var error29 = () => {
|
|
11017
11137
|
const Sizable = {
|
|
11018
11138
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
@@ -11128,7 +11248,7 @@ function no_default() {
|
|
|
11128
11248
|
localeError: error29()
|
|
11129
11249
|
};
|
|
11130
11250
|
}
|
|
11131
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
11251
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ota.js
|
|
11132
11252
|
var error30 = () => {
|
|
11133
11253
|
const Sizable = {
|
|
11134
11254
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
@@ -11244,7 +11364,7 @@ function ota_default() {
|
|
|
11244
11364
|
localeError: error30()
|
|
11245
11365
|
};
|
|
11246
11366
|
}
|
|
11247
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
11367
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ps.js
|
|
11248
11368
|
var error31 = () => {
|
|
11249
11369
|
const Sizable = {
|
|
11250
11370
|
string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
|
|
@@ -11366,7 +11486,7 @@ function ps_default() {
|
|
|
11366
11486
|
localeError: error31()
|
|
11367
11487
|
};
|
|
11368
11488
|
}
|
|
11369
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
11489
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/pl.js
|
|
11370
11490
|
var error32 = () => {
|
|
11371
11491
|
const Sizable = {
|
|
11372
11492
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
@@ -11483,7 +11603,7 @@ function pl_default() {
|
|
|
11483
11603
|
localeError: error32()
|
|
11484
11604
|
};
|
|
11485
11605
|
}
|
|
11486
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
11606
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/pt.js
|
|
11487
11607
|
var error33 = () => {
|
|
11488
11608
|
const Sizable = {
|
|
11489
11609
|
string: { unit: "caracteres", verb: "ter" },
|
|
@@ -11599,7 +11719,7 @@ function pt_default() {
|
|
|
11599
11719
|
localeError: error33()
|
|
11600
11720
|
};
|
|
11601
11721
|
}
|
|
11602
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
11722
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ru.js
|
|
11603
11723
|
function getRussianPlural(count, one, few, many) {
|
|
11604
11724
|
const absCount = Math.abs(count);
|
|
11605
11725
|
const lastDigit = absCount % 10;
|
|
@@ -11763,7 +11883,7 @@ function ru_default() {
|
|
|
11763
11883
|
localeError: error34()
|
|
11764
11884
|
};
|
|
11765
11885
|
}
|
|
11766
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
11886
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/sl.js
|
|
11767
11887
|
var error35 = () => {
|
|
11768
11888
|
const Sizable = {
|
|
11769
11889
|
string: { unit: "znakov", verb: "imeti" },
|
|
@@ -11880,7 +12000,7 @@ function sl_default() {
|
|
|
11880
12000
|
localeError: error35()
|
|
11881
12001
|
};
|
|
11882
12002
|
}
|
|
11883
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
12003
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/sv.js
|
|
11884
12004
|
var error36 = () => {
|
|
11885
12005
|
const Sizable = {
|
|
11886
12006
|
string: { unit: "tecken", verb: "att ha" },
|
|
@@ -11998,7 +12118,7 @@ function sv_default() {
|
|
|
11998
12118
|
localeError: error36()
|
|
11999
12119
|
};
|
|
12000
12120
|
}
|
|
12001
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
12121
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ta.js
|
|
12002
12122
|
var error37 = () => {
|
|
12003
12123
|
const Sizable = {
|
|
12004
12124
|
string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
|
|
@@ -12115,7 +12235,7 @@ function ta_default() {
|
|
|
12115
12235
|
localeError: error37()
|
|
12116
12236
|
};
|
|
12117
12237
|
}
|
|
12118
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
12238
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/th.js
|
|
12119
12239
|
var error38 = () => {
|
|
12120
12240
|
const Sizable = {
|
|
12121
12241
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
@@ -12232,7 +12352,7 @@ function th_default() {
|
|
|
12232
12352
|
localeError: error38()
|
|
12233
12353
|
};
|
|
12234
12354
|
}
|
|
12235
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
12355
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/tr.js
|
|
12236
12356
|
var parsedType7 = (data) => {
|
|
12237
12357
|
const t = typeof data;
|
|
12238
12358
|
switch (t) {
|
|
@@ -12347,7 +12467,7 @@ function tr_default() {
|
|
|
12347
12467
|
localeError: error39()
|
|
12348
12468
|
};
|
|
12349
12469
|
}
|
|
12350
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
12470
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/uk.js
|
|
12351
12471
|
var error40 = () => {
|
|
12352
12472
|
const Sizable = {
|
|
12353
12473
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
@@ -12464,11 +12584,11 @@ function uk_default() {
|
|
|
12464
12584
|
};
|
|
12465
12585
|
}
|
|
12466
12586
|
|
|
12467
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
12587
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ua.js
|
|
12468
12588
|
function ua_default() {
|
|
12469
12589
|
return uk_default();
|
|
12470
12590
|
}
|
|
12471
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
12591
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ur.js
|
|
12472
12592
|
var error41 = () => {
|
|
12473
12593
|
const Sizable = {
|
|
12474
12594
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
@@ -12585,7 +12705,7 @@ function ur_default() {
|
|
|
12585
12705
|
localeError: error41()
|
|
12586
12706
|
};
|
|
12587
12707
|
}
|
|
12588
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
12708
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/vi.js
|
|
12589
12709
|
var error42 = () => {
|
|
12590
12710
|
const Sizable = {
|
|
12591
12711
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
@@ -12701,7 +12821,7 @@ function vi_default() {
|
|
|
12701
12821
|
localeError: error42()
|
|
12702
12822
|
};
|
|
12703
12823
|
}
|
|
12704
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
12824
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/zh-CN.js
|
|
12705
12825
|
var error43 = () => {
|
|
12706
12826
|
const Sizable = {
|
|
12707
12827
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
@@ -12817,7 +12937,7 @@ function zh_CN_default() {
|
|
|
12817
12937
|
localeError: error43()
|
|
12818
12938
|
};
|
|
12819
12939
|
}
|
|
12820
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
12940
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/zh-TW.js
|
|
12821
12941
|
var error44 = () => {
|
|
12822
12942
|
const Sizable = {
|
|
12823
12943
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
@@ -12934,7 +13054,7 @@ function zh_TW_default() {
|
|
|
12934
13054
|
localeError: error44()
|
|
12935
13055
|
};
|
|
12936
13056
|
}
|
|
12937
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
13057
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/yo.js
|
|
12938
13058
|
var error45 = () => {
|
|
12939
13059
|
const Sizable = {
|
|
12940
13060
|
string: { unit: "\xE0mi", verb: "n\xED" },
|
|
@@ -13049,7 +13169,8 @@ function yo_default() {
|
|
|
13049
13169
|
localeError: error45()
|
|
13050
13170
|
};
|
|
13051
13171
|
}
|
|
13052
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
13172
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/registries.js
|
|
13173
|
+
var _a;
|
|
13053
13174
|
var $output = Symbol("ZodOutput");
|
|
13054
13175
|
var $input = Symbol("ZodInput");
|
|
13055
13176
|
|
|
@@ -13099,8 +13220,9 @@ class $ZodRegistry {
|
|
|
13099
13220
|
function registry() {
|
|
13100
13221
|
return new $ZodRegistry;
|
|
13101
13222
|
}
|
|
13102
|
-
|
|
13103
|
-
|
|
13223
|
+
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
13224
|
+
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
13225
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/api.js
|
|
13104
13226
|
function _string(Class2, params) {
|
|
13105
13227
|
return new Class2({
|
|
13106
13228
|
type: "string",
|
|
@@ -13261,6 +13383,15 @@ function _ipv6(Class2, params) {
|
|
|
13261
13383
|
...normalizeParams(params)
|
|
13262
13384
|
});
|
|
13263
13385
|
}
|
|
13386
|
+
function _mac(Class2, params) {
|
|
13387
|
+
return new Class2({
|
|
13388
|
+
type: "string",
|
|
13389
|
+
format: "mac",
|
|
13390
|
+
check: "string_format",
|
|
13391
|
+
abort: false,
|
|
13392
|
+
...normalizeParams(params)
|
|
13393
|
+
});
|
|
13394
|
+
}
|
|
13264
13395
|
function _cidrv4(Class2, params) {
|
|
13265
13396
|
return new Class2({
|
|
13266
13397
|
type: "string",
|
|
@@ -13694,6 +13825,9 @@ function _toLowerCase() {
|
|
|
13694
13825
|
function _toUpperCase() {
|
|
13695
13826
|
return _overwrite((input) => input.toUpperCase());
|
|
13696
13827
|
}
|
|
13828
|
+
function _slugify() {
|
|
13829
|
+
return _overwrite((input) => slugify(input));
|
|
13830
|
+
}
|
|
13697
13831
|
function _array(Class2, element, params) {
|
|
13698
13832
|
return new Class2({
|
|
13699
13833
|
type: "array",
|
|
@@ -13912,6 +14046,28 @@ function _check(fn, params) {
|
|
|
13912
14046
|
ch._zod.check = fn;
|
|
13913
14047
|
return ch;
|
|
13914
14048
|
}
|
|
14049
|
+
function describe(description) {
|
|
14050
|
+
const ch = new $ZodCheck({ check: "describe" });
|
|
14051
|
+
ch._zod.onattach = [
|
|
14052
|
+
(inst) => {
|
|
14053
|
+
const existing = globalRegistry.get(inst) ?? {};
|
|
14054
|
+
globalRegistry.add(inst, { ...existing, description });
|
|
14055
|
+
}
|
|
14056
|
+
];
|
|
14057
|
+
ch._zod.check = () => {};
|
|
14058
|
+
return ch;
|
|
14059
|
+
}
|
|
14060
|
+
function meta(metadata) {
|
|
14061
|
+
const ch = new $ZodCheck({ check: "meta" });
|
|
14062
|
+
ch._zod.onattach = [
|
|
14063
|
+
(inst) => {
|
|
14064
|
+
const existing = globalRegistry.get(inst) ?? {};
|
|
14065
|
+
globalRegistry.add(inst, { ...existing, ...metadata });
|
|
14066
|
+
}
|
|
14067
|
+
];
|
|
14068
|
+
ch._zod.check = () => {};
|
|
14069
|
+
return ch;
|
|
14070
|
+
}
|
|
13915
14071
|
function _stringbool(Classes, _params) {
|
|
13916
14072
|
const params = normalizeParams(_params);
|
|
13917
14073
|
let truthyArray = params.truthy ?? ["true", "1", "yes", "on", "y", "enabled"];
|
|
@@ -13978,7 +14134,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
13978
14134
|
const inst = new Class2(def);
|
|
13979
14135
|
return inst;
|
|
13980
14136
|
}
|
|
13981
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
14137
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/to-json-schema.js
|
|
13982
14138
|
class JSONSchemaGenerator {
|
|
13983
14139
|
constructor(params) {
|
|
13984
14140
|
this.counter = 0;
|
|
@@ -13990,7 +14146,7 @@ class JSONSchemaGenerator {
|
|
|
13990
14146
|
this.seen = new Map;
|
|
13991
14147
|
}
|
|
13992
14148
|
process(schema, _params = { path: [], schemaPath: [] }) {
|
|
13993
|
-
var
|
|
14149
|
+
var _a2;
|
|
13994
14150
|
const def = schema._zod.def;
|
|
13995
14151
|
const formatMap = {
|
|
13996
14152
|
guid: "uuid",
|
|
@@ -14205,11 +14361,16 @@ class JSONSchemaGenerator {
|
|
|
14205
14361
|
}
|
|
14206
14362
|
case "union": {
|
|
14207
14363
|
const json = _json;
|
|
14364
|
+
const isDiscriminated = def.discriminator !== undefined;
|
|
14208
14365
|
const options = def.options.map((x, i) => this.process(x, {
|
|
14209
14366
|
...params,
|
|
14210
|
-
path: [...params.path, "anyOf", i]
|
|
14367
|
+
path: [...params.path, isDiscriminated ? "oneOf" : "anyOf", i]
|
|
14211
14368
|
}));
|
|
14212
|
-
|
|
14369
|
+
if (isDiscriminated) {
|
|
14370
|
+
json.oneOf = options;
|
|
14371
|
+
} else {
|
|
14372
|
+
json.anyOf = options;
|
|
14373
|
+
}
|
|
14213
14374
|
break;
|
|
14214
14375
|
}
|
|
14215
14376
|
case "intersection": {
|
|
@@ -14485,15 +14646,15 @@ class JSONSchemaGenerator {
|
|
|
14485
14646
|
}
|
|
14486
14647
|
}
|
|
14487
14648
|
}
|
|
14488
|
-
const
|
|
14489
|
-
if (
|
|
14490
|
-
Object.assign(result.schema,
|
|
14649
|
+
const meta2 = this.metadataRegistry.get(schema);
|
|
14650
|
+
if (meta2)
|
|
14651
|
+
Object.assign(result.schema, meta2);
|
|
14491
14652
|
if (this.io === "input" && isTransforming(schema)) {
|
|
14492
14653
|
delete result.schema.examples;
|
|
14493
14654
|
delete result.schema.default;
|
|
14494
14655
|
}
|
|
14495
14656
|
if (this.io === "input" && result.schema._prefault)
|
|
14496
|
-
(
|
|
14657
|
+
(_a2 = result.schema).default ?? (_a2.default = result.schema._prefault);
|
|
14497
14658
|
delete result.schema._prefault;
|
|
14498
14659
|
const _result = this.seen.get(schema);
|
|
14499
14660
|
return _result.schema;
|
|
@@ -14687,104 +14848,55 @@ function isTransforming(_schema, _ctx) {
|
|
|
14687
14848
|
if (ctx.seen.has(_schema))
|
|
14688
14849
|
return false;
|
|
14689
14850
|
ctx.seen.add(_schema);
|
|
14690
|
-
const
|
|
14691
|
-
|
|
14692
|
-
|
|
14693
|
-
|
|
14694
|
-
|
|
14695
|
-
|
|
14696
|
-
|
|
14697
|
-
|
|
14698
|
-
|
|
14699
|
-
|
|
14700
|
-
|
|
14701
|
-
|
|
14702
|
-
|
|
14703
|
-
|
|
14704
|
-
|
|
14705
|
-
|
|
14706
|
-
|
|
14707
|
-
|
|
14708
|
-
|
|
14709
|
-
|
|
14710
|
-
|
|
14711
|
-
|
|
14712
|
-
|
|
14713
|
-
|
|
14714
|
-
case "object": {
|
|
14715
|
-
for (const key in def.shape) {
|
|
14716
|
-
if (isTransforming(def.shape[key], ctx))
|
|
14717
|
-
return true;
|
|
14718
|
-
}
|
|
14719
|
-
return false;
|
|
14720
|
-
}
|
|
14721
|
-
case "union": {
|
|
14722
|
-
for (const option of def.options) {
|
|
14723
|
-
if (isTransforming(option, ctx))
|
|
14724
|
-
return true;
|
|
14725
|
-
}
|
|
14726
|
-
return false;
|
|
14727
|
-
}
|
|
14728
|
-
case "intersection": {
|
|
14729
|
-
return isTransforming(def.left, ctx) || isTransforming(def.right, ctx);
|
|
14730
|
-
}
|
|
14731
|
-
case "tuple": {
|
|
14732
|
-
for (const item of def.items) {
|
|
14733
|
-
if (isTransforming(item, ctx))
|
|
14734
|
-
return true;
|
|
14735
|
-
}
|
|
14736
|
-
if (def.rest && isTransforming(def.rest, ctx))
|
|
14851
|
+
const def = _schema._zod.def;
|
|
14852
|
+
if (def.type === "transform")
|
|
14853
|
+
return true;
|
|
14854
|
+
if (def.type === "array")
|
|
14855
|
+
return isTransforming(def.element, ctx);
|
|
14856
|
+
if (def.type === "set")
|
|
14857
|
+
return isTransforming(def.valueType, ctx);
|
|
14858
|
+
if (def.type === "lazy")
|
|
14859
|
+
return isTransforming(def.getter(), ctx);
|
|
14860
|
+
if (def.type === "promise" || def.type === "optional" || def.type === "nonoptional" || def.type === "nullable" || def.type === "readonly" || def.type === "default" || def.type === "prefault") {
|
|
14861
|
+
return isTransforming(def.innerType, ctx);
|
|
14862
|
+
}
|
|
14863
|
+
if (def.type === "intersection") {
|
|
14864
|
+
return isTransforming(def.left, ctx) || isTransforming(def.right, ctx);
|
|
14865
|
+
}
|
|
14866
|
+
if (def.type === "record" || def.type === "map") {
|
|
14867
|
+
return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
|
|
14868
|
+
}
|
|
14869
|
+
if (def.type === "pipe") {
|
|
14870
|
+
return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
|
|
14871
|
+
}
|
|
14872
|
+
if (def.type === "object") {
|
|
14873
|
+
for (const key in def.shape) {
|
|
14874
|
+
if (isTransforming(def.shape[key], ctx))
|
|
14737
14875
|
return true;
|
|
14738
|
-
return false;
|
|
14739
14876
|
}
|
|
14740
|
-
|
|
14741
|
-
|
|
14742
|
-
|
|
14743
|
-
|
|
14744
|
-
|
|
14745
|
-
|
|
14746
|
-
case "set": {
|
|
14747
|
-
return isTransforming(def.valueType, ctx);
|
|
14748
|
-
}
|
|
14749
|
-
case "promise":
|
|
14750
|
-
case "optional":
|
|
14751
|
-
case "nonoptional":
|
|
14752
|
-
case "nullable":
|
|
14753
|
-
case "readonly":
|
|
14754
|
-
return isTransforming(def.innerType, ctx);
|
|
14755
|
-
case "lazy":
|
|
14756
|
-
return isTransforming(def.getter(), ctx);
|
|
14757
|
-
case "default": {
|
|
14758
|
-
return isTransforming(def.innerType, ctx);
|
|
14759
|
-
}
|
|
14760
|
-
case "prefault": {
|
|
14761
|
-
return isTransforming(def.innerType, ctx);
|
|
14877
|
+
return false;
|
|
14878
|
+
}
|
|
14879
|
+
if (def.type === "union") {
|
|
14880
|
+
for (const option of def.options) {
|
|
14881
|
+
if (isTransforming(option, ctx))
|
|
14882
|
+
return true;
|
|
14762
14883
|
}
|
|
14763
|
-
|
|
14764
|
-
|
|
14884
|
+
return false;
|
|
14885
|
+
}
|
|
14886
|
+
if (def.type === "tuple") {
|
|
14887
|
+
for (const item of def.items) {
|
|
14888
|
+
if (isTransforming(item, ctx))
|
|
14889
|
+
return true;
|
|
14765
14890
|
}
|
|
14766
|
-
|
|
14891
|
+
if (def.rest && isTransforming(def.rest, ctx))
|
|
14767
14892
|
return true;
|
|
14768
|
-
|
|
14769
|
-
case "pipe": {
|
|
14770
|
-
return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
|
|
14771
|
-
}
|
|
14772
|
-
case "success": {
|
|
14773
|
-
return false;
|
|
14774
|
-
}
|
|
14775
|
-
case "catch": {
|
|
14776
|
-
return false;
|
|
14777
|
-
}
|
|
14778
|
-
case "function": {
|
|
14779
|
-
return false;
|
|
14780
|
-
}
|
|
14781
|
-
default:
|
|
14893
|
+
return false;
|
|
14782
14894
|
}
|
|
14783
|
-
|
|
14895
|
+
return false;
|
|
14784
14896
|
}
|
|
14785
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
14897
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/json-schema.js
|
|
14786
14898
|
var exports_json_schema = {};
|
|
14787
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
14899
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/iso.js
|
|
14788
14900
|
var exports_iso = {};
|
|
14789
14901
|
__export(exports_iso, {
|
|
14790
14902
|
time: () => time2,
|
|
@@ -14825,7 +14937,7 @@ function duration2(params) {
|
|
|
14825
14937
|
return _isoDuration(ZodISODuration, params);
|
|
14826
14938
|
}
|
|
14827
14939
|
|
|
14828
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
14940
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/errors.js
|
|
14829
14941
|
var initializer2 = (inst, issues) => {
|
|
14830
14942
|
$ZodError.init(inst, issues);
|
|
14831
14943
|
inst.name = "ZodError";
|
|
@@ -14860,7 +14972,7 @@ var ZodRealError = $constructor("ZodError", initializer2, {
|
|
|
14860
14972
|
Parent: Error
|
|
14861
14973
|
});
|
|
14862
14974
|
|
|
14863
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
14975
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/parse.js
|
|
14864
14976
|
var parse3 = /* @__PURE__ */ _parse(ZodRealError);
|
|
14865
14977
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
14866
14978
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -14874,7 +14986,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
14874
14986
|
var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
14875
14987
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
14876
14988
|
|
|
14877
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
14989
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/schemas.js
|
|
14878
14990
|
var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
14879
14991
|
$ZodType.init(inst, def);
|
|
14880
14992
|
inst.def = def;
|
|
@@ -14890,8 +15002,8 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
14890
15002
|
};
|
|
14891
15003
|
inst.clone = (def2, params) => clone(inst, def2, params);
|
|
14892
15004
|
inst.brand = () => inst;
|
|
14893
|
-
inst.register = (reg,
|
|
14894
|
-
reg.add(inst,
|
|
15005
|
+
inst.register = (reg, meta2) => {
|
|
15006
|
+
reg.add(inst, meta2);
|
|
14895
15007
|
return inst;
|
|
14896
15008
|
};
|
|
14897
15009
|
inst.parse = (data, params) => parse3(inst, data, params, { callee: inst.parse });
|
|
@@ -14967,6 +15079,7 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
|
14967
15079
|
inst.normalize = (...args) => inst.check(_normalize(...args));
|
|
14968
15080
|
inst.toLowerCase = () => inst.check(_toLowerCase());
|
|
14969
15081
|
inst.toUpperCase = () => inst.check(_toUpperCase());
|
|
15082
|
+
inst.slugify = () => inst.check(_slugify());
|
|
14970
15083
|
});
|
|
14971
15084
|
var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
14972
15085
|
$ZodString.init(inst, def);
|
|
@@ -15106,6 +15219,13 @@ var ZodIPv4 = /* @__PURE__ */ $constructor("ZodIPv4", (inst, def) => {
|
|
|
15106
15219
|
function ipv42(params) {
|
|
15107
15220
|
return _ipv4(ZodIPv4, params);
|
|
15108
15221
|
}
|
|
15222
|
+
var ZodMAC = /* @__PURE__ */ $constructor("ZodMAC", (inst, def) => {
|
|
15223
|
+
$ZodMAC.init(inst, def);
|
|
15224
|
+
ZodStringFormat.init(inst, def);
|
|
15225
|
+
});
|
|
15226
|
+
function mac2(params) {
|
|
15227
|
+
return _mac(ZodMAC, params);
|
|
15228
|
+
}
|
|
15109
15229
|
var ZodIPv6 = /* @__PURE__ */ $constructor("ZodIPv6", (inst, def) => {
|
|
15110
15230
|
$ZodIPv6.init(inst, def);
|
|
15111
15231
|
ZodStringFormat.init(inst, def);
|
|
@@ -15814,6 +15934,8 @@ function refine(fn, _params = {}) {
|
|
|
15814
15934
|
function superRefine(fn) {
|
|
15815
15935
|
return _superRefine(fn);
|
|
15816
15936
|
}
|
|
15937
|
+
var describe2 = describe;
|
|
15938
|
+
var meta2 = meta;
|
|
15817
15939
|
function _instanceof(cls, params = {
|
|
15818
15940
|
error: `Input not instance of ${cls.name}`
|
|
15819
15941
|
}) {
|
|
@@ -15841,7 +15963,7 @@ function json(params) {
|
|
|
15841
15963
|
function preprocess(fn, schema) {
|
|
15842
15964
|
return pipe(transform(fn), schema);
|
|
15843
15965
|
}
|
|
15844
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
15966
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/compat.js
|
|
15845
15967
|
var ZodIssueCode = {
|
|
15846
15968
|
invalid_type: "invalid_type",
|
|
15847
15969
|
too_big: "too_big",
|
|
@@ -15865,7 +15987,7 @@ function getErrorMap() {
|
|
|
15865
15987
|
}
|
|
15866
15988
|
var ZodFirstPartyTypeKind;
|
|
15867
15989
|
(function(ZodFirstPartyTypeKind2) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
15868
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
15990
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/coerce.js
|
|
15869
15991
|
var exports_coerce = {};
|
|
15870
15992
|
__export(exports_coerce, {
|
|
15871
15993
|
string: () => string3,
|
|
@@ -15890,9 +16012,9 @@ function date4(params) {
|
|
|
15890
16012
|
return _coercedDate(ZodDate, params);
|
|
15891
16013
|
}
|
|
15892
16014
|
|
|
15893
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
16015
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/external.js
|
|
15894
16016
|
config(en_default());
|
|
15895
|
-
// ../../node_modules/.pnpm/safegen@0.8.2_@floating-ui+react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.
|
|
16017
|
+
// ../../node_modules/.pnpm/safegen@0.8.2_@floating-ui+react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.0__6221035d679c45235af6a0313d7a2980/node_modules/safegen/dist/safegen-DHhNOdib.js
|
|
15896
16018
|
function createSafeDataGenerator(gen, logger) {
|
|
15897
16019
|
return function generateFromSchema({ schema, fallback, toJsonSchema = exports_external.toJSONSchema }) {
|
|
15898
16020
|
const jsonSchema = toJsonSchema(schema);
|
|
@@ -15924,7 +16046,7 @@ function jsonSchemaToInstruction(jsonSchema) {
|
|
|
15924
16046
|
`);
|
|
15925
16047
|
}
|
|
15926
16048
|
|
|
15927
|
-
// ../../node_modules/.pnpm/safegen@0.8.2_@floating-ui+react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.
|
|
16049
|
+
// ../../node_modules/.pnpm/safegen@0.8.2_@floating-ui+react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.0__6221035d679c45235af6a0313d7a2980/node_modules/safegen/dist/primitives-DeHVhToL.js
|
|
15928
16050
|
function formatIssue(prompt, actual, issue2, consequence) {
|
|
15929
16051
|
const lines = [
|
|
15930
16052
|
`SafeGen saw that invalid data was produced for the prompt:`,
|
|
@@ -16056,7 +16178,7 @@ ${formattingInstruction}`, `choose-${instruction}-FROM-${options.join(`-`)}`, ma
|
|
|
16056
16178
|
return selections;
|
|
16057
16179
|
}
|
|
16058
16180
|
|
|
16059
|
-
// ../../node_modules/.pnpm/varmint@0.5.11_zod@4.1.
|
|
16181
|
+
// ../../node_modules/.pnpm/varmint@0.5.11_zod@4.1.13/node_modules/varmint/dist/varmint-workspace-manager-Bu9YnLAq.js
|
|
16060
16182
|
var import_cachedir = __toESM(require_cachedir(), 1);
|
|
16061
16183
|
import * as fs from "fs";
|
|
16062
16184
|
import * as path from "path";
|
|
@@ -16113,7 +16235,7 @@ var FilesystemStorage = class {
|
|
|
16113
16235
|
}
|
|
16114
16236
|
};
|
|
16115
16237
|
|
|
16116
|
-
// ../../node_modules/.pnpm/varmint@0.5.11_zod@4.1.
|
|
16238
|
+
// ../../node_modules/.pnpm/varmint@0.5.11_zod@4.1.13/node_modules/varmint/dist/varmint-workspace-manager-Bu9YnLAq.js
|
|
16117
16239
|
var filenameAllowList = /[^a-zA-Z0-9\-._]/g;
|
|
16118
16240
|
function sanitizeFilename(filename, maxLen = 64) {
|
|
16119
16241
|
if (maxLen % 2 === 1)
|
|
@@ -16269,7 +16391,7 @@ function startsWith(prefix, str) {
|
|
|
16269
16391
|
return str.startsWith(prefix);
|
|
16270
16392
|
}
|
|
16271
16393
|
|
|
16272
|
-
// ../../node_modules/.pnpm/varmint@0.5.11_zod@4.1.
|
|
16394
|
+
// ../../node_modules/.pnpm/varmint@0.5.11_zod@4.1.13/node_modules/varmint/dist/index.js
|
|
16273
16395
|
import * as fs2 from "fs";
|
|
16274
16396
|
import * as path2 from "path";
|
|
16275
16397
|
import { inspect } from "util";
|
|
@@ -16430,7 +16552,7 @@ class Diff {
|
|
|
16430
16552
|
return this.diffWithOptionsObj(oldTokens, newTokens, options, callback);
|
|
16431
16553
|
}
|
|
16432
16554
|
diffWithOptionsObj(oldTokens, newTokens, options, callback) {
|
|
16433
|
-
var
|
|
16555
|
+
var _a2;
|
|
16434
16556
|
const done = (value) => {
|
|
16435
16557
|
value = this.postProcess(value, options);
|
|
16436
16558
|
if (callback) {
|
|
@@ -16448,7 +16570,7 @@ class Diff {
|
|
|
16448
16570
|
if (options.maxEditLength != null) {
|
|
16449
16571
|
maxEditLength = Math.min(maxEditLength, options.maxEditLength);
|
|
16450
16572
|
}
|
|
16451
|
-
const maxExecutionTime = (
|
|
16573
|
+
const maxExecutionTime = (_a2 = options.timeout) !== null && _a2 !== undefined ? _a2 : Infinity;
|
|
16452
16574
|
const abortAfterTimestamp = Date.now() + maxExecutionTime;
|
|
16453
16575
|
const bestPath = [{ oldPos: -1, lastComponent: undefined }];
|
|
16454
16576
|
let newPos = this.extractCommon(bestPath[0], newTokens, oldTokens, 0, options);
|
|
@@ -16924,7 +17046,7 @@ function isSentenceEndPunct(char) {
|
|
|
16924
17046
|
|
|
16925
17047
|
class SentenceDiff extends Diff {
|
|
16926
17048
|
tokenize(value) {
|
|
16927
|
-
var
|
|
17049
|
+
var _a2;
|
|
16928
17050
|
const result = [];
|
|
16929
17051
|
let tokenStartI = 0;
|
|
16930
17052
|
for (let i = 0;i < value.length; i++) {
|
|
@@ -16935,7 +17057,7 @@ class SentenceDiff extends Diff {
|
|
|
16935
17057
|
if (isSentenceEndPunct(value[i]) && value[i + 1].match(/\s/)) {
|
|
16936
17058
|
result.push(value.slice(tokenStartI, i + 1));
|
|
16937
17059
|
i = tokenStartI = i + 1;
|
|
16938
|
-
while ((
|
|
17060
|
+
while ((_a2 = value[i + 1]) === null || _a2 === undefined ? undefined : _a2.match(/\s/)) {
|
|
16939
17061
|
i++;
|
|
16940
17062
|
}
|
|
16941
17063
|
result.push(value.slice(tokenStartI, i + 1));
|
|
@@ -17038,7 +17160,7 @@ class ArrayDiff extends Diff {
|
|
|
17038
17160
|
}
|
|
17039
17161
|
var arrayDiff = new ArrayDiff;
|
|
17040
17162
|
|
|
17041
|
-
// ../../node_modules/.pnpm/varmint@0.5.11_zod@4.1.
|
|
17163
|
+
// ../../node_modules/.pnpm/varmint@0.5.11_zod@4.1.13/node_modules/varmint/dist/index.js
|
|
17042
17164
|
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
17043
17165
|
var pico = import_picocolors.default.createColors(true);
|
|
17044
17166
|
function prettyPrintDiffInline(oldStr, newStr, opts = {}) {
|
|
@@ -17422,7 +17544,7 @@ ${inputFileContents}`);
|
|
|
17422
17544
|
}
|
|
17423
17545
|
};
|
|
17424
17546
|
|
|
17425
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
17547
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/tslib.mjs
|
|
17426
17548
|
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
17427
17549
|
if (kind === "m")
|
|
17428
17550
|
throw new TypeError("Private method is not writable");
|
|
@@ -17440,7 +17562,7 @@ function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
|
17440
17562
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
17441
17563
|
}
|
|
17442
17564
|
|
|
17443
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
17565
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/utils/uuid.mjs
|
|
17444
17566
|
var uuid42 = function() {
|
|
17445
17567
|
const { crypto: crypto2 } = globalThis;
|
|
17446
17568
|
if (crypto2?.randomUUID) {
|
|
@@ -17452,7 +17574,7 @@ var uuid42 = function() {
|
|
|
17452
17574
|
return "10000000-1000-4000-8000-100000000000".replace(/[018]/g, (c) => (+c ^ randomByte() & 15 >> +c / 4).toString(16));
|
|
17453
17575
|
};
|
|
17454
17576
|
|
|
17455
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
17577
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/errors.mjs
|
|
17456
17578
|
function isAbortError(err) {
|
|
17457
17579
|
return typeof err === "object" && err !== null && (("name" in err) && err.name === "AbortError" || ("message" in err) && String(err.message).includes("FetchRequestCanceledException"));
|
|
17458
17580
|
}
|
|
@@ -17479,7 +17601,7 @@ var castToError = (err) => {
|
|
|
17479
17601
|
return new Error(err);
|
|
17480
17602
|
};
|
|
17481
17603
|
|
|
17482
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
17604
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/core/error.mjs
|
|
17483
17605
|
class OpenAIError extends Error {
|
|
17484
17606
|
}
|
|
17485
17607
|
|
|
@@ -17603,7 +17725,7 @@ class InvalidWebhookSignatureError extends Error {
|
|
|
17603
17725
|
}
|
|
17604
17726
|
}
|
|
17605
17727
|
|
|
17606
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
17728
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/utils/values.mjs
|
|
17607
17729
|
var startsWithSchemeRegexp = /^[a-z][a-z0-9+.-]*:/i;
|
|
17608
17730
|
var isAbsoluteURL = (url2) => {
|
|
17609
17731
|
return startsWithSchemeRegexp.test(url2);
|
|
@@ -17646,13 +17768,13 @@ var safeJSON = (text) => {
|
|
|
17646
17768
|
}
|
|
17647
17769
|
};
|
|
17648
17770
|
|
|
17649
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
17771
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/utils/sleep.mjs
|
|
17650
17772
|
var sleep = (ms) => new Promise((resolve3) => setTimeout(resolve3, ms));
|
|
17651
17773
|
|
|
17652
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
17774
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/version.mjs
|
|
17653
17775
|
var VERSION = "6.9.1";
|
|
17654
17776
|
|
|
17655
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
17777
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/detect-platform.mjs
|
|
17656
17778
|
var isRunningInBrowser = () => {
|
|
17657
17779
|
return typeof window !== "undefined" && typeof window.document !== "undefined" && typeof navigator !== "undefined";
|
|
17658
17780
|
};
|
|
@@ -17781,7 +17903,7 @@ var getPlatformHeaders = () => {
|
|
|
17781
17903
|
return _platformHeaders ?? (_platformHeaders = getPlatformProperties());
|
|
17782
17904
|
};
|
|
17783
17905
|
|
|
17784
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
17906
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/shims.mjs
|
|
17785
17907
|
function getDefaultFetch() {
|
|
17786
17908
|
if (typeof fetch !== "undefined") {
|
|
17787
17909
|
return fetch;
|
|
@@ -17852,7 +17974,7 @@ async function CancelReadableStream(stream) {
|
|
|
17852
17974
|
await cancelPromise;
|
|
17853
17975
|
}
|
|
17854
17976
|
|
|
17855
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
17977
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/request-options.mjs
|
|
17856
17978
|
var FallbackEncoder = ({ headers, body }) => {
|
|
17857
17979
|
return {
|
|
17858
17980
|
bodyHeaders: {
|
|
@@ -17862,7 +17984,7 @@ var FallbackEncoder = ({ headers, body }) => {
|
|
|
17862
17984
|
};
|
|
17863
17985
|
};
|
|
17864
17986
|
|
|
17865
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
17987
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/qs/formats.mjs
|
|
17866
17988
|
var default_format = "RFC3986";
|
|
17867
17989
|
var default_formatter = (v) => String(v);
|
|
17868
17990
|
var formatters = {
|
|
@@ -17871,7 +17993,7 @@ var formatters = {
|
|
|
17871
17993
|
};
|
|
17872
17994
|
var RFC1738 = "RFC1738";
|
|
17873
17995
|
|
|
17874
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
17996
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/qs/utils.mjs
|
|
17875
17997
|
var has = (obj, key) => (has = Object.hasOwn ?? Function.prototype.call.bind(Object.prototype.hasOwnProperty), has(obj, key));
|
|
17876
17998
|
var hex_table = /* @__PURE__ */ (() => {
|
|
17877
17999
|
const array2 = [];
|
|
@@ -17943,7 +18065,7 @@ function maybe_map(val, fn) {
|
|
|
17943
18065
|
return fn(val);
|
|
17944
18066
|
}
|
|
17945
18067
|
|
|
17946
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
18068
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/qs/stringify.mjs
|
|
17947
18069
|
var array_prefix_generators = {
|
|
17948
18070
|
brackets(prefix) {
|
|
17949
18071
|
return String(prefix) + "[]";
|
|
@@ -18170,7 +18292,7 @@ function stringify(object2, opts = {}) {
|
|
|
18170
18292
|
}
|
|
18171
18293
|
return joined.length > 0 ? prefix + joined : "";
|
|
18172
18294
|
}
|
|
18173
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
18295
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/utils/bytes.mjs
|
|
18174
18296
|
function concatBytes(buffers) {
|
|
18175
18297
|
let length = 0;
|
|
18176
18298
|
for (const buffer of buffers) {
|
|
@@ -18195,7 +18317,7 @@ function decodeUTF8(bytes) {
|
|
|
18195
18317
|
return (decodeUTF8_ ?? (decoder = new globalThis.TextDecoder, decodeUTF8_ = decoder.decode.bind(decoder)))(bytes);
|
|
18196
18318
|
}
|
|
18197
18319
|
|
|
18198
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
18320
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/decoders/line.mjs
|
|
18199
18321
|
var _LineDecoder_buffer;
|
|
18200
18322
|
var _LineDecoder_carriageReturnIndex;
|
|
18201
18323
|
|
|
@@ -18275,7 +18397,7 @@ function findDoubleNewlineIndex(buffer) {
|
|
|
18275
18397
|
return -1;
|
|
18276
18398
|
}
|
|
18277
18399
|
|
|
18278
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
18400
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/utils/log.mjs
|
|
18279
18401
|
var levelNumbers = {
|
|
18280
18402
|
off: 0,
|
|
18281
18403
|
error: 200,
|
|
@@ -18347,7 +18469,7 @@ var formatRequestDetails = (details) => {
|
|
|
18347
18469
|
return details;
|
|
18348
18470
|
};
|
|
18349
18471
|
|
|
18350
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
18472
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/core/streaming.mjs
|
|
18351
18473
|
var _Stream_client;
|
|
18352
18474
|
|
|
18353
18475
|
class Stream {
|
|
@@ -18596,7 +18718,7 @@ function partition(str, delimiter) {
|
|
|
18596
18718
|
return [str, "", ""];
|
|
18597
18719
|
}
|
|
18598
18720
|
|
|
18599
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
18721
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/parse.mjs
|
|
18600
18722
|
async function defaultParseResponse(client, props) {
|
|
18601
18723
|
const { response, requestLogID, retryOfRequestLogID, startTime } = props;
|
|
18602
18724
|
const body = await (async () => {
|
|
@@ -18642,7 +18764,7 @@ function addRequestID(value, response) {
|
|
|
18642
18764
|
});
|
|
18643
18765
|
}
|
|
18644
18766
|
|
|
18645
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
18767
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/core/api-promise.mjs
|
|
18646
18768
|
var _APIPromise_client;
|
|
18647
18769
|
|
|
18648
18770
|
class APIPromise extends Promise {
|
|
@@ -18683,7 +18805,7 @@ class APIPromise extends Promise {
|
|
|
18683
18805
|
}
|
|
18684
18806
|
_APIPromise_client = new WeakMap;
|
|
18685
18807
|
|
|
18686
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
18808
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/core/pagination.mjs
|
|
18687
18809
|
var _AbstractPage_client;
|
|
18688
18810
|
|
|
18689
18811
|
class AbstractPage {
|
|
@@ -18812,7 +18934,7 @@ class ConversationCursorPage extends AbstractPage {
|
|
|
18812
18934
|
}
|
|
18813
18935
|
}
|
|
18814
18936
|
|
|
18815
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
18937
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/uploads.mjs
|
|
18816
18938
|
var checkFileSupport = () => {
|
|
18817
18939
|
if (typeof File === "undefined") {
|
|
18818
18940
|
const { process: process2 } = globalThis;
|
|
@@ -18903,7 +19025,7 @@ var addFormValue = async (form, key, value) => {
|
|
|
18903
19025
|
}
|
|
18904
19026
|
};
|
|
18905
19027
|
|
|
18906
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
19028
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/to-file.mjs
|
|
18907
19029
|
var isBlobLike = (value) => value != null && typeof value === "object" && typeof value.size === "number" && typeof value.type === "string" && typeof value.text === "function" && typeof value.slice === "function" && typeof value.arrayBuffer === "function";
|
|
18908
19030
|
var isFileLike = (value) => value != null && typeof value === "object" && typeof value.name === "string" && typeof value.lastModified === "number" && isBlobLike(value);
|
|
18909
19031
|
var isResponseLike = (value) => value != null && typeof value === "object" && typeof value.url === "string" && typeof value.blob === "function";
|
|
@@ -18953,14 +19075,14 @@ function propsForError(value) {
|
|
|
18953
19075
|
const props = Object.getOwnPropertyNames(value);
|
|
18954
19076
|
return `; props: [${props.map((p) => `"${p}"`).join(", ")}]`;
|
|
18955
19077
|
}
|
|
18956
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
19078
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/core/resource.mjs
|
|
18957
19079
|
class APIResource {
|
|
18958
19080
|
constructor(client) {
|
|
18959
19081
|
this._client = client;
|
|
18960
19082
|
}
|
|
18961
19083
|
}
|
|
18962
19084
|
|
|
18963
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
19085
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/utils/path.mjs
|
|
18964
19086
|
function encodeURIPath(str) {
|
|
18965
19087
|
return str.replace(/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/g, encodeURIComponent);
|
|
18966
19088
|
}
|
|
@@ -19015,13 +19137,13 @@ ${underline}`);
|
|
|
19015
19137
|
};
|
|
19016
19138
|
var path3 = /* @__PURE__ */ createPathTagFunction(encodeURIPath);
|
|
19017
19139
|
|
|
19018
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
19140
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/chat/completions/messages.mjs
|
|
19019
19141
|
class Messages extends APIResource {
|
|
19020
19142
|
list(completionID, query = {}, options) {
|
|
19021
19143
|
return this._client.getAPIList(path3`/chat/completions/${completionID}/messages`, CursorPage, { query, ...options });
|
|
19022
19144
|
}
|
|
19023
19145
|
}
|
|
19024
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
19146
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/lib/parser.mjs
|
|
19025
19147
|
function isChatCompletionFunctionTool(tool) {
|
|
19026
19148
|
return tool !== undefined && "function" in tool && tool.function !== undefined;
|
|
19027
19149
|
}
|
|
@@ -19128,7 +19250,7 @@ function validateInputTools(tools) {
|
|
|
19128
19250
|
}
|
|
19129
19251
|
}
|
|
19130
19252
|
|
|
19131
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
19253
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/lib/chatCompletionUtils.mjs
|
|
19132
19254
|
var isAssistantMessage = (message) => {
|
|
19133
19255
|
return message?.role === "assistant";
|
|
19134
19256
|
};
|
|
@@ -19136,7 +19258,7 @@ var isToolMessage = (message) => {
|
|
|
19136
19258
|
return message?.role === "tool";
|
|
19137
19259
|
};
|
|
19138
19260
|
|
|
19139
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
19261
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/lib/EventStream.mjs
|
|
19140
19262
|
var _EventStream_instances;
|
|
19141
19263
|
var _EventStream_connectedPromise;
|
|
19142
19264
|
var _EventStream_resolveConnectedPromise;
|
|
@@ -19289,12 +19411,12 @@ _EventStream_connectedPromise = new WeakMap, _EventStream_resolveConnectedPromis
|
|
|
19289
19411
|
return this._emit("error", new OpenAIError(String(error47)));
|
|
19290
19412
|
};
|
|
19291
19413
|
|
|
19292
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
19414
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/lib/RunnableFunction.mjs
|
|
19293
19415
|
function isRunnableFunctionWithParse(fn) {
|
|
19294
19416
|
return typeof fn.parse === "function";
|
|
19295
19417
|
}
|
|
19296
19418
|
|
|
19297
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
19419
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/lib/AbstractChatCompletionRunner.mjs
|
|
19298
19420
|
var _AbstractChatCompletionRunner_instances;
|
|
19299
19421
|
var _AbstractChatCompletionRunner_getFinalContent;
|
|
19300
19422
|
var _AbstractChatCompletionRunner_getFinalMessage;
|
|
@@ -19549,7 +19671,7 @@ _AbstractChatCompletionRunner_instances = new WeakSet, _AbstractChatCompletionRu
|
|
|
19549
19671
|
return typeof rawContent === "string" ? rawContent : rawContent === undefined ? "undefined" : JSON.stringify(rawContent);
|
|
19550
19672
|
};
|
|
19551
19673
|
|
|
19552
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
19674
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/lib/ChatCompletionRunner.mjs
|
|
19553
19675
|
class ChatCompletionRunner extends AbstractChatCompletionRunner {
|
|
19554
19676
|
static runTools(client, params, options) {
|
|
19555
19677
|
const runner = new ChatCompletionRunner;
|
|
@@ -19568,7 +19690,7 @@ class ChatCompletionRunner extends AbstractChatCompletionRunner {
|
|
|
19568
19690
|
}
|
|
19569
19691
|
}
|
|
19570
19692
|
|
|
19571
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
19693
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/_vendor/partial-json-parser/parser.mjs
|
|
19572
19694
|
var STR = 1;
|
|
19573
19695
|
var NUM = 2;
|
|
19574
19696
|
var ARR = 4;
|
|
@@ -19781,7 +19903,7 @@ var _parseJSON = (jsonString, allow) => {
|
|
|
19781
19903
|
return parseAny();
|
|
19782
19904
|
};
|
|
19783
19905
|
var partialParse = (input) => parseJSON(input, Allow.ALL ^ Allow.NUM);
|
|
19784
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
19906
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/lib/ChatCompletionStream.mjs
|
|
19785
19907
|
var _ChatCompletionStream_instances;
|
|
19786
19908
|
var _ChatCompletionStream_params;
|
|
19787
19909
|
var _ChatCompletionStream_choiceEventStates;
|
|
@@ -20009,7 +20131,7 @@ class ChatCompletionStream extends AbstractChatCompletionRunner {
|
|
|
20009
20131
|
}
|
|
20010
20132
|
return null;
|
|
20011
20133
|
}, _ChatCompletionStream_accumulateChatCompletion = function _ChatCompletionStream_accumulateChatCompletion(chunk) {
|
|
20012
|
-
var
|
|
20134
|
+
var _a2, _b, _c, _d;
|
|
20013
20135
|
let snapshot = __classPrivateFieldGet(this, _ChatCompletionStream_currentChatCompletionSnapshot, "f");
|
|
20014
20136
|
const { choices, ...rest } = chunk;
|
|
20015
20137
|
if (!snapshot) {
|
|
@@ -20033,7 +20155,7 @@ class ChatCompletionStream extends AbstractChatCompletionRunner {
|
|
|
20033
20155
|
assertIsEmpty(rest3);
|
|
20034
20156
|
Object.assign(choice.logprobs, rest3);
|
|
20035
20157
|
if (content2) {
|
|
20036
|
-
(
|
|
20158
|
+
(_a2 = choice.logprobs).content ?? (_a2.content = []);
|
|
20037
20159
|
choice.logprobs.content.push(...content2);
|
|
20038
20160
|
}
|
|
20039
20161
|
if (refusal2) {
|
|
@@ -20254,7 +20376,7 @@ function assertIsEmpty(obj) {
|
|
|
20254
20376
|
}
|
|
20255
20377
|
function assertNever2(_x) {}
|
|
20256
20378
|
|
|
20257
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20379
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/lib/ChatCompletionStreamingRunner.mjs
|
|
20258
20380
|
class ChatCompletionStreamingRunner extends ChatCompletionStream {
|
|
20259
20381
|
static fromReadableStream(stream) {
|
|
20260
20382
|
const runner = new ChatCompletionStreamingRunner(null);
|
|
@@ -20272,7 +20394,7 @@ class ChatCompletionStreamingRunner extends ChatCompletionStream {
|
|
|
20272
20394
|
}
|
|
20273
20395
|
}
|
|
20274
20396
|
|
|
20275
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20397
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/chat/completions/completions.mjs
|
|
20276
20398
|
class Completions extends APIResource {
|
|
20277
20399
|
constructor() {
|
|
20278
20400
|
super(...arguments);
|
|
@@ -20315,7 +20437,7 @@ class Completions extends APIResource {
|
|
|
20315
20437
|
}
|
|
20316
20438
|
Completions.Messages = Messages;
|
|
20317
20439
|
|
|
20318
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20440
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/chat/chat.mjs
|
|
20319
20441
|
class Chat extends APIResource {
|
|
20320
20442
|
constructor() {
|
|
20321
20443
|
super(...arguments);
|
|
@@ -20323,7 +20445,7 @@ class Chat extends APIResource {
|
|
|
20323
20445
|
}
|
|
20324
20446
|
}
|
|
20325
20447
|
Chat.Completions = Completions;
|
|
20326
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20448
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/headers.mjs
|
|
20327
20449
|
var brand_privateNullableHeaders = /* @__PURE__ */ Symbol("brand.privateNullableHeaders");
|
|
20328
20450
|
function* iterateHeaders(headers) {
|
|
20329
20451
|
if (!headers)
|
|
@@ -20386,7 +20508,7 @@ var buildHeaders = (newHeaders) => {
|
|
|
20386
20508
|
return { [brand_privateNullableHeaders]: true, values: targetHeaders, nulls: nullHeaders };
|
|
20387
20509
|
};
|
|
20388
20510
|
|
|
20389
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20511
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/audio/speech.mjs
|
|
20390
20512
|
class Speech extends APIResource {
|
|
20391
20513
|
create(body, options) {
|
|
20392
20514
|
return this._client.post("/audio/speech", {
|
|
@@ -20398,7 +20520,7 @@ class Speech extends APIResource {
|
|
|
20398
20520
|
}
|
|
20399
20521
|
}
|
|
20400
20522
|
|
|
20401
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20523
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/audio/transcriptions.mjs
|
|
20402
20524
|
class Transcriptions extends APIResource {
|
|
20403
20525
|
create(body, options) {
|
|
20404
20526
|
return this._client.post("/audio/transcriptions", multipartFormRequestOptions({
|
|
@@ -20410,14 +20532,14 @@ class Transcriptions extends APIResource {
|
|
|
20410
20532
|
}
|
|
20411
20533
|
}
|
|
20412
20534
|
|
|
20413
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20535
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/audio/translations.mjs
|
|
20414
20536
|
class Translations extends APIResource {
|
|
20415
20537
|
create(body, options) {
|
|
20416
20538
|
return this._client.post("/audio/translations", multipartFormRequestOptions({ body, ...options, __metadata: { model: body.model } }, this._client));
|
|
20417
20539
|
}
|
|
20418
20540
|
}
|
|
20419
20541
|
|
|
20420
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20542
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/audio/audio.mjs
|
|
20421
20543
|
class Audio extends APIResource {
|
|
20422
20544
|
constructor() {
|
|
20423
20545
|
super(...arguments);
|
|
@@ -20429,7 +20551,7 @@ class Audio extends APIResource {
|
|
|
20429
20551
|
Audio.Transcriptions = Transcriptions;
|
|
20430
20552
|
Audio.Translations = Translations;
|
|
20431
20553
|
Audio.Speech = Speech;
|
|
20432
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20554
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/batches.mjs
|
|
20433
20555
|
class Batches extends APIResource {
|
|
20434
20556
|
create(body, options) {
|
|
20435
20557
|
return this._client.post("/batches", { body, ...options });
|
|
@@ -20444,7 +20566,7 @@ class Batches extends APIResource {
|
|
|
20444
20566
|
return this._client.post(path3`/batches/${batchID}/cancel`, options);
|
|
20445
20567
|
}
|
|
20446
20568
|
}
|
|
20447
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20569
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/beta/assistants.mjs
|
|
20448
20570
|
class Assistants extends APIResource {
|
|
20449
20571
|
create(body, options) {
|
|
20450
20572
|
return this._client.post("/assistants", {
|
|
@@ -20481,7 +20603,7 @@ class Assistants extends APIResource {
|
|
|
20481
20603
|
}
|
|
20482
20604
|
}
|
|
20483
20605
|
|
|
20484
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20606
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/beta/realtime/sessions.mjs
|
|
20485
20607
|
class Sessions extends APIResource {
|
|
20486
20608
|
create(body, options) {
|
|
20487
20609
|
return this._client.post("/realtime/sessions", {
|
|
@@ -20492,7 +20614,7 @@ class Sessions extends APIResource {
|
|
|
20492
20614
|
}
|
|
20493
20615
|
}
|
|
20494
20616
|
|
|
20495
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20617
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/beta/realtime/transcription-sessions.mjs
|
|
20496
20618
|
class TranscriptionSessions extends APIResource {
|
|
20497
20619
|
create(body, options) {
|
|
20498
20620
|
return this._client.post("/realtime/transcription_sessions", {
|
|
@@ -20503,7 +20625,7 @@ class TranscriptionSessions extends APIResource {
|
|
|
20503
20625
|
}
|
|
20504
20626
|
}
|
|
20505
20627
|
|
|
20506
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20628
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/beta/realtime/realtime.mjs
|
|
20507
20629
|
class Realtime extends APIResource {
|
|
20508
20630
|
constructor() {
|
|
20509
20631
|
super(...arguments);
|
|
@@ -20514,7 +20636,7 @@ class Realtime extends APIResource {
|
|
|
20514
20636
|
Realtime.Sessions = Sessions;
|
|
20515
20637
|
Realtime.TranscriptionSessions = TranscriptionSessions;
|
|
20516
20638
|
|
|
20517
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20639
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/beta/chatkit/sessions.mjs
|
|
20518
20640
|
class Sessions2 extends APIResource {
|
|
20519
20641
|
create(body, options) {
|
|
20520
20642
|
return this._client.post("/chatkit/sessions", {
|
|
@@ -20531,7 +20653,7 @@ class Sessions2 extends APIResource {
|
|
|
20531
20653
|
}
|
|
20532
20654
|
}
|
|
20533
20655
|
|
|
20534
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20656
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/beta/chatkit/threads.mjs
|
|
20535
20657
|
class Threads extends APIResource {
|
|
20536
20658
|
retrieve(threadID, options) {
|
|
20537
20659
|
return this._client.get(path3`/chatkit/threads/${threadID}`, {
|
|
@@ -20557,7 +20679,7 @@ class Threads extends APIResource {
|
|
|
20557
20679
|
}
|
|
20558
20680
|
}
|
|
20559
20681
|
|
|
20560
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20682
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/beta/chatkit/chatkit.mjs
|
|
20561
20683
|
class ChatKit extends APIResource {
|
|
20562
20684
|
constructor() {
|
|
20563
20685
|
super(...arguments);
|
|
@@ -20568,7 +20690,7 @@ class ChatKit extends APIResource {
|
|
|
20568
20690
|
ChatKit.Sessions = Sessions2;
|
|
20569
20691
|
ChatKit.Threads = Threads;
|
|
20570
20692
|
|
|
20571
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20693
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/beta/threads/messages.mjs
|
|
20572
20694
|
class Messages2 extends APIResource {
|
|
20573
20695
|
create(threadID, body, options) {
|
|
20574
20696
|
return this._client.post(path3`/threads/${threadID}/messages`, {
|
|
@@ -20608,7 +20730,7 @@ class Messages2 extends APIResource {
|
|
|
20608
20730
|
}
|
|
20609
20731
|
}
|
|
20610
20732
|
|
|
20611
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20733
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/beta/threads/runs/steps.mjs
|
|
20612
20734
|
class Steps extends APIResource {
|
|
20613
20735
|
retrieve(stepID, params, options) {
|
|
20614
20736
|
const { thread_id, run_id, ...query } = params;
|
|
@@ -20627,7 +20749,7 @@ class Steps extends APIResource {
|
|
|
20627
20749
|
});
|
|
20628
20750
|
}
|
|
20629
20751
|
}
|
|
20630
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20752
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/utils/base64.mjs
|
|
20631
20753
|
var toFloat32Array = (base64Str) => {
|
|
20632
20754
|
if (typeof Buffer !== "undefined") {
|
|
20633
20755
|
const buf = Buffer.from(base64Str, "base64");
|
|
@@ -20642,7 +20764,7 @@ var toFloat32Array = (base64Str) => {
|
|
|
20642
20764
|
return Array.from(new Float32Array(bytes.buffer));
|
|
20643
20765
|
}
|
|
20644
20766
|
};
|
|
20645
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20767
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/utils/env.mjs
|
|
20646
20768
|
var readEnv = (env) => {
|
|
20647
20769
|
if (typeof globalThis.process !== "undefined") {
|
|
20648
20770
|
return globalThis.process.env?.[env]?.trim() ?? undefined;
|
|
@@ -20652,9 +20774,9 @@ var readEnv = (env) => {
|
|
|
20652
20774
|
}
|
|
20653
20775
|
return;
|
|
20654
20776
|
};
|
|
20655
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20777
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/lib/AssistantStream.mjs
|
|
20656
20778
|
var _AssistantStream_instances;
|
|
20657
|
-
var
|
|
20779
|
+
var _a2;
|
|
20658
20780
|
var _AssistantStream_events;
|
|
20659
20781
|
var _AssistantStream_runStepSnapshots;
|
|
20660
20782
|
var _AssistantStream_messageSnapshots;
|
|
@@ -20745,7 +20867,7 @@ class AssistantStream extends EventStream {
|
|
|
20745
20867
|
};
|
|
20746
20868
|
}
|
|
20747
20869
|
static fromReadableStream(stream) {
|
|
20748
|
-
const runner = new
|
|
20870
|
+
const runner = new _a2;
|
|
20749
20871
|
runner._run(() => runner._fromReadableStream(stream));
|
|
20750
20872
|
return runner;
|
|
20751
20873
|
}
|
|
@@ -20771,7 +20893,7 @@ class AssistantStream extends EventStream {
|
|
|
20771
20893
|
return stream.toReadableStream();
|
|
20772
20894
|
}
|
|
20773
20895
|
static createToolAssistantStream(runId, runs, params, options) {
|
|
20774
|
-
const runner = new
|
|
20896
|
+
const runner = new _a2;
|
|
20775
20897
|
runner._run(() => runner._runToolAssistantStream(runId, runs, params, {
|
|
20776
20898
|
...options,
|
|
20777
20899
|
headers: { ...options?.headers, "X-Stainless-Helper-Method": "stream" }
|
|
@@ -20800,7 +20922,7 @@ class AssistantStream extends EventStream {
|
|
|
20800
20922
|
return this._addRun(__classPrivateFieldGet(this, _AssistantStream_instances, "m", _AssistantStream_endRequest).call(this));
|
|
20801
20923
|
}
|
|
20802
20924
|
static createThreadAssistantStream(params, thread, options) {
|
|
20803
|
-
const runner = new
|
|
20925
|
+
const runner = new _a2;
|
|
20804
20926
|
runner._run(() => runner._threadAssistantStream(params, thread, {
|
|
20805
20927
|
...options,
|
|
20806
20928
|
headers: { ...options?.headers, "X-Stainless-Helper-Method": "stream" }
|
|
@@ -20808,7 +20930,7 @@ class AssistantStream extends EventStream {
|
|
|
20808
20930
|
return runner;
|
|
20809
20931
|
}
|
|
20810
20932
|
static createAssistantStream(threadId, runs, params, options) {
|
|
20811
|
-
const runner = new
|
|
20933
|
+
const runner = new _a2;
|
|
20812
20934
|
runner._run(() => runner._runAssistantStream(threadId, runs, params, {
|
|
20813
20935
|
...options,
|
|
20814
20936
|
headers: { ...options?.headers, "X-Stainless-Helper-Method": "stream" }
|
|
@@ -20943,7 +21065,7 @@ class AssistantStream extends EventStream {
|
|
|
20943
21065
|
return await this._createToolAssistantStream(runs, runId, params, options);
|
|
20944
21066
|
}
|
|
20945
21067
|
}
|
|
20946
|
-
|
|
21068
|
+
_a2 = AssistantStream, _AssistantStream_addEvent = function _AssistantStream_addEvent2(event) {
|
|
20947
21069
|
if (this.ended)
|
|
20948
21070
|
return;
|
|
20949
21071
|
__classPrivateFieldSet(this, _AssistantStream_currentEvent, event, "f");
|
|
@@ -21115,7 +21237,7 @@ _a = AssistantStream, _AssistantStream_addEvent = function _AssistantStream_addE
|
|
|
21115
21237
|
}
|
|
21116
21238
|
let data = event.data;
|
|
21117
21239
|
if (data.delta) {
|
|
21118
|
-
const accumulated =
|
|
21240
|
+
const accumulated = _a2.accumulateDelta(snapshot, data.delta);
|
|
21119
21241
|
__classPrivateFieldGet(this, _AssistantStream_runStepSnapshots, "f")[event.data.id] = accumulated;
|
|
21120
21242
|
}
|
|
21121
21243
|
return __classPrivateFieldGet(this, _AssistantStream_runStepSnapshots, "f")[event.data.id];
|
|
@@ -21163,7 +21285,7 @@ _a = AssistantStream, _AssistantStream_addEvent = function _AssistantStream_addE
|
|
|
21163
21285
|
}
|
|
21164
21286
|
throw Error("Tried to accumulate a non-message event");
|
|
21165
21287
|
}, _AssistantStream_accumulateContent = function _AssistantStream_accumulateContent2(contentElement, currentContent) {
|
|
21166
|
-
return
|
|
21288
|
+
return _a2.accumulateDelta(currentContent, contentElement);
|
|
21167
21289
|
}, _AssistantStream_handleRun = function _AssistantStream_handleRun2(event) {
|
|
21168
21290
|
__classPrivateFieldSet(this, _AssistantStream_currentRunSnapshot, event.data, "f");
|
|
21169
21291
|
switch (event.event) {
|
|
@@ -21191,7 +21313,7 @@ _a = AssistantStream, _AssistantStream_addEvent = function _AssistantStream_addE
|
|
|
21191
21313
|
};
|
|
21192
21314
|
function assertNever3(_x) {}
|
|
21193
21315
|
|
|
21194
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21316
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/beta/threads/runs/runs.mjs
|
|
21195
21317
|
class Runs extends APIResource {
|
|
21196
21318
|
constructor() {
|
|
21197
21319
|
super(...arguments);
|
|
@@ -21306,7 +21428,7 @@ class Runs extends APIResource {
|
|
|
21306
21428
|
}
|
|
21307
21429
|
Runs.Steps = Steps;
|
|
21308
21430
|
|
|
21309
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21431
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/beta/threads/threads.mjs
|
|
21310
21432
|
class Threads2 extends APIResource {
|
|
21311
21433
|
constructor() {
|
|
21312
21434
|
super(...arguments);
|
|
@@ -21358,7 +21480,7 @@ class Threads2 extends APIResource {
|
|
|
21358
21480
|
Threads2.Runs = Runs;
|
|
21359
21481
|
Threads2.Messages = Messages2;
|
|
21360
21482
|
|
|
21361
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21483
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/beta/beta.mjs
|
|
21362
21484
|
class Beta extends APIResource {
|
|
21363
21485
|
constructor() {
|
|
21364
21486
|
super(...arguments);
|
|
@@ -21372,13 +21494,13 @@ Beta.Realtime = Realtime;
|
|
|
21372
21494
|
Beta.ChatKit = ChatKit;
|
|
21373
21495
|
Beta.Assistants = Assistants;
|
|
21374
21496
|
Beta.Threads = Threads2;
|
|
21375
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21497
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/completions.mjs
|
|
21376
21498
|
class Completions2 extends APIResource {
|
|
21377
21499
|
create(body, options) {
|
|
21378
21500
|
return this._client.post("/completions", { body, ...options, stream: body.stream ?? false });
|
|
21379
21501
|
}
|
|
21380
21502
|
}
|
|
21381
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21503
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/containers/files/content.mjs
|
|
21382
21504
|
class Content extends APIResource {
|
|
21383
21505
|
retrieve(fileID, params, options) {
|
|
21384
21506
|
const { container_id } = params;
|
|
@@ -21390,7 +21512,7 @@ class Content extends APIResource {
|
|
|
21390
21512
|
}
|
|
21391
21513
|
}
|
|
21392
21514
|
|
|
21393
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21515
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/containers/files/files.mjs
|
|
21394
21516
|
class Files extends APIResource {
|
|
21395
21517
|
constructor() {
|
|
21396
21518
|
super(...arguments);
|
|
@@ -21419,7 +21541,7 @@ class Files extends APIResource {
|
|
|
21419
21541
|
}
|
|
21420
21542
|
Files.Content = Content;
|
|
21421
21543
|
|
|
21422
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21544
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/containers/containers.mjs
|
|
21423
21545
|
class Containers extends APIResource {
|
|
21424
21546
|
constructor() {
|
|
21425
21547
|
super(...arguments);
|
|
@@ -21442,7 +21564,7 @@ class Containers extends APIResource {
|
|
|
21442
21564
|
}
|
|
21443
21565
|
}
|
|
21444
21566
|
Containers.Files = Files;
|
|
21445
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21567
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/conversations/items.mjs
|
|
21446
21568
|
class Items extends APIResource {
|
|
21447
21569
|
create(conversationID, params, options) {
|
|
21448
21570
|
const { include, ...body } = params;
|
|
@@ -21465,7 +21587,7 @@ class Items extends APIResource {
|
|
|
21465
21587
|
}
|
|
21466
21588
|
}
|
|
21467
21589
|
|
|
21468
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21590
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/conversations/conversations.mjs
|
|
21469
21591
|
class Conversations extends APIResource {
|
|
21470
21592
|
constructor() {
|
|
21471
21593
|
super(...arguments);
|
|
@@ -21485,7 +21607,7 @@ class Conversations extends APIResource {
|
|
|
21485
21607
|
}
|
|
21486
21608
|
}
|
|
21487
21609
|
Conversations.Items = Items;
|
|
21488
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21610
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/embeddings.mjs
|
|
21489
21611
|
class Embeddings extends APIResource {
|
|
21490
21612
|
create(body, options) {
|
|
21491
21613
|
const hasUserProvidedEncodingFormat = !!body.encoding_format;
|
|
@@ -21515,7 +21637,7 @@ class Embeddings extends APIResource {
|
|
|
21515
21637
|
});
|
|
21516
21638
|
}
|
|
21517
21639
|
}
|
|
21518
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21640
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/evals/runs/output-items.mjs
|
|
21519
21641
|
class OutputItems extends APIResource {
|
|
21520
21642
|
retrieve(outputItemID, params, options) {
|
|
21521
21643
|
const { eval_id, run_id } = params;
|
|
@@ -21527,7 +21649,7 @@ class OutputItems extends APIResource {
|
|
|
21527
21649
|
}
|
|
21528
21650
|
}
|
|
21529
21651
|
|
|
21530
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21652
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/evals/runs/runs.mjs
|
|
21531
21653
|
class Runs2 extends APIResource {
|
|
21532
21654
|
constructor() {
|
|
21533
21655
|
super(...arguments);
|
|
@@ -21557,7 +21679,7 @@ class Runs2 extends APIResource {
|
|
|
21557
21679
|
}
|
|
21558
21680
|
Runs2.OutputItems = OutputItems;
|
|
21559
21681
|
|
|
21560
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21682
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/evals/evals.mjs
|
|
21561
21683
|
class Evals extends APIResource {
|
|
21562
21684
|
constructor() {
|
|
21563
21685
|
super(...arguments);
|
|
@@ -21580,7 +21702,7 @@ class Evals extends APIResource {
|
|
|
21580
21702
|
}
|
|
21581
21703
|
}
|
|
21582
21704
|
Evals.Runs = Runs2;
|
|
21583
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21705
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/files.mjs
|
|
21584
21706
|
class Files2 extends APIResource {
|
|
21585
21707
|
create(body, options) {
|
|
21586
21708
|
return this._client.post("/files", multipartFormRequestOptions({ body, ...options }, this._client));
|
|
@@ -21617,11 +21739,11 @@ class Files2 extends APIResource {
|
|
|
21617
21739
|
return file2;
|
|
21618
21740
|
}
|
|
21619
21741
|
}
|
|
21620
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21742
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/fine-tuning/methods.mjs
|
|
21621
21743
|
class Methods extends APIResource {
|
|
21622
21744
|
}
|
|
21623
21745
|
|
|
21624
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21746
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/fine-tuning/alpha/graders.mjs
|
|
21625
21747
|
class Graders extends APIResource {
|
|
21626
21748
|
run(body, options) {
|
|
21627
21749
|
return this._client.post("/fine_tuning/alpha/graders/run", { body, ...options });
|
|
@@ -21631,7 +21753,7 @@ class Graders extends APIResource {
|
|
|
21631
21753
|
}
|
|
21632
21754
|
}
|
|
21633
21755
|
|
|
21634
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21756
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/fine-tuning/alpha/alpha.mjs
|
|
21635
21757
|
class Alpha extends APIResource {
|
|
21636
21758
|
constructor() {
|
|
21637
21759
|
super(...arguments);
|
|
@@ -21640,7 +21762,7 @@ class Alpha extends APIResource {
|
|
|
21640
21762
|
}
|
|
21641
21763
|
Alpha.Graders = Graders;
|
|
21642
21764
|
|
|
21643
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21765
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/fine-tuning/checkpoints/permissions.mjs
|
|
21644
21766
|
class Permissions extends APIResource {
|
|
21645
21767
|
create(fineTunedModelCheckpoint, body, options) {
|
|
21646
21768
|
return this._client.getAPIList(path3`/fine_tuning/checkpoints/${fineTunedModelCheckpoint}/permissions`, Page, { body, method: "post", ...options });
|
|
@@ -21657,7 +21779,7 @@ class Permissions extends APIResource {
|
|
|
21657
21779
|
}
|
|
21658
21780
|
}
|
|
21659
21781
|
|
|
21660
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21782
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/fine-tuning/checkpoints/checkpoints.mjs
|
|
21661
21783
|
class Checkpoints extends APIResource {
|
|
21662
21784
|
constructor() {
|
|
21663
21785
|
super(...arguments);
|
|
@@ -21666,14 +21788,14 @@ class Checkpoints extends APIResource {
|
|
|
21666
21788
|
}
|
|
21667
21789
|
Checkpoints.Permissions = Permissions;
|
|
21668
21790
|
|
|
21669
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21791
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/fine-tuning/jobs/checkpoints.mjs
|
|
21670
21792
|
class Checkpoints2 extends APIResource {
|
|
21671
21793
|
list(fineTuningJobID, query = {}, options) {
|
|
21672
21794
|
return this._client.getAPIList(path3`/fine_tuning/jobs/${fineTuningJobID}/checkpoints`, CursorPage, { query, ...options });
|
|
21673
21795
|
}
|
|
21674
21796
|
}
|
|
21675
21797
|
|
|
21676
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21798
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/fine-tuning/jobs/jobs.mjs
|
|
21677
21799
|
class Jobs extends APIResource {
|
|
21678
21800
|
constructor() {
|
|
21679
21801
|
super(...arguments);
|
|
@@ -21703,7 +21825,7 @@ class Jobs extends APIResource {
|
|
|
21703
21825
|
}
|
|
21704
21826
|
Jobs.Checkpoints = Checkpoints2;
|
|
21705
21827
|
|
|
21706
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21828
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/fine-tuning/fine-tuning.mjs
|
|
21707
21829
|
class FineTuning extends APIResource {
|
|
21708
21830
|
constructor() {
|
|
21709
21831
|
super(...arguments);
|
|
@@ -21717,11 +21839,11 @@ FineTuning.Methods = Methods;
|
|
|
21717
21839
|
FineTuning.Jobs = Jobs;
|
|
21718
21840
|
FineTuning.Checkpoints = Checkpoints;
|
|
21719
21841
|
FineTuning.Alpha = Alpha;
|
|
21720
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21842
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/graders/grader-models.mjs
|
|
21721
21843
|
class GraderModels extends APIResource {
|
|
21722
21844
|
}
|
|
21723
21845
|
|
|
21724
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21846
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/graders/graders.mjs
|
|
21725
21847
|
class Graders2 extends APIResource {
|
|
21726
21848
|
constructor() {
|
|
21727
21849
|
super(...arguments);
|
|
@@ -21729,7 +21851,7 @@ class Graders2 extends APIResource {
|
|
|
21729
21851
|
}
|
|
21730
21852
|
}
|
|
21731
21853
|
Graders2.GraderModels = GraderModels;
|
|
21732
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21854
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/images.mjs
|
|
21733
21855
|
class Images extends APIResource {
|
|
21734
21856
|
createVariation(body, options) {
|
|
21735
21857
|
return this._client.post("/images/variations", multipartFormRequestOptions({ body, ...options }, this._client));
|
|
@@ -21741,7 +21863,7 @@ class Images extends APIResource {
|
|
|
21741
21863
|
return this._client.post("/images/generations", { body, ...options, stream: body.stream ?? false });
|
|
21742
21864
|
}
|
|
21743
21865
|
}
|
|
21744
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21866
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/models.mjs
|
|
21745
21867
|
class Models extends APIResource {
|
|
21746
21868
|
retrieve(model, options) {
|
|
21747
21869
|
return this._client.get(path3`/models/${model}`, options);
|
|
@@ -21753,13 +21875,13 @@ class Models extends APIResource {
|
|
|
21753
21875
|
return this._client.delete(path3`/models/${model}`, options);
|
|
21754
21876
|
}
|
|
21755
21877
|
}
|
|
21756
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21878
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/moderations.mjs
|
|
21757
21879
|
class Moderations extends APIResource {
|
|
21758
21880
|
create(body, options) {
|
|
21759
21881
|
return this._client.post("/moderations", { body, ...options });
|
|
21760
21882
|
}
|
|
21761
21883
|
}
|
|
21762
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21884
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/realtime/calls.mjs
|
|
21763
21885
|
class Calls extends APIResource {
|
|
21764
21886
|
accept(callID, body, options) {
|
|
21765
21887
|
return this._client.post(path3`/realtime/calls/${callID}/accept`, {
|
|
@@ -21790,14 +21912,14 @@ class Calls extends APIResource {
|
|
|
21790
21912
|
}
|
|
21791
21913
|
}
|
|
21792
21914
|
|
|
21793
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21915
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/realtime/client-secrets.mjs
|
|
21794
21916
|
class ClientSecrets extends APIResource {
|
|
21795
21917
|
create(body, options) {
|
|
21796
21918
|
return this._client.post("/realtime/client_secrets", { body, ...options });
|
|
21797
21919
|
}
|
|
21798
21920
|
}
|
|
21799
21921
|
|
|
21800
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21922
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/realtime/realtime.mjs
|
|
21801
21923
|
class Realtime2 extends APIResource {
|
|
21802
21924
|
constructor() {
|
|
21803
21925
|
super(...arguments);
|
|
@@ -21807,7 +21929,7 @@ class Realtime2 extends APIResource {
|
|
|
21807
21929
|
}
|
|
21808
21930
|
Realtime2.ClientSecrets = ClientSecrets;
|
|
21809
21931
|
Realtime2.Calls = Calls;
|
|
21810
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21932
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/lib/ResponsesParser.mjs
|
|
21811
21933
|
function maybeParseResponse(response, params) {
|
|
21812
21934
|
if (!params || !hasAutoParseableInput2(params)) {
|
|
21813
21935
|
return {
|
|
@@ -21928,7 +22050,7 @@ function addOutputText(rsp) {
|
|
|
21928
22050
|
rsp.output_text = texts.join("");
|
|
21929
22051
|
}
|
|
21930
22052
|
|
|
21931
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
22053
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/lib/responses/ResponseStream.mjs
|
|
21932
22054
|
var _ResponseStream_instances;
|
|
21933
22055
|
var _ResponseStream_params;
|
|
21934
22056
|
var _ResponseStream_currentResponseSnapshot;
|
|
@@ -22187,21 +22309,21 @@ function finalizeResponse(snapshot, params) {
|
|
|
22187
22309
|
return maybeParseResponse(snapshot, params);
|
|
22188
22310
|
}
|
|
22189
22311
|
|
|
22190
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
22312
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/responses/input-items.mjs
|
|
22191
22313
|
class InputItems extends APIResource {
|
|
22192
22314
|
list(responseID, query = {}, options) {
|
|
22193
22315
|
return this._client.getAPIList(path3`/responses/${responseID}/input_items`, CursorPage, { query, ...options });
|
|
22194
22316
|
}
|
|
22195
22317
|
}
|
|
22196
22318
|
|
|
22197
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
22319
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/responses/input-tokens.mjs
|
|
22198
22320
|
class InputTokens extends APIResource {
|
|
22199
22321
|
count(body = {}, options) {
|
|
22200
22322
|
return this._client.post("/responses/input_tokens", { body, ...options });
|
|
22201
22323
|
}
|
|
22202
22324
|
}
|
|
22203
22325
|
|
|
22204
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
22326
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/responses/responses.mjs
|
|
22205
22327
|
class Responses extends APIResource {
|
|
22206
22328
|
constructor() {
|
|
22207
22329
|
super(...arguments);
|
|
@@ -22246,14 +22368,14 @@ class Responses extends APIResource {
|
|
|
22246
22368
|
}
|
|
22247
22369
|
Responses.InputItems = InputItems;
|
|
22248
22370
|
Responses.InputTokens = InputTokens;
|
|
22249
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
22371
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/uploads/parts.mjs
|
|
22250
22372
|
class Parts extends APIResource {
|
|
22251
22373
|
create(uploadID, body, options) {
|
|
22252
22374
|
return this._client.post(path3`/uploads/${uploadID}/parts`, multipartFormRequestOptions({ body, ...options }, this._client));
|
|
22253
22375
|
}
|
|
22254
22376
|
}
|
|
22255
22377
|
|
|
22256
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
22378
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/uploads/uploads.mjs
|
|
22257
22379
|
class Uploads extends APIResource {
|
|
22258
22380
|
constructor() {
|
|
22259
22381
|
super(...arguments);
|
|
@@ -22270,7 +22392,7 @@ class Uploads extends APIResource {
|
|
|
22270
22392
|
}
|
|
22271
22393
|
}
|
|
22272
22394
|
Uploads.Parts = Parts;
|
|
22273
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
22395
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/lib/Util.mjs
|
|
22274
22396
|
var allSettledWithThrow = async (promises) => {
|
|
22275
22397
|
const results = await Promise.allSettled(promises);
|
|
22276
22398
|
const rejected = results.filter((result) => result.status === "rejected");
|
|
@@ -22289,7 +22411,7 @@ var allSettledWithThrow = async (promises) => {
|
|
|
22289
22411
|
return values2;
|
|
22290
22412
|
};
|
|
22291
22413
|
|
|
22292
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
22414
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/vector-stores/file-batches.mjs
|
|
22293
22415
|
class FileBatches extends APIResource {
|
|
22294
22416
|
create(vectorStoreID, body, options) {
|
|
22295
22417
|
return this._client.post(path3`/vector_stores/${vectorStoreID}/file_batches`, {
|
|
@@ -22379,7 +22501,7 @@ class FileBatches extends APIResource {
|
|
|
22379
22501
|
}
|
|
22380
22502
|
}
|
|
22381
22503
|
|
|
22382
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
22504
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/vector-stores/files.mjs
|
|
22383
22505
|
class Files3 extends APIResource {
|
|
22384
22506
|
create(vectorStoreID, body, options) {
|
|
22385
22507
|
return this._client.post(path3`/vector_stores/${vectorStoreID}/files`, {
|
|
@@ -22470,7 +22592,7 @@ class Files3 extends APIResource {
|
|
|
22470
22592
|
}
|
|
22471
22593
|
}
|
|
22472
22594
|
|
|
22473
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
22595
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/vector-stores/vector-stores.mjs
|
|
22474
22596
|
class VectorStores extends APIResource {
|
|
22475
22597
|
constructor() {
|
|
22476
22598
|
super(...arguments);
|
|
@@ -22521,7 +22643,7 @@ class VectorStores extends APIResource {
|
|
|
22521
22643
|
}
|
|
22522
22644
|
VectorStores.Files = Files3;
|
|
22523
22645
|
VectorStores.FileBatches = FileBatches;
|
|
22524
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
22646
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/videos.mjs
|
|
22525
22647
|
class Videos extends APIResource {
|
|
22526
22648
|
create(body, options) {
|
|
22527
22649
|
return this._client.post("/videos", maybeMultipartFormRequestOptions({ body, ...options }, this._client));
|
|
@@ -22547,7 +22669,7 @@ class Videos extends APIResource {
|
|
|
22547
22669
|
return this._client.post(path3`/videos/${videoID}/remix`, maybeMultipartFormRequestOptions({ body, ...options }, this._client));
|
|
22548
22670
|
}
|
|
22549
22671
|
}
|
|
22550
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
22672
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/webhooks.mjs
|
|
22551
22673
|
var _Webhooks_instances;
|
|
22552
22674
|
var _Webhooks_validateSecret;
|
|
22553
22675
|
var _Webhooks_getRequiredHeader;
|
|
@@ -22613,9 +22735,9 @@ _Webhooks_instances = new WeakSet, _Webhooks_validateSecret = function _Webhooks
|
|
|
22613
22735
|
}
|
|
22614
22736
|
return value;
|
|
22615
22737
|
};
|
|
22616
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
22738
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/client.mjs
|
|
22617
22739
|
var _OpenAI_instances;
|
|
22618
|
-
var
|
|
22740
|
+
var _a3;
|
|
22619
22741
|
var _OpenAI_encoder;
|
|
22620
22742
|
var _OpenAI_baseURLOverridden;
|
|
22621
22743
|
|
|
@@ -22668,7 +22790,7 @@ https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety
|
|
|
22668
22790
|
`);
|
|
22669
22791
|
}
|
|
22670
22792
|
this.baseURL = options.baseURL;
|
|
22671
|
-
this.timeout = options.timeout ??
|
|
22793
|
+
this.timeout = options.timeout ?? _a3.DEFAULT_TIMEOUT;
|
|
22672
22794
|
this.logger = options.logger ?? console;
|
|
22673
22795
|
const defaultLogLevel = "warn";
|
|
22674
22796
|
this.logLevel = defaultLogLevel;
|
|
@@ -23014,10 +23136,10 @@ https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety
|
|
|
23014
23136
|
}
|
|
23015
23137
|
}
|
|
23016
23138
|
}
|
|
23017
|
-
|
|
23139
|
+
_a3 = OpenAI, _OpenAI_encoder = new WeakMap, _OpenAI_instances = new WeakSet, _OpenAI_baseURLOverridden = function _OpenAI_baseURLOverridden2() {
|
|
23018
23140
|
return this.baseURL !== "https://api.openai.com/v1";
|
|
23019
23141
|
};
|
|
23020
|
-
OpenAI.OpenAI =
|
|
23142
|
+
OpenAI.OpenAI = _a3;
|
|
23021
23143
|
OpenAI.DEFAULT_TIMEOUT = 600000;
|
|
23022
23144
|
OpenAI.OpenAIError = OpenAIError;
|
|
23023
23145
|
OpenAI.APIError = APIError;
|
|
@@ -23055,7 +23177,7 @@ OpenAI.Conversations = Conversations;
|
|
|
23055
23177
|
OpenAI.Evals = Evals;
|
|
23056
23178
|
OpenAI.Containers = Containers;
|
|
23057
23179
|
OpenAI.Videos = Videos;
|
|
23058
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
23180
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/azure.mjs
|
|
23059
23181
|
var _deployments_endpoints = new Set([
|
|
23060
23182
|
"/completions",
|
|
23061
23183
|
"/chat/completions",
|
|
@@ -23067,7 +23189,7 @@ var _deployments_endpoints = new Set([
|
|
|
23067
23189
|
"/batches",
|
|
23068
23190
|
"/images/edits"
|
|
23069
23191
|
]);
|
|
23070
|
-
// ../../node_modules/.pnpm/safegen@0.8.2_@floating-ui+react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.
|
|
23192
|
+
// ../../node_modules/.pnpm/safegen@0.8.2_@floating-ui+react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.0__6221035d679c45235af6a0313d7a2980/node_modules/safegen/dist/openai/index.js
|
|
23071
23193
|
function buildOpenAiRequestParams(model, ...params) {
|
|
23072
23194
|
const [instruction, jsonSchema, _, previouslyFailedResponses] = params;
|
|
23073
23195
|
const messages = [{
|
|
@@ -33023,9 +33145,9 @@ function Connection(options, queues = {}, { onopen = noop2, onend = noop2, onclo
|
|
|
33023
33145
|
function toBuffer(q2) {
|
|
33024
33146
|
if (q2.parameters.length >= 65534)
|
|
33025
33147
|
throw Errors.generic("MAX_PARAMETERS_EXCEEDED", "Max number of parameters (65534) exceeded");
|
|
33026
|
-
return q2.options.simple ? bytes_default().Q().str(q2.statement.string + bytes_default.N).end() : q2.describeFirst ? Buffer.concat([
|
|
33148
|
+
return q2.options.simple ? bytes_default().Q().str(q2.statement.string + bytes_default.N).end() : q2.describeFirst ? Buffer.concat([describe3(q2), Flush]) : q2.prepare ? q2.prepared ? prepared(q2) : Buffer.concat([describe3(q2), prepared(q2)]) : unnamed(q2);
|
|
33027
33149
|
}
|
|
33028
|
-
function
|
|
33150
|
+
function describe3(q2) {
|
|
33029
33151
|
return Buffer.concat([
|
|
33030
33152
|
Parse(q2.statement.string, q2.parameters, q2.statement.types, q2.statement.name),
|
|
33031
33153
|
Describe("S", q2.statement.name)
|
|
@@ -36443,7 +36565,7 @@ function drizzle(...params) {
|
|
|
36443
36565
|
drizzle2.mock = mock;
|
|
36444
36566
|
})(drizzle || (drizzle = {}));
|
|
36445
36567
|
|
|
36446
|
-
// ../../node_modules/.pnpm/@t3-oss+env-core@0.13.8_arktype@2.1.27_typescript@5.9.3_zod@4.1.
|
|
36568
|
+
// ../../node_modules/.pnpm/@t3-oss+env-core@0.13.8_arktype@2.1.27_typescript@5.9.3_zod@4.1.13/node_modules/@t3-oss/env-core/dist/src-Bb3GbGAa.js
|
|
36447
36569
|
function ensureSynchronous(value, message) {
|
|
36448
36570
|
if (value instanceof Promise)
|
|
36449
36571
|
throw new Error(message);
|
|
@@ -38241,14 +38363,14 @@ class BaseNode extends Callable {
|
|
|
38241
38363
|
}
|
|
38242
38364
|
return transformedNode = $2.node(this.kind, transformedInner, ctx.parseOptions);
|
|
38243
38365
|
}
|
|
38244
|
-
configureReferences(
|
|
38366
|
+
configureReferences(meta3, selector = "references") {
|
|
38245
38367
|
const normalized = NodeSelector.normalize(selector);
|
|
38246
|
-
const mapper = typeof
|
|
38368
|
+
const mapper = typeof meta3 === "string" ? (kind, inner) => ({
|
|
38247
38369
|
...inner,
|
|
38248
|
-
meta: { ...inner.meta, description:
|
|
38249
|
-
}) : typeof
|
|
38370
|
+
meta: { ...inner.meta, description: meta3 }
|
|
38371
|
+
}) : typeof meta3 === "function" ? (kind, inner) => ({ ...inner, meta: meta3(inner.meta) }) : (kind, inner) => ({
|
|
38250
38372
|
...inner,
|
|
38251
|
-
meta: { ...inner.meta, ...
|
|
38373
|
+
meta: { ...inner.meta, ...meta3 }
|
|
38252
38374
|
});
|
|
38253
38375
|
if (normalized.boundary === "self") {
|
|
38254
38376
|
return this.$.node(this.kind, mapper(this.kind, { ...this.inner, meta: this.meta }));
|
|
@@ -38426,21 +38548,21 @@ var pipeMorphed = (from, to2, ctx) => from.distribute((fromBranch) => _pipeMorph
|
|
|
38426
38548
|
return Disjoint.init("union", from.branches, to2.branches);
|
|
38427
38549
|
if (viableBranches.length < from.branches.length || !from.branches.every((branch, i2) => branch.rawIn.equals(viableBranches[i2].rawIn)))
|
|
38428
38550
|
return ctx.$.parseSchema(viableBranches);
|
|
38429
|
-
let
|
|
38551
|
+
let meta3;
|
|
38430
38552
|
if (viableBranches.length === 1) {
|
|
38431
38553
|
const onlyBranch = viableBranches[0];
|
|
38432
|
-
if (!
|
|
38554
|
+
if (!meta3)
|
|
38433
38555
|
return onlyBranch;
|
|
38434
38556
|
return ctx.$.node("morph", {
|
|
38435
38557
|
...onlyBranch.inner,
|
|
38436
|
-
in: onlyBranch.rawIn.configure(
|
|
38558
|
+
in: onlyBranch.rawIn.configure(meta3, "self")
|
|
38437
38559
|
});
|
|
38438
38560
|
}
|
|
38439
38561
|
const schema = {
|
|
38440
38562
|
branches: viableBranches
|
|
38441
38563
|
};
|
|
38442
|
-
if (
|
|
38443
|
-
schema.meta =
|
|
38564
|
+
if (meta3)
|
|
38565
|
+
schema.meta = meta3;
|
|
38444
38566
|
return ctx.$.parseSchema(schema);
|
|
38445
38567
|
});
|
|
38446
38568
|
var _pipeMorphed = (from, to2, ctx) => {
|
|
@@ -39242,11 +39364,11 @@ var parseNode = (ctx) => {
|
|
|
39242
39364
|
const configuredSchema = impl.applyConfig?.(ctx.def, ctx.$.resolvedConfig) ?? ctx.def;
|
|
39243
39365
|
const inner = {};
|
|
39244
39366
|
const { meta: metaSchema, ...innerSchema } = configuredSchema;
|
|
39245
|
-
const
|
|
39367
|
+
const meta3 = metaSchema === undefined ? {} : typeof metaSchema === "string" ? { description: metaSchema } : metaSchema;
|
|
39246
39368
|
const innerSchemaEntries = entriesOf(innerSchema).sort(([lKey], [rKey]) => isNodeKind(lKey) ? isNodeKind(rKey) ? precedenceOfKind(lKey) - precedenceOfKind(rKey) : 1 : isNodeKind(rKey) ? -1 : lKey < rKey ? -1 : 1).filter(([k2, v2]) => {
|
|
39247
39369
|
if (k2.startsWith("meta.")) {
|
|
39248
39370
|
const metaKey = k2.slice(5);
|
|
39249
|
-
|
|
39371
|
+
meta3[metaKey] = v2;
|
|
39250
39372
|
return false;
|
|
39251
39373
|
}
|
|
39252
39374
|
return true;
|
|
@@ -39265,19 +39387,19 @@ var parseNode = (ctx) => {
|
|
|
39265
39387
|
if (reduced) {
|
|
39266
39388
|
if (reduced instanceof Disjoint)
|
|
39267
39389
|
return reduced.throw();
|
|
39268
|
-
return withMeta(reduced,
|
|
39390
|
+
return withMeta(reduced, meta3);
|
|
39269
39391
|
}
|
|
39270
39392
|
}
|
|
39271
39393
|
const node = createNode({
|
|
39272
39394
|
id: ctx.id,
|
|
39273
39395
|
kind: ctx.kind,
|
|
39274
39396
|
inner,
|
|
39275
|
-
meta,
|
|
39397
|
+
meta: meta3,
|
|
39276
39398
|
$: ctx.$
|
|
39277
39399
|
});
|
|
39278
39400
|
return node;
|
|
39279
39401
|
};
|
|
39280
|
-
var createNode = ({ id, kind, inner, meta, $: $2, ignoreCache }) => {
|
|
39402
|
+
var createNode = ({ id, kind, inner, meta: meta3, $: $2, ignoreCache }) => {
|
|
39281
39403
|
const impl = nodeImplementationsByKind[kind];
|
|
39282
39404
|
const innerEntries = entriesOf(inner);
|
|
39283
39405
|
const children = [];
|
|
@@ -39299,8 +39421,8 @@ var createNode = ({ id, kind, inner, meta, $: $2, ignoreCache }) => {
|
|
|
39299
39421
|
innerJson = impl.finalizeInnerJson(innerJson);
|
|
39300
39422
|
let json3 = { ...innerJson };
|
|
39301
39423
|
let metaJson = {};
|
|
39302
|
-
if (!isEmptyObject(
|
|
39303
|
-
metaJson = flatMorph(
|
|
39424
|
+
if (!isEmptyObject(meta3)) {
|
|
39425
|
+
metaJson = flatMorph(meta3, (k2, v2) => [
|
|
39304
39426
|
k2,
|
|
39305
39427
|
k2 === "examples" ? v2 : defaultValueSerializer(v2)
|
|
39306
39428
|
]);
|
|
@@ -39321,7 +39443,7 @@ var createNode = ({ id, kind, inner, meta, $: $2, ignoreCache }) => {
|
|
|
39321
39443
|
innerEntries,
|
|
39322
39444
|
innerJson,
|
|
39323
39445
|
innerHash,
|
|
39324
|
-
meta,
|
|
39446
|
+
meta: meta3,
|
|
39325
39447
|
metaJson,
|
|
39326
39448
|
json: json3,
|
|
39327
39449
|
hash: hash2,
|
|
@@ -39350,14 +39472,14 @@ var withId = (node, id) => {
|
|
|
39350
39472
|
ignoreCache: true
|
|
39351
39473
|
});
|
|
39352
39474
|
};
|
|
39353
|
-
var withMeta = (node,
|
|
39475
|
+
var withMeta = (node, meta3, id) => {
|
|
39354
39476
|
if (id && isNode(nodesByRegisteredId[id]))
|
|
39355
39477
|
throwInternalError(`Unexpected attempt to overwrite node id ${id}`);
|
|
39356
39478
|
return createNode({
|
|
39357
|
-
id: id ?? registerNodeId(
|
|
39479
|
+
id: id ?? registerNodeId(meta3.alias ?? node.kind),
|
|
39358
39480
|
kind: node.kind,
|
|
39359
39481
|
inner: node.inner,
|
|
39360
|
-
meta,
|
|
39482
|
+
meta: meta3,
|
|
39361
39483
|
$: node.$
|
|
39362
39484
|
});
|
|
39363
39485
|
};
|
|
@@ -39743,8 +39865,8 @@ class BaseRoot extends BaseNode {
|
|
|
39743
39865
|
const rNode = this.$.parseDefinition(r2);
|
|
39744
39866
|
return rNode.extends(this);
|
|
39745
39867
|
}
|
|
39746
|
-
configure(
|
|
39747
|
-
return this.configureReferences(
|
|
39868
|
+
configure(meta3, selector = "shallow") {
|
|
39869
|
+
return this.configureReferences(meta3, selector);
|
|
39748
39870
|
}
|
|
39749
39871
|
describe(description, selector = "shallow") {
|
|
39750
39872
|
return this.configure({ description }, selector);
|
|
@@ -44958,7 +45080,7 @@ async function getLogs(logger, logFilePath = `/var/log/nginx/access.log`, now =
|
|
|
44958
45080
|
});
|
|
44959
45081
|
}
|
|
44960
45082
|
|
|
44961
|
-
// ../../node_modules/.pnpm/safegen@0.8.2_@floating-ui+react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.
|
|
45083
|
+
// ../../node_modules/.pnpm/safegen@0.8.2_@floating-ui+react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.0__6221035d679c45235af6a0313d7a2980/node_modules/safegen/dist/arktype/index.js
|
|
44962
45084
|
function arktypeToJsonSchema(type2) {
|
|
44963
45085
|
return type2.toJsonSchema();
|
|
44964
45086
|
}
|