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,22 @@
|
|
|
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.responseOutputTextDeltaStreamingEventSchema = void 0;
|
|
8
|
+
const logProbSchema_ts_1 = require("./logProbSchema.ts");
|
|
9
|
+
const zod_1 = require("zod");
|
|
10
|
+
/**
|
|
11
|
+
* @description A streaming event that indicated output text was incrementally added.
|
|
12
|
+
*/
|
|
13
|
+
exports.responseOutputTextDeltaStreamingEventSchema = zod_1.z.object({
|
|
14
|
+
"type": zod_1.z.enum(["response.output_text.delta"]).default("response.output_text.delta").describe("The type of the event, always `response.output_text.delta`."),
|
|
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 content part that was updated."),
|
|
19
|
+
"delta": zod_1.z.string().describe("The text delta that was appended."),
|
|
20
|
+
"logprobs": zod_1.z.array(zod_1.z.lazy(() => logProbSchema_ts_1.logProbSchema).describe("The log probability of a token.")).describe("The token log probabilities that were emitted with the delta, if any."),
|
|
21
|
+
"obfuscation": zod_1.z.optional(zod_1.z.string().describe("An obfuscation string that was added to pad the event payload."))
|
|
22
|
+
}).describe("A streaming event that indicated output text was incrementally added.");
|
|
@@ -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.responseOutputTextDoneStreamingEventSchema = void 0;
|
|
8
|
+
const logProbSchema_ts_1 = require("./logProbSchema.ts");
|
|
9
|
+
const zod_1 = require("zod");
|
|
10
|
+
/**
|
|
11
|
+
* @description A streaming event that indicated output text was completed.
|
|
12
|
+
*/
|
|
13
|
+
exports.responseOutputTextDoneStreamingEventSchema = zod_1.z.object({
|
|
14
|
+
"type": zod_1.z.enum(["response.output_text.done"]).default("response.output_text.done").describe("The type of the event, always `response.output_text.done`."),
|
|
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 content part that was completed."),
|
|
19
|
+
"text": zod_1.z.string().describe("The final text that was emitted."),
|
|
20
|
+
"logprobs": zod_1.z.array(zod_1.z.lazy(() => logProbSchema_ts_1.logProbSchema).describe("The log probability of a token.")).describe("The token log probabilities that were emitted with the final text, if any.")
|
|
21
|
+
}).describe("A streaming event that indicated output text 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.responseQueuedStreamingEventSchema = 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 queued.
|
|
12
|
+
*/
|
|
13
|
+
exports.responseQueuedStreamingEventSchema = zod_1.z.object({
|
|
14
|
+
"type": zod_1.z.enum(["response.queued"]).default("response.queued").describe("The type of the event, always `response.queued`."),
|
|
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 queued.");
|
|
@@ -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.responseReasoningDeltaStreamingEventSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
/**
|
|
10
|
+
* @description A streaming event that indicated reasoning text was incrementally added.
|
|
11
|
+
*/
|
|
12
|
+
exports.responseReasoningDeltaStreamingEventSchema = zod_1.z.object({
|
|
13
|
+
"type": zod_1.z.enum(["response.reasoning.delta"]).default("response.reasoning.delta").describe("The type of the event, always `response.reasoning.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 item that was updated."),
|
|
16
|
+
"output_index": zod_1.z.number().int().describe("The index of the output item that was updated."),
|
|
17
|
+
"content_index": zod_1.z.number().int().describe("The index of the reasoning content that was updated."),
|
|
18
|
+
"delta": zod_1.z.string().describe("The reasoning text delta that was appended."),
|
|
19
|
+
"obfuscation": zod_1.z.optional(zod_1.z.string().describe("An obfuscation string that was added to pad the event payload."))
|
|
20
|
+
}).describe("A streaming event that indicated reasoning text was incrementally added.");
|
|
@@ -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.responseReasoningDoneStreamingEventSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
/**
|
|
10
|
+
* @description A streaming event that indicated reasoning text was completed.
|
|
11
|
+
*/
|
|
12
|
+
exports.responseReasoningDoneStreamingEventSchema = zod_1.z.object({
|
|
13
|
+
"type": zod_1.z.enum(["response.reasoning.done"]).default("response.reasoning.done").describe("The type of the event, always `response.reasoning.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 item that was updated."),
|
|
16
|
+
"output_index": zod_1.z.number().int().describe("The index of the output item that was updated."),
|
|
17
|
+
"content_index": zod_1.z.number().int().describe("The index of the reasoning content that was completed."),
|
|
18
|
+
"text": zod_1.z.string().describe("The final reasoning text that was emitted.")
|
|
19
|
+
}).describe("A streaming event that indicated reasoning text was completed.");
|
|
@@ -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.responseReasoningSummaryDeltaStreamingEventSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
/**
|
|
10
|
+
* @description A streaming event that indicated a reasoning summary was incrementally added.
|
|
11
|
+
*/
|
|
12
|
+
exports.responseReasoningSummaryDeltaStreamingEventSchema = zod_1.z.object({
|
|
13
|
+
"type": zod_1.z.enum(["response.reasoning_summary_text.delta"]).default("response.reasoning_summary_text.delta").describe("The type of the event, always `response.reasoning_summary.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 item that was updated."),
|
|
16
|
+
"output_index": zod_1.z.number().int().describe("The index of the output item that was updated."),
|
|
17
|
+
"summary_index": zod_1.z.number().int().describe("The index of the summary content that was updated."),
|
|
18
|
+
"delta": zod_1.z.string().describe("The summary text delta that was appended."),
|
|
19
|
+
"obfuscation": zod_1.z.optional(zod_1.z.string().describe("An obfuscation string that was added to pad the event payload."))
|
|
20
|
+
}).describe("A streaming event that indicated a reasoning summary was incrementally added.");
|
|
@@ -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.responseReasoningSummaryDoneStreamingEventSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
/**
|
|
10
|
+
* @description A streaming event that indicated a reasoning summary was completed.
|
|
11
|
+
*/
|
|
12
|
+
exports.responseReasoningSummaryDoneStreamingEventSchema = zod_1.z.object({
|
|
13
|
+
"type": zod_1.z.enum(["response.reasoning_summary_text.done"]).default("response.reasoning_summary_text.done").describe("The type of the event, always `response.reasoning_summary.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 item that was updated."),
|
|
16
|
+
"output_index": zod_1.z.number().int().describe("The index of the output item that was updated."),
|
|
17
|
+
"summary_index": zod_1.z.number().int().describe("The index of the summary content that was completed."),
|
|
18
|
+
"text": zod_1.z.string().describe("The final summary text that was emitted.")
|
|
19
|
+
}).describe("A streaming event that indicated a reasoning summary 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.responseReasoningSummaryPartAddedStreamingEventSchema = 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 reasoning summary part was added.
|
|
19
|
+
*/
|
|
20
|
+
exports.responseReasoningSummaryPartAddedStreamingEventSchema = zod_1.z.object({
|
|
21
|
+
"type": zod_1.z.enum(["response.reasoning_summary_part.added"]).default("response.reasoning_summary_part.added").describe("The type of the event, always `response.reasoning_summary_part.added`."),
|
|
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
|
+
"summary_index": zod_1.z.number().int().describe("The index of the summary 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 reasoning summary 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.responseReasoningSummaryPartDoneStreamingEventSchema = 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 reasoning summary part was completed.
|
|
19
|
+
*/
|
|
20
|
+
exports.responseReasoningSummaryPartDoneStreamingEventSchema = zod_1.z.object({
|
|
21
|
+
"type": zod_1.z.enum(["response.reasoning_summary_part.done"]).default("response.reasoning_summary_part.done").describe("The type of the event, always `response.reasoning_summary_part.done`."),
|
|
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
|
+
"summary_index": zod_1.z.number().int().describe("The index of the summary 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 reasoning summary part was completed.");
|
|
@@ -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.responseRefusalDeltaStreamingEventSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
/**
|
|
10
|
+
* @description A streaming event that indicated refusal text was incrementally added.
|
|
11
|
+
*/
|
|
12
|
+
exports.responseRefusalDeltaStreamingEventSchema = zod_1.z.object({
|
|
13
|
+
"type": zod_1.z.enum(["response.refusal.delta"]).default("response.refusal.delta").describe("The type of the event, always `response.refusal.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 item that was updated."),
|
|
16
|
+
"output_index": zod_1.z.number().int().describe("The index of the output item that was updated."),
|
|
17
|
+
"content_index": zod_1.z.number().int().describe("The index of the refusal content that was updated."),
|
|
18
|
+
"delta": zod_1.z.string().describe("The refusal text delta that was appended.")
|
|
19
|
+
}).describe("A streaming event that indicated refusal text was incrementally added.");
|
|
@@ -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.responseRefusalDoneStreamingEventSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
/**
|
|
10
|
+
* @description A streaming event that indicated refusal text was completed.
|
|
11
|
+
*/
|
|
12
|
+
exports.responseRefusalDoneStreamingEventSchema = zod_1.z.object({
|
|
13
|
+
"type": zod_1.z.enum(["response.refusal.done"]).default("response.refusal.done").describe("The type of the event, always `response.refusal.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 item that was updated."),
|
|
16
|
+
"output_index": zod_1.z.number().int().describe("The index of the output item that was updated."),
|
|
17
|
+
"content_index": zod_1.z.number().int().describe("The index of the refusal content that was completed."),
|
|
18
|
+
"refusal": zod_1.z.string().describe("The final refusal text that was emitted.")
|
|
19
|
+
}).describe("A streaming event that indicated refusal text was completed.");
|
|
@@ -0,0 +1,55 @@
|
|
|
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.responseResourceSchema = void 0;
|
|
8
|
+
const allowedToolChoiceSchema_ts_1 = require("./allowedToolChoiceSchema.ts");
|
|
9
|
+
const errorSchema_ts_1 = require("./errorSchema.ts");
|
|
10
|
+
const functionToolChoiceSchema_ts_1 = require("./functionToolChoiceSchema.ts");
|
|
11
|
+
const incompleteDetailsSchema_ts_1 = require("./incompleteDetailsSchema.ts");
|
|
12
|
+
const itemFieldSchema_ts_1 = require("./itemFieldSchema.ts");
|
|
13
|
+
const reasoningSchema_ts_1 = require("./reasoningSchema.ts");
|
|
14
|
+
const textFieldSchema_ts_1 = require("./textFieldSchema.ts");
|
|
15
|
+
const toolChoiceValueEnumSchema_ts_1 = require("./toolChoiceValueEnumSchema.ts");
|
|
16
|
+
const toolSchema_ts_1 = require("./toolSchema.ts");
|
|
17
|
+
const truncationEnumSchema_ts_1 = require("./truncationEnumSchema.ts");
|
|
18
|
+
const usageSchema_ts_1 = require("./usageSchema.ts");
|
|
19
|
+
const zod_1 = require("zod");
|
|
20
|
+
/**
|
|
21
|
+
* @description The complete response object that was returned by the Responses API.
|
|
22
|
+
*/
|
|
23
|
+
exports.responseResourceSchema = zod_1.z.object({
|
|
24
|
+
"id": zod_1.z.string().describe("The unique ID of the response that was created."),
|
|
25
|
+
"object": zod_1.z.enum(["response"]).default("response").describe("The object type, which was always `response`."),
|
|
26
|
+
"created_at": zod_1.z.number().int().describe("The Unix timestamp (in seconds) for when the response was created."),
|
|
27
|
+
"completed_at": zod_1.z.union([zod_1.z.number().int(), zod_1.z.null()]),
|
|
28
|
+
"status": zod_1.z.string().describe("The status that was set for the response."),
|
|
29
|
+
"incomplete_details": zod_1.z.union([zod_1.z.lazy(() => incompleteDetailsSchema_ts_1.incompleteDetailsSchema).and(zod_1.z.any()), zod_1.z.null()]),
|
|
30
|
+
"model": zod_1.z.string().describe("The model that generated this response."),
|
|
31
|
+
"previous_response_id": zod_1.z.union([zod_1.z.string(), zod_1.z.null()]),
|
|
32
|
+
"instructions": zod_1.z.union([zod_1.z.string(), zod_1.z.null()]),
|
|
33
|
+
"output": zod_1.z.array(zod_1.z.lazy(() => itemFieldSchema_ts_1.itemFieldSchema).describe("An item representing a message, tool call, tool output, reasoning, or other response element.")).describe("The output items that were generated by the model."),
|
|
34
|
+
"error": zod_1.z.union([zod_1.z.lazy(() => errorSchema_ts_1.errorSchema).and(zod_1.z.any()), zod_1.z.null()]),
|
|
35
|
+
"tools": zod_1.z.array(zod_1.z.lazy(() => toolSchema_ts_1.toolSchema).describe("A tool that can be used to generate a response.")).describe("The tools that were available to the model during response generation."),
|
|
36
|
+
"tool_choice": zod_1.z.union([zod_1.z.lazy(() => functionToolChoiceSchema_ts_1.functionToolChoiceSchema), zod_1.z.lazy(() => toolChoiceValueEnumSchema_ts_1.toolChoiceValueEnumSchema), zod_1.z.lazy(() => allowedToolChoiceSchema_ts_1.allowedToolChoiceSchema)]),
|
|
37
|
+
"truncation": zod_1.z.lazy(() => truncationEnumSchema_ts_1.truncationEnumSchema).and(zod_1.z.any()),
|
|
38
|
+
"parallel_tool_calls": zod_1.z.boolean().describe("Whether the model was allowed to call multiple tools in parallel."),
|
|
39
|
+
"text": zod_1.z.lazy(() => textFieldSchema_ts_1.textFieldSchema).and(zod_1.z.any()),
|
|
40
|
+
"top_p": zod_1.z.number().describe("The nucleus sampling parameter that was used for this response."),
|
|
41
|
+
"presence_penalty": zod_1.z.number().describe("The presence penalty that was used to penalize new tokens based on whether they appear in the text so far."),
|
|
42
|
+
"frequency_penalty": zod_1.z.number().describe("The frequency penalty that was used to penalize new tokens based on their frequency in the text so far."),
|
|
43
|
+
"top_logprobs": zod_1.z.number().int().describe("The number of most likely tokens that were returned at each position, along with their log probabilities."),
|
|
44
|
+
"temperature": zod_1.z.number().describe("The sampling temperature that was used for this response."),
|
|
45
|
+
"reasoning": zod_1.z.union([zod_1.z.lazy(() => reasoningSchema_ts_1.reasoningSchema).and(zod_1.z.any()), zod_1.z.null()]),
|
|
46
|
+
"usage": zod_1.z.union([zod_1.z.lazy(() => usageSchema_ts_1.usageSchema).and(zod_1.z.any()), zod_1.z.null()]),
|
|
47
|
+
"max_output_tokens": zod_1.z.union([zod_1.z.number().int(), zod_1.z.null()]),
|
|
48
|
+
"max_tool_calls": zod_1.z.union([zod_1.z.number().int(), zod_1.z.null()]),
|
|
49
|
+
"store": zod_1.z.boolean().describe("Whether this response was stored so it can be retrieved later."),
|
|
50
|
+
"background": zod_1.z.boolean().describe("Whether this request was run in the background."),
|
|
51
|
+
"service_tier": zod_1.z.string().describe("The service tier that was used for this response."),
|
|
52
|
+
"metadata": zod_1.z.any().describe("Developer-defined metadata that was associated with the response."),
|
|
53
|
+
"safety_identifier": zod_1.z.union([zod_1.z.string(), zod_1.z.null()]),
|
|
54
|
+
"prompt_cache_key": zod_1.z.union([zod_1.z.string(), zod_1.z.null()])
|
|
55
|
+
}).describe("The complete response object that was returned by the Responses API.");
|
|
@@ -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.responsesToolParamSchema = void 0;
|
|
8
|
+
const functionToolParamSchema_ts_1 = require("./functionToolParamSchema.ts");
|
|
9
|
+
const zod_1 = require("zod");
|
|
10
|
+
exports.responsesToolParamSchema = zod_1.z.lazy(() => functionToolParamSchema_ts_1.functionToolParamSchema).and(zod_1.z.object({
|
|
11
|
+
"type": zod_1.z.literal("function")
|
|
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.serviceTierEnumSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
exports.serviceTierEnumSchema = zod_1.z.enum(["auto", "default", "flex", "priority"]);
|
|
@@ -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.specificFunctionParamSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
exports.specificFunctionParamSchema = zod_1.z.object({
|
|
10
|
+
"type": zod_1.z.enum(["function"]).default("function").describe("The tool to call. Always `function`."),
|
|
11
|
+
"name": zod_1.z.string().describe("The name of the function tool to call.")
|
|
12
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
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.specificToolChoiceParamSchema = void 0;
|
|
8
|
+
const specificFunctionParamSchema_ts_1 = require("./specificFunctionParamSchema.ts");
|
|
9
|
+
const zod_1 = require("zod");
|
|
10
|
+
exports.specificToolChoiceParamSchema = zod_1.z.lazy(() => specificFunctionParamSchema_ts_1.specificFunctionParamSchema);
|
|
@@ -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.streamOptionsParamSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
/**
|
|
10
|
+
* @description Options that control streamed response behavior.
|
|
11
|
+
*/
|
|
12
|
+
exports.streamOptionsParamSchema = zod_1.z.object({
|
|
13
|
+
"include_obfuscation": zod_1.z.optional(zod_1.z.boolean().describe("Whether to obfuscate sensitive information in streamed output. Defaults to `true`."))
|
|
14
|
+
}).describe("Options that control streamed response behavior.");
|
|
@@ -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.summaryTextContentSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
/**
|
|
10
|
+
* @description A summary text from the model.
|
|
11
|
+
*/
|
|
12
|
+
exports.summaryTextContentSchema = zod_1.z.object({
|
|
13
|
+
"type": zod_1.z.enum(["summary_text"]).default("summary_text").describe("The type of the object. Always `summary_text`."),
|
|
14
|
+
"text": zod_1.z.string().describe("A summary of the reasoning output from the model so far.")
|
|
15
|
+
}).describe("A summary text from the model.");
|
|
@@ -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.systemMessageItemParamSchema = void 0;
|
|
8
|
+
const inputTextContentParamSchema_ts_1 = require("./inputTextContentParamSchema.ts");
|
|
9
|
+
const zod_1 = require("zod");
|
|
10
|
+
exports.systemMessageItemParamSchema = 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(["system"]).default("system").describe("The message role. Always `system`."),
|
|
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,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.textContentSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
/**
|
|
10
|
+
* @description A text content.
|
|
11
|
+
*/
|
|
12
|
+
exports.textContentSchema = zod_1.z.object({
|
|
13
|
+
"type": zod_1.z.enum(["text"]).default("text"),
|
|
14
|
+
"text": zod_1.z.string()
|
|
15
|
+
}).describe("A text content.");
|
|
@@ -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.textFieldSchema = void 0;
|
|
8
|
+
const jsonObjectResponseFormatSchema_ts_1 = require("./jsonObjectResponseFormatSchema.ts");
|
|
9
|
+
const jsonSchemaResponseFormatSchema_ts_1 = require("./jsonSchemaResponseFormatSchema.ts");
|
|
10
|
+
const textResponseFormatSchema_ts_1 = require("./textResponseFormatSchema.ts");
|
|
11
|
+
const verbosityEnumSchema_ts_1 = require("./verbosityEnumSchema.ts");
|
|
12
|
+
const zod_1 = require("zod");
|
|
13
|
+
exports.textFieldSchema = zod_1.z.object({
|
|
14
|
+
"format": zod_1.z.union([zod_1.z.lazy(() => textResponseFormatSchema_ts_1.textResponseFormatSchema), zod_1.z.lazy(() => jsonObjectResponseFormatSchema_ts_1.jsonObjectResponseFormatSchema), zod_1.z.lazy(() => jsonSchemaResponseFormatSchema_ts_1.jsonSchemaResponseFormatSchema)]),
|
|
15
|
+
"verbosity": zod_1.z.optional(zod_1.z.lazy(() => verbosityEnumSchema_ts_1.verbosityEnumSchema))
|
|
16
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
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.textFormatParamSchema = void 0;
|
|
8
|
+
const jsonSchemaResponseFormatParamSchema_ts_1 = require("./jsonSchemaResponseFormatParamSchema.ts");
|
|
9
|
+
const textResponseFormatSchema_ts_1 = require("./textResponseFormatSchema.ts");
|
|
10
|
+
const zod_1 = require("zod");
|
|
11
|
+
exports.textFormatParamSchema = zod_1.z.union([zod_1.z.lazy(() => textResponseFormatSchema_ts_1.textResponseFormatSchema), zod_1.z.lazy(() => jsonSchemaResponseFormatParamSchema_ts_1.jsonSchemaResponseFormatParamSchema)]);
|
|
@@ -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.textParamSchema = void 0;
|
|
8
|
+
const textFormatParamSchema_ts_1 = require("./textFormatParamSchema.ts");
|
|
9
|
+
const verbosityEnumSchema_ts_1 = require("./verbosityEnumSchema.ts");
|
|
10
|
+
const zod_1 = require("zod");
|
|
11
|
+
exports.textParamSchema = zod_1.z.object({
|
|
12
|
+
"format": zod_1.z.optional(zod_1.z.union([zod_1.z.lazy(() => textFormatParamSchema_ts_1.textFormatParamSchema), zod_1.z.null()]).describe("The format configuration for text output.")),
|
|
13
|
+
"verbosity": zod_1.z.optional(zod_1.z.lazy(() => verbosityEnumSchema_ts_1.verbosityEnumSchema).and(zod_1.z.any()))
|
|
14
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
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.textResponseFormatSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
exports.textResponseFormatSchema = zod_1.z.object({
|
|
10
|
+
"type": zod_1.z.enum(["text"]).default("text")
|
|
11
|
+
});
|
|
@@ -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.toolChoiceParamSchema = void 0;
|
|
8
|
+
const allowedToolsParamSchema_ts_1 = require("./allowedToolsParamSchema.ts");
|
|
9
|
+
const specificToolChoiceParamSchema_ts_1 = require("./specificToolChoiceParamSchema.ts");
|
|
10
|
+
const toolChoiceValueEnumSchema_ts_1 = require("./toolChoiceValueEnumSchema.ts");
|
|
11
|
+
const zod_1 = require("zod");
|
|
12
|
+
/**
|
|
13
|
+
* @description Controls which tool the model should use, if any.
|
|
14
|
+
*/
|
|
15
|
+
exports.toolChoiceParamSchema = zod_1.z.union([zod_1.z.lazy(() => specificToolChoiceParamSchema_ts_1.specificToolChoiceParamSchema), zod_1.z.lazy(() => toolChoiceValueEnumSchema_ts_1.toolChoiceValueEnumSchema), zod_1.z.lazy(() => allowedToolsParamSchema_ts_1.allowedToolsParamSchema)]).describe("Controls which tool the model should use, if any.");
|
|
@@ -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.toolChoiceValueEnumSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
exports.toolChoiceValueEnumSchema = zod_1.z.enum(["none", "auto", "required"]);
|
|
@@ -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.toolSchema = void 0;
|
|
8
|
+
const functionToolSchema_ts_1 = require("./functionToolSchema.ts");
|
|
9
|
+
const zod_1 = require("zod");
|
|
10
|
+
/**
|
|
11
|
+
* @description A tool that can be used to generate a response.
|
|
12
|
+
*/
|
|
13
|
+
exports.toolSchema = zod_1.z.lazy(() => functionToolSchema_ts_1.functionToolSchema).and(zod_1.z.object({
|
|
14
|
+
"type": zod_1.z.literal("function")
|
|
15
|
+
})).describe("A tool that can be used to generate a response.");
|
|
@@ -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.topLogProbSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
/**
|
|
10
|
+
* @description The top log probability of a token.
|
|
11
|
+
*/
|
|
12
|
+
exports.topLogProbSchema = zod_1.z.object({
|
|
13
|
+
"token": zod_1.z.string(),
|
|
14
|
+
"logprob": zod_1.z.number(),
|
|
15
|
+
"bytes": zod_1.z.array(zod_1.z.number().int())
|
|
16
|
+
}).describe("The top log probability of a token.");
|
|
@@ -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.truncationEnumSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
exports.truncationEnumSchema = zod_1.z.enum(["auto", "disabled"]);
|
|
@@ -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.urlCitationBodySchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
/**
|
|
10
|
+
* @description A citation for a web resource used to generate a model response.
|
|
11
|
+
*/
|
|
12
|
+
exports.urlCitationBodySchema = zod_1.z.object({
|
|
13
|
+
"type": zod_1.z.enum(["url_citation"]).default("url_citation").describe("The type of the URL citation. Always `url_citation`."),
|
|
14
|
+
"url": zod_1.z.string().describe("The URL of the web resource."),
|
|
15
|
+
"start_index": zod_1.z.number().int().describe("The index of the first character of the URL citation in the message."),
|
|
16
|
+
"end_index": zod_1.z.number().int().describe("The index of the last character of the URL citation in the message."),
|
|
17
|
+
"title": zod_1.z.string().describe("The title of the web resource.")
|
|
18
|
+
}).describe("A citation for a web resource used to generate a model response.");
|
|
@@ -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.urlCitationParamSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
exports.urlCitationParamSchema = zod_1.z.object({
|
|
10
|
+
"type": zod_1.z.enum(["url_citation"]).default("url_citation").describe("The citation type. Always `url_citation`."),
|
|
11
|
+
"start_index": zod_1.z.number().int().min(0).describe("The index of the first character of the citation in the message."),
|
|
12
|
+
"end_index": zod_1.z.number().int().min(0).describe("The index of the last character of the citation in the message."),
|
|
13
|
+
"url": zod_1.z.string().describe("The URL of the cited resource."),
|
|
14
|
+
"title": zod_1.z.string().describe("The title of the cited resource.")
|
|
15
|
+
});
|