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,47 @@
|
|
|
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.messageSchema = void 0;
|
|
8
|
+
const inputFileContentSchema_ts_1 = require("./inputFileContentSchema.ts");
|
|
9
|
+
const inputImageContentSchema_ts_1 = require("./inputImageContentSchema.ts");
|
|
10
|
+
const inputTextContentSchema_ts_1 = require("./inputTextContentSchema.ts");
|
|
11
|
+
const inputVideoContentSchema_ts_1 = require("./inputVideoContentSchema.ts");
|
|
12
|
+
const messageRoleSchema_ts_1 = require("./messageRoleSchema.ts");
|
|
13
|
+
const messageStatusSchema_ts_1 = require("./messageStatusSchema.ts");
|
|
14
|
+
const outputTextContentSchema_ts_1 = require("./outputTextContentSchema.ts");
|
|
15
|
+
const reasoningTextContentSchema_ts_1 = require("./reasoningTextContentSchema.ts");
|
|
16
|
+
const refusalContentSchema_ts_1 = require("./refusalContentSchema.ts");
|
|
17
|
+
const summaryTextContentSchema_ts_1 = require("./summaryTextContentSchema.ts");
|
|
18
|
+
const textContentSchema_ts_1 = require("./textContentSchema.ts");
|
|
19
|
+
const zod_1 = require("zod");
|
|
20
|
+
/**
|
|
21
|
+
* @description A message to or from the model.
|
|
22
|
+
*/
|
|
23
|
+
exports.messageSchema = zod_1.z.object({
|
|
24
|
+
"type": zod_1.z.enum(["message"]).default("message").describe("The type of the message. Always set to `message`."),
|
|
25
|
+
"id": zod_1.z.string().describe("The unique ID of the message."),
|
|
26
|
+
"status": zod_1.z.lazy(() => messageStatusSchema_ts_1.messageStatusSchema).and(zod_1.z.any()),
|
|
27
|
+
"role": zod_1.z.lazy(() => messageRoleSchema_ts_1.messageRoleSchema).and(zod_1.z.any()),
|
|
28
|
+
"content": zod_1.z.array(zod_1.z.union([zod_1.z.lazy(() => inputTextContentSchema_ts_1.inputTextContentSchema).and(zod_1.z.object({
|
|
29
|
+
"type": zod_1.z.literal("input_text")
|
|
30
|
+
})), zod_1.z.lazy(() => outputTextContentSchema_ts_1.outputTextContentSchema).and(zod_1.z.object({
|
|
31
|
+
"type": zod_1.z.literal("output_text")
|
|
32
|
+
})), zod_1.z.lazy(() => textContentSchema_ts_1.textContentSchema).and(zod_1.z.object({
|
|
33
|
+
"type": zod_1.z.literal("text")
|
|
34
|
+
})), zod_1.z.lazy(() => summaryTextContentSchema_ts_1.summaryTextContentSchema).and(zod_1.z.object({
|
|
35
|
+
"type": zod_1.z.literal("summary_text")
|
|
36
|
+
})), zod_1.z.lazy(() => reasoningTextContentSchema_ts_1.reasoningTextContentSchema).and(zod_1.z.object({
|
|
37
|
+
"type": zod_1.z.literal("reasoning_text")
|
|
38
|
+
})), zod_1.z.lazy(() => refusalContentSchema_ts_1.refusalContentSchema).and(zod_1.z.object({
|
|
39
|
+
"type": zod_1.z.literal("refusal")
|
|
40
|
+
})), zod_1.z.lazy(() => inputImageContentSchema_ts_1.inputImageContentSchema).and(zod_1.z.object({
|
|
41
|
+
"type": zod_1.z.literal("input_image")
|
|
42
|
+
})), zod_1.z.lazy(() => inputFileContentSchema_ts_1.inputFileContentSchema).and(zod_1.z.object({
|
|
43
|
+
"type": zod_1.z.literal("input_file")
|
|
44
|
+
})), zod_1.z.lazy(() => inputVideoContentSchema_ts_1.inputVideoContentSchema).and(zod_1.z.object({
|
|
45
|
+
"type": zod_1.z.literal("input_video")
|
|
46
|
+
}))]).describe("A content part that makes up an input or output item.")).describe("The content of the message")
|
|
47
|
+
}).describe("A message to or from the model.");
|
|
@@ -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.messageStatusSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
exports.messageStatusSchema = zod_1.z.enum(["in_progress", "completed", "incomplete"]);
|
|
@@ -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.metadataParamSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
/**
|
|
10
|
+
* @description Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.\n Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
|
|
11
|
+
*/
|
|
12
|
+
exports.metadataParamSchema = zod_1.z.object({}).catchall(zod_1.z.string().max(512)).describe("Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.\n Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.");
|
|
@@ -0,0 +1,14 @@
|
|
|
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.outputTextContentParamSchema = void 0;
|
|
8
|
+
const urlCitationParamSchema_ts_1 = require("./urlCitationParamSchema.ts");
|
|
9
|
+
const zod_1 = require("zod");
|
|
10
|
+
exports.outputTextContentParamSchema = zod_1.z.object({
|
|
11
|
+
"type": zod_1.z.enum(["output_text"]).default("output_text").describe("The content type. Always `output_text`."),
|
|
12
|
+
"text": zod_1.z.string().max(10485760).describe("The text content."),
|
|
13
|
+
"annotations": zod_1.z.optional(zod_1.z.array(zod_1.z.lazy(() => urlCitationParamSchema_ts_1.urlCitationParamSchema)).describe("Citations associated with the text content."))
|
|
14
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
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.outputTextContentSchema = void 0;
|
|
8
|
+
const annotationSchema_ts_1 = require("./annotationSchema.ts");
|
|
9
|
+
const logProbSchema_ts_1 = require("./logProbSchema.ts");
|
|
10
|
+
const zod_1 = require("zod");
|
|
11
|
+
/**
|
|
12
|
+
* @description A text output from the model.
|
|
13
|
+
*/
|
|
14
|
+
exports.outputTextContentSchema = zod_1.z.object({
|
|
15
|
+
"type": zod_1.z.enum(["output_text"]).default("output_text").describe("The type of the output text. Always `output_text`."),
|
|
16
|
+
"text": zod_1.z.string().describe("The text output from the model."),
|
|
17
|
+
"annotations": zod_1.z.array(zod_1.z.lazy(() => annotationSchema_ts_1.annotationSchema).describe("An annotation that applies to a span of output text.")).describe("The annotations of the text output."),
|
|
18
|
+
"logprobs": zod_1.z.array(zod_1.z.lazy(() => logProbSchema_ts_1.logProbSchema).describe("The log probability of a token."))
|
|
19
|
+
}).describe("A text output from the model.");
|
|
@@ -0,0 +1,14 @@
|
|
|
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.outputTokensDetailsSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
/**
|
|
10
|
+
* @description A breakdown of output token usage that was recorded.
|
|
11
|
+
*/
|
|
12
|
+
exports.outputTokensDetailsSchema = zod_1.z.object({
|
|
13
|
+
"reasoning_tokens": zod_1.z.number().int().describe("The number of output tokens that were attributed to reasoning.")
|
|
14
|
+
}).describe("A breakdown of output token usage that was recorded.");
|
|
@@ -0,0 +1,58 @@
|
|
|
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.reasoningBodySchema = void 0;
|
|
8
|
+
const inputFileContentSchema_ts_1 = require("./inputFileContentSchema.ts");
|
|
9
|
+
const inputImageContentSchema_ts_1 = require("./inputImageContentSchema.ts");
|
|
10
|
+
const inputTextContentSchema_ts_1 = require("./inputTextContentSchema.ts");
|
|
11
|
+
const outputTextContentSchema_ts_1 = require("./outputTextContentSchema.ts");
|
|
12
|
+
const reasoningTextContentSchema_ts_1 = require("./reasoningTextContentSchema.ts");
|
|
13
|
+
const refusalContentSchema_ts_1 = require("./refusalContentSchema.ts");
|
|
14
|
+
const summaryTextContentSchema_ts_1 = require("./summaryTextContentSchema.ts");
|
|
15
|
+
const textContentSchema_ts_1 = require("./textContentSchema.ts");
|
|
16
|
+
const zod_1 = require("zod");
|
|
17
|
+
/**
|
|
18
|
+
* @description A reasoning item that was generated by the model.
|
|
19
|
+
*/
|
|
20
|
+
exports.reasoningBodySchema = zod_1.z.object({
|
|
21
|
+
"type": zod_1.z.enum(["reasoning"]).default("reasoning").describe("The type of the item. Always `reasoning`."),
|
|
22
|
+
"id": zod_1.z.string().describe("The unique ID of the reasoning item."),
|
|
23
|
+
"content": zod_1.z.optional(zod_1.z.array(zod_1.z.union([zod_1.z.lazy(() => inputTextContentSchema_ts_1.inputTextContentSchema).and(zod_1.z.object({
|
|
24
|
+
"type": zod_1.z.literal("input_text")
|
|
25
|
+
})), zod_1.z.lazy(() => outputTextContentSchema_ts_1.outputTextContentSchema).and(zod_1.z.object({
|
|
26
|
+
"type": zod_1.z.literal("output_text")
|
|
27
|
+
})), zod_1.z.lazy(() => textContentSchema_ts_1.textContentSchema).and(zod_1.z.object({
|
|
28
|
+
"type": zod_1.z.literal("text")
|
|
29
|
+
})), zod_1.z.lazy(() => summaryTextContentSchema_ts_1.summaryTextContentSchema).and(zod_1.z.object({
|
|
30
|
+
"type": zod_1.z.literal("summary_text")
|
|
31
|
+
})), zod_1.z.lazy(() => reasoningTextContentSchema_ts_1.reasoningTextContentSchema).and(zod_1.z.object({
|
|
32
|
+
"type": zod_1.z.literal("reasoning_text")
|
|
33
|
+
})), zod_1.z.lazy(() => refusalContentSchema_ts_1.refusalContentSchema).and(zod_1.z.object({
|
|
34
|
+
"type": zod_1.z.literal("refusal")
|
|
35
|
+
})), zod_1.z.lazy(() => inputImageContentSchema_ts_1.inputImageContentSchema).and(zod_1.z.object({
|
|
36
|
+
"type": zod_1.z.literal("input_image")
|
|
37
|
+
})), zod_1.z.lazy(() => inputFileContentSchema_ts_1.inputFileContentSchema).and(zod_1.z.object({
|
|
38
|
+
"type": zod_1.z.literal("input_file")
|
|
39
|
+
}))]).describe("A content part that makes up an input or output item.")).describe("The reasoning content that was generated.")),
|
|
40
|
+
"summary": zod_1.z.array(zod_1.z.union([zod_1.z.lazy(() => inputTextContentSchema_ts_1.inputTextContentSchema).and(zod_1.z.object({
|
|
41
|
+
"type": zod_1.z.literal("input_text")
|
|
42
|
+
})), zod_1.z.lazy(() => outputTextContentSchema_ts_1.outputTextContentSchema).and(zod_1.z.object({
|
|
43
|
+
"type": zod_1.z.literal("output_text")
|
|
44
|
+
})), zod_1.z.lazy(() => textContentSchema_ts_1.textContentSchema).and(zod_1.z.object({
|
|
45
|
+
"type": zod_1.z.literal("text")
|
|
46
|
+
})), zod_1.z.lazy(() => summaryTextContentSchema_ts_1.summaryTextContentSchema).and(zod_1.z.object({
|
|
47
|
+
"type": zod_1.z.literal("summary_text")
|
|
48
|
+
})), zod_1.z.lazy(() => reasoningTextContentSchema_ts_1.reasoningTextContentSchema).and(zod_1.z.object({
|
|
49
|
+
"type": zod_1.z.literal("reasoning_text")
|
|
50
|
+
})), zod_1.z.lazy(() => refusalContentSchema_ts_1.refusalContentSchema).and(zod_1.z.object({
|
|
51
|
+
"type": zod_1.z.literal("refusal")
|
|
52
|
+
})), zod_1.z.lazy(() => inputImageContentSchema_ts_1.inputImageContentSchema).and(zod_1.z.object({
|
|
53
|
+
"type": zod_1.z.literal("input_image")
|
|
54
|
+
})), zod_1.z.lazy(() => inputFileContentSchema_ts_1.inputFileContentSchema).and(zod_1.z.object({
|
|
55
|
+
"type": zod_1.z.literal("input_file")
|
|
56
|
+
}))]).describe("A content part that makes up an input or output item.")).describe("The reasoning summary content that was generated."),
|
|
57
|
+
"encrypted_content": zod_1.z.optional(zod_1.z.string().describe("The encrypted reasoning content that was generated."))
|
|
58
|
+
}).describe("A reasoning item that was generated by the model.");
|
|
@@ -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.reasoningEffortEnumSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
exports.reasoningEffortEnumSchema = zod_1.z.enum(["none", "low", "medium", "high", "xhigh"]);
|
|
@@ -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.reasoningItemParamSchema = void 0;
|
|
8
|
+
const reasoningSummaryContentParamSchema_ts_1 = require("./reasoningSummaryContentParamSchema.ts");
|
|
9
|
+
const zod_1 = require("zod");
|
|
10
|
+
exports.reasoningItemParamSchema = 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(["reasoning"]).default("reasoning").describe("The item type. Always `reasoning`."),
|
|
13
|
+
"summary": zod_1.z.array(zod_1.z.lazy(() => reasoningSummaryContentParamSchema_ts_1.reasoningSummaryContentParamSchema)).describe("Reasoning summary content associated with this item."),
|
|
14
|
+
"content": zod_1.z.optional(zod_1.z.null()),
|
|
15
|
+
"encrypted_content": zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()]))
|
|
16
|
+
});
|
|
@@ -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.reasoningParamSchema = void 0;
|
|
8
|
+
const reasoningEffortEnumSchema_ts_1 = require("./reasoningEffortEnumSchema.ts");
|
|
9
|
+
const reasoningSummaryEnumSchema_ts_1 = require("./reasoningSummaryEnumSchema.ts");
|
|
10
|
+
const zod_1 = require("zod");
|
|
11
|
+
/**
|
|
12
|
+
* @description **gpt-5 and o-series models only** Configuration options for [reasoning models](https://platform.openai.com/docs/guides/reasoning).
|
|
13
|
+
*/
|
|
14
|
+
exports.reasoningParamSchema = zod_1.z.object({
|
|
15
|
+
"effort": zod_1.z.optional(zod_1.z.union([zod_1.z.lazy(() => reasoningEffortEnumSchema_ts_1.reasoningEffortEnumSchema), zod_1.z.null()])),
|
|
16
|
+
"summary": zod_1.z.optional(zod_1.z.union([zod_1.z.lazy(() => reasoningSummaryEnumSchema_ts_1.reasoningSummaryEnumSchema).and(zod_1.z.any()), zod_1.z.null()]))
|
|
17
|
+
}).describe("**gpt-5 and o-series models only** Configuration options for [reasoning models](https://platform.openai.com/docs/guides/reasoning).");
|
|
@@ -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.reasoningSchema = void 0;
|
|
8
|
+
const reasoningEffortEnumSchema_ts_1 = require("./reasoningEffortEnumSchema.ts");
|
|
9
|
+
const reasoningSummaryEnumSchema_ts_1 = require("./reasoningSummaryEnumSchema.ts");
|
|
10
|
+
const zod_1 = require("zod");
|
|
11
|
+
/**
|
|
12
|
+
* @description Reasoning configuration and metadata that were used for the response.
|
|
13
|
+
*/
|
|
14
|
+
exports.reasoningSchema = zod_1.z.object({
|
|
15
|
+
"effort": zod_1.z.union([zod_1.z.lazy(() => reasoningEffortEnumSchema_ts_1.reasoningEffortEnumSchema), zod_1.z.null()]),
|
|
16
|
+
"summary": zod_1.z.union([zod_1.z.lazy(() => reasoningSummaryEnumSchema_ts_1.reasoningSummaryEnumSchema).and(zod_1.z.any()), zod_1.z.null()])
|
|
17
|
+
}).describe("Reasoning configuration and metadata that were used for the response.");
|
|
@@ -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.reasoningSummaryContentParamSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
exports.reasoningSummaryContentParamSchema = zod_1.z.object({
|
|
10
|
+
"type": zod_1.z.enum(["summary_text"]).default("summary_text").describe("The content type. Always `summary_text`."),
|
|
11
|
+
"text": zod_1.z.string().max(10485760).describe("The reasoning summary text.")
|
|
12
|
+
});
|
|
@@ -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.reasoningSummaryEnumSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
exports.reasoningSummaryEnumSchema = zod_1.z.enum(["concise", "detailed", "auto"]);
|
|
@@ -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.reasoningTextContentSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
/**
|
|
10
|
+
* @description Reasoning text from the model.
|
|
11
|
+
*/
|
|
12
|
+
exports.reasoningTextContentSchema = zod_1.z.object({
|
|
13
|
+
"type": zod_1.z.enum(["reasoning_text"]).default("reasoning_text").describe("The type of the reasoning text. Always `reasoning_text`."),
|
|
14
|
+
"text": zod_1.z.string().describe("The reasoning text from the model.")
|
|
15
|
+
}).describe("Reasoning text from the model.");
|
|
@@ -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.refusalContentParamSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
exports.refusalContentParamSchema = zod_1.z.object({
|
|
10
|
+
"type": zod_1.z.enum(["refusal"]).default("refusal").describe("The content type. Always `refusal`."),
|
|
11
|
+
"refusal": zod_1.z.string().max(10485760).describe("The refusal text.")
|
|
12
|
+
});
|
|
@@ -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.refusalContentSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
/**
|
|
10
|
+
* @description A refusal from the model.
|
|
11
|
+
*/
|
|
12
|
+
exports.refusalContentSchema = zod_1.z.object({
|
|
13
|
+
"type": zod_1.z.enum(["refusal"]).default("refusal").describe("The type of the refusal. Always `refusal`."),
|
|
14
|
+
"refusal": zod_1.z.string().describe("The refusal explanation from the model.")
|
|
15
|
+
}).describe("A refusal from the model.");
|
|
@@ -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.responseCompletedStreamingEventSchema = void 0;
|
|
8
|
+
const responseResourceSchema_ts_1 = require("./responseResourceSchema.ts");
|
|
9
|
+
const zod_1 = require("zod");
|
|
10
|
+
/**
|
|
11
|
+
* @description A streaming event that indicated the response was completed.
|
|
12
|
+
*/
|
|
13
|
+
exports.responseCompletedStreamingEventSchema = zod_1.z.object({
|
|
14
|
+
"type": zod_1.z.enum(["response.completed"]).default("response.completed").describe("The type of the event, always `response.completed`."),
|
|
15
|
+
"sequence_number": zod_1.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
16
|
+
"response": zod_1.z.lazy(() => responseResourceSchema_ts_1.responseResourceSchema).and(zod_1.z.any())
|
|
17
|
+
}).describe("A streaming event that indicated the response was completed.");
|
|
@@ -0,0 +1,43 @@
|
|
|
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.responseContentPartAddedStreamingEventSchema = void 0;
|
|
8
|
+
const inputFileContentSchema_ts_1 = require("./inputFileContentSchema.ts");
|
|
9
|
+
const inputImageContentSchema_ts_1 = require("./inputImageContentSchema.ts");
|
|
10
|
+
const inputTextContentSchema_ts_1 = require("./inputTextContentSchema.ts");
|
|
11
|
+
const outputTextContentSchema_ts_1 = require("./outputTextContentSchema.ts");
|
|
12
|
+
const reasoningTextContentSchema_ts_1 = require("./reasoningTextContentSchema.ts");
|
|
13
|
+
const refusalContentSchema_ts_1 = require("./refusalContentSchema.ts");
|
|
14
|
+
const summaryTextContentSchema_ts_1 = require("./summaryTextContentSchema.ts");
|
|
15
|
+
const textContentSchema_ts_1 = require("./textContentSchema.ts");
|
|
16
|
+
const zod_1 = require("zod");
|
|
17
|
+
/**
|
|
18
|
+
* @description A streaming event that indicated a content part was added.
|
|
19
|
+
*/
|
|
20
|
+
exports.responseContentPartAddedStreamingEventSchema = zod_1.z.object({
|
|
21
|
+
"type": zod_1.z.enum(["response.content_part.added"]).default("response.content_part.added").describe("The type of the event, always `response.content_part.added`."),
|
|
22
|
+
"sequence_number": zod_1.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
23
|
+
"item_id": zod_1.z.string().describe("The ID of the item that was updated."),
|
|
24
|
+
"output_index": zod_1.z.number().int().describe("The index of the output item that was updated."),
|
|
25
|
+
"content_index": zod_1.z.number().int().describe("The index of the content part that was added."),
|
|
26
|
+
"part": zod_1.z.union([zod_1.z.lazy(() => inputTextContentSchema_ts_1.inputTextContentSchema).and(zod_1.z.object({
|
|
27
|
+
"type": zod_1.z.literal("input_text")
|
|
28
|
+
})), zod_1.z.lazy(() => outputTextContentSchema_ts_1.outputTextContentSchema).and(zod_1.z.object({
|
|
29
|
+
"type": zod_1.z.literal("output_text")
|
|
30
|
+
})), zod_1.z.lazy(() => textContentSchema_ts_1.textContentSchema).and(zod_1.z.object({
|
|
31
|
+
"type": zod_1.z.literal("text")
|
|
32
|
+
})), zod_1.z.lazy(() => summaryTextContentSchema_ts_1.summaryTextContentSchema).and(zod_1.z.object({
|
|
33
|
+
"type": zod_1.z.literal("summary_text")
|
|
34
|
+
})), zod_1.z.lazy(() => reasoningTextContentSchema_ts_1.reasoningTextContentSchema).and(zod_1.z.object({
|
|
35
|
+
"type": zod_1.z.literal("reasoning_text")
|
|
36
|
+
})), zod_1.z.lazy(() => refusalContentSchema_ts_1.refusalContentSchema).and(zod_1.z.object({
|
|
37
|
+
"type": zod_1.z.literal("refusal")
|
|
38
|
+
})), zod_1.z.lazy(() => inputImageContentSchema_ts_1.inputImageContentSchema).and(zod_1.z.object({
|
|
39
|
+
"type": zod_1.z.literal("input_image")
|
|
40
|
+
})), zod_1.z.lazy(() => inputFileContentSchema_ts_1.inputFileContentSchema).and(zod_1.z.object({
|
|
41
|
+
"type": zod_1.z.literal("input_file")
|
|
42
|
+
}))]).describe("A content part that makes up an input or output item.")
|
|
43
|
+
}).describe("A streaming event that indicated a content part was added.");
|
|
@@ -0,0 +1,43 @@
|
|
|
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.responseContentPartDoneStreamingEventSchema = void 0;
|
|
8
|
+
const inputFileContentSchema_ts_1 = require("./inputFileContentSchema.ts");
|
|
9
|
+
const inputImageContentSchema_ts_1 = require("./inputImageContentSchema.ts");
|
|
10
|
+
const inputTextContentSchema_ts_1 = require("./inputTextContentSchema.ts");
|
|
11
|
+
const outputTextContentSchema_ts_1 = require("./outputTextContentSchema.ts");
|
|
12
|
+
const reasoningTextContentSchema_ts_1 = require("./reasoningTextContentSchema.ts");
|
|
13
|
+
const refusalContentSchema_ts_1 = require("./refusalContentSchema.ts");
|
|
14
|
+
const summaryTextContentSchema_ts_1 = require("./summaryTextContentSchema.ts");
|
|
15
|
+
const textContentSchema_ts_1 = require("./textContentSchema.ts");
|
|
16
|
+
const zod_1 = require("zod");
|
|
17
|
+
/**
|
|
18
|
+
* @description A streaming event that indicated a content part was completed.
|
|
19
|
+
*/
|
|
20
|
+
exports.responseContentPartDoneStreamingEventSchema = zod_1.z.object({
|
|
21
|
+
"type": zod_1.z.enum(["response.content_part.done"]).default("response.content_part.done").describe("The type of the event, always `response.content_part.done`."),
|
|
22
|
+
"sequence_number": zod_1.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
23
|
+
"item_id": zod_1.z.string().describe("The ID of the item that was updated."),
|
|
24
|
+
"output_index": zod_1.z.number().int().describe("The index of the output item that was updated."),
|
|
25
|
+
"content_index": zod_1.z.number().int().describe("The index of the content part that was completed."),
|
|
26
|
+
"part": zod_1.z.union([zod_1.z.lazy(() => inputTextContentSchema_ts_1.inputTextContentSchema).and(zod_1.z.object({
|
|
27
|
+
"type": zod_1.z.literal("input_text")
|
|
28
|
+
})), zod_1.z.lazy(() => outputTextContentSchema_ts_1.outputTextContentSchema).and(zod_1.z.object({
|
|
29
|
+
"type": zod_1.z.literal("output_text")
|
|
30
|
+
})), zod_1.z.lazy(() => textContentSchema_ts_1.textContentSchema).and(zod_1.z.object({
|
|
31
|
+
"type": zod_1.z.literal("text")
|
|
32
|
+
})), zod_1.z.lazy(() => summaryTextContentSchema_ts_1.summaryTextContentSchema).and(zod_1.z.object({
|
|
33
|
+
"type": zod_1.z.literal("summary_text")
|
|
34
|
+
})), zod_1.z.lazy(() => reasoningTextContentSchema_ts_1.reasoningTextContentSchema).and(zod_1.z.object({
|
|
35
|
+
"type": zod_1.z.literal("reasoning_text")
|
|
36
|
+
})), zod_1.z.lazy(() => refusalContentSchema_ts_1.refusalContentSchema).and(zod_1.z.object({
|
|
37
|
+
"type": zod_1.z.literal("refusal")
|
|
38
|
+
})), zod_1.z.lazy(() => inputImageContentSchema_ts_1.inputImageContentSchema).and(zod_1.z.object({
|
|
39
|
+
"type": zod_1.z.literal("input_image")
|
|
40
|
+
})), zod_1.z.lazy(() => inputFileContentSchema_ts_1.inputFileContentSchema).and(zod_1.z.object({
|
|
41
|
+
"type": zod_1.z.literal("input_file")
|
|
42
|
+
}))]).describe("A content part that makes up an input or output item.")
|
|
43
|
+
}).describe("A streaming event that indicated a content part was completed.");
|
|
@@ -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.responseCreatedStreamingEventSchema = void 0;
|
|
8
|
+
const responseResourceSchema_ts_1 = require("./responseResourceSchema.ts");
|
|
9
|
+
const zod_1 = require("zod");
|
|
10
|
+
/**
|
|
11
|
+
* @description A streaming event that indicated the response was created.
|
|
12
|
+
*/
|
|
13
|
+
exports.responseCreatedStreamingEventSchema = zod_1.z.object({
|
|
14
|
+
"type": zod_1.z.enum(["response.created"]).default("response.created").describe("The type of the event, always `response.created`."),
|
|
15
|
+
"sequence_number": zod_1.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
16
|
+
"response": zod_1.z.lazy(() => responseResourceSchema_ts_1.responseResourceSchema).and(zod_1.z.any())
|
|
17
|
+
}).describe("A streaming event that indicated the response was created.");
|
|
@@ -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.responseFailedStreamingEventSchema = void 0;
|
|
8
|
+
const responseResourceSchema_ts_1 = require("./responseResourceSchema.ts");
|
|
9
|
+
const zod_1 = require("zod");
|
|
10
|
+
/**
|
|
11
|
+
* @description A streaming event that indicated the response had failed.
|
|
12
|
+
*/
|
|
13
|
+
exports.responseFailedStreamingEventSchema = zod_1.z.object({
|
|
14
|
+
"type": zod_1.z.enum(["response.failed"]).default("response.failed").describe("The type of the event, always `response.failed`."),
|
|
15
|
+
"sequence_number": zod_1.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
16
|
+
"response": zod_1.z.lazy(() => responseResourceSchema_ts_1.responseResourceSchema).and(zod_1.z.any())
|
|
17
|
+
}).describe("A streaming event that indicated the response had failed.");
|
|
@@ -0,0 +1,19 @@
|
|
|
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.responseFunctionCallArgumentsDeltaStreamingEventSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
/**
|
|
10
|
+
* @description A streaming event that indicated function call arguments were incrementally added.
|
|
11
|
+
*/
|
|
12
|
+
exports.responseFunctionCallArgumentsDeltaStreamingEventSchema = zod_1.z.object({
|
|
13
|
+
"type": zod_1.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`."),
|
|
14
|
+
"sequence_number": zod_1.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
15
|
+
"item_id": zod_1.z.string().describe("The ID of the tool call item that was updated."),
|
|
16
|
+
"output_index": zod_1.z.number().int().describe("The index of the output item that was updated."),
|
|
17
|
+
"delta": zod_1.z.string().describe("The arguments delta that was appended."),
|
|
18
|
+
"obfuscation": zod_1.z.optional(zod_1.z.string().describe("An obfuscation string that was added to pad the event payload."))
|
|
19
|
+
}).describe("A streaming event that indicated function call arguments were incrementally added.");
|
|
@@ -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.responseFunctionCallArgumentsDoneStreamingEventSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
/**
|
|
10
|
+
* @description A streaming event that indicated function call arguments were completed.
|
|
11
|
+
*/
|
|
12
|
+
exports.responseFunctionCallArgumentsDoneStreamingEventSchema = zod_1.z.object({
|
|
13
|
+
"type": zod_1.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`."),
|
|
14
|
+
"sequence_number": zod_1.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
15
|
+
"item_id": zod_1.z.string().describe("The ID of the tool call item that was updated."),
|
|
16
|
+
"output_index": zod_1.z.number().int().describe("The index of the output item that was updated."),
|
|
17
|
+
"arguments": zod_1.z.string().describe("The final arguments string that was emitted.")
|
|
18
|
+
}).describe("A streaming event that indicated function call arguments were completed.");
|
|
@@ -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.responseInProgressStreamingEventSchema = void 0;
|
|
8
|
+
const responseResourceSchema_ts_1 = require("./responseResourceSchema.ts");
|
|
9
|
+
const zod_1 = require("zod");
|
|
10
|
+
/**
|
|
11
|
+
* @description A streaming event that indicated the response was in progress.
|
|
12
|
+
*/
|
|
13
|
+
exports.responseInProgressStreamingEventSchema = zod_1.z.object({
|
|
14
|
+
"type": zod_1.z.enum(["response.in_progress"]).default("response.in_progress").describe("The type of the event, always `response.in_progress`."),
|
|
15
|
+
"sequence_number": zod_1.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
16
|
+
"response": zod_1.z.lazy(() => responseResourceSchema_ts_1.responseResourceSchema).and(zod_1.z.any())
|
|
17
|
+
}).describe("A streaming event that indicated the response was in progress.");
|
|
@@ -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.responseIncompleteStreamingEventSchema = void 0;
|
|
8
|
+
const responseResourceSchema_ts_1 = require("./responseResourceSchema.ts");
|
|
9
|
+
const zod_1 = require("zod");
|
|
10
|
+
/**
|
|
11
|
+
* @description A streaming event that indicated the response was incomplete.
|
|
12
|
+
*/
|
|
13
|
+
exports.responseIncompleteStreamingEventSchema = zod_1.z.object({
|
|
14
|
+
"type": zod_1.z.enum(["response.incomplete"]).default("response.incomplete").describe("The type of the event, always `response.incomplete`."),
|
|
15
|
+
"sequence_number": zod_1.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
16
|
+
"response": zod_1.z.lazy(() => responseResourceSchema_ts_1.responseResourceSchema).and(zod_1.z.any())
|
|
17
|
+
}).describe("A streaming event that indicated the response was incomplete.");
|
|
@@ -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.responseOutputItemAddedStreamingEventSchema = void 0;
|
|
8
|
+
const itemFieldSchema_ts_1 = require("./itemFieldSchema.ts");
|
|
9
|
+
const zod_1 = require("zod");
|
|
10
|
+
/**
|
|
11
|
+
* @description A streaming event that indicated an output item was added to the response.
|
|
12
|
+
*/
|
|
13
|
+
exports.responseOutputItemAddedStreamingEventSchema = zod_1.z.object({
|
|
14
|
+
"type": zod_1.z.enum(["response.output_item.added"]).default("response.output_item.added").describe("The type of the event, always `response.output_item.added`."),
|
|
15
|
+
"sequence_number": zod_1.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
16
|
+
"output_index": zod_1.z.number().int().describe("The index of the output item that was added."),
|
|
17
|
+
"item": zod_1.z.union([zod_1.z.lazy(() => itemFieldSchema_ts_1.itemFieldSchema).and(zod_1.z.any()), zod_1.z.null()])
|
|
18
|
+
}).describe("A streaming event that indicated an output item was added to the response.");
|
|
@@ -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.responseOutputItemDoneStreamingEventSchema = void 0;
|
|
8
|
+
const itemFieldSchema_ts_1 = require("./itemFieldSchema.ts");
|
|
9
|
+
const zod_1 = require("zod");
|
|
10
|
+
/**
|
|
11
|
+
* @description A streaming event that indicated an output item was completed.
|
|
12
|
+
*/
|
|
13
|
+
exports.responseOutputItemDoneStreamingEventSchema = zod_1.z.object({
|
|
14
|
+
"type": zod_1.z.enum(["response.output_item.done"]).default("response.output_item.done").describe("The type of the event, always `response.output_item.done`."),
|
|
15
|
+
"sequence_number": zod_1.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
16
|
+
"output_index": zod_1.z.number().int().describe("The index of the output item that was completed."),
|
|
17
|
+
"item": zod_1.z.union([zod_1.z.lazy(() => itemFieldSchema_ts_1.itemFieldSchema).and(zod_1.z.any()), zod_1.z.null()])
|
|
18
|
+
}).describe("A streaming event that indicated an output item was completed.");
|
|
@@ -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.responseOutputTextAnnotationAddedStreamingEventSchema = void 0;
|
|
8
|
+
const annotationSchema_ts_1 = require("./annotationSchema.ts");
|
|
9
|
+
const zod_1 = require("zod");
|
|
10
|
+
/**
|
|
11
|
+
* @description A streaming event that indicated an output text annotation was added.
|
|
12
|
+
*/
|
|
13
|
+
exports.responseOutputTextAnnotationAddedStreamingEventSchema = zod_1.z.object({
|
|
14
|
+
"type": zod_1.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`."),
|
|
15
|
+
"sequence_number": zod_1.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
16
|
+
"item_id": zod_1.z.string().describe("The ID of the item that was updated."),
|
|
17
|
+
"output_index": zod_1.z.number().int().describe("The index of the output item that was updated."),
|
|
18
|
+
"content_index": zod_1.z.number().int().describe("The index of the output text content that was updated."),
|
|
19
|
+
"annotation_index": zod_1.z.number().int().describe("The index of the annotation that was added."),
|
|
20
|
+
"annotation": zod_1.z.union([zod_1.z.lazy(() => annotationSchema_ts_1.annotationSchema).and(zod_1.z.any()), zod_1.z.null()])
|
|
21
|
+
}).describe("A streaming event that indicated an output text annotation was added.");
|