openai 4.53.2 → 4.55.0
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 +29 -0
- package/README.md +2 -2
- package/_vendor/partial-json-parser/parser.d.ts +3 -0
- package/_vendor/partial-json-parser/parser.d.ts.map +1 -0
- package/_vendor/partial-json-parser/parser.js +226 -0
- package/_vendor/partial-json-parser/parser.js.map +1 -0
- package/_vendor/partial-json-parser/parser.mjs +223 -0
- package/_vendor/partial-json-parser/parser.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/Options.d.ts +32 -0
- package/_vendor/zod-to-json-schema/Options.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/Options.js +36 -0
- package/_vendor/zod-to-json-schema/Options.js.map +1 -0
- package/_vendor/zod-to-json-schema/Options.mjs +32 -0
- package/_vendor/zod-to-json-schema/Options.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/Refs.d.ts +15 -0
- package/_vendor/zod-to-json-schema/Refs.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/Refs.js +26 -0
- package/_vendor/zod-to-json-schema/Refs.js.map +1 -0
- package/_vendor/zod-to-json-schema/Refs.mjs +22 -0
- package/_vendor/zod-to-json-schema/Refs.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/errorMessages.d.ts +12 -0
- package/_vendor/zod-to-json-schema/errorMessages.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/errorMessages.js +20 -0
- package/_vendor/zod-to-json-schema/errorMessages.js.map +1 -0
- package/_vendor/zod-to-json-schema/errorMessages.mjs +15 -0
- package/_vendor/zod-to-json-schema/errorMessages.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/index.d.ts +38 -0
- package/_vendor/zod-to-json-schema/index.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/index.js +54 -0
- package/_vendor/zod-to-json-schema/index.js.map +1 -0
- package/_vendor/zod-to-json-schema/index.mjs +38 -0
- package/_vendor/zod-to-json-schema/index.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/parseDef.d.ts +38 -0
- package/_vendor/zod-to-json-schema/parseDef.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/parseDef.js +168 -0
- package/_vendor/zod-to-json-schema/parseDef.js.map +1 -0
- package/_vendor/zod-to-json-schema/parseDef.mjs +164 -0
- package/_vendor/zod-to-json-schema/parseDef.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/any.d.ts +3 -0
- package/_vendor/zod-to-json-schema/parsers/any.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/any.js +8 -0
- package/_vendor/zod-to-json-schema/parsers/any.js.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/any.mjs +4 -0
- package/_vendor/zod-to-json-schema/parsers/any.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/array.d.ts +13 -0
- package/_vendor/zod-to-json-schema/parsers/array.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/array.js +30 -0
- package/_vendor/zod-to-json-schema/parsers/array.js.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/array.mjs +26 -0
- package/_vendor/zod-to-json-schema/parsers/array.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/bigint.d.ts +15 -0
- package/_vendor/zod-to-json-schema/parsers/bigint.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/bigint.js +54 -0
- package/_vendor/zod-to-json-schema/parsers/bigint.js.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/bigint.mjs +50 -0
- package/_vendor/zod-to-json-schema/parsers/bigint.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/boolean.d.ts +5 -0
- package/_vendor/zod-to-json-schema/parsers/boolean.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/boolean.js +10 -0
- package/_vendor/zod-to-json-schema/parsers/boolean.js.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/boolean.mjs +6 -0
- package/_vendor/zod-to-json-schema/parsers/boolean.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/branded.d.ts +4 -0
- package/_vendor/zod-to-json-schema/parsers/branded.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/branded.js +9 -0
- package/_vendor/zod-to-json-schema/parsers/branded.js.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/branded.mjs +5 -0
- package/_vendor/zod-to-json-schema/parsers/branded.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/catch.d.ts +4 -0
- package/_vendor/zod-to-json-schema/parsers/catch.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/catch.js +9 -0
- package/_vendor/zod-to-json-schema/parsers/catch.js.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/catch.mjs +5 -0
- package/_vendor/zod-to-json-schema/parsers/catch.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/date.d.ts +16 -0
- package/_vendor/zod-to-json-schema/parsers/date.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/date.js +51 -0
- package/_vendor/zod-to-json-schema/parsers/date.js.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/date.mjs +47 -0
- package/_vendor/zod-to-json-schema/parsers/date.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/default.d.ts +7 -0
- package/_vendor/zod-to-json-schema/parsers/default.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/default.js +12 -0
- package/_vendor/zod-to-json-schema/parsers/default.js.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/default.mjs +8 -0
- package/_vendor/zod-to-json-schema/parsers/default.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/effects.d.ts +5 -0
- package/_vendor/zod-to-json-schema/parsers/effects.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/effects.js +9 -0
- package/_vendor/zod-to-json-schema/parsers/effects.js.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/effects.mjs +5 -0
- package/_vendor/zod-to-json-schema/parsers/effects.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/enum.d.ts +7 -0
- package/_vendor/zod-to-json-schema/parsers/enum.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/enum.js +11 -0
- package/_vendor/zod-to-json-schema/parsers/enum.js.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/enum.mjs +7 -0
- package/_vendor/zod-to-json-schema/parsers/enum.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/intersection.d.ts +9 -0
- package/_vendor/zod-to-json-schema/parsers/intersection.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/intersection.js +54 -0
- package/_vendor/zod-to-json-schema/parsers/intersection.js.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/intersection.mjs +50 -0
- package/_vendor/zod-to-json-schema/parsers/intersection.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/literal.d.ts +10 -0
- package/_vendor/zod-to-json-schema/parsers/literal.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/literal.js +26 -0
- package/_vendor/zod-to-json-schema/parsers/literal.js.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/literal.mjs +22 -0
- package/_vendor/zod-to-json-schema/parsers/literal.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/map.d.ts +16 -0
- package/_vendor/zod-to-json-schema/parsers/map.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/map.js +30 -0
- package/_vendor/zod-to-json-schema/parsers/map.js.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/map.mjs +26 -0
- package/_vendor/zod-to-json-schema/parsers/map.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/nativeEnum.d.ts +7 -0
- package/_vendor/zod-to-json-schema/parsers/nativeEnum.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/nativeEnum.js +21 -0
- package/_vendor/zod-to-json-schema/parsers/nativeEnum.js.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/nativeEnum.mjs +17 -0
- package/_vendor/zod-to-json-schema/parsers/nativeEnum.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/never.d.ts +5 -0
- package/_vendor/zod-to-json-schema/parsers/never.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/never.js +10 -0
- package/_vendor/zod-to-json-schema/parsers/never.js.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/never.mjs +6 -0
- package/_vendor/zod-to-json-schema/parsers/never.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/null.d.ts +6 -0
- package/_vendor/zod-to-json-schema/parsers/null.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/null.js +15 -0
- package/_vendor/zod-to-json-schema/parsers/null.js.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/null.mjs +11 -0
- package/_vendor/zod-to-json-schema/parsers/null.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/nullable.d.ts +11 -0
- package/_vendor/zod-to-json-schema/parsers/nullable.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/nullable.js +35 -0
- package/_vendor/zod-to-json-schema/parsers/nullable.js.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/nullable.mjs +31 -0
- package/_vendor/zod-to-json-schema/parsers/nullable.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/number.d.ts +14 -0
- package/_vendor/zod-to-json-schema/parsers/number.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/number.js +57 -0
- package/_vendor/zod-to-json-schema/parsers/number.js.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/number.mjs +53 -0
- package/_vendor/zod-to-json-schema/parsers/number.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/object.d.ts +11 -0
- package/_vendor/zod-to-json-schema/parsers/object.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/object.js +51 -0
- package/_vendor/zod-to-json-schema/parsers/object.js.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/object.mjs +47 -0
- package/_vendor/zod-to-json-schema/parsers/object.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/optional.d.ts +5 -0
- package/_vendor/zod-to-json-schema/parsers/optional.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/optional.js +25 -0
- package/_vendor/zod-to-json-schema/parsers/optional.js.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/optional.mjs +21 -0
- package/_vendor/zod-to-json-schema/parsers/optional.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/pipeline.d.ts +6 -0
- package/_vendor/zod-to-json-schema/parsers/pipeline.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/pipeline.js +25 -0
- package/_vendor/zod-to-json-schema/parsers/pipeline.js.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/pipeline.mjs +21 -0
- package/_vendor/zod-to-json-schema/parsers/pipeline.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/promise.d.ts +5 -0
- package/_vendor/zod-to-json-schema/parsers/promise.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/promise.js +9 -0
- package/_vendor/zod-to-json-schema/parsers/promise.js.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/promise.mjs +5 -0
- package/_vendor/zod-to-json-schema/parsers/promise.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/readonly.d.ts +4 -0
- package/_vendor/zod-to-json-schema/parsers/readonly.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/readonly.js +9 -0
- package/_vendor/zod-to-json-schema/parsers/readonly.js.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/readonly.mjs +5 -0
- package/_vendor/zod-to-json-schema/parsers/readonly.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/record.d.ts +14 -0
- package/_vendor/zod-to-json-schema/parsers/record.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/record.js +50 -0
- package/_vendor/zod-to-json-schema/parsers/record.js.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/record.mjs +46 -0
- package/_vendor/zod-to-json-schema/parsers/record.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/set.d.ts +14 -0
- package/_vendor/zod-to-json-schema/parsers/set.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/set.js +25 -0
- package/_vendor/zod-to-json-schema/parsers/set.js.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/set.mjs +21 -0
- package/_vendor/zod-to-json-schema/parsers/set.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/string.d.ts +70 -0
- package/_vendor/zod-to-json-schema/parsers/string.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/string.js +316 -0
- package/_vendor/zod-to-json-schema/parsers/string.js.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/string.mjs +312 -0
- package/_vendor/zod-to-json-schema/parsers/string.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/tuple.d.ts +14 -0
- package/_vendor/zod-to-json-schema/parsers/tuple.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/tuple.js +37 -0
- package/_vendor/zod-to-json-schema/parsers/tuple.js.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/tuple.mjs +33 -0
- package/_vendor/zod-to-json-schema/parsers/tuple.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/undefined.d.ts +5 -0
- package/_vendor/zod-to-json-schema/parsers/undefined.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/undefined.js +10 -0
- package/_vendor/zod-to-json-schema/parsers/undefined.js.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/undefined.mjs +6 -0
- package/_vendor/zod-to-json-schema/parsers/undefined.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/union.d.ts +24 -0
- package/_vendor/zod-to-json-schema/parsers/union.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/union.js +77 -0
- package/_vendor/zod-to-json-schema/parsers/union.js.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/union.mjs +73 -0
- package/_vendor/zod-to-json-schema/parsers/union.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/unknown.d.ts +3 -0
- package/_vendor/zod-to-json-schema/parsers/unknown.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/unknown.js +8 -0
- package/_vendor/zod-to-json-schema/parsers/unknown.js.map +1 -0
- package/_vendor/zod-to-json-schema/parsers/unknown.mjs +4 -0
- package/_vendor/zod-to-json-schema/parsers/unknown.mjs.map +1 -0
- package/_vendor/zod-to-json-schema/zodToJsonSchema.d.ts +11 -0
- package/_vendor/zod-to-json-schema/zodToJsonSchema.d.ts.map +1 -0
- package/_vendor/zod-to-json-schema/zodToJsonSchema.js +53 -0
- package/_vendor/zod-to-json-schema/zodToJsonSchema.js.map +1 -0
- package/_vendor/zod-to-json-schema/zodToJsonSchema.mjs +50 -0
- package/_vendor/zod-to-json-schema/zodToJsonSchema.mjs.map +1 -0
- package/error.d.ts +6 -0
- package/error.d.ts.map +1 -1
- package/error.js +13 -1
- package/error.js.map +1 -1
- package/error.mjs +10 -0
- package/error.mjs.map +1 -1
- package/helpers/zod.d.ts +57 -0
- package/helpers/zod.d.ts.map +1 -0
- package/helpers/zod.js +79 -0
- package/helpers/zod.js.map +1 -0
- package/helpers/zod.mjs +74 -0
- package/helpers/zod.mjs.map +1 -0
- package/index.d.mts +8 -0
- package/index.d.ts +8 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/index.mjs +1 -0
- package/index.mjs.map +1 -1
- package/lib/AbstractChatCompletionRunner.d.ts +15 -68
- package/lib/AbstractChatCompletionRunner.d.ts.map +1 -1
- package/lib/AbstractChatCompletionRunner.js +47 -200
- package/lib/AbstractChatCompletionRunner.js.map +1 -1
- package/lib/AbstractChatCompletionRunner.mjs +48 -201
- package/lib/AbstractChatCompletionRunner.mjs.map +1 -1
- package/lib/AssistantStream.d.ts +10 -6
- package/lib/AssistantStream.d.ts.map +1 -1
- package/lib/AssistantStream.js +18 -6
- package/lib/AssistantStream.js.map +1 -1
- package/lib/AssistantStream.mjs +18 -6
- package/lib/AssistantStream.mjs.map +1 -1
- package/lib/ChatCompletionRunner.d.ts +8 -6
- package/lib/ChatCompletionRunner.d.ts.map +1 -1
- package/lib/ChatCompletionRunner.js +4 -4
- package/lib/ChatCompletionRunner.js.map +1 -1
- package/lib/ChatCompletionRunner.mjs +4 -4
- package/lib/ChatCompletionRunner.mjs.map +1 -1
- package/lib/ChatCompletionStream.d.ts +71 -12
- package/lib/ChatCompletionStream.d.ts.map +1 -1
- package/lib/ChatCompletionStream.js +233 -42
- package/lib/ChatCompletionStream.js.map +1 -1
- package/lib/ChatCompletionStream.mjs +234 -43
- package/lib/ChatCompletionStream.mjs.map +1 -1
- package/lib/ChatCompletionStreamingRunner.d.ts +8 -6
- package/lib/ChatCompletionStreamingRunner.d.ts.map +1 -1
- package/lib/ChatCompletionStreamingRunner.js +9 -7
- package/lib/ChatCompletionStreamingRunner.js.map +1 -1
- package/lib/ChatCompletionStreamingRunner.mjs +9 -7
- package/lib/ChatCompletionStreamingRunner.mjs.map +1 -1
- package/lib/EventStream.d.ts +63 -0
- package/lib/EventStream.d.ts.map +1 -0
- package/lib/EventStream.js +200 -0
- package/lib/EventStream.js.map +1 -0
- package/lib/EventStream.mjs +196 -0
- package/lib/EventStream.mjs.map +1 -0
- package/lib/RunnableFunction.d.ts +4 -2
- package/lib/RunnableFunction.d.ts.map +1 -1
- package/lib/RunnableFunction.js.map +1 -1
- package/lib/RunnableFunction.mjs.map +1 -1
- package/lib/parser.d.ts +37 -0
- package/lib/parser.d.ts.map +1 -0
- package/lib/parser.js +133 -0
- package/lib/parser.js.map +1 -0
- package/lib/parser.mjs +121 -0
- package/lib/parser.mjs.map +1 -0
- package/package.json +10 -2
- package/resources/audio/audio.d.ts +4 -0
- package/resources/audio/audio.d.ts.map +1 -1
- package/resources/audio/audio.js.map +1 -1
- package/resources/audio/audio.mjs.map +1 -1
- package/resources/audio/index.d.ts +2 -2
- package/resources/audio/index.d.ts.map +1 -1
- package/resources/audio/index.js.map +1 -1
- package/resources/audio/index.mjs.map +1 -1
- package/resources/audio/speech.d.ts +3 -1
- package/resources/audio/speech.d.ts.map +1 -1
- package/resources/audio/speech.js.map +1 -1
- package/resources/audio/speech.mjs.map +1 -1
- package/resources/audio/transcriptions.d.ts +2 -1
- package/resources/audio/transcriptions.d.ts.map +1 -1
- package/resources/audio/transcriptions.js.map +1 -1
- package/resources/audio/transcriptions.mjs.map +1 -1
- package/resources/audio/translations.d.ts +2 -1
- package/resources/audio/translations.d.ts.map +1 -1
- package/resources/audio/translations.js.map +1 -1
- package/resources/audio/translations.mjs.map +1 -1
- package/resources/beta/assistants.d.ts +19 -3
- package/resources/beta/assistants.d.ts.map +1 -1
- package/resources/beta/assistants.js.map +1 -1
- package/resources/beta/assistants.mjs.map +1 -1
- package/resources/beta/beta.d.ts +0 -1
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/chat/completions.d.ts +25 -5
- package/resources/beta/chat/completions.d.ts.map +1 -1
- package/resources/beta/chat/completions.js +17 -5
- package/resources/beta/chat/completions.js.map +1 -1
- package/resources/beta/chat/completions.mjs +17 -5
- package/resources/beta/chat/completions.mjs.map +1 -1
- package/resources/beta/index.d.ts +1 -1
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/threads/index.d.ts +2 -2
- package/resources/beta/threads/index.d.ts.map +1 -1
- package/resources/beta/threads/index.js.map +1 -1
- package/resources/beta/threads/index.mjs.map +1 -1
- package/resources/beta/threads/messages.d.ts +28 -2
- package/resources/beta/threads/messages.d.ts.map +1 -1
- package/resources/beta/threads/messages.js.map +1 -1
- package/resources/beta/threads/messages.mjs.map +1 -1
- package/resources/beta/threads/runs/runs.d.ts +12 -1
- package/resources/beta/threads/runs/runs.d.ts.map +1 -1
- package/resources/beta/threads/runs/runs.js.map +1 -1
- package/resources/beta/threads/runs/runs.mjs.map +1 -1
- package/resources/beta/threads/threads.d.ts +22 -8
- package/resources/beta/threads/threads.d.ts.map +1 -1
- package/resources/beta/threads/threads.js.map +1 -1
- package/resources/beta/threads/threads.mjs.map +1 -1
- package/resources/beta/vector-stores/files.d.ts +1 -1
- package/resources/beta/vector-stores/files.d.ts.map +1 -1
- package/resources/chat/chat.d.ts +2 -1
- package/resources/chat/chat.d.ts.map +1 -1
- package/resources/chat/chat.js.map +1 -1
- package/resources/chat/chat.mjs.map +1 -1
- package/resources/chat/completions.d.ts +37 -26
- package/resources/chat/completions.d.ts.map +1 -1
- package/resources/chat/completions.js.map +1 -1
- package/resources/chat/completions.mjs.map +1 -1
- package/resources/chat/index.d.ts +1 -1
- package/resources/chat/index.d.ts.map +1 -1
- package/resources/chat/index.js.map +1 -1
- package/resources/chat/index.mjs.map +1 -1
- package/resources/fine-tuning/jobs/jobs.d.ts +3 -3
- package/resources/fine-tuning/jobs/jobs.d.ts.map +1 -1
- package/resources/images.d.ts +5 -3
- package/resources/images.d.ts.map +1 -1
- package/resources/images.js.map +1 -1
- package/resources/images.mjs.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/moderations.d.ts +3 -1
- package/resources/moderations.d.ts.map +1 -1
- package/resources/moderations.js.map +1 -1
- package/resources/moderations.mjs.map +1 -1
- package/resources/shared.d.ts +53 -0
- package/resources/shared.d.ts.map +1 -1
- package/src/_vendor/partial-json-parser/README.md +3 -0
- package/src/_vendor/partial-json-parser/parser.ts +264 -0
- package/src/_vendor/zod-to-json-schema/Options.ts +73 -0
- package/src/_vendor/zod-to-json-schema/Refs.ts +39 -0
- package/src/_vendor/zod-to-json-schema/errorMessages.ts +31 -0
- package/src/_vendor/zod-to-json-schema/index.ts +37 -0
- package/src/_vendor/zod-to-json-schema/parseDef.ts +231 -0
- package/src/_vendor/zod-to-json-schema/parsers/any.ts +5 -0
- package/src/_vendor/zod-to-json-schema/parsers/array.ts +36 -0
- package/src/_vendor/zod-to-json-schema/parsers/bigint.ts +60 -0
- package/src/_vendor/zod-to-json-schema/parsers/boolean.ts +9 -0
- package/src/_vendor/zod-to-json-schema/parsers/branded.ts +7 -0
- package/src/_vendor/zod-to-json-schema/parsers/catch.ts +7 -0
- package/src/_vendor/zod-to-json-schema/parsers/date.ts +83 -0
- package/src/_vendor/zod-to-json-schema/parsers/default.ts +10 -0
- package/src/_vendor/zod-to-json-schema/parsers/effects.ts +7 -0
- package/src/_vendor/zod-to-json-schema/parsers/enum.ts +13 -0
- package/src/_vendor/zod-to-json-schema/parsers/intersection.ts +64 -0
- package/src/_vendor/zod-to-json-schema/parsers/literal.ts +37 -0
- package/src/_vendor/zod-to-json-schema/parsers/map.ts +42 -0
- package/src/_vendor/zod-to-json-schema/parsers/nativeEnum.ts +27 -0
- package/src/_vendor/zod-to-json-schema/parsers/never.ts +9 -0
- package/src/_vendor/zod-to-json-schema/parsers/null.ts +16 -0
- package/src/_vendor/zod-to-json-schema/parsers/nullable.ts +49 -0
- package/src/_vendor/zod-to-json-schema/parsers/number.ts +62 -0
- package/src/_vendor/zod-to-json-schema/parsers/object.ts +63 -0
- package/src/_vendor/zod-to-json-schema/parsers/optional.ts +25 -0
- package/src/_vendor/zod-to-json-schema/parsers/pipeline.ts +28 -0
- package/src/_vendor/zod-to-json-schema/parsers/promise.ts +7 -0
- package/src/_vendor/zod-to-json-schema/parsers/readonly.ts +7 -0
- package/src/_vendor/zod-to-json-schema/parsers/record.ts +73 -0
- package/src/_vendor/zod-to-json-schema/parsers/set.ts +36 -0
- package/src/_vendor/zod-to-json-schema/parsers/string.ts +400 -0
- package/src/_vendor/zod-to-json-schema/parsers/tuple.ts +54 -0
- package/src/_vendor/zod-to-json-schema/parsers/undefined.ts +9 -0
- package/src/_vendor/zod-to-json-schema/parsers/union.ts +119 -0
- package/src/_vendor/zod-to-json-schema/parsers/unknown.ts +5 -0
- package/src/_vendor/zod-to-json-schema/zodToJsonSchema.ts +91 -0
- package/src/error.ts +12 -0
- package/src/helpers/zod.ts +102 -0
- package/src/index.ts +8 -0
- package/src/lib/AbstractChatCompletionRunner.ts +72 -258
- package/src/lib/AssistantStream.ts +47 -19
- package/src/lib/ChatCompletionRunner.ts +16 -12
- package/src/lib/ChatCompletionStream.ts +423 -47
- package/src/lib/ChatCompletionStreamingRunner.ts +19 -15
- package/src/lib/{AbstractAssistantStreamRunner.ts → EventStream.ts} +37 -138
- package/src/lib/RunnableFunction.ts +4 -2
- package/src/lib/parser.ts +235 -0
- package/src/resources/audio/audio.ts +5 -0
- package/src/resources/audio/index.ts +2 -2
- package/src/resources/audio/speech.ts +4 -1
- package/src/resources/audio/transcriptions.ts +2 -1
- package/src/resources/audio/translations.ts +2 -1
- package/src/resources/beta/assistants.ts +19 -26
- package/src/resources/beta/beta.ts +0 -1
- package/src/resources/beta/chat/completions.ts +77 -27
- package/src/resources/beta/index.ts +0 -1
- package/src/resources/beta/threads/index.ts +2 -1
- package/src/resources/beta/threads/messages.ts +41 -2
- package/src/resources/beta/threads/runs/runs.ts +12 -25
- package/src/resources/beta/threads/threads.ts +26 -32
- package/src/resources/beta/vector-stores/files.ts +1 -1
- package/src/resources/chat/chat.ts +2 -0
- package/src/resources/chat/completions.ts +47 -27
- package/src/resources/chat/index.ts +1 -0
- package/src/resources/fine-tuning/jobs/jobs.ts +3 -3
- package/src/resources/images.ts +6 -3
- package/src/resources/index.ts +9 -2
- package/src/resources/moderations.ts +4 -1
- package/src/resources/shared.ts +62 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/lib/AbstractAssistantStreamRunner.d.ts +0 -74
- package/lib/AbstractAssistantStreamRunner.d.ts.map +0 -1
- package/lib/AbstractAssistantStreamRunner.js +0 -246
- package/lib/AbstractAssistantStreamRunner.js.map +0 -1
- package/lib/AbstractAssistantStreamRunner.mjs +0 -242
- package/lib/AbstractAssistantStreamRunner.mjs.map +0 -1
- package/lib/ChatCompletionRunFunctions.test.d.ts +0 -2
- package/lib/ChatCompletionRunFunctions.test.d.ts.map +0 -1
- package/lib/ChatCompletionRunFunctions.test.js +0 -2177
- package/lib/ChatCompletionRunFunctions.test.js.map +0 -1
- package/lib/ChatCompletionRunFunctions.test.mjs +0 -2172
- package/lib/ChatCompletionRunFunctions.test.mjs.map +0 -1
- package/src/lib/ChatCompletionRunFunctions.test.ts +0 -2328
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"images.d.ts","sourceRoot":"","sources":["../src/resources/images.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,SAAS,MAAM,UAAU,CAAC;AAEtC,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,eAAe,CACb,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC;IAIlC;;OAEG;IACH,IAAI,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC;IAI3F;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC;CAGpG;AAED;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,cA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CAAC,2BAA2B,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC,CAAC;IACpG,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,IAAyB,EAAE,OAA6B;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF;AAxBD,wBAwBC;
|
|
1
|
+
{"version":3,"file":"images.js","sourceRoot":"","sources":["../src/resources/images.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,6CAA0C;AAC1C,iDAAgC;AAGhC,MAAa,MAAO,SAAQ,sBAAW;IACrC;;OAEG;IACH,eAAe,CACb,IAAgC,EAChC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,IAAI,CAAC,2BAA2B,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC,CAAC;IACzG,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,IAAqB,EAAE,OAA6B;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,2BAA2B,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC,CAAC;IACpG,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,IAAyB,EAAE,OAA6B;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF;AAxBD,wBAwBC;AAmLD,WAAiB,MAAM;AAOvB,CAAC,EAPgB,MAAM,GAAN,cAAM,KAAN,cAAM,QAOtB"}
|
package/resources/images.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"images.mjs","sourceRoot":"","sources":["../src/resources/images.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,IAAI;AAGhB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,eAAe,CACb,IAAgC,EAChC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,IAAI,CAAC,2BAA2B,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC,CAAC;IACzG,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,IAAqB,EAAE,OAA6B;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,2BAA2B,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC,CAAC;IACpG,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,IAAyB,EAAE,OAA6B;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"images.mjs","sourceRoot":"","sources":["../src/resources/images.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,IAAI;AAGhB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,eAAe,CACb,IAAgC,EAChC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,IAAI,CAAC,2BAA2B,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC,CAAC;IACzG,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,IAAqB,EAAE,OAA6B;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,2BAA2B,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC,CAAC;IACpG,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,IAAyB,EAAE,OAA6B;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF;AAmLD,WAAiB,MAAM;AAOvB,CAAC,EAPgB,MAAM,KAAN,MAAM,QAOtB"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export * from "./chat/index.js";
|
|
2
2
|
export * from "./shared.js";
|
|
3
|
-
export { Audio } from "./audio/audio.js";
|
|
3
|
+
export { AudioModel, Audio } from "./audio/audio.js";
|
|
4
4
|
export { Batch, BatchError, BatchRequestCounts, BatchCreateParams, BatchListParams, BatchesPage, Batches, } from "./batches.js";
|
|
5
5
|
export { Beta } from "./beta/beta.js";
|
|
6
6
|
export { Completion, CompletionChoice, CompletionUsage, CompletionCreateParams, CompletionCreateParamsNonStreaming, CompletionCreateParamsStreaming, Completions, } from "./completions.js";
|
|
7
7
|
export { CreateEmbeddingResponse, Embedding, EmbeddingCreateParams, Embeddings } from "./embeddings.js";
|
|
8
8
|
export { FileContent, FileDeleted, FileObject, FileCreateParams, FileListParams, FileObjectsPage, Files, } from "./files.js";
|
|
9
9
|
export { FineTuning } from "./fine-tuning/fine-tuning.js";
|
|
10
|
-
export { Image, ImagesResponse, ImageCreateVariationParams, ImageEditParams, ImageGenerateParams, Images, } from "./images.js";
|
|
10
|
+
export { Image, ImageModel, ImagesResponse, ImageCreateVariationParams, ImageEditParams, ImageGenerateParams, Images, } from "./images.js";
|
|
11
11
|
export { Model, ModelDeleted, ModelsPage, Models } from "./models.js";
|
|
12
|
-
export { Moderation, ModerationCreateResponse, ModerationCreateParams, Moderations } from "./moderations.js";
|
|
12
|
+
export { Moderation, ModerationModel, ModerationCreateResponse, ModerationCreateParams, Moderations, } from "./moderations.js";
|
|
13
13
|
export { Upload, UploadCreateParams, UploadCompleteParams, Uploads } from "./uploads/uploads.js";
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EACL,KAAK,EACL,UAAU,EACV,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,WAAW,EACX,OAAO,GACR,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,eAAe,EACf,sBAAsB,EACtB,kCAAkC,EAClC,+BAA+B,EAC/B,WAAW,GACZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,uBAAuB,EAAE,SAAS,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACrG,OAAO,EACL,WAAW,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,KAAK,GACN,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EACL,KAAK,EACL,UAAU,EACV,cAAc,EACd,0BAA0B,EAC1B,eAAe,EACf,mBAAmB,EACnB,MAAM,GACP,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACnE,OAAO,EACL,UAAU,EACV,eAAe,EACf,wBAAwB,EACxB,sBAAsB,EACtB,WAAW,GACZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC"}
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;AAEtF,kDAA6B;AAC7B,8CAAyB;AACzB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;AAEtF,kDAA6B;AAC7B,8CAAyB;AACzB,0CAAkD;AAA7B,8FAAA,KAAK,OAAA;AAC1B,wCAQmB;AAFjB,sGAAA,WAAW,OAAA;AACX,kGAAA,OAAO,OAAA;AAET,uCAAmC;AAA1B,4FAAA,IAAI,OAAA;AACb,gDAQuB;AADrB,0GAAA,WAAW,OAAA;AAEb,8CAAqG;AAAjC,wGAAA,UAAU,OAAA;AAC9E,oCAQiB;AAFf,wGAAA,eAAe,OAAA;AACf,8FAAA,KAAK,OAAA;AAEP,4DAAuD;AAA9C,yGAAA,UAAU,OAAA;AACnB,sCAQkB;AADhB,gGAAA,MAAM,OAAA;AAER,sCAAmE;AAArC,oGAAA,UAAU,OAAA;AAAE,gGAAA,MAAM,OAAA;AAChD,gDAMuB;AADrB,0GAAA,WAAW,OAAA;AAEb,gDAA8F;AAAnC,kGAAA,OAAO,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -10,6 +10,6 @@ export { FileObjectsPage, Files, } from "./files.mjs";
|
|
|
10
10
|
export { FineTuning } from "./fine-tuning/fine-tuning.mjs";
|
|
11
11
|
export { Images, } from "./images.mjs";
|
|
12
12
|
export { ModelsPage, Models } from "./models.mjs";
|
|
13
|
-
export { Moderations } from "./moderations.mjs";
|
|
13
|
+
export { Moderations, } from "./moderations.mjs";
|
|
14
14
|
export { Uploads } from "./uploads/uploads.mjs";
|
|
15
15
|
//# sourceMappingURL=index.mjs.map
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;;OAI/E,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;;OAI/E,EAAc,KAAK,EAAE;OACrB,EAML,WAAW,EACX,OAAO,GACR;OACM,EAAE,IAAI,EAAE;OACR,EAOL,WAAW,GACZ;OACM,EAA6D,UAAU,EAAE;OACzE,EAML,eAAe,EACf,KAAK,GACN;OACM,EAAE,UAAU,EAAE;OACd,EAOL,MAAM,GACP;OACM,EAAuB,UAAU,EAAE,MAAM,EAAE;OAC3C,EAKL,WAAW,GACZ;OACM,EAAoD,OAAO,EAAE"}
|
|
@@ -134,6 +134,7 @@ export declare namespace Moderation {
|
|
|
134
134
|
'violence/graphic': number;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
+
export type ModerationModel = 'text-moderation-latest' | 'text-moderation-stable';
|
|
137
138
|
/**
|
|
138
139
|
* Represents if a given text input is potentially harmful.
|
|
139
140
|
*/
|
|
@@ -166,10 +167,11 @@ export interface ModerationCreateParams {
|
|
|
166
167
|
* model. Accuracy of `text-moderation-stable` may be slightly lower than for
|
|
167
168
|
* `text-moderation-latest`.
|
|
168
169
|
*/
|
|
169
|
-
model?: (string & {}) |
|
|
170
|
+
model?: (string & {}) | ModerationModel;
|
|
170
171
|
}
|
|
171
172
|
export declare namespace Moderations {
|
|
172
173
|
export import Moderation = ModerationsAPI.Moderation;
|
|
174
|
+
export import ModerationModel = ModerationsAPI.ModerationModel;
|
|
173
175
|
export import ModerationCreateResponse = ModerationsAPI.ModerationCreateResponse;
|
|
174
176
|
export import ModerationCreateParams = ModerationsAPI.ModerationCreateParams;
|
|
175
177
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moderations.d.ts","sourceRoot":"","sources":["../src/resources/moderations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,cAAc,MAAM,eAAe,CAAC;AAEhD,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,wBAAwB,CAAC;CAG7C;AAED,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC;IAElC;;OAEG;IACH,eAAe,EAAE,UAAU,CAAC,cAAc,CAAC;IAE3C;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,yBAAiB,UAAU,CAAC;IAC1B;;OAEG;IACH,UAAiB,UAAU;QACzB;;;WAGG;QACH,UAAU,EAAE,OAAO,CAAC;QAEpB;;;WAGG;QACH,wBAAwB,EAAE,OAAO,CAAC;QAElC;;;;;WAKG;QACH,IAAI,EAAE,OAAO,CAAC;QAEd;;;;WAIG;QACH,kBAAkB,EAAE,OAAO,CAAC;QAE5B;;;WAGG;QACH,WAAW,EAAE,OAAO,CAAC;QAErB;;;;WAIG;QACH,wBAAwB,EAAE,OAAO,CAAC;QAElC;;;WAGG;QACH,kBAAkB,EAAE,OAAO,CAAC;QAE5B;;;;WAIG;QACH,MAAM,EAAE,OAAO,CAAC;QAEhB;;WAEG;QACH,eAAe,EAAE,OAAO,CAAC;QAEzB;;WAEG;QACH,QAAQ,EAAE,OAAO,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
1
|
+
{"version":3,"file":"moderations.js","sourceRoot":"","sources":["../src/resources/moderations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAI1C,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAA4B,EAC5B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;CACF;AAVD,kCAUC;AAmMD,WAAiB,WAAW;AAK5B,CAAC,EALgB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAK3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moderations.mjs","sourceRoot":"","sources":["../src/resources/moderations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAA4B,EAC5B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"moderations.mjs","sourceRoot":"","sources":["../src/resources/moderations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAA4B,EAC5B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;CACF;AAmMD,WAAiB,WAAW;AAK5B,CAAC,EALgB,WAAW,KAAX,WAAW,QAK3B"}
|
package/resources/shared.d.ts
CHANGED
|
@@ -25,6 +25,14 @@ export interface FunctionDefinition {
|
|
|
25
25
|
* Omitting `parameters` defines a function with an empty parameter list.
|
|
26
26
|
*/
|
|
27
27
|
parameters?: FunctionParameters;
|
|
28
|
+
/**
|
|
29
|
+
* Whether to enable strict schema adherence when generating the function call. If
|
|
30
|
+
* set to true, the model will follow the exact schema defined in the `parameters`
|
|
31
|
+
* field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn
|
|
32
|
+
* more about Structured Outputs in the
|
|
33
|
+
* [function calling guide](docs/guides/function-calling).
|
|
34
|
+
*/
|
|
35
|
+
strict?: boolean | null;
|
|
28
36
|
}
|
|
29
37
|
/**
|
|
30
38
|
* The parameters the functions accepts, described as a JSON Schema object. See the
|
|
@@ -36,4 +44,49 @@ export interface FunctionDefinition {
|
|
|
36
44
|
* Omitting `parameters` defines a function with an empty parameter list.
|
|
37
45
|
*/
|
|
38
46
|
export type FunctionParameters = Record<string, unknown>;
|
|
47
|
+
export interface ResponseFormatJSONObject {
|
|
48
|
+
/**
|
|
49
|
+
* The type of response format being defined: `json_object`
|
|
50
|
+
*/
|
|
51
|
+
type: 'json_object';
|
|
52
|
+
}
|
|
53
|
+
export interface ResponseFormatJSONSchema {
|
|
54
|
+
json_schema: ResponseFormatJSONSchema.JSONSchema;
|
|
55
|
+
/**
|
|
56
|
+
* The type of response format being defined: `json_schema`
|
|
57
|
+
*/
|
|
58
|
+
type: 'json_schema';
|
|
59
|
+
}
|
|
60
|
+
export declare namespace ResponseFormatJSONSchema {
|
|
61
|
+
interface JSONSchema {
|
|
62
|
+
/**
|
|
63
|
+
* The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores
|
|
64
|
+
* and dashes, with a maximum length of 64.
|
|
65
|
+
*/
|
|
66
|
+
name: string;
|
|
67
|
+
/**
|
|
68
|
+
* A description of what the response format is for, used by the model to determine
|
|
69
|
+
* how to respond in the format.
|
|
70
|
+
*/
|
|
71
|
+
description?: string;
|
|
72
|
+
/**
|
|
73
|
+
* The schema for the response format, described as a JSON Schema object.
|
|
74
|
+
*/
|
|
75
|
+
schema?: Record<string, unknown>;
|
|
76
|
+
/**
|
|
77
|
+
* Whether to enable strict schema adherence when generating the output. If set to
|
|
78
|
+
* true, the model will always follow the exact schema defined in the `schema`
|
|
79
|
+
* field. Only a subset of JSON Schema is supported when `strict` is `true`. To
|
|
80
|
+
* learn more, read the
|
|
81
|
+
* [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
|
|
82
|
+
*/
|
|
83
|
+
strict?: boolean | null;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
export interface ResponseFormatText {
|
|
87
|
+
/**
|
|
88
|
+
* The type of response format being defined: `text`
|
|
89
|
+
*/
|
|
90
|
+
type: 'text';
|
|
91
|
+
}
|
|
39
92
|
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpB,OAAO,EAAE,MAAM,CAAC;IAEhB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpB,OAAO,EAAE,MAAM,CAAC;IAEhB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAEhC;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CACzB;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEzD,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC;CACrB;AAED,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,wBAAwB,CAAC,UAAU,CAAC;IAEjD;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC;CACrB;AAED,yBAAiB,wBAAwB,CAAC;IACxC,UAAiB,UAAU;QACzB;;;WAGG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;;WAGG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAEjC;;;;;;WAMG;QACH,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;KACzB;CACF;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
type Token = {
|
|
2
|
+
type: string;
|
|
3
|
+
value: string;
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
const tokenize = (input: string): Token[] => {
|
|
7
|
+
let current = 0;
|
|
8
|
+
let tokens: Token[] = [];
|
|
9
|
+
|
|
10
|
+
while (current < input.length) {
|
|
11
|
+
let char = input[current];
|
|
12
|
+
|
|
13
|
+
if (char === '\\') {
|
|
14
|
+
current++;
|
|
15
|
+
continue;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
if (char === '{') {
|
|
19
|
+
tokens.push({
|
|
20
|
+
type: 'brace',
|
|
21
|
+
value: '{',
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
current++;
|
|
25
|
+
continue;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
if (char === '}') {
|
|
29
|
+
tokens.push({
|
|
30
|
+
type: 'brace',
|
|
31
|
+
value: '}',
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
current++;
|
|
35
|
+
continue;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (char === '[') {
|
|
39
|
+
tokens.push({
|
|
40
|
+
type: 'paren',
|
|
41
|
+
value: '[',
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
current++;
|
|
45
|
+
continue;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
if (char === ']') {
|
|
49
|
+
tokens.push({
|
|
50
|
+
type: 'paren',
|
|
51
|
+
value: ']',
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
current++;
|
|
55
|
+
continue;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
if (char === ':') {
|
|
59
|
+
tokens.push({
|
|
60
|
+
type: 'separator',
|
|
61
|
+
value: ':',
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
current++;
|
|
65
|
+
continue;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if (char === ',') {
|
|
69
|
+
tokens.push({
|
|
70
|
+
type: 'delimiter',
|
|
71
|
+
value: ',',
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
current++;
|
|
75
|
+
continue;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if (char === '"') {
|
|
79
|
+
let value = '';
|
|
80
|
+
let danglingQuote = false;
|
|
81
|
+
|
|
82
|
+
char = input[++current];
|
|
83
|
+
|
|
84
|
+
while (char !== '"') {
|
|
85
|
+
if (current === input.length) {
|
|
86
|
+
danglingQuote = true;
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (char === '\\') {
|
|
91
|
+
current++;
|
|
92
|
+
if (current === input.length) {
|
|
93
|
+
danglingQuote = true;
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
value += char + input[current];
|
|
97
|
+
char = input[++current];
|
|
98
|
+
} else {
|
|
99
|
+
value += char;
|
|
100
|
+
char = input[++current];
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
char = input[++current];
|
|
105
|
+
|
|
106
|
+
if (!danglingQuote) {
|
|
107
|
+
tokens.push({
|
|
108
|
+
type: 'string',
|
|
109
|
+
value,
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
continue;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
let WHITESPACE = /\s/;
|
|
116
|
+
if (char && WHITESPACE.test(char)) {
|
|
117
|
+
current++;
|
|
118
|
+
continue;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
let NUMBERS = /[0-9]/;
|
|
122
|
+
if ((char && NUMBERS.test(char)) || char === '-' || char === '.') {
|
|
123
|
+
let value = '';
|
|
124
|
+
|
|
125
|
+
if (char === '-') {
|
|
126
|
+
value += char;
|
|
127
|
+
char = input[++current];
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
while ((char && NUMBERS.test(char)) || char === '.') {
|
|
131
|
+
value += char;
|
|
132
|
+
char = input[++current];
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
tokens.push({
|
|
136
|
+
type: 'number',
|
|
137
|
+
value,
|
|
138
|
+
});
|
|
139
|
+
continue;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
let LETTERS = /[a-z]/i;
|
|
143
|
+
if (char && LETTERS.test(char)) {
|
|
144
|
+
let value = '';
|
|
145
|
+
|
|
146
|
+
while (char && LETTERS.test(char)) {
|
|
147
|
+
if (current === input.length) {
|
|
148
|
+
break;
|
|
149
|
+
}
|
|
150
|
+
value += char;
|
|
151
|
+
char = input[++current];
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
if (value == 'true' || value == 'false' || value === 'null') {
|
|
155
|
+
tokens.push({
|
|
156
|
+
type: 'name',
|
|
157
|
+
value,
|
|
158
|
+
});
|
|
159
|
+
} else {
|
|
160
|
+
// unknown token, e.g. `nul` which isn't quite `null`
|
|
161
|
+
current++;
|
|
162
|
+
continue;
|
|
163
|
+
}
|
|
164
|
+
continue;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
current++;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
return tokens;
|
|
171
|
+
},
|
|
172
|
+
strip = (tokens: Token[]): Token[] => {
|
|
173
|
+
if (tokens.length === 0) {
|
|
174
|
+
return tokens;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
let lastToken = tokens[tokens.length - 1]!;
|
|
178
|
+
|
|
179
|
+
switch (lastToken.type) {
|
|
180
|
+
case 'separator':
|
|
181
|
+
tokens = tokens.slice(0, tokens.length - 1);
|
|
182
|
+
return strip(tokens);
|
|
183
|
+
break;
|
|
184
|
+
case 'number':
|
|
185
|
+
let lastCharacterOfLastToken = lastToken.value[lastToken.value.length - 1];
|
|
186
|
+
if (lastCharacterOfLastToken === '.' || lastCharacterOfLastToken === '-') {
|
|
187
|
+
tokens = tokens.slice(0, tokens.length - 1);
|
|
188
|
+
return strip(tokens);
|
|
189
|
+
}
|
|
190
|
+
case 'string':
|
|
191
|
+
let tokenBeforeTheLastToken = tokens[tokens.length - 2];
|
|
192
|
+
if (tokenBeforeTheLastToken?.type === 'delimiter') {
|
|
193
|
+
tokens = tokens.slice(0, tokens.length - 1);
|
|
194
|
+
return strip(tokens);
|
|
195
|
+
} else if (tokenBeforeTheLastToken?.type === 'brace' && tokenBeforeTheLastToken.value === '{') {
|
|
196
|
+
tokens = tokens.slice(0, tokens.length - 1);
|
|
197
|
+
return strip(tokens);
|
|
198
|
+
}
|
|
199
|
+
break;
|
|
200
|
+
case 'delimiter':
|
|
201
|
+
tokens = tokens.slice(0, tokens.length - 1);
|
|
202
|
+
return strip(tokens);
|
|
203
|
+
break;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
return tokens;
|
|
207
|
+
},
|
|
208
|
+
unstrip = (tokens: Token[]): Token[] => {
|
|
209
|
+
let tail: string[] = [];
|
|
210
|
+
|
|
211
|
+
tokens.map((token) => {
|
|
212
|
+
if (token.type === 'brace') {
|
|
213
|
+
if (token.value === '{') {
|
|
214
|
+
tail.push('}');
|
|
215
|
+
} else {
|
|
216
|
+
tail.splice(tail.lastIndexOf('}'), 1);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
if (token.type === 'paren') {
|
|
220
|
+
if (token.value === '[') {
|
|
221
|
+
tail.push(']');
|
|
222
|
+
} else {
|
|
223
|
+
tail.splice(tail.lastIndexOf(']'), 1);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
|
|
228
|
+
if (tail.length > 0) {
|
|
229
|
+
tail.reverse().map((item) => {
|
|
230
|
+
if (item === '}') {
|
|
231
|
+
tokens.push({
|
|
232
|
+
type: 'brace',
|
|
233
|
+
value: '}',
|
|
234
|
+
});
|
|
235
|
+
} else if (item === ']') {
|
|
236
|
+
tokens.push({
|
|
237
|
+
type: 'paren',
|
|
238
|
+
value: ']',
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
return tokens;
|
|
245
|
+
},
|
|
246
|
+
generate = (tokens: Token[]): string => {
|
|
247
|
+
let output = '';
|
|
248
|
+
|
|
249
|
+
tokens.map((token) => {
|
|
250
|
+
switch (token.type) {
|
|
251
|
+
case 'string':
|
|
252
|
+
output += '"' + token.value + '"';
|
|
253
|
+
break;
|
|
254
|
+
default:
|
|
255
|
+
output += token.value;
|
|
256
|
+
break;
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
|
|
260
|
+
return output;
|
|
261
|
+
},
|
|
262
|
+
partialParse = (input: string): unknown => JSON.parse(generate(unstrip(strip(tokenize(input)))));
|
|
263
|
+
|
|
264
|
+
export { partialParse };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { ZodSchema, ZodTypeDef } from 'zod';
|
|
2
|
+
import { Refs, Seen } from './Refs';
|
|
3
|
+
import { JsonSchema7Type } from './parseDef';
|
|
4
|
+
|
|
5
|
+
export type Targets = 'jsonSchema7' | 'jsonSchema2019-09' | 'openApi3';
|
|
6
|
+
|
|
7
|
+
export type DateStrategy = 'format:date-time' | 'format:date' | 'string' | 'integer';
|
|
8
|
+
|
|
9
|
+
export const ignoreOverride = Symbol('Let zodToJsonSchema decide on which parser to use');
|
|
10
|
+
|
|
11
|
+
export type Options<Target extends Targets = 'jsonSchema7'> = {
|
|
12
|
+
name: string | undefined;
|
|
13
|
+
$refStrategy: 'root' | 'relative' | 'none' | 'seen';
|
|
14
|
+
basePath: string[];
|
|
15
|
+
effectStrategy: 'input' | 'any';
|
|
16
|
+
pipeStrategy: 'input' | 'output' | 'all';
|
|
17
|
+
dateStrategy: DateStrategy | DateStrategy[];
|
|
18
|
+
mapStrategy: 'entries' | 'record';
|
|
19
|
+
removeAdditionalStrategy: 'passthrough' | 'strict';
|
|
20
|
+
target: Target;
|
|
21
|
+
strictUnions: boolean;
|
|
22
|
+
definitionPath: string;
|
|
23
|
+
definitions: Record<string, ZodSchema>;
|
|
24
|
+
errorMessages: boolean;
|
|
25
|
+
markdownDescription: boolean;
|
|
26
|
+
patternStrategy: 'escape' | 'preserve';
|
|
27
|
+
applyRegexFlags: boolean;
|
|
28
|
+
emailStrategy: 'format:email' | 'format:idn-email' | 'pattern:zod';
|
|
29
|
+
base64Strategy: 'format:binary' | 'contentEncoding:base64' | 'pattern:zod';
|
|
30
|
+
nameStrategy: 'ref' | 'title';
|
|
31
|
+
override?: (
|
|
32
|
+
def: ZodTypeDef,
|
|
33
|
+
refs: Refs,
|
|
34
|
+
seen: Seen | undefined,
|
|
35
|
+
forceResolution?: boolean,
|
|
36
|
+
) => JsonSchema7Type | undefined | typeof ignoreOverride;
|
|
37
|
+
openaiStrictMode?: boolean;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export const defaultOptions: Options = {
|
|
41
|
+
name: undefined,
|
|
42
|
+
$refStrategy: 'root',
|
|
43
|
+
basePath: ['#'],
|
|
44
|
+
effectStrategy: 'input',
|
|
45
|
+
pipeStrategy: 'all',
|
|
46
|
+
dateStrategy: 'format:date-time',
|
|
47
|
+
mapStrategy: 'entries',
|
|
48
|
+
removeAdditionalStrategy: 'passthrough',
|
|
49
|
+
definitionPath: 'definitions',
|
|
50
|
+
target: 'jsonSchema7',
|
|
51
|
+
strictUnions: false,
|
|
52
|
+
definitions: {},
|
|
53
|
+
errorMessages: false,
|
|
54
|
+
markdownDescription: false,
|
|
55
|
+
patternStrategy: 'escape',
|
|
56
|
+
applyRegexFlags: false,
|
|
57
|
+
emailStrategy: 'format:email',
|
|
58
|
+
base64Strategy: 'contentEncoding:base64',
|
|
59
|
+
nameStrategy: 'ref',
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export const getDefaultOptions = <Target extends Targets>(
|
|
63
|
+
options: Partial<Options<Target>> | string | undefined,
|
|
64
|
+
) =>
|
|
65
|
+
(typeof options === 'string' ?
|
|
66
|
+
{
|
|
67
|
+
...defaultOptions,
|
|
68
|
+
name: options,
|
|
69
|
+
}
|
|
70
|
+
: {
|
|
71
|
+
...defaultOptions,
|
|
72
|
+
...options,
|
|
73
|
+
}) as Options<Target>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ZodTypeDef } from 'zod';
|
|
2
|
+
import { getDefaultOptions, Options, Targets } from './Options';
|
|
3
|
+
import { JsonSchema7Type } from './parseDef';
|
|
4
|
+
|
|
5
|
+
export type Refs = {
|
|
6
|
+
seen: Map<ZodTypeDef, Seen>;
|
|
7
|
+
currentPath: string[];
|
|
8
|
+
propertyPath: string[] | undefined;
|
|
9
|
+
} & Options<Targets>;
|
|
10
|
+
|
|
11
|
+
export type Seen = {
|
|
12
|
+
def: ZodTypeDef;
|
|
13
|
+
path: string[];
|
|
14
|
+
jsonSchema: JsonSchema7Type | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const getRefs = (options?: string | Partial<Options<Targets>>): Refs => {
|
|
18
|
+
const _options = getDefaultOptions(options);
|
|
19
|
+
const currentPath =
|
|
20
|
+
_options.name !== undefined ?
|
|
21
|
+
[..._options.basePath, _options.definitionPath, _options.name]
|
|
22
|
+
: _options.basePath;
|
|
23
|
+
return {
|
|
24
|
+
..._options,
|
|
25
|
+
currentPath: currentPath,
|
|
26
|
+
propertyPath: undefined,
|
|
27
|
+
seen: new Map(
|
|
28
|
+
Object.entries(_options.definitions).map(([name, def]) => [
|
|
29
|
+
def._def,
|
|
30
|
+
{
|
|
31
|
+
def: def._def,
|
|
32
|
+
path: [..._options.basePath, _options.definitionPath, name],
|
|
33
|
+
// Resolution of references will be forced even though seen, so it's ok that the schema is undefined here for now.
|
|
34
|
+
jsonSchema: undefined,
|
|
35
|
+
},
|
|
36
|
+
]),
|
|
37
|
+
),
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { JsonSchema7TypeUnion } from './parseDef';
|
|
2
|
+
import { Refs } from './Refs';
|
|
3
|
+
|
|
4
|
+
export type ErrorMessages<T extends JsonSchema7TypeUnion, OmitProperties extends string = ''> = Partial<
|
|
5
|
+
Omit<{ [key in keyof T]: string }, OmitProperties | 'type' | 'errorMessages'>
|
|
6
|
+
>;
|
|
7
|
+
|
|
8
|
+
export function addErrorMessage<T extends { errorMessage?: ErrorMessages<any> }>(
|
|
9
|
+
res: T,
|
|
10
|
+
key: keyof T,
|
|
11
|
+
errorMessage: string | undefined,
|
|
12
|
+
refs: Refs,
|
|
13
|
+
) {
|
|
14
|
+
if (!refs?.errorMessages) return;
|
|
15
|
+
if (errorMessage) {
|
|
16
|
+
res.errorMessage = {
|
|
17
|
+
...res.errorMessage,
|
|
18
|
+
[key]: errorMessage,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function setResponseValueAndErrors<
|
|
24
|
+
Json7Type extends JsonSchema7TypeUnion & {
|
|
25
|
+
errorMessage?: ErrorMessages<Json7Type>;
|
|
26
|
+
},
|
|
27
|
+
Key extends keyof Omit<Json7Type, 'errorMessage'>,
|
|
28
|
+
>(res: Json7Type, key: Key, value: Json7Type[Key], errorMessage: string | undefined, refs: Refs) {
|
|
29
|
+
res[key] = value;
|
|
30
|
+
addErrorMessage(res, key, errorMessage, refs);
|
|
31
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export * from './Options';
|
|
2
|
+
export * from './Refs';
|
|
3
|
+
export * from './errorMessages';
|
|
4
|
+
export * from './parseDef';
|
|
5
|
+
export * from './parsers/any';
|
|
6
|
+
export * from './parsers/array';
|
|
7
|
+
export * from './parsers/bigint';
|
|
8
|
+
export * from './parsers/boolean';
|
|
9
|
+
export * from './parsers/branded';
|
|
10
|
+
export * from './parsers/catch';
|
|
11
|
+
export * from './parsers/date';
|
|
12
|
+
export * from './parsers/default';
|
|
13
|
+
export * from './parsers/effects';
|
|
14
|
+
export * from './parsers/enum';
|
|
15
|
+
export * from './parsers/intersection';
|
|
16
|
+
export * from './parsers/literal';
|
|
17
|
+
export * from './parsers/map';
|
|
18
|
+
export * from './parsers/nativeEnum';
|
|
19
|
+
export * from './parsers/never';
|
|
20
|
+
export * from './parsers/null';
|
|
21
|
+
export * from './parsers/nullable';
|
|
22
|
+
export * from './parsers/number';
|
|
23
|
+
export * from './parsers/object';
|
|
24
|
+
export * from './parsers/optional';
|
|
25
|
+
export * from './parsers/pipeline';
|
|
26
|
+
export * from './parsers/promise';
|
|
27
|
+
export * from './parsers/readonly';
|
|
28
|
+
export * from './parsers/record';
|
|
29
|
+
export * from './parsers/set';
|
|
30
|
+
export * from './parsers/string';
|
|
31
|
+
export * from './parsers/tuple';
|
|
32
|
+
export * from './parsers/undefined';
|
|
33
|
+
export * from './parsers/union';
|
|
34
|
+
export * from './parsers/unknown';
|
|
35
|
+
export * from './zodToJsonSchema';
|
|
36
|
+
import { zodToJsonSchema } from './zodToJsonSchema';
|
|
37
|
+
export default zodToJsonSchema;
|