初始化仓库
This commit is contained in:
3
node_modules/openai/_vendor/zod-to-json-schema/parsers/any.d.mts
generated
vendored
Normal file
3
node_modules/openai/_vendor/zod-to-json-schema/parsers/any.d.mts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export type JsonSchema7AnyType = {};
|
||||
export declare function parseAnyDef(): JsonSchema7AnyType;
|
||||
//# sourceMappingURL=any.d.mts.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/any.d.mts.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/any.d.mts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"any.d.mts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/any.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAEpC,wBAAgB,WAAW,IAAI,kBAAkB,CAEhD"}
|
||||
3
node_modules/openai/_vendor/zod-to-json-schema/parsers/any.d.ts
generated
vendored
Normal file
3
node_modules/openai/_vendor/zod-to-json-schema/parsers/any.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export type JsonSchema7AnyType = {};
|
||||
export declare function parseAnyDef(): JsonSchema7AnyType;
|
||||
//# sourceMappingURL=any.d.ts.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/any.d.ts.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/any.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"any.d.ts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/any.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAEpC,wBAAgB,WAAW,IAAI,kBAAkB,CAEhD"}
|
||||
7
node_modules/openai/_vendor/zod-to-json-schema/parsers/any.js
generated
vendored
Normal file
7
node_modules/openai/_vendor/zod-to-json-schema/parsers/any.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseAnyDef = parseAnyDef;
|
||||
function parseAnyDef() {
|
||||
return {};
|
||||
}
|
||||
//# sourceMappingURL=any.js.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/any.js.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/any.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"any.js","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/any.ts"],"names":[],"mappings":";;AAEA,kCAEC;AAFD,SAAgB,WAAW;IACzB,OAAO,EAAE,CAAC;AACZ,CAAC"}
|
||||
4
node_modules/openai/_vendor/zod-to-json-schema/parsers/any.mjs
generated
vendored
Normal file
4
node_modules/openai/_vendor/zod-to-json-schema/parsers/any.mjs
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export function parseAnyDef() {
|
||||
return {};
|
||||
}
|
||||
//# sourceMappingURL=any.mjs.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/any.mjs.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/any.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"any.mjs","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/any.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,WAAW;IACzB,OAAO,EAAE,CAAC;AACZ,CAAC"}
|
||||
13
node_modules/openai/_vendor/zod-to-json-schema/parsers/array.d.mts
generated
vendored
Normal file
13
node_modules/openai/_vendor/zod-to-json-schema/parsers/array.d.mts
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import { ZodArrayDef } from 'zod';
|
||||
import { ErrorMessages } from "../errorMessages.mjs";
|
||||
import { JsonSchema7Type } from "../parseDef.mjs";
|
||||
import { Refs } from "../Refs.mjs";
|
||||
export type JsonSchema7ArrayType = {
|
||||
type: 'array';
|
||||
items?: JsonSchema7Type | undefined;
|
||||
minItems?: number;
|
||||
maxItems?: number;
|
||||
errorMessages?: ErrorMessages<JsonSchema7ArrayType, 'items'>;
|
||||
};
|
||||
export declare function parseArrayDef(def: ZodArrayDef, refs: Refs): JsonSchema7ArrayType;
|
||||
//# sourceMappingURL=array.d.mts.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/array.d.mts.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/array.d.mts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"array.d.mts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/array.ts"],"names":[],"mappings":"OAAO,EAAE,WAAW,EAAyB,MAAM,KAAK;OACjD,EAAE,aAAa,EAA6B;OAC5C,EAAE,eAAe,EAAY;OAC7B,EAAE,IAAI,EAAE;AAEf,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,aAAa,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC;CAC9D,CAAC;AAEF,wBAAgB,aAAa,CAAC,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,wBAsBzD"}
|
||||
13
node_modules/openai/_vendor/zod-to-json-schema/parsers/array.d.ts
generated
vendored
Normal file
13
node_modules/openai/_vendor/zod-to-json-schema/parsers/array.d.ts
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import { ZodArrayDef } from 'zod';
|
||||
import { ErrorMessages } from "../errorMessages.js";
|
||||
import { JsonSchema7Type } from "../parseDef.js";
|
||||
import { Refs } from "../Refs.js";
|
||||
export type JsonSchema7ArrayType = {
|
||||
type: 'array';
|
||||
items?: JsonSchema7Type | undefined;
|
||||
minItems?: number;
|
||||
maxItems?: number;
|
||||
errorMessages?: ErrorMessages<JsonSchema7ArrayType, 'items'>;
|
||||
};
|
||||
export declare function parseArrayDef(def: ZodArrayDef, refs: Refs): JsonSchema7ArrayType;
|
||||
//# sourceMappingURL=array.d.ts.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/array.d.ts.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/array.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"array.d.ts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/array.ts"],"names":[],"mappings":"OAAO,EAAE,WAAW,EAAyB,MAAM,KAAK;OACjD,EAAE,aAAa,EAA6B;OAC5C,EAAE,eAAe,EAAY;OAC7B,EAAE,IAAI,EAAE;AAEf,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,aAAa,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC;CAC9D,CAAC;AAEF,wBAAgB,aAAa,CAAC,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,wBAsBzD"}
|
||||
29
node_modules/openai/_vendor/zod-to-json-schema/parsers/array.js
generated
vendored
Normal file
29
node_modules/openai/_vendor/zod-to-json-schema/parsers/array.js
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseArrayDef = parseArrayDef;
|
||||
const zod_1 = require("zod");
|
||||
const errorMessages_1 = require("../errorMessages.js");
|
||||
const parseDef_1 = require("../parseDef.js");
|
||||
function parseArrayDef(def, refs) {
|
||||
const res = {
|
||||
type: 'array',
|
||||
};
|
||||
if (def.type?._def?.typeName !== zod_1.ZodFirstPartyTypeKind.ZodAny) {
|
||||
res.items = (0, parseDef_1.parseDef)(def.type._def, {
|
||||
...refs,
|
||||
currentPath: [...refs.currentPath, 'items'],
|
||||
});
|
||||
}
|
||||
if (def.minLength) {
|
||||
(0, errorMessages_1.setResponseValueAndErrors)(res, 'minItems', def.minLength.value, def.minLength.message, refs);
|
||||
}
|
||||
if (def.maxLength) {
|
||||
(0, errorMessages_1.setResponseValueAndErrors)(res, 'maxItems', def.maxLength.value, def.maxLength.message, refs);
|
||||
}
|
||||
if (def.exactLength) {
|
||||
(0, errorMessages_1.setResponseValueAndErrors)(res, 'minItems', def.exactLength.value, def.exactLength.message, refs);
|
||||
(0, errorMessages_1.setResponseValueAndErrors)(res, 'maxItems', def.exactLength.value, def.exactLength.message, refs);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
//# sourceMappingURL=array.js.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/array.js.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/array.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"array.js","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/array.ts"],"names":[],"mappings":";;AAaA,sCAsBC;AAnCD,6BAAyD;AACzD,uDAA4E;AAC5E,6CAAwD;AAWxD,SAAgB,aAAa,CAAC,GAAgB,EAAE,IAAU;IACxD,MAAM,GAAG,GAAyB;QAChC,IAAI,EAAE,OAAO;KACd,CAAC;IACF,IAAI,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,KAAK,2BAAqB,CAAC,MAAM,EAAE,CAAC;QAC9D,GAAG,CAAC,KAAK,GAAG,IAAA,mBAAQ,EAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE;YAClC,GAAG,IAAI;YACP,WAAW,EAAE,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC;SAC5C,CAAC,CAAC;IACL,CAAC;IAED,IAAI,GAAG,CAAC,SAAS,EAAE,CAAC;QAClB,IAAA,yCAAyB,EAAC,GAAG,EAAE,UAAU,EAAE,GAAG,CAAC,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAC/F,CAAC;IACD,IAAI,GAAG,CAAC,SAAS,EAAE,CAAC;QAClB,IAAA,yCAAyB,EAAC,GAAG,EAAE,UAAU,EAAE,GAAG,CAAC,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAC/F,CAAC;IACD,IAAI,GAAG,CAAC,WAAW,EAAE,CAAC;QACpB,IAAA,yCAAyB,EAAC,GAAG,EAAE,UAAU,EAAE,GAAG,CAAC,WAAW,CAAC,KAAK,EAAE,GAAG,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACjG,IAAA,yCAAyB,EAAC,GAAG,EAAE,UAAU,EAAE,GAAG,CAAC,WAAW,CAAC,KAAK,EAAE,GAAG,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACnG,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
||||
26
node_modules/openai/_vendor/zod-to-json-schema/parsers/array.mjs
generated
vendored
Normal file
26
node_modules/openai/_vendor/zod-to-json-schema/parsers/array.mjs
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
import { ZodFirstPartyTypeKind } from 'zod';
|
||||
import { setResponseValueAndErrors } from "../errorMessages.mjs";
|
||||
import { parseDef } from "../parseDef.mjs";
|
||||
export function parseArrayDef(def, refs) {
|
||||
const res = {
|
||||
type: 'array',
|
||||
};
|
||||
if (def.type?._def?.typeName !== ZodFirstPartyTypeKind.ZodAny) {
|
||||
res.items = parseDef(def.type._def, {
|
||||
...refs,
|
||||
currentPath: [...refs.currentPath, 'items'],
|
||||
});
|
||||
}
|
||||
if (def.minLength) {
|
||||
setResponseValueAndErrors(res, 'minItems', def.minLength.value, def.minLength.message, refs);
|
||||
}
|
||||
if (def.maxLength) {
|
||||
setResponseValueAndErrors(res, 'maxItems', def.maxLength.value, def.maxLength.message, refs);
|
||||
}
|
||||
if (def.exactLength) {
|
||||
setResponseValueAndErrors(res, 'minItems', def.exactLength.value, def.exactLength.message, refs);
|
||||
setResponseValueAndErrors(res, 'maxItems', def.exactLength.value, def.exactLength.message, refs);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
//# sourceMappingURL=array.mjs.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/array.mjs.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/array.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"array.mjs","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/array.ts"],"names":[],"mappings":"OAAO,EAAe,qBAAqB,EAAE,MAAM,KAAK;OACjD,EAAiB,yBAAyB,EAAE;OAC5C,EAAmB,QAAQ,EAAE;AAWpC,MAAM,UAAU,aAAa,CAAC,GAAgB,EAAE,IAAU;IACxD,MAAM,GAAG,GAAyB;QAChC,IAAI,EAAE,OAAO;KACd,CAAC;IACF,IAAI,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,KAAK,qBAAqB,CAAC,MAAM,EAAE,CAAC;QAC9D,GAAG,CAAC,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE;YAClC,GAAG,IAAI;YACP,WAAW,EAAE,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC;SAC5C,CAAC,CAAC;IACL,CAAC;IAED,IAAI,GAAG,CAAC,SAAS,EAAE,CAAC;QAClB,yBAAyB,CAAC,GAAG,EAAE,UAAU,EAAE,GAAG,CAAC,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAC/F,CAAC;IACD,IAAI,GAAG,CAAC,SAAS,EAAE,CAAC;QAClB,yBAAyB,CAAC,GAAG,EAAE,UAAU,EAAE,GAAG,CAAC,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAC/F,CAAC;IACD,IAAI,GAAG,CAAC,WAAW,EAAE,CAAC;QACpB,yBAAyB,CAAC,GAAG,EAAE,UAAU,EAAE,GAAG,CAAC,WAAW,CAAC,KAAK,EAAE,GAAG,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACjG,yBAAyB,CAAC,GAAG,EAAE,UAAU,EAAE,GAAG,CAAC,WAAW,CAAC,KAAK,EAAE,GAAG,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACnG,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
||||
15
node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.d.mts
generated
vendored
Normal file
15
node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.d.mts
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import { ZodBigIntDef } from 'zod';
|
||||
import { Refs } from "../Refs.mjs";
|
||||
import { ErrorMessages } from "../errorMessages.mjs";
|
||||
export type JsonSchema7BigintType = {
|
||||
type: 'integer';
|
||||
format: 'int64';
|
||||
minimum?: BigInt;
|
||||
exclusiveMinimum?: BigInt;
|
||||
maximum?: BigInt;
|
||||
exclusiveMaximum?: BigInt;
|
||||
multipleOf?: BigInt;
|
||||
errorMessage?: ErrorMessages<JsonSchema7BigintType>;
|
||||
};
|
||||
export declare function parseBigintDef(def: ZodBigIntDef, refs: Refs): JsonSchema7BigintType;
|
||||
//# sourceMappingURL=bigint.d.mts.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.d.mts.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.d.mts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"bigint.d.mts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/bigint.ts"],"names":[],"mappings":"OAAO,EAAE,YAAY,EAAE,MAAM,KAAK;OAC3B,EAAE,IAAI,EAAE;OACR,EAAE,aAAa,EAA6B;AAEnD,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;CACrD,CAAC;AAEF,wBAAgB,cAAc,CAAC,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,GAAG,qBAAqB,CA4CnF"}
|
||||
15
node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.d.ts
generated
vendored
Normal file
15
node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.d.ts
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import { ZodBigIntDef } from 'zod';
|
||||
import { Refs } from "../Refs.js";
|
||||
import { ErrorMessages } from "../errorMessages.js";
|
||||
export type JsonSchema7BigintType = {
|
||||
type: 'integer';
|
||||
format: 'int64';
|
||||
minimum?: BigInt;
|
||||
exclusiveMinimum?: BigInt;
|
||||
maximum?: BigInt;
|
||||
exclusiveMaximum?: BigInt;
|
||||
multipleOf?: BigInt;
|
||||
errorMessage?: ErrorMessages<JsonSchema7BigintType>;
|
||||
};
|
||||
export declare function parseBigintDef(def: ZodBigIntDef, refs: Refs): JsonSchema7BigintType;
|
||||
//# sourceMappingURL=bigint.d.ts.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.d.ts.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"bigint.d.ts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/bigint.ts"],"names":[],"mappings":"OAAO,EAAE,YAAY,EAAE,MAAM,KAAK;OAC3B,EAAE,IAAI,EAAE;OACR,EAAE,aAAa,EAA6B;AAEnD,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;CACrD,CAAC;AAEF,wBAAgB,cAAc,CAAC,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,GAAG,qBAAqB,CA4CnF"}
|
||||
53
node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.js
generated
vendored
Normal file
53
node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.js
generated
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseBigintDef = parseBigintDef;
|
||||
const errorMessages_1 = require("../errorMessages.js");
|
||||
function parseBigintDef(def, refs) {
|
||||
const res = {
|
||||
type: 'integer',
|
||||
format: 'int64',
|
||||
};
|
||||
if (!def.checks)
|
||||
return res;
|
||||
for (const check of def.checks) {
|
||||
switch (check.kind) {
|
||||
case 'min':
|
||||
if (refs.target === 'jsonSchema7') {
|
||||
if (check.inclusive) {
|
||||
(0, errorMessages_1.setResponseValueAndErrors)(res, 'minimum', check.value, check.message, refs);
|
||||
}
|
||||
else {
|
||||
(0, errorMessages_1.setResponseValueAndErrors)(res, 'exclusiveMinimum', check.value, check.message, refs);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (!check.inclusive) {
|
||||
res.exclusiveMinimum = true;
|
||||
}
|
||||
(0, errorMessages_1.setResponseValueAndErrors)(res, 'minimum', check.value, check.message, refs);
|
||||
}
|
||||
break;
|
||||
case 'max':
|
||||
if (refs.target === 'jsonSchema7') {
|
||||
if (check.inclusive) {
|
||||
(0, errorMessages_1.setResponseValueAndErrors)(res, 'maximum', check.value, check.message, refs);
|
||||
}
|
||||
else {
|
||||
(0, errorMessages_1.setResponseValueAndErrors)(res, 'exclusiveMaximum', check.value, check.message, refs);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (!check.inclusive) {
|
||||
res.exclusiveMaximum = true;
|
||||
}
|
||||
(0, errorMessages_1.setResponseValueAndErrors)(res, 'maximum', check.value, check.message, refs);
|
||||
}
|
||||
break;
|
||||
case 'multipleOf':
|
||||
(0, errorMessages_1.setResponseValueAndErrors)(res, 'multipleOf', check.value, check.message, refs);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
//# sourceMappingURL=bigint.js.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.js.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"bigint.js","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/bigint.ts"],"names":[],"mappings":";;AAeA,wCA4CC;AAzDD,uDAA4E;AAa5E,SAAgB,cAAc,CAAC,GAAiB,EAAE,IAAU;IAC1D,MAAM,GAAG,GAA0B;QACjC,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,OAAO;KAChB,CAAC;IAEF,IAAI,CAAC,GAAG,CAAC,MAAM;QAAE,OAAO,GAAG,CAAC;IAE5B,KAAK,MAAM,KAAK,IAAI,GAAG,CAAC,MAAM,EAAE,CAAC;QAC/B,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;YACnB,KAAK,KAAK;gBACR,IAAI,IAAI,CAAC,MAAM,KAAK,aAAa,EAAE,CAAC;oBAClC,IAAI,KAAK,CAAC,SAAS,EAAE,CAAC;wBACpB,IAAA,yCAAyB,EAAC,GAAG,EAAE,SAAS,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;oBAC9E,CAAC;yBAAM,CAAC;wBACN,IAAA,yCAAyB,EAAC,GAAG,EAAE,kBAAkB,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;oBACvF,CAAC;gBACH,CAAC;qBAAM,CAAC;oBACN,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;wBACrB,GAAG,CAAC,gBAAgB,GAAG,IAAW,CAAC;oBACrC,CAAC;oBACD,IAAA,yCAAyB,EAAC,GAAG,EAAE,SAAS,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;gBAC9E,CAAC;gBACD,MAAM;YACR,KAAK,KAAK;gBACR,IAAI,IAAI,CAAC,MAAM,KAAK,aAAa,EAAE,CAAC;oBAClC,IAAI,KAAK,CAAC,SAAS,EAAE,CAAC;wBACpB,IAAA,yCAAyB,EAAC,GAAG,EAAE,SAAS,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;oBAC9E,CAAC;yBAAM,CAAC;wBACN,IAAA,yCAAyB,EAAC,GAAG,EAAE,kBAAkB,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;oBACvF,CAAC;gBACH,CAAC;qBAAM,CAAC;oBACN,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;wBACrB,GAAG,CAAC,gBAAgB,GAAG,IAAW,CAAC;oBACrC,CAAC;oBACD,IAAA,yCAAyB,EAAC,GAAG,EAAE,SAAS,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;gBAC9E,CAAC;gBACD,MAAM;YACR,KAAK,YAAY;gBACf,IAAA,yCAAyB,EAAC,GAAG,EAAE,YAAY,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;gBAC/E,MAAM;QACV,CAAC;IACH,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
||||
50
node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.mjs
generated
vendored
Normal file
50
node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.mjs
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
import { setResponseValueAndErrors } from "../errorMessages.mjs";
|
||||
export function parseBigintDef(def, refs) {
|
||||
const res = {
|
||||
type: 'integer',
|
||||
format: 'int64',
|
||||
};
|
||||
if (!def.checks)
|
||||
return res;
|
||||
for (const check of def.checks) {
|
||||
switch (check.kind) {
|
||||
case 'min':
|
||||
if (refs.target === 'jsonSchema7') {
|
||||
if (check.inclusive) {
|
||||
setResponseValueAndErrors(res, 'minimum', check.value, check.message, refs);
|
||||
}
|
||||
else {
|
||||
setResponseValueAndErrors(res, 'exclusiveMinimum', check.value, check.message, refs);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (!check.inclusive) {
|
||||
res.exclusiveMinimum = true;
|
||||
}
|
||||
setResponseValueAndErrors(res, 'minimum', check.value, check.message, refs);
|
||||
}
|
||||
break;
|
||||
case 'max':
|
||||
if (refs.target === 'jsonSchema7') {
|
||||
if (check.inclusive) {
|
||||
setResponseValueAndErrors(res, 'maximum', check.value, check.message, refs);
|
||||
}
|
||||
else {
|
||||
setResponseValueAndErrors(res, 'exclusiveMaximum', check.value, check.message, refs);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (!check.inclusive) {
|
||||
res.exclusiveMaximum = true;
|
||||
}
|
||||
setResponseValueAndErrors(res, 'maximum', check.value, check.message, refs);
|
||||
}
|
||||
break;
|
||||
case 'multipleOf':
|
||||
setResponseValueAndErrors(res, 'multipleOf', check.value, check.message, refs);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
//# sourceMappingURL=bigint.mjs.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.mjs.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"bigint.mjs","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/bigint.ts"],"names":[],"mappings":"OAEO,EAAiB,yBAAyB,EAAE;AAanD,MAAM,UAAU,cAAc,CAAC,GAAiB,EAAE,IAAU;IAC1D,MAAM,GAAG,GAA0B;QACjC,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,OAAO;KAChB,CAAC;IAEF,IAAI,CAAC,GAAG,CAAC,MAAM;QAAE,OAAO,GAAG,CAAC;IAE5B,KAAK,MAAM,KAAK,IAAI,GAAG,CAAC,MAAM,EAAE,CAAC;QAC/B,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;YACnB,KAAK,KAAK;gBACR,IAAI,IAAI,CAAC,MAAM,KAAK,aAAa,EAAE,CAAC;oBAClC,IAAI,KAAK,CAAC,SAAS,EAAE,CAAC;wBACpB,yBAAyB,CAAC,GAAG,EAAE,SAAS,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;oBAC9E,CAAC;yBAAM,CAAC;wBACN,yBAAyB,CAAC,GAAG,EAAE,kBAAkB,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;oBACvF,CAAC;gBACH,CAAC;qBAAM,CAAC;oBACN,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;wBACrB,GAAG,CAAC,gBAAgB,GAAG,IAAW,CAAC;oBACrC,CAAC;oBACD,yBAAyB,CAAC,GAAG,EAAE,SAAS,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;gBAC9E,CAAC;gBACD,MAAM;YACR,KAAK,KAAK;gBACR,IAAI,IAAI,CAAC,MAAM,KAAK,aAAa,EAAE,CAAC;oBAClC,IAAI,KAAK,CAAC,SAAS,EAAE,CAAC;wBACpB,yBAAyB,CAAC,GAAG,EAAE,SAAS,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;oBAC9E,CAAC;yBAAM,CAAC;wBACN,yBAAyB,CAAC,GAAG,EAAE,kBAAkB,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;oBACvF,CAAC;gBACH,CAAC;qBAAM,CAAC;oBACN,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;wBACrB,GAAG,CAAC,gBAAgB,GAAG,IAAW,CAAC;oBACrC,CAAC;oBACD,yBAAyB,CAAC,GAAG,EAAE,SAAS,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;gBAC9E,CAAC;gBACD,MAAM;YACR,KAAK,YAAY;gBACf,yBAAyB,CAAC,GAAG,EAAE,YAAY,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;gBAC/E,MAAM;QACV,CAAC;IACH,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
||||
5
node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.d.mts
generated
vendored
Normal file
5
node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.d.mts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
export type JsonSchema7BooleanType = {
|
||||
type: 'boolean';
|
||||
};
|
||||
export declare function parseBooleanDef(): JsonSchema7BooleanType;
|
||||
//# sourceMappingURL=boolean.d.mts.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.d.mts.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.d.mts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"boolean.d.mts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/boolean.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,wBAAgB,eAAe,IAAI,sBAAsB,CAIxD"}
|
||||
5
node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.d.ts
generated
vendored
Normal file
5
node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
export type JsonSchema7BooleanType = {
|
||||
type: 'boolean';
|
||||
};
|
||||
export declare function parseBooleanDef(): JsonSchema7BooleanType;
|
||||
//# sourceMappingURL=boolean.d.ts.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.d.ts.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"boolean.d.ts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/boolean.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,wBAAgB,eAAe,IAAI,sBAAsB,CAIxD"}
|
||||
9
node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.js
generated
vendored
Normal file
9
node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseBooleanDef = parseBooleanDef;
|
||||
function parseBooleanDef() {
|
||||
return {
|
||||
type: 'boolean',
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=boolean.js.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.js.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"boolean.js","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/boolean.ts"],"names":[],"mappings":";;AAIA,0CAIC;AAJD,SAAgB,eAAe;IAC7B,OAAO;QACL,IAAI,EAAE,SAAS;KAChB,CAAC;AACJ,CAAC"}
|
||||
6
node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.mjs
generated
vendored
Normal file
6
node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.mjs
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
export function parseBooleanDef() {
|
||||
return {
|
||||
type: 'boolean',
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=boolean.mjs.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.mjs.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"boolean.mjs","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/boolean.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,eAAe;IAC7B,OAAO;QACL,IAAI,EAAE,SAAS;KAChB,CAAC;AACJ,CAAC"}
|
||||
4
node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.d.mts
generated
vendored
Normal file
4
node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.d.mts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import { ZodBrandedDef } from 'zod';
|
||||
import { Refs } from "../Refs.mjs";
|
||||
export declare function parseBrandedDef(_def: ZodBrandedDef<any>, refs: Refs): import("../parseDef").JsonSchema7Type | undefined;
|
||||
//# sourceMappingURL=branded.d.mts.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.d.mts.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.d.mts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"branded.d.mts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/branded.ts"],"names":[],"mappings":"OAAO,EAAE,aAAa,EAAE,MAAM,KAAK;OAE5B,EAAE,IAAI,EAAE;AAEf,wBAAgB,eAAe,CAAC,IAAI,EAAE,aAAa,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,qDAEnE"}
|
||||
4
node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.d.ts
generated
vendored
Normal file
4
node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import { ZodBrandedDef } from 'zod';
|
||||
import { Refs } from "../Refs.js";
|
||||
export declare function parseBrandedDef(_def: ZodBrandedDef<any>, refs: Refs): import("../parseDef").JsonSchema7Type | undefined;
|
||||
//# sourceMappingURL=branded.d.ts.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.d.ts.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"branded.d.ts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/branded.ts"],"names":[],"mappings":"OAAO,EAAE,aAAa,EAAE,MAAM,KAAK;OAE5B,EAAE,IAAI,EAAE;AAEf,wBAAgB,eAAe,CAAC,IAAI,EAAE,aAAa,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,qDAEnE"}
|
||||
8
node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.js
generated
vendored
Normal file
8
node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseBrandedDef = parseBrandedDef;
|
||||
const parseDef_1 = require("../parseDef.js");
|
||||
function parseBrandedDef(_def, refs) {
|
||||
return (0, parseDef_1.parseDef)(_def.type._def, refs);
|
||||
}
|
||||
//# sourceMappingURL=branded.js.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.js.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"branded.js","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/branded.ts"],"names":[],"mappings":";;AAIA,0CAEC;AALD,6CAAuC;AAGvC,SAAgB,eAAe,CAAC,IAAwB,EAAE,IAAU;IAClE,OAAO,IAAA,mBAAQ,EAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACxC,CAAC"}
|
||||
5
node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.mjs
generated
vendored
Normal file
5
node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.mjs
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { parseDef } from "../parseDef.mjs";
|
||||
export function parseBrandedDef(_def, refs) {
|
||||
return parseDef(_def.type._def, refs);
|
||||
}
|
||||
//# sourceMappingURL=branded.mjs.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.mjs.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"branded.mjs","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/branded.ts"],"names":[],"mappings":"OACO,EAAE,QAAQ,EAAE;AAGnB,MAAM,UAAU,eAAe,CAAC,IAAwB,EAAE,IAAU;IAClE,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACxC,CAAC"}
|
||||
4
node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.d.mts
generated
vendored
Normal file
4
node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.d.mts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import { ZodCatchDef } from 'zod';
|
||||
import { Refs } from "../Refs.mjs";
|
||||
export declare const parseCatchDef: (def: ZodCatchDef<any>, refs: Refs) => import("../parseDef").JsonSchema7Type | undefined;
|
||||
//# sourceMappingURL=catch.d.mts.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.d.mts.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.d.mts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"catch.d.mts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/catch.ts"],"names":[],"mappings":"OAAO,EAAE,WAAW,EAAE,MAAM,KAAK;OAE1B,EAAE,IAAI,EAAE;AAEf,eAAO,MAAM,aAAa,GAAI,KAAK,WAAW,CAAC,GAAG,CAAC,EAAE,MAAM,IAAI,sDAE9D,CAAC"}
|
||||
4
node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.d.ts
generated
vendored
Normal file
4
node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import { ZodCatchDef } from 'zod';
|
||||
import { Refs } from "../Refs.js";
|
||||
export declare const parseCatchDef: (def: ZodCatchDef<any>, refs: Refs) => import("../parseDef").JsonSchema7Type | undefined;
|
||||
//# sourceMappingURL=catch.d.ts.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.d.ts.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"catch.d.ts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/catch.ts"],"names":[],"mappings":"OAAO,EAAE,WAAW,EAAE,MAAM,KAAK;OAE1B,EAAE,IAAI,EAAE;AAEf,eAAO,MAAM,aAAa,GAAI,KAAK,WAAW,CAAC,GAAG,CAAC,EAAE,MAAM,IAAI,sDAE9D,CAAC"}
|
||||
9
node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.js
generated
vendored
Normal file
9
node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseCatchDef = void 0;
|
||||
const parseDef_1 = require("../parseDef.js");
|
||||
const parseCatchDef = (def, refs) => {
|
||||
return (0, parseDef_1.parseDef)(def.innerType._def, refs);
|
||||
};
|
||||
exports.parseCatchDef = parseCatchDef;
|
||||
//# sourceMappingURL=catch.js.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.js.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"catch.js","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/catch.ts"],"names":[],"mappings":";;;AACA,6CAAuC;AAGhC,MAAM,aAAa,GAAG,CAAC,GAAqB,EAAE,IAAU,EAAE,EAAE;IACjE,OAAO,IAAA,mBAAQ,EAAC,GAAG,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAC5C,CAAC,CAAC;AAFW,QAAA,aAAa,iBAExB"}
|
||||
5
node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.mjs
generated
vendored
Normal file
5
node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.mjs
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { parseDef } from "../parseDef.mjs";
|
||||
export const parseCatchDef = (def, refs) => {
|
||||
return parseDef(def.innerType._def, refs);
|
||||
};
|
||||
//# sourceMappingURL=catch.mjs.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.mjs.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"catch.mjs","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/catch.ts"],"names":[],"mappings":"OACO,EAAE,QAAQ,EAAE;AAGnB,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,GAAqB,EAAE,IAAU,EAAE,EAAE;IACjE,OAAO,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAC5C,CAAC,CAAC"}
|
||||
16
node_modules/openai/_vendor/zod-to-json-schema/parsers/date.d.mts
generated
vendored
Normal file
16
node_modules/openai/_vendor/zod-to-json-schema/parsers/date.d.mts
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import { ZodDateDef } from 'zod';
|
||||
import { Refs } from "../Refs.mjs";
|
||||
import { ErrorMessages } from "../errorMessages.mjs";
|
||||
import { JsonSchema7NumberType } from "./number.mjs";
|
||||
import { DateStrategy } from "../Options.mjs";
|
||||
export type JsonSchema7DateType = {
|
||||
type: 'integer' | 'string';
|
||||
format: 'unix-time' | 'date-time' | 'date';
|
||||
minimum?: number;
|
||||
maximum?: number;
|
||||
errorMessage?: ErrorMessages<JsonSchema7NumberType>;
|
||||
} | {
|
||||
anyOf: JsonSchema7DateType[];
|
||||
};
|
||||
export declare function parseDateDef(def: ZodDateDef, refs: Refs, overrideDateStrategy?: DateStrategy): JsonSchema7DateType;
|
||||
//# sourceMappingURL=date.d.mts.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/date.d.mts.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/date.d.mts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"date.d.mts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/date.ts"],"names":[],"mappings":"OAAO,EAAE,UAAU,EAAE,MAAM,KAAK;OACzB,EAAE,IAAI,EAAE;OACR,EAAE,aAAa,EAA6B;OAC5C,EAAE,qBAAqB,EAAE;OACzB,EAAE,YAAY,EAAE;AAEvB,MAAM,MAAM,mBAAmB,GAC3B;IACE,IAAI,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC3B,MAAM,EAAE,WAAW,GAAG,WAAW,GAAG,MAAM,CAAC;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;CACrD,GACD;IACE,KAAK,EAAE,mBAAmB,EAAE,CAAC;CAC9B,CAAC;AAEN,wBAAgB,YAAY,CAC1B,GAAG,EAAE,UAAU,EACf,IAAI,EAAE,IAAI,EACV,oBAAoB,CAAC,EAAE,YAAY,GAClC,mBAAmB,CAwBrB"}
|
||||
16
node_modules/openai/_vendor/zod-to-json-schema/parsers/date.d.ts
generated
vendored
Normal file
16
node_modules/openai/_vendor/zod-to-json-schema/parsers/date.d.ts
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import { ZodDateDef } from 'zod';
|
||||
import { Refs } from "../Refs.js";
|
||||
import { ErrorMessages } from "../errorMessages.js";
|
||||
import { JsonSchema7NumberType } from "./number.js";
|
||||
import { DateStrategy } from "../Options.js";
|
||||
export type JsonSchema7DateType = {
|
||||
type: 'integer' | 'string';
|
||||
format: 'unix-time' | 'date-time' | 'date';
|
||||
minimum?: number;
|
||||
maximum?: number;
|
||||
errorMessage?: ErrorMessages<JsonSchema7NumberType>;
|
||||
} | {
|
||||
anyOf: JsonSchema7DateType[];
|
||||
};
|
||||
export declare function parseDateDef(def: ZodDateDef, refs: Refs, overrideDateStrategy?: DateStrategy): JsonSchema7DateType;
|
||||
//# sourceMappingURL=date.d.ts.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/date.d.ts.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/date.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/date.ts"],"names":[],"mappings":"OAAO,EAAE,UAAU,EAAE,MAAM,KAAK;OACzB,EAAE,IAAI,EAAE;OACR,EAAE,aAAa,EAA6B;OAC5C,EAAE,qBAAqB,EAAE;OACzB,EAAE,YAAY,EAAE;AAEvB,MAAM,MAAM,mBAAmB,GAC3B;IACE,IAAI,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC3B,MAAM,EAAE,WAAW,GAAG,WAAW,GAAG,MAAM,CAAC;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;CACrD,GACD;IACE,KAAK,EAAE,mBAAmB,EAAE,CAAC;CAC9B,CAAC;AAEN,wBAAgB,YAAY,CAC1B,GAAG,EAAE,UAAU,EACf,IAAI,EAAE,IAAI,EACV,oBAAoB,CAAC,EAAE,YAAY,GAClC,mBAAmB,CAwBrB"}
|
||||
50
node_modules/openai/_vendor/zod-to-json-schema/parsers/date.js
generated
vendored
Normal file
50
node_modules/openai/_vendor/zod-to-json-schema/parsers/date.js
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseDateDef = parseDateDef;
|
||||
const errorMessages_1 = require("../errorMessages.js");
|
||||
function parseDateDef(def, refs, overrideDateStrategy) {
|
||||
const strategy = overrideDateStrategy ?? refs.dateStrategy;
|
||||
if (Array.isArray(strategy)) {
|
||||
return {
|
||||
anyOf: strategy.map((item, i) => parseDateDef(def, refs, item)),
|
||||
};
|
||||
}
|
||||
switch (strategy) {
|
||||
case 'string':
|
||||
case 'format:date-time':
|
||||
return {
|
||||
type: 'string',
|
||||
format: 'date-time',
|
||||
};
|
||||
case 'format:date':
|
||||
return {
|
||||
type: 'string',
|
||||
format: 'date',
|
||||
};
|
||||
case 'integer':
|
||||
return integerDateParser(def, refs);
|
||||
}
|
||||
}
|
||||
const integerDateParser = (def, refs) => {
|
||||
const res = {
|
||||
type: 'integer',
|
||||
format: 'unix-time',
|
||||
};
|
||||
if (refs.target === 'openApi3') {
|
||||
return res;
|
||||
}
|
||||
for (const check of def.checks) {
|
||||
switch (check.kind) {
|
||||
case 'min':
|
||||
(0, errorMessages_1.setResponseValueAndErrors)(res, 'minimum', check.value, // This is in milliseconds
|
||||
check.message, refs);
|
||||
break;
|
||||
case 'max':
|
||||
(0, errorMessages_1.setResponseValueAndErrors)(res, 'maximum', check.value, // This is in milliseconds
|
||||
check.message, refs);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return res;
|
||||
};
|
||||
//# sourceMappingURL=date.js.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/date.js.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/date.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"date.js","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/date.ts"],"names":[],"mappings":";;AAkBA,oCA4BC;AA5CD,uDAA4E;AAgB5E,SAAgB,YAAY,CAC1B,GAAe,EACf,IAAU,EACV,oBAAmC;IAEnC,MAAM,QAAQ,GAAG,oBAAoB,IAAI,IAAI,CAAC,YAAY,CAAC;IAE3D,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC5B,OAAO;YACL,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;SAChE,CAAC;IACJ,CAAC;IAED,QAAQ,QAAQ,EAAE,CAAC;QACjB,KAAK,QAAQ,CAAC;QACd,KAAK,kBAAkB;YACrB,OAAO;gBACL,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,WAAW;aACpB,CAAC;QACJ,KAAK,aAAa;YAChB,OAAO;gBACL,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,MAAM;aACf,CAAC;QACJ,KAAK,SAAS;YACZ,OAAO,iBAAiB,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IACxC,CAAC;AACH,CAAC;AAED,MAAM,iBAAiB,GAAG,CAAC,GAAe,EAAE,IAAU,EAAE,EAAE;IACxD,MAAM,GAAG,GAAwB;QAC/B,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,WAAW;KACpB,CAAC;IAEF,IAAI,IAAI,CAAC,MAAM,KAAK,UAAU,EAAE,CAAC;QAC/B,OAAO,GAAG,CAAC;IACb,CAAC;IAED,KAAK,MAAM,KAAK,IAAI,GAAG,CAAC,MAAM,EAAE,CAAC;QAC/B,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;YACnB,KAAK,KAAK;gBACR,IAAA,yCAAyB,EACvB,GAAG,EACH,SAAS,EACT,KAAK,CAAC,KAAK,EAAE,0BAA0B;gBACvC,KAAK,CAAC,OAAO,EACb,IAAI,CACL,CAAC;gBACF,MAAM;YACR,KAAK,KAAK;gBACR,IAAA,yCAAyB,EACvB,GAAG,EACH,SAAS,EACT,KAAK,CAAC,KAAK,EAAE,0BAA0B;gBACvC,KAAK,CAAC,OAAO,EACb,IAAI,CACL,CAAC;gBACF,MAAM;QACV,CAAC;IACH,CAAC;IAED,OAAO,GAAG,CAAC;AACb,CAAC,CAAC"}
|
||||
47
node_modules/openai/_vendor/zod-to-json-schema/parsers/date.mjs
generated
vendored
Normal file
47
node_modules/openai/_vendor/zod-to-json-schema/parsers/date.mjs
generated
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
import { setResponseValueAndErrors } from "../errorMessages.mjs";
|
||||
export function parseDateDef(def, refs, overrideDateStrategy) {
|
||||
const strategy = overrideDateStrategy ?? refs.dateStrategy;
|
||||
if (Array.isArray(strategy)) {
|
||||
return {
|
||||
anyOf: strategy.map((item, i) => parseDateDef(def, refs, item)),
|
||||
};
|
||||
}
|
||||
switch (strategy) {
|
||||
case 'string':
|
||||
case 'format:date-time':
|
||||
return {
|
||||
type: 'string',
|
||||
format: 'date-time',
|
||||
};
|
||||
case 'format:date':
|
||||
return {
|
||||
type: 'string',
|
||||
format: 'date',
|
||||
};
|
||||
case 'integer':
|
||||
return integerDateParser(def, refs);
|
||||
}
|
||||
}
|
||||
const integerDateParser = (def, refs) => {
|
||||
const res = {
|
||||
type: 'integer',
|
||||
format: 'unix-time',
|
||||
};
|
||||
if (refs.target === 'openApi3') {
|
||||
return res;
|
||||
}
|
||||
for (const check of def.checks) {
|
||||
switch (check.kind) {
|
||||
case 'min':
|
||||
setResponseValueAndErrors(res, 'minimum', check.value, // This is in milliseconds
|
||||
check.message, refs);
|
||||
break;
|
||||
case 'max':
|
||||
setResponseValueAndErrors(res, 'maximum', check.value, // This is in milliseconds
|
||||
check.message, refs);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return res;
|
||||
};
|
||||
//# sourceMappingURL=date.mjs.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/date.mjs.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/date.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"date.mjs","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/date.ts"],"names":[],"mappings":"OAEO,EAAiB,yBAAyB,EAAE;AAgBnD,MAAM,UAAU,YAAY,CAC1B,GAAe,EACf,IAAU,EACV,oBAAmC;IAEnC,MAAM,QAAQ,GAAG,oBAAoB,IAAI,IAAI,CAAC,YAAY,CAAC;IAE3D,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC5B,OAAO;YACL,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;SAChE,CAAC;IACJ,CAAC;IAED,QAAQ,QAAQ,EAAE,CAAC;QACjB,KAAK,QAAQ,CAAC;QACd,KAAK,kBAAkB;YACrB,OAAO;gBACL,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,WAAW;aACpB,CAAC;QACJ,KAAK,aAAa;YAChB,OAAO;gBACL,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,MAAM;aACf,CAAC;QACJ,KAAK,SAAS;YACZ,OAAO,iBAAiB,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IACxC,CAAC;AACH,CAAC;AAED,MAAM,iBAAiB,GAAG,CAAC,GAAe,EAAE,IAAU,EAAE,EAAE;IACxD,MAAM,GAAG,GAAwB;QAC/B,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,WAAW;KACpB,CAAC;IAEF,IAAI,IAAI,CAAC,MAAM,KAAK,UAAU,EAAE,CAAC;QAC/B,OAAO,GAAG,CAAC;IACb,CAAC;IAED,KAAK,MAAM,KAAK,IAAI,GAAG,CAAC,MAAM,EAAE,CAAC;QAC/B,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;YACnB,KAAK,KAAK;gBACR,yBAAyB,CACvB,GAAG,EACH,SAAS,EACT,KAAK,CAAC,KAAK,EAAE,0BAA0B;gBACvC,KAAK,CAAC,OAAO,EACb,IAAI,CACL,CAAC;gBACF,MAAM;YACR,KAAK,KAAK;gBACR,yBAAyB,CACvB,GAAG,EACH,SAAS,EACT,KAAK,CAAC,KAAK,EAAE,0BAA0B;gBACvC,KAAK,CAAC,OAAO,EACb,IAAI,CACL,CAAC;gBACF,MAAM;QACV,CAAC;IACH,CAAC;IAED,OAAO,GAAG,CAAC;AACb,CAAC,CAAC"}
|
||||
7
node_modules/openai/_vendor/zod-to-json-schema/parsers/default.d.mts
generated
vendored
Normal file
7
node_modules/openai/_vendor/zod-to-json-schema/parsers/default.d.mts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import { ZodDefaultDef } from 'zod';
|
||||
import { JsonSchema7Type } from "../parseDef.mjs";
|
||||
import { Refs } from "../Refs.mjs";
|
||||
export declare function parseDefaultDef(_def: ZodDefaultDef, refs: Refs): JsonSchema7Type & {
|
||||
default: any;
|
||||
};
|
||||
//# sourceMappingURL=default.d.mts.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/default.d.mts.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/default.d.mts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"default.d.mts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/default.ts"],"names":[],"mappings":"OAAO,EAAE,aAAa,EAAE,MAAM,KAAK;OAC5B,EAAE,eAAe,EAAY;OAC7B,EAAE,IAAI,EAAE;AAEf,wBAAgB,eAAe,CAAC,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,IAAI,GAAG,eAAe,GAAG;IAAE,OAAO,EAAE,GAAG,CAAA;CAAE,CAKnG"}
|
||||
7
node_modules/openai/_vendor/zod-to-json-schema/parsers/default.d.ts
generated
vendored
Normal file
7
node_modules/openai/_vendor/zod-to-json-schema/parsers/default.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import { ZodDefaultDef } from 'zod';
|
||||
import { JsonSchema7Type } from "../parseDef.js";
|
||||
import { Refs } from "../Refs.js";
|
||||
export declare function parseDefaultDef(_def: ZodDefaultDef, refs: Refs): JsonSchema7Type & {
|
||||
default: any;
|
||||
};
|
||||
//# sourceMappingURL=default.d.ts.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/default.d.ts.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/default.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/default.ts"],"names":[],"mappings":"OAAO,EAAE,aAAa,EAAE,MAAM,KAAK;OAC5B,EAAE,eAAe,EAAY;OAC7B,EAAE,IAAI,EAAE;AAEf,wBAAgB,eAAe,CAAC,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,IAAI,GAAG,eAAe,GAAG;IAAE,OAAO,EAAE,GAAG,CAAA;CAAE,CAKnG"}
|
||||
11
node_modules/openai/_vendor/zod-to-json-schema/parsers/default.js
generated
vendored
Normal file
11
node_modules/openai/_vendor/zod-to-json-schema/parsers/default.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseDefaultDef = parseDefaultDef;
|
||||
const parseDef_1 = require("../parseDef.js");
|
||||
function parseDefaultDef(_def, refs) {
|
||||
return {
|
||||
...(0, parseDef_1.parseDef)(_def.innerType._def, refs),
|
||||
default: _def.defaultValue(),
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=default.js.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/default.js.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/default.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"default.js","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/default.ts"],"names":[],"mappings":";;AAIA,0CAKC;AARD,6CAAwD;AAGxD,SAAgB,eAAe,CAAC,IAAmB,EAAE,IAAU;IAC7D,OAAO;QACL,GAAG,IAAA,mBAAQ,EAAC,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC;QACtC,OAAO,EAAE,IAAI,CAAC,YAAY,EAAE;KAC7B,CAAC;AACJ,CAAC"}
|
||||
8
node_modules/openai/_vendor/zod-to-json-schema/parsers/default.mjs
generated
vendored
Normal file
8
node_modules/openai/_vendor/zod-to-json-schema/parsers/default.mjs
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import { parseDef } from "../parseDef.mjs";
|
||||
export function parseDefaultDef(_def, refs) {
|
||||
return {
|
||||
...parseDef(_def.innerType._def, refs),
|
||||
default: _def.defaultValue(),
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=default.mjs.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/default.mjs.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/default.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"default.mjs","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/default.ts"],"names":[],"mappings":"OACO,EAAmB,QAAQ,EAAE;AAGpC,MAAM,UAAU,eAAe,CAAC,IAAmB,EAAE,IAAU;IAC7D,OAAO;QACL,GAAG,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC;QACtC,OAAO,EAAE,IAAI,CAAC,YAAY,EAAE;KAC7B,CAAC;AACJ,CAAC"}
|
||||
5
node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.d.mts
generated
vendored
Normal file
5
node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.d.mts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { ZodEffectsDef } from 'zod';
|
||||
import { JsonSchema7Type } from "../parseDef.mjs";
|
||||
import { Refs } from "../Refs.mjs";
|
||||
export declare function parseEffectsDef(_def: ZodEffectsDef, refs: Refs, forceResolution: boolean): JsonSchema7Type | undefined;
|
||||
//# sourceMappingURL=effects.d.mts.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.d.mts.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.d.mts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"effects.d.mts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/effects.ts"],"names":[],"mappings":"OAAO,EAAE,aAAa,EAAE,MAAM,KAAK;OAC5B,EAAE,eAAe,EAAY;OAC7B,EAAE,IAAI,EAAE;AAEf,wBAAgB,eAAe,CAC7B,IAAI,EAAE,aAAa,EACnB,IAAI,EAAE,IAAI,EACV,eAAe,EAAE,OAAO,GACvB,eAAe,GAAG,SAAS,CAE7B"}
|
||||
5
node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.d.ts
generated
vendored
Normal file
5
node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { ZodEffectsDef } from 'zod';
|
||||
import { JsonSchema7Type } from "../parseDef.js";
|
||||
import { Refs } from "../Refs.js";
|
||||
export declare function parseEffectsDef(_def: ZodEffectsDef, refs: Refs, forceResolution: boolean): JsonSchema7Type | undefined;
|
||||
//# sourceMappingURL=effects.d.ts.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.d.ts.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"effects.d.ts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/effects.ts"],"names":[],"mappings":"OAAO,EAAE,aAAa,EAAE,MAAM,KAAK;OAC5B,EAAE,eAAe,EAAY;OAC7B,EAAE,IAAI,EAAE;AAEf,wBAAgB,eAAe,CAC7B,IAAI,EAAE,aAAa,EACnB,IAAI,EAAE,IAAI,EACV,eAAe,EAAE,OAAO,GACvB,eAAe,GAAG,SAAS,CAE7B"}
|
||||
8
node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.js
generated
vendored
Normal file
8
node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseEffectsDef = parseEffectsDef;
|
||||
const parseDef_1 = require("../parseDef.js");
|
||||
function parseEffectsDef(_def, refs, forceResolution) {
|
||||
return refs.effectStrategy === 'input' ? (0, parseDef_1.parseDef)(_def.schema._def, refs, forceResolution) : {};
|
||||
}
|
||||
//# sourceMappingURL=effects.js.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.js.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"effects.js","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/effects.ts"],"names":[],"mappings":";;AAIA,0CAMC;AATD,6CAAwD;AAGxD,SAAgB,eAAe,CAC7B,IAAmB,EACnB,IAAU,EACV,eAAwB;IAExB,OAAO,IAAI,CAAC,cAAc,KAAK,OAAO,CAAC,CAAC,CAAC,IAAA,mBAAQ,EAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAClG,CAAC"}
|
||||
5
node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.mjs
generated
vendored
Normal file
5
node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.mjs
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { parseDef } from "../parseDef.mjs";
|
||||
export function parseEffectsDef(_def, refs, forceResolution) {
|
||||
return refs.effectStrategy === 'input' ? parseDef(_def.schema._def, refs, forceResolution) : {};
|
||||
}
|
||||
//# sourceMappingURL=effects.mjs.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.mjs.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"effects.mjs","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/effects.ts"],"names":[],"mappings":"OACO,EAAmB,QAAQ,EAAE;AAGpC,MAAM,UAAU,eAAe,CAC7B,IAAmB,EACnB,IAAU,EACV,eAAwB;IAExB,OAAO,IAAI,CAAC,cAAc,KAAK,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAClG,CAAC"}
|
||||
7
node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.d.mts
generated
vendored
Normal file
7
node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.d.mts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import { ZodEnumDef } from 'zod';
|
||||
export type JsonSchema7EnumType = {
|
||||
type: 'string';
|
||||
enum: string[];
|
||||
};
|
||||
export declare function parseEnumDef(def: ZodEnumDef): JsonSchema7EnumType;
|
||||
//# sourceMappingURL=enum.d.mts.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.d.mts.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.d.mts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"enum.d.mts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/enum.ts"],"names":[],"mappings":"OAAO,EAAE,UAAU,EAAE,MAAM,KAAK;AAEhC,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB,CAAC;AAEF,wBAAgB,YAAY,CAAC,GAAG,EAAE,UAAU,GAAG,mBAAmB,CAKjE"}
|
||||
7
node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.d.ts
generated
vendored
Normal file
7
node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import { ZodEnumDef } from 'zod';
|
||||
export type JsonSchema7EnumType = {
|
||||
type: 'string';
|
||||
enum: string[];
|
||||
};
|
||||
export declare function parseEnumDef(def: ZodEnumDef): JsonSchema7EnumType;
|
||||
//# sourceMappingURL=enum.d.ts.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.d.ts.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"enum.d.ts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/enum.ts"],"names":[],"mappings":"OAAO,EAAE,UAAU,EAAE,MAAM,KAAK;AAEhC,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB,CAAC;AAEF,wBAAgB,YAAY,CAAC,GAAG,EAAE,UAAU,GAAG,mBAAmB,CAKjE"}
|
||||
10
node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.js
generated
vendored
Normal file
10
node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseEnumDef = parseEnumDef;
|
||||
function parseEnumDef(def) {
|
||||
return {
|
||||
type: 'string',
|
||||
enum: [...def.values],
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=enum.js.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.js.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"enum.js","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/enum.ts"],"names":[],"mappings":";;AAOA,oCAKC;AALD,SAAgB,YAAY,CAAC,GAAe;IAC1C,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC;KACtB,CAAC;AACJ,CAAC"}
|
||||
7
node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.mjs
generated
vendored
Normal file
7
node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.mjs
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
export function parseEnumDef(def) {
|
||||
return {
|
||||
type: 'string',
|
||||
enum: [...def.values],
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=enum.mjs.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.mjs.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"enum.mjs","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/enum.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,YAAY,CAAC,GAAe;IAC1C,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC;KACtB,CAAC;AACJ,CAAC"}
|
||||
9
node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.d.mts
generated
vendored
Normal file
9
node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.d.mts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import { ZodIntersectionDef } from 'zod';
|
||||
import { JsonSchema7Type } from "../parseDef.mjs";
|
||||
import { Refs } from "../Refs.mjs";
|
||||
export type JsonSchema7AllOfType = {
|
||||
allOf: JsonSchema7Type[];
|
||||
unevaluatedProperties?: boolean;
|
||||
};
|
||||
export declare function parseIntersectionDef(def: ZodIntersectionDef, refs: Refs): JsonSchema7AllOfType | JsonSchema7Type | undefined;
|
||||
//# sourceMappingURL=intersection.d.mts.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.d.mts.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.d.mts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"intersection.d.mts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/intersection.ts"],"names":[],"mappings":"OAAO,EAAE,kBAAkB,EAAE,MAAM,KAAK;OACjC,EAAE,eAAe,EAAY;OAC7B,EAAE,IAAI,EAAE;AAGf,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC,CAAC;AASF,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,kBAAkB,EACvB,IAAI,EAAE,IAAI,GACT,oBAAoB,GAAG,eAAe,GAAG,SAAS,CA2CpD"}
|
||||
9
node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.d.ts
generated
vendored
Normal file
9
node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import { ZodIntersectionDef } from 'zod';
|
||||
import { JsonSchema7Type } from "../parseDef.js";
|
||||
import { Refs } from "../Refs.js";
|
||||
export type JsonSchema7AllOfType = {
|
||||
allOf: JsonSchema7Type[];
|
||||
unevaluatedProperties?: boolean;
|
||||
};
|
||||
export declare function parseIntersectionDef(def: ZodIntersectionDef, refs: Refs): JsonSchema7AllOfType | JsonSchema7Type | undefined;
|
||||
//# sourceMappingURL=intersection.d.ts.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.d.ts.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"intersection.d.ts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/intersection.ts"],"names":[],"mappings":"OAAO,EAAE,kBAAkB,EAAE,MAAM,KAAK;OACjC,EAAE,eAAe,EAAY;OAC7B,EAAE,IAAI,EAAE;AAGf,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC,CAAC;AASF,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,kBAAkB,EACvB,IAAI,EAAE,IAAI,GACT,oBAAoB,GAAG,eAAe,GAAG,SAAS,CA2CpD"}
|
||||
53
node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.js
generated
vendored
Normal file
53
node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.js
generated
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseIntersectionDef = parseIntersectionDef;
|
||||
const parseDef_1 = require("../parseDef.js");
|
||||
const isJsonSchema7AllOfType = (type) => {
|
||||
if ('type' in type && type.type === 'string')
|
||||
return false;
|
||||
return 'allOf' in type;
|
||||
};
|
||||
function parseIntersectionDef(def, refs) {
|
||||
const allOf = [
|
||||
(0, parseDef_1.parseDef)(def.left._def, {
|
||||
...refs,
|
||||
currentPath: [...refs.currentPath, 'allOf', '0'],
|
||||
}),
|
||||
(0, parseDef_1.parseDef)(def.right._def, {
|
||||
...refs,
|
||||
currentPath: [...refs.currentPath, 'allOf', '1'],
|
||||
}),
|
||||
].filter((x) => !!x);
|
||||
let unevaluatedProperties = refs.target === 'jsonSchema2019-09' ? { unevaluatedProperties: false } : undefined;
|
||||
const mergedAllOf = [];
|
||||
// If either of the schemas is an allOf, merge them into a single allOf
|
||||
allOf.forEach((schema) => {
|
||||
if (isJsonSchema7AllOfType(schema)) {
|
||||
mergedAllOf.push(...schema.allOf);
|
||||
if (schema.unevaluatedProperties === undefined) {
|
||||
// If one of the schemas has no unevaluatedProperties set,
|
||||
// the merged schema should also have no unevaluatedProperties set
|
||||
unevaluatedProperties = undefined;
|
||||
}
|
||||
}
|
||||
else {
|
||||
let nestedSchema = schema;
|
||||
if ('additionalProperties' in schema && schema.additionalProperties === false) {
|
||||
const { additionalProperties, ...rest } = schema;
|
||||
nestedSchema = rest;
|
||||
}
|
||||
else {
|
||||
// As soon as one of the schemas has additionalProperties set not to false, we allow unevaluatedProperties
|
||||
unevaluatedProperties = undefined;
|
||||
}
|
||||
mergedAllOf.push(nestedSchema);
|
||||
}
|
||||
});
|
||||
return mergedAllOf.length ?
|
||||
{
|
||||
allOf: mergedAllOf,
|
||||
...unevaluatedProperties,
|
||||
}
|
||||
: undefined;
|
||||
}
|
||||
//# sourceMappingURL=intersection.js.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.js.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"intersection.js","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/intersection.ts"],"names":[],"mappings":";;AAiBA,oDA8CC;AA9DD,6CAAwD;AASxD,MAAM,sBAAsB,GAAG,CAC7B,IAA6C,EACf,EAAE;IAChC,IAAI,MAAM,IAAI,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IAC3D,OAAO,OAAO,IAAI,IAAI,CAAC;AACzB,CAAC,CAAC;AAEF,SAAgB,oBAAoB,CAClC,GAAuB,EACvB,IAAU;IAEV,MAAM,KAAK,GAAG;QACZ,IAAA,mBAAQ,EAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE;YACtB,GAAG,IAAI;YACP,WAAW,EAAE,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,EAAE,GAAG,CAAC;SACjD,CAAC;QACF,IAAA,mBAAQ,EAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE;YACvB,GAAG,IAAI;YACP,WAAW,EAAE,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,EAAE,GAAG,CAAC;SACjD,CAAC;KACH,CAAC,MAAM,CAAC,CAAC,CAAC,EAAwB,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAE3C,IAAI,qBAAqB,GACvB,IAAI,CAAC,MAAM,KAAK,mBAAmB,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;IAErF,MAAM,WAAW,GAAsB,EAAE,CAAC;IAC1C,uEAAuE;IACvE,KAAK,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;QACvB,IAAI,sBAAsB,CAAC,MAAM,CAAC,EAAE,CAAC;YACnC,WAAW,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;YAClC,IAAI,MAAM,CAAC,qBAAqB,KAAK,SAAS,EAAE,CAAC;gBAC/C,0DAA0D;gBAC1D,kEAAkE;gBAClE,qBAAqB,GAAG,SAAS,CAAC;YACpC,CAAC;QACH,CAAC;aAAM,CAAC;YACN,IAAI,YAAY,GAAoB,MAAM,CAAC;YAC3C,IAAI,sBAAsB,IAAI,MAAM,IAAI,MAAM,CAAC,oBAAoB,KAAK,KAAK,EAAE,CAAC;gBAC9E,MAAM,EAAE,oBAAoB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;gBACjD,YAAY,GAAG,IAAI,CAAC;YACtB,CAAC;iBAAM,CAAC;gBACN,0GAA0G;gBAC1G,qBAAqB,GAAG,SAAS,CAAC;YACpC,CAAC;YACD,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACjC,CAAC;IACH,CAAC,CAAC,CAAC;IACH,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC;QACvB;YACE,KAAK,EAAE,WAAW;YAClB,GAAG,qBAAqB;SACzB;QACH,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC"}
|
||||
50
node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.mjs
generated
vendored
Normal file
50
node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.mjs
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
import { parseDef } from "../parseDef.mjs";
|
||||
const isJsonSchema7AllOfType = (type) => {
|
||||
if ('type' in type && type.type === 'string')
|
||||
return false;
|
||||
return 'allOf' in type;
|
||||
};
|
||||
export function parseIntersectionDef(def, refs) {
|
||||
const allOf = [
|
||||
parseDef(def.left._def, {
|
||||
...refs,
|
||||
currentPath: [...refs.currentPath, 'allOf', '0'],
|
||||
}),
|
||||
parseDef(def.right._def, {
|
||||
...refs,
|
||||
currentPath: [...refs.currentPath, 'allOf', '1'],
|
||||
}),
|
||||
].filter((x) => !!x);
|
||||
let unevaluatedProperties = refs.target === 'jsonSchema2019-09' ? { unevaluatedProperties: false } : undefined;
|
||||
const mergedAllOf = [];
|
||||
// If either of the schemas is an allOf, merge them into a single allOf
|
||||
allOf.forEach((schema) => {
|
||||
if (isJsonSchema7AllOfType(schema)) {
|
||||
mergedAllOf.push(...schema.allOf);
|
||||
if (schema.unevaluatedProperties === undefined) {
|
||||
// If one of the schemas has no unevaluatedProperties set,
|
||||
// the merged schema should also have no unevaluatedProperties set
|
||||
unevaluatedProperties = undefined;
|
||||
}
|
||||
}
|
||||
else {
|
||||
let nestedSchema = schema;
|
||||
if ('additionalProperties' in schema && schema.additionalProperties === false) {
|
||||
const { additionalProperties, ...rest } = schema;
|
||||
nestedSchema = rest;
|
||||
}
|
||||
else {
|
||||
// As soon as one of the schemas has additionalProperties set not to false, we allow unevaluatedProperties
|
||||
unevaluatedProperties = undefined;
|
||||
}
|
||||
mergedAllOf.push(nestedSchema);
|
||||
}
|
||||
});
|
||||
return mergedAllOf.length ?
|
||||
{
|
||||
allOf: mergedAllOf,
|
||||
...unevaluatedProperties,
|
||||
}
|
||||
: undefined;
|
||||
}
|
||||
//# sourceMappingURL=intersection.mjs.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.mjs.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"intersection.mjs","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/intersection.ts"],"names":[],"mappings":"OACO,EAAmB,QAAQ,EAAE;AASpC,MAAM,sBAAsB,GAAG,CAC7B,IAA6C,EACf,EAAE;IAChC,IAAI,MAAM,IAAI,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IAC3D,OAAO,OAAO,IAAI,IAAI,CAAC;AACzB,CAAC,CAAC;AAEF,MAAM,UAAU,oBAAoB,CAClC,GAAuB,EACvB,IAAU;IAEV,MAAM,KAAK,GAAG;QACZ,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE;YACtB,GAAG,IAAI;YACP,WAAW,EAAE,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,EAAE,GAAG,CAAC;SACjD,CAAC;QACF,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE;YACvB,GAAG,IAAI;YACP,WAAW,EAAE,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,EAAE,GAAG,CAAC;SACjD,CAAC;KACH,CAAC,MAAM,CAAC,CAAC,CAAC,EAAwB,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAE3C,IAAI,qBAAqB,GACvB,IAAI,CAAC,MAAM,KAAK,mBAAmB,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;IAErF,MAAM,WAAW,GAAsB,EAAE,CAAC;IAC1C,uEAAuE;IACvE,KAAK,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;QACvB,IAAI,sBAAsB,CAAC,MAAM,CAAC,EAAE,CAAC;YACnC,WAAW,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;YAClC,IAAI,MAAM,CAAC,qBAAqB,KAAK,SAAS,EAAE,CAAC;gBAC/C,0DAA0D;gBAC1D,kEAAkE;gBAClE,qBAAqB,GAAG,SAAS,CAAC;YACpC,CAAC;QACH,CAAC;aAAM,CAAC;YACN,IAAI,YAAY,GAAoB,MAAM,CAAC;YAC3C,IAAI,sBAAsB,IAAI,MAAM,IAAI,MAAM,CAAC,oBAAoB,KAAK,KAAK,EAAE,CAAC;gBAC9E,MAAM,EAAE,oBAAoB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;gBACjD,YAAY,GAAG,IAAI,CAAC;YACtB,CAAC;iBAAM,CAAC;gBACN,0GAA0G;gBAC1G,qBAAqB,GAAG,SAAS,CAAC;YACpC,CAAC;YACD,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACjC,CAAC;IACH,CAAC,CAAC,CAAC;IACH,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC;QACvB;YACE,KAAK,EAAE,WAAW;YAClB,GAAG,qBAAqB;SACzB;QACH,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC"}
|
||||
10
node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.d.mts
generated
vendored
Normal file
10
node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.d.mts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import { ZodLiteralDef } from 'zod';
|
||||
import { Refs } from "../Refs.mjs";
|
||||
export type JsonSchema7LiteralType = {
|
||||
type: 'string' | 'number' | 'integer' | 'boolean';
|
||||
const: string | number | boolean;
|
||||
} | {
|
||||
type: 'object' | 'array';
|
||||
};
|
||||
export declare function parseLiteralDef(def: ZodLiteralDef, refs: Refs): JsonSchema7LiteralType;
|
||||
//# sourceMappingURL=literal.d.mts.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.d.mts.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.d.mts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"literal.d.mts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/literal.ts"],"names":[],"mappings":"OAAO,EAAE,aAAa,EAAE,MAAM,KAAK;OAC5B,EAAE,IAAI,EAAE;AAEf,MAAM,MAAM,sBAAsB,GAC9B;IACE,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;IAClD,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CAClC,GACD;IACE,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC;CAC1B,CAAC;AAEN,wBAAgB,eAAe,CAAC,GAAG,EAAE,aAAa,EAAE,IAAI,EAAE,IAAI,GAAG,sBAAsB,CAwBtF"}
|
||||
10
node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.d.ts
generated
vendored
Normal file
10
node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import { ZodLiteralDef } from 'zod';
|
||||
import { Refs } from "../Refs.js";
|
||||
export type JsonSchema7LiteralType = {
|
||||
type: 'string' | 'number' | 'integer' | 'boolean';
|
||||
const: string | number | boolean;
|
||||
} | {
|
||||
type: 'object' | 'array';
|
||||
};
|
||||
export declare function parseLiteralDef(def: ZodLiteralDef, refs: Refs): JsonSchema7LiteralType;
|
||||
//# sourceMappingURL=literal.d.ts.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.d.ts.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"literal.d.ts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/literal.ts"],"names":[],"mappings":"OAAO,EAAE,aAAa,EAAE,MAAM,KAAK;OAC5B,EAAE,IAAI,EAAE;AAEf,MAAM,MAAM,sBAAsB,GAC9B;IACE,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;IAClD,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CAClC,GACD;IACE,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC;CAC1B,CAAC;AAEN,wBAAgB,eAAe,CAAC,GAAG,EAAE,aAAa,EAAE,IAAI,EAAE,IAAI,GAAG,sBAAsB,CAwBtF"}
|
||||
25
node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.js
generated
vendored
Normal file
25
node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseLiteralDef = parseLiteralDef;
|
||||
function parseLiteralDef(def, refs) {
|
||||
const parsedType = typeof def.value;
|
||||
if (parsedType !== 'bigint' &&
|
||||
parsedType !== 'number' &&
|
||||
parsedType !== 'boolean' &&
|
||||
parsedType !== 'string') {
|
||||
return {
|
||||
type: Array.isArray(def.value) ? 'array' : 'object',
|
||||
};
|
||||
}
|
||||
if (refs.target === 'openApi3') {
|
||||
return {
|
||||
type: parsedType === 'bigint' ? 'integer' : parsedType,
|
||||
enum: [def.value],
|
||||
};
|
||||
}
|
||||
return {
|
||||
type: parsedType === 'bigint' ? 'integer' : parsedType,
|
||||
const: def.value,
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=literal.js.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.js.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"literal.js","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/literal.ts"],"names":[],"mappings":";;AAYA,0CAwBC;AAxBD,SAAgB,eAAe,CAAC,GAAkB,EAAE,IAAU;IAC5D,MAAM,UAAU,GAAG,OAAO,GAAG,CAAC,KAAK,CAAC;IACpC,IACE,UAAU,KAAK,QAAQ;QACvB,UAAU,KAAK,QAAQ;QACvB,UAAU,KAAK,SAAS;QACxB,UAAU,KAAK,QAAQ,EACvB,CAAC;QACD,OAAO;YACL,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ;SACpD,CAAC;IACJ,CAAC;IAED,IAAI,IAAI,CAAC,MAAM,KAAK,UAAU,EAAE,CAAC;QAC/B,OAAO;YACL,IAAI,EAAE,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU;YACtD,IAAI,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC;SACX,CAAC;IACX,CAAC;IAED,OAAO;QACL,IAAI,EAAE,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU;QACtD,KAAK,EAAE,GAAG,CAAC,KAAK;KACjB,CAAC;AACJ,CAAC"}
|
||||
22
node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.mjs
generated
vendored
Normal file
22
node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.mjs
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
export function parseLiteralDef(def, refs) {
|
||||
const parsedType = typeof def.value;
|
||||
if (parsedType !== 'bigint' &&
|
||||
parsedType !== 'number' &&
|
||||
parsedType !== 'boolean' &&
|
||||
parsedType !== 'string') {
|
||||
return {
|
||||
type: Array.isArray(def.value) ? 'array' : 'object',
|
||||
};
|
||||
}
|
||||
if (refs.target === 'openApi3') {
|
||||
return {
|
||||
type: parsedType === 'bigint' ? 'integer' : parsedType,
|
||||
enum: [def.value],
|
||||
};
|
||||
}
|
||||
return {
|
||||
type: parsedType === 'bigint' ? 'integer' : parsedType,
|
||||
const: def.value,
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=literal.mjs.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.mjs.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"literal.mjs","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/literal.ts"],"names":[],"mappings":"AAYA,MAAM,UAAU,eAAe,CAAC,GAAkB,EAAE,IAAU;IAC5D,MAAM,UAAU,GAAG,OAAO,GAAG,CAAC,KAAK,CAAC;IACpC,IACE,UAAU,KAAK,QAAQ;QACvB,UAAU,KAAK,QAAQ;QACvB,UAAU,KAAK,SAAS;QACxB,UAAU,KAAK,QAAQ,EACvB,CAAC;QACD,OAAO;YACL,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ;SACpD,CAAC;IACJ,CAAC;IAED,IAAI,IAAI,CAAC,MAAM,KAAK,UAAU,EAAE,CAAC;QAC/B,OAAO;YACL,IAAI,EAAE,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU;YACtD,IAAI,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC;SACX,CAAC;IACX,CAAC;IAED,OAAO;QACL,IAAI,EAAE,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU;QACtD,KAAK,EAAE,GAAG,CAAC,KAAK;KACjB,CAAC;AACJ,CAAC"}
|
||||
16
node_modules/openai/_vendor/zod-to-json-schema/parsers/map.d.mts
generated
vendored
Normal file
16
node_modules/openai/_vendor/zod-to-json-schema/parsers/map.d.mts
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import { ZodMapDef } from 'zod';
|
||||
import { JsonSchema7Type } from "../parseDef.mjs";
|
||||
import { Refs } from "../Refs.mjs";
|
||||
import { JsonSchema7RecordType } from "./record.mjs";
|
||||
export type JsonSchema7MapType = {
|
||||
type: 'array';
|
||||
maxItems: 125;
|
||||
items: {
|
||||
type: 'array';
|
||||
items: [JsonSchema7Type, JsonSchema7Type];
|
||||
minItems: 2;
|
||||
maxItems: 2;
|
||||
};
|
||||
};
|
||||
export declare function parseMapDef(def: ZodMapDef, refs: Refs): JsonSchema7MapType | JsonSchema7RecordType;
|
||||
//# sourceMappingURL=map.d.mts.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/map.d.mts.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/map.d.mts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"map.d.mts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/map.ts"],"names":[],"mappings":"OAAO,EAAE,SAAS,EAAE,MAAM,KAAK;OACxB,EAAE,eAAe,EAAY;OAC7B,EAAE,IAAI,EAAE;OACR,EAAE,qBAAqB,EAAkB;AAEhD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,GAAG,CAAC;IACd,KAAK,EAAE;QACL,IAAI,EAAE,OAAO,CAAC;QACd,KAAK,EAAE,CAAC,eAAe,EAAE,eAAe,CAAC,CAAC;QAC1C,QAAQ,EAAE,CAAC,CAAC;QACZ,QAAQ,EAAE,CAAC,CAAC;KACb,CAAC;CACH,CAAC;AAEF,wBAAgB,WAAW,CAAC,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,GAAG,kBAAkB,GAAG,qBAAqB,CAyBlG"}
|
||||
16
node_modules/openai/_vendor/zod-to-json-schema/parsers/map.d.ts
generated
vendored
Normal file
16
node_modules/openai/_vendor/zod-to-json-schema/parsers/map.d.ts
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import { ZodMapDef } from 'zod';
|
||||
import { JsonSchema7Type } from "../parseDef.js";
|
||||
import { Refs } from "../Refs.js";
|
||||
import { JsonSchema7RecordType } from "./record.js";
|
||||
export type JsonSchema7MapType = {
|
||||
type: 'array';
|
||||
maxItems: 125;
|
||||
items: {
|
||||
type: 'array';
|
||||
items: [JsonSchema7Type, JsonSchema7Type];
|
||||
minItems: 2;
|
||||
maxItems: 2;
|
||||
};
|
||||
};
|
||||
export declare function parseMapDef(def: ZodMapDef, refs: Refs): JsonSchema7MapType | JsonSchema7RecordType;
|
||||
//# sourceMappingURL=map.d.ts.map
|
||||
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/map.d.ts.map
generated
vendored
Normal file
1
node_modules/openai/_vendor/zod-to-json-schema/parsers/map.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/map.ts"],"names":[],"mappings":"OAAO,EAAE,SAAS,EAAE,MAAM,KAAK;OACxB,EAAE,eAAe,EAAY;OAC7B,EAAE,IAAI,EAAE;OACR,EAAE,qBAAqB,EAAkB;AAEhD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,GAAG,CAAC;IACd,KAAK,EAAE;QACL,IAAI,EAAE,OAAO,CAAC;QACd,KAAK,EAAE,CAAC,eAAe,EAAE,eAAe,CAAC,CAAC;QAC1C,QAAQ,EAAE,CAAC,CAAC;QACZ,QAAQ,EAAE,CAAC,CAAC;KACb,CAAC;CACH,CAAC;AAEF,wBAAgB,WAAW,CAAC,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,GAAG,kBAAkB,GAAG,qBAAqB,CAyBlG"}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user