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
package/dist/index.js
ADDED
|
@@ -0,0 +1,1688 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/gen/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
allowedToolChoiceSchema: () => allowedToolChoiceSchema,
|
|
24
|
+
allowedToolChoiceTypeEnum: () => allowedToolChoiceTypeEnum,
|
|
25
|
+
allowedToolsParamSchema: () => allowedToolsParamSchema,
|
|
26
|
+
allowedToolsParamTypeEnum: () => allowedToolsParamTypeEnum,
|
|
27
|
+
annotationSchema: () => annotationSchema,
|
|
28
|
+
assistantMessageItemParamRoleEnum: () => assistantMessageItemParamRoleEnum,
|
|
29
|
+
assistantMessageItemParamSchema: () => assistantMessageItemParamSchema,
|
|
30
|
+
assistantMessageItemParamTypeEnum: () => assistantMessageItemParamTypeEnum,
|
|
31
|
+
createResponseBodySchema: () => createResponseBodySchema,
|
|
32
|
+
createresponse200Schema: () => createresponse200Schema,
|
|
33
|
+
createresponseMutationRequestSchema: () => createresponseMutationRequestSchema,
|
|
34
|
+
createresponseMutationResponseSchema: () => createresponseMutationResponseSchema,
|
|
35
|
+
detailEnumEnum: () => detailEnumEnum,
|
|
36
|
+
detailEnumSchema: () => detailEnumSchema,
|
|
37
|
+
developerMessageItemParamRoleEnum: () => developerMessageItemParamRoleEnum,
|
|
38
|
+
developerMessageItemParamSchema: () => developerMessageItemParamSchema,
|
|
39
|
+
developerMessageItemParamTypeEnum: () => developerMessageItemParamTypeEnum,
|
|
40
|
+
emptyModelParamSchema: () => emptyModelParamSchema,
|
|
41
|
+
errorPayloadSchema: () => errorPayloadSchema,
|
|
42
|
+
errorSchema: () => errorSchema,
|
|
43
|
+
errorStreamingEventSchema: () => errorStreamingEventSchema,
|
|
44
|
+
errorStreamingEventTypeEnum: () => errorStreamingEventTypeEnum,
|
|
45
|
+
functionCallItemParamSchema: () => functionCallItemParamSchema,
|
|
46
|
+
functionCallItemParamTypeEnum: () => functionCallItemParamTypeEnum,
|
|
47
|
+
functionCallItemStatusEnum: () => functionCallItemStatusEnum,
|
|
48
|
+
functionCallItemStatusSchema: () => functionCallItemStatusSchema,
|
|
49
|
+
functionCallOutputItemParamSchema: () => functionCallOutputItemParamSchema,
|
|
50
|
+
functionCallOutputItemParamTypeEnum: () => functionCallOutputItemParamTypeEnum,
|
|
51
|
+
functionCallOutputSchema: () => functionCallOutputSchema,
|
|
52
|
+
functionCallOutputStatusEnumEnum: () => functionCallOutputStatusEnumEnum,
|
|
53
|
+
functionCallOutputStatusEnumSchema: () => functionCallOutputStatusEnumSchema,
|
|
54
|
+
functionCallOutputTypeEnum: () => functionCallOutputTypeEnum,
|
|
55
|
+
functionCallSchema: () => functionCallSchema,
|
|
56
|
+
functionCallStatusEnum: () => functionCallStatusEnum,
|
|
57
|
+
functionCallStatusSchema: () => functionCallStatusSchema,
|
|
58
|
+
functionCallTypeEnum: () => functionCallTypeEnum,
|
|
59
|
+
functionToolChoiceSchema: () => functionToolChoiceSchema,
|
|
60
|
+
functionToolChoiceTypeEnum: () => functionToolChoiceTypeEnum,
|
|
61
|
+
functionToolParamSchema: () => functionToolParamSchema,
|
|
62
|
+
functionToolParamTypeEnum: () => functionToolParamTypeEnum,
|
|
63
|
+
functionToolSchema: () => functionToolSchema,
|
|
64
|
+
functionToolTypeEnum: () => functionToolTypeEnum,
|
|
65
|
+
imageDetailEnum: () => imageDetailEnum,
|
|
66
|
+
imageDetailSchema: () => imageDetailSchema,
|
|
67
|
+
includeEnumEnum: () => includeEnumEnum,
|
|
68
|
+
includeEnumSchema: () => includeEnumSchema,
|
|
69
|
+
incompleteDetailsSchema: () => incompleteDetailsSchema,
|
|
70
|
+
inputFileContentParamSchema: () => inputFileContentParamSchema,
|
|
71
|
+
inputFileContentParamTypeEnum: () => inputFileContentParamTypeEnum,
|
|
72
|
+
inputFileContentSchema: () => inputFileContentSchema,
|
|
73
|
+
inputFileContentTypeEnum: () => inputFileContentTypeEnum,
|
|
74
|
+
inputImageContentParamAutoParamSchema: () => inputImageContentParamAutoParamSchema,
|
|
75
|
+
inputImageContentParamAutoParamTypeEnum: () => inputImageContentParamAutoParamTypeEnum,
|
|
76
|
+
inputImageContentSchema: () => inputImageContentSchema,
|
|
77
|
+
inputImageContentTypeEnum: () => inputImageContentTypeEnum,
|
|
78
|
+
inputTextContentParamSchema: () => inputTextContentParamSchema,
|
|
79
|
+
inputTextContentParamTypeEnum: () => inputTextContentParamTypeEnum,
|
|
80
|
+
inputTextContentSchema: () => inputTextContentSchema,
|
|
81
|
+
inputTextContentTypeEnum: () => inputTextContentTypeEnum,
|
|
82
|
+
inputTokensDetailsSchema: () => inputTokensDetailsSchema,
|
|
83
|
+
inputVideoContentSchema: () => inputVideoContentSchema,
|
|
84
|
+
inputVideoContentTypeEnum: () => inputVideoContentTypeEnum,
|
|
85
|
+
itemFieldSchema: () => itemFieldSchema,
|
|
86
|
+
itemParamSchema: () => itemParamSchema,
|
|
87
|
+
itemReferenceParamSchema: () => itemReferenceParamSchema,
|
|
88
|
+
itemReferenceParamTypeEnum: () => itemReferenceParamTypeEnum,
|
|
89
|
+
jsonObjectResponseFormatSchema: () => jsonObjectResponseFormatSchema,
|
|
90
|
+
jsonObjectResponseFormatTypeEnum: () => jsonObjectResponseFormatTypeEnum,
|
|
91
|
+
jsonSchemaResponseFormatParamSchema: () => jsonSchemaResponseFormatParamSchema,
|
|
92
|
+
jsonSchemaResponseFormatParamTypeEnum: () => jsonSchemaResponseFormatParamTypeEnum,
|
|
93
|
+
jsonSchemaResponseFormatSchema: () => jsonSchemaResponseFormatSchema,
|
|
94
|
+
jsonSchemaResponseFormatTypeEnum: () => jsonSchemaResponseFormatTypeEnum,
|
|
95
|
+
logProbSchema: () => logProbSchema,
|
|
96
|
+
messageRoleEnum: () => messageRoleEnum,
|
|
97
|
+
messageRoleSchema: () => messageRoleSchema,
|
|
98
|
+
messageSchema: () => messageSchema,
|
|
99
|
+
messageStatusEnum: () => messageStatusEnum,
|
|
100
|
+
messageStatusSchema: () => messageStatusSchema,
|
|
101
|
+
messageTypeEnum: () => messageTypeEnum,
|
|
102
|
+
metadataParamSchema: () => metadataParamSchema,
|
|
103
|
+
outputTextContentParamSchema: () => outputTextContentParamSchema,
|
|
104
|
+
outputTextContentParamTypeEnum: () => outputTextContentParamTypeEnum,
|
|
105
|
+
outputTextContentSchema: () => outputTextContentSchema,
|
|
106
|
+
outputTextContentTypeEnum: () => outputTextContentTypeEnum,
|
|
107
|
+
outputTokensDetailsSchema: () => outputTokensDetailsSchema,
|
|
108
|
+
reasoningBodySchema: () => reasoningBodySchema,
|
|
109
|
+
reasoningBodyTypeEnum: () => reasoningBodyTypeEnum,
|
|
110
|
+
reasoningEffortEnumEnum: () => reasoningEffortEnumEnum,
|
|
111
|
+
reasoningEffortEnumSchema: () => reasoningEffortEnumSchema,
|
|
112
|
+
reasoningItemParamSchema: () => reasoningItemParamSchema,
|
|
113
|
+
reasoningItemParamTypeEnum: () => reasoningItemParamTypeEnum,
|
|
114
|
+
reasoningParamSchema: () => reasoningParamSchema,
|
|
115
|
+
reasoningSchema: () => reasoningSchema,
|
|
116
|
+
reasoningSummaryContentParamSchema: () => reasoningSummaryContentParamSchema,
|
|
117
|
+
reasoningSummaryContentParamTypeEnum: () => reasoningSummaryContentParamTypeEnum,
|
|
118
|
+
reasoningSummaryEnumEnum: () => reasoningSummaryEnumEnum,
|
|
119
|
+
reasoningSummaryEnumSchema: () => reasoningSummaryEnumSchema,
|
|
120
|
+
reasoningTextContentSchema: () => reasoningTextContentSchema,
|
|
121
|
+
reasoningTextContentTypeEnum: () => reasoningTextContentTypeEnum,
|
|
122
|
+
refusalContentParamSchema: () => refusalContentParamSchema,
|
|
123
|
+
refusalContentParamTypeEnum: () => refusalContentParamTypeEnum,
|
|
124
|
+
refusalContentSchema: () => refusalContentSchema,
|
|
125
|
+
refusalContentTypeEnum: () => refusalContentTypeEnum,
|
|
126
|
+
responseCompletedStreamingEventSchema: () => responseCompletedStreamingEventSchema,
|
|
127
|
+
responseCompletedStreamingEventTypeEnum: () => responseCompletedStreamingEventTypeEnum,
|
|
128
|
+
responseContentPartAddedStreamingEventSchema: () => responseContentPartAddedStreamingEventSchema,
|
|
129
|
+
responseContentPartAddedStreamingEventTypeEnum: () => responseContentPartAddedStreamingEventTypeEnum,
|
|
130
|
+
responseContentPartDoneStreamingEventSchema: () => responseContentPartDoneStreamingEventSchema,
|
|
131
|
+
responseContentPartDoneStreamingEventTypeEnum: () => responseContentPartDoneStreamingEventTypeEnum,
|
|
132
|
+
responseCreatedStreamingEventSchema: () => responseCreatedStreamingEventSchema,
|
|
133
|
+
responseCreatedStreamingEventTypeEnum: () => responseCreatedStreamingEventTypeEnum,
|
|
134
|
+
responseFailedStreamingEventSchema: () => responseFailedStreamingEventSchema,
|
|
135
|
+
responseFailedStreamingEventTypeEnum: () => responseFailedStreamingEventTypeEnum,
|
|
136
|
+
responseFunctionCallArgumentsDeltaStreamingEventSchema: () => responseFunctionCallArgumentsDeltaStreamingEventSchema,
|
|
137
|
+
responseFunctionCallArgumentsDeltaStreamingEventTypeEnum: () => responseFunctionCallArgumentsDeltaStreamingEventTypeEnum,
|
|
138
|
+
responseFunctionCallArgumentsDoneStreamingEventSchema: () => responseFunctionCallArgumentsDoneStreamingEventSchema,
|
|
139
|
+
responseFunctionCallArgumentsDoneStreamingEventTypeEnum: () => responseFunctionCallArgumentsDoneStreamingEventTypeEnum,
|
|
140
|
+
responseInProgressStreamingEventSchema: () => responseInProgressStreamingEventSchema,
|
|
141
|
+
responseInProgressStreamingEventTypeEnum: () => responseInProgressStreamingEventTypeEnum,
|
|
142
|
+
responseIncompleteStreamingEventSchema: () => responseIncompleteStreamingEventSchema,
|
|
143
|
+
responseIncompleteStreamingEventTypeEnum: () => responseIncompleteStreamingEventTypeEnum,
|
|
144
|
+
responseOutputItemAddedStreamingEventSchema: () => responseOutputItemAddedStreamingEventSchema,
|
|
145
|
+
responseOutputItemAddedStreamingEventTypeEnum: () => responseOutputItemAddedStreamingEventTypeEnum,
|
|
146
|
+
responseOutputItemDoneStreamingEventSchema: () => responseOutputItemDoneStreamingEventSchema,
|
|
147
|
+
responseOutputItemDoneStreamingEventTypeEnum: () => responseOutputItemDoneStreamingEventTypeEnum,
|
|
148
|
+
responseOutputTextAnnotationAddedStreamingEventSchema: () => responseOutputTextAnnotationAddedStreamingEventSchema,
|
|
149
|
+
responseOutputTextAnnotationAddedStreamingEventTypeEnum: () => responseOutputTextAnnotationAddedStreamingEventTypeEnum,
|
|
150
|
+
responseOutputTextDeltaStreamingEventSchema: () => responseOutputTextDeltaStreamingEventSchema,
|
|
151
|
+
responseOutputTextDeltaStreamingEventTypeEnum: () => responseOutputTextDeltaStreamingEventTypeEnum,
|
|
152
|
+
responseOutputTextDoneStreamingEventSchema: () => responseOutputTextDoneStreamingEventSchema,
|
|
153
|
+
responseOutputTextDoneStreamingEventTypeEnum: () => responseOutputTextDoneStreamingEventTypeEnum,
|
|
154
|
+
responseQueuedStreamingEventSchema: () => responseQueuedStreamingEventSchema,
|
|
155
|
+
responseQueuedStreamingEventTypeEnum: () => responseQueuedStreamingEventTypeEnum,
|
|
156
|
+
responseReasoningDeltaStreamingEventSchema: () => responseReasoningDeltaStreamingEventSchema,
|
|
157
|
+
responseReasoningDeltaStreamingEventTypeEnum: () => responseReasoningDeltaStreamingEventTypeEnum,
|
|
158
|
+
responseReasoningDoneStreamingEventSchema: () => responseReasoningDoneStreamingEventSchema,
|
|
159
|
+
responseReasoningDoneStreamingEventTypeEnum: () => responseReasoningDoneStreamingEventTypeEnum,
|
|
160
|
+
responseReasoningSummaryDeltaStreamingEventSchema: () => responseReasoningSummaryDeltaStreamingEventSchema,
|
|
161
|
+
responseReasoningSummaryDeltaStreamingEventTypeEnum: () => responseReasoningSummaryDeltaStreamingEventTypeEnum,
|
|
162
|
+
responseReasoningSummaryDoneStreamingEventSchema: () => responseReasoningSummaryDoneStreamingEventSchema,
|
|
163
|
+
responseReasoningSummaryDoneStreamingEventTypeEnum: () => responseReasoningSummaryDoneStreamingEventTypeEnum,
|
|
164
|
+
responseReasoningSummaryPartAddedStreamingEventSchema: () => responseReasoningSummaryPartAddedStreamingEventSchema,
|
|
165
|
+
responseReasoningSummaryPartAddedStreamingEventTypeEnum: () => responseReasoningSummaryPartAddedStreamingEventTypeEnum,
|
|
166
|
+
responseReasoningSummaryPartDoneStreamingEventSchema: () => responseReasoningSummaryPartDoneStreamingEventSchema,
|
|
167
|
+
responseReasoningSummaryPartDoneStreamingEventTypeEnum: () => responseReasoningSummaryPartDoneStreamingEventTypeEnum,
|
|
168
|
+
responseRefusalDeltaStreamingEventSchema: () => responseRefusalDeltaStreamingEventSchema,
|
|
169
|
+
responseRefusalDeltaStreamingEventTypeEnum: () => responseRefusalDeltaStreamingEventTypeEnum,
|
|
170
|
+
responseRefusalDoneStreamingEventSchema: () => responseRefusalDoneStreamingEventSchema,
|
|
171
|
+
responseRefusalDoneStreamingEventTypeEnum: () => responseRefusalDoneStreamingEventTypeEnum,
|
|
172
|
+
responseResourceObjectEnum: () => responseResourceObjectEnum,
|
|
173
|
+
responseResourceSchema: () => responseResourceSchema,
|
|
174
|
+
responsesToolParamSchema: () => responsesToolParamSchema,
|
|
175
|
+
serviceTierEnumEnum: () => serviceTierEnumEnum,
|
|
176
|
+
serviceTierEnumSchema: () => serviceTierEnumSchema,
|
|
177
|
+
specificFunctionParamSchema: () => specificFunctionParamSchema,
|
|
178
|
+
specificFunctionParamTypeEnum: () => specificFunctionParamTypeEnum,
|
|
179
|
+
specificToolChoiceParamSchema: () => specificToolChoiceParamSchema,
|
|
180
|
+
streamOptionsParamSchema: () => streamOptionsParamSchema,
|
|
181
|
+
summaryTextContentSchema: () => summaryTextContentSchema,
|
|
182
|
+
summaryTextContentTypeEnum: () => summaryTextContentTypeEnum,
|
|
183
|
+
systemMessageItemParamRoleEnum: () => systemMessageItemParamRoleEnum,
|
|
184
|
+
systemMessageItemParamSchema: () => systemMessageItemParamSchema,
|
|
185
|
+
systemMessageItemParamTypeEnum: () => systemMessageItemParamTypeEnum,
|
|
186
|
+
textContentSchema: () => textContentSchema,
|
|
187
|
+
textContentTypeEnum: () => textContentTypeEnum,
|
|
188
|
+
textFieldSchema: () => textFieldSchema,
|
|
189
|
+
textFormatParamSchema: () => textFormatParamSchema,
|
|
190
|
+
textParamSchema: () => textParamSchema,
|
|
191
|
+
textResponseFormatSchema: () => textResponseFormatSchema,
|
|
192
|
+
textResponseFormatTypeEnum: () => textResponseFormatTypeEnum,
|
|
193
|
+
toolChoiceParamSchema: () => toolChoiceParamSchema,
|
|
194
|
+
toolChoiceValueEnumEnum: () => toolChoiceValueEnumEnum,
|
|
195
|
+
toolChoiceValueEnumSchema: () => toolChoiceValueEnumSchema,
|
|
196
|
+
toolSchema: () => toolSchema,
|
|
197
|
+
topLogProbSchema: () => topLogProbSchema,
|
|
198
|
+
truncationEnumEnum: () => truncationEnumEnum,
|
|
199
|
+
truncationEnumSchema: () => truncationEnumSchema,
|
|
200
|
+
urlCitationBodySchema: () => urlCitationBodySchema,
|
|
201
|
+
urlCitationBodyTypeEnum: () => urlCitationBodyTypeEnum,
|
|
202
|
+
urlCitationParamSchema: () => urlCitationParamSchema,
|
|
203
|
+
urlCitationParamTypeEnum: () => urlCitationParamTypeEnum,
|
|
204
|
+
usageSchema: () => usageSchema,
|
|
205
|
+
userMessageItemParamRoleEnum: () => userMessageItemParamRoleEnum,
|
|
206
|
+
userMessageItemParamSchema: () => userMessageItemParamSchema,
|
|
207
|
+
userMessageItemParamTypeEnum: () => userMessageItemParamTypeEnum,
|
|
208
|
+
verbosityEnumEnum: () => verbosityEnumEnum,
|
|
209
|
+
verbosityEnumSchema: () => verbosityEnumSchema
|
|
210
|
+
});
|
|
211
|
+
module.exports = __toCommonJS(index_exports);
|
|
212
|
+
|
|
213
|
+
// src/gen/types.ts
|
|
214
|
+
var itemReferenceParamTypeEnum = {
|
|
215
|
+
item_reference: "item_reference"
|
|
216
|
+
};
|
|
217
|
+
var reasoningSummaryContentParamTypeEnum = {
|
|
218
|
+
summary_text: "summary_text"
|
|
219
|
+
};
|
|
220
|
+
var reasoningItemParamTypeEnum = {
|
|
221
|
+
reasoning: "reasoning"
|
|
222
|
+
};
|
|
223
|
+
var inputTextContentParamTypeEnum = {
|
|
224
|
+
input_text: "input_text"
|
|
225
|
+
};
|
|
226
|
+
var detailEnumEnum = {
|
|
227
|
+
low: "low",
|
|
228
|
+
high: "high",
|
|
229
|
+
auto: "auto"
|
|
230
|
+
};
|
|
231
|
+
var imageDetailEnum = {
|
|
232
|
+
low: "low",
|
|
233
|
+
high: "high",
|
|
234
|
+
auto: "auto"
|
|
235
|
+
};
|
|
236
|
+
var inputImageContentParamAutoParamTypeEnum = {
|
|
237
|
+
input_image: "input_image"
|
|
238
|
+
};
|
|
239
|
+
var inputFileContentParamTypeEnum = {
|
|
240
|
+
input_file: "input_file"
|
|
241
|
+
};
|
|
242
|
+
var userMessageItemParamTypeEnum = {
|
|
243
|
+
message: "message"
|
|
244
|
+
};
|
|
245
|
+
var userMessageItemParamRoleEnum = {
|
|
246
|
+
user: "user"
|
|
247
|
+
};
|
|
248
|
+
var systemMessageItemParamTypeEnum = {
|
|
249
|
+
message: "message"
|
|
250
|
+
};
|
|
251
|
+
var systemMessageItemParamRoleEnum = {
|
|
252
|
+
system: "system"
|
|
253
|
+
};
|
|
254
|
+
var developerMessageItemParamTypeEnum = {
|
|
255
|
+
message: "message"
|
|
256
|
+
};
|
|
257
|
+
var developerMessageItemParamRoleEnum = {
|
|
258
|
+
developer: "developer"
|
|
259
|
+
};
|
|
260
|
+
var urlCitationParamTypeEnum = {
|
|
261
|
+
url_citation: "url_citation"
|
|
262
|
+
};
|
|
263
|
+
var outputTextContentParamTypeEnum = {
|
|
264
|
+
output_text: "output_text"
|
|
265
|
+
};
|
|
266
|
+
var refusalContentParamTypeEnum = {
|
|
267
|
+
refusal: "refusal"
|
|
268
|
+
};
|
|
269
|
+
var assistantMessageItemParamTypeEnum = {
|
|
270
|
+
message: "message"
|
|
271
|
+
};
|
|
272
|
+
var assistantMessageItemParamRoleEnum = {
|
|
273
|
+
assistant: "assistant"
|
|
274
|
+
};
|
|
275
|
+
var functionCallItemStatusEnum = {
|
|
276
|
+
in_progress: "in_progress",
|
|
277
|
+
completed: "completed",
|
|
278
|
+
incomplete: "incomplete"
|
|
279
|
+
};
|
|
280
|
+
var functionCallStatusEnum = {
|
|
281
|
+
in_progress: "in_progress",
|
|
282
|
+
completed: "completed",
|
|
283
|
+
incomplete: "incomplete"
|
|
284
|
+
};
|
|
285
|
+
var functionCallItemParamTypeEnum = {
|
|
286
|
+
function_call: "function_call"
|
|
287
|
+
};
|
|
288
|
+
var inputVideoContentTypeEnum = {
|
|
289
|
+
input_video: "input_video"
|
|
290
|
+
};
|
|
291
|
+
var functionCallOutputItemParamTypeEnum = {
|
|
292
|
+
function_call_output: "function_call_output"
|
|
293
|
+
};
|
|
294
|
+
var includeEnumEnum = {
|
|
295
|
+
"reasoning.encrypted_content": "reasoning.encrypted_content",
|
|
296
|
+
"message.output_text.logprobs": "message.output_text.logprobs"
|
|
297
|
+
};
|
|
298
|
+
var functionToolParamTypeEnum = {
|
|
299
|
+
function: "function"
|
|
300
|
+
};
|
|
301
|
+
var specificFunctionParamTypeEnum = {
|
|
302
|
+
function: "function"
|
|
303
|
+
};
|
|
304
|
+
var toolChoiceValueEnumEnum = {
|
|
305
|
+
none: "none",
|
|
306
|
+
auto: "auto",
|
|
307
|
+
required: "required"
|
|
308
|
+
};
|
|
309
|
+
var allowedToolsParamTypeEnum = {
|
|
310
|
+
allowed_tools: "allowed_tools"
|
|
311
|
+
};
|
|
312
|
+
var verbosityEnumEnum = {
|
|
313
|
+
low: "low",
|
|
314
|
+
medium: "medium",
|
|
315
|
+
high: "high"
|
|
316
|
+
};
|
|
317
|
+
var textResponseFormatTypeEnum = {
|
|
318
|
+
text: "text"
|
|
319
|
+
};
|
|
320
|
+
var jsonSchemaResponseFormatParamTypeEnum = {
|
|
321
|
+
json_schema: "json_schema"
|
|
322
|
+
};
|
|
323
|
+
var reasoningEffortEnumEnum = {
|
|
324
|
+
none: "none",
|
|
325
|
+
low: "low",
|
|
326
|
+
medium: "medium",
|
|
327
|
+
high: "high",
|
|
328
|
+
xhigh: "xhigh"
|
|
329
|
+
};
|
|
330
|
+
var reasoningSummaryEnumEnum = {
|
|
331
|
+
concise: "concise",
|
|
332
|
+
detailed: "detailed",
|
|
333
|
+
auto: "auto"
|
|
334
|
+
};
|
|
335
|
+
var truncationEnumEnum = {
|
|
336
|
+
auto: "auto",
|
|
337
|
+
disabled: "disabled"
|
|
338
|
+
};
|
|
339
|
+
var serviceTierEnumEnum = {
|
|
340
|
+
auto: "auto",
|
|
341
|
+
default: "default",
|
|
342
|
+
flex: "flex",
|
|
343
|
+
priority: "priority"
|
|
344
|
+
};
|
|
345
|
+
var messageRoleEnum = {
|
|
346
|
+
user: "user",
|
|
347
|
+
assistant: "assistant",
|
|
348
|
+
system: "system",
|
|
349
|
+
developer: "developer"
|
|
350
|
+
};
|
|
351
|
+
var inputTextContentTypeEnum = {
|
|
352
|
+
input_text: "input_text"
|
|
353
|
+
};
|
|
354
|
+
var urlCitationBodyTypeEnum = {
|
|
355
|
+
url_citation: "url_citation"
|
|
356
|
+
};
|
|
357
|
+
var outputTextContentTypeEnum = {
|
|
358
|
+
output_text: "output_text"
|
|
359
|
+
};
|
|
360
|
+
var textContentTypeEnum = {
|
|
361
|
+
text: "text"
|
|
362
|
+
};
|
|
363
|
+
var summaryTextContentTypeEnum = {
|
|
364
|
+
summary_text: "summary_text"
|
|
365
|
+
};
|
|
366
|
+
var reasoningTextContentTypeEnum = {
|
|
367
|
+
reasoning_text: "reasoning_text"
|
|
368
|
+
};
|
|
369
|
+
var refusalContentTypeEnum = {
|
|
370
|
+
refusal: "refusal"
|
|
371
|
+
};
|
|
372
|
+
var inputImageContentTypeEnum = {
|
|
373
|
+
input_image: "input_image"
|
|
374
|
+
};
|
|
375
|
+
var inputFileContentTypeEnum = {
|
|
376
|
+
input_file: "input_file"
|
|
377
|
+
};
|
|
378
|
+
var messageStatusEnum = {
|
|
379
|
+
in_progress: "in_progress",
|
|
380
|
+
completed: "completed",
|
|
381
|
+
incomplete: "incomplete"
|
|
382
|
+
};
|
|
383
|
+
var messageTypeEnum = {
|
|
384
|
+
message: "message"
|
|
385
|
+
};
|
|
386
|
+
var functionCallTypeEnum = {
|
|
387
|
+
function_call: "function_call"
|
|
388
|
+
};
|
|
389
|
+
var functionCallOutputStatusEnumEnum = {
|
|
390
|
+
in_progress: "in_progress",
|
|
391
|
+
completed: "completed",
|
|
392
|
+
incomplete: "incomplete"
|
|
393
|
+
};
|
|
394
|
+
var functionCallOutputTypeEnum = {
|
|
395
|
+
function_call_output: "function_call_output"
|
|
396
|
+
};
|
|
397
|
+
var reasoningBodyTypeEnum = {
|
|
398
|
+
reasoning: "reasoning"
|
|
399
|
+
};
|
|
400
|
+
var functionToolTypeEnum = {
|
|
401
|
+
function: "function"
|
|
402
|
+
};
|
|
403
|
+
var functionToolChoiceTypeEnum = {
|
|
404
|
+
function: "function"
|
|
405
|
+
};
|
|
406
|
+
var allowedToolChoiceTypeEnum = {
|
|
407
|
+
allowed_tools: "allowed_tools"
|
|
408
|
+
};
|
|
409
|
+
var jsonObjectResponseFormatTypeEnum = {
|
|
410
|
+
json_object: "json_object"
|
|
411
|
+
};
|
|
412
|
+
var jsonSchemaResponseFormatTypeEnum = {
|
|
413
|
+
json_schema: "json_schema"
|
|
414
|
+
};
|
|
415
|
+
var responseResourceObjectEnum = {
|
|
416
|
+
response: "response"
|
|
417
|
+
};
|
|
418
|
+
var responseCreatedStreamingEventTypeEnum = {
|
|
419
|
+
"response.created": "response.created"
|
|
420
|
+
};
|
|
421
|
+
var responseQueuedStreamingEventTypeEnum = {
|
|
422
|
+
"response.queued": "response.queued"
|
|
423
|
+
};
|
|
424
|
+
var responseInProgressStreamingEventTypeEnum = {
|
|
425
|
+
"response.in_progress": "response.in_progress"
|
|
426
|
+
};
|
|
427
|
+
var responseCompletedStreamingEventTypeEnum = {
|
|
428
|
+
"response.completed": "response.completed"
|
|
429
|
+
};
|
|
430
|
+
var responseFailedStreamingEventTypeEnum = {
|
|
431
|
+
"response.failed": "response.failed"
|
|
432
|
+
};
|
|
433
|
+
var responseIncompleteStreamingEventTypeEnum = {
|
|
434
|
+
"response.incomplete": "response.incomplete"
|
|
435
|
+
};
|
|
436
|
+
var responseOutputItemAddedStreamingEventTypeEnum = {
|
|
437
|
+
"response.output_item.added": "response.output_item.added"
|
|
438
|
+
};
|
|
439
|
+
var responseOutputItemDoneStreamingEventTypeEnum = {
|
|
440
|
+
"response.output_item.done": "response.output_item.done"
|
|
441
|
+
};
|
|
442
|
+
var responseReasoningSummaryPartAddedStreamingEventTypeEnum = {
|
|
443
|
+
"response.reasoning_summary_part.added": "response.reasoning_summary_part.added"
|
|
444
|
+
};
|
|
445
|
+
var responseReasoningSummaryPartDoneStreamingEventTypeEnum = {
|
|
446
|
+
"response.reasoning_summary_part.done": "response.reasoning_summary_part.done"
|
|
447
|
+
};
|
|
448
|
+
var responseContentPartAddedStreamingEventTypeEnum = {
|
|
449
|
+
"response.content_part.added": "response.content_part.added"
|
|
450
|
+
};
|
|
451
|
+
var responseContentPartDoneStreamingEventTypeEnum = {
|
|
452
|
+
"response.content_part.done": "response.content_part.done"
|
|
453
|
+
};
|
|
454
|
+
var responseOutputTextDeltaStreamingEventTypeEnum = {
|
|
455
|
+
"response.output_text.delta": "response.output_text.delta"
|
|
456
|
+
};
|
|
457
|
+
var responseOutputTextDoneStreamingEventTypeEnum = {
|
|
458
|
+
"response.output_text.done": "response.output_text.done"
|
|
459
|
+
};
|
|
460
|
+
var responseRefusalDeltaStreamingEventTypeEnum = {
|
|
461
|
+
"response.refusal.delta": "response.refusal.delta"
|
|
462
|
+
};
|
|
463
|
+
var responseRefusalDoneStreamingEventTypeEnum = {
|
|
464
|
+
"response.refusal.done": "response.refusal.done"
|
|
465
|
+
};
|
|
466
|
+
var responseReasoningDeltaStreamingEventTypeEnum = {
|
|
467
|
+
"response.reasoning.delta": "response.reasoning.delta"
|
|
468
|
+
};
|
|
469
|
+
var responseReasoningDoneStreamingEventTypeEnum = {
|
|
470
|
+
"response.reasoning.done": "response.reasoning.done"
|
|
471
|
+
};
|
|
472
|
+
var responseReasoningSummaryDeltaStreamingEventTypeEnum = {
|
|
473
|
+
"response.reasoning_summary_text.delta": "response.reasoning_summary_text.delta"
|
|
474
|
+
};
|
|
475
|
+
var responseReasoningSummaryDoneStreamingEventTypeEnum = {
|
|
476
|
+
"response.reasoning_summary_text.done": "response.reasoning_summary_text.done"
|
|
477
|
+
};
|
|
478
|
+
var responseOutputTextAnnotationAddedStreamingEventTypeEnum = {
|
|
479
|
+
"response.output_text.annotation.added": "response.output_text.annotation.added"
|
|
480
|
+
};
|
|
481
|
+
var responseFunctionCallArgumentsDeltaStreamingEventTypeEnum = {
|
|
482
|
+
"response.function_call_arguments.delta": "response.function_call_arguments.delta"
|
|
483
|
+
};
|
|
484
|
+
var responseFunctionCallArgumentsDoneStreamingEventTypeEnum = {
|
|
485
|
+
"response.function_call_arguments.done": "response.function_call_arguments.done"
|
|
486
|
+
};
|
|
487
|
+
var errorStreamingEventTypeEnum = {
|
|
488
|
+
error: "error"
|
|
489
|
+
};
|
|
490
|
+
|
|
491
|
+
// src/gen/zod/functionToolChoiceSchema.ts
|
|
492
|
+
var import_zod = require("zod");
|
|
493
|
+
var functionToolChoiceSchema = import_zod.z.object({
|
|
494
|
+
"type": import_zod.z.enum(["function"]).default("function"),
|
|
495
|
+
"name": import_zod.z.optional(import_zod.z.string())
|
|
496
|
+
});
|
|
497
|
+
|
|
498
|
+
// src/gen/zod/toolChoiceValueEnumSchema.ts
|
|
499
|
+
var import_zod2 = require("zod");
|
|
500
|
+
var toolChoiceValueEnumSchema = import_zod2.z.enum(["none", "auto", "required"]);
|
|
501
|
+
|
|
502
|
+
// src/gen/zod/allowedToolChoiceSchema.ts
|
|
503
|
+
var import_zod3 = require("zod");
|
|
504
|
+
var allowedToolChoiceSchema = import_zod3.z.object({
|
|
505
|
+
"type": import_zod3.z.enum(["allowed_tools"]).default("allowed_tools"),
|
|
506
|
+
"tools": import_zod3.z.array(import_zod3.z.lazy(() => functionToolChoiceSchema)),
|
|
507
|
+
"mode": import_zod3.z.lazy(() => toolChoiceValueEnumSchema)
|
|
508
|
+
});
|
|
509
|
+
|
|
510
|
+
// src/gen/zod/specificFunctionParamSchema.ts
|
|
511
|
+
var import_zod4 = require("zod");
|
|
512
|
+
var specificFunctionParamSchema = import_zod4.z.object({
|
|
513
|
+
"type": import_zod4.z.enum(["function"]).default("function").describe("The tool to call. Always `function`."),
|
|
514
|
+
"name": import_zod4.z.string().describe("The name of the function tool to call.")
|
|
515
|
+
});
|
|
516
|
+
|
|
517
|
+
// src/gen/zod/specificToolChoiceParamSchema.ts
|
|
518
|
+
var import_zod5 = require("zod");
|
|
519
|
+
var specificToolChoiceParamSchema = import_zod5.z.lazy(() => specificFunctionParamSchema);
|
|
520
|
+
|
|
521
|
+
// src/gen/zod/allowedToolsParamSchema.ts
|
|
522
|
+
var import_zod6 = require("zod");
|
|
523
|
+
var allowedToolsParamSchema = import_zod6.z.object({
|
|
524
|
+
"type": import_zod6.z.enum(["allowed_tools"]).default("allowed_tools").describe("The tool choice type. Always `allowed_tools`."),
|
|
525
|
+
"tools": import_zod6.z.array(import_zod6.z.lazy(() => specificToolChoiceParamSchema)).min(1).max(128).describe("The list of tools that are permitted for this request."),
|
|
526
|
+
"mode": import_zod6.z.optional(import_zod6.z.lazy(() => toolChoiceValueEnumSchema).and(import_zod6.z.any()))
|
|
527
|
+
});
|
|
528
|
+
|
|
529
|
+
// src/gen/zod/urlCitationBodySchema.ts
|
|
530
|
+
var import_zod7 = require("zod");
|
|
531
|
+
var urlCitationBodySchema = import_zod7.z.object({
|
|
532
|
+
"type": import_zod7.z.enum(["url_citation"]).default("url_citation").describe("The type of the URL citation. Always `url_citation`."),
|
|
533
|
+
"url": import_zod7.z.string().describe("The URL of the web resource."),
|
|
534
|
+
"start_index": import_zod7.z.number().int().describe("The index of the first character of the URL citation in the message."),
|
|
535
|
+
"end_index": import_zod7.z.number().int().describe("The index of the last character of the URL citation in the message."),
|
|
536
|
+
"title": import_zod7.z.string().describe("The title of the web resource.")
|
|
537
|
+
}).describe("A citation for a web resource used to generate a model response.");
|
|
538
|
+
|
|
539
|
+
// src/gen/zod/annotationSchema.ts
|
|
540
|
+
var import_zod8 = require("zod");
|
|
541
|
+
var annotationSchema = import_zod8.z.lazy(() => urlCitationBodySchema).and(import_zod8.z.object({
|
|
542
|
+
"type": import_zod8.z.literal("url_citation")
|
|
543
|
+
})).describe("An annotation that applies to a span of output text.");
|
|
544
|
+
|
|
545
|
+
// src/gen/zod/urlCitationParamSchema.ts
|
|
546
|
+
var import_zod9 = require("zod");
|
|
547
|
+
var urlCitationParamSchema = import_zod9.z.object({
|
|
548
|
+
"type": import_zod9.z.enum(["url_citation"]).default("url_citation").describe("The citation type. Always `url_citation`."),
|
|
549
|
+
"start_index": import_zod9.z.number().int().min(0).describe("The index of the first character of the citation in the message."),
|
|
550
|
+
"end_index": import_zod9.z.number().int().min(0).describe("The index of the last character of the citation in the message."),
|
|
551
|
+
"url": import_zod9.z.string().describe("The URL of the cited resource."),
|
|
552
|
+
"title": import_zod9.z.string().describe("The title of the cited resource.")
|
|
553
|
+
});
|
|
554
|
+
|
|
555
|
+
// src/gen/zod/outputTextContentParamSchema.ts
|
|
556
|
+
var import_zod10 = require("zod");
|
|
557
|
+
var outputTextContentParamSchema = import_zod10.z.object({
|
|
558
|
+
"type": import_zod10.z.enum(["output_text"]).default("output_text").describe("The content type. Always `output_text`."),
|
|
559
|
+
"text": import_zod10.z.string().max(10485760).describe("The text content."),
|
|
560
|
+
"annotations": import_zod10.z.optional(import_zod10.z.array(import_zod10.z.lazy(() => urlCitationParamSchema)).describe("Citations associated with the text content."))
|
|
561
|
+
});
|
|
562
|
+
|
|
563
|
+
// src/gen/zod/refusalContentParamSchema.ts
|
|
564
|
+
var import_zod11 = require("zod");
|
|
565
|
+
var refusalContentParamSchema = import_zod11.z.object({
|
|
566
|
+
"type": import_zod11.z.enum(["refusal"]).default("refusal").describe("The content type. Always `refusal`."),
|
|
567
|
+
"refusal": import_zod11.z.string().max(10485760).describe("The refusal text.")
|
|
568
|
+
});
|
|
569
|
+
|
|
570
|
+
// src/gen/zod/assistantMessageItemParamSchema.ts
|
|
571
|
+
var import_zod12 = require("zod");
|
|
572
|
+
var assistantMessageItemParamSchema = import_zod12.z.object({
|
|
573
|
+
"id": import_zod12.z.optional(import_zod12.z.union([import_zod12.z.string(), import_zod12.z.null()])),
|
|
574
|
+
"type": import_zod12.z.enum(["message"]).default("message").describe("The item type. Always `message`."),
|
|
575
|
+
"role": import_zod12.z.enum(["assistant"]).default("assistant").describe("The role of the message author. Always `assistant`."),
|
|
576
|
+
"content": import_zod12.z.union([import_zod12.z.array(import_zod12.z.union([import_zod12.z.lazy(() => outputTextContentParamSchema).and(import_zod12.z.object({
|
|
577
|
+
"type": import_zod12.z.literal("output_text")
|
|
578
|
+
})), import_zod12.z.lazy(() => refusalContentParamSchema).and(import_zod12.z.object({
|
|
579
|
+
"type": import_zod12.z.literal("refusal")
|
|
580
|
+
}))]).describe("A piece of assistant message content, such as text or a refusal.")), import_zod12.z.string()]).describe("The message content, as an array of content parts."),
|
|
581
|
+
"status": import_zod12.z.optional(import_zod12.z.union([import_zod12.z.string(), import_zod12.z.null()]))
|
|
582
|
+
});
|
|
583
|
+
|
|
584
|
+
// src/gen/zod/includeEnumSchema.ts
|
|
585
|
+
var import_zod13 = require("zod");
|
|
586
|
+
var includeEnumSchema = import_zod13.z.enum(["reasoning.encrypted_content", "message.output_text.logprobs"]);
|
|
587
|
+
|
|
588
|
+
// src/gen/zod/functionCallStatusSchema.ts
|
|
589
|
+
var import_zod14 = require("zod");
|
|
590
|
+
var functionCallStatusSchema = import_zod14.z.enum(["in_progress", "completed", "incomplete"]);
|
|
591
|
+
|
|
592
|
+
// src/gen/zod/functionCallItemParamSchema.ts
|
|
593
|
+
var import_zod15 = require("zod");
|
|
594
|
+
var functionCallItemParamSchema = import_zod15.z.object({
|
|
595
|
+
"id": import_zod15.z.optional(import_zod15.z.union([import_zod15.z.string(), import_zod15.z.null()])),
|
|
596
|
+
"call_id": import_zod15.z.string().min(1).max(64).describe("The unique ID of the function tool call generated by the model."),
|
|
597
|
+
"type": import_zod15.z.enum(["function_call"]).default("function_call").describe("The item type. Always `function_call`."),
|
|
598
|
+
"name": import_zod15.z.string().min(1).max(64).regex(/^[a-zA-Z0-9_-]+$/).describe("The name of the function to call."),
|
|
599
|
+
"arguments": import_zod15.z.string().describe("The function arguments as a JSON string."),
|
|
600
|
+
"status": import_zod15.z.optional(import_zod15.z.union([import_zod15.z.lazy(() => functionCallStatusSchema).and(import_zod15.z.any()), import_zod15.z.null()]))
|
|
601
|
+
});
|
|
602
|
+
|
|
603
|
+
// src/gen/zod/inputFileContentParamSchema.ts
|
|
604
|
+
var import_zod16 = require("zod");
|
|
605
|
+
var inputFileContentParamSchema = import_zod16.z.object({
|
|
606
|
+
"type": import_zod16.z.enum(["input_file"]).default("input_file").describe("The type of the input item. Always `input_file`."),
|
|
607
|
+
"filename": import_zod16.z.optional(import_zod16.z.union([import_zod16.z.string(), import_zod16.z.null()])),
|
|
608
|
+
"file_data": import_zod16.z.optional(import_zod16.z.union([import_zod16.z.string(), import_zod16.z.null()])),
|
|
609
|
+
"file_url": import_zod16.z.optional(import_zod16.z.union([import_zod16.z.string(), import_zod16.z.null()]))
|
|
610
|
+
}).describe("A file input to the model.");
|
|
611
|
+
|
|
612
|
+
// src/gen/zod/imageDetailSchema.ts
|
|
613
|
+
var import_zod17 = require("zod");
|
|
614
|
+
var imageDetailSchema = import_zod17.z.enum(["low", "high", "auto"]);
|
|
615
|
+
|
|
616
|
+
// src/gen/zod/inputImageContentParamAutoParamSchema.ts
|
|
617
|
+
var import_zod18 = require("zod");
|
|
618
|
+
var inputImageContentParamAutoParamSchema = import_zod18.z.object({
|
|
619
|
+
"type": import_zod18.z.enum(["input_image"]).default("input_image").describe("The type of the input item. Always `input_image`."),
|
|
620
|
+
"image_url": import_zod18.z.optional(import_zod18.z.union([import_zod18.z.string(), import_zod18.z.null()])),
|
|
621
|
+
"detail": import_zod18.z.optional(import_zod18.z.union([import_zod18.z.lazy(() => imageDetailSchema).and(import_zod18.z.any()), import_zod18.z.null()]))
|
|
622
|
+
}).describe("An image input to the model. Learn about [image inputs](/docs/guides/vision)");
|
|
623
|
+
|
|
624
|
+
// src/gen/zod/inputTextContentParamSchema.ts
|
|
625
|
+
var import_zod19 = require("zod");
|
|
626
|
+
var inputTextContentParamSchema = import_zod19.z.object({
|
|
627
|
+
"type": import_zod19.z.enum(["input_text"]).default("input_text").describe("The type of the input item. Always `input_text`."),
|
|
628
|
+
"text": import_zod19.z.string().max(10485760).describe("The text input to the model.")
|
|
629
|
+
}).describe("A text input to the model.");
|
|
630
|
+
|
|
631
|
+
// src/gen/zod/inputVideoContentSchema.ts
|
|
632
|
+
var import_zod20 = require("zod");
|
|
633
|
+
var inputVideoContentSchema = import_zod20.z.object({
|
|
634
|
+
"type": import_zod20.z.enum(["input_video"]).describe("The type of the input content. Always `input_video`."),
|
|
635
|
+
"video_url": import_zod20.z.string().describe("A base64 or remote url that resolves to a video file.")
|
|
636
|
+
}).describe("A content block representing a video input to the model.");
|
|
637
|
+
|
|
638
|
+
// src/gen/zod/functionCallOutputItemParamSchema.ts
|
|
639
|
+
var import_zod21 = require("zod");
|
|
640
|
+
var functionCallOutputItemParamSchema = import_zod21.z.object({
|
|
641
|
+
"id": import_zod21.z.optional(import_zod21.z.union([import_zod21.z.string(), import_zod21.z.null()])),
|
|
642
|
+
"call_id": import_zod21.z.string().min(1).max(64).describe("The unique ID of the function tool call generated by the model."),
|
|
643
|
+
"type": import_zod21.z.enum(["function_call_output"]).default("function_call_output").describe("The type of the function tool call output. Always `function_call_output`."),
|
|
644
|
+
"output": import_zod21.z.union([import_zod21.z.array(import_zod21.z.union([import_zod21.z.lazy(() => inputTextContentParamSchema).and(import_zod21.z.object({
|
|
645
|
+
"type": import_zod21.z.literal("input_text")
|
|
646
|
+
})), import_zod21.z.lazy(() => inputImageContentParamAutoParamSchema).and(import_zod21.z.object({
|
|
647
|
+
"type": import_zod21.z.literal("input_image")
|
|
648
|
+
})), import_zod21.z.lazy(() => inputFileContentParamSchema).and(import_zod21.z.object({
|
|
649
|
+
"type": import_zod21.z.literal("input_file")
|
|
650
|
+
})), import_zod21.z.lazy(() => inputVideoContentSchema).and(import_zod21.z.object({
|
|
651
|
+
"type": import_zod21.z.literal("input_video")
|
|
652
|
+
}))]).describe("A piece of message content, such as text, an image, or a file.")), import_zod21.z.string()]).describe("Text, image, or file output of the function tool call."),
|
|
653
|
+
"status": import_zod21.z.optional(import_zod21.z.union([import_zod21.z.lazy(() => functionCallStatusSchema).and(import_zod21.z.any()), import_zod21.z.null()]))
|
|
654
|
+
}).describe("The output of a function tool call.");
|
|
655
|
+
|
|
656
|
+
// src/gen/zod/itemReferenceParamSchema.ts
|
|
657
|
+
var import_zod22 = require("zod");
|
|
658
|
+
var itemReferenceParamSchema = import_zod22.z.object({
|
|
659
|
+
"type": import_zod22.z.optional(import_zod22.z.union([import_zod22.z.enum(["item_reference"]), import_zod22.z.null()])),
|
|
660
|
+
"id": import_zod22.z.string().describe("The ID of the item to reference.")
|
|
661
|
+
}).describe("An internal identifier for an item to reference.");
|
|
662
|
+
|
|
663
|
+
// src/gen/zod/reasoningSummaryContentParamSchema.ts
|
|
664
|
+
var import_zod23 = require("zod");
|
|
665
|
+
var reasoningSummaryContentParamSchema = import_zod23.z.object({
|
|
666
|
+
"type": import_zod23.z.enum(["summary_text"]).default("summary_text").describe("The content type. Always `summary_text`."),
|
|
667
|
+
"text": import_zod23.z.string().max(10485760).describe("The reasoning summary text.")
|
|
668
|
+
});
|
|
669
|
+
|
|
670
|
+
// src/gen/zod/reasoningItemParamSchema.ts
|
|
671
|
+
var import_zod24 = require("zod");
|
|
672
|
+
var reasoningItemParamSchema = import_zod24.z.object({
|
|
673
|
+
"id": import_zod24.z.optional(import_zod24.z.union([import_zod24.z.string(), import_zod24.z.null()])),
|
|
674
|
+
"type": import_zod24.z.enum(["reasoning"]).default("reasoning").describe("The item type. Always `reasoning`."),
|
|
675
|
+
"summary": import_zod24.z.array(import_zod24.z.lazy(() => reasoningSummaryContentParamSchema)).describe("Reasoning summary content associated with this item."),
|
|
676
|
+
"content": import_zod24.z.optional(import_zod24.z.null()),
|
|
677
|
+
"encrypted_content": import_zod24.z.optional(import_zod24.z.union([import_zod24.z.string(), import_zod24.z.null()]))
|
|
678
|
+
});
|
|
679
|
+
|
|
680
|
+
// src/gen/zod/itemParamSchema.ts
|
|
681
|
+
var import_zod25 = require("zod");
|
|
682
|
+
var itemParamSchema = import_zod25.z.union([import_zod25.z.lazy(() => itemReferenceParamSchema).and(import_zod25.z.object({
|
|
683
|
+
"type": import_zod25.z.literal("Item reference")
|
|
684
|
+
})), import_zod25.z.lazy(() => reasoningItemParamSchema).and(import_zod25.z.object({
|
|
685
|
+
"type": import_zod25.z.literal("reasoning")
|
|
686
|
+
})), import_zod25.z.lazy(() => assistantMessageItemParamSchema).and(import_zod25.z.object({
|
|
687
|
+
"type": import_zod25.z.literal("message")
|
|
688
|
+
})), import_zod25.z.lazy(() => functionCallItemParamSchema).and(import_zod25.z.object({
|
|
689
|
+
"type": import_zod25.z.literal("function_call")
|
|
690
|
+
})), import_zod25.z.lazy(() => functionCallOutputItemParamSchema).and(import_zod25.z.object({
|
|
691
|
+
"type": import_zod25.z.literal("function_call_output")
|
|
692
|
+
}))]);
|
|
693
|
+
|
|
694
|
+
// src/gen/zod/metadataParamSchema.ts
|
|
695
|
+
var import_zod26 = require("zod");
|
|
696
|
+
var metadataParamSchema = import_zod26.z.object({}).catchall(import_zod26.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.");
|
|
697
|
+
|
|
698
|
+
// src/gen/zod/reasoningEffortEnumSchema.ts
|
|
699
|
+
var import_zod27 = require("zod");
|
|
700
|
+
var reasoningEffortEnumSchema = import_zod27.z.enum(["none", "low", "medium", "high", "xhigh"]);
|
|
701
|
+
|
|
702
|
+
// src/gen/zod/reasoningSummaryEnumSchema.ts
|
|
703
|
+
var import_zod28 = require("zod");
|
|
704
|
+
var reasoningSummaryEnumSchema = import_zod28.z.enum(["concise", "detailed", "auto"]);
|
|
705
|
+
|
|
706
|
+
// src/gen/zod/reasoningParamSchema.ts
|
|
707
|
+
var import_zod29 = require("zod");
|
|
708
|
+
var reasoningParamSchema = import_zod29.z.object({
|
|
709
|
+
"effort": import_zod29.z.optional(import_zod29.z.union([import_zod29.z.lazy(() => reasoningEffortEnumSchema), import_zod29.z.null()])),
|
|
710
|
+
"summary": import_zod29.z.optional(import_zod29.z.union([import_zod29.z.lazy(() => reasoningSummaryEnumSchema).and(import_zod29.z.any()), import_zod29.z.null()]))
|
|
711
|
+
}).describe("**gpt-5 and o-series models only** Configuration options for [reasoning models](https://platform.openai.com/docs/guides/reasoning).");
|
|
712
|
+
|
|
713
|
+
// src/gen/zod/emptyModelParamSchema.ts
|
|
714
|
+
var import_zod30 = require("zod");
|
|
715
|
+
var emptyModelParamSchema = import_zod30.z.object({});
|
|
716
|
+
|
|
717
|
+
// src/gen/zod/functionToolParamSchema.ts
|
|
718
|
+
var import_zod31 = require("zod");
|
|
719
|
+
var functionToolParamSchema = import_zod31.z.object({
|
|
720
|
+
"name": import_zod31.z.string().min(1).max(64).regex(/^[a-zA-Z0-9_-]+$/),
|
|
721
|
+
"description": import_zod31.z.optional(import_zod31.z.union([import_zod31.z.string(), import_zod31.z.null()])),
|
|
722
|
+
"parameters": import_zod31.z.optional(import_zod31.z.union([import_zod31.z.lazy(() => emptyModelParamSchema), import_zod31.z.null()])),
|
|
723
|
+
"strict": import_zod31.z.optional(import_zod31.z.boolean()),
|
|
724
|
+
"type": import_zod31.z.enum(["function"]).default("function")
|
|
725
|
+
});
|
|
726
|
+
|
|
727
|
+
// src/gen/zod/responsesToolParamSchema.ts
|
|
728
|
+
var import_zod32 = require("zod");
|
|
729
|
+
var responsesToolParamSchema = import_zod32.z.lazy(() => functionToolParamSchema).and(import_zod32.z.object({
|
|
730
|
+
"type": import_zod32.z.literal("function")
|
|
731
|
+
}));
|
|
732
|
+
|
|
733
|
+
// src/gen/zod/serviceTierEnumSchema.ts
|
|
734
|
+
var import_zod33 = require("zod");
|
|
735
|
+
var serviceTierEnumSchema = import_zod33.z.enum(["auto", "default", "flex", "priority"]);
|
|
736
|
+
|
|
737
|
+
// src/gen/zod/streamOptionsParamSchema.ts
|
|
738
|
+
var import_zod34 = require("zod");
|
|
739
|
+
var streamOptionsParamSchema = import_zod34.z.object({
|
|
740
|
+
"include_obfuscation": import_zod34.z.optional(import_zod34.z.boolean().describe("Whether to obfuscate sensitive information in streamed output. Defaults to `true`."))
|
|
741
|
+
}).describe("Options that control streamed response behavior.");
|
|
742
|
+
|
|
743
|
+
// src/gen/zod/jsonSchemaResponseFormatParamSchema.ts
|
|
744
|
+
var import_zod35 = require("zod");
|
|
745
|
+
var jsonSchemaResponseFormatParamSchema = import_zod35.z.object({
|
|
746
|
+
"type": import_zod35.z.optional(import_zod35.z.enum(["json_schema"]).describe("The type of response format being defined. Always `json_schema`.")),
|
|
747
|
+
"description": import_zod35.z.optional(import_zod35.z.string().describe("A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n")),
|
|
748
|
+
"name": import_zod35.z.optional(import_zod35.z.string().describe("The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n")),
|
|
749
|
+
"schema": import_zod35.z.optional(import_zod35.z.object({}).catchall(import_zod35.z.any()).describe("The schema for the response format, described as a JSON Schema object.\n")),
|
|
750
|
+
"strict": import_zod35.z.optional(import_zod35.z.union([import_zod35.z.boolean(), import_zod35.z.null()]))
|
|
751
|
+
});
|
|
752
|
+
|
|
753
|
+
// src/gen/zod/textResponseFormatSchema.ts
|
|
754
|
+
var import_zod36 = require("zod");
|
|
755
|
+
var textResponseFormatSchema = import_zod36.z.object({
|
|
756
|
+
"type": import_zod36.z.enum(["text"]).default("text")
|
|
757
|
+
});
|
|
758
|
+
|
|
759
|
+
// src/gen/zod/textFormatParamSchema.ts
|
|
760
|
+
var import_zod37 = require("zod");
|
|
761
|
+
var textFormatParamSchema = import_zod37.z.union([import_zod37.z.lazy(() => textResponseFormatSchema), import_zod37.z.lazy(() => jsonSchemaResponseFormatParamSchema)]);
|
|
762
|
+
|
|
763
|
+
// src/gen/zod/verbosityEnumSchema.ts
|
|
764
|
+
var import_zod38 = require("zod");
|
|
765
|
+
var verbosityEnumSchema = import_zod38.z.enum(["low", "medium", "high"]);
|
|
766
|
+
|
|
767
|
+
// src/gen/zod/textParamSchema.ts
|
|
768
|
+
var import_zod39 = require("zod");
|
|
769
|
+
var textParamSchema = import_zod39.z.object({
|
|
770
|
+
"format": import_zod39.z.optional(import_zod39.z.union([import_zod39.z.lazy(() => textFormatParamSchema), import_zod39.z.null()]).describe("The format configuration for text output.")),
|
|
771
|
+
"verbosity": import_zod39.z.optional(import_zod39.z.lazy(() => verbosityEnumSchema).and(import_zod39.z.any()))
|
|
772
|
+
});
|
|
773
|
+
|
|
774
|
+
// src/gen/zod/toolChoiceParamSchema.ts
|
|
775
|
+
var import_zod40 = require("zod");
|
|
776
|
+
var toolChoiceParamSchema = import_zod40.z.union([import_zod40.z.lazy(() => specificToolChoiceParamSchema), import_zod40.z.lazy(() => toolChoiceValueEnumSchema), import_zod40.z.lazy(() => allowedToolsParamSchema)]).describe("Controls which tool the model should use, if any.");
|
|
777
|
+
|
|
778
|
+
// src/gen/zod/truncationEnumSchema.ts
|
|
779
|
+
var import_zod41 = require("zod");
|
|
780
|
+
var truncationEnumSchema = import_zod41.z.enum(["auto", "disabled"]);
|
|
781
|
+
|
|
782
|
+
// src/gen/zod/createResponseBodySchema.ts
|
|
783
|
+
var import_zod42 = require("zod");
|
|
784
|
+
var createResponseBodySchema = import_zod42.z.object({
|
|
785
|
+
"model": import_zod42.z.optional(import_zod42.z.union([import_zod42.z.string(), import_zod42.z.null()])),
|
|
786
|
+
"input": import_zod42.z.optional(import_zod42.z.union([import_zod42.z.union([import_zod42.z.array(import_zod42.z.lazy(() => itemParamSchema)), import_zod42.z.string()]), import_zod42.z.null()])),
|
|
787
|
+
"previous_response_id": import_zod42.z.optional(import_zod42.z.union([import_zod42.z.string(), import_zod42.z.null()])),
|
|
788
|
+
"include": import_zod42.z.optional(import_zod42.z.array(import_zod42.z.lazy(() => includeEnumSchema))),
|
|
789
|
+
"tools": import_zod42.z.optional(import_zod42.z.union([import_zod42.z.array(import_zod42.z.lazy(() => responsesToolParamSchema)), import_zod42.z.null()])),
|
|
790
|
+
"tool_choice": import_zod42.z.optional(import_zod42.z.union([import_zod42.z.lazy(() => toolChoiceParamSchema).and(import_zod42.z.any()), import_zod42.z.null()])),
|
|
791
|
+
"metadata": import_zod42.z.optional(import_zod42.z.union([import_zod42.z.lazy(() => metadataParamSchema).and(import_zod42.z.any()), import_zod42.z.null()])),
|
|
792
|
+
"text": import_zod42.z.optional(import_zod42.z.union([import_zod42.z.lazy(() => textParamSchema).and(import_zod42.z.any()), import_zod42.z.null()])),
|
|
793
|
+
"temperature": import_zod42.z.optional(import_zod42.z.union([import_zod42.z.number(), import_zod42.z.null()])),
|
|
794
|
+
"top_p": import_zod42.z.optional(import_zod42.z.union([import_zod42.z.number(), import_zod42.z.null()])),
|
|
795
|
+
"presence_penalty": import_zod42.z.optional(import_zod42.z.union([import_zod42.z.number(), import_zod42.z.null()])),
|
|
796
|
+
"frequency_penalty": import_zod42.z.optional(import_zod42.z.union([import_zod42.z.number(), import_zod42.z.null()])),
|
|
797
|
+
"parallel_tool_calls": import_zod42.z.optional(import_zod42.z.union([import_zod42.z.boolean(), import_zod42.z.null()])),
|
|
798
|
+
"stream": import_zod42.z.optional(import_zod42.z.boolean().describe("Whether to stream response events as server-sent events.")),
|
|
799
|
+
"stream_options": import_zod42.z.optional(import_zod42.z.union([import_zod42.z.lazy(() => streamOptionsParamSchema).and(import_zod42.z.any()), import_zod42.z.null()])),
|
|
800
|
+
"background": import_zod42.z.optional(import_zod42.z.boolean().describe("Whether to run the request in the background and return immediately.")),
|
|
801
|
+
"max_output_tokens": import_zod42.z.optional(import_zod42.z.union([import_zod42.z.number().int(), import_zod42.z.null()])),
|
|
802
|
+
"max_tool_calls": import_zod42.z.optional(import_zod42.z.union([import_zod42.z.number().int(), import_zod42.z.null()])),
|
|
803
|
+
"reasoning": import_zod42.z.optional(import_zod42.z.union([import_zod42.z.lazy(() => reasoningParamSchema).and(import_zod42.z.any()), import_zod42.z.null()])),
|
|
804
|
+
"safety_identifier": import_zod42.z.optional(import_zod42.z.union([import_zod42.z.string(), import_zod42.z.null()])),
|
|
805
|
+
"prompt_cache_key": import_zod42.z.optional(import_zod42.z.union([import_zod42.z.string(), import_zod42.z.null()])),
|
|
806
|
+
"truncation": import_zod42.z.optional(import_zod42.z.lazy(() => truncationEnumSchema).and(import_zod42.z.any())),
|
|
807
|
+
"instructions": import_zod42.z.optional(import_zod42.z.union([import_zod42.z.string(), import_zod42.z.null()])),
|
|
808
|
+
"store": import_zod42.z.optional(import_zod42.z.boolean().describe("Whether to store the response so it can be retrieved later.")),
|
|
809
|
+
"service_tier": import_zod42.z.optional(import_zod42.z.lazy(() => serviceTierEnumSchema).and(import_zod42.z.any())),
|
|
810
|
+
"top_logprobs": import_zod42.z.optional(import_zod42.z.union([import_zod42.z.number().int(), import_zod42.z.null()]))
|
|
811
|
+
});
|
|
812
|
+
|
|
813
|
+
// src/gen/zod/errorSchema.ts
|
|
814
|
+
var import_zod43 = require("zod");
|
|
815
|
+
var errorSchema = import_zod43.z.object({
|
|
816
|
+
"code": import_zod43.z.string().describe("A machine-readable error code that was returned."),
|
|
817
|
+
"message": import_zod43.z.string().describe("A human-readable description of the error that was returned.")
|
|
818
|
+
}).describe("An error that occurred while generating the response.");
|
|
819
|
+
|
|
820
|
+
// src/gen/zod/incompleteDetailsSchema.ts
|
|
821
|
+
var import_zod44 = require("zod");
|
|
822
|
+
var incompleteDetailsSchema = import_zod44.z.object({
|
|
823
|
+
"reason": import_zod44.z.string().describe("The reason the response could not be completed.")
|
|
824
|
+
}).describe("Details about why the response was incomplete.");
|
|
825
|
+
|
|
826
|
+
// src/gen/zod/functionCallOutputStatusEnumSchema.ts
|
|
827
|
+
var import_zod45 = require("zod");
|
|
828
|
+
var functionCallOutputStatusEnumSchema = import_zod45.z.enum(["in_progress", "completed", "incomplete"]).describe("Similar to `FunctionCallStatus`. All three options are allowed here for compatibility, but because in practice these items will be provided by developers, only `completed` should be used.");
|
|
829
|
+
|
|
830
|
+
// src/gen/zod/inputFileContentSchema.ts
|
|
831
|
+
var import_zod46 = require("zod");
|
|
832
|
+
var inputFileContentSchema = import_zod46.z.object({
|
|
833
|
+
"type": import_zod46.z.enum(["input_file"]).default("input_file").describe("The type of the input item. Always `input_file`."),
|
|
834
|
+
"filename": import_zod46.z.optional(import_zod46.z.string().describe("The name of the file to be sent to the model.")),
|
|
835
|
+
"file_url": import_zod46.z.optional(import_zod46.z.string().describe("The URL of the file to be sent to the model."))
|
|
836
|
+
}).describe("A file input to the model.");
|
|
837
|
+
|
|
838
|
+
// src/gen/zod/inputImageContentSchema.ts
|
|
839
|
+
var import_zod47 = require("zod");
|
|
840
|
+
var inputImageContentSchema = import_zod47.z.object({
|
|
841
|
+
"type": import_zod47.z.enum(["input_image"]).default("input_image").describe("The type of the input item. Always `input_image`."),
|
|
842
|
+
"image_url": import_zod47.z.union([import_zod47.z.string(), import_zod47.z.null()]),
|
|
843
|
+
"detail": import_zod47.z.lazy(() => imageDetailSchema).and(import_zod47.z.any())
|
|
844
|
+
}).describe("An image input to the model. Learn about [image inputs](/docs/guides/vision).");
|
|
845
|
+
|
|
846
|
+
// src/gen/zod/inputTextContentSchema.ts
|
|
847
|
+
var import_zod48 = require("zod");
|
|
848
|
+
var inputTextContentSchema = import_zod48.z.object({
|
|
849
|
+
"type": import_zod48.z.enum(["input_text"]).default("input_text").describe("The type of the input item. Always `input_text`."),
|
|
850
|
+
"text": import_zod48.z.string().describe("The text input to the model.")
|
|
851
|
+
}).describe("A text input to the model.");
|
|
852
|
+
|
|
853
|
+
// src/gen/zod/functionCallOutputSchema.ts
|
|
854
|
+
var import_zod49 = require("zod");
|
|
855
|
+
var functionCallOutputSchema = import_zod49.z.object({
|
|
856
|
+
"type": import_zod49.z.enum(["function_call_output"]).default("function_call_output").describe("The type of the function tool call output. Always `function_call_output`."),
|
|
857
|
+
"id": import_zod49.z.string().describe("The unique ID of the function tool call output. Populated when this item is returned via API."),
|
|
858
|
+
"call_id": import_zod49.z.string().describe("The unique ID of the function tool call generated by the model."),
|
|
859
|
+
"output": import_zod49.z.union([import_zod49.z.array(import_zod49.z.union([import_zod49.z.lazy(() => inputTextContentSchema).and(import_zod49.z.object({
|
|
860
|
+
"type": import_zod49.z.literal("input_text")
|
|
861
|
+
})), import_zod49.z.lazy(() => inputImageContentSchema).and(import_zod49.z.object({
|
|
862
|
+
"type": import_zod49.z.literal("input_image")
|
|
863
|
+
})), import_zod49.z.lazy(() => inputFileContentSchema).and(import_zod49.z.object({
|
|
864
|
+
"type": import_zod49.z.literal("input_file")
|
|
865
|
+
}))]).describe("A content part that makes up an input or output item.")), import_zod49.z.string()]),
|
|
866
|
+
"status": import_zod49.z.lazy(() => functionCallOutputStatusEnumSchema).and(import_zod49.z.any())
|
|
867
|
+
}).describe("A function tool call output that was returned by the tool.");
|
|
868
|
+
|
|
869
|
+
// src/gen/zod/functionCallSchema.ts
|
|
870
|
+
var import_zod50 = require("zod");
|
|
871
|
+
var functionCallSchema = import_zod50.z.object({
|
|
872
|
+
"type": import_zod50.z.enum(["function_call"]).default("function_call").describe("The type of the item. Always `function_call`."),
|
|
873
|
+
"id": import_zod50.z.string().describe("The unique ID of the function call item."),
|
|
874
|
+
"call_id": import_zod50.z.string().describe("The unique ID of the function tool call that was generated."),
|
|
875
|
+
"name": import_zod50.z.string().describe("The name of the function that was called."),
|
|
876
|
+
"arguments": import_zod50.z.string().describe("The arguments JSON string that was generated."),
|
|
877
|
+
"status": import_zod50.z.lazy(() => functionCallStatusSchema).and(import_zod50.z.any())
|
|
878
|
+
}).describe("A function tool call that was generated by the model.");
|
|
879
|
+
|
|
880
|
+
// src/gen/zod/messageRoleSchema.ts
|
|
881
|
+
var import_zod51 = require("zod");
|
|
882
|
+
var messageRoleSchema = import_zod51.z.enum(["user", "assistant", "system", "developer"]);
|
|
883
|
+
|
|
884
|
+
// src/gen/zod/messageStatusSchema.ts
|
|
885
|
+
var import_zod52 = require("zod");
|
|
886
|
+
var messageStatusSchema = import_zod52.z.enum(["in_progress", "completed", "incomplete"]);
|
|
887
|
+
|
|
888
|
+
// src/gen/zod/topLogProbSchema.ts
|
|
889
|
+
var import_zod53 = require("zod");
|
|
890
|
+
var topLogProbSchema = import_zod53.z.object({
|
|
891
|
+
"token": import_zod53.z.string(),
|
|
892
|
+
"logprob": import_zod53.z.number(),
|
|
893
|
+
"bytes": import_zod53.z.array(import_zod53.z.number().int())
|
|
894
|
+
}).describe("The top log probability of a token.");
|
|
895
|
+
|
|
896
|
+
// src/gen/zod/logProbSchema.ts
|
|
897
|
+
var import_zod54 = require("zod");
|
|
898
|
+
var logProbSchema = import_zod54.z.object({
|
|
899
|
+
"token": import_zod54.z.string(),
|
|
900
|
+
"logprob": import_zod54.z.number(),
|
|
901
|
+
"bytes": import_zod54.z.array(import_zod54.z.number().int()),
|
|
902
|
+
"top_logprobs": import_zod54.z.array(import_zod54.z.lazy(() => topLogProbSchema).describe("The top log probability of a token."))
|
|
903
|
+
}).describe("The log probability of a token.");
|
|
904
|
+
|
|
905
|
+
// src/gen/zod/outputTextContentSchema.ts
|
|
906
|
+
var import_zod55 = require("zod");
|
|
907
|
+
var outputTextContentSchema = import_zod55.z.object({
|
|
908
|
+
"type": import_zod55.z.enum(["output_text"]).default("output_text").describe("The type of the output text. Always `output_text`."),
|
|
909
|
+
"text": import_zod55.z.string().describe("The text output from the model."),
|
|
910
|
+
"annotations": import_zod55.z.array(import_zod55.z.lazy(() => annotationSchema).describe("An annotation that applies to a span of output text.")).describe("The annotations of the text output."),
|
|
911
|
+
"logprobs": import_zod55.z.array(import_zod55.z.lazy(() => logProbSchema).describe("The log probability of a token."))
|
|
912
|
+
}).describe("A text output from the model.");
|
|
913
|
+
|
|
914
|
+
// src/gen/zod/reasoningTextContentSchema.ts
|
|
915
|
+
var import_zod56 = require("zod");
|
|
916
|
+
var reasoningTextContentSchema = import_zod56.z.object({
|
|
917
|
+
"type": import_zod56.z.enum(["reasoning_text"]).default("reasoning_text").describe("The type of the reasoning text. Always `reasoning_text`."),
|
|
918
|
+
"text": import_zod56.z.string().describe("The reasoning text from the model.")
|
|
919
|
+
}).describe("Reasoning text from the model.");
|
|
920
|
+
|
|
921
|
+
// src/gen/zod/refusalContentSchema.ts
|
|
922
|
+
var import_zod57 = require("zod");
|
|
923
|
+
var refusalContentSchema = import_zod57.z.object({
|
|
924
|
+
"type": import_zod57.z.enum(["refusal"]).default("refusal").describe("The type of the refusal. Always `refusal`."),
|
|
925
|
+
"refusal": import_zod57.z.string().describe("The refusal explanation from the model.")
|
|
926
|
+
}).describe("A refusal from the model.");
|
|
927
|
+
|
|
928
|
+
// src/gen/zod/summaryTextContentSchema.ts
|
|
929
|
+
var import_zod58 = require("zod");
|
|
930
|
+
var summaryTextContentSchema = import_zod58.z.object({
|
|
931
|
+
"type": import_zod58.z.enum(["summary_text"]).default("summary_text").describe("The type of the object. Always `summary_text`."),
|
|
932
|
+
"text": import_zod58.z.string().describe("A summary of the reasoning output from the model so far.")
|
|
933
|
+
}).describe("A summary text from the model.");
|
|
934
|
+
|
|
935
|
+
// src/gen/zod/textContentSchema.ts
|
|
936
|
+
var import_zod59 = require("zod");
|
|
937
|
+
var textContentSchema = import_zod59.z.object({
|
|
938
|
+
"type": import_zod59.z.enum(["text"]).default("text"),
|
|
939
|
+
"text": import_zod59.z.string()
|
|
940
|
+
}).describe("A text content.");
|
|
941
|
+
|
|
942
|
+
// src/gen/zod/messageSchema.ts
|
|
943
|
+
var import_zod60 = require("zod");
|
|
944
|
+
var messageSchema = import_zod60.z.object({
|
|
945
|
+
"type": import_zod60.z.enum(["message"]).default("message").describe("The type of the message. Always set to `message`."),
|
|
946
|
+
"id": import_zod60.z.string().describe("The unique ID of the message."),
|
|
947
|
+
"status": import_zod60.z.lazy(() => messageStatusSchema).and(import_zod60.z.any()),
|
|
948
|
+
"role": import_zod60.z.lazy(() => messageRoleSchema).and(import_zod60.z.any()),
|
|
949
|
+
"content": import_zod60.z.array(import_zod60.z.union([import_zod60.z.lazy(() => inputTextContentSchema).and(import_zod60.z.object({
|
|
950
|
+
"type": import_zod60.z.literal("input_text")
|
|
951
|
+
})), import_zod60.z.lazy(() => outputTextContentSchema).and(import_zod60.z.object({
|
|
952
|
+
"type": import_zod60.z.literal("output_text")
|
|
953
|
+
})), import_zod60.z.lazy(() => textContentSchema).and(import_zod60.z.object({
|
|
954
|
+
"type": import_zod60.z.literal("text")
|
|
955
|
+
})), import_zod60.z.lazy(() => summaryTextContentSchema).and(import_zod60.z.object({
|
|
956
|
+
"type": import_zod60.z.literal("summary_text")
|
|
957
|
+
})), import_zod60.z.lazy(() => reasoningTextContentSchema).and(import_zod60.z.object({
|
|
958
|
+
"type": import_zod60.z.literal("reasoning_text")
|
|
959
|
+
})), import_zod60.z.lazy(() => refusalContentSchema).and(import_zod60.z.object({
|
|
960
|
+
"type": import_zod60.z.literal("refusal")
|
|
961
|
+
})), import_zod60.z.lazy(() => inputImageContentSchema).and(import_zod60.z.object({
|
|
962
|
+
"type": import_zod60.z.literal("input_image")
|
|
963
|
+
})), import_zod60.z.lazy(() => inputFileContentSchema).and(import_zod60.z.object({
|
|
964
|
+
"type": import_zod60.z.literal("input_file")
|
|
965
|
+
})), import_zod60.z.lazy(() => inputVideoContentSchema).and(import_zod60.z.object({
|
|
966
|
+
"type": import_zod60.z.literal("input_video")
|
|
967
|
+
}))]).describe("A content part that makes up an input or output item.")).describe("The content of the message")
|
|
968
|
+
}).describe("A message to or from the model.");
|
|
969
|
+
|
|
970
|
+
// src/gen/zod/reasoningBodySchema.ts
|
|
971
|
+
var import_zod61 = require("zod");
|
|
972
|
+
var reasoningBodySchema = import_zod61.z.object({
|
|
973
|
+
"type": import_zod61.z.enum(["reasoning"]).default("reasoning").describe("The type of the item. Always `reasoning`."),
|
|
974
|
+
"id": import_zod61.z.string().describe("The unique ID of the reasoning item."),
|
|
975
|
+
"content": import_zod61.z.optional(import_zod61.z.array(import_zod61.z.union([import_zod61.z.lazy(() => inputTextContentSchema).and(import_zod61.z.object({
|
|
976
|
+
"type": import_zod61.z.literal("input_text")
|
|
977
|
+
})), import_zod61.z.lazy(() => outputTextContentSchema).and(import_zod61.z.object({
|
|
978
|
+
"type": import_zod61.z.literal("output_text")
|
|
979
|
+
})), import_zod61.z.lazy(() => textContentSchema).and(import_zod61.z.object({
|
|
980
|
+
"type": import_zod61.z.literal("text")
|
|
981
|
+
})), import_zod61.z.lazy(() => summaryTextContentSchema).and(import_zod61.z.object({
|
|
982
|
+
"type": import_zod61.z.literal("summary_text")
|
|
983
|
+
})), import_zod61.z.lazy(() => reasoningTextContentSchema).and(import_zod61.z.object({
|
|
984
|
+
"type": import_zod61.z.literal("reasoning_text")
|
|
985
|
+
})), import_zod61.z.lazy(() => refusalContentSchema).and(import_zod61.z.object({
|
|
986
|
+
"type": import_zod61.z.literal("refusal")
|
|
987
|
+
})), import_zod61.z.lazy(() => inputImageContentSchema).and(import_zod61.z.object({
|
|
988
|
+
"type": import_zod61.z.literal("input_image")
|
|
989
|
+
})), import_zod61.z.lazy(() => inputFileContentSchema).and(import_zod61.z.object({
|
|
990
|
+
"type": import_zod61.z.literal("input_file")
|
|
991
|
+
}))]).describe("A content part that makes up an input or output item.")).describe("The reasoning content that was generated.")),
|
|
992
|
+
"summary": import_zod61.z.array(import_zod61.z.union([import_zod61.z.lazy(() => inputTextContentSchema).and(import_zod61.z.object({
|
|
993
|
+
"type": import_zod61.z.literal("input_text")
|
|
994
|
+
})), import_zod61.z.lazy(() => outputTextContentSchema).and(import_zod61.z.object({
|
|
995
|
+
"type": import_zod61.z.literal("output_text")
|
|
996
|
+
})), import_zod61.z.lazy(() => textContentSchema).and(import_zod61.z.object({
|
|
997
|
+
"type": import_zod61.z.literal("text")
|
|
998
|
+
})), import_zod61.z.lazy(() => summaryTextContentSchema).and(import_zod61.z.object({
|
|
999
|
+
"type": import_zod61.z.literal("summary_text")
|
|
1000
|
+
})), import_zod61.z.lazy(() => reasoningTextContentSchema).and(import_zod61.z.object({
|
|
1001
|
+
"type": import_zod61.z.literal("reasoning_text")
|
|
1002
|
+
})), import_zod61.z.lazy(() => refusalContentSchema).and(import_zod61.z.object({
|
|
1003
|
+
"type": import_zod61.z.literal("refusal")
|
|
1004
|
+
})), import_zod61.z.lazy(() => inputImageContentSchema).and(import_zod61.z.object({
|
|
1005
|
+
"type": import_zod61.z.literal("input_image")
|
|
1006
|
+
})), import_zod61.z.lazy(() => inputFileContentSchema).and(import_zod61.z.object({
|
|
1007
|
+
"type": import_zod61.z.literal("input_file")
|
|
1008
|
+
}))]).describe("A content part that makes up an input or output item.")).describe("The reasoning summary content that was generated."),
|
|
1009
|
+
"encrypted_content": import_zod61.z.optional(import_zod61.z.string().describe("The encrypted reasoning content that was generated."))
|
|
1010
|
+
}).describe("A reasoning item that was generated by the model.");
|
|
1011
|
+
|
|
1012
|
+
// src/gen/zod/itemFieldSchema.ts
|
|
1013
|
+
var import_zod62 = require("zod");
|
|
1014
|
+
var itemFieldSchema = import_zod62.z.union([import_zod62.z.lazy(() => messageSchema).and(import_zod62.z.object({
|
|
1015
|
+
"type": import_zod62.z.literal("message")
|
|
1016
|
+
})), import_zod62.z.lazy(() => functionCallSchema).and(import_zod62.z.object({
|
|
1017
|
+
"type": import_zod62.z.literal("function_call")
|
|
1018
|
+
})), import_zod62.z.lazy(() => functionCallOutputSchema).and(import_zod62.z.object({
|
|
1019
|
+
"type": import_zod62.z.literal("function_call_output")
|
|
1020
|
+
})), import_zod62.z.lazy(() => reasoningBodySchema).and(import_zod62.z.object({
|
|
1021
|
+
"type": import_zod62.z.literal("reasoning")
|
|
1022
|
+
}))]).describe("An item representing a message, tool call, tool output, reasoning, or other response element.");
|
|
1023
|
+
|
|
1024
|
+
// src/gen/zod/reasoningSchema.ts
|
|
1025
|
+
var import_zod63 = require("zod");
|
|
1026
|
+
var reasoningSchema = import_zod63.z.object({
|
|
1027
|
+
"effort": import_zod63.z.union([import_zod63.z.lazy(() => reasoningEffortEnumSchema), import_zod63.z.null()]),
|
|
1028
|
+
"summary": import_zod63.z.union([import_zod63.z.lazy(() => reasoningSummaryEnumSchema).and(import_zod63.z.any()), import_zod63.z.null()])
|
|
1029
|
+
}).describe("Reasoning configuration and metadata that were used for the response.");
|
|
1030
|
+
|
|
1031
|
+
// src/gen/zod/jsonObjectResponseFormatSchema.ts
|
|
1032
|
+
var import_zod64 = require("zod");
|
|
1033
|
+
var jsonObjectResponseFormatSchema = import_zod64.z.object({
|
|
1034
|
+
"type": import_zod64.z.enum(["json_object"]).default("json_object")
|
|
1035
|
+
});
|
|
1036
|
+
|
|
1037
|
+
// src/gen/zod/jsonSchemaResponseFormatSchema.ts
|
|
1038
|
+
var import_zod65 = require("zod");
|
|
1039
|
+
var jsonSchemaResponseFormatSchema = import_zod65.z.object({
|
|
1040
|
+
"type": import_zod65.z.enum(["json_schema"]).default("json_schema"),
|
|
1041
|
+
"name": import_zod65.z.string(),
|
|
1042
|
+
"description": import_zod65.z.union([import_zod65.z.string(), import_zod65.z.null()]),
|
|
1043
|
+
"schema": import_zod65.z.null(),
|
|
1044
|
+
"strict": import_zod65.z.boolean()
|
|
1045
|
+
});
|
|
1046
|
+
|
|
1047
|
+
// src/gen/zod/textFieldSchema.ts
|
|
1048
|
+
var import_zod66 = require("zod");
|
|
1049
|
+
var textFieldSchema = import_zod66.z.object({
|
|
1050
|
+
"format": import_zod66.z.union([import_zod66.z.lazy(() => textResponseFormatSchema), import_zod66.z.lazy(() => jsonObjectResponseFormatSchema), import_zod66.z.lazy(() => jsonSchemaResponseFormatSchema)]),
|
|
1051
|
+
"verbosity": import_zod66.z.optional(import_zod66.z.lazy(() => verbosityEnumSchema))
|
|
1052
|
+
});
|
|
1053
|
+
|
|
1054
|
+
// src/gen/zod/functionToolSchema.ts
|
|
1055
|
+
var import_zod67 = require("zod");
|
|
1056
|
+
var functionToolSchema = import_zod67.z.object({
|
|
1057
|
+
"type": import_zod67.z.enum(["function"]).default("function").describe("The type of the function tool. Always `function`."),
|
|
1058
|
+
"name": import_zod67.z.string().describe("The name of the function to call."),
|
|
1059
|
+
"description": import_zod67.z.union([import_zod67.z.string(), import_zod67.z.null()]),
|
|
1060
|
+
"parameters": import_zod67.z.union([import_zod67.z.object({}).catchall(import_zod67.z.any()), import_zod67.z.null()]),
|
|
1061
|
+
"strict": import_zod67.z.union([import_zod67.z.boolean(), import_zod67.z.null()])
|
|
1062
|
+
}).describe("Defines a function in your own code the model can choose to call. Learn more about [function calling](https://platform.openai.com/docs/guides/function-calling).");
|
|
1063
|
+
|
|
1064
|
+
// src/gen/zod/toolSchema.ts
|
|
1065
|
+
var import_zod68 = require("zod");
|
|
1066
|
+
var toolSchema = import_zod68.z.lazy(() => functionToolSchema).and(import_zod68.z.object({
|
|
1067
|
+
"type": import_zod68.z.literal("function")
|
|
1068
|
+
})).describe("A tool that can be used to generate a response.");
|
|
1069
|
+
|
|
1070
|
+
// src/gen/zod/inputTokensDetailsSchema.ts
|
|
1071
|
+
var import_zod69 = require("zod");
|
|
1072
|
+
var inputTokensDetailsSchema = import_zod69.z.object({
|
|
1073
|
+
"cached_tokens": import_zod69.z.number().int().describe("The number of input tokens that were served from cache.")
|
|
1074
|
+
}).describe("A breakdown of input token usage that was recorded.");
|
|
1075
|
+
|
|
1076
|
+
// src/gen/zod/outputTokensDetailsSchema.ts
|
|
1077
|
+
var import_zod70 = require("zod");
|
|
1078
|
+
var outputTokensDetailsSchema = import_zod70.z.object({
|
|
1079
|
+
"reasoning_tokens": import_zod70.z.number().int().describe("The number of output tokens that were attributed to reasoning.")
|
|
1080
|
+
}).describe("A breakdown of output token usage that was recorded.");
|
|
1081
|
+
|
|
1082
|
+
// src/gen/zod/usageSchema.ts
|
|
1083
|
+
var import_zod71 = require("zod");
|
|
1084
|
+
var usageSchema = import_zod71.z.object({
|
|
1085
|
+
"input_tokens": import_zod71.z.number().int().describe("The number of input tokens that were used to generate the response."),
|
|
1086
|
+
"output_tokens": import_zod71.z.number().int().describe("The number of output tokens that were generated by the model."),
|
|
1087
|
+
"total_tokens": import_zod71.z.number().int().describe("The total number of tokens that were used."),
|
|
1088
|
+
"input_tokens_details": import_zod71.z.lazy(() => inputTokensDetailsSchema).and(import_zod71.z.any()),
|
|
1089
|
+
"output_tokens_details": import_zod71.z.lazy(() => outputTokensDetailsSchema).and(import_zod71.z.any())
|
|
1090
|
+
}).describe("Token usage statistics that were recorded for the response.");
|
|
1091
|
+
|
|
1092
|
+
// src/gen/zod/responseResourceSchema.ts
|
|
1093
|
+
var import_zod72 = require("zod");
|
|
1094
|
+
var responseResourceSchema = import_zod72.z.object({
|
|
1095
|
+
"id": import_zod72.z.string().describe("The unique ID of the response that was created."),
|
|
1096
|
+
"object": import_zod72.z.enum(["response"]).default("response").describe("The object type, which was always `response`."),
|
|
1097
|
+
"created_at": import_zod72.z.number().int().describe("The Unix timestamp (in seconds) for when the response was created."),
|
|
1098
|
+
"completed_at": import_zod72.z.union([import_zod72.z.number().int(), import_zod72.z.null()]),
|
|
1099
|
+
"status": import_zod72.z.string().describe("The status that was set for the response."),
|
|
1100
|
+
"incomplete_details": import_zod72.z.union([import_zod72.z.lazy(() => incompleteDetailsSchema).and(import_zod72.z.any()), import_zod72.z.null()]),
|
|
1101
|
+
"model": import_zod72.z.string().describe("The model that generated this response."),
|
|
1102
|
+
"previous_response_id": import_zod72.z.union([import_zod72.z.string(), import_zod72.z.null()]),
|
|
1103
|
+
"instructions": import_zod72.z.union([import_zod72.z.string(), import_zod72.z.null()]),
|
|
1104
|
+
"output": import_zod72.z.array(import_zod72.z.lazy(() => itemFieldSchema).describe("An item representing a message, tool call, tool output, reasoning, or other response element.")).describe("The output items that were generated by the model."),
|
|
1105
|
+
"error": import_zod72.z.union([import_zod72.z.lazy(() => errorSchema).and(import_zod72.z.any()), import_zod72.z.null()]),
|
|
1106
|
+
"tools": import_zod72.z.array(import_zod72.z.lazy(() => toolSchema).describe("A tool that can be used to generate a response.")).describe("The tools that were available to the model during response generation."),
|
|
1107
|
+
"tool_choice": import_zod72.z.union([import_zod72.z.lazy(() => functionToolChoiceSchema), import_zod72.z.lazy(() => toolChoiceValueEnumSchema), import_zod72.z.lazy(() => allowedToolChoiceSchema)]),
|
|
1108
|
+
"truncation": import_zod72.z.lazy(() => truncationEnumSchema).and(import_zod72.z.any()),
|
|
1109
|
+
"parallel_tool_calls": import_zod72.z.boolean().describe("Whether the model was allowed to call multiple tools in parallel."),
|
|
1110
|
+
"text": import_zod72.z.lazy(() => textFieldSchema).and(import_zod72.z.any()),
|
|
1111
|
+
"top_p": import_zod72.z.number().describe("The nucleus sampling parameter that was used for this response."),
|
|
1112
|
+
"presence_penalty": import_zod72.z.number().describe("The presence penalty that was used to penalize new tokens based on whether they appear in the text so far."),
|
|
1113
|
+
"frequency_penalty": import_zod72.z.number().describe("The frequency penalty that was used to penalize new tokens based on their frequency in the text so far."),
|
|
1114
|
+
"top_logprobs": import_zod72.z.number().int().describe("The number of most likely tokens that were returned at each position, along with their log probabilities."),
|
|
1115
|
+
"temperature": import_zod72.z.number().describe("The sampling temperature that was used for this response."),
|
|
1116
|
+
"reasoning": import_zod72.z.union([import_zod72.z.lazy(() => reasoningSchema).and(import_zod72.z.any()), import_zod72.z.null()]),
|
|
1117
|
+
"usage": import_zod72.z.union([import_zod72.z.lazy(() => usageSchema).and(import_zod72.z.any()), import_zod72.z.null()]),
|
|
1118
|
+
"max_output_tokens": import_zod72.z.union([import_zod72.z.number().int(), import_zod72.z.null()]),
|
|
1119
|
+
"max_tool_calls": import_zod72.z.union([import_zod72.z.number().int(), import_zod72.z.null()]),
|
|
1120
|
+
"store": import_zod72.z.boolean().describe("Whether this response was stored so it can be retrieved later."),
|
|
1121
|
+
"background": import_zod72.z.boolean().describe("Whether this request was run in the background."),
|
|
1122
|
+
"service_tier": import_zod72.z.string().describe("The service tier that was used for this response."),
|
|
1123
|
+
"metadata": import_zod72.z.any().describe("Developer-defined metadata that was associated with the response."),
|
|
1124
|
+
"safety_identifier": import_zod72.z.union([import_zod72.z.string(), import_zod72.z.null()]),
|
|
1125
|
+
"prompt_cache_key": import_zod72.z.union([import_zod72.z.string(), import_zod72.z.null()])
|
|
1126
|
+
}).describe("The complete response object that was returned by the Responses API.");
|
|
1127
|
+
|
|
1128
|
+
// src/gen/zod/createresponseSchema.ts
|
|
1129
|
+
var import_zod73 = require("zod");
|
|
1130
|
+
var createresponse200Schema = import_zod73.z.lazy(() => responseResourceSchema).describe("The complete response object that was returned by the Responses API.");
|
|
1131
|
+
var createresponseMutationRequestSchema = import_zod73.z.lazy(() => createResponseBodySchema);
|
|
1132
|
+
var createresponseMutationResponseSchema = import_zod73.z.lazy(() => createresponse200Schema);
|
|
1133
|
+
|
|
1134
|
+
// src/gen/zod/detailEnumSchema.ts
|
|
1135
|
+
var import_zod74 = require("zod");
|
|
1136
|
+
var detailEnumSchema = import_zod74.z.enum(["low", "high", "auto"]);
|
|
1137
|
+
|
|
1138
|
+
// src/gen/zod/developerMessageItemParamSchema.ts
|
|
1139
|
+
var import_zod75 = require("zod");
|
|
1140
|
+
var developerMessageItemParamSchema = import_zod75.z.object({
|
|
1141
|
+
"id": import_zod75.z.optional(import_zod75.z.union([import_zod75.z.string(), import_zod75.z.null()])),
|
|
1142
|
+
"type": import_zod75.z.enum(["message"]).default("message").describe("The item type. Always `message`."),
|
|
1143
|
+
"role": import_zod75.z.enum(["developer"]).default("developer").describe("The message role. Always `developer`."),
|
|
1144
|
+
"content": import_zod75.z.union([import_zod75.z.array(import_zod75.z.lazy(() => inputTextContentParamSchema).and(import_zod75.z.object({
|
|
1145
|
+
"type": import_zod75.z.literal("input_text")
|
|
1146
|
+
}))), import_zod75.z.string()]).describe("The message content, as an array of content parts."),
|
|
1147
|
+
"status": import_zod75.z.optional(import_zod75.z.union([import_zod75.z.string(), import_zod75.z.null()]))
|
|
1148
|
+
});
|
|
1149
|
+
|
|
1150
|
+
// src/gen/zod/errorPayloadSchema.ts
|
|
1151
|
+
var import_zod76 = require("zod");
|
|
1152
|
+
var errorPayloadSchema = import_zod76.z.object({
|
|
1153
|
+
"type": import_zod76.z.string().describe("The error type that was emitted."),
|
|
1154
|
+
"code": import_zod76.z.union([import_zod76.z.string(), import_zod76.z.null()]),
|
|
1155
|
+
"message": import_zod76.z.string().describe("The human-readable error message that was emitted."),
|
|
1156
|
+
"param": import_zod76.z.union([import_zod76.z.string(), import_zod76.z.null()]),
|
|
1157
|
+
"headers": import_zod76.z.optional(import_zod76.z.object({}).catchall(import_zod76.z.string().describe("The header value that was emitted.")).describe("The response headers that were emitted with the error, if any."))
|
|
1158
|
+
}).describe("An error payload that was emitted for a streaming error event.");
|
|
1159
|
+
|
|
1160
|
+
// src/gen/zod/errorStreamingEventSchema.ts
|
|
1161
|
+
var import_zod77 = require("zod");
|
|
1162
|
+
var errorStreamingEventSchema = import_zod77.z.object({
|
|
1163
|
+
"type": import_zod77.z.enum(["error"]).default("error").describe("The type of the event, always `error`."),
|
|
1164
|
+
"sequence_number": import_zod77.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
1165
|
+
"error": import_zod77.z.lazy(() => errorPayloadSchema).and(import_zod77.z.any())
|
|
1166
|
+
}).describe("A streaming event that indicated an error was emitted.");
|
|
1167
|
+
|
|
1168
|
+
// src/gen/zod/functionCallItemStatusSchema.ts
|
|
1169
|
+
var import_zod78 = require("zod");
|
|
1170
|
+
var functionCallItemStatusSchema = import_zod78.z.enum(["in_progress", "completed", "incomplete"]);
|
|
1171
|
+
|
|
1172
|
+
// src/gen/zod/responseCompletedStreamingEventSchema.ts
|
|
1173
|
+
var import_zod79 = require("zod");
|
|
1174
|
+
var responseCompletedStreamingEventSchema = import_zod79.z.object({
|
|
1175
|
+
"type": import_zod79.z.enum(["response.completed"]).default("response.completed").describe("The type of the event, always `response.completed`."),
|
|
1176
|
+
"sequence_number": import_zod79.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
1177
|
+
"response": import_zod79.z.lazy(() => responseResourceSchema).and(import_zod79.z.any())
|
|
1178
|
+
}).describe("A streaming event that indicated the response was completed.");
|
|
1179
|
+
|
|
1180
|
+
// src/gen/zod/responseContentPartAddedStreamingEventSchema.ts
|
|
1181
|
+
var import_zod80 = require("zod");
|
|
1182
|
+
var responseContentPartAddedStreamingEventSchema = import_zod80.z.object({
|
|
1183
|
+
"type": import_zod80.z.enum(["response.content_part.added"]).default("response.content_part.added").describe("The type of the event, always `response.content_part.added`."),
|
|
1184
|
+
"sequence_number": import_zod80.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
1185
|
+
"item_id": import_zod80.z.string().describe("The ID of the item that was updated."),
|
|
1186
|
+
"output_index": import_zod80.z.number().int().describe("The index of the output item that was updated."),
|
|
1187
|
+
"content_index": import_zod80.z.number().int().describe("The index of the content part that was added."),
|
|
1188
|
+
"part": import_zod80.z.union([import_zod80.z.lazy(() => inputTextContentSchema).and(import_zod80.z.object({
|
|
1189
|
+
"type": import_zod80.z.literal("input_text")
|
|
1190
|
+
})), import_zod80.z.lazy(() => outputTextContentSchema).and(import_zod80.z.object({
|
|
1191
|
+
"type": import_zod80.z.literal("output_text")
|
|
1192
|
+
})), import_zod80.z.lazy(() => textContentSchema).and(import_zod80.z.object({
|
|
1193
|
+
"type": import_zod80.z.literal("text")
|
|
1194
|
+
})), import_zod80.z.lazy(() => summaryTextContentSchema).and(import_zod80.z.object({
|
|
1195
|
+
"type": import_zod80.z.literal("summary_text")
|
|
1196
|
+
})), import_zod80.z.lazy(() => reasoningTextContentSchema).and(import_zod80.z.object({
|
|
1197
|
+
"type": import_zod80.z.literal("reasoning_text")
|
|
1198
|
+
})), import_zod80.z.lazy(() => refusalContentSchema).and(import_zod80.z.object({
|
|
1199
|
+
"type": import_zod80.z.literal("refusal")
|
|
1200
|
+
})), import_zod80.z.lazy(() => inputImageContentSchema).and(import_zod80.z.object({
|
|
1201
|
+
"type": import_zod80.z.literal("input_image")
|
|
1202
|
+
})), import_zod80.z.lazy(() => inputFileContentSchema).and(import_zod80.z.object({
|
|
1203
|
+
"type": import_zod80.z.literal("input_file")
|
|
1204
|
+
}))]).describe("A content part that makes up an input or output item.")
|
|
1205
|
+
}).describe("A streaming event that indicated a content part was added.");
|
|
1206
|
+
|
|
1207
|
+
// src/gen/zod/responseContentPartDoneStreamingEventSchema.ts
|
|
1208
|
+
var import_zod81 = require("zod");
|
|
1209
|
+
var responseContentPartDoneStreamingEventSchema = import_zod81.z.object({
|
|
1210
|
+
"type": import_zod81.z.enum(["response.content_part.done"]).default("response.content_part.done").describe("The type of the event, always `response.content_part.done`."),
|
|
1211
|
+
"sequence_number": import_zod81.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
1212
|
+
"item_id": import_zod81.z.string().describe("The ID of the item that was updated."),
|
|
1213
|
+
"output_index": import_zod81.z.number().int().describe("The index of the output item that was updated."),
|
|
1214
|
+
"content_index": import_zod81.z.number().int().describe("The index of the content part that was completed."),
|
|
1215
|
+
"part": import_zod81.z.union([import_zod81.z.lazy(() => inputTextContentSchema).and(import_zod81.z.object({
|
|
1216
|
+
"type": import_zod81.z.literal("input_text")
|
|
1217
|
+
})), import_zod81.z.lazy(() => outputTextContentSchema).and(import_zod81.z.object({
|
|
1218
|
+
"type": import_zod81.z.literal("output_text")
|
|
1219
|
+
})), import_zod81.z.lazy(() => textContentSchema).and(import_zod81.z.object({
|
|
1220
|
+
"type": import_zod81.z.literal("text")
|
|
1221
|
+
})), import_zod81.z.lazy(() => summaryTextContentSchema).and(import_zod81.z.object({
|
|
1222
|
+
"type": import_zod81.z.literal("summary_text")
|
|
1223
|
+
})), import_zod81.z.lazy(() => reasoningTextContentSchema).and(import_zod81.z.object({
|
|
1224
|
+
"type": import_zod81.z.literal("reasoning_text")
|
|
1225
|
+
})), import_zod81.z.lazy(() => refusalContentSchema).and(import_zod81.z.object({
|
|
1226
|
+
"type": import_zod81.z.literal("refusal")
|
|
1227
|
+
})), import_zod81.z.lazy(() => inputImageContentSchema).and(import_zod81.z.object({
|
|
1228
|
+
"type": import_zod81.z.literal("input_image")
|
|
1229
|
+
})), import_zod81.z.lazy(() => inputFileContentSchema).and(import_zod81.z.object({
|
|
1230
|
+
"type": import_zod81.z.literal("input_file")
|
|
1231
|
+
}))]).describe("A content part that makes up an input or output item.")
|
|
1232
|
+
}).describe("A streaming event that indicated a content part was completed.");
|
|
1233
|
+
|
|
1234
|
+
// src/gen/zod/responseCreatedStreamingEventSchema.ts
|
|
1235
|
+
var import_zod82 = require("zod");
|
|
1236
|
+
var responseCreatedStreamingEventSchema = import_zod82.z.object({
|
|
1237
|
+
"type": import_zod82.z.enum(["response.created"]).default("response.created").describe("The type of the event, always `response.created`."),
|
|
1238
|
+
"sequence_number": import_zod82.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
1239
|
+
"response": import_zod82.z.lazy(() => responseResourceSchema).and(import_zod82.z.any())
|
|
1240
|
+
}).describe("A streaming event that indicated the response was created.");
|
|
1241
|
+
|
|
1242
|
+
// src/gen/zod/responseFailedStreamingEventSchema.ts
|
|
1243
|
+
var import_zod83 = require("zod");
|
|
1244
|
+
var responseFailedStreamingEventSchema = import_zod83.z.object({
|
|
1245
|
+
"type": import_zod83.z.enum(["response.failed"]).default("response.failed").describe("The type of the event, always `response.failed`."),
|
|
1246
|
+
"sequence_number": import_zod83.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
1247
|
+
"response": import_zod83.z.lazy(() => responseResourceSchema).and(import_zod83.z.any())
|
|
1248
|
+
}).describe("A streaming event that indicated the response had failed.");
|
|
1249
|
+
|
|
1250
|
+
// src/gen/zod/responseFunctionCallArgumentsDeltaStreamingEventSchema.ts
|
|
1251
|
+
var import_zod84 = require("zod");
|
|
1252
|
+
var responseFunctionCallArgumentsDeltaStreamingEventSchema = import_zod84.z.object({
|
|
1253
|
+
"type": import_zod84.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`."),
|
|
1254
|
+
"sequence_number": import_zod84.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
1255
|
+
"item_id": import_zod84.z.string().describe("The ID of the tool call item that was updated."),
|
|
1256
|
+
"output_index": import_zod84.z.number().int().describe("The index of the output item that was updated."),
|
|
1257
|
+
"delta": import_zod84.z.string().describe("The arguments delta that was appended."),
|
|
1258
|
+
"obfuscation": import_zod84.z.optional(import_zod84.z.string().describe("An obfuscation string that was added to pad the event payload."))
|
|
1259
|
+
}).describe("A streaming event that indicated function call arguments were incrementally added.");
|
|
1260
|
+
|
|
1261
|
+
// src/gen/zod/responseFunctionCallArgumentsDoneStreamingEventSchema.ts
|
|
1262
|
+
var import_zod85 = require("zod");
|
|
1263
|
+
var responseFunctionCallArgumentsDoneStreamingEventSchema = import_zod85.z.object({
|
|
1264
|
+
"type": import_zod85.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`."),
|
|
1265
|
+
"sequence_number": import_zod85.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
1266
|
+
"item_id": import_zod85.z.string().describe("The ID of the tool call item that was updated."),
|
|
1267
|
+
"output_index": import_zod85.z.number().int().describe("The index of the output item that was updated."),
|
|
1268
|
+
"arguments": import_zod85.z.string().describe("The final arguments string that was emitted.")
|
|
1269
|
+
}).describe("A streaming event that indicated function call arguments were completed.");
|
|
1270
|
+
|
|
1271
|
+
// src/gen/zod/responseIncompleteStreamingEventSchema.ts
|
|
1272
|
+
var import_zod86 = require("zod");
|
|
1273
|
+
var responseIncompleteStreamingEventSchema = import_zod86.z.object({
|
|
1274
|
+
"type": import_zod86.z.enum(["response.incomplete"]).default("response.incomplete").describe("The type of the event, always `response.incomplete`."),
|
|
1275
|
+
"sequence_number": import_zod86.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
1276
|
+
"response": import_zod86.z.lazy(() => responseResourceSchema).and(import_zod86.z.any())
|
|
1277
|
+
}).describe("A streaming event that indicated the response was incomplete.");
|
|
1278
|
+
|
|
1279
|
+
// src/gen/zod/responseInProgressStreamingEventSchema.ts
|
|
1280
|
+
var import_zod87 = require("zod");
|
|
1281
|
+
var responseInProgressStreamingEventSchema = import_zod87.z.object({
|
|
1282
|
+
"type": import_zod87.z.enum(["response.in_progress"]).default("response.in_progress").describe("The type of the event, always `response.in_progress`."),
|
|
1283
|
+
"sequence_number": import_zod87.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
1284
|
+
"response": import_zod87.z.lazy(() => responseResourceSchema).and(import_zod87.z.any())
|
|
1285
|
+
}).describe("A streaming event that indicated the response was in progress.");
|
|
1286
|
+
|
|
1287
|
+
// src/gen/zod/responseOutputItemAddedStreamingEventSchema.ts
|
|
1288
|
+
var import_zod88 = require("zod");
|
|
1289
|
+
var responseOutputItemAddedStreamingEventSchema = import_zod88.z.object({
|
|
1290
|
+
"type": import_zod88.z.enum(["response.output_item.added"]).default("response.output_item.added").describe("The type of the event, always `response.output_item.added`."),
|
|
1291
|
+
"sequence_number": import_zod88.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
1292
|
+
"output_index": import_zod88.z.number().int().describe("The index of the output item that was added."),
|
|
1293
|
+
"item": import_zod88.z.union([import_zod88.z.lazy(() => itemFieldSchema).and(import_zod88.z.any()), import_zod88.z.null()])
|
|
1294
|
+
}).describe("A streaming event that indicated an output item was added to the response.");
|
|
1295
|
+
|
|
1296
|
+
// src/gen/zod/responseOutputItemDoneStreamingEventSchema.ts
|
|
1297
|
+
var import_zod89 = require("zod");
|
|
1298
|
+
var responseOutputItemDoneStreamingEventSchema = import_zod89.z.object({
|
|
1299
|
+
"type": import_zod89.z.enum(["response.output_item.done"]).default("response.output_item.done").describe("The type of the event, always `response.output_item.done`."),
|
|
1300
|
+
"sequence_number": import_zod89.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
1301
|
+
"output_index": import_zod89.z.number().int().describe("The index of the output item that was completed."),
|
|
1302
|
+
"item": import_zod89.z.union([import_zod89.z.lazy(() => itemFieldSchema).and(import_zod89.z.any()), import_zod89.z.null()])
|
|
1303
|
+
}).describe("A streaming event that indicated an output item was completed.");
|
|
1304
|
+
|
|
1305
|
+
// src/gen/zod/responseOutputTextAnnotationAddedStreamingEventSchema.ts
|
|
1306
|
+
var import_zod90 = require("zod");
|
|
1307
|
+
var responseOutputTextAnnotationAddedStreamingEventSchema = import_zod90.z.object({
|
|
1308
|
+
"type": import_zod90.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`."),
|
|
1309
|
+
"sequence_number": import_zod90.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
1310
|
+
"item_id": import_zod90.z.string().describe("The ID of the item that was updated."),
|
|
1311
|
+
"output_index": import_zod90.z.number().int().describe("The index of the output item that was updated."),
|
|
1312
|
+
"content_index": import_zod90.z.number().int().describe("The index of the output text content that was updated."),
|
|
1313
|
+
"annotation_index": import_zod90.z.number().int().describe("The index of the annotation that was added."),
|
|
1314
|
+
"annotation": import_zod90.z.union([import_zod90.z.lazy(() => annotationSchema).and(import_zod90.z.any()), import_zod90.z.null()])
|
|
1315
|
+
}).describe("A streaming event that indicated an output text annotation was added.");
|
|
1316
|
+
|
|
1317
|
+
// src/gen/zod/responseOutputTextDeltaStreamingEventSchema.ts
|
|
1318
|
+
var import_zod91 = require("zod");
|
|
1319
|
+
var responseOutputTextDeltaStreamingEventSchema = import_zod91.z.object({
|
|
1320
|
+
"type": import_zod91.z.enum(["response.output_text.delta"]).default("response.output_text.delta").describe("The type of the event, always `response.output_text.delta`."),
|
|
1321
|
+
"sequence_number": import_zod91.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
1322
|
+
"item_id": import_zod91.z.string().describe("The ID of the item that was updated."),
|
|
1323
|
+
"output_index": import_zod91.z.number().int().describe("The index of the output item that was updated."),
|
|
1324
|
+
"content_index": import_zod91.z.number().int().describe("The index of the content part that was updated."),
|
|
1325
|
+
"delta": import_zod91.z.string().describe("The text delta that was appended."),
|
|
1326
|
+
"logprobs": import_zod91.z.array(import_zod91.z.lazy(() => logProbSchema).describe("The log probability of a token.")).describe("The token log probabilities that were emitted with the delta, if any."),
|
|
1327
|
+
"obfuscation": import_zod91.z.optional(import_zod91.z.string().describe("An obfuscation string that was added to pad the event payload."))
|
|
1328
|
+
}).describe("A streaming event that indicated output text was incrementally added.");
|
|
1329
|
+
|
|
1330
|
+
// src/gen/zod/responseOutputTextDoneStreamingEventSchema.ts
|
|
1331
|
+
var import_zod92 = require("zod");
|
|
1332
|
+
var responseOutputTextDoneStreamingEventSchema = import_zod92.z.object({
|
|
1333
|
+
"type": import_zod92.z.enum(["response.output_text.done"]).default("response.output_text.done").describe("The type of the event, always `response.output_text.done`."),
|
|
1334
|
+
"sequence_number": import_zod92.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
1335
|
+
"item_id": import_zod92.z.string().describe("The ID of the item that was updated."),
|
|
1336
|
+
"output_index": import_zod92.z.number().int().describe("The index of the output item that was updated."),
|
|
1337
|
+
"content_index": import_zod92.z.number().int().describe("The index of the content part that was completed."),
|
|
1338
|
+
"text": import_zod92.z.string().describe("The final text that was emitted."),
|
|
1339
|
+
"logprobs": import_zod92.z.array(import_zod92.z.lazy(() => logProbSchema).describe("The log probability of a token.")).describe("The token log probabilities that were emitted with the final text, if any.")
|
|
1340
|
+
}).describe("A streaming event that indicated output text was completed.");
|
|
1341
|
+
|
|
1342
|
+
// src/gen/zod/responseQueuedStreamingEventSchema.ts
|
|
1343
|
+
var import_zod93 = require("zod");
|
|
1344
|
+
var responseQueuedStreamingEventSchema = import_zod93.z.object({
|
|
1345
|
+
"type": import_zod93.z.enum(["response.queued"]).default("response.queued").describe("The type of the event, always `response.queued`."),
|
|
1346
|
+
"sequence_number": import_zod93.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
1347
|
+
"response": import_zod93.z.lazy(() => responseResourceSchema).and(import_zod93.z.any())
|
|
1348
|
+
}).describe("A streaming event that indicated the response was queued.");
|
|
1349
|
+
|
|
1350
|
+
// src/gen/zod/responseReasoningDeltaStreamingEventSchema.ts
|
|
1351
|
+
var import_zod94 = require("zod");
|
|
1352
|
+
var responseReasoningDeltaStreamingEventSchema = import_zod94.z.object({
|
|
1353
|
+
"type": import_zod94.z.enum(["response.reasoning.delta"]).default("response.reasoning.delta").describe("The type of the event, always `response.reasoning.delta`."),
|
|
1354
|
+
"sequence_number": import_zod94.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
1355
|
+
"item_id": import_zod94.z.string().describe("The ID of the item that was updated."),
|
|
1356
|
+
"output_index": import_zod94.z.number().int().describe("The index of the output item that was updated."),
|
|
1357
|
+
"content_index": import_zod94.z.number().int().describe("The index of the reasoning content that was updated."),
|
|
1358
|
+
"delta": import_zod94.z.string().describe("The reasoning text delta that was appended."),
|
|
1359
|
+
"obfuscation": import_zod94.z.optional(import_zod94.z.string().describe("An obfuscation string that was added to pad the event payload."))
|
|
1360
|
+
}).describe("A streaming event that indicated reasoning text was incrementally added.");
|
|
1361
|
+
|
|
1362
|
+
// src/gen/zod/responseReasoningDoneStreamingEventSchema.ts
|
|
1363
|
+
var import_zod95 = require("zod");
|
|
1364
|
+
var responseReasoningDoneStreamingEventSchema = import_zod95.z.object({
|
|
1365
|
+
"type": import_zod95.z.enum(["response.reasoning.done"]).default("response.reasoning.done").describe("The type of the event, always `response.reasoning.done`."),
|
|
1366
|
+
"sequence_number": import_zod95.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
1367
|
+
"item_id": import_zod95.z.string().describe("The ID of the item that was updated."),
|
|
1368
|
+
"output_index": import_zod95.z.number().int().describe("The index of the output item that was updated."),
|
|
1369
|
+
"content_index": import_zod95.z.number().int().describe("The index of the reasoning content that was completed."),
|
|
1370
|
+
"text": import_zod95.z.string().describe("The final reasoning text that was emitted.")
|
|
1371
|
+
}).describe("A streaming event that indicated reasoning text was completed.");
|
|
1372
|
+
|
|
1373
|
+
// src/gen/zod/responseReasoningSummaryDeltaStreamingEventSchema.ts
|
|
1374
|
+
var import_zod96 = require("zod");
|
|
1375
|
+
var responseReasoningSummaryDeltaStreamingEventSchema = import_zod96.z.object({
|
|
1376
|
+
"type": import_zod96.z.enum(["response.reasoning_summary_text.delta"]).default("response.reasoning_summary_text.delta").describe("The type of the event, always `response.reasoning_summary.delta`."),
|
|
1377
|
+
"sequence_number": import_zod96.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
1378
|
+
"item_id": import_zod96.z.string().describe("The ID of the item that was updated."),
|
|
1379
|
+
"output_index": import_zod96.z.number().int().describe("The index of the output item that was updated."),
|
|
1380
|
+
"summary_index": import_zod96.z.number().int().describe("The index of the summary content that was updated."),
|
|
1381
|
+
"delta": import_zod96.z.string().describe("The summary text delta that was appended."),
|
|
1382
|
+
"obfuscation": import_zod96.z.optional(import_zod96.z.string().describe("An obfuscation string that was added to pad the event payload."))
|
|
1383
|
+
}).describe("A streaming event that indicated a reasoning summary was incrementally added.");
|
|
1384
|
+
|
|
1385
|
+
// src/gen/zod/responseReasoningSummaryDoneStreamingEventSchema.ts
|
|
1386
|
+
var import_zod97 = require("zod");
|
|
1387
|
+
var responseReasoningSummaryDoneStreamingEventSchema = import_zod97.z.object({
|
|
1388
|
+
"type": import_zod97.z.enum(["response.reasoning_summary_text.done"]).default("response.reasoning_summary_text.done").describe("The type of the event, always `response.reasoning_summary.done`."),
|
|
1389
|
+
"sequence_number": import_zod97.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
1390
|
+
"item_id": import_zod97.z.string().describe("The ID of the item that was updated."),
|
|
1391
|
+
"output_index": import_zod97.z.number().int().describe("The index of the output item that was updated."),
|
|
1392
|
+
"summary_index": import_zod97.z.number().int().describe("The index of the summary content that was completed."),
|
|
1393
|
+
"text": import_zod97.z.string().describe("The final summary text that was emitted.")
|
|
1394
|
+
}).describe("A streaming event that indicated a reasoning summary was completed.");
|
|
1395
|
+
|
|
1396
|
+
// src/gen/zod/responseReasoningSummaryPartAddedStreamingEventSchema.ts
|
|
1397
|
+
var import_zod98 = require("zod");
|
|
1398
|
+
var responseReasoningSummaryPartAddedStreamingEventSchema = import_zod98.z.object({
|
|
1399
|
+
"type": import_zod98.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`."),
|
|
1400
|
+
"sequence_number": import_zod98.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
1401
|
+
"item_id": import_zod98.z.string().describe("The ID of the item that was updated."),
|
|
1402
|
+
"output_index": import_zod98.z.number().int().describe("The index of the output item that was updated."),
|
|
1403
|
+
"summary_index": import_zod98.z.number().int().describe("The index of the summary part that was added."),
|
|
1404
|
+
"part": import_zod98.z.union([import_zod98.z.lazy(() => inputTextContentSchema).and(import_zod98.z.object({
|
|
1405
|
+
"type": import_zod98.z.literal("input_text")
|
|
1406
|
+
})), import_zod98.z.lazy(() => outputTextContentSchema).and(import_zod98.z.object({
|
|
1407
|
+
"type": import_zod98.z.literal("output_text")
|
|
1408
|
+
})), import_zod98.z.lazy(() => textContentSchema).and(import_zod98.z.object({
|
|
1409
|
+
"type": import_zod98.z.literal("text")
|
|
1410
|
+
})), import_zod98.z.lazy(() => summaryTextContentSchema).and(import_zod98.z.object({
|
|
1411
|
+
"type": import_zod98.z.literal("summary_text")
|
|
1412
|
+
})), import_zod98.z.lazy(() => reasoningTextContentSchema).and(import_zod98.z.object({
|
|
1413
|
+
"type": import_zod98.z.literal("reasoning_text")
|
|
1414
|
+
})), import_zod98.z.lazy(() => refusalContentSchema).and(import_zod98.z.object({
|
|
1415
|
+
"type": import_zod98.z.literal("refusal")
|
|
1416
|
+
})), import_zod98.z.lazy(() => inputImageContentSchema).and(import_zod98.z.object({
|
|
1417
|
+
"type": import_zod98.z.literal("input_image")
|
|
1418
|
+
})), import_zod98.z.lazy(() => inputFileContentSchema).and(import_zod98.z.object({
|
|
1419
|
+
"type": import_zod98.z.literal("input_file")
|
|
1420
|
+
}))]).describe("A content part that makes up an input or output item.")
|
|
1421
|
+
}).describe("A streaming event that indicated a reasoning summary part was added.");
|
|
1422
|
+
|
|
1423
|
+
// src/gen/zod/responseReasoningSummaryPartDoneStreamingEventSchema.ts
|
|
1424
|
+
var import_zod99 = require("zod");
|
|
1425
|
+
var responseReasoningSummaryPartDoneStreamingEventSchema = import_zod99.z.object({
|
|
1426
|
+
"type": import_zod99.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`."),
|
|
1427
|
+
"sequence_number": import_zod99.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
1428
|
+
"item_id": import_zod99.z.string().describe("The ID of the item that was updated."),
|
|
1429
|
+
"output_index": import_zod99.z.number().int().describe("The index of the output item that was updated."),
|
|
1430
|
+
"summary_index": import_zod99.z.number().int().describe("The index of the summary part that was completed."),
|
|
1431
|
+
"part": import_zod99.z.union([import_zod99.z.lazy(() => inputTextContentSchema).and(import_zod99.z.object({
|
|
1432
|
+
"type": import_zod99.z.literal("input_text")
|
|
1433
|
+
})), import_zod99.z.lazy(() => outputTextContentSchema).and(import_zod99.z.object({
|
|
1434
|
+
"type": import_zod99.z.literal("output_text")
|
|
1435
|
+
})), import_zod99.z.lazy(() => textContentSchema).and(import_zod99.z.object({
|
|
1436
|
+
"type": import_zod99.z.literal("text")
|
|
1437
|
+
})), import_zod99.z.lazy(() => summaryTextContentSchema).and(import_zod99.z.object({
|
|
1438
|
+
"type": import_zod99.z.literal("summary_text")
|
|
1439
|
+
})), import_zod99.z.lazy(() => reasoningTextContentSchema).and(import_zod99.z.object({
|
|
1440
|
+
"type": import_zod99.z.literal("reasoning_text")
|
|
1441
|
+
})), import_zod99.z.lazy(() => refusalContentSchema).and(import_zod99.z.object({
|
|
1442
|
+
"type": import_zod99.z.literal("refusal")
|
|
1443
|
+
})), import_zod99.z.lazy(() => inputImageContentSchema).and(import_zod99.z.object({
|
|
1444
|
+
"type": import_zod99.z.literal("input_image")
|
|
1445
|
+
})), import_zod99.z.lazy(() => inputFileContentSchema).and(import_zod99.z.object({
|
|
1446
|
+
"type": import_zod99.z.literal("input_file")
|
|
1447
|
+
}))]).describe("A content part that makes up an input or output item.")
|
|
1448
|
+
}).describe("A streaming event that indicated a reasoning summary part was completed.");
|
|
1449
|
+
|
|
1450
|
+
// src/gen/zod/responseRefusalDeltaStreamingEventSchema.ts
|
|
1451
|
+
var import_zod100 = require("zod");
|
|
1452
|
+
var responseRefusalDeltaStreamingEventSchema = import_zod100.z.object({
|
|
1453
|
+
"type": import_zod100.z.enum(["response.refusal.delta"]).default("response.refusal.delta").describe("The type of the event, always `response.refusal.delta`."),
|
|
1454
|
+
"sequence_number": import_zod100.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
1455
|
+
"item_id": import_zod100.z.string().describe("The ID of the item that was updated."),
|
|
1456
|
+
"output_index": import_zod100.z.number().int().describe("The index of the output item that was updated."),
|
|
1457
|
+
"content_index": import_zod100.z.number().int().describe("The index of the refusal content that was updated."),
|
|
1458
|
+
"delta": import_zod100.z.string().describe("The refusal text delta that was appended.")
|
|
1459
|
+
}).describe("A streaming event that indicated refusal text was incrementally added.");
|
|
1460
|
+
|
|
1461
|
+
// src/gen/zod/responseRefusalDoneStreamingEventSchema.ts
|
|
1462
|
+
var import_zod101 = require("zod");
|
|
1463
|
+
var responseRefusalDoneStreamingEventSchema = import_zod101.z.object({
|
|
1464
|
+
"type": import_zod101.z.enum(["response.refusal.done"]).default("response.refusal.done").describe("The type of the event, always `response.refusal.done`."),
|
|
1465
|
+
"sequence_number": import_zod101.z.number().int().describe("The sequence number of the event that was emitted."),
|
|
1466
|
+
"item_id": import_zod101.z.string().describe("The ID of the item that was updated."),
|
|
1467
|
+
"output_index": import_zod101.z.number().int().describe("The index of the output item that was updated."),
|
|
1468
|
+
"content_index": import_zod101.z.number().int().describe("The index of the refusal content that was completed."),
|
|
1469
|
+
"refusal": import_zod101.z.string().describe("The final refusal text that was emitted.")
|
|
1470
|
+
}).describe("A streaming event that indicated refusal text was completed.");
|
|
1471
|
+
|
|
1472
|
+
// src/gen/zod/systemMessageItemParamSchema.ts
|
|
1473
|
+
var import_zod102 = require("zod");
|
|
1474
|
+
var systemMessageItemParamSchema = import_zod102.z.object({
|
|
1475
|
+
"id": import_zod102.z.optional(import_zod102.z.union([import_zod102.z.string(), import_zod102.z.null()])),
|
|
1476
|
+
"type": import_zod102.z.enum(["message"]).default("message").describe("The item type. Always `message`."),
|
|
1477
|
+
"role": import_zod102.z.enum(["system"]).default("system").describe("The message role. Always `system`."),
|
|
1478
|
+
"content": import_zod102.z.union([import_zod102.z.array(import_zod102.z.lazy(() => inputTextContentParamSchema).and(import_zod102.z.object({
|
|
1479
|
+
"type": import_zod102.z.literal("input_text")
|
|
1480
|
+
}))), import_zod102.z.string()]).describe("The message content, as an array of content parts."),
|
|
1481
|
+
"status": import_zod102.z.optional(import_zod102.z.union([import_zod102.z.string(), import_zod102.z.null()]))
|
|
1482
|
+
});
|
|
1483
|
+
|
|
1484
|
+
// src/gen/zod/userMessageItemParamSchema.ts
|
|
1485
|
+
var import_zod103 = require("zod");
|
|
1486
|
+
var userMessageItemParamSchema = import_zod103.z.object({
|
|
1487
|
+
"id": import_zod103.z.optional(import_zod103.z.union([import_zod103.z.string(), import_zod103.z.null()])),
|
|
1488
|
+
"type": import_zod103.z.enum(["message"]).default("message").describe("The item type. Always `message`."),
|
|
1489
|
+
"role": import_zod103.z.enum(["user"]).default("user").describe("The message role. Always `user`."),
|
|
1490
|
+
"content": import_zod103.z.union([import_zod103.z.array(import_zod103.z.union([import_zod103.z.lazy(() => inputTextContentParamSchema).and(import_zod103.z.object({
|
|
1491
|
+
"type": import_zod103.z.literal("input_text")
|
|
1492
|
+
})), import_zod103.z.lazy(() => inputImageContentParamAutoParamSchema).and(import_zod103.z.object({
|
|
1493
|
+
"type": import_zod103.z.literal("input_image")
|
|
1494
|
+
})), import_zod103.z.lazy(() => inputFileContentParamSchema).and(import_zod103.z.object({
|
|
1495
|
+
"type": import_zod103.z.literal("input_file")
|
|
1496
|
+
}))]).describe("A piece of message content, such as text, an image, or a file.")), import_zod103.z.string()]).describe("The message content, as an array of content parts."),
|
|
1497
|
+
"status": import_zod103.z.optional(import_zod103.z.union([import_zod103.z.string(), import_zod103.z.null()]))
|
|
1498
|
+
});
|
|
1499
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1500
|
+
0 && (module.exports = {
|
|
1501
|
+
allowedToolChoiceSchema,
|
|
1502
|
+
allowedToolChoiceTypeEnum,
|
|
1503
|
+
allowedToolsParamSchema,
|
|
1504
|
+
allowedToolsParamTypeEnum,
|
|
1505
|
+
annotationSchema,
|
|
1506
|
+
assistantMessageItemParamRoleEnum,
|
|
1507
|
+
assistantMessageItemParamSchema,
|
|
1508
|
+
assistantMessageItemParamTypeEnum,
|
|
1509
|
+
createResponseBodySchema,
|
|
1510
|
+
createresponse200Schema,
|
|
1511
|
+
createresponseMutationRequestSchema,
|
|
1512
|
+
createresponseMutationResponseSchema,
|
|
1513
|
+
detailEnumEnum,
|
|
1514
|
+
detailEnumSchema,
|
|
1515
|
+
developerMessageItemParamRoleEnum,
|
|
1516
|
+
developerMessageItemParamSchema,
|
|
1517
|
+
developerMessageItemParamTypeEnum,
|
|
1518
|
+
emptyModelParamSchema,
|
|
1519
|
+
errorPayloadSchema,
|
|
1520
|
+
errorSchema,
|
|
1521
|
+
errorStreamingEventSchema,
|
|
1522
|
+
errorStreamingEventTypeEnum,
|
|
1523
|
+
functionCallItemParamSchema,
|
|
1524
|
+
functionCallItemParamTypeEnum,
|
|
1525
|
+
functionCallItemStatusEnum,
|
|
1526
|
+
functionCallItemStatusSchema,
|
|
1527
|
+
functionCallOutputItemParamSchema,
|
|
1528
|
+
functionCallOutputItemParamTypeEnum,
|
|
1529
|
+
functionCallOutputSchema,
|
|
1530
|
+
functionCallOutputStatusEnumEnum,
|
|
1531
|
+
functionCallOutputStatusEnumSchema,
|
|
1532
|
+
functionCallOutputTypeEnum,
|
|
1533
|
+
functionCallSchema,
|
|
1534
|
+
functionCallStatusEnum,
|
|
1535
|
+
functionCallStatusSchema,
|
|
1536
|
+
functionCallTypeEnum,
|
|
1537
|
+
functionToolChoiceSchema,
|
|
1538
|
+
functionToolChoiceTypeEnum,
|
|
1539
|
+
functionToolParamSchema,
|
|
1540
|
+
functionToolParamTypeEnum,
|
|
1541
|
+
functionToolSchema,
|
|
1542
|
+
functionToolTypeEnum,
|
|
1543
|
+
imageDetailEnum,
|
|
1544
|
+
imageDetailSchema,
|
|
1545
|
+
includeEnumEnum,
|
|
1546
|
+
includeEnumSchema,
|
|
1547
|
+
incompleteDetailsSchema,
|
|
1548
|
+
inputFileContentParamSchema,
|
|
1549
|
+
inputFileContentParamTypeEnum,
|
|
1550
|
+
inputFileContentSchema,
|
|
1551
|
+
inputFileContentTypeEnum,
|
|
1552
|
+
inputImageContentParamAutoParamSchema,
|
|
1553
|
+
inputImageContentParamAutoParamTypeEnum,
|
|
1554
|
+
inputImageContentSchema,
|
|
1555
|
+
inputImageContentTypeEnum,
|
|
1556
|
+
inputTextContentParamSchema,
|
|
1557
|
+
inputTextContentParamTypeEnum,
|
|
1558
|
+
inputTextContentSchema,
|
|
1559
|
+
inputTextContentTypeEnum,
|
|
1560
|
+
inputTokensDetailsSchema,
|
|
1561
|
+
inputVideoContentSchema,
|
|
1562
|
+
inputVideoContentTypeEnum,
|
|
1563
|
+
itemFieldSchema,
|
|
1564
|
+
itemParamSchema,
|
|
1565
|
+
itemReferenceParamSchema,
|
|
1566
|
+
itemReferenceParamTypeEnum,
|
|
1567
|
+
jsonObjectResponseFormatSchema,
|
|
1568
|
+
jsonObjectResponseFormatTypeEnum,
|
|
1569
|
+
jsonSchemaResponseFormatParamSchema,
|
|
1570
|
+
jsonSchemaResponseFormatParamTypeEnum,
|
|
1571
|
+
jsonSchemaResponseFormatSchema,
|
|
1572
|
+
jsonSchemaResponseFormatTypeEnum,
|
|
1573
|
+
logProbSchema,
|
|
1574
|
+
messageRoleEnum,
|
|
1575
|
+
messageRoleSchema,
|
|
1576
|
+
messageSchema,
|
|
1577
|
+
messageStatusEnum,
|
|
1578
|
+
messageStatusSchema,
|
|
1579
|
+
messageTypeEnum,
|
|
1580
|
+
metadataParamSchema,
|
|
1581
|
+
outputTextContentParamSchema,
|
|
1582
|
+
outputTextContentParamTypeEnum,
|
|
1583
|
+
outputTextContentSchema,
|
|
1584
|
+
outputTextContentTypeEnum,
|
|
1585
|
+
outputTokensDetailsSchema,
|
|
1586
|
+
reasoningBodySchema,
|
|
1587
|
+
reasoningBodyTypeEnum,
|
|
1588
|
+
reasoningEffortEnumEnum,
|
|
1589
|
+
reasoningEffortEnumSchema,
|
|
1590
|
+
reasoningItemParamSchema,
|
|
1591
|
+
reasoningItemParamTypeEnum,
|
|
1592
|
+
reasoningParamSchema,
|
|
1593
|
+
reasoningSchema,
|
|
1594
|
+
reasoningSummaryContentParamSchema,
|
|
1595
|
+
reasoningSummaryContentParamTypeEnum,
|
|
1596
|
+
reasoningSummaryEnumEnum,
|
|
1597
|
+
reasoningSummaryEnumSchema,
|
|
1598
|
+
reasoningTextContentSchema,
|
|
1599
|
+
reasoningTextContentTypeEnum,
|
|
1600
|
+
refusalContentParamSchema,
|
|
1601
|
+
refusalContentParamTypeEnum,
|
|
1602
|
+
refusalContentSchema,
|
|
1603
|
+
refusalContentTypeEnum,
|
|
1604
|
+
responseCompletedStreamingEventSchema,
|
|
1605
|
+
responseCompletedStreamingEventTypeEnum,
|
|
1606
|
+
responseContentPartAddedStreamingEventSchema,
|
|
1607
|
+
responseContentPartAddedStreamingEventTypeEnum,
|
|
1608
|
+
responseContentPartDoneStreamingEventSchema,
|
|
1609
|
+
responseContentPartDoneStreamingEventTypeEnum,
|
|
1610
|
+
responseCreatedStreamingEventSchema,
|
|
1611
|
+
responseCreatedStreamingEventTypeEnum,
|
|
1612
|
+
responseFailedStreamingEventSchema,
|
|
1613
|
+
responseFailedStreamingEventTypeEnum,
|
|
1614
|
+
responseFunctionCallArgumentsDeltaStreamingEventSchema,
|
|
1615
|
+
responseFunctionCallArgumentsDeltaStreamingEventTypeEnum,
|
|
1616
|
+
responseFunctionCallArgumentsDoneStreamingEventSchema,
|
|
1617
|
+
responseFunctionCallArgumentsDoneStreamingEventTypeEnum,
|
|
1618
|
+
responseInProgressStreamingEventSchema,
|
|
1619
|
+
responseInProgressStreamingEventTypeEnum,
|
|
1620
|
+
responseIncompleteStreamingEventSchema,
|
|
1621
|
+
responseIncompleteStreamingEventTypeEnum,
|
|
1622
|
+
responseOutputItemAddedStreamingEventSchema,
|
|
1623
|
+
responseOutputItemAddedStreamingEventTypeEnum,
|
|
1624
|
+
responseOutputItemDoneStreamingEventSchema,
|
|
1625
|
+
responseOutputItemDoneStreamingEventTypeEnum,
|
|
1626
|
+
responseOutputTextAnnotationAddedStreamingEventSchema,
|
|
1627
|
+
responseOutputTextAnnotationAddedStreamingEventTypeEnum,
|
|
1628
|
+
responseOutputTextDeltaStreamingEventSchema,
|
|
1629
|
+
responseOutputTextDeltaStreamingEventTypeEnum,
|
|
1630
|
+
responseOutputTextDoneStreamingEventSchema,
|
|
1631
|
+
responseOutputTextDoneStreamingEventTypeEnum,
|
|
1632
|
+
responseQueuedStreamingEventSchema,
|
|
1633
|
+
responseQueuedStreamingEventTypeEnum,
|
|
1634
|
+
responseReasoningDeltaStreamingEventSchema,
|
|
1635
|
+
responseReasoningDeltaStreamingEventTypeEnum,
|
|
1636
|
+
responseReasoningDoneStreamingEventSchema,
|
|
1637
|
+
responseReasoningDoneStreamingEventTypeEnum,
|
|
1638
|
+
responseReasoningSummaryDeltaStreamingEventSchema,
|
|
1639
|
+
responseReasoningSummaryDeltaStreamingEventTypeEnum,
|
|
1640
|
+
responseReasoningSummaryDoneStreamingEventSchema,
|
|
1641
|
+
responseReasoningSummaryDoneStreamingEventTypeEnum,
|
|
1642
|
+
responseReasoningSummaryPartAddedStreamingEventSchema,
|
|
1643
|
+
responseReasoningSummaryPartAddedStreamingEventTypeEnum,
|
|
1644
|
+
responseReasoningSummaryPartDoneStreamingEventSchema,
|
|
1645
|
+
responseReasoningSummaryPartDoneStreamingEventTypeEnum,
|
|
1646
|
+
responseRefusalDeltaStreamingEventSchema,
|
|
1647
|
+
responseRefusalDeltaStreamingEventTypeEnum,
|
|
1648
|
+
responseRefusalDoneStreamingEventSchema,
|
|
1649
|
+
responseRefusalDoneStreamingEventTypeEnum,
|
|
1650
|
+
responseResourceObjectEnum,
|
|
1651
|
+
responseResourceSchema,
|
|
1652
|
+
responsesToolParamSchema,
|
|
1653
|
+
serviceTierEnumEnum,
|
|
1654
|
+
serviceTierEnumSchema,
|
|
1655
|
+
specificFunctionParamSchema,
|
|
1656
|
+
specificFunctionParamTypeEnum,
|
|
1657
|
+
specificToolChoiceParamSchema,
|
|
1658
|
+
streamOptionsParamSchema,
|
|
1659
|
+
summaryTextContentSchema,
|
|
1660
|
+
summaryTextContentTypeEnum,
|
|
1661
|
+
systemMessageItemParamRoleEnum,
|
|
1662
|
+
systemMessageItemParamSchema,
|
|
1663
|
+
systemMessageItemParamTypeEnum,
|
|
1664
|
+
textContentSchema,
|
|
1665
|
+
textContentTypeEnum,
|
|
1666
|
+
textFieldSchema,
|
|
1667
|
+
textFormatParamSchema,
|
|
1668
|
+
textParamSchema,
|
|
1669
|
+
textResponseFormatSchema,
|
|
1670
|
+
textResponseFormatTypeEnum,
|
|
1671
|
+
toolChoiceParamSchema,
|
|
1672
|
+
toolChoiceValueEnumEnum,
|
|
1673
|
+
toolChoiceValueEnumSchema,
|
|
1674
|
+
toolSchema,
|
|
1675
|
+
topLogProbSchema,
|
|
1676
|
+
truncationEnumEnum,
|
|
1677
|
+
truncationEnumSchema,
|
|
1678
|
+
urlCitationBodySchema,
|
|
1679
|
+
urlCitationBodyTypeEnum,
|
|
1680
|
+
urlCitationParamSchema,
|
|
1681
|
+
urlCitationParamTypeEnum,
|
|
1682
|
+
usageSchema,
|
|
1683
|
+
userMessageItemParamRoleEnum,
|
|
1684
|
+
userMessageItemParamSchema,
|
|
1685
|
+
userMessageItemParamTypeEnum,
|
|
1686
|
+
verbosityEnumEnum,
|
|
1687
|
+
verbosityEnumSchema
|
|
1688
|
+
});
|