tekimax-ts 0.1.7 → 0.1.8
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 +113 -26
- package/dist/adapter-BtbeHotF.d.cts +81 -0
- package/dist/adapter-BtbeHotF.d.ts +81 -0
- package/dist/adapter-C5iFgx6o.d.cts +162 -0
- package/dist/adapter-C5iFgx6o.d.ts +162 -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-xdRwibId.d.cts +144 -0
- package/dist/adapter-xdRwibId.d.ts +144 -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 +1574 -0
- package/dist/index.d.cts +2823 -0
- package/dist/index.d.mts +51000 -31111
- package/dist/index.d.ts +407 -29296
- package/dist/index.js +1136 -1405
- package/dist/index.mjs +2441 -1010
- package/dist/react/index.cjs +216 -0
- package/dist/react/index.d.cts +25 -0
- package/dist/react/index.d.ts +25 -0
- package/dist/react/index.js +191 -0
- package/dist/tekimax-C-DJ0z27.d.cts +283 -0
- package/dist/tekimax-C-DJ0z27.d.ts +283 -0
- package/package.json +47 -9
- 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
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { z } from "zod";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @description A streaming event that indicated function call arguments were incrementally added.
|
|
10
|
-
*/
|
|
11
|
-
export const responseFunctionCallArgumentsDeltaStreamingEventSchema = z.object({
|
|
12
|
-
"type": z.enum(["response.function_call_arguments.delta"]).default("response.function_call_arguments.delta").describe("The type of the event, always `response.function_call_arguments.delta`."),
|
|
13
|
-
"sequence_number": z.number().int().describe("The sequence number of the event that was emitted."),
|
|
14
|
-
"item_id": z.string().describe("The ID of the tool call item that was updated."),
|
|
15
|
-
"output_index": z.number().int().describe("The index of the output item that was updated."),
|
|
16
|
-
"delta": z.string().describe("The arguments delta that was appended."),
|
|
17
|
-
"obfuscation": z.optional(z.string().describe("An obfuscation string that was added to pad the event payload."))
|
|
18
|
-
}).describe("A streaming event that indicated function call arguments were incrementally added.")
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { z } from "zod";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @description A streaming event that indicated function call arguments were completed.
|
|
10
|
-
*/
|
|
11
|
-
export const responseFunctionCallArgumentsDoneStreamingEventSchema = z.object({
|
|
12
|
-
"type": z.enum(["response.function_call_arguments.done"]).default("response.function_call_arguments.done").describe("The type of the event, always `response.function_call_arguments.done`."),
|
|
13
|
-
"sequence_number": z.number().int().describe("The sequence number of the event that was emitted."),
|
|
14
|
-
"item_id": z.string().describe("The ID of the tool call item that was updated."),
|
|
15
|
-
"output_index": z.number().int().describe("The index of the output item that was updated."),
|
|
16
|
-
"arguments": z.string().describe("The final arguments string that was emitted.")
|
|
17
|
-
}).describe("A streaming event that indicated function call arguments were completed.")
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { responseResourceSchema } from "./responseResourceSchema.ts";
|
|
7
|
-
import { z } from "zod";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @description A streaming event that indicated the response was in progress.
|
|
11
|
-
*/
|
|
12
|
-
export const responseInProgressStreamingEventSchema = z.object({
|
|
13
|
-
"type": z.enum(["response.in_progress"]).default("response.in_progress").describe("The type of the event, always `response.in_progress`."),
|
|
14
|
-
"sequence_number": z.number().int().describe("The sequence number of the event that was emitted."),
|
|
15
|
-
"response": z.lazy(() => responseResourceSchema).and(z.any())
|
|
16
|
-
}).describe("A streaming event that indicated the response was in progress.")
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { responseResourceSchema } from "./responseResourceSchema.ts";
|
|
7
|
-
import { z } from "zod";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @description A streaming event that indicated the response was incomplete.
|
|
11
|
-
*/
|
|
12
|
-
export const responseIncompleteStreamingEventSchema = z.object({
|
|
13
|
-
"type": z.enum(["response.incomplete"]).default("response.incomplete").describe("The type of the event, always `response.incomplete`."),
|
|
14
|
-
"sequence_number": z.number().int().describe("The sequence number of the event that was emitted."),
|
|
15
|
-
"response": z.lazy(() => responseResourceSchema).and(z.any())
|
|
16
|
-
}).describe("A streaming event that indicated the response was incomplete.")
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { itemFieldSchema } from "./itemFieldSchema.ts";
|
|
7
|
-
import { z } from "zod";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @description A streaming event that indicated an output item was added to the response.
|
|
11
|
-
*/
|
|
12
|
-
export const responseOutputItemAddedStreamingEventSchema = z.object({
|
|
13
|
-
"type": z.enum(["response.output_item.added"]).default("response.output_item.added").describe("The type of the event, always `response.output_item.added`."),
|
|
14
|
-
"sequence_number": z.number().int().describe("The sequence number of the event that was emitted."),
|
|
15
|
-
"output_index": z.number().int().describe("The index of the output item that was added."),
|
|
16
|
-
"item": z.union([z.lazy(() => itemFieldSchema).and(z.any()), z.null()])
|
|
17
|
-
}).describe("A streaming event that indicated an output item was added to the response.")
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { itemFieldSchema } from "./itemFieldSchema.ts";
|
|
7
|
-
import { z } from "zod";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @description A streaming event that indicated an output item was completed.
|
|
11
|
-
*/
|
|
12
|
-
export const responseOutputItemDoneStreamingEventSchema = z.object({
|
|
13
|
-
"type": z.enum(["response.output_item.done"]).default("response.output_item.done").describe("The type of the event, always `response.output_item.done`."),
|
|
14
|
-
"sequence_number": z.number().int().describe("The sequence number of the event that was emitted."),
|
|
15
|
-
"output_index": z.number().int().describe("The index of the output item that was completed."),
|
|
16
|
-
"item": z.union([z.lazy(() => itemFieldSchema).and(z.any()), z.null()])
|
|
17
|
-
}).describe("A streaming event that indicated an output item was completed.")
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { annotationSchema } from "./annotationSchema.ts";
|
|
7
|
-
import { z } from "zod";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @description A streaming event that indicated an output text annotation was added.
|
|
11
|
-
*/
|
|
12
|
-
export const responseOutputTextAnnotationAddedStreamingEventSchema = z.object({
|
|
13
|
-
"type": z.enum(["response.output_text.annotation.added"]).default("response.output_text.annotation.added").describe("The type of the event, always `response.output_text.annotation.added`."),
|
|
14
|
-
"sequence_number": z.number().int().describe("The sequence number of the event that was emitted."),
|
|
15
|
-
"item_id": z.string().describe("The ID of the item that was updated."),
|
|
16
|
-
"output_index": z.number().int().describe("The index of the output item that was updated."),
|
|
17
|
-
"content_index": z.number().int().describe("The index of the output text content that was updated."),
|
|
18
|
-
"annotation_index": z.number().int().describe("The index of the annotation that was added."),
|
|
19
|
-
"annotation": z.union([z.lazy(() => annotationSchema).and(z.any()), z.null()])
|
|
20
|
-
}).describe("A streaming event that indicated an output text annotation was added.")
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { logProbSchema } from "./logProbSchema.ts";
|
|
7
|
-
import { z } from "zod";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @description A streaming event that indicated output text was incrementally added.
|
|
11
|
-
*/
|
|
12
|
-
export const responseOutputTextDeltaStreamingEventSchema = z.object({
|
|
13
|
-
"type": z.enum(["response.output_text.delta"]).default("response.output_text.delta").describe("The type of the event, always `response.output_text.delta`."),
|
|
14
|
-
"sequence_number": z.number().int().describe("The sequence number of the event that was emitted."),
|
|
15
|
-
"item_id": z.string().describe("The ID of the item that was updated."),
|
|
16
|
-
"output_index": z.number().int().describe("The index of the output item that was updated."),
|
|
17
|
-
"content_index": z.number().int().describe("The index of the content part that was updated."),
|
|
18
|
-
"delta": z.string().describe("The text delta that was appended."),
|
|
19
|
-
"logprobs": z.array(z.lazy(() => logProbSchema).describe("The log probability of a token.")).describe("The token log probabilities that were emitted with the delta, if any."),
|
|
20
|
-
"obfuscation": z.optional(z.string().describe("An obfuscation string that was added to pad the event payload."))
|
|
21
|
-
}).describe("A streaming event that indicated output text was incrementally added.")
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { logProbSchema } from "./logProbSchema.ts";
|
|
7
|
-
import { z } from "zod";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @description A streaming event that indicated output text was completed.
|
|
11
|
-
*/
|
|
12
|
-
export const responseOutputTextDoneStreamingEventSchema = z.object({
|
|
13
|
-
"type": z.enum(["response.output_text.done"]).default("response.output_text.done").describe("The type of the event, always `response.output_text.done`."),
|
|
14
|
-
"sequence_number": z.number().int().describe("The sequence number of the event that was emitted."),
|
|
15
|
-
"item_id": z.string().describe("The ID of the item that was updated."),
|
|
16
|
-
"output_index": z.number().int().describe("The index of the output item that was updated."),
|
|
17
|
-
"content_index": z.number().int().describe("The index of the content part that was completed."),
|
|
18
|
-
"text": z.string().describe("The final text that was emitted."),
|
|
19
|
-
"logprobs": z.array(z.lazy(() => logProbSchema).describe("The log probability of a token.")).describe("The token log probabilities that were emitted with the final text, if any.")
|
|
20
|
-
}).describe("A streaming event that indicated output text was completed.")
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { responseResourceSchema } from "./responseResourceSchema.ts";
|
|
7
|
-
import { z } from "zod";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @description A streaming event that indicated the response was queued.
|
|
11
|
-
*/
|
|
12
|
-
export const responseQueuedStreamingEventSchema = z.object({
|
|
13
|
-
"type": z.enum(["response.queued"]).default("response.queued").describe("The type of the event, always `response.queued`."),
|
|
14
|
-
"sequence_number": z.number().int().describe("The sequence number of the event that was emitted."),
|
|
15
|
-
"response": z.lazy(() => responseResourceSchema).and(z.any())
|
|
16
|
-
}).describe("A streaming event that indicated the response was queued.")
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { z } from "zod";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @description A streaming event that indicated reasoning text was incrementally added.
|
|
10
|
-
*/
|
|
11
|
-
export const responseReasoningDeltaStreamingEventSchema = z.object({
|
|
12
|
-
"type": z.enum(["response.reasoning.delta"]).default("response.reasoning.delta").describe("The type of the event, always `response.reasoning.delta`."),
|
|
13
|
-
"sequence_number": z.number().int().describe("The sequence number of the event that was emitted."),
|
|
14
|
-
"item_id": z.string().describe("The ID of the item that was updated."),
|
|
15
|
-
"output_index": z.number().int().describe("The index of the output item that was updated."),
|
|
16
|
-
"content_index": z.number().int().describe("The index of the reasoning content that was updated."),
|
|
17
|
-
"delta": z.string().describe("The reasoning text delta that was appended."),
|
|
18
|
-
"obfuscation": z.optional(z.string().describe("An obfuscation string that was added to pad the event payload."))
|
|
19
|
-
}).describe("A streaming event that indicated reasoning text was incrementally added.")
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { z } from "zod";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @description A streaming event that indicated reasoning text was completed.
|
|
10
|
-
*/
|
|
11
|
-
export const responseReasoningDoneStreamingEventSchema = z.object({
|
|
12
|
-
"type": z.enum(["response.reasoning.done"]).default("response.reasoning.done").describe("The type of the event, always `response.reasoning.done`."),
|
|
13
|
-
"sequence_number": z.number().int().describe("The sequence number of the event that was emitted."),
|
|
14
|
-
"item_id": z.string().describe("The ID of the item that was updated."),
|
|
15
|
-
"output_index": z.number().int().describe("The index of the output item that was updated."),
|
|
16
|
-
"content_index": z.number().int().describe("The index of the reasoning content that was completed."),
|
|
17
|
-
"text": z.string().describe("The final reasoning text that was emitted.")
|
|
18
|
-
}).describe("A streaming event that indicated reasoning text was completed.")
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { z } from "zod";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @description A streaming event that indicated a reasoning summary was incrementally added.
|
|
10
|
-
*/
|
|
11
|
-
export const responseReasoningSummaryDeltaStreamingEventSchema = z.object({
|
|
12
|
-
"type": z.enum(["response.reasoning_summary_text.delta"]).default("response.reasoning_summary_text.delta").describe("The type of the event, always `response.reasoning_summary.delta`."),
|
|
13
|
-
"sequence_number": z.number().int().describe("The sequence number of the event that was emitted."),
|
|
14
|
-
"item_id": z.string().describe("The ID of the item that was updated."),
|
|
15
|
-
"output_index": z.number().int().describe("The index of the output item that was updated."),
|
|
16
|
-
"summary_index": z.number().int().describe("The index of the summary content that was updated."),
|
|
17
|
-
"delta": z.string().describe("The summary text delta that was appended."),
|
|
18
|
-
"obfuscation": z.optional(z.string().describe("An obfuscation string that was added to pad the event payload."))
|
|
19
|
-
}).describe("A streaming event that indicated a reasoning summary was incrementally added.")
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { z } from "zod";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @description A streaming event that indicated a reasoning summary was completed.
|
|
10
|
-
*/
|
|
11
|
-
export const responseReasoningSummaryDoneStreamingEventSchema = z.object({
|
|
12
|
-
"type": z.enum(["response.reasoning_summary_text.done"]).default("response.reasoning_summary_text.done").describe("The type of the event, always `response.reasoning_summary.done`."),
|
|
13
|
-
"sequence_number": z.number().int().describe("The sequence number of the event that was emitted."),
|
|
14
|
-
"item_id": z.string().describe("The ID of the item that was updated."),
|
|
15
|
-
"output_index": z.number().int().describe("The index of the output item that was updated."),
|
|
16
|
-
"summary_index": z.number().int().describe("The index of the summary content that was completed."),
|
|
17
|
-
"text": z.string().describe("The final summary text that was emitted.")
|
|
18
|
-
}).describe("A streaming event that indicated a reasoning summary was completed.")
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { inputFileContentSchema } from "./inputFileContentSchema.ts";
|
|
7
|
-
import { inputImageContentSchema } from "./inputImageContentSchema.ts";
|
|
8
|
-
import { inputTextContentSchema } from "./inputTextContentSchema.ts";
|
|
9
|
-
import { outputTextContentSchema } from "./outputTextContentSchema.ts";
|
|
10
|
-
import { reasoningTextContentSchema } from "./reasoningTextContentSchema.ts";
|
|
11
|
-
import { refusalContentSchema } from "./refusalContentSchema.ts";
|
|
12
|
-
import { summaryTextContentSchema } from "./summaryTextContentSchema.ts";
|
|
13
|
-
import { textContentSchema } from "./textContentSchema.ts";
|
|
14
|
-
import { z } from "zod";
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @description A streaming event that indicated a reasoning summary part was added.
|
|
18
|
-
*/
|
|
19
|
-
export const responseReasoningSummaryPartAddedStreamingEventSchema = z.object({
|
|
20
|
-
"type": z.enum(["response.reasoning_summary_part.added"]).default("response.reasoning_summary_part.added").describe("The type of the event, always `response.reasoning_summary_part.added`."),
|
|
21
|
-
"sequence_number": z.number().int().describe("The sequence number of the event that was emitted."),
|
|
22
|
-
"item_id": z.string().describe("The ID of the item that was updated."),
|
|
23
|
-
"output_index": z.number().int().describe("The index of the output item that was updated."),
|
|
24
|
-
"summary_index": z.number().int().describe("The index of the summary part that was added."),
|
|
25
|
-
"part": z.union([z.lazy(() => inputTextContentSchema).and(z.object({
|
|
26
|
-
"type": z.literal("input_text")
|
|
27
|
-
})), z.lazy(() => outputTextContentSchema).and(z.object({
|
|
28
|
-
"type": z.literal("output_text")
|
|
29
|
-
})), z.lazy(() => textContentSchema).and(z.object({
|
|
30
|
-
"type": z.literal("text")
|
|
31
|
-
})), z.lazy(() => summaryTextContentSchema).and(z.object({
|
|
32
|
-
"type": z.literal("summary_text")
|
|
33
|
-
})), z.lazy(() => reasoningTextContentSchema).and(z.object({
|
|
34
|
-
"type": z.literal("reasoning_text")
|
|
35
|
-
})), z.lazy(() => refusalContentSchema).and(z.object({
|
|
36
|
-
"type": z.literal("refusal")
|
|
37
|
-
})), z.lazy(() => inputImageContentSchema).and(z.object({
|
|
38
|
-
"type": z.literal("input_image")
|
|
39
|
-
})), z.lazy(() => inputFileContentSchema).and(z.object({
|
|
40
|
-
"type": z.literal("input_file")
|
|
41
|
-
}))]).describe("A content part that makes up an input or output item.")
|
|
42
|
-
}).describe("A streaming event that indicated a reasoning summary part was added.")
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { inputFileContentSchema } from "./inputFileContentSchema.ts";
|
|
7
|
-
import { inputImageContentSchema } from "./inputImageContentSchema.ts";
|
|
8
|
-
import { inputTextContentSchema } from "./inputTextContentSchema.ts";
|
|
9
|
-
import { outputTextContentSchema } from "./outputTextContentSchema.ts";
|
|
10
|
-
import { reasoningTextContentSchema } from "./reasoningTextContentSchema.ts";
|
|
11
|
-
import { refusalContentSchema } from "./refusalContentSchema.ts";
|
|
12
|
-
import { summaryTextContentSchema } from "./summaryTextContentSchema.ts";
|
|
13
|
-
import { textContentSchema } from "./textContentSchema.ts";
|
|
14
|
-
import { z } from "zod";
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @description A streaming event that indicated a reasoning summary part was completed.
|
|
18
|
-
*/
|
|
19
|
-
export const responseReasoningSummaryPartDoneStreamingEventSchema = z.object({
|
|
20
|
-
"type": z.enum(["response.reasoning_summary_part.done"]).default("response.reasoning_summary_part.done").describe("The type of the event, always `response.reasoning_summary_part.done`."),
|
|
21
|
-
"sequence_number": z.number().int().describe("The sequence number of the event that was emitted."),
|
|
22
|
-
"item_id": z.string().describe("The ID of the item that was updated."),
|
|
23
|
-
"output_index": z.number().int().describe("The index of the output item that was updated."),
|
|
24
|
-
"summary_index": z.number().int().describe("The index of the summary part that was completed."),
|
|
25
|
-
"part": z.union([z.lazy(() => inputTextContentSchema).and(z.object({
|
|
26
|
-
"type": z.literal("input_text")
|
|
27
|
-
})), z.lazy(() => outputTextContentSchema).and(z.object({
|
|
28
|
-
"type": z.literal("output_text")
|
|
29
|
-
})), z.lazy(() => textContentSchema).and(z.object({
|
|
30
|
-
"type": z.literal("text")
|
|
31
|
-
})), z.lazy(() => summaryTextContentSchema).and(z.object({
|
|
32
|
-
"type": z.literal("summary_text")
|
|
33
|
-
})), z.lazy(() => reasoningTextContentSchema).and(z.object({
|
|
34
|
-
"type": z.literal("reasoning_text")
|
|
35
|
-
})), z.lazy(() => refusalContentSchema).and(z.object({
|
|
36
|
-
"type": z.literal("refusal")
|
|
37
|
-
})), z.lazy(() => inputImageContentSchema).and(z.object({
|
|
38
|
-
"type": z.literal("input_image")
|
|
39
|
-
})), z.lazy(() => inputFileContentSchema).and(z.object({
|
|
40
|
-
"type": z.literal("input_file")
|
|
41
|
-
}))]).describe("A content part that makes up an input or output item.")
|
|
42
|
-
}).describe("A streaming event that indicated a reasoning summary part was completed.")
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { z } from "zod";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @description A streaming event that indicated refusal text was incrementally added.
|
|
10
|
-
*/
|
|
11
|
-
export const responseRefusalDeltaStreamingEventSchema = z.object({
|
|
12
|
-
"type": z.enum(["response.refusal.delta"]).default("response.refusal.delta").describe("The type of the event, always `response.refusal.delta`."),
|
|
13
|
-
"sequence_number": z.number().int().describe("The sequence number of the event that was emitted."),
|
|
14
|
-
"item_id": z.string().describe("The ID of the item that was updated."),
|
|
15
|
-
"output_index": z.number().int().describe("The index of the output item that was updated."),
|
|
16
|
-
"content_index": z.number().int().describe("The index of the refusal content that was updated."),
|
|
17
|
-
"delta": z.string().describe("The refusal text delta that was appended.")
|
|
18
|
-
}).describe("A streaming event that indicated refusal text was incrementally added.")
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { z } from "zod";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @description A streaming event that indicated refusal text was completed.
|
|
10
|
-
*/
|
|
11
|
-
export const responseRefusalDoneStreamingEventSchema = z.object({
|
|
12
|
-
"type": z.enum(["response.refusal.done"]).default("response.refusal.done").describe("The type of the event, always `response.refusal.done`."),
|
|
13
|
-
"sequence_number": z.number().int().describe("The sequence number of the event that was emitted."),
|
|
14
|
-
"item_id": z.string().describe("The ID of the item that was updated."),
|
|
15
|
-
"output_index": z.number().int().describe("The index of the output item that was updated."),
|
|
16
|
-
"content_index": z.number().int().describe("The index of the refusal content that was completed."),
|
|
17
|
-
"refusal": z.string().describe("The final refusal text that was emitted.")
|
|
18
|
-
}).describe("A streaming event that indicated refusal text was completed.")
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { allowedToolChoiceSchema } from "./allowedToolChoiceSchema.ts";
|
|
7
|
-
import { errorSchema } from "./errorSchema.ts";
|
|
8
|
-
import { functionToolChoiceSchema } from "./functionToolChoiceSchema.ts";
|
|
9
|
-
import { incompleteDetailsSchema } from "./incompleteDetailsSchema.ts";
|
|
10
|
-
import { itemFieldSchema } from "./itemFieldSchema.ts";
|
|
11
|
-
import { reasoningSchema } from "./reasoningSchema.ts";
|
|
12
|
-
import { textFieldSchema } from "./textFieldSchema.ts";
|
|
13
|
-
import { toolChoiceValueEnumSchema } from "./toolChoiceValueEnumSchema.ts";
|
|
14
|
-
import { toolSchema } from "./toolSchema.ts";
|
|
15
|
-
import { truncationEnumSchema } from "./truncationEnumSchema.ts";
|
|
16
|
-
import { usageSchema } from "./usageSchema.ts";
|
|
17
|
-
import { z } from "zod";
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @description The complete response object that was returned by the Responses API.
|
|
21
|
-
*/
|
|
22
|
-
export const responseResourceSchema = z.object({
|
|
23
|
-
"id": z.string().describe("The unique ID of the response that was created."),
|
|
24
|
-
"object": z.enum(["response"]).default("response").describe("The object type, which was always `response`."),
|
|
25
|
-
"created_at": z.number().int().describe("The Unix timestamp (in seconds) for when the response was created."),
|
|
26
|
-
"completed_at": z.union([z.number().int(), z.null()]),
|
|
27
|
-
"status": z.string().describe("The status that was set for the response."),
|
|
28
|
-
"incomplete_details": z.union([z.lazy(() => incompleteDetailsSchema).and(z.any()), z.null()]),
|
|
29
|
-
"model": z.string().describe("The model that generated this response."),
|
|
30
|
-
"previous_response_id": z.union([z.string(), z.null()]),
|
|
31
|
-
"instructions": z.union([z.string(), z.null()]),
|
|
32
|
-
"output": z.array(z.lazy(() => itemFieldSchema).describe("An item representing a message, tool call, tool output, reasoning, or other response element.")).describe("The output items that were generated by the model."),
|
|
33
|
-
"error": z.union([z.lazy(() => errorSchema).and(z.any()), z.null()]),
|
|
34
|
-
"tools": z.array(z.lazy(() => toolSchema).describe("A tool that can be used to generate a response.")).describe("The tools that were available to the model during response generation."),
|
|
35
|
-
"tool_choice": z.union([z.lazy(() => functionToolChoiceSchema), z.lazy(() => toolChoiceValueEnumSchema), z.lazy(() => allowedToolChoiceSchema)]),
|
|
36
|
-
"truncation": z.lazy(() => truncationEnumSchema).and(z.any()),
|
|
37
|
-
"parallel_tool_calls": z.boolean().describe("Whether the model was allowed to call multiple tools in parallel."),
|
|
38
|
-
"text": z.lazy(() => textFieldSchema).and(z.any()),
|
|
39
|
-
"top_p": z.number().describe("The nucleus sampling parameter that was used for this response."),
|
|
40
|
-
"presence_penalty": z.number().describe("The presence penalty that was used to penalize new tokens based on whether they appear in the text so far."),
|
|
41
|
-
"frequency_penalty": z.number().describe("The frequency penalty that was used to penalize new tokens based on their frequency in the text so far."),
|
|
42
|
-
"top_logprobs": z.number().int().describe("The number of most likely tokens that were returned at each position, along with their log probabilities."),
|
|
43
|
-
"temperature": z.number().describe("The sampling temperature that was used for this response."),
|
|
44
|
-
"reasoning": z.union([z.lazy(() => reasoningSchema).and(z.any()), z.null()]),
|
|
45
|
-
"usage": z.union([z.lazy(() => usageSchema).and(z.any()), z.null()]),
|
|
46
|
-
"max_output_tokens": z.union([z.number().int(), z.null()]),
|
|
47
|
-
"max_tool_calls": z.union([z.number().int(), z.null()]),
|
|
48
|
-
"store": z.boolean().describe("Whether this response was stored so it can be retrieved later."),
|
|
49
|
-
"background": z.boolean().describe("Whether this request was run in the background."),
|
|
50
|
-
"service_tier": z.string().describe("The service tier that was used for this response."),
|
|
51
|
-
"metadata": z.any().describe("Developer-defined metadata that was associated with the response."),
|
|
52
|
-
"safety_identifier": z.union([z.string(), z.null()]),
|
|
53
|
-
"prompt_cache_key": z.union([z.string(), z.null()])
|
|
54
|
-
}).describe("The complete response object that was returned by the Responses API.")
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { functionToolParamSchema } from "./functionToolParamSchema.ts";
|
|
7
|
-
import { z } from "zod";
|
|
8
|
-
|
|
9
|
-
export const responsesToolParamSchema = z.lazy(() => functionToolParamSchema).and(z.object({
|
|
10
|
-
"type": z.literal("function")
|
|
11
|
-
}))
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { z } from "zod";
|
|
7
|
-
|
|
8
|
-
export const specificFunctionParamSchema = z.object({
|
|
9
|
-
"type": z.enum(["function"]).default("function").describe("The tool to call. Always `function`."),
|
|
10
|
-
"name": z.string().describe("The name of the function tool to call.")
|
|
11
|
-
})
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { specificFunctionParamSchema } from "./specificFunctionParamSchema.ts";
|
|
7
|
-
import { z } from "zod";
|
|
8
|
-
|
|
9
|
-
export const specificToolChoiceParamSchema = z.lazy(() => specificFunctionParamSchema)
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { z } from "zod";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @description Options that control streamed response behavior.
|
|
10
|
-
*/
|
|
11
|
-
export const streamOptionsParamSchema = z.object({
|
|
12
|
-
"include_obfuscation": z.optional(z.boolean().describe("Whether to obfuscate sensitive information in streamed output. Defaults to `true`."))
|
|
13
|
-
}).describe("Options that control streamed response behavior.")
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { z } from "zod";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @description A summary text from the model.
|
|
10
|
-
*/
|
|
11
|
-
export const summaryTextContentSchema = z.object({
|
|
12
|
-
"type": z.enum(["summary_text"]).default("summary_text").describe("The type of the object. Always `summary_text`."),
|
|
13
|
-
"text": z.string().describe("A summary of the reasoning output from the model so far.")
|
|
14
|
-
}).describe("A summary text from the model.")
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { inputTextContentParamSchema } from "./inputTextContentParamSchema.ts";
|
|
7
|
-
import { z } from "zod";
|
|
8
|
-
|
|
9
|
-
export const systemMessageItemParamSchema = z.object({
|
|
10
|
-
"id": z.optional(z.union([z.string(), z.null()])),
|
|
11
|
-
"type": z.enum(["message"]).default("message").describe("The item type. Always `message`."),
|
|
12
|
-
"role": z.enum(["system"]).default("system").describe("The message role. Always `system`."),
|
|
13
|
-
"content": z.union([z.array(z.lazy(() => inputTextContentParamSchema).and(z.object({
|
|
14
|
-
"type": z.literal("input_text")
|
|
15
|
-
}))), z.string()]).describe("The message content, as an array of content parts."),
|
|
16
|
-
"status": z.optional(z.union([z.string(), z.null()]))
|
|
17
|
-
})
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { z } from "zod";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @description A text content.
|
|
10
|
-
*/
|
|
11
|
-
export const textContentSchema = z.object({
|
|
12
|
-
"type": z.enum(["text"]).default("text"),
|
|
13
|
-
"text": z.string()
|
|
14
|
-
}).describe("A text content.")
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { jsonObjectResponseFormatSchema } from "./jsonObjectResponseFormatSchema.ts";
|
|
7
|
-
import { jsonSchemaResponseFormatSchema } from "./jsonSchemaResponseFormatSchema.ts";
|
|
8
|
-
import { textResponseFormatSchema } from "./textResponseFormatSchema.ts";
|
|
9
|
-
import { verbosityEnumSchema } from "./verbosityEnumSchema.ts";
|
|
10
|
-
import { z } from "zod";
|
|
11
|
-
|
|
12
|
-
export const textFieldSchema = z.object({
|
|
13
|
-
"format": z.union([z.lazy(() => textResponseFormatSchema), z.lazy(() => jsonObjectResponseFormatSchema), z.lazy(() => jsonSchemaResponseFormatSchema)]),
|
|
14
|
-
"verbosity": z.optional(z.lazy(() => verbosityEnumSchema))
|
|
15
|
-
})
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { jsonSchemaResponseFormatParamSchema } from "./jsonSchemaResponseFormatParamSchema.ts";
|
|
7
|
-
import { textResponseFormatSchema } from "./textResponseFormatSchema.ts";
|
|
8
|
-
import { z } from "zod";
|
|
9
|
-
|
|
10
|
-
export const textFormatParamSchema = z.union([z.lazy(() => textResponseFormatSchema), z.lazy(() => jsonSchemaResponseFormatParamSchema)])
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { textFormatParamSchema } from "./textFormatParamSchema.ts";
|
|
7
|
-
import { verbosityEnumSchema } from "./verbosityEnumSchema.ts";
|
|
8
|
-
import { z } from "zod";
|
|
9
|
-
|
|
10
|
-
export const textParamSchema = z.object({
|
|
11
|
-
"format": z.optional(z.union([z.lazy(() => textFormatParamSchema), z.null()]).describe("The format configuration for text output.")),
|
|
12
|
-
"verbosity": z.optional(z.lazy(() => verbosityEnumSchema).and(z.any()))
|
|
13
|
-
})
|