tempest.games 0.2.79 → 0.2.81
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/app/assets/{index-DbvMRLrQ.js → index-HwPyOlk5.js} +18 -18
- package/app/index.html +1 -1
- package/bin/backend.bun.js +8 -1
- package/bin/backend.worker.game.bun.js +7 -0
- package/bin/backend.worker.tribunal.bun.js +562 -433
- package/bin/frontend.bun.js +8 -1
- package/bin/setup-db.bun.js +1 -1
- package/package.json +4 -4
|
@@ -3074,6 +3074,13 @@ var usersInRooms = join({
|
|
|
3074
3074
|
isAType: isRoomKey,
|
|
3075
3075
|
isBType: isUserKey
|
|
3076
3076
|
});
|
|
3077
|
+
var ownersOfRooms = join({
|
|
3078
|
+
key: `ownersOfRooms`,
|
|
3079
|
+
between: [`user`, `room`],
|
|
3080
|
+
cardinality: `1:n`,
|
|
3081
|
+
isAType: isUserKey,
|
|
3082
|
+
isBType: isRoomKey
|
|
3083
|
+
});
|
|
3077
3084
|
var usersInMyRoomView = selectorFamily({
|
|
3078
3085
|
key: `usersInMyRoomView`,
|
|
3079
3086
|
get: (myUsername) => ({ find }) => {
|
|
@@ -3449,7 +3456,7 @@ var selfListSelectors = selectorFamily({
|
|
|
3449
3456
|
});
|
|
3450
3457
|
var ROOMS = globalThis.ATOM_IO_REALTIME_SERVER_ROOMS ?? (globalThis.ATOM_IO_REALTIME_SERVER_ROOMS = /* @__PURE__ */ new Map);
|
|
3451
3458
|
|
|
3452
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
3459
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/external.js
|
|
3453
3460
|
var exports_external = {};
|
|
3454
3461
|
__export(exports_external, {
|
|
3455
3462
|
xid: () => xid2,
|
|
@@ -3483,6 +3490,7 @@ __export(exports_external, {
|
|
|
3483
3490
|
string: () => string2,
|
|
3484
3491
|
strictObject: () => strictObject,
|
|
3485
3492
|
startsWith: () => _startsWith,
|
|
3493
|
+
slugify: () => _slugify,
|
|
3486
3494
|
size: () => _size,
|
|
3487
3495
|
setErrorMap: () => setErrorMap,
|
|
3488
3496
|
set: () => set,
|
|
@@ -3528,9 +3536,11 @@ __export(exports_external, {
|
|
|
3528
3536
|
minSize: () => _minSize,
|
|
3529
3537
|
minLength: () => _minLength,
|
|
3530
3538
|
mime: () => _mime,
|
|
3539
|
+
meta: () => meta2,
|
|
3531
3540
|
maxSize: () => _maxSize,
|
|
3532
3541
|
maxLength: () => _maxLength,
|
|
3533
3542
|
map: () => map,
|
|
3543
|
+
mac: () => mac2,
|
|
3534
3544
|
lte: () => _lte,
|
|
3535
3545
|
lt: () => _lt,
|
|
3536
3546
|
lowercase: () => _lowercase,
|
|
@@ -3575,6 +3585,7 @@ __export(exports_external, {
|
|
|
3575
3585
|
email: () => email2,
|
|
3576
3586
|
e164: () => e1642,
|
|
3577
3587
|
discriminatedUnion: () => discriminatedUnion,
|
|
3588
|
+
describe: () => describe2,
|
|
3578
3589
|
decodeAsync: () => decodeAsync2,
|
|
3579
3590
|
decode: () => decode2,
|
|
3580
3591
|
date: () => date3,
|
|
@@ -3633,6 +3644,7 @@ __export(exports_external, {
|
|
|
3633
3644
|
ZodNanoID: () => ZodNanoID,
|
|
3634
3645
|
ZodNaN: () => ZodNaN,
|
|
3635
3646
|
ZodMap: () => ZodMap,
|
|
3647
|
+
ZodMAC: () => ZodMAC,
|
|
3636
3648
|
ZodLiteral: () => ZodLiteral,
|
|
3637
3649
|
ZodLazy: () => ZodLazy,
|
|
3638
3650
|
ZodKSUID: () => ZodKSUID,
|
|
@@ -3679,7 +3691,7 @@ __export(exports_external, {
|
|
|
3679
3691
|
$brand: () => $brand
|
|
3680
3692
|
});
|
|
3681
3693
|
|
|
3682
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
3694
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/index.js
|
|
3683
3695
|
var exports_core2 = {};
|
|
3684
3696
|
__export(exports_core2, {
|
|
3685
3697
|
version: () => version,
|
|
@@ -3698,6 +3710,7 @@ __export(exports_core2, {
|
|
|
3698
3710
|
prettifyError: () => prettifyError,
|
|
3699
3711
|
parseAsync: () => parseAsync,
|
|
3700
3712
|
parse: () => parse,
|
|
3713
|
+
meta: () => meta,
|
|
3701
3714
|
locales: () => exports_locales,
|
|
3702
3715
|
isValidJWT: () => isValidJWT,
|
|
3703
3716
|
isValidBase64URL: () => isValidBase64URL,
|
|
@@ -3708,6 +3721,7 @@ __export(exports_core2, {
|
|
|
3708
3721
|
flattenError: () => flattenError,
|
|
3709
3722
|
encodeAsync: () => encodeAsync,
|
|
3710
3723
|
encode: () => encode,
|
|
3724
|
+
describe: () => describe,
|
|
3711
3725
|
decodeAsync: () => decodeAsync,
|
|
3712
3726
|
decode: () => decode,
|
|
3713
3727
|
config: () => config,
|
|
@@ -3739,6 +3753,7 @@ __export(exports_core2, {
|
|
|
3739
3753
|
_stringFormat: () => _stringFormat,
|
|
3740
3754
|
_string: () => _string,
|
|
3741
3755
|
_startsWith: () => _startsWith,
|
|
3756
|
+
_slugify: () => _slugify,
|
|
3742
3757
|
_size: () => _size,
|
|
3743
3758
|
_set: () => _set,
|
|
3744
3759
|
_safeParseAsync: () => _safeParseAsync,
|
|
@@ -3780,6 +3795,7 @@ __export(exports_core2, {
|
|
|
3780
3795
|
_maxLength: () => _maxLength,
|
|
3781
3796
|
_max: () => _lte,
|
|
3782
3797
|
_map: () => _map,
|
|
3798
|
+
_mac: () => _mac,
|
|
3783
3799
|
_lte: () => _lte,
|
|
3784
3800
|
_lt: () => _lt,
|
|
3785
3801
|
_lowercase: () => _lowercase,
|
|
@@ -3880,6 +3896,7 @@ __export(exports_core2, {
|
|
|
3880
3896
|
$ZodNanoID: () => $ZodNanoID,
|
|
3881
3897
|
$ZodNaN: () => $ZodNaN,
|
|
3882
3898
|
$ZodMap: () => $ZodMap,
|
|
3899
|
+
$ZodMAC: () => $ZodMAC,
|
|
3883
3900
|
$ZodLiteral: () => $ZodLiteral,
|
|
3884
3901
|
$ZodLazy: () => $ZodLazy,
|
|
3885
3902
|
$ZodKSUID: () => $ZodKSUID,
|
|
@@ -3943,26 +3960,35 @@ __export(exports_core2, {
|
|
|
3943
3960
|
$ZodAny: () => $ZodAny
|
|
3944
3961
|
});
|
|
3945
3962
|
|
|
3946
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
3963
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/core.js
|
|
3947
3964
|
var NEVER = Object.freeze({
|
|
3948
3965
|
status: "aborted"
|
|
3949
3966
|
});
|
|
3950
3967
|
function $constructor(name, initializer, params) {
|
|
3951
3968
|
function init(inst, def) {
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3969
|
+
if (!inst._zod) {
|
|
3970
|
+
Object.defineProperty(inst, "_zod", {
|
|
3971
|
+
value: {
|
|
3972
|
+
def,
|
|
3973
|
+
constr: _,
|
|
3974
|
+
traits: new Set
|
|
3975
|
+
},
|
|
3976
|
+
enumerable: false
|
|
3977
|
+
});
|
|
3978
|
+
}
|
|
3979
|
+
if (inst._zod.traits.has(name)) {
|
|
3980
|
+
return;
|
|
3981
|
+
}
|
|
3958
3982
|
inst._zod.traits.add(name);
|
|
3959
3983
|
initializer(inst, def);
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3984
|
+
const proto = _.prototype;
|
|
3985
|
+
const keys = Object.keys(proto);
|
|
3986
|
+
for (let i = 0;i < keys.length; i++) {
|
|
3987
|
+
const k = keys[i];
|
|
3988
|
+
if (!(k in inst)) {
|
|
3989
|
+
inst[k] = proto[k].bind(inst);
|
|
3990
|
+
}
|
|
3963
3991
|
}
|
|
3964
|
-
inst._zod.constr = _;
|
|
3965
|
-
inst._zod.def = def;
|
|
3966
3992
|
}
|
|
3967
3993
|
const Parent = params?.Parent ?? Object;
|
|
3968
3994
|
|
|
@@ -4010,7 +4036,7 @@ function config(newConfig) {
|
|
|
4010
4036
|
Object.assign(globalConfig, newConfig);
|
|
4011
4037
|
return globalConfig;
|
|
4012
4038
|
}
|
|
4013
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
4039
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/util.js
|
|
4014
4040
|
var exports_util = {};
|
|
4015
4041
|
__export(exports_util, {
|
|
4016
4042
|
unwrapMessage: () => unwrapMessage,
|
|
@@ -4018,6 +4044,7 @@ __export(exports_util, {
|
|
|
4018
4044
|
uint8ArrayToBase64url: () => uint8ArrayToBase64url,
|
|
4019
4045
|
uint8ArrayToBase64: () => uint8ArrayToBase64,
|
|
4020
4046
|
stringifyPrimitive: () => stringifyPrimitive,
|
|
4047
|
+
slugify: () => slugify,
|
|
4021
4048
|
shallowClone: () => shallowClone,
|
|
4022
4049
|
safeExtend: () => safeExtend,
|
|
4023
4050
|
required: () => required,
|
|
@@ -4205,6 +4232,9 @@ function randomString(length = 10) {
|
|
|
4205
4232
|
function esc(str) {
|
|
4206
4233
|
return JSON.stringify(str);
|
|
4207
4234
|
}
|
|
4235
|
+
function slugify(input) {
|
|
4236
|
+
return input.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
4237
|
+
}
|
|
4208
4238
|
var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {};
|
|
4209
4239
|
function isObject(data) {
|
|
4210
4240
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
@@ -4227,6 +4257,8 @@ function isPlainObject(o) {
|
|
|
4227
4257
|
const ctor = o.constructor;
|
|
4228
4258
|
if (ctor === undefined)
|
|
4229
4259
|
return true;
|
|
4260
|
+
if (typeof ctor !== "function")
|
|
4261
|
+
return true;
|
|
4230
4262
|
const prot = ctor.prototype;
|
|
4231
4263
|
if (isObject(prot) === false)
|
|
4232
4264
|
return false;
|
|
@@ -4639,7 +4671,7 @@ class Class {
|
|
|
4639
4671
|
constructor(..._args) {}
|
|
4640
4672
|
}
|
|
4641
4673
|
|
|
4642
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
4674
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/errors.js
|
|
4643
4675
|
var initializer = (inst, def) => {
|
|
4644
4676
|
inst.name = "$ZodError";
|
|
4645
4677
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -4776,7 +4808,7 @@ function prettifyError(error) {
|
|
|
4776
4808
|
`);
|
|
4777
4809
|
}
|
|
4778
4810
|
|
|
4779
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
4811
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/parse.js
|
|
4780
4812
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
4781
4813
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
4782
4814
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -4863,7 +4895,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
4863
4895
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
4864
4896
|
};
|
|
4865
4897
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
4866
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
4898
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/regexes.js
|
|
4867
4899
|
var exports_regexes = {};
|
|
4868
4900
|
__export(exports_regexes, {
|
|
4869
4901
|
xid: () => xid,
|
|
@@ -4896,6 +4928,7 @@ __export(exports_regexes, {
|
|
|
4896
4928
|
md5_hex: () => md5_hex,
|
|
4897
4929
|
md5_base64url: () => md5_base64url,
|
|
4898
4930
|
md5_base64: () => md5_base64,
|
|
4931
|
+
mac: () => mac,
|
|
4899
4932
|
lowercase: () => lowercase,
|
|
4900
4933
|
ksuid: () => ksuid,
|
|
4901
4934
|
ipv6: () => ipv6,
|
|
@@ -4953,6 +4986,10 @@ function emoji() {
|
|
|
4953
4986
|
}
|
|
4954
4987
|
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
4988
|
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}|:))$/;
|
|
4989
|
+
var mac = (delimiter) => {
|
|
4990
|
+
const escapedDelim = escapeRegex(delimiter ?? ":");
|
|
4991
|
+
return new RegExp(`^(?:[0-9A-F]{2}${escapedDelim}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${escapedDelim}){5}[0-9a-f]{2}$`);
|
|
4992
|
+
};
|
|
4956
4993
|
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
4994
|
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
4995
|
var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;
|
|
@@ -5015,7 +5052,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
|
|
5015
5052
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
5016
5053
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
5017
5054
|
|
|
5018
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
5055
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/checks.js
|
|
5019
5056
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
5020
5057
|
var _a;
|
|
5021
5058
|
inst._zod ?? (inst._zod = {});
|
|
@@ -5556,7 +5593,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
5556
5593
|
};
|
|
5557
5594
|
});
|
|
5558
5595
|
|
|
5559
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
5596
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/doc.js
|
|
5560
5597
|
class Doc {
|
|
5561
5598
|
constructor(args = []) {
|
|
5562
5599
|
this.content = [];
|
|
@@ -5594,14 +5631,14 @@ class Doc {
|
|
|
5594
5631
|
}
|
|
5595
5632
|
}
|
|
5596
5633
|
|
|
5597
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
5634
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/versions.js
|
|
5598
5635
|
var version = {
|
|
5599
5636
|
major: 4,
|
|
5600
5637
|
minor: 1,
|
|
5601
|
-
patch:
|
|
5638
|
+
patch: 13
|
|
5602
5639
|
};
|
|
5603
5640
|
|
|
5604
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
5641
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/schemas.js
|
|
5605
5642
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
5606
5643
|
var _a;
|
|
5607
5644
|
inst ?? (inst = {});
|
|
@@ -5775,7 +5812,7 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
5775
5812
|
code: "invalid_format",
|
|
5776
5813
|
format: "url",
|
|
5777
5814
|
note: "Invalid hostname",
|
|
5778
|
-
pattern: hostname.source,
|
|
5815
|
+
pattern: def.hostname.source,
|
|
5779
5816
|
input: payload.value,
|
|
5780
5817
|
inst,
|
|
5781
5818
|
continue: !def.abort
|
|
@@ -5860,18 +5897,12 @@ var $ZodISODuration = /* @__PURE__ */ $constructor("$ZodISODuration", (inst, def
|
|
|
5860
5897
|
var $ZodIPv4 = /* @__PURE__ */ $constructor("$ZodIPv4", (inst, def) => {
|
|
5861
5898
|
def.pattern ?? (def.pattern = ipv4);
|
|
5862
5899
|
$ZodStringFormat.init(inst, def);
|
|
5863
|
-
inst._zod.
|
|
5864
|
-
const bag = inst2._zod.bag;
|
|
5865
|
-
bag.format = `ipv4`;
|
|
5866
|
-
});
|
|
5900
|
+
inst._zod.bag.format = `ipv4`;
|
|
5867
5901
|
});
|
|
5868
5902
|
var $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {
|
|
5869
5903
|
def.pattern ?? (def.pattern = ipv6);
|
|
5870
5904
|
$ZodStringFormat.init(inst, def);
|
|
5871
|
-
inst._zod.
|
|
5872
|
-
const bag = inst2._zod.bag;
|
|
5873
|
-
bag.format = `ipv6`;
|
|
5874
|
-
});
|
|
5905
|
+
inst._zod.bag.format = `ipv6`;
|
|
5875
5906
|
inst._zod.check = (payload) => {
|
|
5876
5907
|
try {
|
|
5877
5908
|
new URL(`http://[${payload.value}]`);
|
|
@@ -5886,6 +5917,11 @@ var $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {
|
|
|
5886
5917
|
}
|
|
5887
5918
|
};
|
|
5888
5919
|
});
|
|
5920
|
+
var $ZodMAC = /* @__PURE__ */ $constructor("$ZodMAC", (inst, def) => {
|
|
5921
|
+
def.pattern ?? (def.pattern = mac(def.delimiter));
|
|
5922
|
+
$ZodStringFormat.init(inst, def);
|
|
5923
|
+
inst._zod.bag.format = `mac`;
|
|
5924
|
+
});
|
|
5889
5925
|
var $ZodCIDRv4 = /* @__PURE__ */ $constructor("$ZodCIDRv4", (inst, def) => {
|
|
5890
5926
|
def.pattern ?? (def.pattern = cidrv4);
|
|
5891
5927
|
$ZodStringFormat.init(inst, def);
|
|
@@ -5933,9 +5969,7 @@ function isValidBase64(data) {
|
|
|
5933
5969
|
var $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
|
|
5934
5970
|
def.pattern ?? (def.pattern = base64);
|
|
5935
5971
|
$ZodStringFormat.init(inst, def);
|
|
5936
|
-
inst._zod.
|
|
5937
|
-
inst2._zod.bag.contentEncoding = "base64";
|
|
5938
|
-
});
|
|
5972
|
+
inst._zod.bag.contentEncoding = "base64";
|
|
5939
5973
|
inst._zod.check = (payload) => {
|
|
5940
5974
|
if (isValidBase64(payload.value))
|
|
5941
5975
|
return;
|
|
@@ -5958,9 +5992,7 @@ function isValidBase64URL(data) {
|
|
|
5958
5992
|
var $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def) => {
|
|
5959
5993
|
def.pattern ?? (def.pattern = base64url);
|
|
5960
5994
|
$ZodStringFormat.init(inst, def);
|
|
5961
|
-
inst._zod.
|
|
5962
|
-
inst2._zod.bag.contentEncoding = "base64url";
|
|
5963
|
-
});
|
|
5995
|
+
inst._zod.bag.contentEncoding = "base64url";
|
|
5964
5996
|
inst._zod.check = (payload) => {
|
|
5965
5997
|
if (isValidBase64URL(payload.value))
|
|
5966
5998
|
return;
|
|
@@ -6048,7 +6080,7 @@ var $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
|
|
|
6048
6080
|
return payload;
|
|
6049
6081
|
};
|
|
6050
6082
|
});
|
|
6051
|
-
var $ZodNumberFormat = /* @__PURE__ */ $constructor("$
|
|
6083
|
+
var $ZodNumberFormat = /* @__PURE__ */ $constructor("$ZodNumberFormat", (inst, def) => {
|
|
6052
6084
|
$ZodCheckNumberFormat.init(inst, def);
|
|
6053
6085
|
$ZodNumber.init(inst, def);
|
|
6054
6086
|
});
|
|
@@ -6091,7 +6123,7 @@ var $ZodBigInt = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def) => {
|
|
|
6091
6123
|
return payload;
|
|
6092
6124
|
};
|
|
6093
6125
|
});
|
|
6094
|
-
var $ZodBigIntFormat = /* @__PURE__ */ $constructor("$
|
|
6126
|
+
var $ZodBigIntFormat = /* @__PURE__ */ $constructor("$ZodBigIntFormat", (inst, def) => {
|
|
6095
6127
|
$ZodCheckBigIntFormat.init(inst, def);
|
|
6096
6128
|
$ZodBigInt.init(inst, def);
|
|
6097
6129
|
});
|
|
@@ -6276,7 +6308,7 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
6276
6308
|
const keySet = def.keySet;
|
|
6277
6309
|
const _catchall = def.catchall._zod;
|
|
6278
6310
|
const t = _catchall.def.type;
|
|
6279
|
-
for (const key
|
|
6311
|
+
for (const key in input) {
|
|
6280
6312
|
if (keySet.has(key))
|
|
6281
6313
|
continue;
|
|
6282
6314
|
if (t === "never") {
|
|
@@ -6651,7 +6683,6 @@ function handleIntersectionResults(result, left, right) {
|
|
|
6651
6683
|
var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
|
|
6652
6684
|
$ZodType.init(inst, def);
|
|
6653
6685
|
const items = def.items;
|
|
6654
|
-
const optStart = items.length - [...items].reverse().findIndex((item) => item._zod.optin !== "optional");
|
|
6655
6686
|
inst._zod.parse = (payload, ctx) => {
|
|
6656
6687
|
const input = payload.value;
|
|
6657
6688
|
if (!Array.isArray(input)) {
|
|
@@ -6665,6 +6696,8 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
|
|
|
6665
6696
|
}
|
|
6666
6697
|
payload.value = [];
|
|
6667
6698
|
const proms = [];
|
|
6699
|
+
const reversedIndex = [...items].reverse().findIndex((item) => item._zod.optin !== "optional");
|
|
6700
|
+
const optStart = reversedIndex === -1 ? 0 : items.length - reversedIndex;
|
|
6668
6701
|
if (!def.rest) {
|
|
6669
6702
|
const tooBig = input.length > items.length;
|
|
6670
6703
|
const tooSmall = input.length < optStart - 1;
|
|
@@ -6735,11 +6768,13 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
6735
6768
|
return payload;
|
|
6736
6769
|
}
|
|
6737
6770
|
const proms = [];
|
|
6738
|
-
|
|
6739
|
-
|
|
6771
|
+
const values = def.keyType._zod.values;
|
|
6772
|
+
if (values) {
|
|
6740
6773
|
payload.value = {};
|
|
6774
|
+
const recordKeys = new Set;
|
|
6741
6775
|
for (const key of values) {
|
|
6742
6776
|
if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
|
|
6777
|
+
recordKeys.add(typeof key === "number" ? key.toString() : key);
|
|
6743
6778
|
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
6744
6779
|
if (result instanceof Promise) {
|
|
6745
6780
|
proms.push(result.then((result2) => {
|
|
@@ -6758,7 +6793,7 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
6758
6793
|
}
|
|
6759
6794
|
let unrecognized;
|
|
6760
6795
|
for (const key in input) {
|
|
6761
|
-
if (!
|
|
6796
|
+
if (!recordKeys.has(key)) {
|
|
6762
6797
|
unrecognized = unrecognized ?? [];
|
|
6763
6798
|
unrecognized.push(key);
|
|
6764
6799
|
}
|
|
@@ -6933,11 +6968,12 @@ var $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
|
|
|
6933
6968
|
if (def.values.length === 0) {
|
|
6934
6969
|
throw new Error("Cannot create literal schema with no valid values");
|
|
6935
6970
|
}
|
|
6936
|
-
|
|
6971
|
+
const values = new Set(def.values);
|
|
6972
|
+
inst._zod.values = values;
|
|
6937
6973
|
inst._zod.pattern = new RegExp(`^(${def.values.map((o) => typeof o === "string" ? escapeRegex(o) : o ? escapeRegex(o.toString()) : String(o)).join("|")})$`);
|
|
6938
6974
|
inst._zod.parse = (payload, _ctx) => {
|
|
6939
6975
|
const input = payload.value;
|
|
6940
|
-
if (
|
|
6976
|
+
if (values.has(input)) {
|
|
6941
6977
|
return payload;
|
|
6942
6978
|
}
|
|
6943
6979
|
payload.issues.push({
|
|
@@ -7250,8 +7286,8 @@ var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
|
7250
7286
|
$ZodType.init(inst, def);
|
|
7251
7287
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
7252
7288
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
7253
|
-
defineLazy(inst._zod, "optin", () => def.innerType
|
|
7254
|
-
defineLazy(inst._zod, "optout", () => def.innerType
|
|
7289
|
+
defineLazy(inst._zod, "optin", () => def.innerType?._zod?.optin);
|
|
7290
|
+
defineLazy(inst._zod, "optout", () => def.innerType?._zod?.optout);
|
|
7255
7291
|
inst._zod.parse = (payload, ctx) => {
|
|
7256
7292
|
if (ctx.direction === "backward") {
|
|
7257
7293
|
return def.innerType._zod.run(payload, ctx);
|
|
@@ -7398,10 +7434,10 @@ var $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => {
|
|
|
7398
7434
|
var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
|
|
7399
7435
|
$ZodType.init(inst, def);
|
|
7400
7436
|
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
|
|
7437
|
+
defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
|
|
7438
|
+
defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
|
|
7439
|
+
defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? undefined);
|
|
7440
|
+
defineLazy(inst._zod, "optout", () => inst._zod.innerType?._zod?.optout ?? undefined);
|
|
7405
7441
|
inst._zod.parse = (payload, ctx) => {
|
|
7406
7442
|
const inner = inst._zod.innerType;
|
|
7407
7443
|
return inner._zod.run(payload, ctx);
|
|
@@ -7437,7 +7473,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
7437
7473
|
payload.issues.push(issue(_iss));
|
|
7438
7474
|
}
|
|
7439
7475
|
}
|
|
7440
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
7476
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/index.js
|
|
7441
7477
|
var exports_locales = {};
|
|
7442
7478
|
__export(exports_locales, {
|
|
7443
7479
|
zhTW: () => zh_TW_default,
|
|
@@ -7489,7 +7525,7 @@ __export(exports_locales, {
|
|
|
7489
7525
|
ar: () => ar_default
|
|
7490
7526
|
});
|
|
7491
7527
|
|
|
7492
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
7528
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ar.js
|
|
7493
7529
|
var error = () => {
|
|
7494
7530
|
const Sizable = {
|
|
7495
7531
|
string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
|
|
@@ -7605,7 +7641,7 @@ function ar_default() {
|
|
|
7605
7641
|
localeError: error()
|
|
7606
7642
|
};
|
|
7607
7643
|
}
|
|
7608
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
7644
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/az.js
|
|
7609
7645
|
var error2 = () => {
|
|
7610
7646
|
const Sizable = {
|
|
7611
7647
|
string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
|
|
@@ -7720,7 +7756,7 @@ function az_default() {
|
|
|
7720
7756
|
localeError: error2()
|
|
7721
7757
|
};
|
|
7722
7758
|
}
|
|
7723
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
7759
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/be.js
|
|
7724
7760
|
function getBelarusianPlural(count, one, few, many) {
|
|
7725
7761
|
const absCount = Math.abs(count);
|
|
7726
7762
|
const lastDigit = absCount % 10;
|
|
@@ -7884,7 +7920,7 @@ function be_default() {
|
|
|
7884
7920
|
localeError: error3()
|
|
7885
7921
|
};
|
|
7886
7922
|
}
|
|
7887
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
7923
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/bg.js
|
|
7888
7924
|
var parsedType = (data) => {
|
|
7889
7925
|
const t = typeof data;
|
|
7890
7926
|
switch (t) {
|
|
@@ -8012,7 +8048,7 @@ function bg_default() {
|
|
|
8012
8048
|
localeError: error4()
|
|
8013
8049
|
};
|
|
8014
8050
|
}
|
|
8015
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
8051
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ca.js
|
|
8016
8052
|
var error5 = () => {
|
|
8017
8053
|
const Sizable = {
|
|
8018
8054
|
string: { unit: "car\xE0cters", verb: "contenir" },
|
|
@@ -8129,7 +8165,7 @@ function ca_default() {
|
|
|
8129
8165
|
localeError: error5()
|
|
8130
8166
|
};
|
|
8131
8167
|
}
|
|
8132
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
8168
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/cs.js
|
|
8133
8169
|
var error6 = () => {
|
|
8134
8170
|
const Sizable = {
|
|
8135
8171
|
string: { unit: "znak\u016F", verb: "m\xEDt" },
|
|
@@ -8264,7 +8300,7 @@ function cs_default() {
|
|
|
8264
8300
|
localeError: error6()
|
|
8265
8301
|
};
|
|
8266
8302
|
}
|
|
8267
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
8303
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/da.js
|
|
8268
8304
|
var error7 = () => {
|
|
8269
8305
|
const Sizable = {
|
|
8270
8306
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -8395,7 +8431,7 @@ function da_default() {
|
|
|
8395
8431
|
localeError: error7()
|
|
8396
8432
|
};
|
|
8397
8433
|
}
|
|
8398
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
8434
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/de.js
|
|
8399
8435
|
var error8 = () => {
|
|
8400
8436
|
const Sizable = {
|
|
8401
8437
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -8511,7 +8547,7 @@ function de_default() {
|
|
|
8511
8547
|
localeError: error8()
|
|
8512
8548
|
};
|
|
8513
8549
|
}
|
|
8514
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
8550
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/en.js
|
|
8515
8551
|
var parsedType2 = (data) => {
|
|
8516
8552
|
const t = typeof data;
|
|
8517
8553
|
switch (t) {
|
|
@@ -8563,6 +8599,7 @@ var error9 = () => {
|
|
|
8563
8599
|
duration: "ISO duration",
|
|
8564
8600
|
ipv4: "IPv4 address",
|
|
8565
8601
|
ipv6: "IPv6 address",
|
|
8602
|
+
mac: "MAC address",
|
|
8566
8603
|
cidrv4: "IPv4 range",
|
|
8567
8604
|
cidrv6: "IPv6 range",
|
|
8568
8605
|
base64: "base64-encoded string",
|
|
@@ -8628,7 +8665,7 @@ function en_default() {
|
|
|
8628
8665
|
localeError: error9()
|
|
8629
8666
|
};
|
|
8630
8667
|
}
|
|
8631
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
8668
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/eo.js
|
|
8632
8669
|
var parsedType3 = (data) => {
|
|
8633
8670
|
const t = typeof data;
|
|
8634
8671
|
switch (t) {
|
|
@@ -8744,7 +8781,7 @@ function eo_default() {
|
|
|
8744
8781
|
localeError: error10()
|
|
8745
8782
|
};
|
|
8746
8783
|
}
|
|
8747
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
8784
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/es.js
|
|
8748
8785
|
var error11 = () => {
|
|
8749
8786
|
const Sizable = {
|
|
8750
8787
|
string: { unit: "caracteres", verb: "tener" },
|
|
@@ -8892,7 +8929,7 @@ function es_default() {
|
|
|
8892
8929
|
localeError: error11()
|
|
8893
8930
|
};
|
|
8894
8931
|
}
|
|
8895
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
8932
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/fa.js
|
|
8896
8933
|
var error12 = () => {
|
|
8897
8934
|
const Sizable = {
|
|
8898
8935
|
string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
@@ -9014,7 +9051,7 @@ function fa_default() {
|
|
|
9014
9051
|
localeError: error12()
|
|
9015
9052
|
};
|
|
9016
9053
|
}
|
|
9017
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9054
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/fi.js
|
|
9018
9055
|
var error13 = () => {
|
|
9019
9056
|
const Sizable = {
|
|
9020
9057
|
string: { unit: "merkki\xE4", subject: "merkkijonon" },
|
|
@@ -9136,7 +9173,7 @@ function fi_default() {
|
|
|
9136
9173
|
localeError: error13()
|
|
9137
9174
|
};
|
|
9138
9175
|
}
|
|
9139
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9176
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/fr.js
|
|
9140
9177
|
var error14 = () => {
|
|
9141
9178
|
const Sizable = {
|
|
9142
9179
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -9252,7 +9289,7 @@ function fr_default() {
|
|
|
9252
9289
|
localeError: error14()
|
|
9253
9290
|
};
|
|
9254
9291
|
}
|
|
9255
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9292
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/fr-CA.js
|
|
9256
9293
|
var error15 = () => {
|
|
9257
9294
|
const Sizable = {
|
|
9258
9295
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -9369,112 +9406,202 @@ function fr_CA_default() {
|
|
|
9369
9406
|
localeError: error15()
|
|
9370
9407
|
};
|
|
9371
9408
|
}
|
|
9372
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9409
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/he.js
|
|
9373
9410
|
var error16 = () => {
|
|
9411
|
+
const TypeNames = {
|
|
9412
|
+
string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
|
|
9413
|
+
number: { label: "\u05DE\u05E1\u05E4\u05E8", gender: "m" },
|
|
9414
|
+
boolean: { label: "\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9", gender: "m" },
|
|
9415
|
+
bigint: { label: "BigInt", gender: "m" },
|
|
9416
|
+
date: { label: "\u05EA\u05D0\u05E8\u05D9\u05DA", gender: "m" },
|
|
9417
|
+
array: { label: "\u05DE\u05E2\u05E8\u05DA", gender: "m" },
|
|
9418
|
+
object: { label: "\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8", gender: "m" },
|
|
9419
|
+
null: { label: "\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)", gender: "m" },
|
|
9420
|
+
undefined: { label: "\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)", gender: "m" },
|
|
9421
|
+
symbol: { label: "\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)", gender: "m" },
|
|
9422
|
+
function: { label: "\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4", gender: "f" },
|
|
9423
|
+
map: { label: "\u05DE\u05E4\u05D4 (Map)", gender: "f" },
|
|
9424
|
+
set: { label: "\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)", gender: "f" },
|
|
9425
|
+
file: { label: "\u05E7\u05D5\u05D1\u05E5", gender: "m" },
|
|
9426
|
+
promise: { label: "Promise", gender: "m" },
|
|
9427
|
+
NaN: { label: "NaN", gender: "m" },
|
|
9428
|
+
unknown: { label: "\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2", gender: "m" },
|
|
9429
|
+
value: { label: "\u05E2\u05E8\u05DA", gender: "m" }
|
|
9430
|
+
};
|
|
9374
9431
|
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",
|
|
9432
|
+
string: { unit: "\u05EA\u05D5\u05D5\u05D9\u05DD", shortLabel: "\u05E7\u05E6\u05E8", longLabel: "\u05D0\u05E8\u05D5\u05DA" },
|
|
9433
|
+
file: { unit: "\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" },
|
|
9434
|
+
array: { unit: "\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" },
|
|
9435
|
+
set: { unit: "\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" },
|
|
9436
|
+
number: { unit: "", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" }
|
|
9437
|
+
};
|
|
9438
|
+
const typeEntry = (t) => t ? TypeNames[t] : undefined;
|
|
9439
|
+
const typeLabel = (t) => {
|
|
9440
|
+
const e = typeEntry(t);
|
|
9441
|
+
if (e)
|
|
9442
|
+
return e.label;
|
|
9443
|
+
return t ?? TypeNames.unknown.label;
|
|
9379
9444
|
};
|
|
9380
|
-
|
|
9445
|
+
const withDefinite = (t) => `\u05D4${typeLabel(t)}`;
|
|
9446
|
+
const verbFor = (t) => {
|
|
9447
|
+
const e = typeEntry(t);
|
|
9448
|
+
const gender = e?.gender ?? "m";
|
|
9449
|
+
return gender === "f" ? "\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA" : "\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA";
|
|
9450
|
+
};
|
|
9451
|
+
const getSizing = (origin) => {
|
|
9452
|
+
if (!origin)
|
|
9453
|
+
return null;
|
|
9381
9454
|
return Sizable[origin] ?? null;
|
|
9382
|
-
}
|
|
9455
|
+
};
|
|
9383
9456
|
const parsedType4 = (data) => {
|
|
9384
9457
|
const t = typeof data;
|
|
9385
9458
|
switch (t) {
|
|
9386
|
-
case "number":
|
|
9459
|
+
case "number":
|
|
9387
9460
|
return Number.isNaN(data) ? "NaN" : "number";
|
|
9388
|
-
}
|
|
9389
9461
|
case "object": {
|
|
9390
|
-
if (Array.isArray(data))
|
|
9462
|
+
if (Array.isArray(data))
|
|
9391
9463
|
return "array";
|
|
9392
|
-
|
|
9393
|
-
if (data === null) {
|
|
9464
|
+
if (data === null)
|
|
9394
9465
|
return "null";
|
|
9395
|
-
}
|
|
9396
9466
|
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
9397
9467
|
return data.constructor.name;
|
|
9398
9468
|
}
|
|
9469
|
+
return "object";
|
|
9399
9470
|
}
|
|
9471
|
+
default:
|
|
9472
|
+
return t;
|
|
9400
9473
|
}
|
|
9401
|
-
return t;
|
|
9402
9474
|
};
|
|
9403
9475
|
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
|
-
|
|
9476
|
+
regex: { label: "\u05E7\u05DC\u05D8", gender: "m" },
|
|
9477
|
+
email: { label: "\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC", gender: "f" },
|
|
9478
|
+
url: { label: "\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA", gender: "f" },
|
|
9479
|
+
emoji: { label: "\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9", gender: "m" },
|
|
9480
|
+
uuid: { label: "UUID", gender: "m" },
|
|
9481
|
+
nanoid: { label: "nanoid", gender: "m" },
|
|
9482
|
+
guid: { label: "GUID", gender: "m" },
|
|
9483
|
+
cuid: { label: "cuid", gender: "m" },
|
|
9484
|
+
cuid2: { label: "cuid2", gender: "m" },
|
|
9485
|
+
ulid: { label: "ULID", gender: "m" },
|
|
9486
|
+
xid: { label: "XID", gender: "m" },
|
|
9487
|
+
ksuid: { label: "KSUID", gender: "m" },
|
|
9488
|
+
datetime: { label: "\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO", gender: "m" },
|
|
9489
|
+
date: { label: "\u05EA\u05D0\u05E8\u05D9\u05DA ISO", gender: "m" },
|
|
9490
|
+
time: { label: "\u05D6\u05DE\u05DF ISO", gender: "m" },
|
|
9491
|
+
duration: { label: "\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO", gender: "m" },
|
|
9492
|
+
ipv4: { label: "\u05DB\u05EA\u05D5\u05D1\u05EA IPv4", gender: "f" },
|
|
9493
|
+
ipv6: { label: "\u05DB\u05EA\u05D5\u05D1\u05EA IPv6", gender: "f" },
|
|
9494
|
+
cidrv4: { label: "\u05D8\u05D5\u05D5\u05D7 IPv4", gender: "m" },
|
|
9495
|
+
cidrv6: { label: "\u05D8\u05D5\u05D5\u05D7 IPv6", gender: "m" },
|
|
9496
|
+
base64: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64", gender: "f" },
|
|
9497
|
+
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" },
|
|
9498
|
+
json_string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON", gender: "f" },
|
|
9499
|
+
e164: { label: "\u05DE\u05E1\u05E4\u05E8 E.164", gender: "m" },
|
|
9500
|
+
jwt: { label: "JWT", gender: "m" },
|
|
9501
|
+
ends_with: { label: "\u05E7\u05DC\u05D8", gender: "m" },
|
|
9502
|
+
includes: { label: "\u05E7\u05DC\u05D8", gender: "m" },
|
|
9503
|
+
lowercase: { label: "\u05E7\u05DC\u05D8", gender: "m" },
|
|
9504
|
+
starts_with: { label: "\u05E7\u05DC\u05D8", gender: "m" },
|
|
9505
|
+
uppercase: { label: "\u05E7\u05DC\u05D8", gender: "m" }
|
|
9432
9506
|
};
|
|
9433
9507
|
return (issue2) => {
|
|
9434
9508
|
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 \
|
|
9509
|
+
case "invalid_type": {
|
|
9510
|
+
const expectedKey = issue2.expected;
|
|
9511
|
+
const expected = typeLabel(expectedKey);
|
|
9512
|
+
const receivedKey = parsedType4(issue2.input);
|
|
9513
|
+
const received = TypeNames[receivedKey]?.label ?? receivedKey;
|
|
9514
|
+
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}`;
|
|
9515
|
+
}
|
|
9516
|
+
case "invalid_value": {
|
|
9517
|
+
if (issue2.values.length === 1) {
|
|
9518
|
+
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])}`;
|
|
9519
|
+
}
|
|
9520
|
+
const stringified = issue2.values.map((v) => stringifyPrimitive(v));
|
|
9521
|
+
if (issue2.values.length === 2) {
|
|
9522
|
+
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]}`;
|
|
9523
|
+
}
|
|
9524
|
+
const lastValue = stringified[stringified.length - 1];
|
|
9525
|
+
const restValues = stringified.slice(0, -1).join(", ");
|
|
9526
|
+
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}`;
|
|
9527
|
+
}
|
|
9441
9528
|
case "too_big": {
|
|
9442
|
-
const adj = issue2.inclusive ? "<=" : "<";
|
|
9443
9529
|
const sizing = getSizing(issue2.origin);
|
|
9444
|
-
|
|
9445
|
-
|
|
9446
|
-
|
|
9530
|
+
const subject = withDefinite(issue2.origin ?? "value");
|
|
9531
|
+
if (issue2.origin === "string") {
|
|
9532
|
+
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();
|
|
9533
|
+
}
|
|
9534
|
+
if (issue2.origin === "number") {
|
|
9535
|
+
const comparison = issue2.inclusive ? `\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${issue2.maximum}` : `\u05E7\u05D8\u05DF \u05DE-${issue2.maximum}`;
|
|
9536
|
+
return `\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${subject} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${comparison}`;
|
|
9537
|
+
}
|
|
9538
|
+
if (issue2.origin === "array" || issue2.origin === "set") {
|
|
9539
|
+
const verb = issue2.origin === "set" ? "\u05E6\u05E8\u05D9\u05DB\u05D4" : "\u05E6\u05E8\u05D9\u05DA";
|
|
9540
|
+
const comparison = issue2.inclusive ? `${issue2.maximum} ${sizing?.unit ?? ""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA` : `\u05E4\u05D7\u05D5\u05EA \u05DE-${issue2.maximum} ${sizing?.unit ?? ""}`;
|
|
9541
|
+
return `\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${subject} ${verb} \u05DC\u05D4\u05DB\u05D9\u05DC ${comparison}`.trim();
|
|
9542
|
+
}
|
|
9543
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
9544
|
+
const be = verbFor(issue2.origin ?? "value");
|
|
9545
|
+
if (sizing?.unit) {
|
|
9546
|
+
return `${sizing.longLabel} \u05DE\u05D3\u05D9: ${subject} ${be} ${adj}${issue2.maximum.toString()} ${sizing.unit}`;
|
|
9547
|
+
}
|
|
9548
|
+
return `${sizing?.longLabel ?? "\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${subject} ${be} ${adj}${issue2.maximum.toString()}`;
|
|
9447
9549
|
}
|
|
9448
9550
|
case "too_small": {
|
|
9449
|
-
const adj = issue2.inclusive ? ">=" : ">";
|
|
9450
9551
|
const sizing = getSizing(issue2.origin);
|
|
9451
|
-
|
|
9452
|
-
|
|
9552
|
+
const subject = withDefinite(issue2.origin ?? "value");
|
|
9553
|
+
if (issue2.origin === "string") {
|
|
9554
|
+
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();
|
|
9555
|
+
}
|
|
9556
|
+
if (issue2.origin === "number") {
|
|
9557
|
+
const comparison = issue2.inclusive ? `\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${issue2.minimum}` : `\u05D2\u05D3\u05D5\u05DC \u05DE-${issue2.minimum}`;
|
|
9558
|
+
return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${subject} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${comparison}`;
|
|
9559
|
+
}
|
|
9560
|
+
if (issue2.origin === "array" || issue2.origin === "set") {
|
|
9561
|
+
const verb = issue2.origin === "set" ? "\u05E6\u05E8\u05D9\u05DB\u05D4" : "\u05E6\u05E8\u05D9\u05DA";
|
|
9562
|
+
if (issue2.minimum === 1 && issue2.inclusive) {
|
|
9563
|
+
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";
|
|
9564
|
+
return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${subject} ${verb} \u05DC\u05D4\u05DB\u05D9\u05DC ${singularPhrase}`;
|
|
9565
|
+
}
|
|
9566
|
+
const comparison = issue2.inclusive ? `${issue2.minimum} ${sizing?.unit ?? ""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8` : `\u05D9\u05D5\u05EA\u05E8 \u05DE-${issue2.minimum} ${sizing?.unit ?? ""}`;
|
|
9567
|
+
return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${subject} ${verb} \u05DC\u05D4\u05DB\u05D9\u05DC ${comparison}`.trim();
|
|
9568
|
+
}
|
|
9569
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
9570
|
+
const be = verbFor(issue2.origin ?? "value");
|
|
9571
|
+
if (sizing?.unit) {
|
|
9572
|
+
return `${sizing.shortLabel} \u05DE\u05D3\u05D9: ${subject} ${be} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
9453
9573
|
}
|
|
9454
|
-
return
|
|
9574
|
+
return `${sizing?.shortLabel ?? "\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${subject} ${be} ${adj}${issue2.minimum.toString()}`;
|
|
9455
9575
|
}
|
|
9456
9576
|
case "invalid_format": {
|
|
9457
9577
|
const _issue = issue2;
|
|
9458
9578
|
if (_issue.format === "starts_with")
|
|
9459
|
-
return `\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \
|
|
9579
|
+
return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${_issue.prefix}"`;
|
|
9460
9580
|
if (_issue.format === "ends_with")
|
|
9461
|
-
return `\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \
|
|
9581
|
+
return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${_issue.suffix}"`;
|
|
9462
9582
|
if (_issue.format === "includes")
|
|
9463
|
-
return `\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \
|
|
9583
|
+
return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${_issue.includes}"`;
|
|
9464
9584
|
if (_issue.format === "regex")
|
|
9465
|
-
return `\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \
|
|
9466
|
-
|
|
9585
|
+
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}`;
|
|
9586
|
+
const nounEntry = Nouns[_issue.format];
|
|
9587
|
+
const noun = nounEntry?.label ?? _issue.format;
|
|
9588
|
+
const gender = nounEntry?.gender ?? "m";
|
|
9589
|
+
const adjective = gender === "f" ? "\u05EA\u05E7\u05D9\u05E0\u05D4" : "\u05EA\u05E7\u05D9\u05DF";
|
|
9590
|
+
return `${noun} \u05DC\u05D0 ${adjective}`;
|
|
9467
9591
|
}
|
|
9468
9592
|
case "not_multiple_of":
|
|
9469
9593
|
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
9594
|
case "unrecognized_keys":
|
|
9471
9595
|
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 `\
|
|
9596
|
+
case "invalid_key": {
|
|
9597
|
+
return `\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8`;
|
|
9598
|
+
}
|
|
9474
9599
|
case "invalid_union":
|
|
9475
9600
|
return "\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";
|
|
9476
|
-
case "invalid_element":
|
|
9477
|
-
|
|
9601
|
+
case "invalid_element": {
|
|
9602
|
+
const place = withDefinite(issue2.origin ?? "array");
|
|
9603
|
+
return `\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${place}`;
|
|
9604
|
+
}
|
|
9478
9605
|
default:
|
|
9479
9606
|
return `\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF`;
|
|
9480
9607
|
}
|
|
@@ -9485,7 +9612,7 @@ function he_default() {
|
|
|
9485
9612
|
localeError: error16()
|
|
9486
9613
|
};
|
|
9487
9614
|
}
|
|
9488
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9615
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/hu.js
|
|
9489
9616
|
var error17 = () => {
|
|
9490
9617
|
const Sizable = {
|
|
9491
9618
|
string: { unit: "karakter", verb: "legyen" },
|
|
@@ -9601,7 +9728,7 @@ function hu_default() {
|
|
|
9601
9728
|
localeError: error17()
|
|
9602
9729
|
};
|
|
9603
9730
|
}
|
|
9604
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9731
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/id.js
|
|
9605
9732
|
var error18 = () => {
|
|
9606
9733
|
const Sizable = {
|
|
9607
9734
|
string: { unit: "karakter", verb: "memiliki" },
|
|
@@ -9717,7 +9844,7 @@ function id_default() {
|
|
|
9717
9844
|
localeError: error18()
|
|
9718
9845
|
};
|
|
9719
9846
|
}
|
|
9720
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9847
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/is.js
|
|
9721
9848
|
var parsedType4 = (data) => {
|
|
9722
9849
|
const t = typeof data;
|
|
9723
9850
|
switch (t) {
|
|
@@ -9834,7 +9961,7 @@ function is_default() {
|
|
|
9834
9961
|
localeError: error19()
|
|
9835
9962
|
};
|
|
9836
9963
|
}
|
|
9837
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9964
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/it.js
|
|
9838
9965
|
var error20 = () => {
|
|
9839
9966
|
const Sizable = {
|
|
9840
9967
|
string: { unit: "caratteri", verb: "avere" },
|
|
@@ -9950,7 +10077,7 @@ function it_default() {
|
|
|
9950
10077
|
localeError: error20()
|
|
9951
10078
|
};
|
|
9952
10079
|
}
|
|
9953
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
10080
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ja.js
|
|
9954
10081
|
var error21 = () => {
|
|
9955
10082
|
const Sizable = {
|
|
9956
10083
|
string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
|
|
@@ -10065,7 +10192,7 @@ function ja_default() {
|
|
|
10065
10192
|
localeError: error21()
|
|
10066
10193
|
};
|
|
10067
10194
|
}
|
|
10068
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
10195
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ka.js
|
|
10069
10196
|
var parsedType5 = (data) => {
|
|
10070
10197
|
const t = typeof data;
|
|
10071
10198
|
switch (t) {
|
|
@@ -10190,7 +10317,7 @@ function ka_default() {
|
|
|
10190
10317
|
localeError: error22()
|
|
10191
10318
|
};
|
|
10192
10319
|
}
|
|
10193
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
10320
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/km.js
|
|
10194
10321
|
var error23 = () => {
|
|
10195
10322
|
const Sizable = {
|
|
10196
10323
|
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
@@ -10308,11 +10435,11 @@ function km_default() {
|
|
|
10308
10435
|
};
|
|
10309
10436
|
}
|
|
10310
10437
|
|
|
10311
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
10438
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/kh.js
|
|
10312
10439
|
function kh_default() {
|
|
10313
10440
|
return km_default();
|
|
10314
10441
|
}
|
|
10315
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
10442
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ko.js
|
|
10316
10443
|
var error24 = () => {
|
|
10317
10444
|
const Sizable = {
|
|
10318
10445
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
@@ -10433,7 +10560,7 @@ function ko_default() {
|
|
|
10433
10560
|
localeError: error24()
|
|
10434
10561
|
};
|
|
10435
10562
|
}
|
|
10436
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
10563
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/lt.js
|
|
10437
10564
|
var parsedType6 = (data) => {
|
|
10438
10565
|
const t = typeof data;
|
|
10439
10566
|
return parsedTypeFromType(t, data);
|
|
@@ -10662,7 +10789,7 @@ function lt_default() {
|
|
|
10662
10789
|
localeError: error25()
|
|
10663
10790
|
};
|
|
10664
10791
|
}
|
|
10665
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
10792
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/mk.js
|
|
10666
10793
|
var error26 = () => {
|
|
10667
10794
|
const Sizable = {
|
|
10668
10795
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
@@ -10779,7 +10906,7 @@ function mk_default() {
|
|
|
10779
10906
|
localeError: error26()
|
|
10780
10907
|
};
|
|
10781
10908
|
}
|
|
10782
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
10909
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ms.js
|
|
10783
10910
|
var error27 = () => {
|
|
10784
10911
|
const Sizable = {
|
|
10785
10912
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
@@ -10895,13 +11022,13 @@ function ms_default() {
|
|
|
10895
11022
|
localeError: error27()
|
|
10896
11023
|
};
|
|
10897
11024
|
}
|
|
10898
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
11025
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/nl.js
|
|
10899
11026
|
var error28 = () => {
|
|
10900
11027
|
const Sizable = {
|
|
10901
|
-
string: { unit: "tekens" },
|
|
10902
|
-
file: { unit: "bytes" },
|
|
10903
|
-
array: { unit: "elementen" },
|
|
10904
|
-
set: { unit: "elementen" }
|
|
11028
|
+
string: { unit: "tekens", verb: "te hebben" },
|
|
11029
|
+
file: { unit: "bytes", verb: "te hebben" },
|
|
11030
|
+
array: { unit: "elementen", verb: "te hebben" },
|
|
11031
|
+
set: { unit: "elementen", verb: "te hebben" }
|
|
10905
11032
|
};
|
|
10906
11033
|
function getSizing(origin) {
|
|
10907
11034
|
return Sizable[origin] ?? null;
|
|
@@ -10968,16 +11095,16 @@ var error28 = () => {
|
|
|
10968
11095
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
10969
11096
|
const sizing = getSizing(issue2.origin);
|
|
10970
11097
|
if (sizing)
|
|
10971
|
-
return `Te
|
|
10972
|
-
return `Te
|
|
11098
|
+
return `Te groot: verwacht dat ${issue2.origin ?? "waarde"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementen"}`;
|
|
11099
|
+
return `Te groot: verwacht dat ${issue2.origin ?? "waarde"} ${adj}${issue2.maximum.toString()} is`;
|
|
10973
11100
|
}
|
|
10974
11101
|
case "too_small": {
|
|
10975
11102
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
10976
11103
|
const sizing = getSizing(issue2.origin);
|
|
10977
11104
|
if (sizing) {
|
|
10978
|
-
return `Te
|
|
11105
|
+
return `Te klein: verwacht dat ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
10979
11106
|
}
|
|
10980
|
-
return `Te
|
|
11107
|
+
return `Te klein: verwacht dat ${issue2.origin} ${adj}${issue2.minimum.toString()} is`;
|
|
10981
11108
|
}
|
|
10982
11109
|
case "invalid_format": {
|
|
10983
11110
|
const _issue = issue2;
|
|
@@ -11012,7 +11139,7 @@ function nl_default() {
|
|
|
11012
11139
|
localeError: error28()
|
|
11013
11140
|
};
|
|
11014
11141
|
}
|
|
11015
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
11142
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/no.js
|
|
11016
11143
|
var error29 = () => {
|
|
11017
11144
|
const Sizable = {
|
|
11018
11145
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
@@ -11128,7 +11255,7 @@ function no_default() {
|
|
|
11128
11255
|
localeError: error29()
|
|
11129
11256
|
};
|
|
11130
11257
|
}
|
|
11131
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
11258
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ota.js
|
|
11132
11259
|
var error30 = () => {
|
|
11133
11260
|
const Sizable = {
|
|
11134
11261
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
@@ -11244,7 +11371,7 @@ function ota_default() {
|
|
|
11244
11371
|
localeError: error30()
|
|
11245
11372
|
};
|
|
11246
11373
|
}
|
|
11247
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
11374
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ps.js
|
|
11248
11375
|
var error31 = () => {
|
|
11249
11376
|
const Sizable = {
|
|
11250
11377
|
string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
|
|
@@ -11366,7 +11493,7 @@ function ps_default() {
|
|
|
11366
11493
|
localeError: error31()
|
|
11367
11494
|
};
|
|
11368
11495
|
}
|
|
11369
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
11496
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/pl.js
|
|
11370
11497
|
var error32 = () => {
|
|
11371
11498
|
const Sizable = {
|
|
11372
11499
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
@@ -11483,7 +11610,7 @@ function pl_default() {
|
|
|
11483
11610
|
localeError: error32()
|
|
11484
11611
|
};
|
|
11485
11612
|
}
|
|
11486
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
11613
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/pt.js
|
|
11487
11614
|
var error33 = () => {
|
|
11488
11615
|
const Sizable = {
|
|
11489
11616
|
string: { unit: "caracteres", verb: "ter" },
|
|
@@ -11599,7 +11726,7 @@ function pt_default() {
|
|
|
11599
11726
|
localeError: error33()
|
|
11600
11727
|
};
|
|
11601
11728
|
}
|
|
11602
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
11729
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ru.js
|
|
11603
11730
|
function getRussianPlural(count, one, few, many) {
|
|
11604
11731
|
const absCount = Math.abs(count);
|
|
11605
11732
|
const lastDigit = absCount % 10;
|
|
@@ -11763,7 +11890,7 @@ function ru_default() {
|
|
|
11763
11890
|
localeError: error34()
|
|
11764
11891
|
};
|
|
11765
11892
|
}
|
|
11766
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
11893
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/sl.js
|
|
11767
11894
|
var error35 = () => {
|
|
11768
11895
|
const Sizable = {
|
|
11769
11896
|
string: { unit: "znakov", verb: "imeti" },
|
|
@@ -11880,7 +12007,7 @@ function sl_default() {
|
|
|
11880
12007
|
localeError: error35()
|
|
11881
12008
|
};
|
|
11882
12009
|
}
|
|
11883
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
12010
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/sv.js
|
|
11884
12011
|
var error36 = () => {
|
|
11885
12012
|
const Sizable = {
|
|
11886
12013
|
string: { unit: "tecken", verb: "att ha" },
|
|
@@ -11998,7 +12125,7 @@ function sv_default() {
|
|
|
11998
12125
|
localeError: error36()
|
|
11999
12126
|
};
|
|
12000
12127
|
}
|
|
12001
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
12128
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ta.js
|
|
12002
12129
|
var error37 = () => {
|
|
12003
12130
|
const Sizable = {
|
|
12004
12131
|
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 +12242,7 @@ function ta_default() {
|
|
|
12115
12242
|
localeError: error37()
|
|
12116
12243
|
};
|
|
12117
12244
|
}
|
|
12118
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
12245
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/th.js
|
|
12119
12246
|
var error38 = () => {
|
|
12120
12247
|
const Sizable = {
|
|
12121
12248
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
@@ -12232,7 +12359,7 @@ function th_default() {
|
|
|
12232
12359
|
localeError: error38()
|
|
12233
12360
|
};
|
|
12234
12361
|
}
|
|
12235
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
12362
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/tr.js
|
|
12236
12363
|
var parsedType7 = (data) => {
|
|
12237
12364
|
const t = typeof data;
|
|
12238
12365
|
switch (t) {
|
|
@@ -12347,7 +12474,7 @@ function tr_default() {
|
|
|
12347
12474
|
localeError: error39()
|
|
12348
12475
|
};
|
|
12349
12476
|
}
|
|
12350
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
12477
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/uk.js
|
|
12351
12478
|
var error40 = () => {
|
|
12352
12479
|
const Sizable = {
|
|
12353
12480
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
@@ -12464,11 +12591,11 @@ function uk_default() {
|
|
|
12464
12591
|
};
|
|
12465
12592
|
}
|
|
12466
12593
|
|
|
12467
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
12594
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ua.js
|
|
12468
12595
|
function ua_default() {
|
|
12469
12596
|
return uk_default();
|
|
12470
12597
|
}
|
|
12471
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
12598
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ur.js
|
|
12472
12599
|
var error41 = () => {
|
|
12473
12600
|
const Sizable = {
|
|
12474
12601
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
@@ -12585,7 +12712,7 @@ function ur_default() {
|
|
|
12585
12712
|
localeError: error41()
|
|
12586
12713
|
};
|
|
12587
12714
|
}
|
|
12588
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
12715
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/vi.js
|
|
12589
12716
|
var error42 = () => {
|
|
12590
12717
|
const Sizable = {
|
|
12591
12718
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
@@ -12701,7 +12828,7 @@ function vi_default() {
|
|
|
12701
12828
|
localeError: error42()
|
|
12702
12829
|
};
|
|
12703
12830
|
}
|
|
12704
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
12831
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/zh-CN.js
|
|
12705
12832
|
var error43 = () => {
|
|
12706
12833
|
const Sizable = {
|
|
12707
12834
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
@@ -12817,7 +12944,7 @@ function zh_CN_default() {
|
|
|
12817
12944
|
localeError: error43()
|
|
12818
12945
|
};
|
|
12819
12946
|
}
|
|
12820
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
12947
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/zh-TW.js
|
|
12821
12948
|
var error44 = () => {
|
|
12822
12949
|
const Sizable = {
|
|
12823
12950
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
@@ -12934,7 +13061,7 @@ function zh_TW_default() {
|
|
|
12934
13061
|
localeError: error44()
|
|
12935
13062
|
};
|
|
12936
13063
|
}
|
|
12937
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
13064
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/yo.js
|
|
12938
13065
|
var error45 = () => {
|
|
12939
13066
|
const Sizable = {
|
|
12940
13067
|
string: { unit: "\xE0mi", verb: "n\xED" },
|
|
@@ -13049,7 +13176,8 @@ function yo_default() {
|
|
|
13049
13176
|
localeError: error45()
|
|
13050
13177
|
};
|
|
13051
13178
|
}
|
|
13052
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
13179
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/registries.js
|
|
13180
|
+
var _a;
|
|
13053
13181
|
var $output = Symbol("ZodOutput");
|
|
13054
13182
|
var $input = Symbol("ZodInput");
|
|
13055
13183
|
|
|
@@ -13099,8 +13227,9 @@ class $ZodRegistry {
|
|
|
13099
13227
|
function registry() {
|
|
13100
13228
|
return new $ZodRegistry;
|
|
13101
13229
|
}
|
|
13102
|
-
|
|
13103
|
-
|
|
13230
|
+
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
13231
|
+
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
13232
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/api.js
|
|
13104
13233
|
function _string(Class2, params) {
|
|
13105
13234
|
return new Class2({
|
|
13106
13235
|
type: "string",
|
|
@@ -13261,6 +13390,15 @@ function _ipv6(Class2, params) {
|
|
|
13261
13390
|
...normalizeParams(params)
|
|
13262
13391
|
});
|
|
13263
13392
|
}
|
|
13393
|
+
function _mac(Class2, params) {
|
|
13394
|
+
return new Class2({
|
|
13395
|
+
type: "string",
|
|
13396
|
+
format: "mac",
|
|
13397
|
+
check: "string_format",
|
|
13398
|
+
abort: false,
|
|
13399
|
+
...normalizeParams(params)
|
|
13400
|
+
});
|
|
13401
|
+
}
|
|
13264
13402
|
function _cidrv4(Class2, params) {
|
|
13265
13403
|
return new Class2({
|
|
13266
13404
|
type: "string",
|
|
@@ -13694,6 +13832,9 @@ function _toLowerCase() {
|
|
|
13694
13832
|
function _toUpperCase() {
|
|
13695
13833
|
return _overwrite((input) => input.toUpperCase());
|
|
13696
13834
|
}
|
|
13835
|
+
function _slugify() {
|
|
13836
|
+
return _overwrite((input) => slugify(input));
|
|
13837
|
+
}
|
|
13697
13838
|
function _array(Class2, element, params) {
|
|
13698
13839
|
return new Class2({
|
|
13699
13840
|
type: "array",
|
|
@@ -13912,6 +14053,28 @@ function _check(fn, params) {
|
|
|
13912
14053
|
ch._zod.check = fn;
|
|
13913
14054
|
return ch;
|
|
13914
14055
|
}
|
|
14056
|
+
function describe(description) {
|
|
14057
|
+
const ch = new $ZodCheck({ check: "describe" });
|
|
14058
|
+
ch._zod.onattach = [
|
|
14059
|
+
(inst) => {
|
|
14060
|
+
const existing = globalRegistry.get(inst) ?? {};
|
|
14061
|
+
globalRegistry.add(inst, { ...existing, description });
|
|
14062
|
+
}
|
|
14063
|
+
];
|
|
14064
|
+
ch._zod.check = () => {};
|
|
14065
|
+
return ch;
|
|
14066
|
+
}
|
|
14067
|
+
function meta(metadata) {
|
|
14068
|
+
const ch = new $ZodCheck({ check: "meta" });
|
|
14069
|
+
ch._zod.onattach = [
|
|
14070
|
+
(inst) => {
|
|
14071
|
+
const existing = globalRegistry.get(inst) ?? {};
|
|
14072
|
+
globalRegistry.add(inst, { ...existing, ...metadata });
|
|
14073
|
+
}
|
|
14074
|
+
];
|
|
14075
|
+
ch._zod.check = () => {};
|
|
14076
|
+
return ch;
|
|
14077
|
+
}
|
|
13915
14078
|
function _stringbool(Classes, _params) {
|
|
13916
14079
|
const params = normalizeParams(_params);
|
|
13917
14080
|
let truthyArray = params.truthy ?? ["true", "1", "yes", "on", "y", "enabled"];
|
|
@@ -13978,7 +14141,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
13978
14141
|
const inst = new Class2(def);
|
|
13979
14142
|
return inst;
|
|
13980
14143
|
}
|
|
13981
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
14144
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/to-json-schema.js
|
|
13982
14145
|
class JSONSchemaGenerator {
|
|
13983
14146
|
constructor(params) {
|
|
13984
14147
|
this.counter = 0;
|
|
@@ -13990,7 +14153,7 @@ class JSONSchemaGenerator {
|
|
|
13990
14153
|
this.seen = new Map;
|
|
13991
14154
|
}
|
|
13992
14155
|
process(schema, _params = { path: [], schemaPath: [] }) {
|
|
13993
|
-
var
|
|
14156
|
+
var _a2;
|
|
13994
14157
|
const def = schema._zod.def;
|
|
13995
14158
|
const formatMap = {
|
|
13996
14159
|
guid: "uuid",
|
|
@@ -14205,11 +14368,16 @@ class JSONSchemaGenerator {
|
|
|
14205
14368
|
}
|
|
14206
14369
|
case "union": {
|
|
14207
14370
|
const json = _json;
|
|
14371
|
+
const isDiscriminated = def.discriminator !== undefined;
|
|
14208
14372
|
const options = def.options.map((x, i) => this.process(x, {
|
|
14209
14373
|
...params,
|
|
14210
|
-
path: [...params.path, "anyOf", i]
|
|
14374
|
+
path: [...params.path, isDiscriminated ? "oneOf" : "anyOf", i]
|
|
14211
14375
|
}));
|
|
14212
|
-
|
|
14376
|
+
if (isDiscriminated) {
|
|
14377
|
+
json.oneOf = options;
|
|
14378
|
+
} else {
|
|
14379
|
+
json.anyOf = options;
|
|
14380
|
+
}
|
|
14213
14381
|
break;
|
|
14214
14382
|
}
|
|
14215
14383
|
case "intersection": {
|
|
@@ -14485,15 +14653,15 @@ class JSONSchemaGenerator {
|
|
|
14485
14653
|
}
|
|
14486
14654
|
}
|
|
14487
14655
|
}
|
|
14488
|
-
const
|
|
14489
|
-
if (
|
|
14490
|
-
Object.assign(result.schema,
|
|
14656
|
+
const meta2 = this.metadataRegistry.get(schema);
|
|
14657
|
+
if (meta2)
|
|
14658
|
+
Object.assign(result.schema, meta2);
|
|
14491
14659
|
if (this.io === "input" && isTransforming(schema)) {
|
|
14492
14660
|
delete result.schema.examples;
|
|
14493
14661
|
delete result.schema.default;
|
|
14494
14662
|
}
|
|
14495
14663
|
if (this.io === "input" && result.schema._prefault)
|
|
14496
|
-
(
|
|
14664
|
+
(_a2 = result.schema).default ?? (_a2.default = result.schema._prefault);
|
|
14497
14665
|
delete result.schema._prefault;
|
|
14498
14666
|
const _result = this.seen.get(schema);
|
|
14499
14667
|
return _result.schema;
|
|
@@ -14687,104 +14855,55 @@ function isTransforming(_schema, _ctx) {
|
|
|
14687
14855
|
if (ctx.seen.has(_schema))
|
|
14688
14856
|
return false;
|
|
14689
14857
|
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))
|
|
14858
|
+
const def = _schema._zod.def;
|
|
14859
|
+
if (def.type === "transform")
|
|
14860
|
+
return true;
|
|
14861
|
+
if (def.type === "array")
|
|
14862
|
+
return isTransforming(def.element, ctx);
|
|
14863
|
+
if (def.type === "set")
|
|
14864
|
+
return isTransforming(def.valueType, ctx);
|
|
14865
|
+
if (def.type === "lazy")
|
|
14866
|
+
return isTransforming(def.getter(), ctx);
|
|
14867
|
+
if (def.type === "promise" || def.type === "optional" || def.type === "nonoptional" || def.type === "nullable" || def.type === "readonly" || def.type === "default" || def.type === "prefault") {
|
|
14868
|
+
return isTransforming(def.innerType, ctx);
|
|
14869
|
+
}
|
|
14870
|
+
if (def.type === "intersection") {
|
|
14871
|
+
return isTransforming(def.left, ctx) || isTransforming(def.right, ctx);
|
|
14872
|
+
}
|
|
14873
|
+
if (def.type === "record" || def.type === "map") {
|
|
14874
|
+
return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
|
|
14875
|
+
}
|
|
14876
|
+
if (def.type === "pipe") {
|
|
14877
|
+
return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
|
|
14878
|
+
}
|
|
14879
|
+
if (def.type === "object") {
|
|
14880
|
+
for (const key in def.shape) {
|
|
14881
|
+
if (isTransforming(def.shape[key], ctx))
|
|
14737
14882
|
return true;
|
|
14738
|
-
return false;
|
|
14739
|
-
}
|
|
14740
|
-
case "record": {
|
|
14741
|
-
return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
|
|
14742
|
-
}
|
|
14743
|
-
case "map": {
|
|
14744
|
-
return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
|
|
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
14883
|
}
|
|
14760
|
-
|
|
14761
|
-
|
|
14884
|
+
return false;
|
|
14885
|
+
}
|
|
14886
|
+
if (def.type === "union") {
|
|
14887
|
+
for (const option of def.options) {
|
|
14888
|
+
if (isTransforming(option, ctx))
|
|
14889
|
+
return true;
|
|
14762
14890
|
}
|
|
14763
|
-
|
|
14764
|
-
|
|
14891
|
+
return false;
|
|
14892
|
+
}
|
|
14893
|
+
if (def.type === "tuple") {
|
|
14894
|
+
for (const item of def.items) {
|
|
14895
|
+
if (isTransforming(item, ctx))
|
|
14896
|
+
return true;
|
|
14765
14897
|
}
|
|
14766
|
-
|
|
14898
|
+
if (def.rest && isTransforming(def.rest, ctx))
|
|
14767
14899
|
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:
|
|
14900
|
+
return false;
|
|
14782
14901
|
}
|
|
14783
|
-
|
|
14902
|
+
return false;
|
|
14784
14903
|
}
|
|
14785
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
14904
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/json-schema.js
|
|
14786
14905
|
var exports_json_schema = {};
|
|
14787
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
14906
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/iso.js
|
|
14788
14907
|
var exports_iso = {};
|
|
14789
14908
|
__export(exports_iso, {
|
|
14790
14909
|
time: () => time2,
|
|
@@ -14825,7 +14944,7 @@ function duration2(params) {
|
|
|
14825
14944
|
return _isoDuration(ZodISODuration, params);
|
|
14826
14945
|
}
|
|
14827
14946
|
|
|
14828
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
14947
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/errors.js
|
|
14829
14948
|
var initializer2 = (inst, issues) => {
|
|
14830
14949
|
$ZodError.init(inst, issues);
|
|
14831
14950
|
inst.name = "ZodError";
|
|
@@ -14860,7 +14979,7 @@ var ZodRealError = $constructor("ZodError", initializer2, {
|
|
|
14860
14979
|
Parent: Error
|
|
14861
14980
|
});
|
|
14862
14981
|
|
|
14863
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
14982
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/parse.js
|
|
14864
14983
|
var parse3 = /* @__PURE__ */ _parse(ZodRealError);
|
|
14865
14984
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
14866
14985
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -14874,7 +14993,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
14874
14993
|
var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
14875
14994
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
14876
14995
|
|
|
14877
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
14996
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/schemas.js
|
|
14878
14997
|
var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
14879
14998
|
$ZodType.init(inst, def);
|
|
14880
14999
|
inst.def = def;
|
|
@@ -14890,8 +15009,8 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
14890
15009
|
};
|
|
14891
15010
|
inst.clone = (def2, params) => clone(inst, def2, params);
|
|
14892
15011
|
inst.brand = () => inst;
|
|
14893
|
-
inst.register = (reg,
|
|
14894
|
-
reg.add(inst,
|
|
15012
|
+
inst.register = (reg, meta2) => {
|
|
15013
|
+
reg.add(inst, meta2);
|
|
14895
15014
|
return inst;
|
|
14896
15015
|
};
|
|
14897
15016
|
inst.parse = (data, params) => parse3(inst, data, params, { callee: inst.parse });
|
|
@@ -14967,6 +15086,7 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
|
14967
15086
|
inst.normalize = (...args) => inst.check(_normalize(...args));
|
|
14968
15087
|
inst.toLowerCase = () => inst.check(_toLowerCase());
|
|
14969
15088
|
inst.toUpperCase = () => inst.check(_toUpperCase());
|
|
15089
|
+
inst.slugify = () => inst.check(_slugify());
|
|
14970
15090
|
});
|
|
14971
15091
|
var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
14972
15092
|
$ZodString.init(inst, def);
|
|
@@ -15106,6 +15226,13 @@ var ZodIPv4 = /* @__PURE__ */ $constructor("ZodIPv4", (inst, def) => {
|
|
|
15106
15226
|
function ipv42(params) {
|
|
15107
15227
|
return _ipv4(ZodIPv4, params);
|
|
15108
15228
|
}
|
|
15229
|
+
var ZodMAC = /* @__PURE__ */ $constructor("ZodMAC", (inst, def) => {
|
|
15230
|
+
$ZodMAC.init(inst, def);
|
|
15231
|
+
ZodStringFormat.init(inst, def);
|
|
15232
|
+
});
|
|
15233
|
+
function mac2(params) {
|
|
15234
|
+
return _mac(ZodMAC, params);
|
|
15235
|
+
}
|
|
15109
15236
|
var ZodIPv6 = /* @__PURE__ */ $constructor("ZodIPv6", (inst, def) => {
|
|
15110
15237
|
$ZodIPv6.init(inst, def);
|
|
15111
15238
|
ZodStringFormat.init(inst, def);
|
|
@@ -15814,6 +15941,8 @@ function refine(fn, _params = {}) {
|
|
|
15814
15941
|
function superRefine(fn) {
|
|
15815
15942
|
return _superRefine(fn);
|
|
15816
15943
|
}
|
|
15944
|
+
var describe2 = describe;
|
|
15945
|
+
var meta2 = meta;
|
|
15817
15946
|
function _instanceof(cls, params = {
|
|
15818
15947
|
error: `Input not instance of ${cls.name}`
|
|
15819
15948
|
}) {
|
|
@@ -15841,7 +15970,7 @@ function json(params) {
|
|
|
15841
15970
|
function preprocess(fn, schema) {
|
|
15842
15971
|
return pipe(transform(fn), schema);
|
|
15843
15972
|
}
|
|
15844
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
15973
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/compat.js
|
|
15845
15974
|
var ZodIssueCode = {
|
|
15846
15975
|
invalid_type: "invalid_type",
|
|
15847
15976
|
too_big: "too_big",
|
|
@@ -15865,7 +15994,7 @@ function getErrorMap() {
|
|
|
15865
15994
|
}
|
|
15866
15995
|
var ZodFirstPartyTypeKind;
|
|
15867
15996
|
(function(ZodFirstPartyTypeKind2) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
15868
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
15997
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/coerce.js
|
|
15869
15998
|
var exports_coerce = {};
|
|
15870
15999
|
__export(exports_coerce, {
|
|
15871
16000
|
string: () => string3,
|
|
@@ -15890,9 +16019,9 @@ function date4(params) {
|
|
|
15890
16019
|
return _coercedDate(ZodDate, params);
|
|
15891
16020
|
}
|
|
15892
16021
|
|
|
15893
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
16022
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/external.js
|
|
15894
16023
|
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.
|
|
16024
|
+
// ../../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__e22c883956ae08cf070df1cfac1f8e91/node_modules/safegen/dist/safegen-DHhNOdib.js
|
|
15896
16025
|
function createSafeDataGenerator(gen, logger) {
|
|
15897
16026
|
return function generateFromSchema({ schema, fallback, toJsonSchema = exports_external.toJSONSchema }) {
|
|
15898
16027
|
const jsonSchema = toJsonSchema(schema);
|
|
@@ -15924,7 +16053,7 @@ function jsonSchemaToInstruction(jsonSchema) {
|
|
|
15924
16053
|
`);
|
|
15925
16054
|
}
|
|
15926
16055
|
|
|
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.
|
|
16056
|
+
// ../../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__e22c883956ae08cf070df1cfac1f8e91/node_modules/safegen/dist/primitives-DeHVhToL.js
|
|
15928
16057
|
function formatIssue(prompt, actual, issue2, consequence) {
|
|
15929
16058
|
const lines = [
|
|
15930
16059
|
`SafeGen saw that invalid data was produced for the prompt:`,
|
|
@@ -16056,7 +16185,7 @@ ${formattingInstruction}`, `choose-${instruction}-FROM-${options.join(`-`)}`, ma
|
|
|
16056
16185
|
return selections;
|
|
16057
16186
|
}
|
|
16058
16187
|
|
|
16059
|
-
// ../../node_modules/.pnpm/varmint@0.5.11_zod@4.1.
|
|
16188
|
+
// ../../node_modules/.pnpm/varmint@0.5.11_zod@4.1.13/node_modules/varmint/dist/varmint-workspace-manager-Bu9YnLAq.js
|
|
16060
16189
|
var import_cachedir = __toESM(require_cachedir(), 1);
|
|
16061
16190
|
import * as fs from "fs";
|
|
16062
16191
|
import * as path from "path";
|
|
@@ -16113,7 +16242,7 @@ var FilesystemStorage = class {
|
|
|
16113
16242
|
}
|
|
16114
16243
|
};
|
|
16115
16244
|
|
|
16116
|
-
// ../../node_modules/.pnpm/varmint@0.5.11_zod@4.1.
|
|
16245
|
+
// ../../node_modules/.pnpm/varmint@0.5.11_zod@4.1.13/node_modules/varmint/dist/varmint-workspace-manager-Bu9YnLAq.js
|
|
16117
16246
|
var filenameAllowList = /[^a-zA-Z0-9\-._]/g;
|
|
16118
16247
|
function sanitizeFilename(filename, maxLen = 64) {
|
|
16119
16248
|
if (maxLen % 2 === 1)
|
|
@@ -16269,7 +16398,7 @@ function startsWith(prefix, str) {
|
|
|
16269
16398
|
return str.startsWith(prefix);
|
|
16270
16399
|
}
|
|
16271
16400
|
|
|
16272
|
-
// ../../node_modules/.pnpm/varmint@0.5.11_zod@4.1.
|
|
16401
|
+
// ../../node_modules/.pnpm/varmint@0.5.11_zod@4.1.13/node_modules/varmint/dist/index.js
|
|
16273
16402
|
import * as fs2 from "fs";
|
|
16274
16403
|
import * as path2 from "path";
|
|
16275
16404
|
import { inspect } from "util";
|
|
@@ -16430,7 +16559,7 @@ class Diff {
|
|
|
16430
16559
|
return this.diffWithOptionsObj(oldTokens, newTokens, options, callback);
|
|
16431
16560
|
}
|
|
16432
16561
|
diffWithOptionsObj(oldTokens, newTokens, options, callback) {
|
|
16433
|
-
var
|
|
16562
|
+
var _a2;
|
|
16434
16563
|
const done = (value) => {
|
|
16435
16564
|
value = this.postProcess(value, options);
|
|
16436
16565
|
if (callback) {
|
|
@@ -16448,7 +16577,7 @@ class Diff {
|
|
|
16448
16577
|
if (options.maxEditLength != null) {
|
|
16449
16578
|
maxEditLength = Math.min(maxEditLength, options.maxEditLength);
|
|
16450
16579
|
}
|
|
16451
|
-
const maxExecutionTime = (
|
|
16580
|
+
const maxExecutionTime = (_a2 = options.timeout) !== null && _a2 !== undefined ? _a2 : Infinity;
|
|
16452
16581
|
const abortAfterTimestamp = Date.now() + maxExecutionTime;
|
|
16453
16582
|
const bestPath = [{ oldPos: -1, lastComponent: undefined }];
|
|
16454
16583
|
let newPos = this.extractCommon(bestPath[0], newTokens, oldTokens, 0, options);
|
|
@@ -16924,7 +17053,7 @@ function isSentenceEndPunct(char) {
|
|
|
16924
17053
|
|
|
16925
17054
|
class SentenceDiff extends Diff {
|
|
16926
17055
|
tokenize(value) {
|
|
16927
|
-
var
|
|
17056
|
+
var _a2;
|
|
16928
17057
|
const result = [];
|
|
16929
17058
|
let tokenStartI = 0;
|
|
16930
17059
|
for (let i = 0;i < value.length; i++) {
|
|
@@ -16935,7 +17064,7 @@ class SentenceDiff extends Diff {
|
|
|
16935
17064
|
if (isSentenceEndPunct(value[i]) && value[i + 1].match(/\s/)) {
|
|
16936
17065
|
result.push(value.slice(tokenStartI, i + 1));
|
|
16937
17066
|
i = tokenStartI = i + 1;
|
|
16938
|
-
while ((
|
|
17067
|
+
while ((_a2 = value[i + 1]) === null || _a2 === undefined ? undefined : _a2.match(/\s/)) {
|
|
16939
17068
|
i++;
|
|
16940
17069
|
}
|
|
16941
17070
|
result.push(value.slice(tokenStartI, i + 1));
|
|
@@ -17038,7 +17167,7 @@ class ArrayDiff extends Diff {
|
|
|
17038
17167
|
}
|
|
17039
17168
|
var arrayDiff = new ArrayDiff;
|
|
17040
17169
|
|
|
17041
|
-
// ../../node_modules/.pnpm/varmint@0.5.11_zod@4.1.
|
|
17170
|
+
// ../../node_modules/.pnpm/varmint@0.5.11_zod@4.1.13/node_modules/varmint/dist/index.js
|
|
17042
17171
|
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
17043
17172
|
var pico = import_picocolors.default.createColors(true);
|
|
17044
17173
|
function prettyPrintDiffInline(oldStr, newStr, opts = {}) {
|
|
@@ -17422,7 +17551,7 @@ ${inputFileContents}`);
|
|
|
17422
17551
|
}
|
|
17423
17552
|
};
|
|
17424
17553
|
|
|
17425
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
17554
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/tslib.mjs
|
|
17426
17555
|
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
17427
17556
|
if (kind === "m")
|
|
17428
17557
|
throw new TypeError("Private method is not writable");
|
|
@@ -17440,7 +17569,7 @@ function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
|
17440
17569
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
17441
17570
|
}
|
|
17442
17571
|
|
|
17443
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
17572
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/utils/uuid.mjs
|
|
17444
17573
|
var uuid42 = function() {
|
|
17445
17574
|
const { crypto: crypto2 } = globalThis;
|
|
17446
17575
|
if (crypto2?.randomUUID) {
|
|
@@ -17452,7 +17581,7 @@ var uuid42 = function() {
|
|
|
17452
17581
|
return "10000000-1000-4000-8000-100000000000".replace(/[018]/g, (c) => (+c ^ randomByte() & 15 >> +c / 4).toString(16));
|
|
17453
17582
|
};
|
|
17454
17583
|
|
|
17455
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
17584
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/errors.mjs
|
|
17456
17585
|
function isAbortError(err) {
|
|
17457
17586
|
return typeof err === "object" && err !== null && (("name" in err) && err.name === "AbortError" || ("message" in err) && String(err.message).includes("FetchRequestCanceledException"));
|
|
17458
17587
|
}
|
|
@@ -17479,7 +17608,7 @@ var castToError = (err) => {
|
|
|
17479
17608
|
return new Error(err);
|
|
17480
17609
|
};
|
|
17481
17610
|
|
|
17482
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
17611
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/core/error.mjs
|
|
17483
17612
|
class OpenAIError extends Error {
|
|
17484
17613
|
}
|
|
17485
17614
|
|
|
@@ -17603,7 +17732,7 @@ class InvalidWebhookSignatureError extends Error {
|
|
|
17603
17732
|
}
|
|
17604
17733
|
}
|
|
17605
17734
|
|
|
17606
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
17735
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/utils/values.mjs
|
|
17607
17736
|
var startsWithSchemeRegexp = /^[a-z][a-z0-9+.-]*:/i;
|
|
17608
17737
|
var isAbsoluteURL = (url2) => {
|
|
17609
17738
|
return startsWithSchemeRegexp.test(url2);
|
|
@@ -17646,13 +17775,13 @@ var safeJSON = (text) => {
|
|
|
17646
17775
|
}
|
|
17647
17776
|
};
|
|
17648
17777
|
|
|
17649
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
17778
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/utils/sleep.mjs
|
|
17650
17779
|
var sleep = (ms) => new Promise((resolve3) => setTimeout(resolve3, ms));
|
|
17651
17780
|
|
|
17652
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
17781
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/version.mjs
|
|
17653
17782
|
var VERSION = "6.9.1";
|
|
17654
17783
|
|
|
17655
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
17784
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/detect-platform.mjs
|
|
17656
17785
|
var isRunningInBrowser = () => {
|
|
17657
17786
|
return typeof window !== "undefined" && typeof window.document !== "undefined" && typeof navigator !== "undefined";
|
|
17658
17787
|
};
|
|
@@ -17781,7 +17910,7 @@ var getPlatformHeaders = () => {
|
|
|
17781
17910
|
return _platformHeaders ?? (_platformHeaders = getPlatformProperties());
|
|
17782
17911
|
};
|
|
17783
17912
|
|
|
17784
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
17913
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/shims.mjs
|
|
17785
17914
|
function getDefaultFetch() {
|
|
17786
17915
|
if (typeof fetch !== "undefined") {
|
|
17787
17916
|
return fetch;
|
|
@@ -17852,7 +17981,7 @@ async function CancelReadableStream(stream) {
|
|
|
17852
17981
|
await cancelPromise;
|
|
17853
17982
|
}
|
|
17854
17983
|
|
|
17855
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
17984
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/request-options.mjs
|
|
17856
17985
|
var FallbackEncoder = ({ headers, body }) => {
|
|
17857
17986
|
return {
|
|
17858
17987
|
bodyHeaders: {
|
|
@@ -17862,7 +17991,7 @@ var FallbackEncoder = ({ headers, body }) => {
|
|
|
17862
17991
|
};
|
|
17863
17992
|
};
|
|
17864
17993
|
|
|
17865
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
17994
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/qs/formats.mjs
|
|
17866
17995
|
var default_format = "RFC3986";
|
|
17867
17996
|
var default_formatter = (v) => String(v);
|
|
17868
17997
|
var formatters = {
|
|
@@ -17871,7 +18000,7 @@ var formatters = {
|
|
|
17871
18000
|
};
|
|
17872
18001
|
var RFC1738 = "RFC1738";
|
|
17873
18002
|
|
|
17874
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
18003
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/qs/utils.mjs
|
|
17875
18004
|
var has = (obj, key) => (has = Object.hasOwn ?? Function.prototype.call.bind(Object.prototype.hasOwnProperty), has(obj, key));
|
|
17876
18005
|
var hex_table = /* @__PURE__ */ (() => {
|
|
17877
18006
|
const array2 = [];
|
|
@@ -17943,7 +18072,7 @@ function maybe_map(val, fn) {
|
|
|
17943
18072
|
return fn(val);
|
|
17944
18073
|
}
|
|
17945
18074
|
|
|
17946
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
18075
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/qs/stringify.mjs
|
|
17947
18076
|
var array_prefix_generators = {
|
|
17948
18077
|
brackets(prefix) {
|
|
17949
18078
|
return String(prefix) + "[]";
|
|
@@ -18170,7 +18299,7 @@ function stringify(object2, opts = {}) {
|
|
|
18170
18299
|
}
|
|
18171
18300
|
return joined.length > 0 ? prefix + joined : "";
|
|
18172
18301
|
}
|
|
18173
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
18302
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/utils/bytes.mjs
|
|
18174
18303
|
function concatBytes(buffers) {
|
|
18175
18304
|
let length = 0;
|
|
18176
18305
|
for (const buffer of buffers) {
|
|
@@ -18195,7 +18324,7 @@ function decodeUTF8(bytes) {
|
|
|
18195
18324
|
return (decodeUTF8_ ?? (decoder = new globalThis.TextDecoder, decodeUTF8_ = decoder.decode.bind(decoder)))(bytes);
|
|
18196
18325
|
}
|
|
18197
18326
|
|
|
18198
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
18327
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/decoders/line.mjs
|
|
18199
18328
|
var _LineDecoder_buffer;
|
|
18200
18329
|
var _LineDecoder_carriageReturnIndex;
|
|
18201
18330
|
|
|
@@ -18275,7 +18404,7 @@ function findDoubleNewlineIndex(buffer) {
|
|
|
18275
18404
|
return -1;
|
|
18276
18405
|
}
|
|
18277
18406
|
|
|
18278
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
18407
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/utils/log.mjs
|
|
18279
18408
|
var levelNumbers = {
|
|
18280
18409
|
off: 0,
|
|
18281
18410
|
error: 200,
|
|
@@ -18347,7 +18476,7 @@ var formatRequestDetails = (details) => {
|
|
|
18347
18476
|
return details;
|
|
18348
18477
|
};
|
|
18349
18478
|
|
|
18350
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
18479
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/core/streaming.mjs
|
|
18351
18480
|
var _Stream_client;
|
|
18352
18481
|
|
|
18353
18482
|
class Stream {
|
|
@@ -18596,7 +18725,7 @@ function partition(str, delimiter) {
|
|
|
18596
18725
|
return [str, "", ""];
|
|
18597
18726
|
}
|
|
18598
18727
|
|
|
18599
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
18728
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/parse.mjs
|
|
18600
18729
|
async function defaultParseResponse(client, props) {
|
|
18601
18730
|
const { response, requestLogID, retryOfRequestLogID, startTime } = props;
|
|
18602
18731
|
const body = await (async () => {
|
|
@@ -18642,7 +18771,7 @@ function addRequestID(value, response) {
|
|
|
18642
18771
|
});
|
|
18643
18772
|
}
|
|
18644
18773
|
|
|
18645
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
18774
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/core/api-promise.mjs
|
|
18646
18775
|
var _APIPromise_client;
|
|
18647
18776
|
|
|
18648
18777
|
class APIPromise extends Promise {
|
|
@@ -18683,7 +18812,7 @@ class APIPromise extends Promise {
|
|
|
18683
18812
|
}
|
|
18684
18813
|
_APIPromise_client = new WeakMap;
|
|
18685
18814
|
|
|
18686
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
18815
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/core/pagination.mjs
|
|
18687
18816
|
var _AbstractPage_client;
|
|
18688
18817
|
|
|
18689
18818
|
class AbstractPage {
|
|
@@ -18812,7 +18941,7 @@ class ConversationCursorPage extends AbstractPage {
|
|
|
18812
18941
|
}
|
|
18813
18942
|
}
|
|
18814
18943
|
|
|
18815
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
18944
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/uploads.mjs
|
|
18816
18945
|
var checkFileSupport = () => {
|
|
18817
18946
|
if (typeof File === "undefined") {
|
|
18818
18947
|
const { process: process2 } = globalThis;
|
|
@@ -18903,7 +19032,7 @@ var addFormValue = async (form, key, value) => {
|
|
|
18903
19032
|
}
|
|
18904
19033
|
};
|
|
18905
19034
|
|
|
18906
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
19035
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/to-file.mjs
|
|
18907
19036
|
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
19037
|
var isFileLike = (value) => value != null && typeof value === "object" && typeof value.name === "string" && typeof value.lastModified === "number" && isBlobLike(value);
|
|
18909
19038
|
var isResponseLike = (value) => value != null && typeof value === "object" && typeof value.url === "string" && typeof value.blob === "function";
|
|
@@ -18953,14 +19082,14 @@ function propsForError(value) {
|
|
|
18953
19082
|
const props = Object.getOwnPropertyNames(value);
|
|
18954
19083
|
return `; props: [${props.map((p) => `"${p}"`).join(", ")}]`;
|
|
18955
19084
|
}
|
|
18956
|
-
// ../../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/core/resource.mjs
|
|
18957
19086
|
class APIResource {
|
|
18958
19087
|
constructor(client) {
|
|
18959
19088
|
this._client = client;
|
|
18960
19089
|
}
|
|
18961
19090
|
}
|
|
18962
19091
|
|
|
18963
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
19092
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/utils/path.mjs
|
|
18964
19093
|
function encodeURIPath(str) {
|
|
18965
19094
|
return str.replace(/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/g, encodeURIComponent);
|
|
18966
19095
|
}
|
|
@@ -19015,13 +19144,13 @@ ${underline}`);
|
|
|
19015
19144
|
};
|
|
19016
19145
|
var path3 = /* @__PURE__ */ createPathTagFunction(encodeURIPath);
|
|
19017
19146
|
|
|
19018
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
19147
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/chat/completions/messages.mjs
|
|
19019
19148
|
class Messages extends APIResource {
|
|
19020
19149
|
list(completionID, query = {}, options) {
|
|
19021
19150
|
return this._client.getAPIList(path3`/chat/completions/${completionID}/messages`, CursorPage, { query, ...options });
|
|
19022
19151
|
}
|
|
19023
19152
|
}
|
|
19024
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
19153
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/lib/parser.mjs
|
|
19025
19154
|
function isChatCompletionFunctionTool(tool) {
|
|
19026
19155
|
return tool !== undefined && "function" in tool && tool.function !== undefined;
|
|
19027
19156
|
}
|
|
@@ -19128,7 +19257,7 @@ function validateInputTools(tools) {
|
|
|
19128
19257
|
}
|
|
19129
19258
|
}
|
|
19130
19259
|
|
|
19131
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
19260
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/lib/chatCompletionUtils.mjs
|
|
19132
19261
|
var isAssistantMessage = (message) => {
|
|
19133
19262
|
return message?.role === "assistant";
|
|
19134
19263
|
};
|
|
@@ -19136,7 +19265,7 @@ var isToolMessage = (message) => {
|
|
|
19136
19265
|
return message?.role === "tool";
|
|
19137
19266
|
};
|
|
19138
19267
|
|
|
19139
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
19268
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/lib/EventStream.mjs
|
|
19140
19269
|
var _EventStream_instances;
|
|
19141
19270
|
var _EventStream_connectedPromise;
|
|
19142
19271
|
var _EventStream_resolveConnectedPromise;
|
|
@@ -19289,12 +19418,12 @@ _EventStream_connectedPromise = new WeakMap, _EventStream_resolveConnectedPromis
|
|
|
19289
19418
|
return this._emit("error", new OpenAIError(String(error47)));
|
|
19290
19419
|
};
|
|
19291
19420
|
|
|
19292
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
19421
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/lib/RunnableFunction.mjs
|
|
19293
19422
|
function isRunnableFunctionWithParse(fn) {
|
|
19294
19423
|
return typeof fn.parse === "function";
|
|
19295
19424
|
}
|
|
19296
19425
|
|
|
19297
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
19426
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/lib/AbstractChatCompletionRunner.mjs
|
|
19298
19427
|
var _AbstractChatCompletionRunner_instances;
|
|
19299
19428
|
var _AbstractChatCompletionRunner_getFinalContent;
|
|
19300
19429
|
var _AbstractChatCompletionRunner_getFinalMessage;
|
|
@@ -19549,7 +19678,7 @@ _AbstractChatCompletionRunner_instances = new WeakSet, _AbstractChatCompletionRu
|
|
|
19549
19678
|
return typeof rawContent === "string" ? rawContent : rawContent === undefined ? "undefined" : JSON.stringify(rawContent);
|
|
19550
19679
|
};
|
|
19551
19680
|
|
|
19552
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
19681
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/lib/ChatCompletionRunner.mjs
|
|
19553
19682
|
class ChatCompletionRunner extends AbstractChatCompletionRunner {
|
|
19554
19683
|
static runTools(client, params, options) {
|
|
19555
19684
|
const runner = new ChatCompletionRunner;
|
|
@@ -19568,7 +19697,7 @@ class ChatCompletionRunner extends AbstractChatCompletionRunner {
|
|
|
19568
19697
|
}
|
|
19569
19698
|
}
|
|
19570
19699
|
|
|
19571
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
19700
|
+
// ../../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
19701
|
var STR = 1;
|
|
19573
19702
|
var NUM = 2;
|
|
19574
19703
|
var ARR = 4;
|
|
@@ -19781,7 +19910,7 @@ var _parseJSON = (jsonString, allow) => {
|
|
|
19781
19910
|
return parseAny();
|
|
19782
19911
|
};
|
|
19783
19912
|
var partialParse = (input) => parseJSON(input, Allow.ALL ^ Allow.NUM);
|
|
19784
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
19913
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/lib/ChatCompletionStream.mjs
|
|
19785
19914
|
var _ChatCompletionStream_instances;
|
|
19786
19915
|
var _ChatCompletionStream_params;
|
|
19787
19916
|
var _ChatCompletionStream_choiceEventStates;
|
|
@@ -20009,7 +20138,7 @@ class ChatCompletionStream extends AbstractChatCompletionRunner {
|
|
|
20009
20138
|
}
|
|
20010
20139
|
return null;
|
|
20011
20140
|
}, _ChatCompletionStream_accumulateChatCompletion = function _ChatCompletionStream_accumulateChatCompletion(chunk) {
|
|
20012
|
-
var
|
|
20141
|
+
var _a2, _b, _c, _d;
|
|
20013
20142
|
let snapshot = __classPrivateFieldGet(this, _ChatCompletionStream_currentChatCompletionSnapshot, "f");
|
|
20014
20143
|
const { choices, ...rest } = chunk;
|
|
20015
20144
|
if (!snapshot) {
|
|
@@ -20033,7 +20162,7 @@ class ChatCompletionStream extends AbstractChatCompletionRunner {
|
|
|
20033
20162
|
assertIsEmpty(rest3);
|
|
20034
20163
|
Object.assign(choice.logprobs, rest3);
|
|
20035
20164
|
if (content2) {
|
|
20036
|
-
(
|
|
20165
|
+
(_a2 = choice.logprobs).content ?? (_a2.content = []);
|
|
20037
20166
|
choice.logprobs.content.push(...content2);
|
|
20038
20167
|
}
|
|
20039
20168
|
if (refusal2) {
|
|
@@ -20254,7 +20383,7 @@ function assertIsEmpty(obj) {
|
|
|
20254
20383
|
}
|
|
20255
20384
|
function assertNever2(_x) {}
|
|
20256
20385
|
|
|
20257
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20386
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/lib/ChatCompletionStreamingRunner.mjs
|
|
20258
20387
|
class ChatCompletionStreamingRunner extends ChatCompletionStream {
|
|
20259
20388
|
static fromReadableStream(stream) {
|
|
20260
20389
|
const runner = new ChatCompletionStreamingRunner(null);
|
|
@@ -20272,7 +20401,7 @@ class ChatCompletionStreamingRunner extends ChatCompletionStream {
|
|
|
20272
20401
|
}
|
|
20273
20402
|
}
|
|
20274
20403
|
|
|
20275
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20404
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/chat/completions/completions.mjs
|
|
20276
20405
|
class Completions extends APIResource {
|
|
20277
20406
|
constructor() {
|
|
20278
20407
|
super(...arguments);
|
|
@@ -20315,7 +20444,7 @@ class Completions extends APIResource {
|
|
|
20315
20444
|
}
|
|
20316
20445
|
Completions.Messages = Messages;
|
|
20317
20446
|
|
|
20318
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20447
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/chat/chat.mjs
|
|
20319
20448
|
class Chat extends APIResource {
|
|
20320
20449
|
constructor() {
|
|
20321
20450
|
super(...arguments);
|
|
@@ -20323,7 +20452,7 @@ class Chat extends APIResource {
|
|
|
20323
20452
|
}
|
|
20324
20453
|
}
|
|
20325
20454
|
Chat.Completions = Completions;
|
|
20326
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20455
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/headers.mjs
|
|
20327
20456
|
var brand_privateNullableHeaders = /* @__PURE__ */ Symbol("brand.privateNullableHeaders");
|
|
20328
20457
|
function* iterateHeaders(headers) {
|
|
20329
20458
|
if (!headers)
|
|
@@ -20386,7 +20515,7 @@ var buildHeaders = (newHeaders) => {
|
|
|
20386
20515
|
return { [brand_privateNullableHeaders]: true, values: targetHeaders, nulls: nullHeaders };
|
|
20387
20516
|
};
|
|
20388
20517
|
|
|
20389
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20518
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/audio/speech.mjs
|
|
20390
20519
|
class Speech extends APIResource {
|
|
20391
20520
|
create(body, options) {
|
|
20392
20521
|
return this._client.post("/audio/speech", {
|
|
@@ -20398,7 +20527,7 @@ class Speech extends APIResource {
|
|
|
20398
20527
|
}
|
|
20399
20528
|
}
|
|
20400
20529
|
|
|
20401
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20530
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/audio/transcriptions.mjs
|
|
20402
20531
|
class Transcriptions extends APIResource {
|
|
20403
20532
|
create(body, options) {
|
|
20404
20533
|
return this._client.post("/audio/transcriptions", multipartFormRequestOptions({
|
|
@@ -20410,14 +20539,14 @@ class Transcriptions extends APIResource {
|
|
|
20410
20539
|
}
|
|
20411
20540
|
}
|
|
20412
20541
|
|
|
20413
|
-
// ../../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/translations.mjs
|
|
20414
20543
|
class Translations extends APIResource {
|
|
20415
20544
|
create(body, options) {
|
|
20416
20545
|
return this._client.post("/audio/translations", multipartFormRequestOptions({ body, ...options, __metadata: { model: body.model } }, this._client));
|
|
20417
20546
|
}
|
|
20418
20547
|
}
|
|
20419
20548
|
|
|
20420
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20549
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/audio/audio.mjs
|
|
20421
20550
|
class Audio extends APIResource {
|
|
20422
20551
|
constructor() {
|
|
20423
20552
|
super(...arguments);
|
|
@@ -20429,7 +20558,7 @@ class Audio extends APIResource {
|
|
|
20429
20558
|
Audio.Transcriptions = Transcriptions;
|
|
20430
20559
|
Audio.Translations = Translations;
|
|
20431
20560
|
Audio.Speech = Speech;
|
|
20432
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20561
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/batches.mjs
|
|
20433
20562
|
class Batches extends APIResource {
|
|
20434
20563
|
create(body, options) {
|
|
20435
20564
|
return this._client.post("/batches", { body, ...options });
|
|
@@ -20444,7 +20573,7 @@ class Batches extends APIResource {
|
|
|
20444
20573
|
return this._client.post(path3`/batches/${batchID}/cancel`, options);
|
|
20445
20574
|
}
|
|
20446
20575
|
}
|
|
20447
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20576
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/beta/assistants.mjs
|
|
20448
20577
|
class Assistants extends APIResource {
|
|
20449
20578
|
create(body, options) {
|
|
20450
20579
|
return this._client.post("/assistants", {
|
|
@@ -20481,7 +20610,7 @@ class Assistants extends APIResource {
|
|
|
20481
20610
|
}
|
|
20482
20611
|
}
|
|
20483
20612
|
|
|
20484
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20613
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/beta/realtime/sessions.mjs
|
|
20485
20614
|
class Sessions extends APIResource {
|
|
20486
20615
|
create(body, options) {
|
|
20487
20616
|
return this._client.post("/realtime/sessions", {
|
|
@@ -20492,7 +20621,7 @@ class Sessions extends APIResource {
|
|
|
20492
20621
|
}
|
|
20493
20622
|
}
|
|
20494
20623
|
|
|
20495
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20624
|
+
// ../../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
20625
|
class TranscriptionSessions extends APIResource {
|
|
20497
20626
|
create(body, options) {
|
|
20498
20627
|
return this._client.post("/realtime/transcription_sessions", {
|
|
@@ -20503,7 +20632,7 @@ class TranscriptionSessions extends APIResource {
|
|
|
20503
20632
|
}
|
|
20504
20633
|
}
|
|
20505
20634
|
|
|
20506
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20635
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/beta/realtime/realtime.mjs
|
|
20507
20636
|
class Realtime extends APIResource {
|
|
20508
20637
|
constructor() {
|
|
20509
20638
|
super(...arguments);
|
|
@@ -20514,7 +20643,7 @@ class Realtime extends APIResource {
|
|
|
20514
20643
|
Realtime.Sessions = Sessions;
|
|
20515
20644
|
Realtime.TranscriptionSessions = TranscriptionSessions;
|
|
20516
20645
|
|
|
20517
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20646
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/beta/chatkit/sessions.mjs
|
|
20518
20647
|
class Sessions2 extends APIResource {
|
|
20519
20648
|
create(body, options) {
|
|
20520
20649
|
return this._client.post("/chatkit/sessions", {
|
|
@@ -20531,7 +20660,7 @@ class Sessions2 extends APIResource {
|
|
|
20531
20660
|
}
|
|
20532
20661
|
}
|
|
20533
20662
|
|
|
20534
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20663
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/beta/chatkit/threads.mjs
|
|
20535
20664
|
class Threads extends APIResource {
|
|
20536
20665
|
retrieve(threadID, options) {
|
|
20537
20666
|
return this._client.get(path3`/chatkit/threads/${threadID}`, {
|
|
@@ -20557,7 +20686,7 @@ class Threads extends APIResource {
|
|
|
20557
20686
|
}
|
|
20558
20687
|
}
|
|
20559
20688
|
|
|
20560
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20689
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/beta/chatkit/chatkit.mjs
|
|
20561
20690
|
class ChatKit extends APIResource {
|
|
20562
20691
|
constructor() {
|
|
20563
20692
|
super(...arguments);
|
|
@@ -20568,7 +20697,7 @@ class ChatKit extends APIResource {
|
|
|
20568
20697
|
ChatKit.Sessions = Sessions2;
|
|
20569
20698
|
ChatKit.Threads = Threads;
|
|
20570
20699
|
|
|
20571
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20700
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/beta/threads/messages.mjs
|
|
20572
20701
|
class Messages2 extends APIResource {
|
|
20573
20702
|
create(threadID, body, options) {
|
|
20574
20703
|
return this._client.post(path3`/threads/${threadID}/messages`, {
|
|
@@ -20608,7 +20737,7 @@ class Messages2 extends APIResource {
|
|
|
20608
20737
|
}
|
|
20609
20738
|
}
|
|
20610
20739
|
|
|
20611
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20740
|
+
// ../../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
20741
|
class Steps extends APIResource {
|
|
20613
20742
|
retrieve(stepID, params, options) {
|
|
20614
20743
|
const { thread_id, run_id, ...query } = params;
|
|
@@ -20627,7 +20756,7 @@ class Steps extends APIResource {
|
|
|
20627
20756
|
});
|
|
20628
20757
|
}
|
|
20629
20758
|
}
|
|
20630
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20759
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/utils/base64.mjs
|
|
20631
20760
|
var toFloat32Array = (base64Str) => {
|
|
20632
20761
|
if (typeof Buffer !== "undefined") {
|
|
20633
20762
|
const buf = Buffer.from(base64Str, "base64");
|
|
@@ -20642,7 +20771,7 @@ var toFloat32Array = (base64Str) => {
|
|
|
20642
20771
|
return Array.from(new Float32Array(bytes.buffer));
|
|
20643
20772
|
}
|
|
20644
20773
|
};
|
|
20645
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20774
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/internal/utils/env.mjs
|
|
20646
20775
|
var readEnv = (env) => {
|
|
20647
20776
|
if (typeof globalThis.process !== "undefined") {
|
|
20648
20777
|
return globalThis.process.env?.[env]?.trim() ?? undefined;
|
|
@@ -20652,9 +20781,9 @@ var readEnv = (env) => {
|
|
|
20652
20781
|
}
|
|
20653
20782
|
return;
|
|
20654
20783
|
};
|
|
20655
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
20784
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/lib/AssistantStream.mjs
|
|
20656
20785
|
var _AssistantStream_instances;
|
|
20657
|
-
var
|
|
20786
|
+
var _a2;
|
|
20658
20787
|
var _AssistantStream_events;
|
|
20659
20788
|
var _AssistantStream_runStepSnapshots;
|
|
20660
20789
|
var _AssistantStream_messageSnapshots;
|
|
@@ -20745,7 +20874,7 @@ class AssistantStream extends EventStream {
|
|
|
20745
20874
|
};
|
|
20746
20875
|
}
|
|
20747
20876
|
static fromReadableStream(stream) {
|
|
20748
|
-
const runner = new
|
|
20877
|
+
const runner = new _a2;
|
|
20749
20878
|
runner._run(() => runner._fromReadableStream(stream));
|
|
20750
20879
|
return runner;
|
|
20751
20880
|
}
|
|
@@ -20771,7 +20900,7 @@ class AssistantStream extends EventStream {
|
|
|
20771
20900
|
return stream.toReadableStream();
|
|
20772
20901
|
}
|
|
20773
20902
|
static createToolAssistantStream(runId, runs, params, options) {
|
|
20774
|
-
const runner = new
|
|
20903
|
+
const runner = new _a2;
|
|
20775
20904
|
runner._run(() => runner._runToolAssistantStream(runId, runs, params, {
|
|
20776
20905
|
...options,
|
|
20777
20906
|
headers: { ...options?.headers, "X-Stainless-Helper-Method": "stream" }
|
|
@@ -20800,7 +20929,7 @@ class AssistantStream extends EventStream {
|
|
|
20800
20929
|
return this._addRun(__classPrivateFieldGet(this, _AssistantStream_instances, "m", _AssistantStream_endRequest).call(this));
|
|
20801
20930
|
}
|
|
20802
20931
|
static createThreadAssistantStream(params, thread, options) {
|
|
20803
|
-
const runner = new
|
|
20932
|
+
const runner = new _a2;
|
|
20804
20933
|
runner._run(() => runner._threadAssistantStream(params, thread, {
|
|
20805
20934
|
...options,
|
|
20806
20935
|
headers: { ...options?.headers, "X-Stainless-Helper-Method": "stream" }
|
|
@@ -20808,7 +20937,7 @@ class AssistantStream extends EventStream {
|
|
|
20808
20937
|
return runner;
|
|
20809
20938
|
}
|
|
20810
20939
|
static createAssistantStream(threadId, runs, params, options) {
|
|
20811
|
-
const runner = new
|
|
20940
|
+
const runner = new _a2;
|
|
20812
20941
|
runner._run(() => runner._runAssistantStream(threadId, runs, params, {
|
|
20813
20942
|
...options,
|
|
20814
20943
|
headers: { ...options?.headers, "X-Stainless-Helper-Method": "stream" }
|
|
@@ -20943,7 +21072,7 @@ class AssistantStream extends EventStream {
|
|
|
20943
21072
|
return await this._createToolAssistantStream(runs, runId, params, options);
|
|
20944
21073
|
}
|
|
20945
21074
|
}
|
|
20946
|
-
|
|
21075
|
+
_a2 = AssistantStream, _AssistantStream_addEvent = function _AssistantStream_addEvent2(event) {
|
|
20947
21076
|
if (this.ended)
|
|
20948
21077
|
return;
|
|
20949
21078
|
__classPrivateFieldSet(this, _AssistantStream_currentEvent, event, "f");
|
|
@@ -21115,7 +21244,7 @@ _a = AssistantStream, _AssistantStream_addEvent = function _AssistantStream_addE
|
|
|
21115
21244
|
}
|
|
21116
21245
|
let data = event.data;
|
|
21117
21246
|
if (data.delta) {
|
|
21118
|
-
const accumulated =
|
|
21247
|
+
const accumulated = _a2.accumulateDelta(snapshot, data.delta);
|
|
21119
21248
|
__classPrivateFieldGet(this, _AssistantStream_runStepSnapshots, "f")[event.data.id] = accumulated;
|
|
21120
21249
|
}
|
|
21121
21250
|
return __classPrivateFieldGet(this, _AssistantStream_runStepSnapshots, "f")[event.data.id];
|
|
@@ -21163,7 +21292,7 @@ _a = AssistantStream, _AssistantStream_addEvent = function _AssistantStream_addE
|
|
|
21163
21292
|
}
|
|
21164
21293
|
throw Error("Tried to accumulate a non-message event");
|
|
21165
21294
|
}, _AssistantStream_accumulateContent = function _AssistantStream_accumulateContent2(contentElement, currentContent) {
|
|
21166
|
-
return
|
|
21295
|
+
return _a2.accumulateDelta(currentContent, contentElement);
|
|
21167
21296
|
}, _AssistantStream_handleRun = function _AssistantStream_handleRun2(event) {
|
|
21168
21297
|
__classPrivateFieldSet(this, _AssistantStream_currentRunSnapshot, event.data, "f");
|
|
21169
21298
|
switch (event.event) {
|
|
@@ -21191,7 +21320,7 @@ _a = AssistantStream, _AssistantStream_addEvent = function _AssistantStream_addE
|
|
|
21191
21320
|
};
|
|
21192
21321
|
function assertNever3(_x) {}
|
|
21193
21322
|
|
|
21194
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21323
|
+
// ../../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
21324
|
class Runs extends APIResource {
|
|
21196
21325
|
constructor() {
|
|
21197
21326
|
super(...arguments);
|
|
@@ -21306,7 +21435,7 @@ class Runs extends APIResource {
|
|
|
21306
21435
|
}
|
|
21307
21436
|
Runs.Steps = Steps;
|
|
21308
21437
|
|
|
21309
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21438
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/beta/threads/threads.mjs
|
|
21310
21439
|
class Threads2 extends APIResource {
|
|
21311
21440
|
constructor() {
|
|
21312
21441
|
super(...arguments);
|
|
@@ -21358,7 +21487,7 @@ class Threads2 extends APIResource {
|
|
|
21358
21487
|
Threads2.Runs = Runs;
|
|
21359
21488
|
Threads2.Messages = Messages2;
|
|
21360
21489
|
|
|
21361
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21490
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/beta/beta.mjs
|
|
21362
21491
|
class Beta extends APIResource {
|
|
21363
21492
|
constructor() {
|
|
21364
21493
|
super(...arguments);
|
|
@@ -21372,13 +21501,13 @@ Beta.Realtime = Realtime;
|
|
|
21372
21501
|
Beta.ChatKit = ChatKit;
|
|
21373
21502
|
Beta.Assistants = Assistants;
|
|
21374
21503
|
Beta.Threads = Threads2;
|
|
21375
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21504
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/completions.mjs
|
|
21376
21505
|
class Completions2 extends APIResource {
|
|
21377
21506
|
create(body, options) {
|
|
21378
21507
|
return this._client.post("/completions", { body, ...options, stream: body.stream ?? false });
|
|
21379
21508
|
}
|
|
21380
21509
|
}
|
|
21381
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21510
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/containers/files/content.mjs
|
|
21382
21511
|
class Content extends APIResource {
|
|
21383
21512
|
retrieve(fileID, params, options) {
|
|
21384
21513
|
const { container_id } = params;
|
|
@@ -21390,7 +21519,7 @@ class Content extends APIResource {
|
|
|
21390
21519
|
}
|
|
21391
21520
|
}
|
|
21392
21521
|
|
|
21393
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21522
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/containers/files/files.mjs
|
|
21394
21523
|
class Files extends APIResource {
|
|
21395
21524
|
constructor() {
|
|
21396
21525
|
super(...arguments);
|
|
@@ -21419,7 +21548,7 @@ class Files extends APIResource {
|
|
|
21419
21548
|
}
|
|
21420
21549
|
Files.Content = Content;
|
|
21421
21550
|
|
|
21422
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21551
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/containers/containers.mjs
|
|
21423
21552
|
class Containers extends APIResource {
|
|
21424
21553
|
constructor() {
|
|
21425
21554
|
super(...arguments);
|
|
@@ -21442,7 +21571,7 @@ class Containers extends APIResource {
|
|
|
21442
21571
|
}
|
|
21443
21572
|
}
|
|
21444
21573
|
Containers.Files = Files;
|
|
21445
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21574
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/conversations/items.mjs
|
|
21446
21575
|
class Items extends APIResource {
|
|
21447
21576
|
create(conversationID, params, options) {
|
|
21448
21577
|
const { include, ...body } = params;
|
|
@@ -21465,7 +21594,7 @@ class Items extends APIResource {
|
|
|
21465
21594
|
}
|
|
21466
21595
|
}
|
|
21467
21596
|
|
|
21468
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21597
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/conversations/conversations.mjs
|
|
21469
21598
|
class Conversations extends APIResource {
|
|
21470
21599
|
constructor() {
|
|
21471
21600
|
super(...arguments);
|
|
@@ -21485,7 +21614,7 @@ class Conversations extends APIResource {
|
|
|
21485
21614
|
}
|
|
21486
21615
|
}
|
|
21487
21616
|
Conversations.Items = Items;
|
|
21488
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21617
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/embeddings.mjs
|
|
21489
21618
|
class Embeddings extends APIResource {
|
|
21490
21619
|
create(body, options) {
|
|
21491
21620
|
const hasUserProvidedEncodingFormat = !!body.encoding_format;
|
|
@@ -21515,7 +21644,7 @@ class Embeddings extends APIResource {
|
|
|
21515
21644
|
});
|
|
21516
21645
|
}
|
|
21517
21646
|
}
|
|
21518
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21647
|
+
// ../../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
21648
|
class OutputItems extends APIResource {
|
|
21520
21649
|
retrieve(outputItemID, params, options) {
|
|
21521
21650
|
const { eval_id, run_id } = params;
|
|
@@ -21527,7 +21656,7 @@ class OutputItems extends APIResource {
|
|
|
21527
21656
|
}
|
|
21528
21657
|
}
|
|
21529
21658
|
|
|
21530
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21659
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/evals/runs/runs.mjs
|
|
21531
21660
|
class Runs2 extends APIResource {
|
|
21532
21661
|
constructor() {
|
|
21533
21662
|
super(...arguments);
|
|
@@ -21557,7 +21686,7 @@ class Runs2 extends APIResource {
|
|
|
21557
21686
|
}
|
|
21558
21687
|
Runs2.OutputItems = OutputItems;
|
|
21559
21688
|
|
|
21560
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21689
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/evals/evals.mjs
|
|
21561
21690
|
class Evals extends APIResource {
|
|
21562
21691
|
constructor() {
|
|
21563
21692
|
super(...arguments);
|
|
@@ -21580,7 +21709,7 @@ class Evals extends APIResource {
|
|
|
21580
21709
|
}
|
|
21581
21710
|
}
|
|
21582
21711
|
Evals.Runs = Runs2;
|
|
21583
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21712
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/files.mjs
|
|
21584
21713
|
class Files2 extends APIResource {
|
|
21585
21714
|
create(body, options) {
|
|
21586
21715
|
return this._client.post("/files", multipartFormRequestOptions({ body, ...options }, this._client));
|
|
@@ -21617,11 +21746,11 @@ class Files2 extends APIResource {
|
|
|
21617
21746
|
return file2;
|
|
21618
21747
|
}
|
|
21619
21748
|
}
|
|
21620
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21749
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/fine-tuning/methods.mjs
|
|
21621
21750
|
class Methods extends APIResource {
|
|
21622
21751
|
}
|
|
21623
21752
|
|
|
21624
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21753
|
+
// ../../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
21754
|
class Graders extends APIResource {
|
|
21626
21755
|
run(body, options) {
|
|
21627
21756
|
return this._client.post("/fine_tuning/alpha/graders/run", { body, ...options });
|
|
@@ -21631,7 +21760,7 @@ class Graders extends APIResource {
|
|
|
21631
21760
|
}
|
|
21632
21761
|
}
|
|
21633
21762
|
|
|
21634
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21763
|
+
// ../../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
21764
|
class Alpha extends APIResource {
|
|
21636
21765
|
constructor() {
|
|
21637
21766
|
super(...arguments);
|
|
@@ -21640,7 +21769,7 @@ class Alpha extends APIResource {
|
|
|
21640
21769
|
}
|
|
21641
21770
|
Alpha.Graders = Graders;
|
|
21642
21771
|
|
|
21643
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21772
|
+
// ../../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
21773
|
class Permissions extends APIResource {
|
|
21645
21774
|
create(fineTunedModelCheckpoint, body, options) {
|
|
21646
21775
|
return this._client.getAPIList(path3`/fine_tuning/checkpoints/${fineTunedModelCheckpoint}/permissions`, Page, { body, method: "post", ...options });
|
|
@@ -21657,7 +21786,7 @@ class Permissions extends APIResource {
|
|
|
21657
21786
|
}
|
|
21658
21787
|
}
|
|
21659
21788
|
|
|
21660
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21789
|
+
// ../../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
21790
|
class Checkpoints extends APIResource {
|
|
21662
21791
|
constructor() {
|
|
21663
21792
|
super(...arguments);
|
|
@@ -21666,14 +21795,14 @@ class Checkpoints extends APIResource {
|
|
|
21666
21795
|
}
|
|
21667
21796
|
Checkpoints.Permissions = Permissions;
|
|
21668
21797
|
|
|
21669
|
-
// ../../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/checkpoints.mjs
|
|
21670
21799
|
class Checkpoints2 extends APIResource {
|
|
21671
21800
|
list(fineTuningJobID, query = {}, options) {
|
|
21672
21801
|
return this._client.getAPIList(path3`/fine_tuning/jobs/${fineTuningJobID}/checkpoints`, CursorPage, { query, ...options });
|
|
21673
21802
|
}
|
|
21674
21803
|
}
|
|
21675
21804
|
|
|
21676
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21805
|
+
// ../../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
21806
|
class Jobs extends APIResource {
|
|
21678
21807
|
constructor() {
|
|
21679
21808
|
super(...arguments);
|
|
@@ -21703,7 +21832,7 @@ class Jobs extends APIResource {
|
|
|
21703
21832
|
}
|
|
21704
21833
|
Jobs.Checkpoints = Checkpoints2;
|
|
21705
21834
|
|
|
21706
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21835
|
+
// ../../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
21836
|
class FineTuning extends APIResource {
|
|
21708
21837
|
constructor() {
|
|
21709
21838
|
super(...arguments);
|
|
@@ -21717,11 +21846,11 @@ FineTuning.Methods = Methods;
|
|
|
21717
21846
|
FineTuning.Jobs = Jobs;
|
|
21718
21847
|
FineTuning.Checkpoints = Checkpoints;
|
|
21719
21848
|
FineTuning.Alpha = Alpha;
|
|
21720
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21849
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/graders/grader-models.mjs
|
|
21721
21850
|
class GraderModels extends APIResource {
|
|
21722
21851
|
}
|
|
21723
21852
|
|
|
21724
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21853
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/graders/graders.mjs
|
|
21725
21854
|
class Graders2 extends APIResource {
|
|
21726
21855
|
constructor() {
|
|
21727
21856
|
super(...arguments);
|
|
@@ -21729,7 +21858,7 @@ class Graders2 extends APIResource {
|
|
|
21729
21858
|
}
|
|
21730
21859
|
}
|
|
21731
21860
|
Graders2.GraderModels = GraderModels;
|
|
21732
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21861
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/images.mjs
|
|
21733
21862
|
class Images extends APIResource {
|
|
21734
21863
|
createVariation(body, options) {
|
|
21735
21864
|
return this._client.post("/images/variations", multipartFormRequestOptions({ body, ...options }, this._client));
|
|
@@ -21741,7 +21870,7 @@ class Images extends APIResource {
|
|
|
21741
21870
|
return this._client.post("/images/generations", { body, ...options, stream: body.stream ?? false });
|
|
21742
21871
|
}
|
|
21743
21872
|
}
|
|
21744
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21873
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/models.mjs
|
|
21745
21874
|
class Models extends APIResource {
|
|
21746
21875
|
retrieve(model, options) {
|
|
21747
21876
|
return this._client.get(path3`/models/${model}`, options);
|
|
@@ -21753,13 +21882,13 @@ class Models extends APIResource {
|
|
|
21753
21882
|
return this._client.delete(path3`/models/${model}`, options);
|
|
21754
21883
|
}
|
|
21755
21884
|
}
|
|
21756
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21885
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/moderations.mjs
|
|
21757
21886
|
class Moderations extends APIResource {
|
|
21758
21887
|
create(body, options) {
|
|
21759
21888
|
return this._client.post("/moderations", { body, ...options });
|
|
21760
21889
|
}
|
|
21761
21890
|
}
|
|
21762
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21891
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/realtime/calls.mjs
|
|
21763
21892
|
class Calls extends APIResource {
|
|
21764
21893
|
accept(callID, body, options) {
|
|
21765
21894
|
return this._client.post(path3`/realtime/calls/${callID}/accept`, {
|
|
@@ -21790,14 +21919,14 @@ class Calls extends APIResource {
|
|
|
21790
21919
|
}
|
|
21791
21920
|
}
|
|
21792
21921
|
|
|
21793
|
-
// ../../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/client-secrets.mjs
|
|
21794
21923
|
class ClientSecrets extends APIResource {
|
|
21795
21924
|
create(body, options) {
|
|
21796
21925
|
return this._client.post("/realtime/client_secrets", { body, ...options });
|
|
21797
21926
|
}
|
|
21798
21927
|
}
|
|
21799
21928
|
|
|
21800
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21929
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/realtime/realtime.mjs
|
|
21801
21930
|
class Realtime2 extends APIResource {
|
|
21802
21931
|
constructor() {
|
|
21803
21932
|
super(...arguments);
|
|
@@ -21807,7 +21936,7 @@ class Realtime2 extends APIResource {
|
|
|
21807
21936
|
}
|
|
21808
21937
|
Realtime2.ClientSecrets = ClientSecrets;
|
|
21809
21938
|
Realtime2.Calls = Calls;
|
|
21810
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
21939
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/lib/ResponsesParser.mjs
|
|
21811
21940
|
function maybeParseResponse(response, params) {
|
|
21812
21941
|
if (!params || !hasAutoParseableInput2(params)) {
|
|
21813
21942
|
return {
|
|
@@ -21928,7 +22057,7 @@ function addOutputText(rsp) {
|
|
|
21928
22057
|
rsp.output_text = texts.join("");
|
|
21929
22058
|
}
|
|
21930
22059
|
|
|
21931
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
22060
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/lib/responses/ResponseStream.mjs
|
|
21932
22061
|
var _ResponseStream_instances;
|
|
21933
22062
|
var _ResponseStream_params;
|
|
21934
22063
|
var _ResponseStream_currentResponseSnapshot;
|
|
@@ -22187,21 +22316,21 @@ function finalizeResponse(snapshot, params) {
|
|
|
22187
22316
|
return maybeParseResponse(snapshot, params);
|
|
22188
22317
|
}
|
|
22189
22318
|
|
|
22190
|
-
// ../../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-items.mjs
|
|
22191
22320
|
class InputItems extends APIResource {
|
|
22192
22321
|
list(responseID, query = {}, options) {
|
|
22193
22322
|
return this._client.getAPIList(path3`/responses/${responseID}/input_items`, CursorPage, { query, ...options });
|
|
22194
22323
|
}
|
|
22195
22324
|
}
|
|
22196
22325
|
|
|
22197
|
-
// ../../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/input-tokens.mjs
|
|
22198
22327
|
class InputTokens extends APIResource {
|
|
22199
22328
|
count(body = {}, options) {
|
|
22200
22329
|
return this._client.post("/responses/input_tokens", { body, ...options });
|
|
22201
22330
|
}
|
|
22202
22331
|
}
|
|
22203
22332
|
|
|
22204
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
22333
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/responses/responses.mjs
|
|
22205
22334
|
class Responses extends APIResource {
|
|
22206
22335
|
constructor() {
|
|
22207
22336
|
super(...arguments);
|
|
@@ -22246,14 +22375,14 @@ class Responses extends APIResource {
|
|
|
22246
22375
|
}
|
|
22247
22376
|
Responses.InputItems = InputItems;
|
|
22248
22377
|
Responses.InputTokens = InputTokens;
|
|
22249
|
-
// ../../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/parts.mjs
|
|
22250
22379
|
class Parts extends APIResource {
|
|
22251
22380
|
create(uploadID, body, options) {
|
|
22252
22381
|
return this._client.post(path3`/uploads/${uploadID}/parts`, multipartFormRequestOptions({ body, ...options }, this._client));
|
|
22253
22382
|
}
|
|
22254
22383
|
}
|
|
22255
22384
|
|
|
22256
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
22385
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/uploads/uploads.mjs
|
|
22257
22386
|
class Uploads extends APIResource {
|
|
22258
22387
|
constructor() {
|
|
22259
22388
|
super(...arguments);
|
|
@@ -22270,7 +22399,7 @@ class Uploads extends APIResource {
|
|
|
22270
22399
|
}
|
|
22271
22400
|
}
|
|
22272
22401
|
Uploads.Parts = Parts;
|
|
22273
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
22402
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/lib/Util.mjs
|
|
22274
22403
|
var allSettledWithThrow = async (promises) => {
|
|
22275
22404
|
const results = await Promise.allSettled(promises);
|
|
22276
22405
|
const rejected = results.filter((result) => result.status === "rejected");
|
|
@@ -22289,7 +22418,7 @@ var allSettledWithThrow = async (promises) => {
|
|
|
22289
22418
|
return values2;
|
|
22290
22419
|
};
|
|
22291
22420
|
|
|
22292
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
22421
|
+
// ../../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
22422
|
class FileBatches extends APIResource {
|
|
22294
22423
|
create(vectorStoreID, body, options) {
|
|
22295
22424
|
return this._client.post(path3`/vector_stores/${vectorStoreID}/file_batches`, {
|
|
@@ -22379,7 +22508,7 @@ class FileBatches extends APIResource {
|
|
|
22379
22508
|
}
|
|
22380
22509
|
}
|
|
22381
22510
|
|
|
22382
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
22511
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/vector-stores/files.mjs
|
|
22383
22512
|
class Files3 extends APIResource {
|
|
22384
22513
|
create(vectorStoreID, body, options) {
|
|
22385
22514
|
return this._client.post(path3`/vector_stores/${vectorStoreID}/files`, {
|
|
@@ -22470,7 +22599,7 @@ class Files3 extends APIResource {
|
|
|
22470
22599
|
}
|
|
22471
22600
|
}
|
|
22472
22601
|
|
|
22473
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
22602
|
+
// ../../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
22603
|
class VectorStores extends APIResource {
|
|
22475
22604
|
constructor() {
|
|
22476
22605
|
super(...arguments);
|
|
@@ -22521,7 +22650,7 @@ class VectorStores extends APIResource {
|
|
|
22521
22650
|
}
|
|
22522
22651
|
VectorStores.Files = Files3;
|
|
22523
22652
|
VectorStores.FileBatches = FileBatches;
|
|
22524
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
22653
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/videos.mjs
|
|
22525
22654
|
class Videos extends APIResource {
|
|
22526
22655
|
create(body, options) {
|
|
22527
22656
|
return this._client.post("/videos", maybeMultipartFormRequestOptions({ body, ...options }, this._client));
|
|
@@ -22547,7 +22676,7 @@ class Videos extends APIResource {
|
|
|
22547
22676
|
return this._client.post(path3`/videos/${videoID}/remix`, maybeMultipartFormRequestOptions({ body, ...options }, this._client));
|
|
22548
22677
|
}
|
|
22549
22678
|
}
|
|
22550
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
22679
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/resources/webhooks.mjs
|
|
22551
22680
|
var _Webhooks_instances;
|
|
22552
22681
|
var _Webhooks_validateSecret;
|
|
22553
22682
|
var _Webhooks_getRequiredHeader;
|
|
@@ -22613,9 +22742,9 @@ _Webhooks_instances = new WeakSet, _Webhooks_validateSecret = function _Webhooks
|
|
|
22613
22742
|
}
|
|
22614
22743
|
return value;
|
|
22615
22744
|
};
|
|
22616
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
22745
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/client.mjs
|
|
22617
22746
|
var _OpenAI_instances;
|
|
22618
|
-
var
|
|
22747
|
+
var _a3;
|
|
22619
22748
|
var _OpenAI_encoder;
|
|
22620
22749
|
var _OpenAI_baseURLOverridden;
|
|
22621
22750
|
|
|
@@ -22668,7 +22797,7 @@ https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety
|
|
|
22668
22797
|
`);
|
|
22669
22798
|
}
|
|
22670
22799
|
this.baseURL = options.baseURL;
|
|
22671
|
-
this.timeout = options.timeout ??
|
|
22800
|
+
this.timeout = options.timeout ?? _a3.DEFAULT_TIMEOUT;
|
|
22672
22801
|
this.logger = options.logger ?? console;
|
|
22673
22802
|
const defaultLogLevel = "warn";
|
|
22674
22803
|
this.logLevel = defaultLogLevel;
|
|
@@ -23014,10 +23143,10 @@ https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety
|
|
|
23014
23143
|
}
|
|
23015
23144
|
}
|
|
23016
23145
|
}
|
|
23017
|
-
|
|
23146
|
+
_a3 = OpenAI, _OpenAI_encoder = new WeakMap, _OpenAI_instances = new WeakSet, _OpenAI_baseURLOverridden = function _OpenAI_baseURLOverridden2() {
|
|
23018
23147
|
return this.baseURL !== "https://api.openai.com/v1";
|
|
23019
23148
|
};
|
|
23020
|
-
OpenAI.OpenAI =
|
|
23149
|
+
OpenAI.OpenAI = _a3;
|
|
23021
23150
|
OpenAI.DEFAULT_TIMEOUT = 600000;
|
|
23022
23151
|
OpenAI.OpenAIError = OpenAIError;
|
|
23023
23152
|
OpenAI.APIError = APIError;
|
|
@@ -23055,7 +23184,7 @@ OpenAI.Conversations = Conversations;
|
|
|
23055
23184
|
OpenAI.Evals = Evals;
|
|
23056
23185
|
OpenAI.Containers = Containers;
|
|
23057
23186
|
OpenAI.Videos = Videos;
|
|
23058
|
-
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.
|
|
23187
|
+
// ../../node_modules/.pnpm/openai@6.9.1_ws@8.18.3_zod@4.1.13/node_modules/openai/azure.mjs
|
|
23059
23188
|
var _deployments_endpoints = new Set([
|
|
23060
23189
|
"/completions",
|
|
23061
23190
|
"/chat/completions",
|
|
@@ -23067,7 +23196,7 @@ var _deployments_endpoints = new Set([
|
|
|
23067
23196
|
"/batches",
|
|
23068
23197
|
"/images/edits"
|
|
23069
23198
|
]);
|
|
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.
|
|
23199
|
+
// ../../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__e22c883956ae08cf070df1cfac1f8e91/node_modules/safegen/dist/openai/index.js
|
|
23071
23200
|
function buildOpenAiRequestParams(model, ...params) {
|
|
23072
23201
|
const [instruction, jsonSchema, _, previouslyFailedResponses] = params;
|
|
23073
23202
|
const messages = [{
|
|
@@ -33023,9 +33152,9 @@ function Connection(options, queues = {}, { onopen = noop2, onend = noop2, onclo
|
|
|
33023
33152
|
function toBuffer(q2) {
|
|
33024
33153
|
if (q2.parameters.length >= 65534)
|
|
33025
33154
|
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([
|
|
33155
|
+
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
33156
|
}
|
|
33028
|
-
function
|
|
33157
|
+
function describe3(q2) {
|
|
33029
33158
|
return Buffer.concat([
|
|
33030
33159
|
Parse(q2.statement.string, q2.parameters, q2.statement.types, q2.statement.name),
|
|
33031
33160
|
Describe("S", q2.statement.name)
|
|
@@ -36443,7 +36572,7 @@ function drizzle(...params) {
|
|
|
36443
36572
|
drizzle2.mock = mock;
|
|
36444
36573
|
})(drizzle || (drizzle = {}));
|
|
36445
36574
|
|
|
36446
|
-
// ../../node_modules/.pnpm/@t3-oss+env-core@0.13.8_arktype@2.1.27_typescript@5.9.3_zod@4.1.
|
|
36575
|
+
// ../../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
36576
|
function ensureSynchronous(value, message) {
|
|
36448
36577
|
if (value instanceof Promise)
|
|
36449
36578
|
throw new Error(message);
|
|
@@ -38241,14 +38370,14 @@ class BaseNode extends Callable {
|
|
|
38241
38370
|
}
|
|
38242
38371
|
return transformedNode = $2.node(this.kind, transformedInner, ctx.parseOptions);
|
|
38243
38372
|
}
|
|
38244
|
-
configureReferences(
|
|
38373
|
+
configureReferences(meta3, selector = "references") {
|
|
38245
38374
|
const normalized = NodeSelector.normalize(selector);
|
|
38246
|
-
const mapper = typeof
|
|
38375
|
+
const mapper = typeof meta3 === "string" ? (kind, inner) => ({
|
|
38247
38376
|
...inner,
|
|
38248
|
-
meta: { ...inner.meta, description:
|
|
38249
|
-
}) : typeof
|
|
38377
|
+
meta: { ...inner.meta, description: meta3 }
|
|
38378
|
+
}) : typeof meta3 === "function" ? (kind, inner) => ({ ...inner, meta: meta3(inner.meta) }) : (kind, inner) => ({
|
|
38250
38379
|
...inner,
|
|
38251
|
-
meta: { ...inner.meta, ...
|
|
38380
|
+
meta: { ...inner.meta, ...meta3 }
|
|
38252
38381
|
});
|
|
38253
38382
|
if (normalized.boundary === "self") {
|
|
38254
38383
|
return this.$.node(this.kind, mapper(this.kind, { ...this.inner, meta: this.meta }));
|
|
@@ -38426,21 +38555,21 @@ var pipeMorphed = (from, to2, ctx) => from.distribute((fromBranch) => _pipeMorph
|
|
|
38426
38555
|
return Disjoint.init("union", from.branches, to2.branches);
|
|
38427
38556
|
if (viableBranches.length < from.branches.length || !from.branches.every((branch, i2) => branch.rawIn.equals(viableBranches[i2].rawIn)))
|
|
38428
38557
|
return ctx.$.parseSchema(viableBranches);
|
|
38429
|
-
let
|
|
38558
|
+
let meta3;
|
|
38430
38559
|
if (viableBranches.length === 1) {
|
|
38431
38560
|
const onlyBranch = viableBranches[0];
|
|
38432
|
-
if (!
|
|
38561
|
+
if (!meta3)
|
|
38433
38562
|
return onlyBranch;
|
|
38434
38563
|
return ctx.$.node("morph", {
|
|
38435
38564
|
...onlyBranch.inner,
|
|
38436
|
-
in: onlyBranch.rawIn.configure(
|
|
38565
|
+
in: onlyBranch.rawIn.configure(meta3, "self")
|
|
38437
38566
|
});
|
|
38438
38567
|
}
|
|
38439
38568
|
const schema = {
|
|
38440
38569
|
branches: viableBranches
|
|
38441
38570
|
};
|
|
38442
|
-
if (
|
|
38443
|
-
schema.meta =
|
|
38571
|
+
if (meta3)
|
|
38572
|
+
schema.meta = meta3;
|
|
38444
38573
|
return ctx.$.parseSchema(schema);
|
|
38445
38574
|
});
|
|
38446
38575
|
var _pipeMorphed = (from, to2, ctx) => {
|
|
@@ -39242,11 +39371,11 @@ var parseNode = (ctx) => {
|
|
|
39242
39371
|
const configuredSchema = impl.applyConfig?.(ctx.def, ctx.$.resolvedConfig) ?? ctx.def;
|
|
39243
39372
|
const inner = {};
|
|
39244
39373
|
const { meta: metaSchema, ...innerSchema } = configuredSchema;
|
|
39245
|
-
const
|
|
39374
|
+
const meta3 = metaSchema === undefined ? {} : typeof metaSchema === "string" ? { description: metaSchema } : metaSchema;
|
|
39246
39375
|
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
39376
|
if (k2.startsWith("meta.")) {
|
|
39248
39377
|
const metaKey = k2.slice(5);
|
|
39249
|
-
|
|
39378
|
+
meta3[metaKey] = v2;
|
|
39250
39379
|
return false;
|
|
39251
39380
|
}
|
|
39252
39381
|
return true;
|
|
@@ -39265,19 +39394,19 @@ var parseNode = (ctx) => {
|
|
|
39265
39394
|
if (reduced) {
|
|
39266
39395
|
if (reduced instanceof Disjoint)
|
|
39267
39396
|
return reduced.throw();
|
|
39268
|
-
return withMeta(reduced,
|
|
39397
|
+
return withMeta(reduced, meta3);
|
|
39269
39398
|
}
|
|
39270
39399
|
}
|
|
39271
39400
|
const node = createNode({
|
|
39272
39401
|
id: ctx.id,
|
|
39273
39402
|
kind: ctx.kind,
|
|
39274
39403
|
inner,
|
|
39275
|
-
meta,
|
|
39404
|
+
meta: meta3,
|
|
39276
39405
|
$: ctx.$
|
|
39277
39406
|
});
|
|
39278
39407
|
return node;
|
|
39279
39408
|
};
|
|
39280
|
-
var createNode = ({ id, kind, inner, meta, $: $2, ignoreCache }) => {
|
|
39409
|
+
var createNode = ({ id, kind, inner, meta: meta3, $: $2, ignoreCache }) => {
|
|
39281
39410
|
const impl = nodeImplementationsByKind[kind];
|
|
39282
39411
|
const innerEntries = entriesOf(inner);
|
|
39283
39412
|
const children = [];
|
|
@@ -39299,8 +39428,8 @@ var createNode = ({ id, kind, inner, meta, $: $2, ignoreCache }) => {
|
|
|
39299
39428
|
innerJson = impl.finalizeInnerJson(innerJson);
|
|
39300
39429
|
let json3 = { ...innerJson };
|
|
39301
39430
|
let metaJson = {};
|
|
39302
|
-
if (!isEmptyObject(
|
|
39303
|
-
metaJson = flatMorph(
|
|
39431
|
+
if (!isEmptyObject(meta3)) {
|
|
39432
|
+
metaJson = flatMorph(meta3, (k2, v2) => [
|
|
39304
39433
|
k2,
|
|
39305
39434
|
k2 === "examples" ? v2 : defaultValueSerializer(v2)
|
|
39306
39435
|
]);
|
|
@@ -39321,7 +39450,7 @@ var createNode = ({ id, kind, inner, meta, $: $2, ignoreCache }) => {
|
|
|
39321
39450
|
innerEntries,
|
|
39322
39451
|
innerJson,
|
|
39323
39452
|
innerHash,
|
|
39324
|
-
meta,
|
|
39453
|
+
meta: meta3,
|
|
39325
39454
|
metaJson,
|
|
39326
39455
|
json: json3,
|
|
39327
39456
|
hash: hash2,
|
|
@@ -39350,14 +39479,14 @@ var withId = (node, id) => {
|
|
|
39350
39479
|
ignoreCache: true
|
|
39351
39480
|
});
|
|
39352
39481
|
};
|
|
39353
|
-
var withMeta = (node,
|
|
39482
|
+
var withMeta = (node, meta3, id) => {
|
|
39354
39483
|
if (id && isNode(nodesByRegisteredId[id]))
|
|
39355
39484
|
throwInternalError(`Unexpected attempt to overwrite node id ${id}`);
|
|
39356
39485
|
return createNode({
|
|
39357
|
-
id: id ?? registerNodeId(
|
|
39486
|
+
id: id ?? registerNodeId(meta3.alias ?? node.kind),
|
|
39358
39487
|
kind: node.kind,
|
|
39359
39488
|
inner: node.inner,
|
|
39360
|
-
meta,
|
|
39489
|
+
meta: meta3,
|
|
39361
39490
|
$: node.$
|
|
39362
39491
|
});
|
|
39363
39492
|
};
|
|
@@ -39743,8 +39872,8 @@ class BaseRoot extends BaseNode {
|
|
|
39743
39872
|
const rNode = this.$.parseDefinition(r2);
|
|
39744
39873
|
return rNode.extends(this);
|
|
39745
39874
|
}
|
|
39746
|
-
configure(
|
|
39747
|
-
return this.configureReferences(
|
|
39875
|
+
configure(meta3, selector = "shallow") {
|
|
39876
|
+
return this.configureReferences(meta3, selector);
|
|
39748
39877
|
}
|
|
39749
39878
|
describe(description, selector = "shallow") {
|
|
39750
39879
|
return this.configure({ description }, selector);
|
|
@@ -44958,7 +45087,7 @@ async function getLogs(logger, logFilePath = `/var/log/nginx/access.log`, now =
|
|
|
44958
45087
|
});
|
|
44959
45088
|
}
|
|
44960
45089
|
|
|
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.
|
|
45090
|
+
// ../../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__e22c883956ae08cf070df1cfac1f8e91/node_modules/safegen/dist/arktype/index.js
|
|
44962
45091
|
function arktypeToJsonSchema(type2) {
|
|
44963
45092
|
return type2.toJsonSchema();
|
|
44964
45093
|
}
|