tekimax-ts 0.1.6 → 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +160 -97
- package/dist/adapter-BtbeHotF.d.cts +81 -0
- package/dist/adapter-BtbeHotF.d.ts +81 -0
- package/dist/adapter-CMu9Gvvm.d.cts +81 -0
- package/dist/adapter-CMu9Gvvm.d.ts +81 -0
- package/dist/adapter-DeUJcFAn.d.cts +43 -0
- package/dist/adapter-DeUJcFAn.d.ts +43 -0
- package/dist/adapter-K9NFtBg8.d.cts +81 -0
- package/dist/adapter-K9NFtBg8.d.ts +81 -0
- package/dist/adapter-TuDzMu0Y.d.cts +43 -0
- package/dist/adapter-TuDzMu0Y.d.ts +43 -0
- package/dist/adapter-YcdKK3By.d.cts +63 -0
- package/dist/adapter-YcdKK3By.d.ts +63 -0
- package/dist/adapter-zXqUGXCx.d.cts +81 -0
- package/dist/adapter-zXqUGXCx.d.ts +81 -0
- package/dist/chunk-MLKGABMK.js +9 -0
- package/dist/gen/index.js +1572 -378
- package/dist/gen/types.js +290 -201
- package/dist/gen/zod/allowedToolChoiceSchema.js +17 -13
- package/dist/gen/zod/allowedToolsParamSchema.js +28 -13
- package/dist/gen/zod/annotationSchema.js +16 -11
- package/dist/gen/zod/assistantMessageItemParamSchema.js +52 -19
- package/dist/gen/zod/createResponseBodySchema.js +142 -44
- package/dist/gen/zod/createresponseSchema.js +23 -12
- package/dist/gen/zod/detailEnumSchema.js +8 -8
- package/dist/gen/zod/developerMessageItemParamSchema.js +35 -16
- package/dist/gen/zod/emptyModelParamSchema.js +8 -8
- package/dist/gen/zod/errorPayloadSchema.js +27 -14
- package/dist/gen/zod/errorSchema.js +17 -11
- package/dist/gen/zod/errorStreamingEventSchema.js +23 -13
- package/dist/gen/zod/functionCallItemParamSchema.js +38 -15
- package/dist/gen/zod/functionCallItemStatusSchema.js +12 -8
- package/dist/gen/zod/functionCallOutputItemParamSchema.js +90 -27
- package/dist/gen/zod/functionCallOutputSchema.js +67 -24
- package/dist/gen/zod/functionCallOutputStatusEnumSchema.js +12 -8
- package/dist/gen/zod/functionCallSchema.js +29 -16
- package/dist/gen/zod/functionCallStatusSchema.js +12 -8
- package/dist/gen/zod/functionToolChoiceSchema.js +10 -10
- package/dist/gen/zod/functionToolParamSchema.js +25 -14
- package/dist/gen/zod/functionToolSchema.js +24 -14
- package/dist/gen/zod/imageDetailSchema.js +8 -8
- package/dist/gen/zod/includeEnumSchema.js +11 -8
- package/dist/gen/zod/incompleteDetailsSchema.js +14 -10
- package/dist/gen/zod/index.js +871 -213
- package/dist/gen/zod/inputFileContentParamSchema.js +24 -13
- package/dist/gen/zod/inputFileContentSchema.js +23 -12
- package/dist/gen/zod/inputImageContentParamAutoParamSchema.js +29 -13
- package/dist/gen/zod/inputImageContentSchema.js +22 -13
- package/dist/gen/zod/inputTextContentParamSchema.js +19 -11
- package/dist/gen/zod/inputTextContentSchema.js +16 -11
- package/dist/gen/zod/inputTokensDetailsSchema.js +15 -10
- package/dist/gen/zod/inputVideoContentSchema.js +17 -11
- package/dist/gen/zod/itemFieldSchema.js +45 -20
- package/dist/gen/zod/itemParamSchema.js +55 -23
- package/dist/gen/zod/itemReferenceParamSchema.js +15 -11
- package/dist/gen/zod/jsonObjectResponseFormatSchema.js +9 -9
- package/dist/gen/zod/jsonSchemaResponseFormatParamSchema.js +38 -13
- package/dist/gen/zod/jsonSchemaResponseFormatSchema.js +13 -13
- package/dist/gen/zod/logProbSchema.js +20 -14
- package/dist/gen/zod/messageRoleSchema.js +13 -8
- package/dist/gen/zod/messageSchema.js +109 -43
- package/dist/gen/zod/messageStatusSchema.js +12 -8
- package/dist/gen/zod/metadataParamSchema.js +13 -8
- package/dist/gen/zod/outputTextContentParamSchema.js +21 -12
- package/dist/gen/zod/outputTextContentSchema.js +30 -15
- package/dist/gen/zod/outputTokensDetailsSchema.js +17 -10
- package/dist/gen/zod/reasoningBodySchema.js +173 -54
- package/dist/gen/zod/reasoningEffortEnumSchema.js +14 -8
- package/dist/gen/zod/reasoningItemParamSchema.js +26 -14
- package/dist/gen/zod/reasoningParamSchema.js +33 -13
- package/dist/gen/zod/reasoningSchema.js +27 -13
- package/dist/gen/zod/reasoningSummaryContentParamSchema.js +13 -10
- package/dist/gen/zod/reasoningSummaryEnumSchema.js +12 -8
- package/dist/gen/zod/reasoningTextContentSchema.js +16 -11
- package/dist/gen/zod/refusalContentParamSchema.js +13 -10
- package/dist/gen/zod/refusalContentSchema.js +18 -11
- package/dist/gen/zod/responseCompletedStreamingEventSchema.js +23 -13
- package/dist/gen/zod/responseContentPartAddedStreamingEventSchema.js +98 -39
- package/dist/gen/zod/responseContentPartDoneStreamingEventSchema.js +98 -39
- package/dist/gen/zod/responseCreatedStreamingEventSchema.js +23 -13
- package/dist/gen/zod/responseFailedStreamingEventSchema.js +23 -13
- package/dist/gen/zod/responseFunctionCallArgumentsDeltaStreamingEventSchema.js +38 -15
- package/dist/gen/zod/responseFunctionCallArgumentsDoneStreamingEventSchema.js +33 -14
- package/dist/gen/zod/responseInProgressStreamingEventSchema.js +23 -13
- package/dist/gen/zod/responseIncompleteStreamingEventSchema.js +23 -13
- package/dist/gen/zod/responseOutputItemAddedStreamingEventSchema.js +32 -14
- package/dist/gen/zod/responseOutputItemDoneStreamingEventSchema.js +30 -14
- package/dist/gen/zod/responseOutputTextAnnotationAddedStreamingEventSchema.js +43 -17
- package/dist/gen/zod/responseOutputTextDeltaStreamingEventSchema.js +48 -18
- package/dist/gen/zod/responseOutputTextDoneStreamingEventSchema.js +39 -17
- package/dist/gen/zod/responseQueuedStreamingEventSchema.js +23 -13
- package/dist/gen/zod/responseReasoningDeltaStreamingEventSchema.js +40 -16
- package/dist/gen/zod/responseReasoningDoneStreamingEventSchema.js +31 -15
- package/dist/gen/zod/responseReasoningSummaryDeltaStreamingEventSchema.js +42 -16
- package/dist/gen/zod/responseReasoningSummaryDoneStreamingEventSchema.js +33 -15
- package/dist/gen/zod/responseReasoningSummaryPartAddedStreamingEventSchema.js +102 -39
- package/dist/gen/zod/responseReasoningSummaryPartDoneStreamingEventSchema.js +102 -39
- package/dist/gen/zod/responseRefusalDeltaStreamingEventSchema.js +33 -15
- package/dist/gen/zod/responseRefusalDoneStreamingEventSchema.js +31 -15
- package/dist/gen/zod/responseResourceSchema.js +146 -51
- package/dist/gen/zod/responsesToolParamSchema.js +15 -11
- package/dist/gen/zod/serviceTierEnumSchema.js +13 -8
- package/dist/gen/zod/specificFunctionParamSchema.js +13 -10
- package/dist/gen/zod/specificToolChoiceParamSchema.js +11 -9
- package/dist/gen/zod/streamOptionsParamSchema.js +18 -10
- package/dist/gen/zod/summaryTextContentSchema.js +18 -11
- package/dist/gen/zod/systemMessageItemParamSchema.js +35 -16
- package/dist/gen/zod/textContentSchema.js +13 -11
- package/dist/gen/zod/textFieldSchema.js +24 -14
- package/dist/gen/zod/textFormatParamSchema.js +16 -10
- package/dist/gen/zod/textParamSchema.js +23 -12
- package/dist/gen/zod/textResponseFormatSchema.js +9 -9
- package/dist/gen/zod/toolChoiceParamSchema.js +21 -11
- package/dist/gen/zod/toolChoiceValueEnumSchema.js +8 -8
- package/dist/gen/zod/toolSchema.js +16 -11
- package/dist/gen/zod/topLogProbSchema.js +14 -12
- package/dist/gen/zod/truncationEnumSchema.js +8 -8
- package/dist/gen/zod/urlCitationBodySchema.js +29 -14
- package/dist/gen/zod/urlCitationParamSchema.js +28 -13
- package/dist/gen/zod/usageSchema.js +35 -16
- package/dist/gen/zod/userMessageItemParamSchema.js +64 -22
- package/dist/gen/zod/verbosityEnumSchema.js +8 -8
- package/dist/index.cjs +740 -0
- package/dist/index.d.cts +2742 -0
- package/dist/index.d.mts +51000 -31111
- package/dist/index.d.ts +962 -29932
- package/dist/index.js +347 -1431
- package/dist/index.mjs +2441 -1010
- package/dist/react/index.cjs +119 -0
- package/dist/react/index.d.cts +21 -0
- package/dist/react/index.d.ts +21 -0
- package/dist/react/index.js +94 -0
- package/package.json +40 -8
- package/.dockerignore +0 -5
- package/Dockerfile +0 -25
- package/kubb.config.js +0 -30
- package/kubb.config.ts +0 -35
- package/public/logos/tekimax-logo-ScreenRGB-2.png +0 -0
- package/spec/openapi.json +0 -3876
- package/src/client.ts +0 -129
- package/src/gen/.kubb/config.ts +0 -43
- package/src/gen/client/createresponse.ts +0 -27
- package/src/gen/client/index.ts +0 -1
- package/src/gen/index.ts +0 -187
- package/src/gen/schemas/allowedToolChoice.json +0 -1
- package/src/gen/schemas/allowedToolsParam.json +0 -1
- package/src/gen/schemas/annotation.json +0 -1
- package/src/gen/schemas/assistantMessageItemParam.json +0 -1
- package/src/gen/schemas/createResponseBody.json +0 -1
- package/src/gen/schemas/detailEnum.json +0 -1
- package/src/gen/schemas/developerMessageItemParam.json +0 -1
- package/src/gen/schemas/emptyModelParam.json +0 -1
- package/src/gen/schemas/error.json +0 -1
- package/src/gen/schemas/errorPayload.json +0 -1
- package/src/gen/schemas/errorStreamingEvent.json +0 -1
- package/src/gen/schemas/functionCall.json +0 -1
- package/src/gen/schemas/functionCallItemParam.json +0 -1
- package/src/gen/schemas/functionCallItemStatus.json +0 -1
- package/src/gen/schemas/functionCallOutput.json +0 -1
- package/src/gen/schemas/functionCallOutputItemParam.json +0 -1
- package/src/gen/schemas/functionCallOutputStatusEnum.json +0 -1
- package/src/gen/schemas/functionCallStatus.json +0 -1
- package/src/gen/schemas/functionTool.json +0 -1
- package/src/gen/schemas/functionToolChoice.json +0 -1
- package/src/gen/schemas/functionToolParam.json +0 -1
- package/src/gen/schemas/imageDetail.json +0 -1
- package/src/gen/schemas/includeEnum.json +0 -1
- package/src/gen/schemas/incompleteDetails.json +0 -1
- package/src/gen/schemas/inputFileContent.json +0 -1
- package/src/gen/schemas/inputFileContentParam.json +0 -1
- package/src/gen/schemas/inputImageContent.json +0 -1
- package/src/gen/schemas/inputImageContentParamAutoParam.json +0 -1
- package/src/gen/schemas/inputTextContent.json +0 -1
- package/src/gen/schemas/inputTextContentParam.json +0 -1
- package/src/gen/schemas/inputTokensDetails.json +0 -1
- package/src/gen/schemas/inputVideoContent.json +0 -1
- package/src/gen/schemas/itemField.json +0 -1
- package/src/gen/schemas/itemParam.json +0 -1
- package/src/gen/schemas/itemReferenceParam.json +0 -1
- package/src/gen/schemas/jsonObjectResponseFormat.json +0 -1
- package/src/gen/schemas/jsonSchemaResponseFormat.json +0 -1
- package/src/gen/schemas/jsonSchemaResponseFormatParam.json +0 -1
- package/src/gen/schemas/logProb.json +0 -1
- package/src/gen/schemas/message.json +0 -1
- package/src/gen/schemas/messageRole.json +0 -1
- package/src/gen/schemas/messageStatus.json +0 -1
- package/src/gen/schemas/metadataParam.json +0 -1
- package/src/gen/schemas/outputTextContent.json +0 -1
- package/src/gen/schemas/outputTextContentParam.json +0 -1
- package/src/gen/schemas/outputTokensDetails.json +0 -1
- package/src/gen/schemas/reasoning.json +0 -1
- package/src/gen/schemas/reasoningBody.json +0 -1
- package/src/gen/schemas/reasoningEffortEnum.json +0 -1
- package/src/gen/schemas/reasoningItemParam.json +0 -1
- package/src/gen/schemas/reasoningParam.json +0 -1
- package/src/gen/schemas/reasoningSummaryContentParam.json +0 -1
- package/src/gen/schemas/reasoningSummaryEnum.json +0 -1
- package/src/gen/schemas/reasoningTextContent.json +0 -1
- package/src/gen/schemas/refusalContent.json +0 -1
- package/src/gen/schemas/refusalContentParam.json +0 -1
- package/src/gen/schemas/responseCompletedStreamingEvent.json +0 -1
- package/src/gen/schemas/responseContentPartAddedStreamingEvent.json +0 -1
- package/src/gen/schemas/responseContentPartDoneStreamingEvent.json +0 -1
- package/src/gen/schemas/responseCreatedStreamingEvent.json +0 -1
- package/src/gen/schemas/responseFailedStreamingEvent.json +0 -1
- package/src/gen/schemas/responseFunctionCallArgumentsDeltaStreamingEvent.json +0 -1
- package/src/gen/schemas/responseFunctionCallArgumentsDoneStreamingEvent.json +0 -1
- package/src/gen/schemas/responseInProgressStreamingEvent.json +0 -1
- package/src/gen/schemas/responseIncompleteStreamingEvent.json +0 -1
- package/src/gen/schemas/responseOutputItemAddedStreamingEvent.json +0 -1
- package/src/gen/schemas/responseOutputItemDoneStreamingEvent.json +0 -1
- package/src/gen/schemas/responseOutputTextAnnotationAddedStreamingEvent.json +0 -1
- package/src/gen/schemas/responseOutputTextDeltaStreamingEvent.json +0 -1
- package/src/gen/schemas/responseOutputTextDoneStreamingEvent.json +0 -1
- package/src/gen/schemas/responseQueuedStreamingEvent.json +0 -1
- package/src/gen/schemas/responseReasoningDeltaStreamingEvent.json +0 -1
- package/src/gen/schemas/responseReasoningDoneStreamingEvent.json +0 -1
- package/src/gen/schemas/responseReasoningSummaryDeltaStreamingEvent.json +0 -1
- package/src/gen/schemas/responseReasoningSummaryDoneStreamingEvent.json +0 -1
- package/src/gen/schemas/responseReasoningSummaryPartAddedStreamingEvent.json +0 -1
- package/src/gen/schemas/responseReasoningSummaryPartDoneStreamingEvent.json +0 -1
- package/src/gen/schemas/responseRefusalDeltaStreamingEvent.json +0 -1
- package/src/gen/schemas/responseRefusalDoneStreamingEvent.json +0 -1
- package/src/gen/schemas/responseResource.json +0 -1
- package/src/gen/schemas/responsesToolParam.json +0 -1
- package/src/gen/schemas/serviceTierEnum.json +0 -1
- package/src/gen/schemas/specificFunctionParam.json +0 -1
- package/src/gen/schemas/specificToolChoiceParam.json +0 -1
- package/src/gen/schemas/streamOptionsParam.json +0 -1
- package/src/gen/schemas/summaryTextContent.json +0 -1
- package/src/gen/schemas/systemMessageItemParam.json +0 -1
- package/src/gen/schemas/textContent.json +0 -1
- package/src/gen/schemas/textField.json +0 -1
- package/src/gen/schemas/textFormatParam.json +0 -1
- package/src/gen/schemas/textParam.json +0 -1
- package/src/gen/schemas/textResponseFormat.json +0 -1
- package/src/gen/schemas/tool.json +0 -1
- package/src/gen/schemas/toolChoiceParam.json +0 -1
- package/src/gen/schemas/toolChoiceValueEnum.json +0 -1
- package/src/gen/schemas/topLogProb.json +0 -1
- package/src/gen/schemas/truncationEnum.json +0 -1
- package/src/gen/schemas/urlCitationBody.json +0 -1
- package/src/gen/schemas/urlCitationParam.json +0 -1
- package/src/gen/schemas/usage.json +0 -1
- package/src/gen/schemas/userMessageItemParam.json +0 -1
- package/src/gen/schemas/verbosityEnum.json +0 -1
- package/src/gen/types.ts +0 -2613
- package/src/gen/zod/allowedToolChoiceSchema.ts +0 -14
- package/src/gen/zod/allowedToolsParamSchema.ts +0 -14
- package/src/gen/zod/annotationSchema.ts +0 -14
- package/src/gen/zod/assistantMessageItemParamSchema.ts +0 -20
- package/src/gen/zod/createResponseBodySchema.ts +0 -45
- package/src/gen/zod/createresponseSchema.ts +0 -17
- package/src/gen/zod/detailEnumSchema.ts +0 -8
- package/src/gen/zod/developerMessageItemParamSchema.ts +0 -17
- package/src/gen/zod/emptyModelParamSchema.ts +0 -10
- package/src/gen/zod/errorPayloadSchema.ts +0 -19
- package/src/gen/zod/errorSchema.ts +0 -14
- package/src/gen/zod/errorStreamingEventSchema.ts +0 -16
- package/src/gen/zod/functionCallItemParamSchema.ts +0 -16
- package/src/gen/zod/functionCallItemStatusSchema.ts +0 -8
- package/src/gen/zod/functionCallOutputItemParamSchema.ts +0 -30
- package/src/gen/zod/functionCallOutputSchema.ts +0 -27
- package/src/gen/zod/functionCallOutputStatusEnumSchema.ts +0 -11
- package/src/gen/zod/functionCallSchema.ts +0 -19
- package/src/gen/zod/functionCallStatusSchema.ts +0 -8
- package/src/gen/zod/functionToolChoiceSchema.ts +0 -11
- package/src/gen/zod/functionToolParamSchema.ts +0 -15
- package/src/gen/zod/functionToolSchema.ts +0 -19
- package/src/gen/zod/imageDetailSchema.ts +0 -8
- package/src/gen/zod/includeEnumSchema.ts +0 -8
- package/src/gen/zod/incompleteDetailsSchema.ts +0 -13
- package/src/gen/zod/index.ts +0 -103
- package/src/gen/zod/inputFileContentParamSchema.ts +0 -16
- package/src/gen/zod/inputFileContentSchema.ts +0 -15
- package/src/gen/zod/inputImageContentParamAutoParamSchema.ts +0 -16
- package/src/gen/zod/inputImageContentSchema.ts +0 -16
- package/src/gen/zod/inputTextContentParamSchema.ts +0 -14
- package/src/gen/zod/inputTextContentSchema.ts +0 -14
- package/src/gen/zod/inputTokensDetailsSchema.ts +0 -13
- package/src/gen/zod/inputVideoContentSchema.ts +0 -14
- package/src/gen/zod/itemFieldSchema.ts +0 -23
- package/src/gen/zod/itemParamSchema.ts +0 -23
- package/src/gen/zod/itemReferenceParamSchema.ts +0 -14
- package/src/gen/zod/jsonObjectResponseFormatSchema.ts +0 -10
- package/src/gen/zod/jsonSchemaResponseFormatParamSchema.ts +0 -16
- package/src/gen/zod/jsonSchemaResponseFormatSchema.ts +0 -14
- package/src/gen/zod/logProbSchema.ts +0 -17
- package/src/gen/zod/messageRoleSchema.ts +0 -8
- package/src/gen/zod/messageSchema.ts +0 -46
- package/src/gen/zod/messageStatusSchema.ts +0 -8
- package/src/gen/zod/metadataParamSchema.ts +0 -13
- package/src/gen/zod/outputTextContentParamSchema.ts +0 -13
- package/src/gen/zod/outputTextContentSchema.ts +0 -18
- package/src/gen/zod/outputTokensDetailsSchema.ts +0 -13
- package/src/gen/zod/reasoningBodySchema.ts +0 -57
- package/src/gen/zod/reasoningEffortEnumSchema.ts +0 -8
- package/src/gen/zod/reasoningItemParamSchema.ts +0 -15
- package/src/gen/zod/reasoningParamSchema.ts +0 -16
- package/src/gen/zod/reasoningSchema.ts +0 -16
- package/src/gen/zod/reasoningSummaryContentParamSchema.ts +0 -11
- package/src/gen/zod/reasoningSummaryEnumSchema.ts +0 -8
- package/src/gen/zod/reasoningTextContentSchema.ts +0 -14
- package/src/gen/zod/refusalContentParamSchema.ts +0 -11
- package/src/gen/zod/refusalContentSchema.ts +0 -14
- package/src/gen/zod/responseCompletedStreamingEventSchema.ts +0 -16
- package/src/gen/zod/responseContentPartAddedStreamingEventSchema.ts +0 -42
- package/src/gen/zod/responseContentPartDoneStreamingEventSchema.ts +0 -42
- package/src/gen/zod/responseCreatedStreamingEventSchema.ts +0 -16
- package/src/gen/zod/responseFailedStreamingEventSchema.ts +0 -16
- package/src/gen/zod/responseFunctionCallArgumentsDeltaStreamingEventSchema.ts +0 -18
- package/src/gen/zod/responseFunctionCallArgumentsDoneStreamingEventSchema.ts +0 -17
- package/src/gen/zod/responseInProgressStreamingEventSchema.ts +0 -16
- package/src/gen/zod/responseIncompleteStreamingEventSchema.ts +0 -16
- package/src/gen/zod/responseOutputItemAddedStreamingEventSchema.ts +0 -17
- package/src/gen/zod/responseOutputItemDoneStreamingEventSchema.ts +0 -17
- package/src/gen/zod/responseOutputTextAnnotationAddedStreamingEventSchema.ts +0 -20
- package/src/gen/zod/responseOutputTextDeltaStreamingEventSchema.ts +0 -21
- package/src/gen/zod/responseOutputTextDoneStreamingEventSchema.ts +0 -20
- package/src/gen/zod/responseQueuedStreamingEventSchema.ts +0 -16
- package/src/gen/zod/responseReasoningDeltaStreamingEventSchema.ts +0 -19
- package/src/gen/zod/responseReasoningDoneStreamingEventSchema.ts +0 -18
- package/src/gen/zod/responseReasoningSummaryDeltaStreamingEventSchema.ts +0 -19
- package/src/gen/zod/responseReasoningSummaryDoneStreamingEventSchema.ts +0 -18
- package/src/gen/zod/responseReasoningSummaryPartAddedStreamingEventSchema.ts +0 -42
- package/src/gen/zod/responseReasoningSummaryPartDoneStreamingEventSchema.ts +0 -42
- package/src/gen/zod/responseRefusalDeltaStreamingEventSchema.ts +0 -18
- package/src/gen/zod/responseRefusalDoneStreamingEventSchema.ts +0 -18
- package/src/gen/zod/responseResourceSchema.ts +0 -54
- package/src/gen/zod/responsesToolParamSchema.ts +0 -11
- package/src/gen/zod/serviceTierEnumSchema.ts +0 -8
- package/src/gen/zod/specificFunctionParamSchema.ts +0 -11
- package/src/gen/zod/specificToolChoiceParamSchema.ts +0 -9
- package/src/gen/zod/streamOptionsParamSchema.ts +0 -13
- package/src/gen/zod/summaryTextContentSchema.ts +0 -14
- package/src/gen/zod/systemMessageItemParamSchema.ts +0 -17
- package/src/gen/zod/textContentSchema.ts +0 -14
- package/src/gen/zod/textFieldSchema.ts +0 -15
- package/src/gen/zod/textFormatParamSchema.ts +0 -10
- package/src/gen/zod/textParamSchema.ts +0 -13
- package/src/gen/zod/textResponseFormatSchema.ts +0 -10
- package/src/gen/zod/toolChoiceParamSchema.ts +0 -14
- package/src/gen/zod/toolChoiceValueEnumSchema.ts +0 -8
- package/src/gen/zod/toolSchema.ts +0 -14
- package/src/gen/zod/topLogProbSchema.ts +0 -15
- package/src/gen/zod/truncationEnumSchema.ts +0 -8
- package/src/gen/zod/urlCitationBodySchema.ts +0 -17
- package/src/gen/zod/urlCitationParamSchema.ts +0 -14
- package/src/gen/zod/usageSchema.ts +0 -19
- package/src/gen/zod/userMessageItemParamSchema.ts +0 -23
- package/src/gen/zod/verbosityEnumSchema.ts +0 -8
- package/src/index.ts +0 -3
- package/tsconfig.json +0 -21
package/dist/index.mjs
CHANGED
|
@@ -1,1367 +1,2798 @@
|
|
|
1
1
|
// src/gen/types.ts
|
|
2
2
|
var itemReferenceParamTypeEnum = {
|
|
3
|
-
item_reference:
|
|
4
|
-
}
|
|
3
|
+
item_reference: 'item_reference',
|
|
4
|
+
}
|
|
5
5
|
var reasoningSummaryContentParamTypeEnum = {
|
|
6
|
-
summary_text:
|
|
7
|
-
}
|
|
6
|
+
summary_text: 'summary_text',
|
|
7
|
+
}
|
|
8
8
|
var reasoningItemParamTypeEnum = {
|
|
9
|
-
reasoning:
|
|
10
|
-
}
|
|
9
|
+
reasoning: 'reasoning',
|
|
10
|
+
}
|
|
11
11
|
var inputTextContentParamTypeEnum = {
|
|
12
|
-
input_text:
|
|
13
|
-
}
|
|
12
|
+
input_text: 'input_text',
|
|
13
|
+
}
|
|
14
14
|
var detailEnumEnum = {
|
|
15
|
-
low:
|
|
16
|
-
high:
|
|
17
|
-
auto:
|
|
18
|
-
}
|
|
15
|
+
low: 'low',
|
|
16
|
+
high: 'high',
|
|
17
|
+
auto: 'auto',
|
|
18
|
+
}
|
|
19
19
|
var imageDetailEnum = {
|
|
20
|
-
low:
|
|
21
|
-
high:
|
|
22
|
-
auto:
|
|
23
|
-
}
|
|
20
|
+
low: 'low',
|
|
21
|
+
high: 'high',
|
|
22
|
+
auto: 'auto',
|
|
23
|
+
}
|
|
24
24
|
var inputImageContentParamAutoParamTypeEnum = {
|
|
25
|
-
input_image:
|
|
26
|
-
}
|
|
25
|
+
input_image: 'input_image',
|
|
26
|
+
}
|
|
27
27
|
var inputFileContentParamTypeEnum = {
|
|
28
|
-
input_file:
|
|
29
|
-
}
|
|
28
|
+
input_file: 'input_file',
|
|
29
|
+
}
|
|
30
30
|
var userMessageItemParamTypeEnum = {
|
|
31
|
-
message:
|
|
32
|
-
}
|
|
31
|
+
message: 'message',
|
|
32
|
+
}
|
|
33
33
|
var userMessageItemParamRoleEnum = {
|
|
34
|
-
user:
|
|
35
|
-
}
|
|
34
|
+
user: 'user',
|
|
35
|
+
}
|
|
36
36
|
var systemMessageItemParamTypeEnum = {
|
|
37
|
-
message:
|
|
38
|
-
}
|
|
37
|
+
message: 'message',
|
|
38
|
+
}
|
|
39
39
|
var systemMessageItemParamRoleEnum = {
|
|
40
|
-
system:
|
|
41
|
-
}
|
|
40
|
+
system: 'system',
|
|
41
|
+
}
|
|
42
42
|
var developerMessageItemParamTypeEnum = {
|
|
43
|
-
message:
|
|
44
|
-
}
|
|
43
|
+
message: 'message',
|
|
44
|
+
}
|
|
45
45
|
var developerMessageItemParamRoleEnum = {
|
|
46
|
-
developer:
|
|
47
|
-
}
|
|
46
|
+
developer: 'developer',
|
|
47
|
+
}
|
|
48
48
|
var urlCitationParamTypeEnum = {
|
|
49
|
-
url_citation:
|
|
50
|
-
}
|
|
49
|
+
url_citation: 'url_citation',
|
|
50
|
+
}
|
|
51
51
|
var outputTextContentParamTypeEnum = {
|
|
52
|
-
output_text:
|
|
53
|
-
}
|
|
52
|
+
output_text: 'output_text',
|
|
53
|
+
}
|
|
54
54
|
var refusalContentParamTypeEnum = {
|
|
55
|
-
refusal:
|
|
56
|
-
}
|
|
55
|
+
refusal: 'refusal',
|
|
56
|
+
}
|
|
57
57
|
var assistantMessageItemParamTypeEnum = {
|
|
58
|
-
message:
|
|
59
|
-
}
|
|
58
|
+
message: 'message',
|
|
59
|
+
}
|
|
60
60
|
var assistantMessageItemParamRoleEnum = {
|
|
61
|
-
assistant:
|
|
62
|
-
}
|
|
61
|
+
assistant: 'assistant',
|
|
62
|
+
}
|
|
63
63
|
var functionCallItemStatusEnum = {
|
|
64
|
-
in_progress:
|
|
65
|
-
completed:
|
|
66
|
-
incomplete:
|
|
67
|
-
}
|
|
64
|
+
in_progress: 'in_progress',
|
|
65
|
+
completed: 'completed',
|
|
66
|
+
incomplete: 'incomplete',
|
|
67
|
+
}
|
|
68
68
|
var functionCallStatusEnum = {
|
|
69
|
-
in_progress:
|
|
70
|
-
completed:
|
|
71
|
-
incomplete:
|
|
72
|
-
}
|
|
69
|
+
in_progress: 'in_progress',
|
|
70
|
+
completed: 'completed',
|
|
71
|
+
incomplete: 'incomplete',
|
|
72
|
+
}
|
|
73
73
|
var functionCallItemParamTypeEnum = {
|
|
74
|
-
function_call:
|
|
75
|
-
}
|
|
74
|
+
function_call: 'function_call',
|
|
75
|
+
}
|
|
76
76
|
var inputVideoContentTypeEnum = {
|
|
77
|
-
input_video:
|
|
78
|
-
}
|
|
77
|
+
input_video: 'input_video',
|
|
78
|
+
}
|
|
79
79
|
var functionCallOutputItemParamTypeEnum = {
|
|
80
|
-
function_call_output:
|
|
81
|
-
}
|
|
80
|
+
function_call_output: 'function_call_output',
|
|
81
|
+
}
|
|
82
82
|
var includeEnumEnum = {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
83
|
+
'reasoning.encrypted_content': 'reasoning.encrypted_content',
|
|
84
|
+
'message.output_text.logprobs': 'message.output_text.logprobs',
|
|
85
|
+
}
|
|
86
86
|
var functionToolParamTypeEnum = {
|
|
87
|
-
function:
|
|
88
|
-
}
|
|
87
|
+
function: 'function',
|
|
88
|
+
}
|
|
89
89
|
var specificFunctionParamTypeEnum = {
|
|
90
|
-
function:
|
|
91
|
-
}
|
|
90
|
+
function: 'function',
|
|
91
|
+
}
|
|
92
92
|
var toolChoiceValueEnumEnum = {
|
|
93
|
-
none:
|
|
94
|
-
auto:
|
|
95
|
-
required:
|
|
96
|
-
}
|
|
93
|
+
none: 'none',
|
|
94
|
+
auto: 'auto',
|
|
95
|
+
required: 'required',
|
|
96
|
+
}
|
|
97
97
|
var allowedToolsParamTypeEnum = {
|
|
98
|
-
allowed_tools:
|
|
99
|
-
}
|
|
98
|
+
allowed_tools: 'allowed_tools',
|
|
99
|
+
}
|
|
100
100
|
var verbosityEnumEnum = {
|
|
101
|
-
low:
|
|
102
|
-
medium:
|
|
103
|
-
high:
|
|
104
|
-
}
|
|
101
|
+
low: 'low',
|
|
102
|
+
medium: 'medium',
|
|
103
|
+
high: 'high',
|
|
104
|
+
}
|
|
105
105
|
var textResponseFormatTypeEnum = {
|
|
106
|
-
text:
|
|
107
|
-
}
|
|
106
|
+
text: 'text',
|
|
107
|
+
}
|
|
108
108
|
var jsonSchemaResponseFormatParamTypeEnum = {
|
|
109
|
-
json_schema:
|
|
110
|
-
}
|
|
109
|
+
json_schema: 'json_schema',
|
|
110
|
+
}
|
|
111
111
|
var reasoningEffortEnumEnum = {
|
|
112
|
-
none:
|
|
113
|
-
low:
|
|
114
|
-
medium:
|
|
115
|
-
high:
|
|
116
|
-
xhigh:
|
|
117
|
-
}
|
|
112
|
+
none: 'none',
|
|
113
|
+
low: 'low',
|
|
114
|
+
medium: 'medium',
|
|
115
|
+
high: 'high',
|
|
116
|
+
xhigh: 'xhigh',
|
|
117
|
+
}
|
|
118
118
|
var reasoningSummaryEnumEnum = {
|
|
119
|
-
concise:
|
|
120
|
-
detailed:
|
|
121
|
-
auto:
|
|
122
|
-
}
|
|
119
|
+
concise: 'concise',
|
|
120
|
+
detailed: 'detailed',
|
|
121
|
+
auto: 'auto',
|
|
122
|
+
}
|
|
123
123
|
var truncationEnumEnum = {
|
|
124
|
-
auto:
|
|
125
|
-
disabled:
|
|
126
|
-
}
|
|
124
|
+
auto: 'auto',
|
|
125
|
+
disabled: 'disabled',
|
|
126
|
+
}
|
|
127
127
|
var serviceTierEnumEnum = {
|
|
128
|
-
auto:
|
|
129
|
-
default:
|
|
130
|
-
flex:
|
|
131
|
-
priority:
|
|
132
|
-
}
|
|
128
|
+
auto: 'auto',
|
|
129
|
+
default: 'default',
|
|
130
|
+
flex: 'flex',
|
|
131
|
+
priority: 'priority',
|
|
132
|
+
}
|
|
133
133
|
var messageRoleEnum = {
|
|
134
|
-
user:
|
|
135
|
-
assistant:
|
|
136
|
-
system:
|
|
137
|
-
developer:
|
|
138
|
-
}
|
|
134
|
+
user: 'user',
|
|
135
|
+
assistant: 'assistant',
|
|
136
|
+
system: 'system',
|
|
137
|
+
developer: 'developer',
|
|
138
|
+
}
|
|
139
139
|
var inputTextContentTypeEnum = {
|
|
140
|
-
input_text:
|
|
141
|
-
}
|
|
140
|
+
input_text: 'input_text',
|
|
141
|
+
}
|
|
142
142
|
var urlCitationBodyTypeEnum = {
|
|
143
|
-
url_citation:
|
|
144
|
-
}
|
|
143
|
+
url_citation: 'url_citation',
|
|
144
|
+
}
|
|
145
145
|
var outputTextContentTypeEnum = {
|
|
146
|
-
output_text:
|
|
147
|
-
}
|
|
146
|
+
output_text: 'output_text',
|
|
147
|
+
}
|
|
148
148
|
var textContentTypeEnum = {
|
|
149
|
-
text:
|
|
150
|
-
}
|
|
149
|
+
text: 'text',
|
|
150
|
+
}
|
|
151
151
|
var summaryTextContentTypeEnum = {
|
|
152
|
-
summary_text:
|
|
153
|
-
}
|
|
152
|
+
summary_text: 'summary_text',
|
|
153
|
+
}
|
|
154
154
|
var reasoningTextContentTypeEnum = {
|
|
155
|
-
reasoning_text:
|
|
156
|
-
}
|
|
155
|
+
reasoning_text: 'reasoning_text',
|
|
156
|
+
}
|
|
157
157
|
var refusalContentTypeEnum = {
|
|
158
|
-
refusal:
|
|
159
|
-
}
|
|
158
|
+
refusal: 'refusal',
|
|
159
|
+
}
|
|
160
160
|
var inputImageContentTypeEnum = {
|
|
161
|
-
input_image:
|
|
162
|
-
}
|
|
161
|
+
input_image: 'input_image',
|
|
162
|
+
}
|
|
163
163
|
var inputFileContentTypeEnum = {
|
|
164
|
-
input_file:
|
|
165
|
-
}
|
|
164
|
+
input_file: 'input_file',
|
|
165
|
+
}
|
|
166
166
|
var messageStatusEnum = {
|
|
167
|
-
in_progress:
|
|
168
|
-
completed:
|
|
169
|
-
incomplete:
|
|
170
|
-
}
|
|
167
|
+
in_progress: 'in_progress',
|
|
168
|
+
completed: 'completed',
|
|
169
|
+
incomplete: 'incomplete',
|
|
170
|
+
}
|
|
171
171
|
var messageTypeEnum = {
|
|
172
|
-
message:
|
|
173
|
-
}
|
|
172
|
+
message: 'message',
|
|
173
|
+
}
|
|
174
174
|
var functionCallTypeEnum = {
|
|
175
|
-
function_call:
|
|
176
|
-
}
|
|
175
|
+
function_call: 'function_call',
|
|
176
|
+
}
|
|
177
177
|
var functionCallOutputStatusEnumEnum = {
|
|
178
|
-
in_progress:
|
|
179
|
-
completed:
|
|
180
|
-
incomplete:
|
|
181
|
-
}
|
|
178
|
+
in_progress: 'in_progress',
|
|
179
|
+
completed: 'completed',
|
|
180
|
+
incomplete: 'incomplete',
|
|
181
|
+
}
|
|
182
182
|
var functionCallOutputTypeEnum = {
|
|
183
|
-
function_call_output:
|
|
184
|
-
}
|
|
183
|
+
function_call_output: 'function_call_output',
|
|
184
|
+
}
|
|
185
185
|
var reasoningBodyTypeEnum = {
|
|
186
|
-
reasoning:
|
|
187
|
-
}
|
|
186
|
+
reasoning: 'reasoning',
|
|
187
|
+
}
|
|
188
188
|
var functionToolTypeEnum = {
|
|
189
|
-
function:
|
|
190
|
-
}
|
|
189
|
+
function: 'function',
|
|
190
|
+
}
|
|
191
191
|
var functionToolChoiceTypeEnum = {
|
|
192
|
-
function:
|
|
193
|
-
}
|
|
192
|
+
function: 'function',
|
|
193
|
+
}
|
|
194
194
|
var allowedToolChoiceTypeEnum = {
|
|
195
|
-
allowed_tools:
|
|
196
|
-
}
|
|
195
|
+
allowed_tools: 'allowed_tools',
|
|
196
|
+
}
|
|
197
197
|
var jsonObjectResponseFormatTypeEnum = {
|
|
198
|
-
json_object:
|
|
199
|
-
}
|
|
198
|
+
json_object: 'json_object',
|
|
199
|
+
}
|
|
200
200
|
var jsonSchemaResponseFormatTypeEnum = {
|
|
201
|
-
json_schema:
|
|
202
|
-
}
|
|
201
|
+
json_schema: 'json_schema',
|
|
202
|
+
}
|
|
203
203
|
var responseResourceObjectEnum = {
|
|
204
|
-
response:
|
|
205
|
-
}
|
|
204
|
+
response: 'response',
|
|
205
|
+
}
|
|
206
206
|
var responseCreatedStreamingEventTypeEnum = {
|
|
207
|
-
|
|
208
|
-
}
|
|
207
|
+
'response.created': 'response.created',
|
|
208
|
+
}
|
|
209
209
|
var responseQueuedStreamingEventTypeEnum = {
|
|
210
|
-
|
|
211
|
-
}
|
|
210
|
+
'response.queued': 'response.queued',
|
|
211
|
+
}
|
|
212
212
|
var responseInProgressStreamingEventTypeEnum = {
|
|
213
|
-
|
|
214
|
-
}
|
|
213
|
+
'response.in_progress': 'response.in_progress',
|
|
214
|
+
}
|
|
215
215
|
var responseCompletedStreamingEventTypeEnum = {
|
|
216
|
-
|
|
217
|
-
}
|
|
216
|
+
'response.completed': 'response.completed',
|
|
217
|
+
}
|
|
218
218
|
var responseFailedStreamingEventTypeEnum = {
|
|
219
|
-
|
|
220
|
-
}
|
|
219
|
+
'response.failed': 'response.failed',
|
|
220
|
+
}
|
|
221
221
|
var responseIncompleteStreamingEventTypeEnum = {
|
|
222
|
-
|
|
223
|
-
}
|
|
222
|
+
'response.incomplete': 'response.incomplete',
|
|
223
|
+
}
|
|
224
224
|
var responseOutputItemAddedStreamingEventTypeEnum = {
|
|
225
|
-
|
|
226
|
-
}
|
|
225
|
+
'response.output_item.added': 'response.output_item.added',
|
|
226
|
+
}
|
|
227
227
|
var responseOutputItemDoneStreamingEventTypeEnum = {
|
|
228
|
-
|
|
229
|
-
}
|
|
228
|
+
'response.output_item.done': 'response.output_item.done',
|
|
229
|
+
}
|
|
230
230
|
var responseReasoningSummaryPartAddedStreamingEventTypeEnum = {
|
|
231
|
-
|
|
232
|
-
|
|
231
|
+
'response.reasoning_summary_part.added':
|
|
232
|
+
'response.reasoning_summary_part.added',
|
|
233
|
+
}
|
|
233
234
|
var responseReasoningSummaryPartDoneStreamingEventTypeEnum = {
|
|
234
|
-
|
|
235
|
-
|
|
235
|
+
'response.reasoning_summary_part.done':
|
|
236
|
+
'response.reasoning_summary_part.done',
|
|
237
|
+
}
|
|
236
238
|
var responseContentPartAddedStreamingEventTypeEnum = {
|
|
237
|
-
|
|
238
|
-
}
|
|
239
|
+
'response.content_part.added': 'response.content_part.added',
|
|
240
|
+
}
|
|
239
241
|
var responseContentPartDoneStreamingEventTypeEnum = {
|
|
240
|
-
|
|
241
|
-
}
|
|
242
|
+
'response.content_part.done': 'response.content_part.done',
|
|
243
|
+
}
|
|
242
244
|
var responseOutputTextDeltaStreamingEventTypeEnum = {
|
|
243
|
-
|
|
244
|
-
}
|
|
245
|
+
'response.output_text.delta': 'response.output_text.delta',
|
|
246
|
+
}
|
|
245
247
|
var responseOutputTextDoneStreamingEventTypeEnum = {
|
|
246
|
-
|
|
247
|
-
}
|
|
248
|
+
'response.output_text.done': 'response.output_text.done',
|
|
249
|
+
}
|
|
248
250
|
var responseRefusalDeltaStreamingEventTypeEnum = {
|
|
249
|
-
|
|
250
|
-
}
|
|
251
|
+
'response.refusal.delta': 'response.refusal.delta',
|
|
252
|
+
}
|
|
251
253
|
var responseRefusalDoneStreamingEventTypeEnum = {
|
|
252
|
-
|
|
253
|
-
}
|
|
254
|
+
'response.refusal.done': 'response.refusal.done',
|
|
255
|
+
}
|
|
254
256
|
var responseReasoningDeltaStreamingEventTypeEnum = {
|
|
255
|
-
|
|
256
|
-
}
|
|
257
|
+
'response.reasoning.delta': 'response.reasoning.delta',
|
|
258
|
+
}
|
|
257
259
|
var responseReasoningDoneStreamingEventTypeEnum = {
|
|
258
|
-
|
|
259
|
-
}
|
|
260
|
+
'response.reasoning.done': 'response.reasoning.done',
|
|
261
|
+
}
|
|
260
262
|
var responseReasoningSummaryDeltaStreamingEventTypeEnum = {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
+
'response.reasoning_summary_text.delta':
|
|
264
|
+
'response.reasoning_summary_text.delta',
|
|
265
|
+
}
|
|
263
266
|
var responseReasoningSummaryDoneStreamingEventTypeEnum = {
|
|
264
|
-
|
|
265
|
-
|
|
267
|
+
'response.reasoning_summary_text.done':
|
|
268
|
+
'response.reasoning_summary_text.done',
|
|
269
|
+
}
|
|
266
270
|
var responseOutputTextAnnotationAddedStreamingEventTypeEnum = {
|
|
267
|
-
|
|
268
|
-
|
|
271
|
+
'response.output_text.annotation.added':
|
|
272
|
+
'response.output_text.annotation.added',
|
|
273
|
+
}
|
|
269
274
|
var responseFunctionCallArgumentsDeltaStreamingEventTypeEnum = {
|
|
270
|
-
|
|
271
|
-
|
|
275
|
+
'response.function_call_arguments.delta':
|
|
276
|
+
'response.function_call_arguments.delta',
|
|
277
|
+
}
|
|
272
278
|
var responseFunctionCallArgumentsDoneStreamingEventTypeEnum = {
|
|
273
|
-
|
|
274
|
-
|
|
279
|
+
'response.function_call_arguments.done':
|
|
280
|
+
'response.function_call_arguments.done',
|
|
281
|
+
}
|
|
275
282
|
var errorStreamingEventTypeEnum = {
|
|
276
|
-
error:
|
|
277
|
-
}
|
|
283
|
+
error: 'error',
|
|
284
|
+
}
|
|
278
285
|
|
|
279
286
|
// src/gen/zod/functionToolChoiceSchema.ts
|
|
280
|
-
import { z } from
|
|
287
|
+
import { z } from 'zod'
|
|
281
288
|
var functionToolChoiceSchema = z.object({
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
})
|
|
289
|
+
type: z.enum(['function']).default('function'),
|
|
290
|
+
name: z.optional(z.string()),
|
|
291
|
+
})
|
|
285
292
|
|
|
286
293
|
// src/gen/zod/toolChoiceValueEnumSchema.ts
|
|
287
|
-
import { z as z2 } from
|
|
288
|
-
var toolChoiceValueEnumSchema = z2.enum([
|
|
294
|
+
import { z as z2 } from 'zod'
|
|
295
|
+
var toolChoiceValueEnumSchema = z2.enum(['none', 'auto', 'required'])
|
|
289
296
|
|
|
290
297
|
// src/gen/zod/allowedToolChoiceSchema.ts
|
|
291
|
-
import { z as z3 } from
|
|
298
|
+
import { z as z3 } from 'zod'
|
|
292
299
|
var allowedToolChoiceSchema = z3.object({
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
})
|
|
300
|
+
type: z3.enum(['allowed_tools']).default('allowed_tools'),
|
|
301
|
+
tools: z3.array(z3.lazy(() => functionToolChoiceSchema)),
|
|
302
|
+
mode: z3.lazy(() => toolChoiceValueEnumSchema),
|
|
303
|
+
})
|
|
297
304
|
|
|
298
305
|
// src/gen/zod/specificFunctionParamSchema.ts
|
|
299
|
-
import { z as z4 } from
|
|
306
|
+
import { z as z4 } from 'zod'
|
|
300
307
|
var specificFunctionParamSchema = z4.object({
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
308
|
+
type: z4
|
|
309
|
+
.enum(['function'])
|
|
310
|
+
.default('function')
|
|
311
|
+
.describe('The tool to call. Always `function`.'),
|
|
312
|
+
name: z4.string().describe('The name of the function tool to call.'),
|
|
313
|
+
})
|
|
304
314
|
|
|
305
315
|
// src/gen/zod/specificToolChoiceParamSchema.ts
|
|
306
|
-
import { z as z5 } from
|
|
307
|
-
var specificToolChoiceParamSchema = z5.lazy(() => specificFunctionParamSchema)
|
|
316
|
+
import { z as z5 } from 'zod'
|
|
317
|
+
var specificToolChoiceParamSchema = z5.lazy(() => specificFunctionParamSchema)
|
|
308
318
|
|
|
309
319
|
// src/gen/zod/allowedToolsParamSchema.ts
|
|
310
|
-
import { z as z6 } from
|
|
320
|
+
import { z as z6 } from 'zod'
|
|
311
321
|
var allowedToolsParamSchema = z6.object({
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
322
|
+
type: z6
|
|
323
|
+
.enum(['allowed_tools'])
|
|
324
|
+
.default('allowed_tools')
|
|
325
|
+
.describe('The tool choice type. Always `allowed_tools`.'),
|
|
326
|
+
tools: z6
|
|
327
|
+
.array(z6.lazy(() => specificToolChoiceParamSchema))
|
|
328
|
+
.min(1)
|
|
329
|
+
.max(128)
|
|
330
|
+
.describe('The list of tools that are permitted for this request.'),
|
|
331
|
+
mode: z6.optional(z6.lazy(() => toolChoiceValueEnumSchema).and(z6.any())),
|
|
332
|
+
})
|
|
316
333
|
|
|
317
334
|
// src/gen/zod/urlCitationBodySchema.ts
|
|
318
|
-
import { z as z7 } from
|
|
319
|
-
var urlCitationBodySchema = z7
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
335
|
+
import { z as z7 } from 'zod'
|
|
336
|
+
var urlCitationBodySchema = z7
|
|
337
|
+
.object({
|
|
338
|
+
type: z7
|
|
339
|
+
.enum(['url_citation'])
|
|
340
|
+
.default('url_citation')
|
|
341
|
+
.describe('The type of the URL citation. Always `url_citation`.'),
|
|
342
|
+
url: z7.string().describe('The URL of the web resource.'),
|
|
343
|
+
start_index: z7
|
|
344
|
+
.number()
|
|
345
|
+
.int()
|
|
346
|
+
.describe(
|
|
347
|
+
'The index of the first character of the URL citation in the message.',
|
|
348
|
+
),
|
|
349
|
+
end_index: z7
|
|
350
|
+
.number()
|
|
351
|
+
.int()
|
|
352
|
+
.describe(
|
|
353
|
+
'The index of the last character of the URL citation in the message.',
|
|
354
|
+
),
|
|
355
|
+
title: z7.string().describe('The title of the web resource.'),
|
|
356
|
+
})
|
|
357
|
+
.describe('A citation for a web resource used to generate a model response.')
|
|
326
358
|
|
|
327
359
|
// src/gen/zod/annotationSchema.ts
|
|
328
|
-
import { z as z8 } from
|
|
329
|
-
var annotationSchema = z8
|
|
330
|
-
|
|
331
|
-
|
|
360
|
+
import { z as z8 } from 'zod'
|
|
361
|
+
var annotationSchema = z8
|
|
362
|
+
.lazy(() => urlCitationBodySchema)
|
|
363
|
+
.and(
|
|
364
|
+
z8.object({
|
|
365
|
+
type: z8.literal('url_citation'),
|
|
366
|
+
}),
|
|
367
|
+
)
|
|
368
|
+
.describe('An annotation that applies to a span of output text.')
|
|
332
369
|
|
|
333
370
|
// src/gen/zod/urlCitationParamSchema.ts
|
|
334
|
-
import { z as z9 } from
|
|
371
|
+
import { z as z9 } from 'zod'
|
|
335
372
|
var urlCitationParamSchema = z9.object({
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
373
|
+
type: z9
|
|
374
|
+
.enum(['url_citation'])
|
|
375
|
+
.default('url_citation')
|
|
376
|
+
.describe('The citation type. Always `url_citation`.'),
|
|
377
|
+
start_index: z9
|
|
378
|
+
.number()
|
|
379
|
+
.int()
|
|
380
|
+
.min(0)
|
|
381
|
+
.describe(
|
|
382
|
+
'The index of the first character of the citation in the message.',
|
|
383
|
+
),
|
|
384
|
+
end_index: z9
|
|
385
|
+
.number()
|
|
386
|
+
.int()
|
|
387
|
+
.min(0)
|
|
388
|
+
.describe(
|
|
389
|
+
'The index of the last character of the citation in the message.',
|
|
390
|
+
),
|
|
391
|
+
url: z9.string().describe('The URL of the cited resource.'),
|
|
392
|
+
title: z9.string().describe('The title of the cited resource.'),
|
|
393
|
+
})
|
|
342
394
|
|
|
343
395
|
// src/gen/zod/outputTextContentParamSchema.ts
|
|
344
|
-
import { z as z10 } from
|
|
396
|
+
import { z as z10 } from 'zod'
|
|
345
397
|
var outputTextContentParamSchema = z10.object({
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
398
|
+
type: z10
|
|
399
|
+
.enum(['output_text'])
|
|
400
|
+
.default('output_text')
|
|
401
|
+
.describe('The content type. Always `output_text`.'),
|
|
402
|
+
text: z10.string().max(10485760).describe('The text content.'),
|
|
403
|
+
annotations: z10.optional(
|
|
404
|
+
z10
|
|
405
|
+
.array(z10.lazy(() => urlCitationParamSchema))
|
|
406
|
+
.describe('Citations associated with the text content.'),
|
|
407
|
+
),
|
|
408
|
+
})
|
|
350
409
|
|
|
351
410
|
// src/gen/zod/refusalContentParamSchema.ts
|
|
352
|
-
import { z as z11 } from
|
|
411
|
+
import { z as z11 } from 'zod'
|
|
353
412
|
var refusalContentParamSchema = z11.object({
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
413
|
+
type: z11
|
|
414
|
+
.enum(['refusal'])
|
|
415
|
+
.default('refusal')
|
|
416
|
+
.describe('The content type. Always `refusal`.'),
|
|
417
|
+
refusal: z11.string().max(10485760).describe('The refusal text.'),
|
|
418
|
+
})
|
|
357
419
|
|
|
358
420
|
// src/gen/zod/assistantMessageItemParamSchema.ts
|
|
359
|
-
import { z as z12 } from
|
|
421
|
+
import { z as z12 } from 'zod'
|
|
360
422
|
var assistantMessageItemParamSchema = z12.object({
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
423
|
+
id: z12.optional(z12.union([z12.string(), z12.null()])),
|
|
424
|
+
type: z12
|
|
425
|
+
.enum(['message'])
|
|
426
|
+
.default('message')
|
|
427
|
+
.describe('The item type. Always `message`.'),
|
|
428
|
+
role: z12
|
|
429
|
+
.enum(['assistant'])
|
|
430
|
+
.default('assistant')
|
|
431
|
+
.describe('The role of the message author. Always `assistant`.'),
|
|
432
|
+
content: z12
|
|
433
|
+
.union([
|
|
434
|
+
z12.array(
|
|
435
|
+
z12
|
|
436
|
+
.union([
|
|
437
|
+
z12
|
|
438
|
+
.lazy(() => outputTextContentParamSchema)
|
|
439
|
+
.and(
|
|
440
|
+
z12.object({
|
|
441
|
+
type: z12.literal('output_text'),
|
|
442
|
+
}),
|
|
443
|
+
),
|
|
444
|
+
z12
|
|
445
|
+
.lazy(() => refusalContentParamSchema)
|
|
446
|
+
.and(
|
|
447
|
+
z12.object({
|
|
448
|
+
type: z12.literal('refusal'),
|
|
449
|
+
}),
|
|
450
|
+
),
|
|
451
|
+
])
|
|
452
|
+
.describe(
|
|
453
|
+
'A piece of assistant message content, such as text or a refusal.',
|
|
454
|
+
),
|
|
455
|
+
),
|
|
456
|
+
z12.string(),
|
|
457
|
+
])
|
|
458
|
+
.describe('The message content, as an array of content parts.'),
|
|
459
|
+
status: z12.optional(z12.union([z12.string(), z12.null()])),
|
|
460
|
+
})
|
|
371
461
|
|
|
372
462
|
// src/gen/zod/includeEnumSchema.ts
|
|
373
|
-
import { z as z13 } from
|
|
374
|
-
var includeEnumSchema = z13.enum([
|
|
463
|
+
import { z as z13 } from 'zod'
|
|
464
|
+
var includeEnumSchema = z13.enum([
|
|
465
|
+
'reasoning.encrypted_content',
|
|
466
|
+
'message.output_text.logprobs',
|
|
467
|
+
])
|
|
375
468
|
|
|
376
469
|
// src/gen/zod/functionCallStatusSchema.ts
|
|
377
|
-
import { z as z14 } from
|
|
378
|
-
var functionCallStatusSchema = z14.enum([
|
|
470
|
+
import { z as z14 } from 'zod'
|
|
471
|
+
var functionCallStatusSchema = z14.enum([
|
|
472
|
+
'in_progress',
|
|
473
|
+
'completed',
|
|
474
|
+
'incomplete',
|
|
475
|
+
])
|
|
379
476
|
|
|
380
477
|
// src/gen/zod/functionCallItemParamSchema.ts
|
|
381
|
-
import { z as z15 } from
|
|
478
|
+
import { z as z15 } from 'zod'
|
|
382
479
|
var functionCallItemParamSchema = z15.object({
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
480
|
+
id: z15.optional(z15.union([z15.string(), z15.null()])),
|
|
481
|
+
call_id: z15
|
|
482
|
+
.string()
|
|
483
|
+
.min(1)
|
|
484
|
+
.max(64)
|
|
485
|
+
.describe(
|
|
486
|
+
'The unique ID of the function tool call generated by the model.',
|
|
487
|
+
),
|
|
488
|
+
type: z15
|
|
489
|
+
.enum(['function_call'])
|
|
490
|
+
.default('function_call')
|
|
491
|
+
.describe('The item type. Always `function_call`.'),
|
|
492
|
+
name: z15
|
|
493
|
+
.string()
|
|
494
|
+
.min(1)
|
|
495
|
+
.max(64)
|
|
496
|
+
.regex(/^[a-zA-Z0-9_-]+$/)
|
|
497
|
+
.describe('The name of the function to call.'),
|
|
498
|
+
arguments: z15.string().describe('The function arguments as a JSON string.'),
|
|
499
|
+
status: z15.optional(
|
|
500
|
+
z15.union([
|
|
501
|
+
z15.lazy(() => functionCallStatusSchema).and(z15.any()),
|
|
502
|
+
z15.null(),
|
|
503
|
+
]),
|
|
504
|
+
),
|
|
505
|
+
})
|
|
390
506
|
|
|
391
507
|
// src/gen/zod/inputFileContentParamSchema.ts
|
|
392
|
-
import { z as z16 } from
|
|
393
|
-
var inputFileContentParamSchema = z16
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
508
|
+
import { z as z16 } from 'zod'
|
|
509
|
+
var inputFileContentParamSchema = z16
|
|
510
|
+
.object({
|
|
511
|
+
type: z16
|
|
512
|
+
.enum(['input_file'])
|
|
513
|
+
.default('input_file')
|
|
514
|
+
.describe('The type of the input item. Always `input_file`.'),
|
|
515
|
+
filename: z16.optional(z16.union([z16.string(), z16.null()])),
|
|
516
|
+
file_data: z16.optional(z16.union([z16.string(), z16.null()])),
|
|
517
|
+
file_url: z16.optional(z16.union([z16.string(), z16.null()])),
|
|
518
|
+
})
|
|
519
|
+
.describe('A file input to the model.')
|
|
399
520
|
|
|
400
521
|
// src/gen/zod/imageDetailSchema.ts
|
|
401
|
-
import { z as z17 } from
|
|
402
|
-
var imageDetailSchema = z17.enum([
|
|
522
|
+
import { z as z17 } from 'zod'
|
|
523
|
+
var imageDetailSchema = z17.enum(['low', 'high', 'auto'])
|
|
403
524
|
|
|
404
525
|
// src/gen/zod/inputImageContentParamAutoParamSchema.ts
|
|
405
|
-
import { z as z18 } from
|
|
406
|
-
var inputImageContentParamAutoParamSchema = z18
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
526
|
+
import { z as z18 } from 'zod'
|
|
527
|
+
var inputImageContentParamAutoParamSchema = z18
|
|
528
|
+
.object({
|
|
529
|
+
type: z18
|
|
530
|
+
.enum(['input_image'])
|
|
531
|
+
.default('input_image')
|
|
532
|
+
.describe('The type of the input item. Always `input_image`.'),
|
|
533
|
+
image_url: z18.optional(z18.union([z18.string(), z18.null()])),
|
|
534
|
+
detail: z18.optional(
|
|
535
|
+
z18.union([z18.lazy(() => imageDetailSchema).and(z18.any()), z18.null()]),
|
|
536
|
+
),
|
|
537
|
+
})
|
|
538
|
+
.describe(
|
|
539
|
+
'An image input to the model. Learn about [image inputs](/docs/guides/vision)',
|
|
540
|
+
)
|
|
411
541
|
|
|
412
542
|
// src/gen/zod/inputTextContentParamSchema.ts
|
|
413
|
-
import { z as z19 } from
|
|
414
|
-
var inputTextContentParamSchema = z19
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
543
|
+
import { z as z19 } from 'zod'
|
|
544
|
+
var inputTextContentParamSchema = z19
|
|
545
|
+
.object({
|
|
546
|
+
type: z19
|
|
547
|
+
.enum(['input_text'])
|
|
548
|
+
.default('input_text')
|
|
549
|
+
.describe('The type of the input item. Always `input_text`.'),
|
|
550
|
+
text: z19.string().max(10485760).describe('The text input to the model.'),
|
|
551
|
+
})
|
|
552
|
+
.describe('A text input to the model.')
|
|
418
553
|
|
|
419
554
|
// src/gen/zod/inputVideoContentSchema.ts
|
|
420
|
-
import { z as z20 } from
|
|
421
|
-
var inputVideoContentSchema = z20
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
555
|
+
import { z as z20 } from 'zod'
|
|
556
|
+
var inputVideoContentSchema = z20
|
|
557
|
+
.object({
|
|
558
|
+
type: z20
|
|
559
|
+
.enum(['input_video'])
|
|
560
|
+
.describe('The type of the input content. Always `input_video`.'),
|
|
561
|
+
video_url: z20
|
|
562
|
+
.string()
|
|
563
|
+
.describe('A base64 or remote url that resolves to a video file.'),
|
|
564
|
+
})
|
|
565
|
+
.describe('A content block representing a video input to the model.')
|
|
425
566
|
|
|
426
567
|
// src/gen/zod/functionCallOutputItemParamSchema.ts
|
|
427
|
-
import { z as z21 } from
|
|
428
|
-
var functionCallOutputItemParamSchema = z21
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
568
|
+
import { z as z21 } from 'zod'
|
|
569
|
+
var functionCallOutputItemParamSchema = z21
|
|
570
|
+
.object({
|
|
571
|
+
id: z21.optional(z21.union([z21.string(), z21.null()])),
|
|
572
|
+
call_id: z21
|
|
573
|
+
.string()
|
|
574
|
+
.min(1)
|
|
575
|
+
.max(64)
|
|
576
|
+
.describe(
|
|
577
|
+
'The unique ID of the function tool call generated by the model.',
|
|
578
|
+
),
|
|
579
|
+
type: z21
|
|
580
|
+
.enum(['function_call_output'])
|
|
581
|
+
.default('function_call_output')
|
|
582
|
+
.describe(
|
|
583
|
+
'The type of the function tool call output. Always `function_call_output`.',
|
|
584
|
+
),
|
|
585
|
+
output: z21
|
|
586
|
+
.union([
|
|
587
|
+
z21.array(
|
|
588
|
+
z21
|
|
589
|
+
.union([
|
|
590
|
+
z21
|
|
591
|
+
.lazy(() => inputTextContentParamSchema)
|
|
592
|
+
.and(
|
|
593
|
+
z21.object({
|
|
594
|
+
type: z21.literal('input_text'),
|
|
595
|
+
}),
|
|
596
|
+
),
|
|
597
|
+
z21
|
|
598
|
+
.lazy(() => inputImageContentParamAutoParamSchema)
|
|
599
|
+
.and(
|
|
600
|
+
z21.object({
|
|
601
|
+
type: z21.literal('input_image'),
|
|
602
|
+
}),
|
|
603
|
+
),
|
|
604
|
+
z21
|
|
605
|
+
.lazy(() => inputFileContentParamSchema)
|
|
606
|
+
.and(
|
|
607
|
+
z21.object({
|
|
608
|
+
type: z21.literal('input_file'),
|
|
609
|
+
}),
|
|
610
|
+
),
|
|
611
|
+
z21
|
|
612
|
+
.lazy(() => inputVideoContentSchema)
|
|
613
|
+
.and(
|
|
614
|
+
z21.object({
|
|
615
|
+
type: z21.literal('input_video'),
|
|
616
|
+
}),
|
|
617
|
+
),
|
|
618
|
+
])
|
|
619
|
+
.describe(
|
|
620
|
+
'A piece of message content, such as text, an image, or a file.',
|
|
621
|
+
),
|
|
622
|
+
),
|
|
623
|
+
z21.string(),
|
|
624
|
+
])
|
|
625
|
+
.describe('Text, image, or file output of the function tool call.'),
|
|
626
|
+
status: z21.optional(
|
|
627
|
+
z21.union([
|
|
628
|
+
z21.lazy(() => functionCallStatusSchema).and(z21.any()),
|
|
629
|
+
z21.null(),
|
|
630
|
+
]),
|
|
631
|
+
),
|
|
632
|
+
})
|
|
633
|
+
.describe('The output of a function tool call.')
|
|
443
634
|
|
|
444
635
|
// src/gen/zod/itemReferenceParamSchema.ts
|
|
445
|
-
import { z as z22 } from
|
|
446
|
-
var itemReferenceParamSchema = z22
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
636
|
+
import { z as z22 } from 'zod'
|
|
637
|
+
var itemReferenceParamSchema = z22
|
|
638
|
+
.object({
|
|
639
|
+
type: z22.optional(z22.union([z22.enum(['item_reference']), z22.null()])),
|
|
640
|
+
id: z22.string().describe('The ID of the item to reference.'),
|
|
641
|
+
})
|
|
642
|
+
.describe('An internal identifier for an item to reference.')
|
|
450
643
|
|
|
451
644
|
// src/gen/zod/reasoningSummaryContentParamSchema.ts
|
|
452
|
-
import { z as z23 } from
|
|
645
|
+
import { z as z23 } from 'zod'
|
|
453
646
|
var reasoningSummaryContentParamSchema = z23.object({
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
647
|
+
type: z23
|
|
648
|
+
.enum(['summary_text'])
|
|
649
|
+
.default('summary_text')
|
|
650
|
+
.describe('The content type. Always `summary_text`.'),
|
|
651
|
+
text: z23.string().max(10485760).describe('The reasoning summary text.'),
|
|
652
|
+
})
|
|
457
653
|
|
|
458
654
|
// src/gen/zod/reasoningItemParamSchema.ts
|
|
459
|
-
import { z as z24 } from
|
|
655
|
+
import { z as z24 } from 'zod'
|
|
460
656
|
var reasoningItemParamSchema = z24.object({
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
657
|
+
id: z24.optional(z24.union([z24.string(), z24.null()])),
|
|
658
|
+
type: z24
|
|
659
|
+
.enum(['reasoning'])
|
|
660
|
+
.default('reasoning')
|
|
661
|
+
.describe('The item type. Always `reasoning`.'),
|
|
662
|
+
summary: z24
|
|
663
|
+
.array(z24.lazy(() => reasoningSummaryContentParamSchema))
|
|
664
|
+
.describe('Reasoning summary content associated with this item.'),
|
|
665
|
+
content: z24.optional(z24.null()),
|
|
666
|
+
encrypted_content: z24.optional(z24.union([z24.string(), z24.null()])),
|
|
667
|
+
})
|
|
467
668
|
|
|
468
669
|
// src/gen/zod/itemParamSchema.ts
|
|
469
|
-
import { z as z25 } from
|
|
470
|
-
var itemParamSchema = z25.union([
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
})
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
670
|
+
import { z as z25 } from 'zod'
|
|
671
|
+
var itemParamSchema = z25.union([
|
|
672
|
+
z25
|
|
673
|
+
.lazy(() => itemReferenceParamSchema)
|
|
674
|
+
.and(
|
|
675
|
+
z25.object({
|
|
676
|
+
type: z25.literal('Item reference'),
|
|
677
|
+
}),
|
|
678
|
+
),
|
|
679
|
+
z25
|
|
680
|
+
.lazy(() => reasoningItemParamSchema)
|
|
681
|
+
.and(
|
|
682
|
+
z25.object({
|
|
683
|
+
type: z25.literal('reasoning'),
|
|
684
|
+
}),
|
|
685
|
+
),
|
|
686
|
+
z25
|
|
687
|
+
.lazy(() => assistantMessageItemParamSchema)
|
|
688
|
+
.and(
|
|
689
|
+
z25.object({
|
|
690
|
+
type: z25.literal('message'),
|
|
691
|
+
}),
|
|
692
|
+
),
|
|
693
|
+
z25
|
|
694
|
+
.lazy(() => functionCallItemParamSchema)
|
|
695
|
+
.and(
|
|
696
|
+
z25.object({
|
|
697
|
+
type: z25.literal('function_call'),
|
|
698
|
+
}),
|
|
699
|
+
),
|
|
700
|
+
z25
|
|
701
|
+
.lazy(() => functionCallOutputItemParamSchema)
|
|
702
|
+
.and(
|
|
703
|
+
z25.object({
|
|
704
|
+
type: z25.literal('function_call_output'),
|
|
705
|
+
}),
|
|
706
|
+
),
|
|
707
|
+
])
|
|
481
708
|
|
|
482
709
|
// src/gen/zod/metadataParamSchema.ts
|
|
483
|
-
import { z as z26 } from
|
|
484
|
-
var metadataParamSchema = z26
|
|
710
|
+
import { z as z26 } from 'zod'
|
|
711
|
+
var metadataParamSchema = z26
|
|
712
|
+
.object({})
|
|
713
|
+
.catchall(z26.string().max(512))
|
|
714
|
+
.describe(
|
|
715
|
+
'Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.\n Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.',
|
|
716
|
+
)
|
|
485
717
|
|
|
486
718
|
// src/gen/zod/reasoningEffortEnumSchema.ts
|
|
487
|
-
import { z as z27 } from
|
|
488
|
-
var reasoningEffortEnumSchema = z27.enum([
|
|
719
|
+
import { z as z27 } from 'zod'
|
|
720
|
+
var reasoningEffortEnumSchema = z27.enum([
|
|
721
|
+
'none',
|
|
722
|
+
'low',
|
|
723
|
+
'medium',
|
|
724
|
+
'high',
|
|
725
|
+
'xhigh',
|
|
726
|
+
])
|
|
489
727
|
|
|
490
728
|
// src/gen/zod/reasoningSummaryEnumSchema.ts
|
|
491
|
-
import { z as z28 } from
|
|
492
|
-
var reasoningSummaryEnumSchema = z28.enum([
|
|
729
|
+
import { z as z28 } from 'zod'
|
|
730
|
+
var reasoningSummaryEnumSchema = z28.enum(['concise', 'detailed', 'auto'])
|
|
493
731
|
|
|
494
732
|
// src/gen/zod/reasoningParamSchema.ts
|
|
495
|
-
import { z as z29 } from
|
|
496
|
-
var reasoningParamSchema = z29
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
733
|
+
import { z as z29 } from 'zod'
|
|
734
|
+
var reasoningParamSchema = z29
|
|
735
|
+
.object({
|
|
736
|
+
effort: z29.optional(
|
|
737
|
+
z29.union([z29.lazy(() => reasoningEffortEnumSchema), z29.null()]),
|
|
738
|
+
),
|
|
739
|
+
summary: z29.optional(
|
|
740
|
+
z29.union([
|
|
741
|
+
z29.lazy(() => reasoningSummaryEnumSchema).and(z29.any()),
|
|
742
|
+
z29.null(),
|
|
743
|
+
]),
|
|
744
|
+
),
|
|
745
|
+
})
|
|
746
|
+
.describe(
|
|
747
|
+
'**gpt-5 and o-series models only** Configuration options for [reasoning models](https://platform.openai.com/docs/guides/reasoning).',
|
|
748
|
+
)
|
|
500
749
|
|
|
501
750
|
// src/gen/zod/emptyModelParamSchema.ts
|
|
502
|
-
import { z as z30 } from
|
|
503
|
-
var emptyModelParamSchema = z30.object({})
|
|
751
|
+
import { z as z30 } from 'zod'
|
|
752
|
+
var emptyModelParamSchema = z30.object({})
|
|
504
753
|
|
|
505
754
|
// src/gen/zod/functionToolParamSchema.ts
|
|
506
|
-
import { z as z31 } from
|
|
755
|
+
import { z as z31 } from 'zod'
|
|
507
756
|
var functionToolParamSchema = z31.object({
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
757
|
+
name: z31
|
|
758
|
+
.string()
|
|
759
|
+
.min(1)
|
|
760
|
+
.max(64)
|
|
761
|
+
.regex(/^[a-zA-Z0-9_-]+$/),
|
|
762
|
+
description: z31.optional(z31.union([z31.string(), z31.null()])),
|
|
763
|
+
parameters: z31.optional(
|
|
764
|
+
z31.union([z31.lazy(() => emptyModelParamSchema), z31.null()]),
|
|
765
|
+
),
|
|
766
|
+
strict: z31.optional(z31.boolean()),
|
|
767
|
+
type: z31.enum(['function']).default('function'),
|
|
768
|
+
})
|
|
514
769
|
|
|
515
770
|
// src/gen/zod/responsesToolParamSchema.ts
|
|
516
|
-
import { z as z32 } from
|
|
517
|
-
var responsesToolParamSchema = z32
|
|
518
|
-
|
|
519
|
-
|
|
771
|
+
import { z as z32 } from 'zod'
|
|
772
|
+
var responsesToolParamSchema = z32
|
|
773
|
+
.lazy(() => functionToolParamSchema)
|
|
774
|
+
.and(
|
|
775
|
+
z32.object({
|
|
776
|
+
type: z32.literal('function'),
|
|
777
|
+
}),
|
|
778
|
+
)
|
|
520
779
|
|
|
521
780
|
// src/gen/zod/serviceTierEnumSchema.ts
|
|
522
|
-
import { z as z33 } from
|
|
523
|
-
var serviceTierEnumSchema = z33.enum([
|
|
781
|
+
import { z as z33 } from 'zod'
|
|
782
|
+
var serviceTierEnumSchema = z33.enum(['auto', 'default', 'flex', 'priority'])
|
|
524
783
|
|
|
525
784
|
// src/gen/zod/streamOptionsParamSchema.ts
|
|
526
|
-
import { z as z34 } from
|
|
527
|
-
var streamOptionsParamSchema = z34
|
|
528
|
-
|
|
529
|
-
|
|
785
|
+
import { z as z34 } from 'zod'
|
|
786
|
+
var streamOptionsParamSchema = z34
|
|
787
|
+
.object({
|
|
788
|
+
include_obfuscation: z34.optional(
|
|
789
|
+
z34
|
|
790
|
+
.boolean()
|
|
791
|
+
.describe(
|
|
792
|
+
'Whether to obfuscate sensitive information in streamed output. Defaults to `true`.',
|
|
793
|
+
),
|
|
794
|
+
),
|
|
795
|
+
})
|
|
796
|
+
.describe('Options that control streamed response behavior.')
|
|
530
797
|
|
|
531
798
|
// src/gen/zod/jsonSchemaResponseFormatParamSchema.ts
|
|
532
|
-
import { z as z35 } from
|
|
799
|
+
import { z as z35 } from 'zod'
|
|
533
800
|
var jsonSchemaResponseFormatParamSchema = z35.object({
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
801
|
+
type: z35.optional(
|
|
802
|
+
z35
|
|
803
|
+
.enum(['json_schema'])
|
|
804
|
+
.describe(
|
|
805
|
+
'The type of response format being defined. Always `json_schema`.',
|
|
806
|
+
),
|
|
807
|
+
),
|
|
808
|
+
description: z35.optional(
|
|
809
|
+
z35
|
|
810
|
+
.string()
|
|
811
|
+
.describe(
|
|
812
|
+
'A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n',
|
|
813
|
+
),
|
|
814
|
+
),
|
|
815
|
+
name: z35.optional(
|
|
816
|
+
z35
|
|
817
|
+
.string()
|
|
818
|
+
.describe(
|
|
819
|
+
'The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n',
|
|
820
|
+
),
|
|
821
|
+
),
|
|
822
|
+
schema: z35.optional(
|
|
823
|
+
z35
|
|
824
|
+
.object({})
|
|
825
|
+
.catchall(z35.any())
|
|
826
|
+
.describe(
|
|
827
|
+
'The schema for the response format, described as a JSON Schema object.\n',
|
|
828
|
+
),
|
|
829
|
+
),
|
|
830
|
+
strict: z35.optional(z35.union([z35.boolean(), z35.null()])),
|
|
831
|
+
})
|
|
540
832
|
|
|
541
833
|
// src/gen/zod/textResponseFormatSchema.ts
|
|
542
|
-
import { z as z36 } from
|
|
834
|
+
import { z as z36 } from 'zod'
|
|
543
835
|
var textResponseFormatSchema = z36.object({
|
|
544
|
-
|
|
545
|
-
})
|
|
836
|
+
type: z36.enum(['text']).default('text'),
|
|
837
|
+
})
|
|
546
838
|
|
|
547
839
|
// src/gen/zod/textFormatParamSchema.ts
|
|
548
|
-
import { z as z37 } from
|
|
549
|
-
var textFormatParamSchema = z37.union([
|
|
840
|
+
import { z as z37 } from 'zod'
|
|
841
|
+
var textFormatParamSchema = z37.union([
|
|
842
|
+
z37.lazy(() => textResponseFormatSchema),
|
|
843
|
+
z37.lazy(() => jsonSchemaResponseFormatParamSchema),
|
|
844
|
+
])
|
|
550
845
|
|
|
551
846
|
// src/gen/zod/verbosityEnumSchema.ts
|
|
552
|
-
import { z as z38 } from
|
|
553
|
-
var verbosityEnumSchema = z38.enum([
|
|
847
|
+
import { z as z38 } from 'zod'
|
|
848
|
+
var verbosityEnumSchema = z38.enum(['low', 'medium', 'high'])
|
|
554
849
|
|
|
555
850
|
// src/gen/zod/textParamSchema.ts
|
|
556
|
-
import { z as z39 } from
|
|
851
|
+
import { z as z39 } from 'zod'
|
|
557
852
|
var textParamSchema = z39.object({
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
853
|
+
format: z39.optional(
|
|
854
|
+
z39
|
|
855
|
+
.union([z39.lazy(() => textFormatParamSchema), z39.null()])
|
|
856
|
+
.describe('The format configuration for text output.'),
|
|
857
|
+
),
|
|
858
|
+
verbosity: z39.optional(z39.lazy(() => verbosityEnumSchema).and(z39.any())),
|
|
859
|
+
})
|
|
561
860
|
|
|
562
861
|
// src/gen/zod/toolChoiceParamSchema.ts
|
|
563
|
-
import { z as z40 } from
|
|
564
|
-
var toolChoiceParamSchema = z40
|
|
862
|
+
import { z as z40 } from 'zod'
|
|
863
|
+
var toolChoiceParamSchema = z40
|
|
864
|
+
.union([
|
|
865
|
+
z40.lazy(() => specificToolChoiceParamSchema),
|
|
866
|
+
z40.lazy(() => toolChoiceValueEnumSchema),
|
|
867
|
+
z40.lazy(() => allowedToolsParamSchema),
|
|
868
|
+
])
|
|
869
|
+
.describe('Controls which tool the model should use, if any.')
|
|
565
870
|
|
|
566
871
|
// src/gen/zod/truncationEnumSchema.ts
|
|
567
|
-
import { z as z41 } from
|
|
568
|
-
var truncationEnumSchema = z41.enum([
|
|
872
|
+
import { z as z41 } from 'zod'
|
|
873
|
+
var truncationEnumSchema = z41.enum(['auto', 'disabled'])
|
|
569
874
|
|
|
570
875
|
// src/gen/zod/createResponseBodySchema.ts
|
|
571
|
-
import { z as z42 } from
|
|
876
|
+
import { z as z42 } from 'zod'
|
|
572
877
|
var createResponseBodySchema = z42.object({
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
878
|
+
model: z42.optional(z42.union([z42.string(), z42.null()])),
|
|
879
|
+
input: z42.optional(
|
|
880
|
+
z42.union([
|
|
881
|
+
z42.union([z42.array(z42.lazy(() => itemParamSchema)), z42.string()]),
|
|
882
|
+
z42.null(),
|
|
883
|
+
]),
|
|
884
|
+
),
|
|
885
|
+
previous_response_id: z42.optional(z42.union([z42.string(), z42.null()])),
|
|
886
|
+
include: z42.optional(z42.array(z42.lazy(() => includeEnumSchema))),
|
|
887
|
+
tools: z42.optional(
|
|
888
|
+
z42.union([
|
|
889
|
+
z42.array(z42.lazy(() => responsesToolParamSchema)),
|
|
890
|
+
z42.null(),
|
|
891
|
+
]),
|
|
892
|
+
),
|
|
893
|
+
tool_choice: z42.optional(
|
|
894
|
+
z42.union([
|
|
895
|
+
z42.lazy(() => toolChoiceParamSchema).and(z42.any()),
|
|
896
|
+
z42.null(),
|
|
897
|
+
]),
|
|
898
|
+
),
|
|
899
|
+
metadata: z42.optional(
|
|
900
|
+
z42.union([z42.lazy(() => metadataParamSchema).and(z42.any()), z42.null()]),
|
|
901
|
+
),
|
|
902
|
+
text: z42.optional(
|
|
903
|
+
z42.union([z42.lazy(() => textParamSchema).and(z42.any()), z42.null()]),
|
|
904
|
+
),
|
|
905
|
+
temperature: z42.optional(z42.union([z42.number(), z42.null()])),
|
|
906
|
+
top_p: z42.optional(z42.union([z42.number(), z42.null()])),
|
|
907
|
+
presence_penalty: z42.optional(z42.union([z42.number(), z42.null()])),
|
|
908
|
+
frequency_penalty: z42.optional(z42.union([z42.number(), z42.null()])),
|
|
909
|
+
parallel_tool_calls: z42.optional(z42.union([z42.boolean(), z42.null()])),
|
|
910
|
+
stream: z42.optional(
|
|
911
|
+
z42
|
|
912
|
+
.boolean()
|
|
913
|
+
.describe('Whether to stream response events as server-sent events.'),
|
|
914
|
+
),
|
|
915
|
+
stream_options: z42.optional(
|
|
916
|
+
z42.union([
|
|
917
|
+
z42.lazy(() => streamOptionsParamSchema).and(z42.any()),
|
|
918
|
+
z42.null(),
|
|
919
|
+
]),
|
|
920
|
+
),
|
|
921
|
+
background: z42.optional(
|
|
922
|
+
z42
|
|
923
|
+
.boolean()
|
|
924
|
+
.describe(
|
|
925
|
+
'Whether to run the request in the background and return immediately.',
|
|
926
|
+
),
|
|
927
|
+
),
|
|
928
|
+
max_output_tokens: z42.optional(z42.union([z42.number().int(), z42.null()])),
|
|
929
|
+
max_tool_calls: z42.optional(z42.union([z42.number().int(), z42.null()])),
|
|
930
|
+
reasoning: z42.optional(
|
|
931
|
+
z42.union([
|
|
932
|
+
z42.lazy(() => reasoningParamSchema).and(z42.any()),
|
|
933
|
+
z42.null(),
|
|
934
|
+
]),
|
|
935
|
+
),
|
|
936
|
+
safety_identifier: z42.optional(z42.union([z42.string(), z42.null()])),
|
|
937
|
+
prompt_cache_key: z42.optional(z42.union([z42.string(), z42.null()])),
|
|
938
|
+
truncation: z42.optional(z42.lazy(() => truncationEnumSchema).and(z42.any())),
|
|
939
|
+
instructions: z42.optional(z42.union([z42.string(), z42.null()])),
|
|
940
|
+
store: z42.optional(
|
|
941
|
+
z42
|
|
942
|
+
.boolean()
|
|
943
|
+
.describe('Whether to store the response so it can be retrieved later.'),
|
|
944
|
+
),
|
|
945
|
+
service_tier: z42.optional(
|
|
946
|
+
z42.lazy(() => serviceTierEnumSchema).and(z42.any()),
|
|
947
|
+
),
|
|
948
|
+
top_logprobs: z42.optional(z42.union([z42.number().int(), z42.null()])),
|
|
949
|
+
})
|
|
600
950
|
|
|
601
951
|
// src/gen/zod/errorSchema.ts
|
|
602
|
-
import { z as z43 } from
|
|
603
|
-
var errorSchema = z43
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
952
|
+
import { z as z43 } from 'zod'
|
|
953
|
+
var errorSchema = z43
|
|
954
|
+
.object({
|
|
955
|
+
code: z43
|
|
956
|
+
.string()
|
|
957
|
+
.describe('A machine-readable error code that was returned.'),
|
|
958
|
+
message: z43
|
|
959
|
+
.string()
|
|
960
|
+
.describe('A human-readable description of the error that was returned.'),
|
|
961
|
+
})
|
|
962
|
+
.describe('An error that occurred while generating the response.')
|
|
607
963
|
|
|
608
964
|
// src/gen/zod/incompleteDetailsSchema.ts
|
|
609
|
-
import { z as z44 } from
|
|
610
|
-
var incompleteDetailsSchema = z44
|
|
611
|
-
|
|
612
|
-
|
|
965
|
+
import { z as z44 } from 'zod'
|
|
966
|
+
var incompleteDetailsSchema = z44
|
|
967
|
+
.object({
|
|
968
|
+
reason: z44
|
|
969
|
+
.string()
|
|
970
|
+
.describe('The reason the response could not be completed.'),
|
|
971
|
+
})
|
|
972
|
+
.describe('Details about why the response was incomplete.')
|
|
613
973
|
|
|
614
974
|
// src/gen/zod/functionCallOutputStatusEnumSchema.ts
|
|
615
|
-
import { z as z45 } from
|
|
616
|
-
var functionCallOutputStatusEnumSchema = z45
|
|
975
|
+
import { z as z45 } from 'zod'
|
|
976
|
+
var functionCallOutputStatusEnumSchema = z45
|
|
977
|
+
.enum(['in_progress', 'completed', 'incomplete'])
|
|
978
|
+
.describe(
|
|
979
|
+
'Similar to `FunctionCallStatus`. All three options are allowed here for compatibility, but because in practice these items will be provided by developers, only `completed` should be used.',
|
|
980
|
+
)
|
|
617
981
|
|
|
618
982
|
// src/gen/zod/inputFileContentSchema.ts
|
|
619
|
-
import { z as z46 } from
|
|
620
|
-
var inputFileContentSchema = z46
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
983
|
+
import { z as z46 } from 'zod'
|
|
984
|
+
var inputFileContentSchema = z46
|
|
985
|
+
.object({
|
|
986
|
+
type: z46
|
|
987
|
+
.enum(['input_file'])
|
|
988
|
+
.default('input_file')
|
|
989
|
+
.describe('The type of the input item. Always `input_file`.'),
|
|
990
|
+
filename: z46.optional(
|
|
991
|
+
z46.string().describe('The name of the file to be sent to the model.'),
|
|
992
|
+
),
|
|
993
|
+
file_url: z46.optional(
|
|
994
|
+
z46.string().describe('The URL of the file to be sent to the model.'),
|
|
995
|
+
),
|
|
996
|
+
})
|
|
997
|
+
.describe('A file input to the model.')
|
|
625
998
|
|
|
626
999
|
// src/gen/zod/inputImageContentSchema.ts
|
|
627
|
-
import { z as z47 } from
|
|
628
|
-
var inputImageContentSchema = z47
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
1000
|
+
import { z as z47 } from 'zod'
|
|
1001
|
+
var inputImageContentSchema = z47
|
|
1002
|
+
.object({
|
|
1003
|
+
type: z47
|
|
1004
|
+
.enum(['input_image'])
|
|
1005
|
+
.default('input_image')
|
|
1006
|
+
.describe('The type of the input item. Always `input_image`.'),
|
|
1007
|
+
image_url: z47.union([z47.string(), z47.null()]),
|
|
1008
|
+
detail: z47.lazy(() => imageDetailSchema).and(z47.any()),
|
|
1009
|
+
})
|
|
1010
|
+
.describe(
|
|
1011
|
+
'An image input to the model. Learn about [image inputs](/docs/guides/vision).',
|
|
1012
|
+
)
|
|
633
1013
|
|
|
634
1014
|
// src/gen/zod/inputTextContentSchema.ts
|
|
635
|
-
import { z as z48 } from
|
|
636
|
-
var inputTextContentSchema = z48
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
1015
|
+
import { z as z48 } from 'zod'
|
|
1016
|
+
var inputTextContentSchema = z48
|
|
1017
|
+
.object({
|
|
1018
|
+
type: z48
|
|
1019
|
+
.enum(['input_text'])
|
|
1020
|
+
.default('input_text')
|
|
1021
|
+
.describe('The type of the input item. Always `input_text`.'),
|
|
1022
|
+
text: z48.string().describe('The text input to the model.'),
|
|
1023
|
+
})
|
|
1024
|
+
.describe('A text input to the model.')
|
|
640
1025
|
|
|
641
1026
|
// src/gen/zod/functionCallOutputSchema.ts
|
|
642
|
-
import { z as z49 } from
|
|
643
|
-
var functionCallOutputSchema = z49
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
1027
|
+
import { z as z49 } from 'zod'
|
|
1028
|
+
var functionCallOutputSchema = z49
|
|
1029
|
+
.object({
|
|
1030
|
+
type: z49
|
|
1031
|
+
.enum(['function_call_output'])
|
|
1032
|
+
.default('function_call_output')
|
|
1033
|
+
.describe(
|
|
1034
|
+
'The type of the function tool call output. Always `function_call_output`.',
|
|
1035
|
+
),
|
|
1036
|
+
id: z49
|
|
1037
|
+
.string()
|
|
1038
|
+
.describe(
|
|
1039
|
+
'The unique ID of the function tool call output. Populated when this item is returned via API.',
|
|
1040
|
+
),
|
|
1041
|
+
call_id: z49
|
|
1042
|
+
.string()
|
|
1043
|
+
.describe(
|
|
1044
|
+
'The unique ID of the function tool call generated by the model.',
|
|
1045
|
+
),
|
|
1046
|
+
output: z49.union([
|
|
1047
|
+
z49.array(
|
|
1048
|
+
z49
|
|
1049
|
+
.union([
|
|
1050
|
+
z49
|
|
1051
|
+
.lazy(() => inputTextContentSchema)
|
|
1052
|
+
.and(
|
|
1053
|
+
z49.object({
|
|
1054
|
+
type: z49.literal('input_text'),
|
|
1055
|
+
}),
|
|
1056
|
+
),
|
|
1057
|
+
z49
|
|
1058
|
+
.lazy(() => inputImageContentSchema)
|
|
1059
|
+
.and(
|
|
1060
|
+
z49.object({
|
|
1061
|
+
type: z49.literal('input_image'),
|
|
1062
|
+
}),
|
|
1063
|
+
),
|
|
1064
|
+
z49
|
|
1065
|
+
.lazy(() => inputFileContentSchema)
|
|
1066
|
+
.and(
|
|
1067
|
+
z49.object({
|
|
1068
|
+
type: z49.literal('input_file'),
|
|
1069
|
+
}),
|
|
1070
|
+
),
|
|
1071
|
+
])
|
|
1072
|
+
.describe('A content part that makes up an input or output item.'),
|
|
1073
|
+
),
|
|
1074
|
+
z49.string(),
|
|
1075
|
+
]),
|
|
1076
|
+
status: z49.lazy(() => functionCallOutputStatusEnumSchema).and(z49.any()),
|
|
1077
|
+
})
|
|
1078
|
+
.describe('A function tool call output that was returned by the tool.')
|
|
656
1079
|
|
|
657
1080
|
// src/gen/zod/functionCallSchema.ts
|
|
658
|
-
import { z as z50 } from
|
|
659
|
-
var functionCallSchema = z50
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
1081
|
+
import { z as z50 } from 'zod'
|
|
1082
|
+
var functionCallSchema = z50
|
|
1083
|
+
.object({
|
|
1084
|
+
type: z50
|
|
1085
|
+
.enum(['function_call'])
|
|
1086
|
+
.default('function_call')
|
|
1087
|
+
.describe('The type of the item. Always `function_call`.'),
|
|
1088
|
+
id: z50.string().describe('The unique ID of the function call item.'),
|
|
1089
|
+
call_id: z50
|
|
1090
|
+
.string()
|
|
1091
|
+
.describe('The unique ID of the function tool call that was generated.'),
|
|
1092
|
+
name: z50.string().describe('The name of the function that was called.'),
|
|
1093
|
+
arguments: z50
|
|
1094
|
+
.string()
|
|
1095
|
+
.describe('The arguments JSON string that was generated.'),
|
|
1096
|
+
status: z50.lazy(() => functionCallStatusSchema).and(z50.any()),
|
|
1097
|
+
})
|
|
1098
|
+
.describe('A function tool call that was generated by the model.')
|
|
667
1099
|
|
|
668
1100
|
// src/gen/zod/messageRoleSchema.ts
|
|
669
|
-
import { z as z51 } from
|
|
670
|
-
var messageRoleSchema = z51.enum([
|
|
1101
|
+
import { z as z51 } from 'zod'
|
|
1102
|
+
var messageRoleSchema = z51.enum(['user', 'assistant', 'system', 'developer'])
|
|
671
1103
|
|
|
672
1104
|
// src/gen/zod/messageStatusSchema.ts
|
|
673
|
-
import { z as z52 } from
|
|
674
|
-
var messageStatusSchema = z52.enum([
|
|
1105
|
+
import { z as z52 } from 'zod'
|
|
1106
|
+
var messageStatusSchema = z52.enum(['in_progress', 'completed', 'incomplete'])
|
|
675
1107
|
|
|
676
1108
|
// src/gen/zod/topLogProbSchema.ts
|
|
677
|
-
import { z as z53 } from
|
|
678
|
-
var topLogProbSchema = z53
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
1109
|
+
import { z as z53 } from 'zod'
|
|
1110
|
+
var topLogProbSchema = z53
|
|
1111
|
+
.object({
|
|
1112
|
+
token: z53.string(),
|
|
1113
|
+
logprob: z53.number(),
|
|
1114
|
+
bytes: z53.array(z53.number().int()),
|
|
1115
|
+
})
|
|
1116
|
+
.describe('The top log probability of a token.')
|
|
683
1117
|
|
|
684
1118
|
// src/gen/zod/logProbSchema.ts
|
|
685
|
-
import { z as z54 } from
|
|
686
|
-
var logProbSchema = z54
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
1119
|
+
import { z as z54 } from 'zod'
|
|
1120
|
+
var logProbSchema = z54
|
|
1121
|
+
.object({
|
|
1122
|
+
token: z54.string(),
|
|
1123
|
+
logprob: z54.number(),
|
|
1124
|
+
bytes: z54.array(z54.number().int()),
|
|
1125
|
+
top_logprobs: z54.array(
|
|
1126
|
+
z54
|
|
1127
|
+
.lazy(() => topLogProbSchema)
|
|
1128
|
+
.describe('The top log probability of a token.'),
|
|
1129
|
+
),
|
|
1130
|
+
})
|
|
1131
|
+
.describe('The log probability of a token.')
|
|
692
1132
|
|
|
693
1133
|
// src/gen/zod/outputTextContentSchema.ts
|
|
694
|
-
import { z as z55 } from
|
|
695
|
-
var outputTextContentSchema = z55
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
1134
|
+
import { z as z55 } from 'zod'
|
|
1135
|
+
var outputTextContentSchema = z55
|
|
1136
|
+
.object({
|
|
1137
|
+
type: z55
|
|
1138
|
+
.enum(['output_text'])
|
|
1139
|
+
.default('output_text')
|
|
1140
|
+
.describe('The type of the output text. Always `output_text`.'),
|
|
1141
|
+
text: z55.string().describe('The text output from the model.'),
|
|
1142
|
+
annotations: z55
|
|
1143
|
+
.array(
|
|
1144
|
+
z55
|
|
1145
|
+
.lazy(() => annotationSchema)
|
|
1146
|
+
.describe('An annotation that applies to a span of output text.'),
|
|
1147
|
+
)
|
|
1148
|
+
.describe('The annotations of the text output.'),
|
|
1149
|
+
logprobs: z55.array(
|
|
1150
|
+
z55.lazy(() => logProbSchema).describe('The log probability of a token.'),
|
|
1151
|
+
),
|
|
1152
|
+
})
|
|
1153
|
+
.describe('A text output from the model.')
|
|
701
1154
|
|
|
702
1155
|
// src/gen/zod/reasoningTextContentSchema.ts
|
|
703
|
-
import { z as z56 } from
|
|
704
|
-
var reasoningTextContentSchema = z56
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
1156
|
+
import { z as z56 } from 'zod'
|
|
1157
|
+
var reasoningTextContentSchema = z56
|
|
1158
|
+
.object({
|
|
1159
|
+
type: z56
|
|
1160
|
+
.enum(['reasoning_text'])
|
|
1161
|
+
.default('reasoning_text')
|
|
1162
|
+
.describe('The type of the reasoning text. Always `reasoning_text`.'),
|
|
1163
|
+
text: z56.string().describe('The reasoning text from the model.'),
|
|
1164
|
+
})
|
|
1165
|
+
.describe('Reasoning text from the model.')
|
|
708
1166
|
|
|
709
1167
|
// src/gen/zod/refusalContentSchema.ts
|
|
710
|
-
import { z as z57 } from
|
|
711
|
-
var refusalContentSchema = z57
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
1168
|
+
import { z as z57 } from 'zod'
|
|
1169
|
+
var refusalContentSchema = z57
|
|
1170
|
+
.object({
|
|
1171
|
+
type: z57
|
|
1172
|
+
.enum(['refusal'])
|
|
1173
|
+
.default('refusal')
|
|
1174
|
+
.describe('The type of the refusal. Always `refusal`.'),
|
|
1175
|
+
refusal: z57.string().describe('The refusal explanation from the model.'),
|
|
1176
|
+
})
|
|
1177
|
+
.describe('A refusal from the model.')
|
|
715
1178
|
|
|
716
1179
|
// src/gen/zod/summaryTextContentSchema.ts
|
|
717
|
-
import { z as z58 } from
|
|
718
|
-
var summaryTextContentSchema = z58
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
1180
|
+
import { z as z58 } from 'zod'
|
|
1181
|
+
var summaryTextContentSchema = z58
|
|
1182
|
+
.object({
|
|
1183
|
+
type: z58
|
|
1184
|
+
.enum(['summary_text'])
|
|
1185
|
+
.default('summary_text')
|
|
1186
|
+
.describe('The type of the object. Always `summary_text`.'),
|
|
1187
|
+
text: z58
|
|
1188
|
+
.string()
|
|
1189
|
+
.describe('A summary of the reasoning output from the model so far.'),
|
|
1190
|
+
})
|
|
1191
|
+
.describe('A summary text from the model.')
|
|
722
1192
|
|
|
723
1193
|
// src/gen/zod/textContentSchema.ts
|
|
724
|
-
import { z as z59 } from
|
|
725
|
-
var textContentSchema = z59
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
1194
|
+
import { z as z59 } from 'zod'
|
|
1195
|
+
var textContentSchema = z59
|
|
1196
|
+
.object({
|
|
1197
|
+
type: z59.enum(['text']).default('text'),
|
|
1198
|
+
text: z59.string(),
|
|
1199
|
+
})
|
|
1200
|
+
.describe('A text content.')
|
|
729
1201
|
|
|
730
1202
|
// src/gen/zod/messageSchema.ts
|
|
731
|
-
import { z as z60 } from
|
|
732
|
-
var messageSchema = z60
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
1203
|
+
import { z as z60 } from 'zod'
|
|
1204
|
+
var messageSchema = z60
|
|
1205
|
+
.object({
|
|
1206
|
+
type: z60
|
|
1207
|
+
.enum(['message'])
|
|
1208
|
+
.default('message')
|
|
1209
|
+
.describe('The type of the message. Always set to `message`.'),
|
|
1210
|
+
id: z60.string().describe('The unique ID of the message.'),
|
|
1211
|
+
status: z60.lazy(() => messageStatusSchema).and(z60.any()),
|
|
1212
|
+
role: z60.lazy(() => messageRoleSchema).and(z60.any()),
|
|
1213
|
+
content: z60
|
|
1214
|
+
.array(
|
|
1215
|
+
z60
|
|
1216
|
+
.union([
|
|
1217
|
+
z60
|
|
1218
|
+
.lazy(() => inputTextContentSchema)
|
|
1219
|
+
.and(
|
|
1220
|
+
z60.object({
|
|
1221
|
+
type: z60.literal('input_text'),
|
|
1222
|
+
}),
|
|
1223
|
+
),
|
|
1224
|
+
z60
|
|
1225
|
+
.lazy(() => outputTextContentSchema)
|
|
1226
|
+
.and(
|
|
1227
|
+
z60.object({
|
|
1228
|
+
type: z60.literal('output_text'),
|
|
1229
|
+
}),
|
|
1230
|
+
),
|
|
1231
|
+
z60
|
|
1232
|
+
.lazy(() => textContentSchema)
|
|
1233
|
+
.and(
|
|
1234
|
+
z60.object({
|
|
1235
|
+
type: z60.literal('text'),
|
|
1236
|
+
}),
|
|
1237
|
+
),
|
|
1238
|
+
z60
|
|
1239
|
+
.lazy(() => summaryTextContentSchema)
|
|
1240
|
+
.and(
|
|
1241
|
+
z60.object({
|
|
1242
|
+
type: z60.literal('summary_text'),
|
|
1243
|
+
}),
|
|
1244
|
+
),
|
|
1245
|
+
z60
|
|
1246
|
+
.lazy(() => reasoningTextContentSchema)
|
|
1247
|
+
.and(
|
|
1248
|
+
z60.object({
|
|
1249
|
+
type: z60.literal('reasoning_text'),
|
|
1250
|
+
}),
|
|
1251
|
+
),
|
|
1252
|
+
z60
|
|
1253
|
+
.lazy(() => refusalContentSchema)
|
|
1254
|
+
.and(
|
|
1255
|
+
z60.object({
|
|
1256
|
+
type: z60.literal('refusal'),
|
|
1257
|
+
}),
|
|
1258
|
+
),
|
|
1259
|
+
z60
|
|
1260
|
+
.lazy(() => inputImageContentSchema)
|
|
1261
|
+
.and(
|
|
1262
|
+
z60.object({
|
|
1263
|
+
type: z60.literal('input_image'),
|
|
1264
|
+
}),
|
|
1265
|
+
),
|
|
1266
|
+
z60
|
|
1267
|
+
.lazy(() => inputFileContentSchema)
|
|
1268
|
+
.and(
|
|
1269
|
+
z60.object({
|
|
1270
|
+
type: z60.literal('input_file'),
|
|
1271
|
+
}),
|
|
1272
|
+
),
|
|
1273
|
+
z60
|
|
1274
|
+
.lazy(() => inputVideoContentSchema)
|
|
1275
|
+
.and(
|
|
1276
|
+
z60.object({
|
|
1277
|
+
type: z60.literal('input_video'),
|
|
1278
|
+
}),
|
|
1279
|
+
),
|
|
1280
|
+
])
|
|
1281
|
+
.describe('A content part that makes up an input or output item.'),
|
|
1282
|
+
)
|
|
1283
|
+
.describe('The content of the message'),
|
|
1284
|
+
})
|
|
1285
|
+
.describe('A message to or from the model.')
|
|
757
1286
|
|
|
758
1287
|
// src/gen/zod/reasoningBodySchema.ts
|
|
759
|
-
import { z as z61 } from
|
|
760
|
-
var reasoningBodySchema = z61
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
})
|
|
1288
|
+
import { z as z61 } from 'zod'
|
|
1289
|
+
var reasoningBodySchema = z61
|
|
1290
|
+
.object({
|
|
1291
|
+
type: z61
|
|
1292
|
+
.enum(['reasoning'])
|
|
1293
|
+
.default('reasoning')
|
|
1294
|
+
.describe('The type of the item. Always `reasoning`.'),
|
|
1295
|
+
id: z61.string().describe('The unique ID of the reasoning item.'),
|
|
1296
|
+
content: z61.optional(
|
|
1297
|
+
z61
|
|
1298
|
+
.array(
|
|
1299
|
+
z61
|
|
1300
|
+
.union([
|
|
1301
|
+
z61
|
|
1302
|
+
.lazy(() => inputTextContentSchema)
|
|
1303
|
+
.and(
|
|
1304
|
+
z61.object({
|
|
1305
|
+
type: z61.literal('input_text'),
|
|
1306
|
+
}),
|
|
1307
|
+
),
|
|
1308
|
+
z61
|
|
1309
|
+
.lazy(() => outputTextContentSchema)
|
|
1310
|
+
.and(
|
|
1311
|
+
z61.object({
|
|
1312
|
+
type: z61.literal('output_text'),
|
|
1313
|
+
}),
|
|
1314
|
+
),
|
|
1315
|
+
z61
|
|
1316
|
+
.lazy(() => textContentSchema)
|
|
1317
|
+
.and(
|
|
1318
|
+
z61.object({
|
|
1319
|
+
type: z61.literal('text'),
|
|
1320
|
+
}),
|
|
1321
|
+
),
|
|
1322
|
+
z61
|
|
1323
|
+
.lazy(() => summaryTextContentSchema)
|
|
1324
|
+
.and(
|
|
1325
|
+
z61.object({
|
|
1326
|
+
type: z61.literal('summary_text'),
|
|
1327
|
+
}),
|
|
1328
|
+
),
|
|
1329
|
+
z61
|
|
1330
|
+
.lazy(() => reasoningTextContentSchema)
|
|
1331
|
+
.and(
|
|
1332
|
+
z61.object({
|
|
1333
|
+
type: z61.literal('reasoning_text'),
|
|
1334
|
+
}),
|
|
1335
|
+
),
|
|
1336
|
+
z61
|
|
1337
|
+
.lazy(() => refusalContentSchema)
|
|
1338
|
+
.and(
|
|
1339
|
+
z61.object({
|
|
1340
|
+
type: z61.literal('refusal'),
|
|
1341
|
+
}),
|
|
1342
|
+
),
|
|
1343
|
+
z61
|
|
1344
|
+
.lazy(() => inputImageContentSchema)
|
|
1345
|
+
.and(
|
|
1346
|
+
z61.object({
|
|
1347
|
+
type: z61.literal('input_image'),
|
|
1348
|
+
}),
|
|
1349
|
+
),
|
|
1350
|
+
z61
|
|
1351
|
+
.lazy(() => inputFileContentSchema)
|
|
1352
|
+
.and(
|
|
1353
|
+
z61.object({
|
|
1354
|
+
type: z61.literal('input_file'),
|
|
1355
|
+
}),
|
|
1356
|
+
),
|
|
1357
|
+
])
|
|
1358
|
+
.describe('A content part that makes up an input or output item.'),
|
|
1359
|
+
)
|
|
1360
|
+
.describe('The reasoning content that was generated.'),
|
|
1361
|
+
),
|
|
1362
|
+
summary: z61
|
|
1363
|
+
.array(
|
|
1364
|
+
z61
|
|
1365
|
+
.union([
|
|
1366
|
+
z61
|
|
1367
|
+
.lazy(() => inputTextContentSchema)
|
|
1368
|
+
.and(
|
|
1369
|
+
z61.object({
|
|
1370
|
+
type: z61.literal('input_text'),
|
|
1371
|
+
}),
|
|
1372
|
+
),
|
|
1373
|
+
z61
|
|
1374
|
+
.lazy(() => outputTextContentSchema)
|
|
1375
|
+
.and(
|
|
1376
|
+
z61.object({
|
|
1377
|
+
type: z61.literal('output_text'),
|
|
1378
|
+
}),
|
|
1379
|
+
),
|
|
1380
|
+
z61
|
|
1381
|
+
.lazy(() => textContentSchema)
|
|
1382
|
+
.and(
|
|
1383
|
+
z61.object({
|
|
1384
|
+
type: z61.literal('text'),
|
|
1385
|
+
}),
|
|
1386
|
+
),
|
|
1387
|
+
z61
|
|
1388
|
+
.lazy(() => summaryTextContentSchema)
|
|
1389
|
+
.and(
|
|
1390
|
+
z61.object({
|
|
1391
|
+
type: z61.literal('summary_text'),
|
|
1392
|
+
}),
|
|
1393
|
+
),
|
|
1394
|
+
z61
|
|
1395
|
+
.lazy(() => reasoningTextContentSchema)
|
|
1396
|
+
.and(
|
|
1397
|
+
z61.object({
|
|
1398
|
+
type: z61.literal('reasoning_text'),
|
|
1399
|
+
}),
|
|
1400
|
+
),
|
|
1401
|
+
z61
|
|
1402
|
+
.lazy(() => refusalContentSchema)
|
|
1403
|
+
.and(
|
|
1404
|
+
z61.object({
|
|
1405
|
+
type: z61.literal('refusal'),
|
|
1406
|
+
}),
|
|
1407
|
+
),
|
|
1408
|
+
z61
|
|
1409
|
+
.lazy(() => inputImageContentSchema)
|
|
1410
|
+
.and(
|
|
1411
|
+
z61.object({
|
|
1412
|
+
type: z61.literal('input_image'),
|
|
1413
|
+
}),
|
|
1414
|
+
),
|
|
1415
|
+
z61
|
|
1416
|
+
.lazy(() => inputFileContentSchema)
|
|
1417
|
+
.and(
|
|
1418
|
+
z61.object({
|
|
1419
|
+
type: z61.literal('input_file'),
|
|
1420
|
+
}),
|
|
1421
|
+
),
|
|
1422
|
+
])
|
|
1423
|
+
.describe('A content part that makes up an input or output item.'),
|
|
1424
|
+
)
|
|
1425
|
+
.describe('The reasoning summary content that was generated.'),
|
|
1426
|
+
encrypted_content: z61.optional(
|
|
1427
|
+
z61
|
|
1428
|
+
.string()
|
|
1429
|
+
.describe('The encrypted reasoning content that was generated.'),
|
|
1430
|
+
),
|
|
1431
|
+
})
|
|
1432
|
+
.describe('A reasoning item that was generated by the model.')
|
|
799
1433
|
|
|
800
1434
|
// src/gen/zod/itemFieldSchema.ts
|
|
801
|
-
import { z as z62 } from
|
|
802
|
-
var itemFieldSchema = z62
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
1435
|
+
import { z as z62 } from 'zod'
|
|
1436
|
+
var itemFieldSchema = z62
|
|
1437
|
+
.union([
|
|
1438
|
+
z62
|
|
1439
|
+
.lazy(() => messageSchema)
|
|
1440
|
+
.and(
|
|
1441
|
+
z62.object({
|
|
1442
|
+
type: z62.literal('message'),
|
|
1443
|
+
}),
|
|
1444
|
+
),
|
|
1445
|
+
z62
|
|
1446
|
+
.lazy(() => functionCallSchema)
|
|
1447
|
+
.and(
|
|
1448
|
+
z62.object({
|
|
1449
|
+
type: z62.literal('function_call'),
|
|
1450
|
+
}),
|
|
1451
|
+
),
|
|
1452
|
+
z62
|
|
1453
|
+
.lazy(() => functionCallOutputSchema)
|
|
1454
|
+
.and(
|
|
1455
|
+
z62.object({
|
|
1456
|
+
type: z62.literal('function_call_output'),
|
|
1457
|
+
}),
|
|
1458
|
+
),
|
|
1459
|
+
z62
|
|
1460
|
+
.lazy(() => reasoningBodySchema)
|
|
1461
|
+
.and(
|
|
1462
|
+
z62.object({
|
|
1463
|
+
type: z62.literal('reasoning'),
|
|
1464
|
+
}),
|
|
1465
|
+
),
|
|
1466
|
+
])
|
|
1467
|
+
.describe(
|
|
1468
|
+
'An item representing a message, tool call, tool output, reasoning, or other response element.',
|
|
1469
|
+
)
|
|
811
1470
|
|
|
812
1471
|
// src/gen/zod/reasoningSchema.ts
|
|
813
|
-
import { z as z63 } from
|
|
814
|
-
var reasoningSchema = z63
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
1472
|
+
import { z as z63 } from 'zod'
|
|
1473
|
+
var reasoningSchema = z63
|
|
1474
|
+
.object({
|
|
1475
|
+
effort: z63.union([z63.lazy(() => reasoningEffortEnumSchema), z63.null()]),
|
|
1476
|
+
summary: z63.union([
|
|
1477
|
+
z63.lazy(() => reasoningSummaryEnumSchema).and(z63.any()),
|
|
1478
|
+
z63.null(),
|
|
1479
|
+
]),
|
|
1480
|
+
})
|
|
1481
|
+
.describe(
|
|
1482
|
+
'Reasoning configuration and metadata that were used for the response.',
|
|
1483
|
+
)
|
|
818
1484
|
|
|
819
1485
|
// src/gen/zod/jsonObjectResponseFormatSchema.ts
|
|
820
|
-
import { z as z64 } from
|
|
1486
|
+
import { z as z64 } from 'zod'
|
|
821
1487
|
var jsonObjectResponseFormatSchema = z64.object({
|
|
822
|
-
|
|
823
|
-
})
|
|
1488
|
+
type: z64.enum(['json_object']).default('json_object'),
|
|
1489
|
+
})
|
|
824
1490
|
|
|
825
1491
|
// src/gen/zod/jsonSchemaResponseFormatSchema.ts
|
|
826
|
-
import { z as z65 } from
|
|
1492
|
+
import { z as z65 } from 'zod'
|
|
827
1493
|
var jsonSchemaResponseFormatSchema = z65.object({
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
})
|
|
1494
|
+
type: z65.enum(['json_schema']).default('json_schema'),
|
|
1495
|
+
name: z65.string(),
|
|
1496
|
+
description: z65.union([z65.string(), z65.null()]),
|
|
1497
|
+
schema: z65.null(),
|
|
1498
|
+
strict: z65.boolean(),
|
|
1499
|
+
})
|
|
834
1500
|
|
|
835
1501
|
// src/gen/zod/textFieldSchema.ts
|
|
836
|
-
import { z as z66 } from
|
|
1502
|
+
import { z as z66 } from 'zod'
|
|
837
1503
|
var textFieldSchema = z66.object({
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
1504
|
+
format: z66.union([
|
|
1505
|
+
z66.lazy(() => textResponseFormatSchema),
|
|
1506
|
+
z66.lazy(() => jsonObjectResponseFormatSchema),
|
|
1507
|
+
z66.lazy(() => jsonSchemaResponseFormatSchema),
|
|
1508
|
+
]),
|
|
1509
|
+
verbosity: z66.optional(z66.lazy(() => verbosityEnumSchema)),
|
|
1510
|
+
})
|
|
841
1511
|
|
|
842
1512
|
// src/gen/zod/functionToolSchema.ts
|
|
843
|
-
import { z as z67 } from
|
|
844
|
-
var functionToolSchema = z67
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
1513
|
+
import { z as z67 } from 'zod'
|
|
1514
|
+
var functionToolSchema = z67
|
|
1515
|
+
.object({
|
|
1516
|
+
type: z67
|
|
1517
|
+
.enum(['function'])
|
|
1518
|
+
.default('function')
|
|
1519
|
+
.describe('The type of the function tool. Always `function`.'),
|
|
1520
|
+
name: z67.string().describe('The name of the function to call.'),
|
|
1521
|
+
description: z67.union([z67.string(), z67.null()]),
|
|
1522
|
+
parameters: z67.union([z67.object({}).catchall(z67.any()), z67.null()]),
|
|
1523
|
+
strict: z67.union([z67.boolean(), z67.null()]),
|
|
1524
|
+
})
|
|
1525
|
+
.describe(
|
|
1526
|
+
'Defines a function in your own code the model can choose to call. Learn more about [function calling](https://platform.openai.com/docs/guides/function-calling).',
|
|
1527
|
+
)
|
|
851
1528
|
|
|
852
1529
|
// src/gen/zod/toolSchema.ts
|
|
853
|
-
import { z as z68 } from
|
|
854
|
-
var toolSchema = z68
|
|
855
|
-
|
|
856
|
-
|
|
1530
|
+
import { z as z68 } from 'zod'
|
|
1531
|
+
var toolSchema = z68
|
|
1532
|
+
.lazy(() => functionToolSchema)
|
|
1533
|
+
.and(
|
|
1534
|
+
z68.object({
|
|
1535
|
+
type: z68.literal('function'),
|
|
1536
|
+
}),
|
|
1537
|
+
)
|
|
1538
|
+
.describe('A tool that can be used to generate a response.')
|
|
857
1539
|
|
|
858
1540
|
// src/gen/zod/inputTokensDetailsSchema.ts
|
|
859
|
-
import { z as z69 } from
|
|
860
|
-
var inputTokensDetailsSchema = z69
|
|
861
|
-
|
|
862
|
-
|
|
1541
|
+
import { z as z69 } from 'zod'
|
|
1542
|
+
var inputTokensDetailsSchema = z69
|
|
1543
|
+
.object({
|
|
1544
|
+
cached_tokens: z69
|
|
1545
|
+
.number()
|
|
1546
|
+
.int()
|
|
1547
|
+
.describe('The number of input tokens that were served from cache.'),
|
|
1548
|
+
})
|
|
1549
|
+
.describe('A breakdown of input token usage that was recorded.')
|
|
863
1550
|
|
|
864
1551
|
// src/gen/zod/outputTokensDetailsSchema.ts
|
|
865
|
-
import { z as z70 } from
|
|
866
|
-
var outputTokensDetailsSchema = z70
|
|
867
|
-
|
|
868
|
-
|
|
1552
|
+
import { z as z70 } from 'zod'
|
|
1553
|
+
var outputTokensDetailsSchema = z70
|
|
1554
|
+
.object({
|
|
1555
|
+
reasoning_tokens: z70
|
|
1556
|
+
.number()
|
|
1557
|
+
.int()
|
|
1558
|
+
.describe(
|
|
1559
|
+
'The number of output tokens that were attributed to reasoning.',
|
|
1560
|
+
),
|
|
1561
|
+
})
|
|
1562
|
+
.describe('A breakdown of output token usage that was recorded.')
|
|
869
1563
|
|
|
870
1564
|
// src/gen/zod/usageSchema.ts
|
|
871
|
-
import { z as z71 } from
|
|
872
|
-
var usageSchema = z71
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
1565
|
+
import { z as z71 } from 'zod'
|
|
1566
|
+
var usageSchema = z71
|
|
1567
|
+
.object({
|
|
1568
|
+
input_tokens: z71
|
|
1569
|
+
.number()
|
|
1570
|
+
.int()
|
|
1571
|
+
.describe(
|
|
1572
|
+
'The number of input tokens that were used to generate the response.',
|
|
1573
|
+
),
|
|
1574
|
+
output_tokens: z71
|
|
1575
|
+
.number()
|
|
1576
|
+
.int()
|
|
1577
|
+
.describe(
|
|
1578
|
+
'The number of output tokens that were generated by the model.',
|
|
1579
|
+
),
|
|
1580
|
+
total_tokens: z71
|
|
1581
|
+
.number()
|
|
1582
|
+
.int()
|
|
1583
|
+
.describe('The total number of tokens that were used.'),
|
|
1584
|
+
input_tokens_details: z71
|
|
1585
|
+
.lazy(() => inputTokensDetailsSchema)
|
|
1586
|
+
.and(z71.any()),
|
|
1587
|
+
output_tokens_details: z71
|
|
1588
|
+
.lazy(() => outputTokensDetailsSchema)
|
|
1589
|
+
.and(z71.any()),
|
|
1590
|
+
})
|
|
1591
|
+
.describe('Token usage statistics that were recorded for the response.')
|
|
879
1592
|
|
|
880
1593
|
// src/gen/zod/responseResourceSchema.ts
|
|
881
|
-
import { z as z72 } from
|
|
882
|
-
var responseResourceSchema = z72
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
1594
|
+
import { z as z72 } from 'zod'
|
|
1595
|
+
var responseResourceSchema = z72
|
|
1596
|
+
.object({
|
|
1597
|
+
id: z72
|
|
1598
|
+
.string()
|
|
1599
|
+
.describe('The unique ID of the response that was created.'),
|
|
1600
|
+
object: z72
|
|
1601
|
+
.enum(['response'])
|
|
1602
|
+
.default('response')
|
|
1603
|
+
.describe('The object type, which was always `response`.'),
|
|
1604
|
+
created_at: z72
|
|
1605
|
+
.number()
|
|
1606
|
+
.int()
|
|
1607
|
+
.describe(
|
|
1608
|
+
'The Unix timestamp (in seconds) for when the response was created.',
|
|
1609
|
+
),
|
|
1610
|
+
completed_at: z72.union([z72.number().int(), z72.null()]),
|
|
1611
|
+
status: z72.string().describe('The status that was set for the response.'),
|
|
1612
|
+
incomplete_details: z72.union([
|
|
1613
|
+
z72.lazy(() => incompleteDetailsSchema).and(z72.any()),
|
|
1614
|
+
z72.null(),
|
|
1615
|
+
]),
|
|
1616
|
+
model: z72.string().describe('The model that generated this response.'),
|
|
1617
|
+
previous_response_id: z72.union([z72.string(), z72.null()]),
|
|
1618
|
+
instructions: z72.union([z72.string(), z72.null()]),
|
|
1619
|
+
output: z72
|
|
1620
|
+
.array(
|
|
1621
|
+
z72
|
|
1622
|
+
.lazy(() => itemFieldSchema)
|
|
1623
|
+
.describe(
|
|
1624
|
+
'An item representing a message, tool call, tool output, reasoning, or other response element.',
|
|
1625
|
+
),
|
|
1626
|
+
)
|
|
1627
|
+
.describe('The output items that were generated by the model.'),
|
|
1628
|
+
error: z72.union([z72.lazy(() => errorSchema).and(z72.any()), z72.null()]),
|
|
1629
|
+
tools: z72
|
|
1630
|
+
.array(
|
|
1631
|
+
z72
|
|
1632
|
+
.lazy(() => toolSchema)
|
|
1633
|
+
.describe('A tool that can be used to generate a response.'),
|
|
1634
|
+
)
|
|
1635
|
+
.describe(
|
|
1636
|
+
'The tools that were available to the model during response generation.',
|
|
1637
|
+
),
|
|
1638
|
+
tool_choice: z72.union([
|
|
1639
|
+
z72.lazy(() => functionToolChoiceSchema),
|
|
1640
|
+
z72.lazy(() => toolChoiceValueEnumSchema),
|
|
1641
|
+
z72.lazy(() => allowedToolChoiceSchema),
|
|
1642
|
+
]),
|
|
1643
|
+
truncation: z72.lazy(() => truncationEnumSchema).and(z72.any()),
|
|
1644
|
+
parallel_tool_calls: z72
|
|
1645
|
+
.boolean()
|
|
1646
|
+
.describe(
|
|
1647
|
+
'Whether the model was allowed to call multiple tools in parallel.',
|
|
1648
|
+
),
|
|
1649
|
+
text: z72.lazy(() => textFieldSchema).and(z72.any()),
|
|
1650
|
+
top_p: z72
|
|
1651
|
+
.number()
|
|
1652
|
+
.describe(
|
|
1653
|
+
'The nucleus sampling parameter that was used for this response.',
|
|
1654
|
+
),
|
|
1655
|
+
presence_penalty: z72
|
|
1656
|
+
.number()
|
|
1657
|
+
.describe(
|
|
1658
|
+
'The presence penalty that was used to penalize new tokens based on whether they appear in the text so far.',
|
|
1659
|
+
),
|
|
1660
|
+
frequency_penalty: z72
|
|
1661
|
+
.number()
|
|
1662
|
+
.describe(
|
|
1663
|
+
'The frequency penalty that was used to penalize new tokens based on their frequency in the text so far.',
|
|
1664
|
+
),
|
|
1665
|
+
top_logprobs: z72
|
|
1666
|
+
.number()
|
|
1667
|
+
.int()
|
|
1668
|
+
.describe(
|
|
1669
|
+
'The number of most likely tokens that were returned at each position, along with their log probabilities.',
|
|
1670
|
+
),
|
|
1671
|
+
temperature: z72
|
|
1672
|
+
.number()
|
|
1673
|
+
.describe('The sampling temperature that was used for this response.'),
|
|
1674
|
+
reasoning: z72.union([
|
|
1675
|
+
z72.lazy(() => reasoningSchema).and(z72.any()),
|
|
1676
|
+
z72.null(),
|
|
1677
|
+
]),
|
|
1678
|
+
usage: z72.union([z72.lazy(() => usageSchema).and(z72.any()), z72.null()]),
|
|
1679
|
+
max_output_tokens: z72.union([z72.number().int(), z72.null()]),
|
|
1680
|
+
max_tool_calls: z72.union([z72.number().int(), z72.null()]),
|
|
1681
|
+
store: z72
|
|
1682
|
+
.boolean()
|
|
1683
|
+
.describe(
|
|
1684
|
+
'Whether this response was stored so it can be retrieved later.',
|
|
1685
|
+
),
|
|
1686
|
+
background: z72
|
|
1687
|
+
.boolean()
|
|
1688
|
+
.describe('Whether this request was run in the background.'),
|
|
1689
|
+
service_tier: z72
|
|
1690
|
+
.string()
|
|
1691
|
+
.describe('The service tier that was used for this response.'),
|
|
1692
|
+
metadata: z72
|
|
1693
|
+
.any()
|
|
1694
|
+
.describe(
|
|
1695
|
+
'Developer-defined metadata that was associated with the response.',
|
|
1696
|
+
),
|
|
1697
|
+
safety_identifier: z72.union([z72.string(), z72.null()]),
|
|
1698
|
+
prompt_cache_key: z72.union([z72.string(), z72.null()]),
|
|
1699
|
+
})
|
|
1700
|
+
.describe(
|
|
1701
|
+
'The complete response object that was returned by the Responses API.',
|
|
1702
|
+
)
|
|
915
1703
|
|
|
916
1704
|
// src/gen/zod/createresponseSchema.ts
|
|
917
|
-
import { z as z73 } from
|
|
918
|
-
var createresponse200Schema = z73
|
|
919
|
-
|
|
920
|
-
|
|
1705
|
+
import { z as z73 } from 'zod'
|
|
1706
|
+
var createresponse200Schema = z73
|
|
1707
|
+
.lazy(() => responseResourceSchema)
|
|
1708
|
+
.describe(
|
|
1709
|
+
'The complete response object that was returned by the Responses API.',
|
|
1710
|
+
)
|
|
1711
|
+
var createresponseMutationRequestSchema = z73.lazy(
|
|
1712
|
+
() => createResponseBodySchema,
|
|
1713
|
+
)
|
|
1714
|
+
var createresponseMutationResponseSchema = z73.lazy(
|
|
1715
|
+
() => createresponse200Schema,
|
|
1716
|
+
)
|
|
921
1717
|
|
|
922
1718
|
// src/gen/zod/detailEnumSchema.ts
|
|
923
|
-
import { z as z74 } from
|
|
924
|
-
var detailEnumSchema = z74.enum([
|
|
1719
|
+
import { z as z74 } from 'zod'
|
|
1720
|
+
var detailEnumSchema = z74.enum(['low', 'high', 'auto'])
|
|
925
1721
|
|
|
926
1722
|
// src/gen/zod/developerMessageItemParamSchema.ts
|
|
927
|
-
import { z as z75 } from
|
|
1723
|
+
import { z as z75 } from 'zod'
|
|
928
1724
|
var developerMessageItemParamSchema = z75.object({
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
1725
|
+
id: z75.optional(z75.union([z75.string(), z75.null()])),
|
|
1726
|
+
type: z75
|
|
1727
|
+
.enum(['message'])
|
|
1728
|
+
.default('message')
|
|
1729
|
+
.describe('The item type. Always `message`.'),
|
|
1730
|
+
role: z75
|
|
1731
|
+
.enum(['developer'])
|
|
1732
|
+
.default('developer')
|
|
1733
|
+
.describe('The message role. Always `developer`.'),
|
|
1734
|
+
content: z75
|
|
1735
|
+
.union([
|
|
1736
|
+
z75.array(
|
|
1737
|
+
z75
|
|
1738
|
+
.lazy(() => inputTextContentParamSchema)
|
|
1739
|
+
.and(
|
|
1740
|
+
z75.object({
|
|
1741
|
+
type: z75.literal('input_text'),
|
|
1742
|
+
}),
|
|
1743
|
+
),
|
|
1744
|
+
),
|
|
1745
|
+
z75.string(),
|
|
1746
|
+
])
|
|
1747
|
+
.describe('The message content, as an array of content parts.'),
|
|
1748
|
+
status: z75.optional(z75.union([z75.string(), z75.null()])),
|
|
1749
|
+
})
|
|
937
1750
|
|
|
938
1751
|
// src/gen/zod/errorPayloadSchema.ts
|
|
939
|
-
import { z as z76 } from
|
|
940
|
-
var errorPayloadSchema = z76
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
1752
|
+
import { z as z76 } from 'zod'
|
|
1753
|
+
var errorPayloadSchema = z76
|
|
1754
|
+
.object({
|
|
1755
|
+
type: z76.string().describe('The error type that was emitted.'),
|
|
1756
|
+
code: z76.union([z76.string(), z76.null()]),
|
|
1757
|
+
message: z76
|
|
1758
|
+
.string()
|
|
1759
|
+
.describe('The human-readable error message that was emitted.'),
|
|
1760
|
+
param: z76.union([z76.string(), z76.null()]),
|
|
1761
|
+
headers: z76.optional(
|
|
1762
|
+
z76
|
|
1763
|
+
.object({})
|
|
1764
|
+
.catchall(z76.string().describe('The header value that was emitted.'))
|
|
1765
|
+
.describe(
|
|
1766
|
+
'The response headers that were emitted with the error, if any.',
|
|
1767
|
+
),
|
|
1768
|
+
),
|
|
1769
|
+
})
|
|
1770
|
+
.describe('An error payload that was emitted for a streaming error event.')
|
|
947
1771
|
|
|
948
1772
|
// src/gen/zod/errorStreamingEventSchema.ts
|
|
949
|
-
import { z as z77 } from
|
|
950
|
-
var errorStreamingEventSchema = z77
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
1773
|
+
import { z as z77 } from 'zod'
|
|
1774
|
+
var errorStreamingEventSchema = z77
|
|
1775
|
+
.object({
|
|
1776
|
+
type: z77
|
|
1777
|
+
.enum(['error'])
|
|
1778
|
+
.default('error')
|
|
1779
|
+
.describe('The type of the event, always `error`.'),
|
|
1780
|
+
sequence_number: z77
|
|
1781
|
+
.number()
|
|
1782
|
+
.int()
|
|
1783
|
+
.describe('The sequence number of the event that was emitted.'),
|
|
1784
|
+
error: z77.lazy(() => errorPayloadSchema).and(z77.any()),
|
|
1785
|
+
})
|
|
1786
|
+
.describe('A streaming event that indicated an error was emitted.')
|
|
955
1787
|
|
|
956
1788
|
// src/gen/zod/functionCallItemStatusSchema.ts
|
|
957
|
-
import { z as z78 } from
|
|
958
|
-
var functionCallItemStatusSchema = z78.enum([
|
|
1789
|
+
import { z as z78 } from 'zod'
|
|
1790
|
+
var functionCallItemStatusSchema = z78.enum([
|
|
1791
|
+
'in_progress',
|
|
1792
|
+
'completed',
|
|
1793
|
+
'incomplete',
|
|
1794
|
+
])
|
|
959
1795
|
|
|
960
1796
|
// src/gen/zod/responseCompletedStreamingEventSchema.ts
|
|
961
|
-
import { z as z79 } from
|
|
962
|
-
var responseCompletedStreamingEventSchema = z79
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
1797
|
+
import { z as z79 } from 'zod'
|
|
1798
|
+
var responseCompletedStreamingEventSchema = z79
|
|
1799
|
+
.object({
|
|
1800
|
+
type: z79
|
|
1801
|
+
.enum(['response.completed'])
|
|
1802
|
+
.default('response.completed')
|
|
1803
|
+
.describe('The type of the event, always `response.completed`.'),
|
|
1804
|
+
sequence_number: z79
|
|
1805
|
+
.number()
|
|
1806
|
+
.int()
|
|
1807
|
+
.describe('The sequence number of the event that was emitted.'),
|
|
1808
|
+
response: z79.lazy(() => responseResourceSchema).and(z79.any()),
|
|
1809
|
+
})
|
|
1810
|
+
.describe('A streaming event that indicated the response was completed.')
|
|
967
1811
|
|
|
968
1812
|
// src/gen/zod/responseContentPartAddedStreamingEventSchema.ts
|
|
969
|
-
import { z as z80 } from
|
|
970
|
-
var responseContentPartAddedStreamingEventSchema = z80
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
1813
|
+
import { z as z80 } from 'zod'
|
|
1814
|
+
var responseContentPartAddedStreamingEventSchema = z80
|
|
1815
|
+
.object({
|
|
1816
|
+
type: z80
|
|
1817
|
+
.enum(['response.content_part.added'])
|
|
1818
|
+
.default('response.content_part.added')
|
|
1819
|
+
.describe('The type of the event, always `response.content_part.added`.'),
|
|
1820
|
+
sequence_number: z80
|
|
1821
|
+
.number()
|
|
1822
|
+
.int()
|
|
1823
|
+
.describe('The sequence number of the event that was emitted.'),
|
|
1824
|
+
item_id: z80.string().describe('The ID of the item that was updated.'),
|
|
1825
|
+
output_index: z80
|
|
1826
|
+
.number()
|
|
1827
|
+
.int()
|
|
1828
|
+
.describe('The index of the output item that was updated.'),
|
|
1829
|
+
content_index: z80
|
|
1830
|
+
.number()
|
|
1831
|
+
.int()
|
|
1832
|
+
.describe('The index of the content part that was added.'),
|
|
1833
|
+
part: z80
|
|
1834
|
+
.union([
|
|
1835
|
+
z80
|
|
1836
|
+
.lazy(() => inputTextContentSchema)
|
|
1837
|
+
.and(
|
|
1838
|
+
z80.object({
|
|
1839
|
+
type: z80.literal('input_text'),
|
|
1840
|
+
}),
|
|
1841
|
+
),
|
|
1842
|
+
z80
|
|
1843
|
+
.lazy(() => outputTextContentSchema)
|
|
1844
|
+
.and(
|
|
1845
|
+
z80.object({
|
|
1846
|
+
type: z80.literal('output_text'),
|
|
1847
|
+
}),
|
|
1848
|
+
),
|
|
1849
|
+
z80
|
|
1850
|
+
.lazy(() => textContentSchema)
|
|
1851
|
+
.and(
|
|
1852
|
+
z80.object({
|
|
1853
|
+
type: z80.literal('text'),
|
|
1854
|
+
}),
|
|
1855
|
+
),
|
|
1856
|
+
z80
|
|
1857
|
+
.lazy(() => summaryTextContentSchema)
|
|
1858
|
+
.and(
|
|
1859
|
+
z80.object({
|
|
1860
|
+
type: z80.literal('summary_text'),
|
|
1861
|
+
}),
|
|
1862
|
+
),
|
|
1863
|
+
z80
|
|
1864
|
+
.lazy(() => reasoningTextContentSchema)
|
|
1865
|
+
.and(
|
|
1866
|
+
z80.object({
|
|
1867
|
+
type: z80.literal('reasoning_text'),
|
|
1868
|
+
}),
|
|
1869
|
+
),
|
|
1870
|
+
z80
|
|
1871
|
+
.lazy(() => refusalContentSchema)
|
|
1872
|
+
.and(
|
|
1873
|
+
z80.object({
|
|
1874
|
+
type: z80.literal('refusal'),
|
|
1875
|
+
}),
|
|
1876
|
+
),
|
|
1877
|
+
z80
|
|
1878
|
+
.lazy(() => inputImageContentSchema)
|
|
1879
|
+
.and(
|
|
1880
|
+
z80.object({
|
|
1881
|
+
type: z80.literal('input_image'),
|
|
1882
|
+
}),
|
|
1883
|
+
),
|
|
1884
|
+
z80
|
|
1885
|
+
.lazy(() => inputFileContentSchema)
|
|
1886
|
+
.and(
|
|
1887
|
+
z80.object({
|
|
1888
|
+
type: z80.literal('input_file'),
|
|
1889
|
+
}),
|
|
1890
|
+
),
|
|
1891
|
+
])
|
|
1892
|
+
.describe('A content part that makes up an input or output item.'),
|
|
1893
|
+
})
|
|
1894
|
+
.describe('A streaming event that indicated a content part was added.')
|
|
994
1895
|
|
|
995
1896
|
// src/gen/zod/responseContentPartDoneStreamingEventSchema.ts
|
|
996
|
-
import { z as z81 } from
|
|
997
|
-
var responseContentPartDoneStreamingEventSchema = z81
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1897
|
+
import { z as z81 } from 'zod'
|
|
1898
|
+
var responseContentPartDoneStreamingEventSchema = z81
|
|
1899
|
+
.object({
|
|
1900
|
+
type: z81
|
|
1901
|
+
.enum(['response.content_part.done'])
|
|
1902
|
+
.default('response.content_part.done')
|
|
1903
|
+
.describe('The type of the event, always `response.content_part.done`.'),
|
|
1904
|
+
sequence_number: z81
|
|
1905
|
+
.number()
|
|
1906
|
+
.int()
|
|
1907
|
+
.describe('The sequence number of the event that was emitted.'),
|
|
1908
|
+
item_id: z81.string().describe('The ID of the item that was updated.'),
|
|
1909
|
+
output_index: z81
|
|
1910
|
+
.number()
|
|
1911
|
+
.int()
|
|
1912
|
+
.describe('The index of the output item that was updated.'),
|
|
1913
|
+
content_index: z81
|
|
1914
|
+
.number()
|
|
1915
|
+
.int()
|
|
1916
|
+
.describe('The index of the content part that was completed.'),
|
|
1917
|
+
part: z81
|
|
1918
|
+
.union([
|
|
1919
|
+
z81
|
|
1920
|
+
.lazy(() => inputTextContentSchema)
|
|
1921
|
+
.and(
|
|
1922
|
+
z81.object({
|
|
1923
|
+
type: z81.literal('input_text'),
|
|
1924
|
+
}),
|
|
1925
|
+
),
|
|
1926
|
+
z81
|
|
1927
|
+
.lazy(() => outputTextContentSchema)
|
|
1928
|
+
.and(
|
|
1929
|
+
z81.object({
|
|
1930
|
+
type: z81.literal('output_text'),
|
|
1931
|
+
}),
|
|
1932
|
+
),
|
|
1933
|
+
z81
|
|
1934
|
+
.lazy(() => textContentSchema)
|
|
1935
|
+
.and(
|
|
1936
|
+
z81.object({
|
|
1937
|
+
type: z81.literal('text'),
|
|
1938
|
+
}),
|
|
1939
|
+
),
|
|
1940
|
+
z81
|
|
1941
|
+
.lazy(() => summaryTextContentSchema)
|
|
1942
|
+
.and(
|
|
1943
|
+
z81.object({
|
|
1944
|
+
type: z81.literal('summary_text'),
|
|
1945
|
+
}),
|
|
1946
|
+
),
|
|
1947
|
+
z81
|
|
1948
|
+
.lazy(() => reasoningTextContentSchema)
|
|
1949
|
+
.and(
|
|
1950
|
+
z81.object({
|
|
1951
|
+
type: z81.literal('reasoning_text'),
|
|
1952
|
+
}),
|
|
1953
|
+
),
|
|
1954
|
+
z81
|
|
1955
|
+
.lazy(() => refusalContentSchema)
|
|
1956
|
+
.and(
|
|
1957
|
+
z81.object({
|
|
1958
|
+
type: z81.literal('refusal'),
|
|
1959
|
+
}),
|
|
1960
|
+
),
|
|
1961
|
+
z81
|
|
1962
|
+
.lazy(() => inputImageContentSchema)
|
|
1963
|
+
.and(
|
|
1964
|
+
z81.object({
|
|
1965
|
+
type: z81.literal('input_image'),
|
|
1966
|
+
}),
|
|
1967
|
+
),
|
|
1968
|
+
z81
|
|
1969
|
+
.lazy(() => inputFileContentSchema)
|
|
1970
|
+
.and(
|
|
1971
|
+
z81.object({
|
|
1972
|
+
type: z81.literal('input_file'),
|
|
1973
|
+
}),
|
|
1974
|
+
),
|
|
1975
|
+
])
|
|
1976
|
+
.describe('A content part that makes up an input or output item.'),
|
|
1977
|
+
})
|
|
1978
|
+
.describe('A streaming event that indicated a content part was completed.')
|
|
1021
1979
|
|
|
1022
1980
|
// src/gen/zod/responseCreatedStreamingEventSchema.ts
|
|
1023
|
-
import { z as z82 } from
|
|
1024
|
-
var responseCreatedStreamingEventSchema = z82
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1981
|
+
import { z as z82 } from 'zod'
|
|
1982
|
+
var responseCreatedStreamingEventSchema = z82
|
|
1983
|
+
.object({
|
|
1984
|
+
type: z82
|
|
1985
|
+
.enum(['response.created'])
|
|
1986
|
+
.default('response.created')
|
|
1987
|
+
.describe('The type of the event, always `response.created`.'),
|
|
1988
|
+
sequence_number: z82
|
|
1989
|
+
.number()
|
|
1990
|
+
.int()
|
|
1991
|
+
.describe('The sequence number of the event that was emitted.'),
|
|
1992
|
+
response: z82.lazy(() => responseResourceSchema).and(z82.any()),
|
|
1993
|
+
})
|
|
1994
|
+
.describe('A streaming event that indicated the response was created.')
|
|
1029
1995
|
|
|
1030
1996
|
// src/gen/zod/responseFailedStreamingEventSchema.ts
|
|
1031
|
-
import { z as z83 } from
|
|
1032
|
-
var responseFailedStreamingEventSchema = z83
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1997
|
+
import { z as z83 } from 'zod'
|
|
1998
|
+
var responseFailedStreamingEventSchema = z83
|
|
1999
|
+
.object({
|
|
2000
|
+
type: z83
|
|
2001
|
+
.enum(['response.failed'])
|
|
2002
|
+
.default('response.failed')
|
|
2003
|
+
.describe('The type of the event, always `response.failed`.'),
|
|
2004
|
+
sequence_number: z83
|
|
2005
|
+
.number()
|
|
2006
|
+
.int()
|
|
2007
|
+
.describe('The sequence number of the event that was emitted.'),
|
|
2008
|
+
response: z83.lazy(() => responseResourceSchema).and(z83.any()),
|
|
2009
|
+
})
|
|
2010
|
+
.describe('A streaming event that indicated the response had failed.')
|
|
1037
2011
|
|
|
1038
2012
|
// src/gen/zod/responseFunctionCallArgumentsDeltaStreamingEventSchema.ts
|
|
1039
|
-
import { z as z84 } from
|
|
1040
|
-
var responseFunctionCallArgumentsDeltaStreamingEventSchema = z84
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
2013
|
+
import { z as z84 } from 'zod'
|
|
2014
|
+
var responseFunctionCallArgumentsDeltaStreamingEventSchema = z84
|
|
2015
|
+
.object({
|
|
2016
|
+
type: z84
|
|
2017
|
+
.enum(['response.function_call_arguments.delta'])
|
|
2018
|
+
.default('response.function_call_arguments.delta')
|
|
2019
|
+
.describe(
|
|
2020
|
+
'The type of the event, always `response.function_call_arguments.delta`.',
|
|
2021
|
+
),
|
|
2022
|
+
sequence_number: z84
|
|
2023
|
+
.number()
|
|
2024
|
+
.int()
|
|
2025
|
+
.describe('The sequence number of the event that was emitted.'),
|
|
2026
|
+
item_id: z84
|
|
2027
|
+
.string()
|
|
2028
|
+
.describe('The ID of the tool call item that was updated.'),
|
|
2029
|
+
output_index: z84
|
|
2030
|
+
.number()
|
|
2031
|
+
.int()
|
|
2032
|
+
.describe('The index of the output item that was updated.'),
|
|
2033
|
+
delta: z84.string().describe('The arguments delta that was appended.'),
|
|
2034
|
+
obfuscation: z84.optional(
|
|
2035
|
+
z84
|
|
2036
|
+
.string()
|
|
2037
|
+
.describe(
|
|
2038
|
+
'An obfuscation string that was added to pad the event payload.',
|
|
2039
|
+
),
|
|
2040
|
+
),
|
|
2041
|
+
})
|
|
2042
|
+
.describe(
|
|
2043
|
+
'A streaming event that indicated function call arguments were incrementally added.',
|
|
2044
|
+
)
|
|
1048
2045
|
|
|
1049
2046
|
// src/gen/zod/responseFunctionCallArgumentsDoneStreamingEventSchema.ts
|
|
1050
|
-
import { z as z85 } from
|
|
1051
|
-
var responseFunctionCallArgumentsDoneStreamingEventSchema = z85
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
2047
|
+
import { z as z85 } from 'zod'
|
|
2048
|
+
var responseFunctionCallArgumentsDoneStreamingEventSchema = z85
|
|
2049
|
+
.object({
|
|
2050
|
+
type: z85
|
|
2051
|
+
.enum(['response.function_call_arguments.done'])
|
|
2052
|
+
.default('response.function_call_arguments.done')
|
|
2053
|
+
.describe(
|
|
2054
|
+
'The type of the event, always `response.function_call_arguments.done`.',
|
|
2055
|
+
),
|
|
2056
|
+
sequence_number: z85
|
|
2057
|
+
.number()
|
|
2058
|
+
.int()
|
|
2059
|
+
.describe('The sequence number of the event that was emitted.'),
|
|
2060
|
+
item_id: z85
|
|
2061
|
+
.string()
|
|
2062
|
+
.describe('The ID of the tool call item that was updated.'),
|
|
2063
|
+
output_index: z85
|
|
2064
|
+
.number()
|
|
2065
|
+
.int()
|
|
2066
|
+
.describe('The index of the output item that was updated.'),
|
|
2067
|
+
arguments: z85
|
|
2068
|
+
.string()
|
|
2069
|
+
.describe('The final arguments string that was emitted.'),
|
|
2070
|
+
})
|
|
2071
|
+
.describe(
|
|
2072
|
+
'A streaming event that indicated function call arguments were completed.',
|
|
2073
|
+
)
|
|
1058
2074
|
|
|
1059
2075
|
// src/gen/zod/responseIncompleteStreamingEventSchema.ts
|
|
1060
|
-
import { z as z86 } from
|
|
1061
|
-
var responseIncompleteStreamingEventSchema = z86
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
2076
|
+
import { z as z86 } from 'zod'
|
|
2077
|
+
var responseIncompleteStreamingEventSchema = z86
|
|
2078
|
+
.object({
|
|
2079
|
+
type: z86
|
|
2080
|
+
.enum(['response.incomplete'])
|
|
2081
|
+
.default('response.incomplete')
|
|
2082
|
+
.describe('The type of the event, always `response.incomplete`.'),
|
|
2083
|
+
sequence_number: z86
|
|
2084
|
+
.number()
|
|
2085
|
+
.int()
|
|
2086
|
+
.describe('The sequence number of the event that was emitted.'),
|
|
2087
|
+
response: z86.lazy(() => responseResourceSchema).and(z86.any()),
|
|
2088
|
+
})
|
|
2089
|
+
.describe('A streaming event that indicated the response was incomplete.')
|
|
1066
2090
|
|
|
1067
2091
|
// src/gen/zod/responseInProgressStreamingEventSchema.ts
|
|
1068
|
-
import { z as z87 } from
|
|
1069
|
-
var responseInProgressStreamingEventSchema = z87
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
2092
|
+
import { z as z87 } from 'zod'
|
|
2093
|
+
var responseInProgressStreamingEventSchema = z87
|
|
2094
|
+
.object({
|
|
2095
|
+
type: z87
|
|
2096
|
+
.enum(['response.in_progress'])
|
|
2097
|
+
.default('response.in_progress')
|
|
2098
|
+
.describe('The type of the event, always `response.in_progress`.'),
|
|
2099
|
+
sequence_number: z87
|
|
2100
|
+
.number()
|
|
2101
|
+
.int()
|
|
2102
|
+
.describe('The sequence number of the event that was emitted.'),
|
|
2103
|
+
response: z87.lazy(() => responseResourceSchema).and(z87.any()),
|
|
2104
|
+
})
|
|
2105
|
+
.describe('A streaming event that indicated the response was in progress.')
|
|
1074
2106
|
|
|
1075
2107
|
// src/gen/zod/responseOutputItemAddedStreamingEventSchema.ts
|
|
1076
|
-
import { z as z88 } from
|
|
1077
|
-
var responseOutputItemAddedStreamingEventSchema = z88
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
2108
|
+
import { z as z88 } from 'zod'
|
|
2109
|
+
var responseOutputItemAddedStreamingEventSchema = z88
|
|
2110
|
+
.object({
|
|
2111
|
+
type: z88
|
|
2112
|
+
.enum(['response.output_item.added'])
|
|
2113
|
+
.default('response.output_item.added')
|
|
2114
|
+
.describe('The type of the event, always `response.output_item.added`.'),
|
|
2115
|
+
sequence_number: z88
|
|
2116
|
+
.number()
|
|
2117
|
+
.int()
|
|
2118
|
+
.describe('The sequence number of the event that was emitted.'),
|
|
2119
|
+
output_index: z88
|
|
2120
|
+
.number()
|
|
2121
|
+
.int()
|
|
2122
|
+
.describe('The index of the output item that was added.'),
|
|
2123
|
+
item: z88.union([
|
|
2124
|
+
z88.lazy(() => itemFieldSchema).and(z88.any()),
|
|
2125
|
+
z88.null(),
|
|
2126
|
+
]),
|
|
2127
|
+
})
|
|
2128
|
+
.describe(
|
|
2129
|
+
'A streaming event that indicated an output item was added to the response.',
|
|
2130
|
+
)
|
|
1083
2131
|
|
|
1084
2132
|
// src/gen/zod/responseOutputItemDoneStreamingEventSchema.ts
|
|
1085
|
-
import { z as z89 } from
|
|
1086
|
-
var responseOutputItemDoneStreamingEventSchema = z89
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
2133
|
+
import { z as z89 } from 'zod'
|
|
2134
|
+
var responseOutputItemDoneStreamingEventSchema = z89
|
|
2135
|
+
.object({
|
|
2136
|
+
type: z89
|
|
2137
|
+
.enum(['response.output_item.done'])
|
|
2138
|
+
.default('response.output_item.done')
|
|
2139
|
+
.describe('The type of the event, always `response.output_item.done`.'),
|
|
2140
|
+
sequence_number: z89
|
|
2141
|
+
.number()
|
|
2142
|
+
.int()
|
|
2143
|
+
.describe('The sequence number of the event that was emitted.'),
|
|
2144
|
+
output_index: z89
|
|
2145
|
+
.number()
|
|
2146
|
+
.int()
|
|
2147
|
+
.describe('The index of the output item that was completed.'),
|
|
2148
|
+
item: z89.union([
|
|
2149
|
+
z89.lazy(() => itemFieldSchema).and(z89.any()),
|
|
2150
|
+
z89.null(),
|
|
2151
|
+
]),
|
|
2152
|
+
})
|
|
2153
|
+
.describe('A streaming event that indicated an output item was completed.')
|
|
1092
2154
|
|
|
1093
2155
|
// src/gen/zod/responseOutputTextAnnotationAddedStreamingEventSchema.ts
|
|
1094
|
-
import { z as z90 } from
|
|
1095
|
-
var responseOutputTextAnnotationAddedStreamingEventSchema = z90
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
2156
|
+
import { z as z90 } from 'zod'
|
|
2157
|
+
var responseOutputTextAnnotationAddedStreamingEventSchema = z90
|
|
2158
|
+
.object({
|
|
2159
|
+
type: z90
|
|
2160
|
+
.enum(['response.output_text.annotation.added'])
|
|
2161
|
+
.default('response.output_text.annotation.added')
|
|
2162
|
+
.describe(
|
|
2163
|
+
'The type of the event, always `response.output_text.annotation.added`.',
|
|
2164
|
+
),
|
|
2165
|
+
sequence_number: z90
|
|
2166
|
+
.number()
|
|
2167
|
+
.int()
|
|
2168
|
+
.describe('The sequence number of the event that was emitted.'),
|
|
2169
|
+
item_id: z90.string().describe('The ID of the item that was updated.'),
|
|
2170
|
+
output_index: z90
|
|
2171
|
+
.number()
|
|
2172
|
+
.int()
|
|
2173
|
+
.describe('The index of the output item that was updated.'),
|
|
2174
|
+
content_index: z90
|
|
2175
|
+
.number()
|
|
2176
|
+
.int()
|
|
2177
|
+
.describe('The index of the output text content that was updated.'),
|
|
2178
|
+
annotation_index: z90
|
|
2179
|
+
.number()
|
|
2180
|
+
.int()
|
|
2181
|
+
.describe('The index of the annotation that was added.'),
|
|
2182
|
+
annotation: z90.union([
|
|
2183
|
+
z90.lazy(() => annotationSchema).and(z90.any()),
|
|
2184
|
+
z90.null(),
|
|
2185
|
+
]),
|
|
2186
|
+
})
|
|
2187
|
+
.describe(
|
|
2188
|
+
'A streaming event that indicated an output text annotation was added.',
|
|
2189
|
+
)
|
|
1104
2190
|
|
|
1105
2191
|
// src/gen/zod/responseOutputTextDeltaStreamingEventSchema.ts
|
|
1106
|
-
import { z as z91 } from
|
|
1107
|
-
var responseOutputTextDeltaStreamingEventSchema = z91
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
2192
|
+
import { z as z91 } from 'zod'
|
|
2193
|
+
var responseOutputTextDeltaStreamingEventSchema = z91
|
|
2194
|
+
.object({
|
|
2195
|
+
type: z91
|
|
2196
|
+
.enum(['response.output_text.delta'])
|
|
2197
|
+
.default('response.output_text.delta')
|
|
2198
|
+
.describe('The type of the event, always `response.output_text.delta`.'),
|
|
2199
|
+
sequence_number: z91
|
|
2200
|
+
.number()
|
|
2201
|
+
.int()
|
|
2202
|
+
.describe('The sequence number of the event that was emitted.'),
|
|
2203
|
+
item_id: z91.string().describe('The ID of the item that was updated.'),
|
|
2204
|
+
output_index: z91
|
|
2205
|
+
.number()
|
|
2206
|
+
.int()
|
|
2207
|
+
.describe('The index of the output item that was updated.'),
|
|
2208
|
+
content_index: z91
|
|
2209
|
+
.number()
|
|
2210
|
+
.int()
|
|
2211
|
+
.describe('The index of the content part that was updated.'),
|
|
2212
|
+
delta: z91.string().describe('The text delta that was appended.'),
|
|
2213
|
+
logprobs: z91
|
|
2214
|
+
.array(
|
|
2215
|
+
z91
|
|
2216
|
+
.lazy(() => logProbSchema)
|
|
2217
|
+
.describe('The log probability of a token.'),
|
|
2218
|
+
)
|
|
2219
|
+
.describe(
|
|
2220
|
+
'The token log probabilities that were emitted with the delta, if any.',
|
|
2221
|
+
),
|
|
2222
|
+
obfuscation: z91.optional(
|
|
2223
|
+
z91
|
|
2224
|
+
.string()
|
|
2225
|
+
.describe(
|
|
2226
|
+
'An obfuscation string that was added to pad the event payload.',
|
|
2227
|
+
),
|
|
2228
|
+
),
|
|
2229
|
+
})
|
|
2230
|
+
.describe(
|
|
2231
|
+
'A streaming event that indicated output text was incrementally added.',
|
|
2232
|
+
)
|
|
1117
2233
|
|
|
1118
2234
|
// src/gen/zod/responseOutputTextDoneStreamingEventSchema.ts
|
|
1119
|
-
import { z as z92 } from
|
|
1120
|
-
var responseOutputTextDoneStreamingEventSchema = z92
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
2235
|
+
import { z as z92 } from 'zod'
|
|
2236
|
+
var responseOutputTextDoneStreamingEventSchema = z92
|
|
2237
|
+
.object({
|
|
2238
|
+
type: z92
|
|
2239
|
+
.enum(['response.output_text.done'])
|
|
2240
|
+
.default('response.output_text.done')
|
|
2241
|
+
.describe('The type of the event, always `response.output_text.done`.'),
|
|
2242
|
+
sequence_number: z92
|
|
2243
|
+
.number()
|
|
2244
|
+
.int()
|
|
2245
|
+
.describe('The sequence number of the event that was emitted.'),
|
|
2246
|
+
item_id: z92.string().describe('The ID of the item that was updated.'),
|
|
2247
|
+
output_index: z92
|
|
2248
|
+
.number()
|
|
2249
|
+
.int()
|
|
2250
|
+
.describe('The index of the output item that was updated.'),
|
|
2251
|
+
content_index: z92
|
|
2252
|
+
.number()
|
|
2253
|
+
.int()
|
|
2254
|
+
.describe('The index of the content part that was completed.'),
|
|
2255
|
+
text: z92.string().describe('The final text that was emitted.'),
|
|
2256
|
+
logprobs: z92
|
|
2257
|
+
.array(
|
|
2258
|
+
z92
|
|
2259
|
+
.lazy(() => logProbSchema)
|
|
2260
|
+
.describe('The log probability of a token.'),
|
|
2261
|
+
)
|
|
2262
|
+
.describe(
|
|
2263
|
+
'The token log probabilities that were emitted with the final text, if any.',
|
|
2264
|
+
),
|
|
2265
|
+
})
|
|
2266
|
+
.describe('A streaming event that indicated output text was completed.')
|
|
1129
2267
|
|
|
1130
2268
|
// src/gen/zod/responseQueuedStreamingEventSchema.ts
|
|
1131
|
-
import { z as z93 } from
|
|
1132
|
-
var responseQueuedStreamingEventSchema = z93
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
2269
|
+
import { z as z93 } from 'zod'
|
|
2270
|
+
var responseQueuedStreamingEventSchema = z93
|
|
2271
|
+
.object({
|
|
2272
|
+
type: z93
|
|
2273
|
+
.enum(['response.queued'])
|
|
2274
|
+
.default('response.queued')
|
|
2275
|
+
.describe('The type of the event, always `response.queued`.'),
|
|
2276
|
+
sequence_number: z93
|
|
2277
|
+
.number()
|
|
2278
|
+
.int()
|
|
2279
|
+
.describe('The sequence number of the event that was emitted.'),
|
|
2280
|
+
response: z93.lazy(() => responseResourceSchema).and(z93.any()),
|
|
2281
|
+
})
|
|
2282
|
+
.describe('A streaming event that indicated the response was queued.')
|
|
1137
2283
|
|
|
1138
2284
|
// src/gen/zod/responseReasoningDeltaStreamingEventSchema.ts
|
|
1139
|
-
import { z as z94 } from
|
|
1140
|
-
var responseReasoningDeltaStreamingEventSchema = z94
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
2285
|
+
import { z as z94 } from 'zod'
|
|
2286
|
+
var responseReasoningDeltaStreamingEventSchema = z94
|
|
2287
|
+
.object({
|
|
2288
|
+
type: z94
|
|
2289
|
+
.enum(['response.reasoning.delta'])
|
|
2290
|
+
.default('response.reasoning.delta')
|
|
2291
|
+
.describe('The type of the event, always `response.reasoning.delta`.'),
|
|
2292
|
+
sequence_number: z94
|
|
2293
|
+
.number()
|
|
2294
|
+
.int()
|
|
2295
|
+
.describe('The sequence number of the event that was emitted.'),
|
|
2296
|
+
item_id: z94.string().describe('The ID of the item that was updated.'),
|
|
2297
|
+
output_index: z94
|
|
2298
|
+
.number()
|
|
2299
|
+
.int()
|
|
2300
|
+
.describe('The index of the output item that was updated.'),
|
|
2301
|
+
content_index: z94
|
|
2302
|
+
.number()
|
|
2303
|
+
.int()
|
|
2304
|
+
.describe('The index of the reasoning content that was updated.'),
|
|
2305
|
+
delta: z94.string().describe('The reasoning text delta that was appended.'),
|
|
2306
|
+
obfuscation: z94.optional(
|
|
2307
|
+
z94
|
|
2308
|
+
.string()
|
|
2309
|
+
.describe(
|
|
2310
|
+
'An obfuscation string that was added to pad the event payload.',
|
|
2311
|
+
),
|
|
2312
|
+
),
|
|
2313
|
+
})
|
|
2314
|
+
.describe(
|
|
2315
|
+
'A streaming event that indicated reasoning text was incrementally added.',
|
|
2316
|
+
)
|
|
1149
2317
|
|
|
1150
2318
|
// src/gen/zod/responseReasoningDoneStreamingEventSchema.ts
|
|
1151
|
-
import { z as z95 } from
|
|
1152
|
-
var responseReasoningDoneStreamingEventSchema = z95
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
2319
|
+
import { z as z95 } from 'zod'
|
|
2320
|
+
var responseReasoningDoneStreamingEventSchema = z95
|
|
2321
|
+
.object({
|
|
2322
|
+
type: z95
|
|
2323
|
+
.enum(['response.reasoning.done'])
|
|
2324
|
+
.default('response.reasoning.done')
|
|
2325
|
+
.describe('The type of the event, always `response.reasoning.done`.'),
|
|
2326
|
+
sequence_number: z95
|
|
2327
|
+
.number()
|
|
2328
|
+
.int()
|
|
2329
|
+
.describe('The sequence number of the event that was emitted.'),
|
|
2330
|
+
item_id: z95.string().describe('The ID of the item that was updated.'),
|
|
2331
|
+
output_index: z95
|
|
2332
|
+
.number()
|
|
2333
|
+
.int()
|
|
2334
|
+
.describe('The index of the output item that was updated.'),
|
|
2335
|
+
content_index: z95
|
|
2336
|
+
.number()
|
|
2337
|
+
.int()
|
|
2338
|
+
.describe('The index of the reasoning content that was completed.'),
|
|
2339
|
+
text: z95.string().describe('The final reasoning text that was emitted.'),
|
|
2340
|
+
})
|
|
2341
|
+
.describe('A streaming event that indicated reasoning text was completed.')
|
|
1160
2342
|
|
|
1161
2343
|
// src/gen/zod/responseReasoningSummaryDeltaStreamingEventSchema.ts
|
|
1162
|
-
import { z as z96 } from
|
|
1163
|
-
var responseReasoningSummaryDeltaStreamingEventSchema = z96
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
2344
|
+
import { z as z96 } from 'zod'
|
|
2345
|
+
var responseReasoningSummaryDeltaStreamingEventSchema = z96
|
|
2346
|
+
.object({
|
|
2347
|
+
type: z96
|
|
2348
|
+
.enum(['response.reasoning_summary_text.delta'])
|
|
2349
|
+
.default('response.reasoning_summary_text.delta')
|
|
2350
|
+
.describe(
|
|
2351
|
+
'The type of the event, always `response.reasoning_summary.delta`.',
|
|
2352
|
+
),
|
|
2353
|
+
sequence_number: z96
|
|
2354
|
+
.number()
|
|
2355
|
+
.int()
|
|
2356
|
+
.describe('The sequence number of the event that was emitted.'),
|
|
2357
|
+
item_id: z96.string().describe('The ID of the item that was updated.'),
|
|
2358
|
+
output_index: z96
|
|
2359
|
+
.number()
|
|
2360
|
+
.int()
|
|
2361
|
+
.describe('The index of the output item that was updated.'),
|
|
2362
|
+
summary_index: z96
|
|
2363
|
+
.number()
|
|
2364
|
+
.int()
|
|
2365
|
+
.describe('The index of the summary content that was updated.'),
|
|
2366
|
+
delta: z96.string().describe('The summary text delta that was appended.'),
|
|
2367
|
+
obfuscation: z96.optional(
|
|
2368
|
+
z96
|
|
2369
|
+
.string()
|
|
2370
|
+
.describe(
|
|
2371
|
+
'An obfuscation string that was added to pad the event payload.',
|
|
2372
|
+
),
|
|
2373
|
+
),
|
|
2374
|
+
})
|
|
2375
|
+
.describe(
|
|
2376
|
+
'A streaming event that indicated a reasoning summary was incrementally added.',
|
|
2377
|
+
)
|
|
1172
2378
|
|
|
1173
2379
|
// src/gen/zod/responseReasoningSummaryDoneStreamingEventSchema.ts
|
|
1174
|
-
import { z as z97 } from
|
|
1175
|
-
var responseReasoningSummaryDoneStreamingEventSchema = z97
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
2380
|
+
import { z as z97 } from 'zod'
|
|
2381
|
+
var responseReasoningSummaryDoneStreamingEventSchema = z97
|
|
2382
|
+
.object({
|
|
2383
|
+
type: z97
|
|
2384
|
+
.enum(['response.reasoning_summary_text.done'])
|
|
2385
|
+
.default('response.reasoning_summary_text.done')
|
|
2386
|
+
.describe(
|
|
2387
|
+
'The type of the event, always `response.reasoning_summary.done`.',
|
|
2388
|
+
),
|
|
2389
|
+
sequence_number: z97
|
|
2390
|
+
.number()
|
|
2391
|
+
.int()
|
|
2392
|
+
.describe('The sequence number of the event that was emitted.'),
|
|
2393
|
+
item_id: z97.string().describe('The ID of the item that was updated.'),
|
|
2394
|
+
output_index: z97
|
|
2395
|
+
.number()
|
|
2396
|
+
.int()
|
|
2397
|
+
.describe('The index of the output item that was updated.'),
|
|
2398
|
+
summary_index: z97
|
|
2399
|
+
.number()
|
|
2400
|
+
.int()
|
|
2401
|
+
.describe('The index of the summary content that was completed.'),
|
|
2402
|
+
text: z97.string().describe('The final summary text that was emitted.'),
|
|
2403
|
+
})
|
|
2404
|
+
.describe(
|
|
2405
|
+
'A streaming event that indicated a reasoning summary was completed.',
|
|
2406
|
+
)
|
|
1183
2407
|
|
|
1184
2408
|
// src/gen/zod/responseReasoningSummaryPartAddedStreamingEventSchema.ts
|
|
1185
|
-
import { z as z98 } from
|
|
1186
|
-
var responseReasoningSummaryPartAddedStreamingEventSchema = z98
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
2409
|
+
import { z as z98 } from 'zod'
|
|
2410
|
+
var responseReasoningSummaryPartAddedStreamingEventSchema = z98
|
|
2411
|
+
.object({
|
|
2412
|
+
type: z98
|
|
2413
|
+
.enum(['response.reasoning_summary_part.added'])
|
|
2414
|
+
.default('response.reasoning_summary_part.added')
|
|
2415
|
+
.describe(
|
|
2416
|
+
'The type of the event, always `response.reasoning_summary_part.added`.',
|
|
2417
|
+
),
|
|
2418
|
+
sequence_number: z98
|
|
2419
|
+
.number()
|
|
2420
|
+
.int()
|
|
2421
|
+
.describe('The sequence number of the event that was emitted.'),
|
|
2422
|
+
item_id: z98.string().describe('The ID of the item that was updated.'),
|
|
2423
|
+
output_index: z98
|
|
2424
|
+
.number()
|
|
2425
|
+
.int()
|
|
2426
|
+
.describe('The index of the output item that was updated.'),
|
|
2427
|
+
summary_index: z98
|
|
2428
|
+
.number()
|
|
2429
|
+
.int()
|
|
2430
|
+
.describe('The index of the summary part that was added.'),
|
|
2431
|
+
part: z98
|
|
2432
|
+
.union([
|
|
2433
|
+
z98
|
|
2434
|
+
.lazy(() => inputTextContentSchema)
|
|
2435
|
+
.and(
|
|
2436
|
+
z98.object({
|
|
2437
|
+
type: z98.literal('input_text'),
|
|
2438
|
+
}),
|
|
2439
|
+
),
|
|
2440
|
+
z98
|
|
2441
|
+
.lazy(() => outputTextContentSchema)
|
|
2442
|
+
.and(
|
|
2443
|
+
z98.object({
|
|
2444
|
+
type: z98.literal('output_text'),
|
|
2445
|
+
}),
|
|
2446
|
+
),
|
|
2447
|
+
z98
|
|
2448
|
+
.lazy(() => textContentSchema)
|
|
2449
|
+
.and(
|
|
2450
|
+
z98.object({
|
|
2451
|
+
type: z98.literal('text'),
|
|
2452
|
+
}),
|
|
2453
|
+
),
|
|
2454
|
+
z98
|
|
2455
|
+
.lazy(() => summaryTextContentSchema)
|
|
2456
|
+
.and(
|
|
2457
|
+
z98.object({
|
|
2458
|
+
type: z98.literal('summary_text'),
|
|
2459
|
+
}),
|
|
2460
|
+
),
|
|
2461
|
+
z98
|
|
2462
|
+
.lazy(() => reasoningTextContentSchema)
|
|
2463
|
+
.and(
|
|
2464
|
+
z98.object({
|
|
2465
|
+
type: z98.literal('reasoning_text'),
|
|
2466
|
+
}),
|
|
2467
|
+
),
|
|
2468
|
+
z98
|
|
2469
|
+
.lazy(() => refusalContentSchema)
|
|
2470
|
+
.and(
|
|
2471
|
+
z98.object({
|
|
2472
|
+
type: z98.literal('refusal'),
|
|
2473
|
+
}),
|
|
2474
|
+
),
|
|
2475
|
+
z98
|
|
2476
|
+
.lazy(() => inputImageContentSchema)
|
|
2477
|
+
.and(
|
|
2478
|
+
z98.object({
|
|
2479
|
+
type: z98.literal('input_image'),
|
|
2480
|
+
}),
|
|
2481
|
+
),
|
|
2482
|
+
z98
|
|
2483
|
+
.lazy(() => inputFileContentSchema)
|
|
2484
|
+
.and(
|
|
2485
|
+
z98.object({
|
|
2486
|
+
type: z98.literal('input_file'),
|
|
2487
|
+
}),
|
|
2488
|
+
),
|
|
2489
|
+
])
|
|
2490
|
+
.describe('A content part that makes up an input or output item.'),
|
|
2491
|
+
})
|
|
2492
|
+
.describe(
|
|
2493
|
+
'A streaming event that indicated a reasoning summary part was added.',
|
|
2494
|
+
)
|
|
1210
2495
|
|
|
1211
2496
|
// src/gen/zod/responseReasoningSummaryPartDoneStreamingEventSchema.ts
|
|
1212
|
-
import { z as z99 } from
|
|
1213
|
-
var responseReasoningSummaryPartDoneStreamingEventSchema = z99
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
2497
|
+
import { z as z99 } from 'zod'
|
|
2498
|
+
var responseReasoningSummaryPartDoneStreamingEventSchema = z99
|
|
2499
|
+
.object({
|
|
2500
|
+
type: z99
|
|
2501
|
+
.enum(['response.reasoning_summary_part.done'])
|
|
2502
|
+
.default('response.reasoning_summary_part.done')
|
|
2503
|
+
.describe(
|
|
2504
|
+
'The type of the event, always `response.reasoning_summary_part.done`.',
|
|
2505
|
+
),
|
|
2506
|
+
sequence_number: z99
|
|
2507
|
+
.number()
|
|
2508
|
+
.int()
|
|
2509
|
+
.describe('The sequence number of the event that was emitted.'),
|
|
2510
|
+
item_id: z99.string().describe('The ID of the item that was updated.'),
|
|
2511
|
+
output_index: z99
|
|
2512
|
+
.number()
|
|
2513
|
+
.int()
|
|
2514
|
+
.describe('The index of the output item that was updated.'),
|
|
2515
|
+
summary_index: z99
|
|
2516
|
+
.number()
|
|
2517
|
+
.int()
|
|
2518
|
+
.describe('The index of the summary part that was completed.'),
|
|
2519
|
+
part: z99
|
|
2520
|
+
.union([
|
|
2521
|
+
z99
|
|
2522
|
+
.lazy(() => inputTextContentSchema)
|
|
2523
|
+
.and(
|
|
2524
|
+
z99.object({
|
|
2525
|
+
type: z99.literal('input_text'),
|
|
2526
|
+
}),
|
|
2527
|
+
),
|
|
2528
|
+
z99
|
|
2529
|
+
.lazy(() => outputTextContentSchema)
|
|
2530
|
+
.and(
|
|
2531
|
+
z99.object({
|
|
2532
|
+
type: z99.literal('output_text'),
|
|
2533
|
+
}),
|
|
2534
|
+
),
|
|
2535
|
+
z99
|
|
2536
|
+
.lazy(() => textContentSchema)
|
|
2537
|
+
.and(
|
|
2538
|
+
z99.object({
|
|
2539
|
+
type: z99.literal('text'),
|
|
2540
|
+
}),
|
|
2541
|
+
),
|
|
2542
|
+
z99
|
|
2543
|
+
.lazy(() => summaryTextContentSchema)
|
|
2544
|
+
.and(
|
|
2545
|
+
z99.object({
|
|
2546
|
+
type: z99.literal('summary_text'),
|
|
2547
|
+
}),
|
|
2548
|
+
),
|
|
2549
|
+
z99
|
|
2550
|
+
.lazy(() => reasoningTextContentSchema)
|
|
2551
|
+
.and(
|
|
2552
|
+
z99.object({
|
|
2553
|
+
type: z99.literal('reasoning_text'),
|
|
2554
|
+
}),
|
|
2555
|
+
),
|
|
2556
|
+
z99
|
|
2557
|
+
.lazy(() => refusalContentSchema)
|
|
2558
|
+
.and(
|
|
2559
|
+
z99.object({
|
|
2560
|
+
type: z99.literal('refusal'),
|
|
2561
|
+
}),
|
|
2562
|
+
),
|
|
2563
|
+
z99
|
|
2564
|
+
.lazy(() => inputImageContentSchema)
|
|
2565
|
+
.and(
|
|
2566
|
+
z99.object({
|
|
2567
|
+
type: z99.literal('input_image'),
|
|
2568
|
+
}),
|
|
2569
|
+
),
|
|
2570
|
+
z99
|
|
2571
|
+
.lazy(() => inputFileContentSchema)
|
|
2572
|
+
.and(
|
|
2573
|
+
z99.object({
|
|
2574
|
+
type: z99.literal('input_file'),
|
|
2575
|
+
}),
|
|
2576
|
+
),
|
|
2577
|
+
])
|
|
2578
|
+
.describe('A content part that makes up an input or output item.'),
|
|
2579
|
+
})
|
|
2580
|
+
.describe(
|
|
2581
|
+
'A streaming event that indicated a reasoning summary part was completed.',
|
|
2582
|
+
)
|
|
1237
2583
|
|
|
1238
2584
|
// src/gen/zod/responseRefusalDeltaStreamingEventSchema.ts
|
|
1239
|
-
import { z as z100 } from
|
|
1240
|
-
var responseRefusalDeltaStreamingEventSchema = z100
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
2585
|
+
import { z as z100 } from 'zod'
|
|
2586
|
+
var responseRefusalDeltaStreamingEventSchema = z100
|
|
2587
|
+
.object({
|
|
2588
|
+
type: z100
|
|
2589
|
+
.enum(['response.refusal.delta'])
|
|
2590
|
+
.default('response.refusal.delta')
|
|
2591
|
+
.describe('The type of the event, always `response.refusal.delta`.'),
|
|
2592
|
+
sequence_number: z100
|
|
2593
|
+
.number()
|
|
2594
|
+
.int()
|
|
2595
|
+
.describe('The sequence number of the event that was emitted.'),
|
|
2596
|
+
item_id: z100.string().describe('The ID of the item that was updated.'),
|
|
2597
|
+
output_index: z100
|
|
2598
|
+
.number()
|
|
2599
|
+
.int()
|
|
2600
|
+
.describe('The index of the output item that was updated.'),
|
|
2601
|
+
content_index: z100
|
|
2602
|
+
.number()
|
|
2603
|
+
.int()
|
|
2604
|
+
.describe('The index of the refusal content that was updated.'),
|
|
2605
|
+
delta: z100.string().describe('The refusal text delta that was appended.'),
|
|
2606
|
+
})
|
|
2607
|
+
.describe(
|
|
2608
|
+
'A streaming event that indicated refusal text was incrementally added.',
|
|
2609
|
+
)
|
|
1248
2610
|
|
|
1249
2611
|
// src/gen/zod/responseRefusalDoneStreamingEventSchema.ts
|
|
1250
|
-
import { z as z101 } from
|
|
1251
|
-
var responseRefusalDoneStreamingEventSchema = z101
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
2612
|
+
import { z as z101 } from 'zod'
|
|
2613
|
+
var responseRefusalDoneStreamingEventSchema = z101
|
|
2614
|
+
.object({
|
|
2615
|
+
type: z101
|
|
2616
|
+
.enum(['response.refusal.done'])
|
|
2617
|
+
.default('response.refusal.done')
|
|
2618
|
+
.describe('The type of the event, always `response.refusal.done`.'),
|
|
2619
|
+
sequence_number: z101
|
|
2620
|
+
.number()
|
|
2621
|
+
.int()
|
|
2622
|
+
.describe('The sequence number of the event that was emitted.'),
|
|
2623
|
+
item_id: z101.string().describe('The ID of the item that was updated.'),
|
|
2624
|
+
output_index: z101
|
|
2625
|
+
.number()
|
|
2626
|
+
.int()
|
|
2627
|
+
.describe('The index of the output item that was updated.'),
|
|
2628
|
+
content_index: z101
|
|
2629
|
+
.number()
|
|
2630
|
+
.int()
|
|
2631
|
+
.describe('The index of the refusal content that was completed.'),
|
|
2632
|
+
refusal: z101.string().describe('The final refusal text that was emitted.'),
|
|
2633
|
+
})
|
|
2634
|
+
.describe('A streaming event that indicated refusal text was completed.')
|
|
1259
2635
|
|
|
1260
2636
|
// src/gen/zod/systemMessageItemParamSchema.ts
|
|
1261
|
-
import { z as z102 } from
|
|
2637
|
+
import { z as z102 } from 'zod'
|
|
1262
2638
|
var systemMessageItemParamSchema = z102.object({
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
2639
|
+
id: z102.optional(z102.union([z102.string(), z102.null()])),
|
|
2640
|
+
type: z102
|
|
2641
|
+
.enum(['message'])
|
|
2642
|
+
.default('message')
|
|
2643
|
+
.describe('The item type. Always `message`.'),
|
|
2644
|
+
role: z102
|
|
2645
|
+
.enum(['system'])
|
|
2646
|
+
.default('system')
|
|
2647
|
+
.describe('The message role. Always `system`.'),
|
|
2648
|
+
content: z102
|
|
2649
|
+
.union([
|
|
2650
|
+
z102.array(
|
|
2651
|
+
z102
|
|
2652
|
+
.lazy(() => inputTextContentParamSchema)
|
|
2653
|
+
.and(
|
|
2654
|
+
z102.object({
|
|
2655
|
+
type: z102.literal('input_text'),
|
|
2656
|
+
}),
|
|
2657
|
+
),
|
|
2658
|
+
),
|
|
2659
|
+
z102.string(),
|
|
2660
|
+
])
|
|
2661
|
+
.describe('The message content, as an array of content parts.'),
|
|
2662
|
+
status: z102.optional(z102.union([z102.string(), z102.null()])),
|
|
2663
|
+
})
|
|
1271
2664
|
|
|
1272
2665
|
// src/gen/zod/userMessageItemParamSchema.ts
|
|
1273
|
-
import { z as z103 } from
|
|
2666
|
+
import { z as z103 } from 'zod'
|
|
1274
2667
|
var userMessageItemParamSchema = z103.object({
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
2668
|
+
id: z103.optional(z103.union([z103.string(), z103.null()])),
|
|
2669
|
+
type: z103
|
|
2670
|
+
.enum(['message'])
|
|
2671
|
+
.default('message')
|
|
2672
|
+
.describe('The item type. Always `message`.'),
|
|
2673
|
+
role: z103
|
|
2674
|
+
.enum(['user'])
|
|
2675
|
+
.default('user')
|
|
2676
|
+
.describe('The message role. Always `user`.'),
|
|
2677
|
+
content: z103
|
|
2678
|
+
.union([
|
|
2679
|
+
z103.array(
|
|
2680
|
+
z103
|
|
2681
|
+
.union([
|
|
2682
|
+
z103
|
|
2683
|
+
.lazy(() => inputTextContentParamSchema)
|
|
2684
|
+
.and(
|
|
2685
|
+
z103.object({
|
|
2686
|
+
type: z103.literal('input_text'),
|
|
2687
|
+
}),
|
|
2688
|
+
),
|
|
2689
|
+
z103
|
|
2690
|
+
.lazy(() => inputImageContentParamAutoParamSchema)
|
|
2691
|
+
.and(
|
|
2692
|
+
z103.object({
|
|
2693
|
+
type: z103.literal('input_image'),
|
|
2694
|
+
}),
|
|
2695
|
+
),
|
|
2696
|
+
z103
|
|
2697
|
+
.lazy(() => inputFileContentParamSchema)
|
|
2698
|
+
.and(
|
|
2699
|
+
z103.object({
|
|
2700
|
+
type: z103.literal('input_file'),
|
|
2701
|
+
}),
|
|
2702
|
+
),
|
|
2703
|
+
])
|
|
2704
|
+
.describe(
|
|
2705
|
+
'A piece of message content, such as text, an image, or a file.',
|
|
2706
|
+
),
|
|
2707
|
+
),
|
|
2708
|
+
z103.string(),
|
|
2709
|
+
])
|
|
2710
|
+
.describe('The message content, as an array of content parts.'),
|
|
2711
|
+
status: z103.optional(z103.union([z103.string(), z103.null()])),
|
|
2712
|
+
})
|
|
1287
2713
|
|
|
1288
2714
|
// src/client.ts
|
|
1289
2715
|
var TekimaxResponse = class {
|
|
1290
2716
|
constructor(_raw) {
|
|
1291
|
-
this._raw = _raw
|
|
2717
|
+
this._raw = _raw
|
|
1292
2718
|
}
|
|
1293
2719
|
/**
|
|
1294
2720
|
* Access the raw response object returned by the API.
|
|
1295
2721
|
*/
|
|
1296
2722
|
get raw() {
|
|
1297
|
-
return this._raw
|
|
2723
|
+
return this._raw
|
|
1298
2724
|
}
|
|
1299
2725
|
/**
|
|
1300
2726
|
* Automatically extracts the text content from the response.
|
|
1301
2727
|
* It looks for the first "output_text" item in the response content.
|
|
1302
2728
|
*/
|
|
1303
2729
|
get text() {
|
|
1304
|
-
if (!this._raw.output) return void 0
|
|
2730
|
+
if (!this._raw.output) return void 0
|
|
1305
2731
|
for (const item of this._raw.output) {
|
|
1306
|
-
if (item.type ===
|
|
2732
|
+
if (item.type === 'message') {
|
|
1307
2733
|
for (const contentPart of item.content) {
|
|
1308
|
-
if (
|
|
1309
|
-
|
|
2734
|
+
if (
|
|
2735
|
+
contentPart.type === 'output_text' ||
|
|
2736
|
+
contentPart.type === 'text'
|
|
2737
|
+
) {
|
|
2738
|
+
return contentPart.text
|
|
1310
2739
|
}
|
|
1311
2740
|
}
|
|
1312
2741
|
}
|
|
1313
2742
|
}
|
|
1314
|
-
return void 0
|
|
2743
|
+
return void 0
|
|
1315
2744
|
}
|
|
1316
2745
|
/**
|
|
1317
2746
|
* The ID of the response.
|
|
1318
2747
|
*/
|
|
1319
2748
|
get id() {
|
|
1320
|
-
return this._raw.id ?? void 0
|
|
2749
|
+
return this._raw.id ?? void 0
|
|
1321
2750
|
}
|
|
1322
2751
|
/**
|
|
1323
2752
|
* The model used to generate the response.
|
|
1324
2753
|
*/
|
|
1325
2754
|
get model() {
|
|
1326
|
-
return this._raw.model ?? void 0
|
|
2755
|
+
return this._raw.model ?? void 0
|
|
1327
2756
|
}
|
|
1328
|
-
}
|
|
2757
|
+
}
|
|
1329
2758
|
var TekimaxClient = class {
|
|
1330
2759
|
/**
|
|
1331
2760
|
* Creates a new TekimaxClient.
|
|
1332
|
-
*
|
|
2761
|
+
*
|
|
1333
2762
|
* @param options - Configuration options for the client.
|
|
1334
2763
|
* @param options.baseUrl - The base URL of the API (default: "https://api.tekimax.com").
|
|
1335
2764
|
* @param options.apiKey - Your Tekimax API key.
|
|
1336
|
-
*
|
|
2765
|
+
*
|
|
1337
2766
|
* @example
|
|
1338
2767
|
* const client = new TekimaxClient({ apiKey: "tm_..." });
|
|
1339
2768
|
*/
|
|
1340
2769
|
constructor(options = {}) {
|
|
1341
|
-
this.baseUrl = options.baseUrl ||
|
|
2770
|
+
this.baseUrl = options.baseUrl || 'https://api.tekimax.com'
|
|
1342
2771
|
this.headers = {
|
|
1343
|
-
|
|
1344
|
-
...options.apiKey ? {
|
|
1345
|
-
}
|
|
2772
|
+
'Content-Type': 'application/json',
|
|
2773
|
+
...(options.apiKey ? { Authorization: `Bearer ${options.apiKey}` } : {}),
|
|
2774
|
+
}
|
|
1346
2775
|
}
|
|
1347
2776
|
async request(path, body) {
|
|
1348
2777
|
const response = await fetch(`${this.baseUrl}${path}`, {
|
|
1349
|
-
method:
|
|
2778
|
+
method: 'POST',
|
|
1350
2779
|
headers: this.headers,
|
|
1351
|
-
body: JSON.stringify(body)
|
|
1352
|
-
})
|
|
2780
|
+
body: JSON.stringify(body),
|
|
2781
|
+
})
|
|
1353
2782
|
if (!response.ok) {
|
|
1354
|
-
throw new Error(
|
|
2783
|
+
throw new Error(
|
|
2784
|
+
`Tekimax API Error: ${response.status} ${response.statusText}`,
|
|
2785
|
+
)
|
|
1355
2786
|
}
|
|
1356
|
-
const data = await response.json()
|
|
1357
|
-
return new TekimaxResponse(data)
|
|
2787
|
+
const data = await response.json()
|
|
2788
|
+
return new TekimaxResponse(data)
|
|
1358
2789
|
}
|
|
1359
2790
|
/**
|
|
1360
2791
|
* Creates a new session and sends the initial message.
|
|
1361
|
-
*
|
|
2792
|
+
*
|
|
1362
2793
|
* @param message - The initial message text to start the session.
|
|
1363
2794
|
* @param options - Additional configuration options (model, temperature, etc.).
|
|
1364
|
-
*
|
|
2795
|
+
*
|
|
1365
2796
|
* @example
|
|
1366
2797
|
* const response = await client.createSession("Hello, world!", { model: "gpt-4" });
|
|
1367
2798
|
* console.log(response.text);
|
|
@@ -1369,26 +2800,26 @@ var TekimaxClient = class {
|
|
|
1369
2800
|
async createSession(message, options) {
|
|
1370
2801
|
const body = {
|
|
1371
2802
|
...options,
|
|
1372
|
-
input: message
|
|
1373
|
-
}
|
|
1374
|
-
return this.request(
|
|
2803
|
+
input: message,
|
|
2804
|
+
}
|
|
2805
|
+
return this.request('/responses', body)
|
|
1375
2806
|
}
|
|
1376
2807
|
/**
|
|
1377
2808
|
* Sends a message to an existing session or starts a new one if no previous_response_id is provided.
|
|
1378
|
-
*
|
|
2809
|
+
*
|
|
1379
2810
|
* @param message - The message text to send.
|
|
1380
2811
|
* @param options - Additional configuration options.
|
|
1381
|
-
*
|
|
2812
|
+
*
|
|
1382
2813
|
* @example
|
|
1383
|
-
* const response = await client.sendMessage("What is the weather?", {
|
|
1384
|
-
* previous_response_id: "resp_123"
|
|
2814
|
+
* const response = await client.sendMessage("What is the weather?", {
|
|
2815
|
+
* previous_response_id: "resp_123"
|
|
1385
2816
|
* });
|
|
1386
2817
|
* console.log(response.text);
|
|
1387
2818
|
*/
|
|
1388
2819
|
async sendMessage(message, options) {
|
|
1389
|
-
return this.createSession(message, options)
|
|
2820
|
+
return this.createSession(message, options)
|
|
1390
2821
|
}
|
|
1391
|
-
}
|
|
2822
|
+
}
|
|
1392
2823
|
export {
|
|
1393
2824
|
TekimaxClient,
|
|
1394
2825
|
TekimaxResponse,
|
|
@@ -1578,5 +3009,5 @@ export {
|
|
|
1578
3009
|
userMessageItemParamSchema,
|
|
1579
3010
|
userMessageItemParamTypeEnum,
|
|
1580
3011
|
verbosityEnumEnum,
|
|
1581
|
-
verbosityEnumSchema
|
|
1582
|
-
}
|
|
3012
|
+
verbosityEnumSchema,
|
|
3013
|
+
}
|