tekimax-ts 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dockerignore +5 -0
- package/Dockerfile +25 -0
- package/README.md +146 -0
- package/dist/gen/index.js +378 -0
- package/dist/gen/types.js +284 -0
- package/dist/gen/zod/allowedToolChoiceSchema.js +15 -0
- package/dist/gen/zod/allowedToolsParamSchema.js +15 -0
- package/dist/gen/zod/annotationSchema.js +15 -0
- package/dist/gen/zod/assistantMessageItemParamSchema.js +21 -0
- package/dist/gen/zod/createResponseBodySchema.js +46 -0
- package/dist/gen/zod/createresponseSchema.js +16 -0
- package/dist/gen/zod/detailEnumSchema.js +9 -0
- package/dist/gen/zod/developerMessageItemParamSchema.js +18 -0
- package/dist/gen/zod/emptyModelParamSchema.js +9 -0
- package/dist/gen/zod/errorPayloadSchema.js +18 -0
- package/dist/gen/zod/errorSchema.js +15 -0
- package/dist/gen/zod/errorStreamingEventSchema.js +17 -0
- package/dist/gen/zod/functionCallItemParamSchema.js +17 -0
- package/dist/gen/zod/functionCallItemStatusSchema.js +9 -0
- package/dist/gen/zod/functionCallOutputItemParamSchema.js +31 -0
- package/dist/gen/zod/functionCallOutputSchema.js +28 -0
- package/dist/gen/zod/functionCallOutputStatusEnumSchema.js +12 -0
- package/dist/gen/zod/functionCallSchema.js +20 -0
- package/dist/gen/zod/functionCallStatusSchema.js +9 -0
- package/dist/gen/zod/functionToolChoiceSchema.js +12 -0
- package/dist/gen/zod/functionToolParamSchema.js +16 -0
- package/dist/gen/zod/functionToolSchema.js +18 -0
- package/dist/gen/zod/imageDetailSchema.js +9 -0
- package/dist/gen/zod/includeEnumSchema.js +9 -0
- package/dist/gen/zod/incompleteDetailsSchema.js +14 -0
- package/dist/gen/zod/index.js +213 -0
- package/dist/gen/zod/inputFileContentParamSchema.js +17 -0
- package/dist/gen/zod/inputFileContentSchema.js +16 -0
- package/dist/gen/zod/inputImageContentParamAutoParamSchema.js +17 -0
- package/dist/gen/zod/inputImageContentSchema.js +17 -0
- package/dist/gen/zod/inputTextContentParamSchema.js +15 -0
- package/dist/gen/zod/inputTextContentSchema.js +15 -0
- package/dist/gen/zod/inputTokensDetailsSchema.js +14 -0
- package/dist/gen/zod/inputVideoContentSchema.js +15 -0
- package/dist/gen/zod/itemFieldSchema.js +24 -0
- package/dist/gen/zod/itemParamSchema.js +24 -0
- package/dist/gen/zod/itemReferenceParamSchema.js +15 -0
- package/dist/gen/zod/jsonObjectResponseFormatSchema.js +11 -0
- package/dist/gen/zod/jsonSchemaResponseFormatParamSchema.js +15 -0
- package/dist/gen/zod/jsonSchemaResponseFormatSchema.js +15 -0
- package/dist/gen/zod/logProbSchema.js +18 -0
- package/dist/gen/zod/messageRoleSchema.js +9 -0
- package/dist/gen/zod/messageSchema.js +47 -0
- package/dist/gen/zod/messageStatusSchema.js +9 -0
- package/dist/gen/zod/metadataParamSchema.js +12 -0
- package/dist/gen/zod/outputTextContentParamSchema.js +14 -0
- package/dist/gen/zod/outputTextContentSchema.js +19 -0
- package/dist/gen/zod/outputTokensDetailsSchema.js +14 -0
- package/dist/gen/zod/reasoningBodySchema.js +58 -0
- package/dist/gen/zod/reasoningEffortEnumSchema.js +9 -0
- package/dist/gen/zod/reasoningItemParamSchema.js +16 -0
- package/dist/gen/zod/reasoningParamSchema.js +17 -0
- package/dist/gen/zod/reasoningSchema.js +17 -0
- package/dist/gen/zod/reasoningSummaryContentParamSchema.js +12 -0
- package/dist/gen/zod/reasoningSummaryEnumSchema.js +9 -0
- package/dist/gen/zod/reasoningTextContentSchema.js +15 -0
- package/dist/gen/zod/refusalContentParamSchema.js +12 -0
- package/dist/gen/zod/refusalContentSchema.js +15 -0
- package/dist/gen/zod/responseCompletedStreamingEventSchema.js +17 -0
- package/dist/gen/zod/responseContentPartAddedStreamingEventSchema.js +43 -0
- package/dist/gen/zod/responseContentPartDoneStreamingEventSchema.js +43 -0
- package/dist/gen/zod/responseCreatedStreamingEventSchema.js +17 -0
- package/dist/gen/zod/responseFailedStreamingEventSchema.js +17 -0
- package/dist/gen/zod/responseFunctionCallArgumentsDeltaStreamingEventSchema.js +19 -0
- package/dist/gen/zod/responseFunctionCallArgumentsDoneStreamingEventSchema.js +18 -0
- package/dist/gen/zod/responseInProgressStreamingEventSchema.js +17 -0
- package/dist/gen/zod/responseIncompleteStreamingEventSchema.js +17 -0
- package/dist/gen/zod/responseOutputItemAddedStreamingEventSchema.js +18 -0
- package/dist/gen/zod/responseOutputItemDoneStreamingEventSchema.js +18 -0
- package/dist/gen/zod/responseOutputTextAnnotationAddedStreamingEventSchema.js +21 -0
- package/dist/gen/zod/responseOutputTextDeltaStreamingEventSchema.js +22 -0
- package/dist/gen/zod/responseOutputTextDoneStreamingEventSchema.js +21 -0
- package/dist/gen/zod/responseQueuedStreamingEventSchema.js +17 -0
- package/dist/gen/zod/responseReasoningDeltaStreamingEventSchema.js +20 -0
- package/dist/gen/zod/responseReasoningDoneStreamingEventSchema.js +19 -0
- package/dist/gen/zod/responseReasoningSummaryDeltaStreamingEventSchema.js +20 -0
- package/dist/gen/zod/responseReasoningSummaryDoneStreamingEventSchema.js +19 -0
- package/dist/gen/zod/responseReasoningSummaryPartAddedStreamingEventSchema.js +43 -0
- package/dist/gen/zod/responseReasoningSummaryPartDoneStreamingEventSchema.js +43 -0
- package/dist/gen/zod/responseRefusalDeltaStreamingEventSchema.js +19 -0
- package/dist/gen/zod/responseRefusalDoneStreamingEventSchema.js +19 -0
- package/dist/gen/zod/responseResourceSchema.js +55 -0
- package/dist/gen/zod/responsesToolParamSchema.js +12 -0
- package/dist/gen/zod/serviceTierEnumSchema.js +9 -0
- package/dist/gen/zod/specificFunctionParamSchema.js +12 -0
- package/dist/gen/zod/specificToolChoiceParamSchema.js +10 -0
- package/dist/gen/zod/streamOptionsParamSchema.js +14 -0
- package/dist/gen/zod/summaryTextContentSchema.js +15 -0
- package/dist/gen/zod/systemMessageItemParamSchema.js +18 -0
- package/dist/gen/zod/textContentSchema.js +15 -0
- package/dist/gen/zod/textFieldSchema.js +16 -0
- package/dist/gen/zod/textFormatParamSchema.js +11 -0
- package/dist/gen/zod/textParamSchema.js +14 -0
- package/dist/gen/zod/textResponseFormatSchema.js +11 -0
- package/dist/gen/zod/toolChoiceParamSchema.js +15 -0
- package/dist/gen/zod/toolChoiceValueEnumSchema.js +9 -0
- package/dist/gen/zod/toolSchema.js +15 -0
- package/dist/gen/zod/topLogProbSchema.js +16 -0
- package/dist/gen/zod/truncationEnumSchema.js +9 -0
- package/dist/gen/zod/urlCitationBodySchema.js +18 -0
- package/dist/gen/zod/urlCitationParamSchema.js +15 -0
- package/dist/gen/zod/usageSchema.js +20 -0
- package/dist/gen/zod/userMessageItemParamSchema.js +24 -0
- package/dist/gen/zod/verbosityEnumSchema.js +9 -0
- package/dist/index.d.mts +31636 -0
- package/dist/index.d.ts +31636 -0
- package/dist/index.js +1688 -0
- package/dist/index.mjs +1475 -0
- package/kubb.config.js +30 -0
- package/kubb.config.ts +29 -0
- package/package.json +48 -0
- package/public/logos/tekimax-logo-ScreenRGB-2.png +0 -0
- package/spec/openapi.json +3876 -0
- package/src/gen/index.ts +186 -0
- package/src/gen/schemas/allowedToolChoice.json +1 -0
- package/src/gen/schemas/allowedToolsParam.json +1 -0
- package/src/gen/schemas/annotation.json +1 -0
- package/src/gen/schemas/assistantMessageItemParam.json +1 -0
- package/src/gen/schemas/createResponseBody.json +1 -0
- package/src/gen/schemas/detailEnum.json +1 -0
- package/src/gen/schemas/developerMessageItemParam.json +1 -0
- package/src/gen/schemas/emptyModelParam.json +1 -0
- package/src/gen/schemas/error.json +1 -0
- package/src/gen/schemas/errorPayload.json +1 -0
- package/src/gen/schemas/errorStreamingEvent.json +1 -0
- package/src/gen/schemas/functionCall.json +1 -0
- package/src/gen/schemas/functionCallItemParam.json +1 -0
- package/src/gen/schemas/functionCallItemStatus.json +1 -0
- package/src/gen/schemas/functionCallOutput.json +1 -0
- package/src/gen/schemas/functionCallOutputItemParam.json +1 -0
- package/src/gen/schemas/functionCallOutputStatusEnum.json +1 -0
- package/src/gen/schemas/functionCallStatus.json +1 -0
- package/src/gen/schemas/functionTool.json +1 -0
- package/src/gen/schemas/functionToolChoice.json +1 -0
- package/src/gen/schemas/functionToolParam.json +1 -0
- package/src/gen/schemas/imageDetail.json +1 -0
- package/src/gen/schemas/includeEnum.json +1 -0
- package/src/gen/schemas/incompleteDetails.json +1 -0
- package/src/gen/schemas/inputFileContent.json +1 -0
- package/src/gen/schemas/inputFileContentParam.json +1 -0
- package/src/gen/schemas/inputImageContent.json +1 -0
- package/src/gen/schemas/inputImageContentParamAutoParam.json +1 -0
- package/src/gen/schemas/inputTextContent.json +1 -0
- package/src/gen/schemas/inputTextContentParam.json +1 -0
- package/src/gen/schemas/inputTokensDetails.json +1 -0
- package/src/gen/schemas/inputVideoContent.json +1 -0
- package/src/gen/schemas/itemField.json +1 -0
- package/src/gen/schemas/itemParam.json +1 -0
- package/src/gen/schemas/itemReferenceParam.json +1 -0
- package/src/gen/schemas/jsonObjectResponseFormat.json +1 -0
- package/src/gen/schemas/jsonSchemaResponseFormat.json +1 -0
- package/src/gen/schemas/jsonSchemaResponseFormatParam.json +1 -0
- package/src/gen/schemas/logProb.json +1 -0
- package/src/gen/schemas/message.json +1 -0
- package/src/gen/schemas/messageRole.json +1 -0
- package/src/gen/schemas/messageStatus.json +1 -0
- package/src/gen/schemas/metadataParam.json +1 -0
- package/src/gen/schemas/outputTextContent.json +1 -0
- package/src/gen/schemas/outputTextContentParam.json +1 -0
- package/src/gen/schemas/outputTokensDetails.json +1 -0
- package/src/gen/schemas/reasoning.json +1 -0
- package/src/gen/schemas/reasoningBody.json +1 -0
- package/src/gen/schemas/reasoningEffortEnum.json +1 -0
- package/src/gen/schemas/reasoningItemParam.json +1 -0
- package/src/gen/schemas/reasoningParam.json +1 -0
- package/src/gen/schemas/reasoningSummaryContentParam.json +1 -0
- package/src/gen/schemas/reasoningSummaryEnum.json +1 -0
- package/src/gen/schemas/reasoningTextContent.json +1 -0
- package/src/gen/schemas/refusalContent.json +1 -0
- package/src/gen/schemas/refusalContentParam.json +1 -0
- package/src/gen/schemas/responseCompletedStreamingEvent.json +1 -0
- package/src/gen/schemas/responseContentPartAddedStreamingEvent.json +1 -0
- package/src/gen/schemas/responseContentPartDoneStreamingEvent.json +1 -0
- package/src/gen/schemas/responseCreatedStreamingEvent.json +1 -0
- package/src/gen/schemas/responseFailedStreamingEvent.json +1 -0
- package/src/gen/schemas/responseFunctionCallArgumentsDeltaStreamingEvent.json +1 -0
- package/src/gen/schemas/responseFunctionCallArgumentsDoneStreamingEvent.json +1 -0
- package/src/gen/schemas/responseInProgressStreamingEvent.json +1 -0
- package/src/gen/schemas/responseIncompleteStreamingEvent.json +1 -0
- package/src/gen/schemas/responseOutputItemAddedStreamingEvent.json +1 -0
- package/src/gen/schemas/responseOutputItemDoneStreamingEvent.json +1 -0
- package/src/gen/schemas/responseOutputTextAnnotationAddedStreamingEvent.json +1 -0
- package/src/gen/schemas/responseOutputTextDeltaStreamingEvent.json +1 -0
- package/src/gen/schemas/responseOutputTextDoneStreamingEvent.json +1 -0
- package/src/gen/schemas/responseQueuedStreamingEvent.json +1 -0
- package/src/gen/schemas/responseReasoningDeltaStreamingEvent.json +1 -0
- package/src/gen/schemas/responseReasoningDoneStreamingEvent.json +1 -0
- package/src/gen/schemas/responseReasoningSummaryDeltaStreamingEvent.json +1 -0
- package/src/gen/schemas/responseReasoningSummaryDoneStreamingEvent.json +1 -0
- package/src/gen/schemas/responseReasoningSummaryPartAddedStreamingEvent.json +1 -0
- package/src/gen/schemas/responseReasoningSummaryPartDoneStreamingEvent.json +1 -0
- package/src/gen/schemas/responseRefusalDeltaStreamingEvent.json +1 -0
- package/src/gen/schemas/responseRefusalDoneStreamingEvent.json +1 -0
- package/src/gen/schemas/responseResource.json +1 -0
- package/src/gen/schemas/responsesToolParam.json +1 -0
- package/src/gen/schemas/serviceTierEnum.json +1 -0
- package/src/gen/schemas/specificFunctionParam.json +1 -0
- package/src/gen/schemas/specificToolChoiceParam.json +1 -0
- package/src/gen/schemas/streamOptionsParam.json +1 -0
- package/src/gen/schemas/summaryTextContent.json +1 -0
- package/src/gen/schemas/systemMessageItemParam.json +1 -0
- package/src/gen/schemas/textContent.json +1 -0
- package/src/gen/schemas/textField.json +1 -0
- package/src/gen/schemas/textFormatParam.json +1 -0
- package/src/gen/schemas/textParam.json +1 -0
- package/src/gen/schemas/textResponseFormat.json +1 -0
- package/src/gen/schemas/tool.json +1 -0
- package/src/gen/schemas/toolChoiceParam.json +1 -0
- package/src/gen/schemas/toolChoiceValueEnum.json +1 -0
- package/src/gen/schemas/topLogProb.json +1 -0
- package/src/gen/schemas/truncationEnum.json +1 -0
- package/src/gen/schemas/urlCitationBody.json +1 -0
- package/src/gen/schemas/urlCitationParam.json +1 -0
- package/src/gen/schemas/usage.json +1 -0
- package/src/gen/schemas/userMessageItemParam.json +1 -0
- package/src/gen/schemas/verbosityEnum.json +1 -0
- package/src/gen/types.ts +2613 -0
- package/src/gen/zod/allowedToolChoiceSchema.ts +14 -0
- package/src/gen/zod/allowedToolsParamSchema.ts +14 -0
- package/src/gen/zod/annotationSchema.ts +14 -0
- package/src/gen/zod/assistantMessageItemParamSchema.ts +20 -0
- package/src/gen/zod/createResponseBodySchema.ts +45 -0
- package/src/gen/zod/createresponseSchema.ts +17 -0
- package/src/gen/zod/detailEnumSchema.ts +8 -0
- package/src/gen/zod/developerMessageItemParamSchema.ts +17 -0
- package/src/gen/zod/emptyModelParamSchema.ts +10 -0
- package/src/gen/zod/errorPayloadSchema.ts +19 -0
- package/src/gen/zod/errorSchema.ts +14 -0
- package/src/gen/zod/errorStreamingEventSchema.ts +16 -0
- package/src/gen/zod/functionCallItemParamSchema.ts +16 -0
- package/src/gen/zod/functionCallItemStatusSchema.ts +8 -0
- package/src/gen/zod/functionCallOutputItemParamSchema.ts +30 -0
- package/src/gen/zod/functionCallOutputSchema.ts +27 -0
- package/src/gen/zod/functionCallOutputStatusEnumSchema.ts +11 -0
- package/src/gen/zod/functionCallSchema.ts +19 -0
- package/src/gen/zod/functionCallStatusSchema.ts +8 -0
- package/src/gen/zod/functionToolChoiceSchema.ts +11 -0
- package/src/gen/zod/functionToolParamSchema.ts +15 -0
- package/src/gen/zod/functionToolSchema.ts +19 -0
- package/src/gen/zod/imageDetailSchema.ts +8 -0
- package/src/gen/zod/includeEnumSchema.ts +8 -0
- package/src/gen/zod/incompleteDetailsSchema.ts +13 -0
- package/src/gen/zod/index.ts +103 -0
- package/src/gen/zod/inputFileContentParamSchema.ts +16 -0
- package/src/gen/zod/inputFileContentSchema.ts +15 -0
- package/src/gen/zod/inputImageContentParamAutoParamSchema.ts +16 -0
- package/src/gen/zod/inputImageContentSchema.ts +16 -0
- package/src/gen/zod/inputTextContentParamSchema.ts +14 -0
- package/src/gen/zod/inputTextContentSchema.ts +14 -0
- package/src/gen/zod/inputTokensDetailsSchema.ts +13 -0
- package/src/gen/zod/inputVideoContentSchema.ts +14 -0
- package/src/gen/zod/itemFieldSchema.ts +23 -0
- package/src/gen/zod/itemParamSchema.ts +23 -0
- package/src/gen/zod/itemReferenceParamSchema.ts +14 -0
- package/src/gen/zod/jsonObjectResponseFormatSchema.ts +10 -0
- package/src/gen/zod/jsonSchemaResponseFormatParamSchema.ts +16 -0
- package/src/gen/zod/jsonSchemaResponseFormatSchema.ts +14 -0
- package/src/gen/zod/logProbSchema.ts +17 -0
- package/src/gen/zod/messageRoleSchema.ts +8 -0
- package/src/gen/zod/messageSchema.ts +46 -0
- package/src/gen/zod/messageStatusSchema.ts +8 -0
- package/src/gen/zod/metadataParamSchema.ts +13 -0
- package/src/gen/zod/outputTextContentParamSchema.ts +13 -0
- package/src/gen/zod/outputTextContentSchema.ts +18 -0
- package/src/gen/zod/outputTokensDetailsSchema.ts +13 -0
- package/src/gen/zod/reasoningBodySchema.ts +57 -0
- package/src/gen/zod/reasoningEffortEnumSchema.ts +8 -0
- package/src/gen/zod/reasoningItemParamSchema.ts +15 -0
- package/src/gen/zod/reasoningParamSchema.ts +16 -0
- package/src/gen/zod/reasoningSchema.ts +16 -0
- package/src/gen/zod/reasoningSummaryContentParamSchema.ts +11 -0
- package/src/gen/zod/reasoningSummaryEnumSchema.ts +8 -0
- package/src/gen/zod/reasoningTextContentSchema.ts +14 -0
- package/src/gen/zod/refusalContentParamSchema.ts +11 -0
- package/src/gen/zod/refusalContentSchema.ts +14 -0
- package/src/gen/zod/responseCompletedStreamingEventSchema.ts +16 -0
- package/src/gen/zod/responseContentPartAddedStreamingEventSchema.ts +42 -0
- package/src/gen/zod/responseContentPartDoneStreamingEventSchema.ts +42 -0
- package/src/gen/zod/responseCreatedStreamingEventSchema.ts +16 -0
- package/src/gen/zod/responseFailedStreamingEventSchema.ts +16 -0
- package/src/gen/zod/responseFunctionCallArgumentsDeltaStreamingEventSchema.ts +18 -0
- package/src/gen/zod/responseFunctionCallArgumentsDoneStreamingEventSchema.ts +17 -0
- package/src/gen/zod/responseInProgressStreamingEventSchema.ts +16 -0
- package/src/gen/zod/responseIncompleteStreamingEventSchema.ts +16 -0
- package/src/gen/zod/responseOutputItemAddedStreamingEventSchema.ts +17 -0
- package/src/gen/zod/responseOutputItemDoneStreamingEventSchema.ts +17 -0
- package/src/gen/zod/responseOutputTextAnnotationAddedStreamingEventSchema.ts +20 -0
- package/src/gen/zod/responseOutputTextDeltaStreamingEventSchema.ts +21 -0
- package/src/gen/zod/responseOutputTextDoneStreamingEventSchema.ts +20 -0
- package/src/gen/zod/responseQueuedStreamingEventSchema.ts +16 -0
- package/src/gen/zod/responseReasoningDeltaStreamingEventSchema.ts +19 -0
- package/src/gen/zod/responseReasoningDoneStreamingEventSchema.ts +18 -0
- package/src/gen/zod/responseReasoningSummaryDeltaStreamingEventSchema.ts +19 -0
- package/src/gen/zod/responseReasoningSummaryDoneStreamingEventSchema.ts +18 -0
- package/src/gen/zod/responseReasoningSummaryPartAddedStreamingEventSchema.ts +42 -0
- package/src/gen/zod/responseReasoningSummaryPartDoneStreamingEventSchema.ts +42 -0
- package/src/gen/zod/responseRefusalDeltaStreamingEventSchema.ts +18 -0
- package/src/gen/zod/responseRefusalDoneStreamingEventSchema.ts +18 -0
- package/src/gen/zod/responseResourceSchema.ts +54 -0
- package/src/gen/zod/responsesToolParamSchema.ts +11 -0
- package/src/gen/zod/serviceTierEnumSchema.ts +8 -0
- package/src/gen/zod/specificFunctionParamSchema.ts +11 -0
- package/src/gen/zod/specificToolChoiceParamSchema.ts +9 -0
- package/src/gen/zod/streamOptionsParamSchema.ts +13 -0
- package/src/gen/zod/summaryTextContentSchema.ts +14 -0
- package/src/gen/zod/systemMessageItemParamSchema.ts +17 -0
- package/src/gen/zod/textContentSchema.ts +14 -0
- package/src/gen/zod/textFieldSchema.ts +15 -0
- package/src/gen/zod/textFormatParamSchema.ts +10 -0
- package/src/gen/zod/textParamSchema.ts +13 -0
- package/src/gen/zod/textResponseFormatSchema.ts +10 -0
- package/src/gen/zod/toolChoiceParamSchema.ts +14 -0
- package/src/gen/zod/toolChoiceValueEnumSchema.ts +8 -0
- package/src/gen/zod/toolSchema.ts +14 -0
- package/src/gen/zod/topLogProbSchema.ts +15 -0
- package/src/gen/zod/truncationEnumSchema.ts +8 -0
- package/src/gen/zod/urlCitationBodySchema.ts +17 -0
- package/src/gen/zod/urlCitationParamSchema.ts +14 -0
- package/src/gen/zod/usageSchema.ts +19 -0
- package/src/gen/zod/userMessageItemParamSchema.ts +23 -0
- package/src/gen/zod/verbosityEnumSchema.ts +8 -0
- package/tsconfig.json +21 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { functionToolChoiceSchema } from "./functionToolChoiceSchema.ts";
|
|
7
|
+
import { toolChoiceValueEnumSchema } from "./toolChoiceValueEnumSchema.ts";
|
|
8
|
+
import { z } from "zod";
|
|
9
|
+
|
|
10
|
+
export const allowedToolChoiceSchema = z.object({
|
|
11
|
+
"type": z.enum(["allowed_tools"]).default("allowed_tools"),
|
|
12
|
+
"tools": z.array(z.lazy(() => functionToolChoiceSchema)),
|
|
13
|
+
"mode": z.lazy(() => toolChoiceValueEnumSchema)
|
|
14
|
+
})
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { specificToolChoiceParamSchema } from "./specificToolChoiceParamSchema.ts";
|
|
7
|
+
import { toolChoiceValueEnumSchema } from "./toolChoiceValueEnumSchema.ts";
|
|
8
|
+
import { z } from "zod";
|
|
9
|
+
|
|
10
|
+
export const allowedToolsParamSchema = z.object({
|
|
11
|
+
"type": z.enum(["allowed_tools"]).default("allowed_tools").describe("The tool choice type. Always `allowed_tools`."),
|
|
12
|
+
"tools": z.array(z.lazy(() => specificToolChoiceParamSchema)).min(1).max(128).describe("The list of tools that are permitted for this request."),
|
|
13
|
+
"mode": z.optional(z.lazy(() => toolChoiceValueEnumSchema).and(z.any()))
|
|
14
|
+
})
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { urlCitationBodySchema } from "./urlCitationBodySchema.ts";
|
|
7
|
+
import { z } from "zod";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @description An annotation that applies to a span of output text.
|
|
11
|
+
*/
|
|
12
|
+
export const annotationSchema = z.lazy(() => urlCitationBodySchema).and(z.object({
|
|
13
|
+
"type": z.literal("url_citation")
|
|
14
|
+
})).describe("An annotation that applies to a span of output text.")
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { outputTextContentParamSchema } from "./outputTextContentParamSchema.ts";
|
|
7
|
+
import { refusalContentParamSchema } from "./refusalContentParamSchema.ts";
|
|
8
|
+
import { z } from "zod";
|
|
9
|
+
|
|
10
|
+
export const assistantMessageItemParamSchema = z.object({
|
|
11
|
+
"id": z.optional(z.union([z.string(), z.null()])),
|
|
12
|
+
"type": z.enum(["message"]).default("message").describe("The item type. Always `message`."),
|
|
13
|
+
"role": z.enum(["assistant"]).default("assistant").describe("The role of the message author. Always `assistant`."),
|
|
14
|
+
"content": z.union([z.array(z.union([z.lazy(() => outputTextContentParamSchema).and(z.object({
|
|
15
|
+
"type": z.literal("output_text")
|
|
16
|
+
})), z.lazy(() => refusalContentParamSchema).and(z.object({
|
|
17
|
+
"type": z.literal("refusal")
|
|
18
|
+
}))]).describe("A piece of assistant message content, such as text or a refusal.")), z.string()]).describe("The message content, as an array of content parts."),
|
|
19
|
+
"status": z.optional(z.union([z.string(), z.null()]))
|
|
20
|
+
})
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { includeEnumSchema } from "./includeEnumSchema.ts";
|
|
7
|
+
import { itemParamSchema } from "./itemParamSchema.ts";
|
|
8
|
+
import { metadataParamSchema } from "./metadataParamSchema.ts";
|
|
9
|
+
import { reasoningParamSchema } from "./reasoningParamSchema.ts";
|
|
10
|
+
import { responsesToolParamSchema } from "./responsesToolParamSchema.ts";
|
|
11
|
+
import { serviceTierEnumSchema } from "./serviceTierEnumSchema.ts";
|
|
12
|
+
import { streamOptionsParamSchema } from "./streamOptionsParamSchema.ts";
|
|
13
|
+
import { textParamSchema } from "./textParamSchema.ts";
|
|
14
|
+
import { toolChoiceParamSchema } from "./toolChoiceParamSchema.ts";
|
|
15
|
+
import { truncationEnumSchema } from "./truncationEnumSchema.ts";
|
|
16
|
+
import { z } from "zod";
|
|
17
|
+
|
|
18
|
+
export const createResponseBodySchema = z.object({
|
|
19
|
+
"model": z.optional(z.union([z.string(), z.null()])),
|
|
20
|
+
"input": z.optional(z.union([z.union([z.array(z.lazy(() => itemParamSchema)), z.string()]), z.null()])),
|
|
21
|
+
"previous_response_id": z.optional(z.union([z.string(), z.null()])),
|
|
22
|
+
"include": z.optional(z.array(z.lazy(() => includeEnumSchema))),
|
|
23
|
+
"tools": z.optional(z.union([z.array(z.lazy(() => responsesToolParamSchema)), z.null()])),
|
|
24
|
+
"tool_choice": z.optional(z.union([z.lazy(() => toolChoiceParamSchema).and(z.any()), z.null()])),
|
|
25
|
+
"metadata": z.optional(z.union([z.lazy(() => metadataParamSchema).and(z.any()), z.null()])),
|
|
26
|
+
"text": z.optional(z.union([z.lazy(() => textParamSchema).and(z.any()), z.null()])),
|
|
27
|
+
"temperature": z.optional(z.union([z.number(), z.null()])),
|
|
28
|
+
"top_p": z.optional(z.union([z.number(), z.null()])),
|
|
29
|
+
"presence_penalty": z.optional(z.union([z.number(), z.null()])),
|
|
30
|
+
"frequency_penalty": z.optional(z.union([z.number(), z.null()])),
|
|
31
|
+
"parallel_tool_calls": z.optional(z.union([z.boolean(), z.null()])),
|
|
32
|
+
"stream": z.optional(z.boolean().describe("Whether to stream response events as server-sent events.")),
|
|
33
|
+
"stream_options": z.optional(z.union([z.lazy(() => streamOptionsParamSchema).and(z.any()), z.null()])),
|
|
34
|
+
"background": z.optional(z.boolean().describe("Whether to run the request in the background and return immediately.")),
|
|
35
|
+
"max_output_tokens": z.optional(z.union([z.number().int(), z.null()])),
|
|
36
|
+
"max_tool_calls": z.optional(z.union([z.number().int(), z.null()])),
|
|
37
|
+
"reasoning": z.optional(z.union([z.lazy(() => reasoningParamSchema).and(z.any()), z.null()])),
|
|
38
|
+
"safety_identifier": z.optional(z.union([z.string(), z.null()])),
|
|
39
|
+
"prompt_cache_key": z.optional(z.union([z.string(), z.null()])),
|
|
40
|
+
"truncation": z.optional(z.lazy(() => truncationEnumSchema).and(z.any())),
|
|
41
|
+
"instructions": z.optional(z.union([z.string(), z.null()])),
|
|
42
|
+
"store": z.optional(z.boolean().describe("Whether to store the response so it can be retrieved later.")),
|
|
43
|
+
"service_tier": z.optional(z.lazy(() => serviceTierEnumSchema).and(z.any())),
|
|
44
|
+
"top_logprobs": z.optional(z.union([z.number().int(), z.null()]))
|
|
45
|
+
})
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { createResponseBodySchema } from "./createResponseBodySchema.ts";
|
|
7
|
+
import { responseResourceSchema } from "./responseResourceSchema.ts";
|
|
8
|
+
import { z } from "zod";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @description Success
|
|
12
|
+
*/
|
|
13
|
+
export const createresponse200Schema = z.lazy(() => responseResourceSchema).describe("The complete response object that was returned by the Responses API.")
|
|
14
|
+
|
|
15
|
+
export const createresponseMutationRequestSchema = z.lazy(() => createResponseBodySchema)
|
|
16
|
+
|
|
17
|
+
export const createresponseMutationResponseSchema = z.lazy(() => createresponse200Schema)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { inputTextContentParamSchema } from "./inputTextContentParamSchema.ts";
|
|
7
|
+
import { z } from "zod";
|
|
8
|
+
|
|
9
|
+
export const developerMessageItemParamSchema = z.object({
|
|
10
|
+
"id": z.optional(z.union([z.string(), z.null()])),
|
|
11
|
+
"type": z.enum(["message"]).default("message").describe("The item type. Always `message`."),
|
|
12
|
+
"role": z.enum(["developer"]).default("developer").describe("The message role. Always `developer`."),
|
|
13
|
+
"content": z.union([z.array(z.lazy(() => inputTextContentParamSchema).and(z.object({
|
|
14
|
+
"type": z.literal("input_text")
|
|
15
|
+
}))), z.string()]).describe("The message content, as an array of content parts."),
|
|
16
|
+
"status": z.optional(z.union([z.string(), z.null()]))
|
|
17
|
+
})
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @description An error payload that was emitted for a streaming error event.
|
|
10
|
+
*/
|
|
11
|
+
export const errorPayloadSchema = z.object({
|
|
12
|
+
"type": z.string().describe("The error type that was emitted."),
|
|
13
|
+
"code": z.union([z.string(), z.null()]),
|
|
14
|
+
"message": z.string().describe("The human-readable error message that was emitted."),
|
|
15
|
+
"param": z.union([z.string(), z.null()]),
|
|
16
|
+
"headers": z.optional(z.object({
|
|
17
|
+
|
|
18
|
+
}).catchall(z.string().describe("The header value that was emitted.")).describe("The response headers that were emitted with the error, if any."))
|
|
19
|
+
}).describe("An error payload that was emitted for a streaming error event.")
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @description An error that occurred while generating the response.
|
|
10
|
+
*/
|
|
11
|
+
export const errorSchema = z.object({
|
|
12
|
+
"code": z.string().describe("A machine-readable error code that was returned."),
|
|
13
|
+
"message": z.string().describe("A human-readable description of the error that was returned.")
|
|
14
|
+
}).describe("An error that occurred while generating the response.")
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { errorPayloadSchema } from "./errorPayloadSchema.ts";
|
|
7
|
+
import { z } from "zod";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @description A streaming event that indicated an error was emitted.
|
|
11
|
+
*/
|
|
12
|
+
export const errorStreamingEventSchema = z.object({
|
|
13
|
+
"type": z.enum(["error"]).default("error").describe("The type of the event, always `error`."),
|
|
14
|
+
"sequence_number": z.number().int().describe("The sequence number of the event that was emitted."),
|
|
15
|
+
"error": z.lazy(() => errorPayloadSchema).and(z.any())
|
|
16
|
+
}).describe("A streaming event that indicated an error was emitted.")
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { functionCallStatusSchema } from "./functionCallStatusSchema.ts";
|
|
7
|
+
import { z } from "zod";
|
|
8
|
+
|
|
9
|
+
export const functionCallItemParamSchema = z.object({
|
|
10
|
+
"id": z.optional(z.union([z.string(), z.null()])),
|
|
11
|
+
"call_id": z.string().min(1).max(64).describe("The unique ID of the function tool call generated by the model."),
|
|
12
|
+
"type": z.enum(["function_call"]).default("function_call").describe("The item type. Always `function_call`."),
|
|
13
|
+
"name": z.string().min(1).max(64).regex(/^[a-zA-Z0-9_-]+$/).describe("The name of the function to call."),
|
|
14
|
+
"arguments": z.string().describe("The function arguments as a JSON string."),
|
|
15
|
+
"status": z.optional(z.union([z.lazy(() => functionCallStatusSchema).and(z.any()), z.null()]))
|
|
16
|
+
})
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { functionCallStatusSchema } from "./functionCallStatusSchema.ts";
|
|
7
|
+
import { inputFileContentParamSchema } from "./inputFileContentParamSchema.ts";
|
|
8
|
+
import { inputImageContentParamAutoParamSchema } from "./inputImageContentParamAutoParamSchema.ts";
|
|
9
|
+
import { inputTextContentParamSchema } from "./inputTextContentParamSchema.ts";
|
|
10
|
+
import { inputVideoContentSchema } from "./inputVideoContentSchema.ts";
|
|
11
|
+
import { z } from "zod";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @description The output of a function tool call.
|
|
15
|
+
*/
|
|
16
|
+
export const functionCallOutputItemParamSchema = z.object({
|
|
17
|
+
"id": z.optional(z.union([z.string(), z.null()])),
|
|
18
|
+
"call_id": z.string().min(1).max(64).describe("The unique ID of the function tool call generated by the model."),
|
|
19
|
+
"type": z.enum(["function_call_output"]).default("function_call_output").describe("The type of the function tool call output. Always `function_call_output`."),
|
|
20
|
+
"output": z.union([z.array(z.union([z.lazy(() => inputTextContentParamSchema).and(z.object({
|
|
21
|
+
"type": z.literal("input_text")
|
|
22
|
+
})), z.lazy(() => inputImageContentParamAutoParamSchema).and(z.object({
|
|
23
|
+
"type": z.literal("input_image")
|
|
24
|
+
})), z.lazy(() => inputFileContentParamSchema).and(z.object({
|
|
25
|
+
"type": z.literal("input_file")
|
|
26
|
+
})), z.lazy(() => inputVideoContentSchema).and(z.object({
|
|
27
|
+
"type": z.literal("input_video")
|
|
28
|
+
}))]).describe("A piece of message content, such as text, an image, or a file.")), z.string()]).describe("Text, image, or file output of the function tool call."),
|
|
29
|
+
"status": z.optional(z.union([z.lazy(() => functionCallStatusSchema).and(z.any()), z.null()]))
|
|
30
|
+
}).describe("The output of a function tool call.")
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { functionCallOutputStatusEnumSchema } from "./functionCallOutputStatusEnumSchema.ts";
|
|
7
|
+
import { inputFileContentSchema } from "./inputFileContentSchema.ts";
|
|
8
|
+
import { inputImageContentSchema } from "./inputImageContentSchema.ts";
|
|
9
|
+
import { inputTextContentSchema } from "./inputTextContentSchema.ts";
|
|
10
|
+
import { z } from "zod";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @description A function tool call output that was returned by the tool.
|
|
14
|
+
*/
|
|
15
|
+
export const functionCallOutputSchema = z.object({
|
|
16
|
+
"type": z.enum(["function_call_output"]).default("function_call_output").describe("The type of the function tool call output. Always `function_call_output`."),
|
|
17
|
+
"id": z.string().describe("The unique ID of the function tool call output. Populated when this item is returned via API."),
|
|
18
|
+
"call_id": z.string().describe("The unique ID of the function tool call generated by the model."),
|
|
19
|
+
"output": z.union([z.array(z.union([z.lazy(() => inputTextContentSchema).and(z.object({
|
|
20
|
+
"type": z.literal("input_text")
|
|
21
|
+
})), z.lazy(() => inputImageContentSchema).and(z.object({
|
|
22
|
+
"type": z.literal("input_image")
|
|
23
|
+
})), z.lazy(() => inputFileContentSchema).and(z.object({
|
|
24
|
+
"type": z.literal("input_file")
|
|
25
|
+
}))]).describe("A content part that makes up an input or output item.")), z.string()]),
|
|
26
|
+
"status": z.lazy(() => functionCallOutputStatusEnumSchema).and(z.any())
|
|
27
|
+
}).describe("A function tool call output that was returned by the tool.")
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @description Similar to `FunctionCallStatus`. All three options are allowed here for compatibility, but because in practice these items will be provided by developers, only `completed` should be used.
|
|
10
|
+
*/
|
|
11
|
+
export const functionCallOutputStatusEnumSchema = z.enum(["in_progress", "completed", "incomplete"]).describe("Similar to `FunctionCallStatus`. All three options are allowed here for compatibility, but because in practice these items will be provided by developers, only `completed` should be used.")
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { functionCallStatusSchema } from "./functionCallStatusSchema.ts";
|
|
7
|
+
import { z } from "zod";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @description A function tool call that was generated by the model.
|
|
11
|
+
*/
|
|
12
|
+
export const functionCallSchema = z.object({
|
|
13
|
+
"type": z.enum(["function_call"]).default("function_call").describe("The type of the item. Always `function_call`."),
|
|
14
|
+
"id": z.string().describe("The unique ID of the function call item."),
|
|
15
|
+
"call_id": z.string().describe("The unique ID of the function tool call that was generated."),
|
|
16
|
+
"name": z.string().describe("The name of the function that was called."),
|
|
17
|
+
"arguments": z.string().describe("The arguments JSON string that was generated."),
|
|
18
|
+
"status": z.lazy(() => functionCallStatusSchema).and(z.any())
|
|
19
|
+
}).describe("A function tool call that was generated by the model.")
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { emptyModelParamSchema } from "./emptyModelParamSchema.ts";
|
|
7
|
+
import { z } from "zod";
|
|
8
|
+
|
|
9
|
+
export const functionToolParamSchema = z.object({
|
|
10
|
+
"name": z.string().min(1).max(64).regex(/^[a-zA-Z0-9_-]+$/),
|
|
11
|
+
"description": z.optional(z.union([z.string(), z.null()])),
|
|
12
|
+
"parameters": z.optional(z.union([z.lazy(() => emptyModelParamSchema), z.null()])),
|
|
13
|
+
"strict": z.optional(z.boolean()),
|
|
14
|
+
"type": z.enum(["function"]).default("function")
|
|
15
|
+
})
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @description 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).
|
|
10
|
+
*/
|
|
11
|
+
export const functionToolSchema = z.object({
|
|
12
|
+
"type": z.enum(["function"]).default("function").describe("The type of the function tool. Always `function`."),
|
|
13
|
+
"name": z.string().describe("The name of the function to call."),
|
|
14
|
+
"description": z.union([z.string(), z.null()]),
|
|
15
|
+
"parameters": z.union([z.object({
|
|
16
|
+
|
|
17
|
+
}).catchall(z.any()), z.null()]),
|
|
18
|
+
"strict": z.union([z.boolean(), z.null()])
|
|
19
|
+
}).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).")
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @description Details about why the response was incomplete.
|
|
10
|
+
*/
|
|
11
|
+
export const incompleteDetailsSchema = z.object({
|
|
12
|
+
"reason": z.string().describe("The reason the response could not be completed.")
|
|
13
|
+
}).describe("Details about why the response was incomplete.")
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
export { allowedToolChoiceSchema } from "./allowedToolChoiceSchema.ts";
|
|
2
|
+
export { allowedToolsParamSchema } from "./allowedToolsParamSchema.ts";
|
|
3
|
+
export { annotationSchema } from "./annotationSchema.ts";
|
|
4
|
+
export { assistantMessageItemParamSchema } from "./assistantMessageItemParamSchema.ts";
|
|
5
|
+
export { createResponseBodySchema } from "./createResponseBodySchema.ts";
|
|
6
|
+
export { createresponse200Schema, createresponseMutationRequestSchema, createresponseMutationResponseSchema } from "./createresponseSchema.ts";
|
|
7
|
+
export { detailEnumSchema } from "./detailEnumSchema.ts";
|
|
8
|
+
export { developerMessageItemParamSchema } from "./developerMessageItemParamSchema.ts";
|
|
9
|
+
export { emptyModelParamSchema } from "./emptyModelParamSchema.ts";
|
|
10
|
+
export { errorPayloadSchema } from "./errorPayloadSchema.ts";
|
|
11
|
+
export { errorSchema } from "./errorSchema.ts";
|
|
12
|
+
export { errorStreamingEventSchema } from "./errorStreamingEventSchema.ts";
|
|
13
|
+
export { functionCallItemParamSchema } from "./functionCallItemParamSchema.ts";
|
|
14
|
+
export { functionCallItemStatusSchema } from "./functionCallItemStatusSchema.ts";
|
|
15
|
+
export { functionCallOutputItemParamSchema } from "./functionCallOutputItemParamSchema.ts";
|
|
16
|
+
export { functionCallOutputSchema } from "./functionCallOutputSchema.ts";
|
|
17
|
+
export { functionCallOutputStatusEnumSchema } from "./functionCallOutputStatusEnumSchema.ts";
|
|
18
|
+
export { functionCallSchema } from "./functionCallSchema.ts";
|
|
19
|
+
export { functionCallStatusSchema } from "./functionCallStatusSchema.ts";
|
|
20
|
+
export { functionToolChoiceSchema } from "./functionToolChoiceSchema.ts";
|
|
21
|
+
export { functionToolParamSchema } from "./functionToolParamSchema.ts";
|
|
22
|
+
export { functionToolSchema } from "./functionToolSchema.ts";
|
|
23
|
+
export { imageDetailSchema } from "./imageDetailSchema.ts";
|
|
24
|
+
export { includeEnumSchema } from "./includeEnumSchema.ts";
|
|
25
|
+
export { incompleteDetailsSchema } from "./incompleteDetailsSchema.ts";
|
|
26
|
+
export { inputFileContentParamSchema } from "./inputFileContentParamSchema.ts";
|
|
27
|
+
export { inputFileContentSchema } from "./inputFileContentSchema.ts";
|
|
28
|
+
export { inputImageContentParamAutoParamSchema } from "./inputImageContentParamAutoParamSchema.ts";
|
|
29
|
+
export { inputImageContentSchema } from "./inputImageContentSchema.ts";
|
|
30
|
+
export { inputTextContentParamSchema } from "./inputTextContentParamSchema.ts";
|
|
31
|
+
export { inputTextContentSchema } from "./inputTextContentSchema.ts";
|
|
32
|
+
export { inputTokensDetailsSchema } from "./inputTokensDetailsSchema.ts";
|
|
33
|
+
export { inputVideoContentSchema } from "./inputVideoContentSchema.ts";
|
|
34
|
+
export { itemFieldSchema } from "./itemFieldSchema.ts";
|
|
35
|
+
export { itemParamSchema } from "./itemParamSchema.ts";
|
|
36
|
+
export { itemReferenceParamSchema } from "./itemReferenceParamSchema.ts";
|
|
37
|
+
export { jsonObjectResponseFormatSchema } from "./jsonObjectResponseFormatSchema.ts";
|
|
38
|
+
export { jsonSchemaResponseFormatParamSchema } from "./jsonSchemaResponseFormatParamSchema.ts";
|
|
39
|
+
export { jsonSchemaResponseFormatSchema } from "./jsonSchemaResponseFormatSchema.ts";
|
|
40
|
+
export { logProbSchema } from "./logProbSchema.ts";
|
|
41
|
+
export { messageRoleSchema } from "./messageRoleSchema.ts";
|
|
42
|
+
export { messageSchema } from "./messageSchema.ts";
|
|
43
|
+
export { messageStatusSchema } from "./messageStatusSchema.ts";
|
|
44
|
+
export { metadataParamSchema } from "./metadataParamSchema.ts";
|
|
45
|
+
export { outputTextContentParamSchema } from "./outputTextContentParamSchema.ts";
|
|
46
|
+
export { outputTextContentSchema } from "./outputTextContentSchema.ts";
|
|
47
|
+
export { outputTokensDetailsSchema } from "./outputTokensDetailsSchema.ts";
|
|
48
|
+
export { reasoningBodySchema } from "./reasoningBodySchema.ts";
|
|
49
|
+
export { reasoningEffortEnumSchema } from "./reasoningEffortEnumSchema.ts";
|
|
50
|
+
export { reasoningItemParamSchema } from "./reasoningItemParamSchema.ts";
|
|
51
|
+
export { reasoningParamSchema } from "./reasoningParamSchema.ts";
|
|
52
|
+
export { reasoningSchema } from "./reasoningSchema.ts";
|
|
53
|
+
export { reasoningSummaryContentParamSchema } from "./reasoningSummaryContentParamSchema.ts";
|
|
54
|
+
export { reasoningSummaryEnumSchema } from "./reasoningSummaryEnumSchema.ts";
|
|
55
|
+
export { reasoningTextContentSchema } from "./reasoningTextContentSchema.ts";
|
|
56
|
+
export { refusalContentParamSchema } from "./refusalContentParamSchema.ts";
|
|
57
|
+
export { refusalContentSchema } from "./refusalContentSchema.ts";
|
|
58
|
+
export { responseCompletedStreamingEventSchema } from "./responseCompletedStreamingEventSchema.ts";
|
|
59
|
+
export { responseContentPartAddedStreamingEventSchema } from "./responseContentPartAddedStreamingEventSchema.ts";
|
|
60
|
+
export { responseContentPartDoneStreamingEventSchema } from "./responseContentPartDoneStreamingEventSchema.ts";
|
|
61
|
+
export { responseCreatedStreamingEventSchema } from "./responseCreatedStreamingEventSchema.ts";
|
|
62
|
+
export { responseFailedStreamingEventSchema } from "./responseFailedStreamingEventSchema.ts";
|
|
63
|
+
export { responseFunctionCallArgumentsDeltaStreamingEventSchema } from "./responseFunctionCallArgumentsDeltaStreamingEventSchema.ts";
|
|
64
|
+
export { responseFunctionCallArgumentsDoneStreamingEventSchema } from "./responseFunctionCallArgumentsDoneStreamingEventSchema.ts";
|
|
65
|
+
export { responseIncompleteStreamingEventSchema } from "./responseIncompleteStreamingEventSchema.ts";
|
|
66
|
+
export { responseInProgressStreamingEventSchema } from "./responseInProgressStreamingEventSchema.ts";
|
|
67
|
+
export { responseOutputItemAddedStreamingEventSchema } from "./responseOutputItemAddedStreamingEventSchema.ts";
|
|
68
|
+
export { responseOutputItemDoneStreamingEventSchema } from "./responseOutputItemDoneStreamingEventSchema.ts";
|
|
69
|
+
export { responseOutputTextAnnotationAddedStreamingEventSchema } from "./responseOutputTextAnnotationAddedStreamingEventSchema.ts";
|
|
70
|
+
export { responseOutputTextDeltaStreamingEventSchema } from "./responseOutputTextDeltaStreamingEventSchema.ts";
|
|
71
|
+
export { responseOutputTextDoneStreamingEventSchema } from "./responseOutputTextDoneStreamingEventSchema.ts";
|
|
72
|
+
export { responseQueuedStreamingEventSchema } from "./responseQueuedStreamingEventSchema.ts";
|
|
73
|
+
export { responseReasoningDeltaStreamingEventSchema } from "./responseReasoningDeltaStreamingEventSchema.ts";
|
|
74
|
+
export { responseReasoningDoneStreamingEventSchema } from "./responseReasoningDoneStreamingEventSchema.ts";
|
|
75
|
+
export { responseReasoningSummaryDeltaStreamingEventSchema } from "./responseReasoningSummaryDeltaStreamingEventSchema.ts";
|
|
76
|
+
export { responseReasoningSummaryDoneStreamingEventSchema } from "./responseReasoningSummaryDoneStreamingEventSchema.ts";
|
|
77
|
+
export { responseReasoningSummaryPartAddedStreamingEventSchema } from "./responseReasoningSummaryPartAddedStreamingEventSchema.ts";
|
|
78
|
+
export { responseReasoningSummaryPartDoneStreamingEventSchema } from "./responseReasoningSummaryPartDoneStreamingEventSchema.ts";
|
|
79
|
+
export { responseRefusalDeltaStreamingEventSchema } from "./responseRefusalDeltaStreamingEventSchema.ts";
|
|
80
|
+
export { responseRefusalDoneStreamingEventSchema } from "./responseRefusalDoneStreamingEventSchema.ts";
|
|
81
|
+
export { responseResourceSchema } from "./responseResourceSchema.ts";
|
|
82
|
+
export { responsesToolParamSchema } from "./responsesToolParamSchema.ts";
|
|
83
|
+
export { serviceTierEnumSchema } from "./serviceTierEnumSchema.ts";
|
|
84
|
+
export { specificFunctionParamSchema } from "./specificFunctionParamSchema.ts";
|
|
85
|
+
export { specificToolChoiceParamSchema } from "./specificToolChoiceParamSchema.ts";
|
|
86
|
+
export { streamOptionsParamSchema } from "./streamOptionsParamSchema.ts";
|
|
87
|
+
export { summaryTextContentSchema } from "./summaryTextContentSchema.ts";
|
|
88
|
+
export { systemMessageItemParamSchema } from "./systemMessageItemParamSchema.ts";
|
|
89
|
+
export { textContentSchema } from "./textContentSchema.ts";
|
|
90
|
+
export { textFieldSchema } from "./textFieldSchema.ts";
|
|
91
|
+
export { textFormatParamSchema } from "./textFormatParamSchema.ts";
|
|
92
|
+
export { textParamSchema } from "./textParamSchema.ts";
|
|
93
|
+
export { textResponseFormatSchema } from "./textResponseFormatSchema.ts";
|
|
94
|
+
export { toolChoiceParamSchema } from "./toolChoiceParamSchema.ts";
|
|
95
|
+
export { toolChoiceValueEnumSchema } from "./toolChoiceValueEnumSchema.ts";
|
|
96
|
+
export { toolSchema } from "./toolSchema.ts";
|
|
97
|
+
export { topLogProbSchema } from "./topLogProbSchema.ts";
|
|
98
|
+
export { truncationEnumSchema } from "./truncationEnumSchema.ts";
|
|
99
|
+
export { urlCitationBodySchema } from "./urlCitationBodySchema.ts";
|
|
100
|
+
export { urlCitationParamSchema } from "./urlCitationParamSchema.ts";
|
|
101
|
+
export { usageSchema } from "./usageSchema.ts";
|
|
102
|
+
export { userMessageItemParamSchema } from "./userMessageItemParamSchema.ts";
|
|
103
|
+
export { verbosityEnumSchema } from "./verbosityEnumSchema.ts";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @description A file input to the model.
|
|
10
|
+
*/
|
|
11
|
+
export const inputFileContentParamSchema = z.object({
|
|
12
|
+
"type": z.enum(["input_file"]).default("input_file").describe("The type of the input item. Always `input_file`."),
|
|
13
|
+
"filename": z.optional(z.union([z.string(), z.null()])),
|
|
14
|
+
"file_data": z.optional(z.union([z.string(), z.null()])),
|
|
15
|
+
"file_url": z.optional(z.union([z.string(), z.null()]))
|
|
16
|
+
}).describe("A file input to the model.")
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @description A file input to the model.
|
|
10
|
+
*/
|
|
11
|
+
export const inputFileContentSchema = z.object({
|
|
12
|
+
"type": z.enum(["input_file"]).default("input_file").describe("The type of the input item. Always `input_file`."),
|
|
13
|
+
"filename": z.optional(z.string().describe("The name of the file to be sent to the model.")),
|
|
14
|
+
"file_url": z.optional(z.string().describe("The URL of the file to be sent to the model."))
|
|
15
|
+
}).describe("A file input to the model.")
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { imageDetailSchema } from "./imageDetailSchema.ts";
|
|
7
|
+
import { z } from "zod";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @description An image input to the model. Learn about [image inputs](/docs/guides/vision)
|
|
11
|
+
*/
|
|
12
|
+
export const inputImageContentParamAutoParamSchema = z.object({
|
|
13
|
+
"type": z.enum(["input_image"]).default("input_image").describe("The type of the input item. Always `input_image`."),
|
|
14
|
+
"image_url": z.optional(z.union([z.string(), z.null()])),
|
|
15
|
+
"detail": z.optional(z.union([z.lazy(() => imageDetailSchema).and(z.any()), z.null()]))
|
|
16
|
+
}).describe("An image input to the model. Learn about [image inputs](/docs/guides/vision)")
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { imageDetailSchema } from "./imageDetailSchema.ts";
|
|
7
|
+
import { z } from "zod";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @description An image input to the model. Learn about [image inputs](/docs/guides/vision).
|
|
11
|
+
*/
|
|
12
|
+
export const inputImageContentSchema = z.object({
|
|
13
|
+
"type": z.enum(["input_image"]).default("input_image").describe("The type of the input item. Always `input_image`."),
|
|
14
|
+
"image_url": z.union([z.string(), z.null()]),
|
|
15
|
+
"detail": z.lazy(() => imageDetailSchema).and(z.any())
|
|
16
|
+
}).describe("An image input to the model. Learn about [image inputs](/docs/guides/vision).")
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @description A text input to the model.
|
|
10
|
+
*/
|
|
11
|
+
export const inputTextContentParamSchema = z.object({
|
|
12
|
+
"type": z.enum(["input_text"]).default("input_text").describe("The type of the input item. Always `input_text`."),
|
|
13
|
+
"text": z.string().max(10485760).describe("The text input to the model.")
|
|
14
|
+
}).describe("A text input to the model.")
|