tekimax-ts 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dockerignore +5 -0
- package/Dockerfile +25 -0
- package/README.md +146 -0
- package/dist/gen/index.js +378 -0
- package/dist/gen/types.js +284 -0
- package/dist/gen/zod/allowedToolChoiceSchema.js +15 -0
- package/dist/gen/zod/allowedToolsParamSchema.js +15 -0
- package/dist/gen/zod/annotationSchema.js +15 -0
- package/dist/gen/zod/assistantMessageItemParamSchema.js +21 -0
- package/dist/gen/zod/createResponseBodySchema.js +46 -0
- package/dist/gen/zod/createresponseSchema.js +16 -0
- package/dist/gen/zod/detailEnumSchema.js +9 -0
- package/dist/gen/zod/developerMessageItemParamSchema.js +18 -0
- package/dist/gen/zod/emptyModelParamSchema.js +9 -0
- package/dist/gen/zod/errorPayloadSchema.js +18 -0
- package/dist/gen/zod/errorSchema.js +15 -0
- package/dist/gen/zod/errorStreamingEventSchema.js +17 -0
- package/dist/gen/zod/functionCallItemParamSchema.js +17 -0
- package/dist/gen/zod/functionCallItemStatusSchema.js +9 -0
- package/dist/gen/zod/functionCallOutputItemParamSchema.js +31 -0
- package/dist/gen/zod/functionCallOutputSchema.js +28 -0
- package/dist/gen/zod/functionCallOutputStatusEnumSchema.js +12 -0
- package/dist/gen/zod/functionCallSchema.js +20 -0
- package/dist/gen/zod/functionCallStatusSchema.js +9 -0
- package/dist/gen/zod/functionToolChoiceSchema.js +12 -0
- package/dist/gen/zod/functionToolParamSchema.js +16 -0
- package/dist/gen/zod/functionToolSchema.js +18 -0
- package/dist/gen/zod/imageDetailSchema.js +9 -0
- package/dist/gen/zod/includeEnumSchema.js +9 -0
- package/dist/gen/zod/incompleteDetailsSchema.js +14 -0
- package/dist/gen/zod/index.js +213 -0
- package/dist/gen/zod/inputFileContentParamSchema.js +17 -0
- package/dist/gen/zod/inputFileContentSchema.js +16 -0
- package/dist/gen/zod/inputImageContentParamAutoParamSchema.js +17 -0
- package/dist/gen/zod/inputImageContentSchema.js +17 -0
- package/dist/gen/zod/inputTextContentParamSchema.js +15 -0
- package/dist/gen/zod/inputTextContentSchema.js +15 -0
- package/dist/gen/zod/inputTokensDetailsSchema.js +14 -0
- package/dist/gen/zod/inputVideoContentSchema.js +15 -0
- package/dist/gen/zod/itemFieldSchema.js +24 -0
- package/dist/gen/zod/itemParamSchema.js +24 -0
- package/dist/gen/zod/itemReferenceParamSchema.js +15 -0
- package/dist/gen/zod/jsonObjectResponseFormatSchema.js +11 -0
- package/dist/gen/zod/jsonSchemaResponseFormatParamSchema.js +15 -0
- package/dist/gen/zod/jsonSchemaResponseFormatSchema.js +15 -0
- package/dist/gen/zod/logProbSchema.js +18 -0
- package/dist/gen/zod/messageRoleSchema.js +9 -0
- package/dist/gen/zod/messageSchema.js +47 -0
- package/dist/gen/zod/messageStatusSchema.js +9 -0
- package/dist/gen/zod/metadataParamSchema.js +12 -0
- package/dist/gen/zod/outputTextContentParamSchema.js +14 -0
- package/dist/gen/zod/outputTextContentSchema.js +19 -0
- package/dist/gen/zod/outputTokensDetailsSchema.js +14 -0
- package/dist/gen/zod/reasoningBodySchema.js +58 -0
- package/dist/gen/zod/reasoningEffortEnumSchema.js +9 -0
- package/dist/gen/zod/reasoningItemParamSchema.js +16 -0
- package/dist/gen/zod/reasoningParamSchema.js +17 -0
- package/dist/gen/zod/reasoningSchema.js +17 -0
- package/dist/gen/zod/reasoningSummaryContentParamSchema.js +12 -0
- package/dist/gen/zod/reasoningSummaryEnumSchema.js +9 -0
- package/dist/gen/zod/reasoningTextContentSchema.js +15 -0
- package/dist/gen/zod/refusalContentParamSchema.js +12 -0
- package/dist/gen/zod/refusalContentSchema.js +15 -0
- package/dist/gen/zod/responseCompletedStreamingEventSchema.js +17 -0
- package/dist/gen/zod/responseContentPartAddedStreamingEventSchema.js +43 -0
- package/dist/gen/zod/responseContentPartDoneStreamingEventSchema.js +43 -0
- package/dist/gen/zod/responseCreatedStreamingEventSchema.js +17 -0
- package/dist/gen/zod/responseFailedStreamingEventSchema.js +17 -0
- package/dist/gen/zod/responseFunctionCallArgumentsDeltaStreamingEventSchema.js +19 -0
- package/dist/gen/zod/responseFunctionCallArgumentsDoneStreamingEventSchema.js +18 -0
- package/dist/gen/zod/responseInProgressStreamingEventSchema.js +17 -0
- package/dist/gen/zod/responseIncompleteStreamingEventSchema.js +17 -0
- package/dist/gen/zod/responseOutputItemAddedStreamingEventSchema.js +18 -0
- package/dist/gen/zod/responseOutputItemDoneStreamingEventSchema.js +18 -0
- package/dist/gen/zod/responseOutputTextAnnotationAddedStreamingEventSchema.js +21 -0
- package/dist/gen/zod/responseOutputTextDeltaStreamingEventSchema.js +22 -0
- package/dist/gen/zod/responseOutputTextDoneStreamingEventSchema.js +21 -0
- package/dist/gen/zod/responseQueuedStreamingEventSchema.js +17 -0
- package/dist/gen/zod/responseReasoningDeltaStreamingEventSchema.js +20 -0
- package/dist/gen/zod/responseReasoningDoneStreamingEventSchema.js +19 -0
- package/dist/gen/zod/responseReasoningSummaryDeltaStreamingEventSchema.js +20 -0
- package/dist/gen/zod/responseReasoningSummaryDoneStreamingEventSchema.js +19 -0
- package/dist/gen/zod/responseReasoningSummaryPartAddedStreamingEventSchema.js +43 -0
- package/dist/gen/zod/responseReasoningSummaryPartDoneStreamingEventSchema.js +43 -0
- package/dist/gen/zod/responseRefusalDeltaStreamingEventSchema.js +19 -0
- package/dist/gen/zod/responseRefusalDoneStreamingEventSchema.js +19 -0
- package/dist/gen/zod/responseResourceSchema.js +55 -0
- package/dist/gen/zod/responsesToolParamSchema.js +12 -0
- package/dist/gen/zod/serviceTierEnumSchema.js +9 -0
- package/dist/gen/zod/specificFunctionParamSchema.js +12 -0
- package/dist/gen/zod/specificToolChoiceParamSchema.js +10 -0
- package/dist/gen/zod/streamOptionsParamSchema.js +14 -0
- package/dist/gen/zod/summaryTextContentSchema.js +15 -0
- package/dist/gen/zod/systemMessageItemParamSchema.js +18 -0
- package/dist/gen/zod/textContentSchema.js +15 -0
- package/dist/gen/zod/textFieldSchema.js +16 -0
- package/dist/gen/zod/textFormatParamSchema.js +11 -0
- package/dist/gen/zod/textParamSchema.js +14 -0
- package/dist/gen/zod/textResponseFormatSchema.js +11 -0
- package/dist/gen/zod/toolChoiceParamSchema.js +15 -0
- package/dist/gen/zod/toolChoiceValueEnumSchema.js +9 -0
- package/dist/gen/zod/toolSchema.js +15 -0
- package/dist/gen/zod/topLogProbSchema.js +16 -0
- package/dist/gen/zod/truncationEnumSchema.js +9 -0
- package/dist/gen/zod/urlCitationBodySchema.js +18 -0
- package/dist/gen/zod/urlCitationParamSchema.js +15 -0
- package/dist/gen/zod/usageSchema.js +20 -0
- package/dist/gen/zod/userMessageItemParamSchema.js +24 -0
- package/dist/gen/zod/verbosityEnumSchema.js +9 -0
- package/dist/index.d.mts +31636 -0
- package/dist/index.d.ts +31636 -0
- package/dist/index.js +1688 -0
- package/dist/index.mjs +1475 -0
- package/kubb.config.js +30 -0
- package/kubb.config.ts +29 -0
- package/package.json +48 -0
- package/public/logos/tekimax-logo-ScreenRGB-2.png +0 -0
- package/spec/openapi.json +3876 -0
- package/src/gen/index.ts +186 -0
- package/src/gen/schemas/allowedToolChoice.json +1 -0
- package/src/gen/schemas/allowedToolsParam.json +1 -0
- package/src/gen/schemas/annotation.json +1 -0
- package/src/gen/schemas/assistantMessageItemParam.json +1 -0
- package/src/gen/schemas/createResponseBody.json +1 -0
- package/src/gen/schemas/detailEnum.json +1 -0
- package/src/gen/schemas/developerMessageItemParam.json +1 -0
- package/src/gen/schemas/emptyModelParam.json +1 -0
- package/src/gen/schemas/error.json +1 -0
- package/src/gen/schemas/errorPayload.json +1 -0
- package/src/gen/schemas/errorStreamingEvent.json +1 -0
- package/src/gen/schemas/functionCall.json +1 -0
- package/src/gen/schemas/functionCallItemParam.json +1 -0
- package/src/gen/schemas/functionCallItemStatus.json +1 -0
- package/src/gen/schemas/functionCallOutput.json +1 -0
- package/src/gen/schemas/functionCallOutputItemParam.json +1 -0
- package/src/gen/schemas/functionCallOutputStatusEnum.json +1 -0
- package/src/gen/schemas/functionCallStatus.json +1 -0
- package/src/gen/schemas/functionTool.json +1 -0
- package/src/gen/schemas/functionToolChoice.json +1 -0
- package/src/gen/schemas/functionToolParam.json +1 -0
- package/src/gen/schemas/imageDetail.json +1 -0
- package/src/gen/schemas/includeEnum.json +1 -0
- package/src/gen/schemas/incompleteDetails.json +1 -0
- package/src/gen/schemas/inputFileContent.json +1 -0
- package/src/gen/schemas/inputFileContentParam.json +1 -0
- package/src/gen/schemas/inputImageContent.json +1 -0
- package/src/gen/schemas/inputImageContentParamAutoParam.json +1 -0
- package/src/gen/schemas/inputTextContent.json +1 -0
- package/src/gen/schemas/inputTextContentParam.json +1 -0
- package/src/gen/schemas/inputTokensDetails.json +1 -0
- package/src/gen/schemas/inputVideoContent.json +1 -0
- package/src/gen/schemas/itemField.json +1 -0
- package/src/gen/schemas/itemParam.json +1 -0
- package/src/gen/schemas/itemReferenceParam.json +1 -0
- package/src/gen/schemas/jsonObjectResponseFormat.json +1 -0
- package/src/gen/schemas/jsonSchemaResponseFormat.json +1 -0
- package/src/gen/schemas/jsonSchemaResponseFormatParam.json +1 -0
- package/src/gen/schemas/logProb.json +1 -0
- package/src/gen/schemas/message.json +1 -0
- package/src/gen/schemas/messageRole.json +1 -0
- package/src/gen/schemas/messageStatus.json +1 -0
- package/src/gen/schemas/metadataParam.json +1 -0
- package/src/gen/schemas/outputTextContent.json +1 -0
- package/src/gen/schemas/outputTextContentParam.json +1 -0
- package/src/gen/schemas/outputTokensDetails.json +1 -0
- package/src/gen/schemas/reasoning.json +1 -0
- package/src/gen/schemas/reasoningBody.json +1 -0
- package/src/gen/schemas/reasoningEffortEnum.json +1 -0
- package/src/gen/schemas/reasoningItemParam.json +1 -0
- package/src/gen/schemas/reasoningParam.json +1 -0
- package/src/gen/schemas/reasoningSummaryContentParam.json +1 -0
- package/src/gen/schemas/reasoningSummaryEnum.json +1 -0
- package/src/gen/schemas/reasoningTextContent.json +1 -0
- package/src/gen/schemas/refusalContent.json +1 -0
- package/src/gen/schemas/refusalContentParam.json +1 -0
- package/src/gen/schemas/responseCompletedStreamingEvent.json +1 -0
- package/src/gen/schemas/responseContentPartAddedStreamingEvent.json +1 -0
- package/src/gen/schemas/responseContentPartDoneStreamingEvent.json +1 -0
- package/src/gen/schemas/responseCreatedStreamingEvent.json +1 -0
- package/src/gen/schemas/responseFailedStreamingEvent.json +1 -0
- package/src/gen/schemas/responseFunctionCallArgumentsDeltaStreamingEvent.json +1 -0
- package/src/gen/schemas/responseFunctionCallArgumentsDoneStreamingEvent.json +1 -0
- package/src/gen/schemas/responseInProgressStreamingEvent.json +1 -0
- package/src/gen/schemas/responseIncompleteStreamingEvent.json +1 -0
- package/src/gen/schemas/responseOutputItemAddedStreamingEvent.json +1 -0
- package/src/gen/schemas/responseOutputItemDoneStreamingEvent.json +1 -0
- package/src/gen/schemas/responseOutputTextAnnotationAddedStreamingEvent.json +1 -0
- package/src/gen/schemas/responseOutputTextDeltaStreamingEvent.json +1 -0
- package/src/gen/schemas/responseOutputTextDoneStreamingEvent.json +1 -0
- package/src/gen/schemas/responseQueuedStreamingEvent.json +1 -0
- package/src/gen/schemas/responseReasoningDeltaStreamingEvent.json +1 -0
- package/src/gen/schemas/responseReasoningDoneStreamingEvent.json +1 -0
- package/src/gen/schemas/responseReasoningSummaryDeltaStreamingEvent.json +1 -0
- package/src/gen/schemas/responseReasoningSummaryDoneStreamingEvent.json +1 -0
- package/src/gen/schemas/responseReasoningSummaryPartAddedStreamingEvent.json +1 -0
- package/src/gen/schemas/responseReasoningSummaryPartDoneStreamingEvent.json +1 -0
- package/src/gen/schemas/responseRefusalDeltaStreamingEvent.json +1 -0
- package/src/gen/schemas/responseRefusalDoneStreamingEvent.json +1 -0
- package/src/gen/schemas/responseResource.json +1 -0
- package/src/gen/schemas/responsesToolParam.json +1 -0
- package/src/gen/schemas/serviceTierEnum.json +1 -0
- package/src/gen/schemas/specificFunctionParam.json +1 -0
- package/src/gen/schemas/specificToolChoiceParam.json +1 -0
- package/src/gen/schemas/streamOptionsParam.json +1 -0
- package/src/gen/schemas/summaryTextContent.json +1 -0
- package/src/gen/schemas/systemMessageItemParam.json +1 -0
- package/src/gen/schemas/textContent.json +1 -0
- package/src/gen/schemas/textField.json +1 -0
- package/src/gen/schemas/textFormatParam.json +1 -0
- package/src/gen/schemas/textParam.json +1 -0
- package/src/gen/schemas/textResponseFormat.json +1 -0
- package/src/gen/schemas/tool.json +1 -0
- package/src/gen/schemas/toolChoiceParam.json +1 -0
- package/src/gen/schemas/toolChoiceValueEnum.json +1 -0
- package/src/gen/schemas/topLogProb.json +1 -0
- package/src/gen/schemas/truncationEnum.json +1 -0
- package/src/gen/schemas/urlCitationBody.json +1 -0
- package/src/gen/schemas/urlCitationParam.json +1 -0
- package/src/gen/schemas/usage.json +1 -0
- package/src/gen/schemas/userMessageItemParam.json +1 -0
- package/src/gen/schemas/verbosityEnum.json +1 -0
- package/src/gen/types.ts +2613 -0
- package/src/gen/zod/allowedToolChoiceSchema.ts +14 -0
- package/src/gen/zod/allowedToolsParamSchema.ts +14 -0
- package/src/gen/zod/annotationSchema.ts +14 -0
- package/src/gen/zod/assistantMessageItemParamSchema.ts +20 -0
- package/src/gen/zod/createResponseBodySchema.ts +45 -0
- package/src/gen/zod/createresponseSchema.ts +17 -0
- package/src/gen/zod/detailEnumSchema.ts +8 -0
- package/src/gen/zod/developerMessageItemParamSchema.ts +17 -0
- package/src/gen/zod/emptyModelParamSchema.ts +10 -0
- package/src/gen/zod/errorPayloadSchema.ts +19 -0
- package/src/gen/zod/errorSchema.ts +14 -0
- package/src/gen/zod/errorStreamingEventSchema.ts +16 -0
- package/src/gen/zod/functionCallItemParamSchema.ts +16 -0
- package/src/gen/zod/functionCallItemStatusSchema.ts +8 -0
- package/src/gen/zod/functionCallOutputItemParamSchema.ts +30 -0
- package/src/gen/zod/functionCallOutputSchema.ts +27 -0
- package/src/gen/zod/functionCallOutputStatusEnumSchema.ts +11 -0
- package/src/gen/zod/functionCallSchema.ts +19 -0
- package/src/gen/zod/functionCallStatusSchema.ts +8 -0
- package/src/gen/zod/functionToolChoiceSchema.ts +11 -0
- package/src/gen/zod/functionToolParamSchema.ts +15 -0
- package/src/gen/zod/functionToolSchema.ts +19 -0
- package/src/gen/zod/imageDetailSchema.ts +8 -0
- package/src/gen/zod/includeEnumSchema.ts +8 -0
- package/src/gen/zod/incompleteDetailsSchema.ts +13 -0
- package/src/gen/zod/index.ts +103 -0
- package/src/gen/zod/inputFileContentParamSchema.ts +16 -0
- package/src/gen/zod/inputFileContentSchema.ts +15 -0
- package/src/gen/zod/inputImageContentParamAutoParamSchema.ts +16 -0
- package/src/gen/zod/inputImageContentSchema.ts +16 -0
- package/src/gen/zod/inputTextContentParamSchema.ts +14 -0
- package/src/gen/zod/inputTextContentSchema.ts +14 -0
- package/src/gen/zod/inputTokensDetailsSchema.ts +13 -0
- package/src/gen/zod/inputVideoContentSchema.ts +14 -0
- package/src/gen/zod/itemFieldSchema.ts +23 -0
- package/src/gen/zod/itemParamSchema.ts +23 -0
- package/src/gen/zod/itemReferenceParamSchema.ts +14 -0
- package/src/gen/zod/jsonObjectResponseFormatSchema.ts +10 -0
- package/src/gen/zod/jsonSchemaResponseFormatParamSchema.ts +16 -0
- package/src/gen/zod/jsonSchemaResponseFormatSchema.ts +14 -0
- package/src/gen/zod/logProbSchema.ts +17 -0
- package/src/gen/zod/messageRoleSchema.ts +8 -0
- package/src/gen/zod/messageSchema.ts +46 -0
- package/src/gen/zod/messageStatusSchema.ts +8 -0
- package/src/gen/zod/metadataParamSchema.ts +13 -0
- package/src/gen/zod/outputTextContentParamSchema.ts +13 -0
- package/src/gen/zod/outputTextContentSchema.ts +18 -0
- package/src/gen/zod/outputTokensDetailsSchema.ts +13 -0
- package/src/gen/zod/reasoningBodySchema.ts +57 -0
- package/src/gen/zod/reasoningEffortEnumSchema.ts +8 -0
- package/src/gen/zod/reasoningItemParamSchema.ts +15 -0
- package/src/gen/zod/reasoningParamSchema.ts +16 -0
- package/src/gen/zod/reasoningSchema.ts +16 -0
- package/src/gen/zod/reasoningSummaryContentParamSchema.ts +11 -0
- package/src/gen/zod/reasoningSummaryEnumSchema.ts +8 -0
- package/src/gen/zod/reasoningTextContentSchema.ts +14 -0
- package/src/gen/zod/refusalContentParamSchema.ts +11 -0
- package/src/gen/zod/refusalContentSchema.ts +14 -0
- package/src/gen/zod/responseCompletedStreamingEventSchema.ts +16 -0
- package/src/gen/zod/responseContentPartAddedStreamingEventSchema.ts +42 -0
- package/src/gen/zod/responseContentPartDoneStreamingEventSchema.ts +42 -0
- package/src/gen/zod/responseCreatedStreamingEventSchema.ts +16 -0
- package/src/gen/zod/responseFailedStreamingEventSchema.ts +16 -0
- package/src/gen/zod/responseFunctionCallArgumentsDeltaStreamingEventSchema.ts +18 -0
- package/src/gen/zod/responseFunctionCallArgumentsDoneStreamingEventSchema.ts +17 -0
- package/src/gen/zod/responseInProgressStreamingEventSchema.ts +16 -0
- package/src/gen/zod/responseIncompleteStreamingEventSchema.ts +16 -0
- package/src/gen/zod/responseOutputItemAddedStreamingEventSchema.ts +17 -0
- package/src/gen/zod/responseOutputItemDoneStreamingEventSchema.ts +17 -0
- package/src/gen/zod/responseOutputTextAnnotationAddedStreamingEventSchema.ts +20 -0
- package/src/gen/zod/responseOutputTextDeltaStreamingEventSchema.ts +21 -0
- package/src/gen/zod/responseOutputTextDoneStreamingEventSchema.ts +20 -0
- package/src/gen/zod/responseQueuedStreamingEventSchema.ts +16 -0
- package/src/gen/zod/responseReasoningDeltaStreamingEventSchema.ts +19 -0
- package/src/gen/zod/responseReasoningDoneStreamingEventSchema.ts +18 -0
- package/src/gen/zod/responseReasoningSummaryDeltaStreamingEventSchema.ts +19 -0
- package/src/gen/zod/responseReasoningSummaryDoneStreamingEventSchema.ts +18 -0
- package/src/gen/zod/responseReasoningSummaryPartAddedStreamingEventSchema.ts +42 -0
- package/src/gen/zod/responseReasoningSummaryPartDoneStreamingEventSchema.ts +42 -0
- package/src/gen/zod/responseRefusalDeltaStreamingEventSchema.ts +18 -0
- package/src/gen/zod/responseRefusalDoneStreamingEventSchema.ts +18 -0
- package/src/gen/zod/responseResourceSchema.ts +54 -0
- package/src/gen/zod/responsesToolParamSchema.ts +11 -0
- package/src/gen/zod/serviceTierEnumSchema.ts +8 -0
- package/src/gen/zod/specificFunctionParamSchema.ts +11 -0
- package/src/gen/zod/specificToolChoiceParamSchema.ts +9 -0
- package/src/gen/zod/streamOptionsParamSchema.ts +13 -0
- package/src/gen/zod/summaryTextContentSchema.ts +14 -0
- package/src/gen/zod/systemMessageItemParamSchema.ts +17 -0
- package/src/gen/zod/textContentSchema.ts +14 -0
- package/src/gen/zod/textFieldSchema.ts +15 -0
- package/src/gen/zod/textFormatParamSchema.ts +10 -0
- package/src/gen/zod/textParamSchema.ts +13 -0
- package/src/gen/zod/textResponseFormatSchema.ts +10 -0
- package/src/gen/zod/toolChoiceParamSchema.ts +14 -0
- package/src/gen/zod/toolChoiceValueEnumSchema.ts +8 -0
- package/src/gen/zod/toolSchema.ts +14 -0
- package/src/gen/zod/topLogProbSchema.ts +15 -0
- package/src/gen/zod/truncationEnumSchema.ts +8 -0
- package/src/gen/zod/urlCitationBodySchema.ts +17 -0
- package/src/gen/zod/urlCitationParamSchema.ts +14 -0
- package/src/gen/zod/usageSchema.ts +19 -0
- package/src/gen/zod/userMessageItemParamSchema.ts +23 -0
- package/src/gen/zod/verbosityEnumSchema.ts +8 -0
- package/tsconfig.json +21 -0
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.functionCallOutputStatusEnumEnum = exports.functionCallTypeEnum = exports.messageTypeEnum = exports.messageStatusEnum = exports.inputFileContentTypeEnum = exports.inputImageContentTypeEnum = exports.refusalContentTypeEnum = exports.reasoningTextContentTypeEnum = exports.summaryTextContentTypeEnum = exports.textContentTypeEnum = exports.outputTextContentTypeEnum = exports.urlCitationBodyTypeEnum = exports.inputTextContentTypeEnum = exports.messageRoleEnum = exports.serviceTierEnumEnum = exports.truncationEnumEnum = exports.reasoningSummaryEnumEnum = exports.reasoningEffortEnumEnum = exports.jsonSchemaResponseFormatParamTypeEnum = exports.textResponseFormatTypeEnum = exports.verbosityEnumEnum = exports.allowedToolsParamTypeEnum = exports.toolChoiceValueEnumEnum = exports.specificFunctionParamTypeEnum = exports.functionToolParamTypeEnum = exports.includeEnumEnum = exports.functionCallOutputItemParamTypeEnum = exports.inputVideoContentTypeEnum = exports.functionCallItemParamTypeEnum = exports.functionCallStatusEnum = exports.functionCallItemStatusEnum = exports.assistantMessageItemParamRoleEnum = exports.assistantMessageItemParamTypeEnum = exports.refusalContentParamTypeEnum = exports.outputTextContentParamTypeEnum = exports.urlCitationParamTypeEnum = exports.developerMessageItemParamRoleEnum = exports.developerMessageItemParamTypeEnum = exports.systemMessageItemParamRoleEnum = exports.systemMessageItemParamTypeEnum = exports.userMessageItemParamRoleEnum = exports.userMessageItemParamTypeEnum = exports.inputFileContentParamTypeEnum = exports.inputImageContentParamAutoParamTypeEnum = exports.imageDetailEnum = exports.detailEnumEnum = exports.inputTextContentParamTypeEnum = exports.reasoningItemParamTypeEnum = exports.reasoningSummaryContentParamTypeEnum = exports.itemReferenceParamTypeEnum = void 0;
|
|
8
|
+
exports.errorStreamingEventTypeEnum = exports.responseFunctionCallArgumentsDoneStreamingEventTypeEnum = exports.responseFunctionCallArgumentsDeltaStreamingEventTypeEnum = exports.responseOutputTextAnnotationAddedStreamingEventTypeEnum = exports.responseReasoningSummaryDoneStreamingEventTypeEnum = exports.responseReasoningSummaryDeltaStreamingEventTypeEnum = exports.responseReasoningDoneStreamingEventTypeEnum = exports.responseReasoningDeltaStreamingEventTypeEnum = exports.responseRefusalDoneStreamingEventTypeEnum = exports.responseRefusalDeltaStreamingEventTypeEnum = exports.responseOutputTextDoneStreamingEventTypeEnum = exports.responseOutputTextDeltaStreamingEventTypeEnum = exports.responseContentPartDoneStreamingEventTypeEnum = exports.responseContentPartAddedStreamingEventTypeEnum = exports.responseReasoningSummaryPartDoneStreamingEventTypeEnum = exports.responseReasoningSummaryPartAddedStreamingEventTypeEnum = exports.responseOutputItemDoneStreamingEventTypeEnum = exports.responseOutputItemAddedStreamingEventTypeEnum = exports.responseIncompleteStreamingEventTypeEnum = exports.responseFailedStreamingEventTypeEnum = exports.responseCompletedStreamingEventTypeEnum = exports.responseInProgressStreamingEventTypeEnum = exports.responseQueuedStreamingEventTypeEnum = exports.responseCreatedStreamingEventTypeEnum = exports.responseResourceObjectEnum = exports.jsonSchemaResponseFormatTypeEnum = exports.jsonObjectResponseFormatTypeEnum = exports.allowedToolChoiceTypeEnum = exports.functionToolChoiceTypeEnum = exports.functionToolTypeEnum = exports.reasoningBodyTypeEnum = exports.functionCallOutputTypeEnum = void 0;
|
|
9
|
+
exports.itemReferenceParamTypeEnum = {
|
|
10
|
+
item_reference: "item_reference"
|
|
11
|
+
};
|
|
12
|
+
exports.reasoningSummaryContentParamTypeEnum = {
|
|
13
|
+
summary_text: "summary_text"
|
|
14
|
+
};
|
|
15
|
+
exports.reasoningItemParamTypeEnum = {
|
|
16
|
+
reasoning: "reasoning"
|
|
17
|
+
};
|
|
18
|
+
exports.inputTextContentParamTypeEnum = {
|
|
19
|
+
input_text: "input_text"
|
|
20
|
+
};
|
|
21
|
+
exports.detailEnumEnum = {
|
|
22
|
+
low: "low",
|
|
23
|
+
high: "high",
|
|
24
|
+
auto: "auto"
|
|
25
|
+
};
|
|
26
|
+
exports.imageDetailEnum = {
|
|
27
|
+
low: "low",
|
|
28
|
+
high: "high",
|
|
29
|
+
auto: "auto"
|
|
30
|
+
};
|
|
31
|
+
exports.inputImageContentParamAutoParamTypeEnum = {
|
|
32
|
+
input_image: "input_image"
|
|
33
|
+
};
|
|
34
|
+
exports.inputFileContentParamTypeEnum = {
|
|
35
|
+
input_file: "input_file"
|
|
36
|
+
};
|
|
37
|
+
exports.userMessageItemParamTypeEnum = {
|
|
38
|
+
message: "message"
|
|
39
|
+
};
|
|
40
|
+
exports.userMessageItemParamRoleEnum = {
|
|
41
|
+
user: "user"
|
|
42
|
+
};
|
|
43
|
+
exports.systemMessageItemParamTypeEnum = {
|
|
44
|
+
message: "message"
|
|
45
|
+
};
|
|
46
|
+
exports.systemMessageItemParamRoleEnum = {
|
|
47
|
+
system: "system"
|
|
48
|
+
};
|
|
49
|
+
exports.developerMessageItemParamTypeEnum = {
|
|
50
|
+
message: "message"
|
|
51
|
+
};
|
|
52
|
+
exports.developerMessageItemParamRoleEnum = {
|
|
53
|
+
developer: "developer"
|
|
54
|
+
};
|
|
55
|
+
exports.urlCitationParamTypeEnum = {
|
|
56
|
+
url_citation: "url_citation"
|
|
57
|
+
};
|
|
58
|
+
exports.outputTextContentParamTypeEnum = {
|
|
59
|
+
output_text: "output_text"
|
|
60
|
+
};
|
|
61
|
+
exports.refusalContentParamTypeEnum = {
|
|
62
|
+
refusal: "refusal"
|
|
63
|
+
};
|
|
64
|
+
exports.assistantMessageItemParamTypeEnum = {
|
|
65
|
+
message: "message"
|
|
66
|
+
};
|
|
67
|
+
exports.assistantMessageItemParamRoleEnum = {
|
|
68
|
+
assistant: "assistant"
|
|
69
|
+
};
|
|
70
|
+
exports.functionCallItemStatusEnum = {
|
|
71
|
+
in_progress: "in_progress",
|
|
72
|
+
completed: "completed",
|
|
73
|
+
incomplete: "incomplete"
|
|
74
|
+
};
|
|
75
|
+
exports.functionCallStatusEnum = {
|
|
76
|
+
in_progress: "in_progress",
|
|
77
|
+
completed: "completed",
|
|
78
|
+
incomplete: "incomplete"
|
|
79
|
+
};
|
|
80
|
+
exports.functionCallItemParamTypeEnum = {
|
|
81
|
+
function_call: "function_call"
|
|
82
|
+
};
|
|
83
|
+
exports.inputVideoContentTypeEnum = {
|
|
84
|
+
input_video: "input_video"
|
|
85
|
+
};
|
|
86
|
+
exports.functionCallOutputItemParamTypeEnum = {
|
|
87
|
+
function_call_output: "function_call_output"
|
|
88
|
+
};
|
|
89
|
+
exports.includeEnumEnum = {
|
|
90
|
+
"reasoning.encrypted_content": "reasoning.encrypted_content",
|
|
91
|
+
"message.output_text.logprobs": "message.output_text.logprobs"
|
|
92
|
+
};
|
|
93
|
+
exports.functionToolParamTypeEnum = {
|
|
94
|
+
function: "function"
|
|
95
|
+
};
|
|
96
|
+
exports.specificFunctionParamTypeEnum = {
|
|
97
|
+
function: "function"
|
|
98
|
+
};
|
|
99
|
+
exports.toolChoiceValueEnumEnum = {
|
|
100
|
+
none: "none",
|
|
101
|
+
auto: "auto",
|
|
102
|
+
required: "required"
|
|
103
|
+
};
|
|
104
|
+
exports.allowedToolsParamTypeEnum = {
|
|
105
|
+
allowed_tools: "allowed_tools"
|
|
106
|
+
};
|
|
107
|
+
exports.verbosityEnumEnum = {
|
|
108
|
+
low: "low",
|
|
109
|
+
medium: "medium",
|
|
110
|
+
high: "high"
|
|
111
|
+
};
|
|
112
|
+
exports.textResponseFormatTypeEnum = {
|
|
113
|
+
text: "text"
|
|
114
|
+
};
|
|
115
|
+
exports.jsonSchemaResponseFormatParamTypeEnum = {
|
|
116
|
+
json_schema: "json_schema"
|
|
117
|
+
};
|
|
118
|
+
exports.reasoningEffortEnumEnum = {
|
|
119
|
+
none: "none",
|
|
120
|
+
low: "low",
|
|
121
|
+
medium: "medium",
|
|
122
|
+
high: "high",
|
|
123
|
+
xhigh: "xhigh"
|
|
124
|
+
};
|
|
125
|
+
exports.reasoningSummaryEnumEnum = {
|
|
126
|
+
concise: "concise",
|
|
127
|
+
detailed: "detailed",
|
|
128
|
+
auto: "auto"
|
|
129
|
+
};
|
|
130
|
+
exports.truncationEnumEnum = {
|
|
131
|
+
auto: "auto",
|
|
132
|
+
disabled: "disabled"
|
|
133
|
+
};
|
|
134
|
+
exports.serviceTierEnumEnum = {
|
|
135
|
+
auto: "auto",
|
|
136
|
+
default: "default",
|
|
137
|
+
flex: "flex",
|
|
138
|
+
priority: "priority"
|
|
139
|
+
};
|
|
140
|
+
exports.messageRoleEnum = {
|
|
141
|
+
user: "user",
|
|
142
|
+
assistant: "assistant",
|
|
143
|
+
system: "system",
|
|
144
|
+
developer: "developer"
|
|
145
|
+
};
|
|
146
|
+
exports.inputTextContentTypeEnum = {
|
|
147
|
+
input_text: "input_text"
|
|
148
|
+
};
|
|
149
|
+
exports.urlCitationBodyTypeEnum = {
|
|
150
|
+
url_citation: "url_citation"
|
|
151
|
+
};
|
|
152
|
+
exports.outputTextContentTypeEnum = {
|
|
153
|
+
output_text: "output_text"
|
|
154
|
+
};
|
|
155
|
+
exports.textContentTypeEnum = {
|
|
156
|
+
text: "text"
|
|
157
|
+
};
|
|
158
|
+
exports.summaryTextContentTypeEnum = {
|
|
159
|
+
summary_text: "summary_text"
|
|
160
|
+
};
|
|
161
|
+
exports.reasoningTextContentTypeEnum = {
|
|
162
|
+
reasoning_text: "reasoning_text"
|
|
163
|
+
};
|
|
164
|
+
exports.refusalContentTypeEnum = {
|
|
165
|
+
refusal: "refusal"
|
|
166
|
+
};
|
|
167
|
+
exports.inputImageContentTypeEnum = {
|
|
168
|
+
input_image: "input_image"
|
|
169
|
+
};
|
|
170
|
+
exports.inputFileContentTypeEnum = {
|
|
171
|
+
input_file: "input_file"
|
|
172
|
+
};
|
|
173
|
+
exports.messageStatusEnum = {
|
|
174
|
+
in_progress: "in_progress",
|
|
175
|
+
completed: "completed",
|
|
176
|
+
incomplete: "incomplete"
|
|
177
|
+
};
|
|
178
|
+
exports.messageTypeEnum = {
|
|
179
|
+
message: "message"
|
|
180
|
+
};
|
|
181
|
+
exports.functionCallTypeEnum = {
|
|
182
|
+
function_call: "function_call"
|
|
183
|
+
};
|
|
184
|
+
exports.functionCallOutputStatusEnumEnum = {
|
|
185
|
+
in_progress: "in_progress",
|
|
186
|
+
completed: "completed",
|
|
187
|
+
incomplete: "incomplete"
|
|
188
|
+
};
|
|
189
|
+
exports.functionCallOutputTypeEnum = {
|
|
190
|
+
function_call_output: "function_call_output"
|
|
191
|
+
};
|
|
192
|
+
exports.reasoningBodyTypeEnum = {
|
|
193
|
+
reasoning: "reasoning"
|
|
194
|
+
};
|
|
195
|
+
exports.functionToolTypeEnum = {
|
|
196
|
+
function: "function"
|
|
197
|
+
};
|
|
198
|
+
exports.functionToolChoiceTypeEnum = {
|
|
199
|
+
function: "function"
|
|
200
|
+
};
|
|
201
|
+
exports.allowedToolChoiceTypeEnum = {
|
|
202
|
+
allowed_tools: "allowed_tools"
|
|
203
|
+
};
|
|
204
|
+
exports.jsonObjectResponseFormatTypeEnum = {
|
|
205
|
+
json_object: "json_object"
|
|
206
|
+
};
|
|
207
|
+
exports.jsonSchemaResponseFormatTypeEnum = {
|
|
208
|
+
json_schema: "json_schema"
|
|
209
|
+
};
|
|
210
|
+
exports.responseResourceObjectEnum = {
|
|
211
|
+
response: "response"
|
|
212
|
+
};
|
|
213
|
+
exports.responseCreatedStreamingEventTypeEnum = {
|
|
214
|
+
"response.created": "response.created"
|
|
215
|
+
};
|
|
216
|
+
exports.responseQueuedStreamingEventTypeEnum = {
|
|
217
|
+
"response.queued": "response.queued"
|
|
218
|
+
};
|
|
219
|
+
exports.responseInProgressStreamingEventTypeEnum = {
|
|
220
|
+
"response.in_progress": "response.in_progress"
|
|
221
|
+
};
|
|
222
|
+
exports.responseCompletedStreamingEventTypeEnum = {
|
|
223
|
+
"response.completed": "response.completed"
|
|
224
|
+
};
|
|
225
|
+
exports.responseFailedStreamingEventTypeEnum = {
|
|
226
|
+
"response.failed": "response.failed"
|
|
227
|
+
};
|
|
228
|
+
exports.responseIncompleteStreamingEventTypeEnum = {
|
|
229
|
+
"response.incomplete": "response.incomplete"
|
|
230
|
+
};
|
|
231
|
+
exports.responseOutputItemAddedStreamingEventTypeEnum = {
|
|
232
|
+
"response.output_item.added": "response.output_item.added"
|
|
233
|
+
};
|
|
234
|
+
exports.responseOutputItemDoneStreamingEventTypeEnum = {
|
|
235
|
+
"response.output_item.done": "response.output_item.done"
|
|
236
|
+
};
|
|
237
|
+
exports.responseReasoningSummaryPartAddedStreamingEventTypeEnum = {
|
|
238
|
+
"response.reasoning_summary_part.added": "response.reasoning_summary_part.added"
|
|
239
|
+
};
|
|
240
|
+
exports.responseReasoningSummaryPartDoneStreamingEventTypeEnum = {
|
|
241
|
+
"response.reasoning_summary_part.done": "response.reasoning_summary_part.done"
|
|
242
|
+
};
|
|
243
|
+
exports.responseContentPartAddedStreamingEventTypeEnum = {
|
|
244
|
+
"response.content_part.added": "response.content_part.added"
|
|
245
|
+
};
|
|
246
|
+
exports.responseContentPartDoneStreamingEventTypeEnum = {
|
|
247
|
+
"response.content_part.done": "response.content_part.done"
|
|
248
|
+
};
|
|
249
|
+
exports.responseOutputTextDeltaStreamingEventTypeEnum = {
|
|
250
|
+
"response.output_text.delta": "response.output_text.delta"
|
|
251
|
+
};
|
|
252
|
+
exports.responseOutputTextDoneStreamingEventTypeEnum = {
|
|
253
|
+
"response.output_text.done": "response.output_text.done"
|
|
254
|
+
};
|
|
255
|
+
exports.responseRefusalDeltaStreamingEventTypeEnum = {
|
|
256
|
+
"response.refusal.delta": "response.refusal.delta"
|
|
257
|
+
};
|
|
258
|
+
exports.responseRefusalDoneStreamingEventTypeEnum = {
|
|
259
|
+
"response.refusal.done": "response.refusal.done"
|
|
260
|
+
};
|
|
261
|
+
exports.responseReasoningDeltaStreamingEventTypeEnum = {
|
|
262
|
+
"response.reasoning.delta": "response.reasoning.delta"
|
|
263
|
+
};
|
|
264
|
+
exports.responseReasoningDoneStreamingEventTypeEnum = {
|
|
265
|
+
"response.reasoning.done": "response.reasoning.done"
|
|
266
|
+
};
|
|
267
|
+
exports.responseReasoningSummaryDeltaStreamingEventTypeEnum = {
|
|
268
|
+
"response.reasoning_summary_text.delta": "response.reasoning_summary_text.delta"
|
|
269
|
+
};
|
|
270
|
+
exports.responseReasoningSummaryDoneStreamingEventTypeEnum = {
|
|
271
|
+
"response.reasoning_summary_text.done": "response.reasoning_summary_text.done"
|
|
272
|
+
};
|
|
273
|
+
exports.responseOutputTextAnnotationAddedStreamingEventTypeEnum = {
|
|
274
|
+
"response.output_text.annotation.added": "response.output_text.annotation.added"
|
|
275
|
+
};
|
|
276
|
+
exports.responseFunctionCallArgumentsDeltaStreamingEventTypeEnum = {
|
|
277
|
+
"response.function_call_arguments.delta": "response.function_call_arguments.delta"
|
|
278
|
+
};
|
|
279
|
+
exports.responseFunctionCallArgumentsDoneStreamingEventTypeEnum = {
|
|
280
|
+
"response.function_call_arguments.done": "response.function_call_arguments.done"
|
|
281
|
+
};
|
|
282
|
+
exports.errorStreamingEventTypeEnum = {
|
|
283
|
+
error: "error"
|
|
284
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.allowedToolChoiceSchema = void 0;
|
|
8
|
+
const functionToolChoiceSchema_ts_1 = require("./functionToolChoiceSchema.ts");
|
|
9
|
+
const toolChoiceValueEnumSchema_ts_1 = require("./toolChoiceValueEnumSchema.ts");
|
|
10
|
+
const zod_1 = require("zod");
|
|
11
|
+
exports.allowedToolChoiceSchema = zod_1.z.object({
|
|
12
|
+
"type": zod_1.z.enum(["allowed_tools"]).default("allowed_tools"),
|
|
13
|
+
"tools": zod_1.z.array(zod_1.z.lazy(() => functionToolChoiceSchema_ts_1.functionToolChoiceSchema)),
|
|
14
|
+
"mode": zod_1.z.lazy(() => toolChoiceValueEnumSchema_ts_1.toolChoiceValueEnumSchema)
|
|
15
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.allowedToolsParamSchema = void 0;
|
|
8
|
+
const specificToolChoiceParamSchema_ts_1 = require("./specificToolChoiceParamSchema.ts");
|
|
9
|
+
const toolChoiceValueEnumSchema_ts_1 = require("./toolChoiceValueEnumSchema.ts");
|
|
10
|
+
const zod_1 = require("zod");
|
|
11
|
+
exports.allowedToolsParamSchema = zod_1.z.object({
|
|
12
|
+
"type": zod_1.z.enum(["allowed_tools"]).default("allowed_tools").describe("The tool choice type. Always `allowed_tools`."),
|
|
13
|
+
"tools": zod_1.z.array(zod_1.z.lazy(() => specificToolChoiceParamSchema_ts_1.specificToolChoiceParamSchema)).min(1).max(128).describe("The list of tools that are permitted for this request."),
|
|
14
|
+
"mode": zod_1.z.optional(zod_1.z.lazy(() => toolChoiceValueEnumSchema_ts_1.toolChoiceValueEnumSchema).and(zod_1.z.any()))
|
|
15
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.annotationSchema = void 0;
|
|
8
|
+
const urlCitationBodySchema_ts_1 = require("./urlCitationBodySchema.ts");
|
|
9
|
+
const zod_1 = require("zod");
|
|
10
|
+
/**
|
|
11
|
+
* @description An annotation that applies to a span of output text.
|
|
12
|
+
*/
|
|
13
|
+
exports.annotationSchema = zod_1.z.lazy(() => urlCitationBodySchema_ts_1.urlCitationBodySchema).and(zod_1.z.object({
|
|
14
|
+
"type": zod_1.z.literal("url_citation")
|
|
15
|
+
})).describe("An annotation that applies to a span of output text.");
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.assistantMessageItemParamSchema = void 0;
|
|
8
|
+
const outputTextContentParamSchema_ts_1 = require("./outputTextContentParamSchema.ts");
|
|
9
|
+
const refusalContentParamSchema_ts_1 = require("./refusalContentParamSchema.ts");
|
|
10
|
+
const zod_1 = require("zod");
|
|
11
|
+
exports.assistantMessageItemParamSchema = zod_1.z.object({
|
|
12
|
+
"id": zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
|
|
13
|
+
"type": zod_1.z.enum(["message"]).default("message").describe("The item type. Always `message`."),
|
|
14
|
+
"role": zod_1.z.enum(["assistant"]).default("assistant").describe("The role of the message author. Always `assistant`."),
|
|
15
|
+
"content": zod_1.z.union([zod_1.z.array(zod_1.z.union([zod_1.z.lazy(() => outputTextContentParamSchema_ts_1.outputTextContentParamSchema).and(zod_1.z.object({
|
|
16
|
+
"type": zod_1.z.literal("output_text")
|
|
17
|
+
})), zod_1.z.lazy(() => refusalContentParamSchema_ts_1.refusalContentParamSchema).and(zod_1.z.object({
|
|
18
|
+
"type": zod_1.z.literal("refusal")
|
|
19
|
+
}))]).describe("A piece of assistant message content, such as text or a refusal.")), zod_1.z.string()]).describe("The message content, as an array of content parts."),
|
|
20
|
+
"status": zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()]))
|
|
21
|
+
});
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.createResponseBodySchema = void 0;
|
|
8
|
+
const includeEnumSchema_ts_1 = require("./includeEnumSchema.ts");
|
|
9
|
+
const itemParamSchema_ts_1 = require("./itemParamSchema.ts");
|
|
10
|
+
const metadataParamSchema_ts_1 = require("./metadataParamSchema.ts");
|
|
11
|
+
const reasoningParamSchema_ts_1 = require("./reasoningParamSchema.ts");
|
|
12
|
+
const responsesToolParamSchema_ts_1 = require("./responsesToolParamSchema.ts");
|
|
13
|
+
const serviceTierEnumSchema_ts_1 = require("./serviceTierEnumSchema.ts");
|
|
14
|
+
const streamOptionsParamSchema_ts_1 = require("./streamOptionsParamSchema.ts");
|
|
15
|
+
const textParamSchema_ts_1 = require("./textParamSchema.ts");
|
|
16
|
+
const toolChoiceParamSchema_ts_1 = require("./toolChoiceParamSchema.ts");
|
|
17
|
+
const truncationEnumSchema_ts_1 = require("./truncationEnumSchema.ts");
|
|
18
|
+
const zod_1 = require("zod");
|
|
19
|
+
exports.createResponseBodySchema = zod_1.z.object({
|
|
20
|
+
"model": zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
|
|
21
|
+
"input": zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.array(zod_1.z.lazy(() => itemParamSchema_ts_1.itemParamSchema)), zod_1.z.string()]), zod_1.z.null()])),
|
|
22
|
+
"previous_response_id": zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
|
|
23
|
+
"include": zod_1.z.optional(zod_1.z.array(zod_1.z.lazy(() => includeEnumSchema_ts_1.includeEnumSchema))),
|
|
24
|
+
"tools": zod_1.z.optional(zod_1.z.union([zod_1.z.array(zod_1.z.lazy(() => responsesToolParamSchema_ts_1.responsesToolParamSchema)), zod_1.z.null()])),
|
|
25
|
+
"tool_choice": zod_1.z.optional(zod_1.z.union([zod_1.z.lazy(() => toolChoiceParamSchema_ts_1.toolChoiceParamSchema).and(zod_1.z.any()), zod_1.z.null()])),
|
|
26
|
+
"metadata": zod_1.z.optional(zod_1.z.union([zod_1.z.lazy(() => metadataParamSchema_ts_1.metadataParamSchema).and(zod_1.z.any()), zod_1.z.null()])),
|
|
27
|
+
"text": zod_1.z.optional(zod_1.z.union([zod_1.z.lazy(() => textParamSchema_ts_1.textParamSchema).and(zod_1.z.any()), zod_1.z.null()])),
|
|
28
|
+
"temperature": zod_1.z.optional(zod_1.z.union([zod_1.z.number(), zod_1.z.null()])),
|
|
29
|
+
"top_p": zod_1.z.optional(zod_1.z.union([zod_1.z.number(), zod_1.z.null()])),
|
|
30
|
+
"presence_penalty": zod_1.z.optional(zod_1.z.union([zod_1.z.number(), zod_1.z.null()])),
|
|
31
|
+
"frequency_penalty": zod_1.z.optional(zod_1.z.union([zod_1.z.number(), zod_1.z.null()])),
|
|
32
|
+
"parallel_tool_calls": zod_1.z.optional(zod_1.z.union([zod_1.z.boolean(), zod_1.z.null()])),
|
|
33
|
+
"stream": zod_1.z.optional(zod_1.z.boolean().describe("Whether to stream response events as server-sent events.")),
|
|
34
|
+
"stream_options": zod_1.z.optional(zod_1.z.union([zod_1.z.lazy(() => streamOptionsParamSchema_ts_1.streamOptionsParamSchema).and(zod_1.z.any()), zod_1.z.null()])),
|
|
35
|
+
"background": zod_1.z.optional(zod_1.z.boolean().describe("Whether to run the request in the background and return immediately.")),
|
|
36
|
+
"max_output_tokens": zod_1.z.optional(zod_1.z.union([zod_1.z.number().int(), zod_1.z.null()])),
|
|
37
|
+
"max_tool_calls": zod_1.z.optional(zod_1.z.union([zod_1.z.number().int(), zod_1.z.null()])),
|
|
38
|
+
"reasoning": zod_1.z.optional(zod_1.z.union([zod_1.z.lazy(() => reasoningParamSchema_ts_1.reasoningParamSchema).and(zod_1.z.any()), zod_1.z.null()])),
|
|
39
|
+
"safety_identifier": zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
|
|
40
|
+
"prompt_cache_key": zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
|
|
41
|
+
"truncation": zod_1.z.optional(zod_1.z.lazy(() => truncationEnumSchema_ts_1.truncationEnumSchema).and(zod_1.z.any())),
|
|
42
|
+
"instructions": zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
|
|
43
|
+
"store": zod_1.z.optional(zod_1.z.boolean().describe("Whether to store the response so it can be retrieved later.")),
|
|
44
|
+
"service_tier": zod_1.z.optional(zod_1.z.lazy(() => serviceTierEnumSchema_ts_1.serviceTierEnumSchema).and(zod_1.z.any())),
|
|
45
|
+
"top_logprobs": zod_1.z.optional(zod_1.z.union([zod_1.z.number().int(), zod_1.z.null()]))
|
|
46
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.createresponseMutationResponseSchema = exports.createresponseMutationRequestSchema = exports.createresponse200Schema = void 0;
|
|
8
|
+
const createResponseBodySchema_ts_1 = require("./createResponseBodySchema.ts");
|
|
9
|
+
const responseResourceSchema_ts_1 = require("./responseResourceSchema.ts");
|
|
10
|
+
const zod_1 = require("zod");
|
|
11
|
+
/**
|
|
12
|
+
* @description Success
|
|
13
|
+
*/
|
|
14
|
+
exports.createresponse200Schema = zod_1.z.lazy(() => responseResourceSchema_ts_1.responseResourceSchema).describe("The complete response object that was returned by the Responses API.");
|
|
15
|
+
exports.createresponseMutationRequestSchema = zod_1.z.lazy(() => createResponseBodySchema_ts_1.createResponseBodySchema);
|
|
16
|
+
exports.createresponseMutationResponseSchema = zod_1.z.lazy(() => exports.createresponse200Schema);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.detailEnumSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
exports.detailEnumSchema = zod_1.z.enum(["low", "high", "auto"]);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.developerMessageItemParamSchema = void 0;
|
|
8
|
+
const inputTextContentParamSchema_ts_1 = require("./inputTextContentParamSchema.ts");
|
|
9
|
+
const zod_1 = require("zod");
|
|
10
|
+
exports.developerMessageItemParamSchema = zod_1.z.object({
|
|
11
|
+
"id": zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
|
|
12
|
+
"type": zod_1.z.enum(["message"]).default("message").describe("The item type. Always `message`."),
|
|
13
|
+
"role": zod_1.z.enum(["developer"]).default("developer").describe("The message role. Always `developer`."),
|
|
14
|
+
"content": zod_1.z.union([zod_1.z.array(zod_1.z.lazy(() => inputTextContentParamSchema_ts_1.inputTextContentParamSchema).and(zod_1.z.object({
|
|
15
|
+
"type": zod_1.z.literal("input_text")
|
|
16
|
+
}))), zod_1.z.string()]).describe("The message content, as an array of content parts."),
|
|
17
|
+
"status": zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()]))
|
|
18
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.emptyModelParamSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
exports.emptyModelParamSchema = zod_1.z.object({});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.errorPayloadSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
/**
|
|
10
|
+
* @description An error payload that was emitted for a streaming error event.
|
|
11
|
+
*/
|
|
12
|
+
exports.errorPayloadSchema = zod_1.z.object({
|
|
13
|
+
"type": zod_1.z.string().describe("The error type that was emitted."),
|
|
14
|
+
"code": zod_1.z.union([zod_1.z.string(), zod_1.z.null()]),
|
|
15
|
+
"message": zod_1.z.string().describe("The human-readable error message that was emitted."),
|
|
16
|
+
"param": zod_1.z.union([zod_1.z.string(), zod_1.z.null()]),
|
|
17
|
+
"headers": zod_1.z.optional(zod_1.z.object({}).catchall(zod_1.z.string().describe("The header value that was emitted.")).describe("The response headers that were emitted with the error, if any."))
|
|
18
|
+
}).describe("An error payload that was emitted for a streaming error event.");
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.errorSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
/**
|
|
10
|
+
* @description An error that occurred while generating the response.
|
|
11
|
+
*/
|
|
12
|
+
exports.errorSchema = zod_1.z.object({
|
|
13
|
+
"code": zod_1.z.string().describe("A machine-readable error code that was returned."),
|
|
14
|
+
"message": zod_1.z.string().describe("A human-readable description of the error that was returned.")
|
|
15
|
+
}).describe("An error that occurred while generating the response.");
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.errorStreamingEventSchema = void 0;
|
|
8
|
+
const errorPayloadSchema_ts_1 = require("./errorPayloadSchema.ts");
|
|
9
|
+
const zod_1 = require("zod");
|
|
10
|
+
/**
|
|
11
|
+
* @description A streaming event that indicated an error was emitted.
|
|
12
|
+
*/
|
|
13
|
+
exports.errorStreamingEventSchema = zod_1.z.object({
|
|
14
|
+
"type": zod_1.z.enum(["error"]).default("error").describe("The type of the event, always `error`."),
|
|
15
|
+
"sequence_number": zod_1.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
16
|
+
"error": zod_1.z.lazy(() => errorPayloadSchema_ts_1.errorPayloadSchema).and(zod_1.z.any())
|
|
17
|
+
}).describe("A streaming event that indicated an error was emitted.");
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.functionCallItemParamSchema = void 0;
|
|
8
|
+
const functionCallStatusSchema_ts_1 = require("./functionCallStatusSchema.ts");
|
|
9
|
+
const zod_1 = require("zod");
|
|
10
|
+
exports.functionCallItemParamSchema = zod_1.z.object({
|
|
11
|
+
"id": zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
|
|
12
|
+
"call_id": zod_1.z.string().min(1).max(64).describe("The unique ID of the function tool call generated by the model."),
|
|
13
|
+
"type": zod_1.z.enum(["function_call"]).default("function_call").describe("The item type. Always `function_call`."),
|
|
14
|
+
"name": zod_1.z.string().min(1).max(64).regex(/^[a-zA-Z0-9_-]+$/).describe("The name of the function to call."),
|
|
15
|
+
"arguments": zod_1.z.string().describe("The function arguments as a JSON string."),
|
|
16
|
+
"status": zod_1.z.optional(zod_1.z.union([zod_1.z.lazy(() => functionCallStatusSchema_ts_1.functionCallStatusSchema).and(zod_1.z.any()), zod_1.z.null()]))
|
|
17
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.functionCallItemStatusSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
exports.functionCallItemStatusSchema = zod_1.z.enum(["in_progress", "completed", "incomplete"]);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.functionCallOutputItemParamSchema = void 0;
|
|
8
|
+
const functionCallStatusSchema_ts_1 = require("./functionCallStatusSchema.ts");
|
|
9
|
+
const inputFileContentParamSchema_ts_1 = require("./inputFileContentParamSchema.ts");
|
|
10
|
+
const inputImageContentParamAutoParamSchema_ts_1 = require("./inputImageContentParamAutoParamSchema.ts");
|
|
11
|
+
const inputTextContentParamSchema_ts_1 = require("./inputTextContentParamSchema.ts");
|
|
12
|
+
const inputVideoContentSchema_ts_1 = require("./inputVideoContentSchema.ts");
|
|
13
|
+
const zod_1 = require("zod");
|
|
14
|
+
/**
|
|
15
|
+
* @description The output of a function tool call.
|
|
16
|
+
*/
|
|
17
|
+
exports.functionCallOutputItemParamSchema = zod_1.z.object({
|
|
18
|
+
"id": zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
|
|
19
|
+
"call_id": zod_1.z.string().min(1).max(64).describe("The unique ID of the function tool call generated by the model."),
|
|
20
|
+
"type": zod_1.z.enum(["function_call_output"]).default("function_call_output").describe("The type of the function tool call output. Always `function_call_output`."),
|
|
21
|
+
"output": zod_1.z.union([zod_1.z.array(zod_1.z.union([zod_1.z.lazy(() => inputTextContentParamSchema_ts_1.inputTextContentParamSchema).and(zod_1.z.object({
|
|
22
|
+
"type": zod_1.z.literal("input_text")
|
|
23
|
+
})), zod_1.z.lazy(() => inputImageContentParamAutoParamSchema_ts_1.inputImageContentParamAutoParamSchema).and(zod_1.z.object({
|
|
24
|
+
"type": zod_1.z.literal("input_image")
|
|
25
|
+
})), zod_1.z.lazy(() => inputFileContentParamSchema_ts_1.inputFileContentParamSchema).and(zod_1.z.object({
|
|
26
|
+
"type": zod_1.z.literal("input_file")
|
|
27
|
+
})), zod_1.z.lazy(() => inputVideoContentSchema_ts_1.inputVideoContentSchema).and(zod_1.z.object({
|
|
28
|
+
"type": zod_1.z.literal("input_video")
|
|
29
|
+
}))]).describe("A piece of message content, such as text, an image, or a file.")), zod_1.z.string()]).describe("Text, image, or file output of the function tool call."),
|
|
30
|
+
"status": zod_1.z.optional(zod_1.z.union([zod_1.z.lazy(() => functionCallStatusSchema_ts_1.functionCallStatusSchema).and(zod_1.z.any()), zod_1.z.null()]))
|
|
31
|
+
}).describe("The output of a function tool call.");
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.functionCallOutputSchema = void 0;
|
|
8
|
+
const functionCallOutputStatusEnumSchema_ts_1 = require("./functionCallOutputStatusEnumSchema.ts");
|
|
9
|
+
const inputFileContentSchema_ts_1 = require("./inputFileContentSchema.ts");
|
|
10
|
+
const inputImageContentSchema_ts_1 = require("./inputImageContentSchema.ts");
|
|
11
|
+
const inputTextContentSchema_ts_1 = require("./inputTextContentSchema.ts");
|
|
12
|
+
const zod_1 = require("zod");
|
|
13
|
+
/**
|
|
14
|
+
* @description A function tool call output that was returned by the tool.
|
|
15
|
+
*/
|
|
16
|
+
exports.functionCallOutputSchema = zod_1.z.object({
|
|
17
|
+
"type": zod_1.z.enum(["function_call_output"]).default("function_call_output").describe("The type of the function tool call output. Always `function_call_output`."),
|
|
18
|
+
"id": zod_1.z.string().describe("The unique ID of the function tool call output. Populated when this item is returned via API."),
|
|
19
|
+
"call_id": zod_1.z.string().describe("The unique ID of the function tool call generated by the model."),
|
|
20
|
+
"output": zod_1.z.union([zod_1.z.array(zod_1.z.union([zod_1.z.lazy(() => inputTextContentSchema_ts_1.inputTextContentSchema).and(zod_1.z.object({
|
|
21
|
+
"type": zod_1.z.literal("input_text")
|
|
22
|
+
})), zod_1.z.lazy(() => inputImageContentSchema_ts_1.inputImageContentSchema).and(zod_1.z.object({
|
|
23
|
+
"type": zod_1.z.literal("input_image")
|
|
24
|
+
})), zod_1.z.lazy(() => inputFileContentSchema_ts_1.inputFileContentSchema).and(zod_1.z.object({
|
|
25
|
+
"type": zod_1.z.literal("input_file")
|
|
26
|
+
}))]).describe("A content part that makes up an input or output item.")), zod_1.z.string()]),
|
|
27
|
+
"status": zod_1.z.lazy(() => functionCallOutputStatusEnumSchema_ts_1.functionCallOutputStatusEnumSchema).and(zod_1.z.any())
|
|
28
|
+
}).describe("A function tool call output that was returned by the tool.");
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.functionCallOutputStatusEnumSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
/**
|
|
10
|
+
* @description 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.
|
|
11
|
+
*/
|
|
12
|
+
exports.functionCallOutputStatusEnumSchema = zod_1.z.enum(["in_progress", "completed", "incomplete"]).describe("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.");
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.functionCallSchema = void 0;
|
|
8
|
+
const functionCallStatusSchema_ts_1 = require("./functionCallStatusSchema.ts");
|
|
9
|
+
const zod_1 = require("zod");
|
|
10
|
+
/**
|
|
11
|
+
* @description A function tool call that was generated by the model.
|
|
12
|
+
*/
|
|
13
|
+
exports.functionCallSchema = zod_1.z.object({
|
|
14
|
+
"type": zod_1.z.enum(["function_call"]).default("function_call").describe("The type of the item. Always `function_call`."),
|
|
15
|
+
"id": zod_1.z.string().describe("The unique ID of the function call item."),
|
|
16
|
+
"call_id": zod_1.z.string().describe("The unique ID of the function tool call that was generated."),
|
|
17
|
+
"name": zod_1.z.string().describe("The name of the function that was called."),
|
|
18
|
+
"arguments": zod_1.z.string().describe("The arguments JSON string that was generated."),
|
|
19
|
+
"status": zod_1.z.lazy(() => functionCallStatusSchema_ts_1.functionCallStatusSchema).and(zod_1.z.any())
|
|
20
|
+
}).describe("A function tool call that was generated by the model.");
|