@orq-ai/node 4.2.0-rc.44 → 4.2.0-rc.45
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/README.md +2 -1
- package/bin/mcp-server.js +4769 -1624
- package/bin/mcp-server.js.map +57 -56
- package/examples/package-lock.json +1 -1
- package/funcs/promptsDelete.d.ts +2 -1
- package/funcs/promptsDelete.d.ts.map +1 -1
- package/funcs/promptsDelete.js +7 -3
- package/funcs/promptsDelete.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/conversationresponse.js +2 -2
- package/models/components/conversationwithmessagesresponse.js +2 -2
- package/models/components/partdoneevent.js +2 -2
- package/models/components/reasoningpart.js +2 -2
- package/models/errors/deleteprompt.d.ts +29 -0
- package/models/errors/deleteprompt.d.ts.map +1 -0
- package/models/errors/deleteprompt.js +74 -0
- package/models/errors/deleteprompt.js.map +1 -0
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createconversation.js +2 -2
- package/models/operations/createconversationresponse.js +4 -4
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.d.ts +16 -16
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +56 -53
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createidentity.js +2 -2
- package/models/operations/createprompt.d.ts +1746 -976
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +2032 -1282
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +12 -12
- package/models/operations/deploymentgetconfig.d.ts +88 -88
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +131 -130
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +5 -5
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +7 -6
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/generateconversationname.js +2 -2
- package/models/operations/getallprompts.d.ts +1051 -42
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +1069 -48
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getevals.js +28 -28
- package/models/operations/getoneprompt.d.ts +1051 -42
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +1071 -47
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +1051 -42
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +1070 -48
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/listidentities.js +2 -2
- package/models/operations/listpromptversions.d.ts +1051 -42
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +1070 -47
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrieveidentity.js +2 -2
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.js +2 -2
- package/models/operations/streamrunagent.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updateconversation.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updateidentity.js +2 -2
- package/models/operations/updateprompt.d.ts +2112 -1413
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +2200 -1525
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/src/funcs/promptsDelete.ts +12 -3
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/conversationresponse.ts +2 -2
- package/src/models/components/conversationwithmessagesresponse.ts +2 -2
- package/src/models/components/partdoneevent.ts +2 -2
- package/src/models/components/reasoningpart.ts +2 -2
- package/src/models/errors/deleteprompt.ts +67 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createconversation.ts +2 -2
- package/src/models/operations/createconversationresponse.ts +4 -4
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +76 -96
- package/src/models/operations/createidentity.ts +2 -2
- package/src/models/operations/createprompt.ts +5179 -3019
- package/src/models/operations/createtool.ts +12 -12
- package/src/models/operations/deploymentgetconfig.ts +252 -337
- package/src/models/operations/deploymentinvoke.ts +9 -13
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/generateconversationname.ts +2 -2
- package/src/models/operations/getallprompts.ts +3543 -850
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/getoneprompt.ts +3463 -786
- package/src/models/operations/getpromptversion.ts +3579 -835
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/listidentities.ts +2 -2
- package/src/models/operations/listpromptversions.ts +3644 -864
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrieveidentity.ts +2 -2
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +2 -2
- package/src/models/operations/streamrunagent.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updateconversation.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updateidentity.ts +2 -2
- package/src/models/operations/updateprompt.ts +5281 -3301
- package/src/models/operations/updatetool.ts +14 -14
|
@@ -36,58 +36,23 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.
|
|
43
|
-
exports.
|
|
44
|
-
exports.
|
|
45
|
-
exports.
|
|
46
|
-
exports.
|
|
47
|
-
exports.
|
|
48
|
-
exports.updatePromptResponseFormat2FromJSON = updatePromptResponseFormat2FromJSON;
|
|
49
|
-
exports.updatePromptResponseFormatJsonSchemaToJSON = updatePromptResponseFormatJsonSchemaToJSON;
|
|
50
|
-
exports.updatePromptResponseFormatJsonSchemaFromJSON = updatePromptResponseFormatJsonSchemaFromJSON;
|
|
51
|
-
exports.updatePromptResponseFormat1ToJSON = updatePromptResponseFormat1ToJSON;
|
|
52
|
-
exports.updatePromptResponseFormat1FromJSON = updatePromptResponseFormat1FromJSON;
|
|
53
|
-
exports.updatePromptResponseFormatToJSON = updatePromptResponseFormatToJSON;
|
|
54
|
-
exports.updatePromptResponseFormatFromJSON = updatePromptResponseFormatFromJSON;
|
|
55
|
-
exports.updatePromptModelParametersToJSON = updatePromptModelParametersToJSON;
|
|
56
|
-
exports.updatePromptModelParametersFromJSON = updatePromptModelParametersFromJSON;
|
|
57
|
-
exports.updatePrompt2FileToJSON = updatePrompt2FileToJSON;
|
|
58
|
-
exports.updatePrompt2FileFromJSON = updatePrompt2FileFromJSON;
|
|
59
|
-
exports.updatePrompt23ToJSON = updatePrompt23ToJSON;
|
|
60
|
-
exports.updatePrompt23FromJSON = updatePrompt23FromJSON;
|
|
61
|
-
exports.updatePrompt2ImageUrlToJSON = updatePrompt2ImageUrlToJSON;
|
|
62
|
-
exports.updatePrompt2ImageUrlFromJSON = updatePrompt2ImageUrlFromJSON;
|
|
63
|
-
exports.updatePrompt22ToJSON = updatePrompt22ToJSON;
|
|
64
|
-
exports.updatePrompt22FromJSON = updatePrompt22FromJSON;
|
|
65
|
-
exports.updatePrompt21ToJSON = updatePrompt21ToJSON;
|
|
66
|
-
exports.updatePrompt21FromJSON = updatePrompt21FromJSON;
|
|
67
|
-
exports.updatePromptContent2ToJSON = updatePromptContent2ToJSON;
|
|
68
|
-
exports.updatePromptContent2FromJSON = updatePromptContent2FromJSON;
|
|
69
|
-
exports.updatePromptContentToJSON = updatePromptContentToJSON;
|
|
70
|
-
exports.updatePromptContentFromJSON = updatePromptContentFromJSON;
|
|
71
|
-
exports.updatePromptFunctionToJSON = updatePromptFunctionToJSON;
|
|
72
|
-
exports.updatePromptFunctionFromJSON = updatePromptFunctionFromJSON;
|
|
73
|
-
exports.updatePromptToolCallsToJSON = updatePromptToolCallsToJSON;
|
|
74
|
-
exports.updatePromptToolCallsFromJSON = updatePromptToolCallsFromJSON;
|
|
75
|
-
exports.updatePromptMessagesToJSON = updatePromptMessagesToJSON;
|
|
76
|
-
exports.updatePromptMessagesFromJSON = updatePromptMessagesFromJSON;
|
|
77
|
-
exports.promptConfigToJSON = promptConfigToJSON;
|
|
78
|
-
exports.promptConfigFromJSON = promptConfigFromJSON;
|
|
79
|
-
exports.updatePromptMetadataToJSON = updatePromptMetadataToJSON;
|
|
80
|
-
exports.updatePromptMetadataFromJSON = updatePromptMetadataFromJSON;
|
|
81
|
-
exports.updatePromptContentPromptsRequestRequestBody2ToJSON = updatePromptContentPromptsRequestRequestBody2ToJSON;
|
|
82
|
-
exports.updatePromptContentPromptsRequestRequestBody2FromJSON = updatePromptContentPromptsRequestRequestBody2FromJSON;
|
|
39
|
+
exports.UpdatePromptMessagesPromptsRequestRequestBodyContent$inboundSchema = exports.UpdatePromptContentPromptsRequest2$outboundSchema = exports.UpdatePromptContentPromptsRequest2$inboundSchema = exports.UpdatePromptPromptsLanguage = exports.UpdatePromptPromptsUseCases = exports.UpdatePrompt2PromptsTtl = exports.UpdatePrompt2PromptsResponse200ApplicationJSONResponseBodyPromptType = exports.UpdatePromptMessagesPromptsResponseType = exports.UpdatePromptMessagesPromptsTtl = exports.UpdatePromptMessagesPromptsResponse200Type = exports.UpdatePromptPromptsExecuteOn = exports.UpdatePromptIdPrompts1 = exports.UpdatePromptPromptsModalities = exports.UpdatePromptToolChoicePrompts1 = exports.UpdatePromptToolChoicePromptsType = exports.UpdatePromptPromptsReasoningEffort = exports.UpdatePromptPromptsResponse200Format = exports.UpdatePromptPromptsVoice = exports.UpdatePromptPromptsType = exports.UpdatePromptRole = exports.UpdatePromptProvider = exports.UpdatePromptThinkingLevel = exports.UpdatePromptVerbosity = exports.UpdatePromptPromptsResponseReasoningEffort = exports.UpdatePromptEncodingFormat = exports.UpdatePromptPhotoRealVersion = exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType = exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyPromptConfigType = exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyPromptConfigModelParametersType = exports.UpdatePromptResponseFormat4 = exports.UpdatePromptResponseFormat5 = exports.UpdatePromptResponseFormat6 = exports.UpdatePromptPromptsFormat = exports.UpdatePromptModelType = exports.UpdatePromptType = exports.UpdatePromptLanguage = exports.UpdatePromptUseCases = exports.UpdatePromptExecuteOn = exports.UpdatePromptId1 = exports.UpdatePromptModalities = exports.UpdatePromptToolChoice1 = exports.UpdatePromptToolChoiceType = exports.UpdatePromptReasoningEffort = exports.UpdatePromptFormat = exports.UpdatePromptVoice = exports.UpdatePrompt2Ttl = exports.UpdatePrompt2PromptsType = exports.UpdatePromptMessagesType = exports.UpdatePromptMessagesTtl = exports.UpdatePromptMessagesPromptsType = void 0;
|
|
40
|
+
exports.UpdatePromptResponseFormatPromptsJsonSchema$inboundSchema = exports.UpdatePromptAudio$outboundSchema = exports.UpdatePromptAudio$inboundSchema = exports.UpdatePromptFormat$outboundSchema = exports.UpdatePromptFormat$inboundSchema = exports.UpdatePromptVoice$outboundSchema = exports.UpdatePromptVoice$inboundSchema = exports.UpdatePromptMessages$outboundSchema = exports.UpdatePromptMessages$inboundSchema = exports.UpdatePromptMessagesSystemMessage$outboundSchema = exports.UpdatePromptMessagesSystemMessage$inboundSchema = exports.UpdatePromptMessagesContent$outboundSchema = exports.UpdatePromptMessagesContent$inboundSchema = exports.UpdatePromptMessagesUserMessage$outboundSchema = exports.UpdatePromptMessagesUserMessage$inboundSchema = exports.UpdatePromptMessagesPromptsContent$outboundSchema = exports.UpdatePromptMessagesPromptsContent$inboundSchema = exports.UpdatePromptContent2$outboundSchema = exports.UpdatePromptContent2$inboundSchema = exports.UpdatePrompt24$outboundSchema = exports.UpdatePrompt24$inboundSchema = exports.UpdatePrompt2CacheControl$outboundSchema = exports.UpdatePrompt2CacheControl$inboundSchema = exports.UpdatePrompt2Ttl$outboundSchema = exports.UpdatePrompt2Ttl$inboundSchema = exports.UpdatePrompt2PromptsType$outboundSchema = exports.UpdatePrompt2PromptsType$inboundSchema = exports.UpdatePromptMessagesAssistantMessage$outboundSchema = exports.UpdatePromptMessagesAssistantMessage$inboundSchema = exports.UpdatePromptMessagesToolCalls$outboundSchema = exports.UpdatePromptMessagesToolCalls$inboundSchema = exports.UpdatePromptMessagesFunction$outboundSchema = exports.UpdatePromptMessagesFunction$inboundSchema = exports.UpdatePromptMessagesType$outboundSchema = exports.UpdatePromptMessagesType$inboundSchema = exports.UpdatePromptMessagesAudio$outboundSchema = exports.UpdatePromptMessagesAudio$inboundSchema = exports.UpdatePromptMessagesPromptsRequestContent$outboundSchema = exports.UpdatePromptMessagesPromptsRequestContent$inboundSchema = exports.UpdatePromptContentPrompts2$outboundSchema = exports.UpdatePromptContentPrompts2$inboundSchema = exports.UpdatePromptMessagesToolMessage$outboundSchema = exports.UpdatePromptMessagesToolMessage$inboundSchema = exports.UpdatePromptMessagesCacheControl$outboundSchema = exports.UpdatePromptMessagesCacheControl$inboundSchema = exports.UpdatePromptMessagesTtl$outboundSchema = exports.UpdatePromptMessagesTtl$inboundSchema = exports.UpdatePromptMessagesPromptsType$outboundSchema = exports.UpdatePromptMessagesPromptsType$inboundSchema = exports.UpdatePromptMessagesPromptsRequestRequestBodyContent$outboundSchema = void 0;
|
|
41
|
+
exports.UpdatePromptType$inboundSchema = exports.UpdatePromptRequest$outboundSchema = exports.UpdatePromptRequest$inboundSchema = exports.UpdatePromptRequestBody$outboundSchema = exports.UpdatePromptRequestBody$inboundSchema = exports.UpdatePromptMetadata$outboundSchema = exports.UpdatePromptMetadata$inboundSchema = exports.UpdatePromptLanguage$outboundSchema = exports.UpdatePromptLanguage$inboundSchema = exports.UpdatePromptUseCases$outboundSchema = exports.UpdatePromptUseCases$inboundSchema = exports.UpdatePromptPromptInput$outboundSchema = exports.UpdatePromptPromptInput$inboundSchema = exports.UpdatePromptGuardrails$outboundSchema = exports.UpdatePromptGuardrails$inboundSchema = exports.UpdatePromptExecuteOn$outboundSchema = exports.UpdatePromptExecuteOn$inboundSchema = exports.UpdatePromptId$outboundSchema = exports.UpdatePromptId$inboundSchema = exports.UpdatePromptId1$outboundSchema = exports.UpdatePromptId1$inboundSchema = exports.UpdatePromptModalities$outboundSchema = exports.UpdatePromptModalities$inboundSchema = exports.UpdatePromptToolChoice$outboundSchema = exports.UpdatePromptToolChoice$inboundSchema = exports.UpdatePromptToolChoice1$outboundSchema = exports.UpdatePromptToolChoice1$inboundSchema = exports.UpdatePromptToolChoice2$outboundSchema = exports.UpdatePromptToolChoice2$inboundSchema = exports.UpdatePromptToolChoiceFunction$outboundSchema = exports.UpdatePromptToolChoiceFunction$inboundSchema = exports.UpdatePromptToolChoiceType$outboundSchema = exports.UpdatePromptToolChoiceType$inboundSchema = exports.UpdatePromptThinking$outboundSchema = exports.UpdatePromptThinking$inboundSchema = exports.UpdatePromptStreamOptions$outboundSchema = exports.UpdatePromptStreamOptions$inboundSchema = exports.UpdatePromptStop$outboundSchema = exports.UpdatePromptStop$inboundSchema = exports.UpdatePromptReasoningEffort$outboundSchema = exports.UpdatePromptReasoningEffort$inboundSchema = exports.UpdatePromptResponseFormat$outboundSchema = exports.UpdatePromptResponseFormat$inboundSchema = exports.UpdatePromptResponseFormatText$outboundSchema = exports.UpdatePromptResponseFormatText$inboundSchema = exports.UpdatePromptResponseFormatJSONObject$outboundSchema = exports.UpdatePromptResponseFormatJSONObject$inboundSchema = exports.UpdatePromptResponseFormatJSONSchema$outboundSchema = exports.UpdatePromptResponseFormatJSONSchema$inboundSchema = exports.UpdatePromptResponseFormatPromptsJsonSchema$outboundSchema = void 0;
|
|
42
|
+
exports.UpdatePrompt22$inboundSchema = exports.UpdatePrompt2ImageUrl$outboundSchema = exports.UpdatePrompt2ImageUrl$inboundSchema = exports.UpdatePrompt23$outboundSchema = exports.UpdatePrompt23$inboundSchema = exports.UpdatePrompt2File$outboundSchema = exports.UpdatePrompt2File$inboundSchema = exports.UpdatePromptRole$outboundSchema = exports.UpdatePromptRole$inboundSchema = exports.UpdatePromptProvider$outboundSchema = exports.UpdatePromptProvider$inboundSchema = exports.UpdatePromptModelParameters$outboundSchema = exports.UpdatePromptModelParameters$inboundSchema = exports.UpdatePromptThinkingLevel$outboundSchema = exports.UpdatePromptThinkingLevel$inboundSchema = exports.UpdatePromptVerbosity$outboundSchema = exports.UpdatePromptVerbosity$inboundSchema = exports.UpdatePromptPromptsResponseReasoningEffort$outboundSchema = exports.UpdatePromptPromptsResponseReasoningEffort$inboundSchema = exports.UpdatePromptEncodingFormat$outboundSchema = exports.UpdatePromptEncodingFormat$inboundSchema = exports.UpdatePromptPhotoRealVersion$outboundSchema = exports.UpdatePromptPhotoRealVersion$inboundSchema = exports.UpdatePromptPromptsResponseResponseFormat$outboundSchema = exports.UpdatePromptPromptsResponseResponseFormat$inboundSchema = exports.UpdatePromptResponseFormat1$outboundSchema = exports.UpdatePromptResponseFormat1$inboundSchema = exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONJSONSchema$outboundSchema = exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONJSONSchema$inboundSchema = exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$outboundSchema = exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema = exports.UpdatePromptResponseFormat2$outboundSchema = exports.UpdatePromptResponseFormat2$inboundSchema = exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyPromptConfigType$outboundSchema = exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyPromptConfigType$inboundSchema = exports.UpdatePromptResponseFormat3$outboundSchema = exports.UpdatePromptResponseFormat3$inboundSchema = exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyPromptConfigModelParametersType$outboundSchema = exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyPromptConfigModelParametersType$inboundSchema = exports.UpdatePromptResponseFormat4$outboundSchema = exports.UpdatePromptResponseFormat4$inboundSchema = exports.UpdatePromptResponseFormat5$outboundSchema = exports.UpdatePromptResponseFormat5$inboundSchema = exports.UpdatePromptResponseFormat6$outboundSchema = exports.UpdatePromptResponseFormat6$inboundSchema = exports.UpdatePromptPromptsFormat$outboundSchema = exports.UpdatePromptPromptsFormat$inboundSchema = exports.UpdatePromptModelType$outboundSchema = exports.UpdatePromptModelType$inboundSchema = exports.UpdatePromptType$outboundSchema = void 0;
|
|
43
|
+
exports.UpdatePromptPromptsToolChoice$inboundSchema = exports.UpdatePromptToolChoicePrompts1$outboundSchema = exports.UpdatePromptToolChoicePrompts1$inboundSchema = exports.UpdatePromptToolChoicePrompts2$outboundSchema = exports.UpdatePromptToolChoicePrompts2$inboundSchema = exports.UpdatePromptToolChoicePromptsFunction$outboundSchema = exports.UpdatePromptToolChoicePromptsFunction$inboundSchema = exports.UpdatePromptToolChoicePromptsType$outboundSchema = exports.UpdatePromptToolChoicePromptsType$inboundSchema = exports.UpdatePromptPromptsThinking$outboundSchema = exports.UpdatePromptPromptsThinking$inboundSchema = exports.UpdatePromptPromptsStreamOptions$outboundSchema = exports.UpdatePromptPromptsStreamOptions$inboundSchema = exports.UpdatePromptPromptsStop$outboundSchema = exports.UpdatePromptPromptsStop$inboundSchema = exports.UpdatePromptPromptsReasoningEffort$outboundSchema = exports.UpdatePromptPromptsReasoningEffort$inboundSchema = exports.UpdatePromptPromptsResponseFormat$outboundSchema = exports.UpdatePromptPromptsResponseFormat$inboundSchema = exports.UpdatePromptResponseFormatPromptsText$outboundSchema = exports.UpdatePromptResponseFormatPromptsText$inboundSchema = exports.UpdatePromptResponseFormatPromptsJSONObject$outboundSchema = exports.UpdatePromptResponseFormatPromptsJSONObject$inboundSchema = exports.UpdatePromptResponseFormatPromptsResponse200JSONSchema$outboundSchema = exports.UpdatePromptResponseFormatPromptsResponse200JSONSchema$inboundSchema = exports.UpdatePromptResponseFormatPromptsResponseJsonSchema$outboundSchema = exports.UpdatePromptResponseFormatPromptsResponseJsonSchema$inboundSchema = exports.UpdatePromptPromptsAudio$outboundSchema = exports.UpdatePromptPromptsAudio$inboundSchema = exports.UpdatePromptPromptsResponse200Format$outboundSchema = exports.UpdatePromptPromptsResponse200Format$inboundSchema = exports.UpdatePromptPromptsVoice$outboundSchema = exports.UpdatePromptPromptsVoice$inboundSchema = exports.UpdatePromptPromptConfig$outboundSchema = exports.UpdatePromptPromptConfig$inboundSchema = exports.UpdatePromptPromptsMessages$outboundSchema = exports.UpdatePromptPromptsMessages$inboundSchema = exports.UpdatePromptToolCalls$outboundSchema = exports.UpdatePromptToolCalls$inboundSchema = exports.UpdatePromptFunction$outboundSchema = exports.UpdatePromptFunction$inboundSchema = exports.UpdatePromptPromptsType$outboundSchema = exports.UpdatePromptPromptsType$inboundSchema = exports.UpdatePromptContent$outboundSchema = exports.UpdatePromptContent$inboundSchema = exports.UpdatePromptContentPromptsResponse2$outboundSchema = exports.UpdatePromptContentPromptsResponse2$inboundSchema = exports.UpdatePrompt21$outboundSchema = exports.UpdatePrompt21$inboundSchema = exports.UpdatePrompt22$outboundSchema = void 0;
|
|
44
|
+
exports.UpdatePromptMessagesPromptsUserMessage$inboundSchema = exports.UpdatePromptMessagesPromptsResponse200Content$outboundSchema = exports.UpdatePromptMessagesPromptsResponse200Content$inboundSchema = exports.UpdatePromptContentPromptsResponse2002$outboundSchema = exports.UpdatePromptContentPromptsResponse2002$inboundSchema = exports.UpdatePrompt2Prompts4$outboundSchema = exports.UpdatePrompt2Prompts4$inboundSchema = exports.UpdatePrompt2PromptsCacheControl$outboundSchema = exports.UpdatePrompt2PromptsCacheControl$inboundSchema = exports.UpdatePrompt2PromptsTtl$outboundSchema = exports.UpdatePrompt2PromptsTtl$inboundSchema = exports.UpdatePrompt2PromptsResponse200ApplicationJSONResponseBodyPromptType$outboundSchema = exports.UpdatePrompt2PromptsResponse200ApplicationJSONResponseBodyPromptType$inboundSchema = exports.UpdatePromptMessagesPromptsAssistantMessage$outboundSchema = exports.UpdatePromptMessagesPromptsAssistantMessage$inboundSchema = exports.UpdatePromptMessagesPromptsToolCalls$outboundSchema = exports.UpdatePromptMessagesPromptsToolCalls$inboundSchema = exports.UpdatePromptMessagesPromptsFunction$outboundSchema = exports.UpdatePromptMessagesPromptsFunction$inboundSchema = exports.UpdatePromptMessagesPromptsResponseType$outboundSchema = exports.UpdatePromptMessagesPromptsResponseType$inboundSchema = exports.UpdatePromptMessagesPromptsAudio$outboundSchema = exports.UpdatePromptMessagesPromptsAudio$inboundSchema = exports.UpdatePromptMessagesPromptsResponse200ApplicationJSONContent$outboundSchema = exports.UpdatePromptMessagesPromptsResponse200ApplicationJSONContent$inboundSchema = exports.UpdatePromptContentPromptsResponse200ApplicationJson2$outboundSchema = exports.UpdatePromptContentPromptsResponse200ApplicationJson2$inboundSchema = exports.UpdatePromptMessagesPromptsToolMessage$outboundSchema = exports.UpdatePromptMessagesPromptsToolMessage$inboundSchema = exports.UpdatePromptMessagesPromptsCacheControl$outboundSchema = exports.UpdatePromptMessagesPromptsCacheControl$inboundSchema = exports.UpdatePromptMessagesPromptsTtl$outboundSchema = exports.UpdatePromptMessagesPromptsTtl$inboundSchema = exports.UpdatePromptMessagesPromptsResponse200Type$outboundSchema = exports.UpdatePromptMessagesPromptsResponse200Type$inboundSchema = exports.UpdatePromptMessagesPromptsResponse200ApplicationJSONResponseBodyContent$outboundSchema = exports.UpdatePromptMessagesPromptsResponse200ApplicationJSONResponseBodyContent$inboundSchema = exports.UpdatePromptContentPromptsResponse200ApplicationJSONResponseBody2$outboundSchema = exports.UpdatePromptContentPromptsResponse200ApplicationJSONResponseBody2$inboundSchema = exports.UpdatePromptPromptsGuardrails$outboundSchema = exports.UpdatePromptPromptsGuardrails$inboundSchema = exports.UpdatePromptPromptsExecuteOn$outboundSchema = exports.UpdatePromptPromptsExecuteOn$inboundSchema = exports.UpdatePromptPromptsId$outboundSchema = exports.UpdatePromptPromptsId$inboundSchema = exports.UpdatePromptIdPrompts1$outboundSchema = exports.UpdatePromptIdPrompts1$inboundSchema = exports.UpdatePromptPromptsModalities$outboundSchema = exports.UpdatePromptPromptsModalities$inboundSchema = exports.UpdatePromptPromptsToolChoice$outboundSchema = void 0;
|
|
45
|
+
exports.UpdatePromptPrompt$outboundSchema = exports.UpdatePromptPrompt$inboundSchema = exports.UpdatePromptPromptsMetadata$outboundSchema = exports.UpdatePromptPromptsMetadata$inboundSchema = exports.UpdatePromptPromptsLanguage$outboundSchema = exports.UpdatePromptPromptsLanguage$inboundSchema = exports.UpdatePromptPromptsUseCases$outboundSchema = exports.UpdatePromptPromptsUseCases$inboundSchema = exports.UpdatePromptPromptField$outboundSchema = exports.UpdatePromptPromptField$inboundSchema = exports.UpdatePromptPromptsResponseMessages$outboundSchema = exports.UpdatePromptPromptsResponseMessages$inboundSchema = exports.UpdatePromptMessagesPromptsSystemMessage$outboundSchema = exports.UpdatePromptMessagesPromptsSystemMessage$inboundSchema = exports.UpdatePromptMessagesPromptsResponseContent$outboundSchema = exports.UpdatePromptMessagesPromptsResponseContent$inboundSchema = exports.UpdatePromptMessagesPromptsUserMessage$outboundSchema = void 0;
|
|
46
|
+
exports.updatePromptContentPromptsRequest2ToJSON = updatePromptContentPromptsRequest2ToJSON;
|
|
47
|
+
exports.updatePromptContentPromptsRequest2FromJSON = updatePromptContentPromptsRequest2FromJSON;
|
|
83
48
|
exports.updatePromptMessagesPromptsRequestRequestBodyContentToJSON = updatePromptMessagesPromptsRequestRequestBodyContentToJSON;
|
|
84
49
|
exports.updatePromptMessagesPromptsRequestRequestBodyContentFromJSON = updatePromptMessagesPromptsRequestRequestBodyContentFromJSON;
|
|
85
50
|
exports.updatePromptMessagesCacheControlToJSON = updatePromptMessagesCacheControlToJSON;
|
|
86
51
|
exports.updatePromptMessagesCacheControlFromJSON = updatePromptMessagesCacheControlFromJSON;
|
|
87
52
|
exports.updatePromptMessagesToolMessageToJSON = updatePromptMessagesToolMessageToJSON;
|
|
88
53
|
exports.updatePromptMessagesToolMessageFromJSON = updatePromptMessagesToolMessageFromJSON;
|
|
89
|
-
exports.
|
|
90
|
-
exports.
|
|
54
|
+
exports.updatePromptContentPrompts2ToJSON = updatePromptContentPrompts2ToJSON;
|
|
55
|
+
exports.updatePromptContentPrompts2FromJSON = updatePromptContentPrompts2FromJSON;
|
|
91
56
|
exports.updatePromptMessagesPromptsRequestContentToJSON = updatePromptMessagesPromptsRequestContentToJSON;
|
|
92
57
|
exports.updatePromptMessagesPromptsRequestContentFromJSON = updatePromptMessagesPromptsRequestContentFromJSON;
|
|
93
58
|
exports.updatePromptMessagesAudioToJSON = updatePromptMessagesAudioToJSON;
|
|
@@ -102,8 +67,8 @@ exports.updatePrompt2CacheControlToJSON = updatePrompt2CacheControlToJSON;
|
|
|
102
67
|
exports.updatePrompt2CacheControlFromJSON = updatePrompt2CacheControlFromJSON;
|
|
103
68
|
exports.updatePrompt24ToJSON = updatePrompt24ToJSON;
|
|
104
69
|
exports.updatePrompt24FromJSON = updatePrompt24FromJSON;
|
|
105
|
-
exports.
|
|
106
|
-
exports.
|
|
70
|
+
exports.updatePromptContent2ToJSON = updatePromptContent2ToJSON;
|
|
71
|
+
exports.updatePromptContent2FromJSON = updatePromptContent2FromJSON;
|
|
107
72
|
exports.updatePromptMessagesPromptsContentToJSON = updatePromptMessagesPromptsContentToJSON;
|
|
108
73
|
exports.updatePromptMessagesPromptsContentFromJSON = updatePromptMessagesPromptsContentFromJSON;
|
|
109
74
|
exports.updatePromptMessagesUserMessageToJSON = updatePromptMessagesUserMessageToJSON;
|
|
@@ -112,58 +77,144 @@ exports.updatePromptMessagesContentToJSON = updatePromptMessagesContentToJSON;
|
|
|
112
77
|
exports.updatePromptMessagesContentFromJSON = updatePromptMessagesContentFromJSON;
|
|
113
78
|
exports.updatePromptMessagesSystemMessageToJSON = updatePromptMessagesSystemMessageToJSON;
|
|
114
79
|
exports.updatePromptMessagesSystemMessageFromJSON = updatePromptMessagesSystemMessageFromJSON;
|
|
115
|
-
exports.
|
|
116
|
-
exports.
|
|
117
|
-
exports.
|
|
118
|
-
exports.
|
|
119
|
-
exports.
|
|
120
|
-
exports.
|
|
80
|
+
exports.updatePromptMessagesToJSON = updatePromptMessagesToJSON;
|
|
81
|
+
exports.updatePromptMessagesFromJSON = updatePromptMessagesFromJSON;
|
|
82
|
+
exports.updatePromptAudioToJSON = updatePromptAudioToJSON;
|
|
83
|
+
exports.updatePromptAudioFromJSON = updatePromptAudioFromJSON;
|
|
84
|
+
exports.updatePromptResponseFormatPromptsJsonSchemaToJSON = updatePromptResponseFormatPromptsJsonSchemaToJSON;
|
|
85
|
+
exports.updatePromptResponseFormatPromptsJsonSchemaFromJSON = updatePromptResponseFormatPromptsJsonSchemaFromJSON;
|
|
86
|
+
exports.updatePromptResponseFormatJSONSchemaToJSON = updatePromptResponseFormatJSONSchemaToJSON;
|
|
87
|
+
exports.updatePromptResponseFormatJSONSchemaFromJSON = updatePromptResponseFormatJSONSchemaFromJSON;
|
|
121
88
|
exports.updatePromptResponseFormatJSONObjectToJSON = updatePromptResponseFormatJSONObjectToJSON;
|
|
122
89
|
exports.updatePromptResponseFormatJSONObjectFromJSON = updatePromptResponseFormatJSONObjectFromJSON;
|
|
123
90
|
exports.updatePromptResponseFormatTextToJSON = updatePromptResponseFormatTextToJSON;
|
|
124
91
|
exports.updatePromptResponseFormatTextFromJSON = updatePromptResponseFormatTextFromJSON;
|
|
125
|
-
exports.
|
|
126
|
-
exports.
|
|
92
|
+
exports.updatePromptResponseFormatToJSON = updatePromptResponseFormatToJSON;
|
|
93
|
+
exports.updatePromptResponseFormatFromJSON = updatePromptResponseFormatFromJSON;
|
|
94
|
+
exports.updatePromptStopToJSON = updatePromptStopToJSON;
|
|
95
|
+
exports.updatePromptStopFromJSON = updatePromptStopFromJSON;
|
|
96
|
+
exports.updatePromptStreamOptionsToJSON = updatePromptStreamOptionsToJSON;
|
|
97
|
+
exports.updatePromptStreamOptionsFromJSON = updatePromptStreamOptionsFromJSON;
|
|
98
|
+
exports.updatePromptThinkingToJSON = updatePromptThinkingToJSON;
|
|
99
|
+
exports.updatePromptThinkingFromJSON = updatePromptThinkingFromJSON;
|
|
100
|
+
exports.updatePromptToolChoiceFunctionToJSON = updatePromptToolChoiceFunctionToJSON;
|
|
101
|
+
exports.updatePromptToolChoiceFunctionFromJSON = updatePromptToolChoiceFunctionFromJSON;
|
|
102
|
+
exports.updatePromptToolChoice2ToJSON = updatePromptToolChoice2ToJSON;
|
|
103
|
+
exports.updatePromptToolChoice2FromJSON = updatePromptToolChoice2FromJSON;
|
|
104
|
+
exports.updatePromptToolChoiceToJSON = updatePromptToolChoiceToJSON;
|
|
105
|
+
exports.updatePromptToolChoiceFromJSON = updatePromptToolChoiceFromJSON;
|
|
106
|
+
exports.updatePromptIdToJSON = updatePromptIdToJSON;
|
|
107
|
+
exports.updatePromptIdFromJSON = updatePromptIdFromJSON;
|
|
108
|
+
exports.updatePromptGuardrailsToJSON = updatePromptGuardrailsToJSON;
|
|
109
|
+
exports.updatePromptGuardrailsFromJSON = updatePromptGuardrailsFromJSON;
|
|
127
110
|
exports.updatePromptPromptInputToJSON = updatePromptPromptInputToJSON;
|
|
128
111
|
exports.updatePromptPromptInputFromJSON = updatePromptPromptInputFromJSON;
|
|
112
|
+
exports.updatePromptMetadataToJSON = updatePromptMetadataToJSON;
|
|
113
|
+
exports.updatePromptMetadataFromJSON = updatePromptMetadataFromJSON;
|
|
129
114
|
exports.updatePromptRequestBodyToJSON = updatePromptRequestBodyToJSON;
|
|
130
115
|
exports.updatePromptRequestBodyFromJSON = updatePromptRequestBodyFromJSON;
|
|
131
116
|
exports.updatePromptRequestToJSON = updatePromptRequestToJSON;
|
|
132
117
|
exports.updatePromptRequestFromJSON = updatePromptRequestFromJSON;
|
|
133
|
-
exports.
|
|
134
|
-
exports.
|
|
135
|
-
exports.
|
|
136
|
-
exports.
|
|
137
|
-
exports.
|
|
138
|
-
exports.
|
|
139
|
-
exports.
|
|
140
|
-
exports.
|
|
118
|
+
exports.updatePromptResponseFormat3ToJSON = updatePromptResponseFormat3ToJSON;
|
|
119
|
+
exports.updatePromptResponseFormat3FromJSON = updatePromptResponseFormat3FromJSON;
|
|
120
|
+
exports.updatePromptResponseFormat2ToJSON = updatePromptResponseFormat2ToJSON;
|
|
121
|
+
exports.updatePromptResponseFormat2FromJSON = updatePromptResponseFormat2FromJSON;
|
|
122
|
+
exports.updatePromptResponseFormatPromptsResponse200ApplicationJSONJSONSchemaToJSON = updatePromptResponseFormatPromptsResponse200ApplicationJSONJSONSchemaToJSON;
|
|
123
|
+
exports.updatePromptResponseFormatPromptsResponse200ApplicationJSONJSONSchemaFromJSON = updatePromptResponseFormatPromptsResponse200ApplicationJSONJSONSchemaFromJSON;
|
|
124
|
+
exports.updatePromptResponseFormat1ToJSON = updatePromptResponseFormat1ToJSON;
|
|
125
|
+
exports.updatePromptResponseFormat1FromJSON = updatePromptResponseFormat1FromJSON;
|
|
141
126
|
exports.updatePromptPromptsResponseResponseFormatToJSON = updatePromptPromptsResponseResponseFormatToJSON;
|
|
142
127
|
exports.updatePromptPromptsResponseResponseFormatFromJSON = updatePromptPromptsResponseResponseFormatFromJSON;
|
|
143
|
-
exports.
|
|
144
|
-
exports.
|
|
145
|
-
exports.
|
|
146
|
-
exports.
|
|
147
|
-
exports.
|
|
148
|
-
exports.
|
|
149
|
-
exports.
|
|
150
|
-
exports.
|
|
151
|
-
exports.
|
|
152
|
-
exports.
|
|
153
|
-
exports.
|
|
154
|
-
exports.
|
|
128
|
+
exports.updatePromptModelParametersToJSON = updatePromptModelParametersToJSON;
|
|
129
|
+
exports.updatePromptModelParametersFromJSON = updatePromptModelParametersFromJSON;
|
|
130
|
+
exports.updatePrompt2FileToJSON = updatePrompt2FileToJSON;
|
|
131
|
+
exports.updatePrompt2FileFromJSON = updatePrompt2FileFromJSON;
|
|
132
|
+
exports.updatePrompt23ToJSON = updatePrompt23ToJSON;
|
|
133
|
+
exports.updatePrompt23FromJSON = updatePrompt23FromJSON;
|
|
134
|
+
exports.updatePrompt2ImageUrlToJSON = updatePrompt2ImageUrlToJSON;
|
|
135
|
+
exports.updatePrompt2ImageUrlFromJSON = updatePrompt2ImageUrlFromJSON;
|
|
136
|
+
exports.updatePrompt22ToJSON = updatePrompt22ToJSON;
|
|
137
|
+
exports.updatePrompt22FromJSON = updatePrompt22FromJSON;
|
|
138
|
+
exports.updatePrompt21ToJSON = updatePrompt21ToJSON;
|
|
139
|
+
exports.updatePrompt21FromJSON = updatePrompt21FromJSON;
|
|
155
140
|
exports.updatePromptContentPromptsResponse2ToJSON = updatePromptContentPromptsResponse2ToJSON;
|
|
156
141
|
exports.updatePromptContentPromptsResponse2FromJSON = updatePromptContentPromptsResponse2FromJSON;
|
|
157
|
-
exports.
|
|
158
|
-
exports.
|
|
159
|
-
exports.
|
|
160
|
-
exports.
|
|
161
|
-
exports.
|
|
162
|
-
exports.
|
|
163
|
-
exports.
|
|
164
|
-
exports.
|
|
142
|
+
exports.updatePromptContentToJSON = updatePromptContentToJSON;
|
|
143
|
+
exports.updatePromptContentFromJSON = updatePromptContentFromJSON;
|
|
144
|
+
exports.updatePromptFunctionToJSON = updatePromptFunctionToJSON;
|
|
145
|
+
exports.updatePromptFunctionFromJSON = updatePromptFunctionFromJSON;
|
|
146
|
+
exports.updatePromptToolCallsToJSON = updatePromptToolCallsToJSON;
|
|
147
|
+
exports.updatePromptToolCallsFromJSON = updatePromptToolCallsFromJSON;
|
|
148
|
+
exports.updatePromptPromptsMessagesToJSON = updatePromptPromptsMessagesToJSON;
|
|
149
|
+
exports.updatePromptPromptsMessagesFromJSON = updatePromptPromptsMessagesFromJSON;
|
|
165
150
|
exports.updatePromptPromptConfigToJSON = updatePromptPromptConfigToJSON;
|
|
166
151
|
exports.updatePromptPromptConfigFromJSON = updatePromptPromptConfigFromJSON;
|
|
152
|
+
exports.updatePromptPromptsAudioToJSON = updatePromptPromptsAudioToJSON;
|
|
153
|
+
exports.updatePromptPromptsAudioFromJSON = updatePromptPromptsAudioFromJSON;
|
|
154
|
+
exports.updatePromptResponseFormatPromptsResponseJsonSchemaToJSON = updatePromptResponseFormatPromptsResponseJsonSchemaToJSON;
|
|
155
|
+
exports.updatePromptResponseFormatPromptsResponseJsonSchemaFromJSON = updatePromptResponseFormatPromptsResponseJsonSchemaFromJSON;
|
|
156
|
+
exports.updatePromptResponseFormatPromptsResponse200JSONSchemaToJSON = updatePromptResponseFormatPromptsResponse200JSONSchemaToJSON;
|
|
157
|
+
exports.updatePromptResponseFormatPromptsResponse200JSONSchemaFromJSON = updatePromptResponseFormatPromptsResponse200JSONSchemaFromJSON;
|
|
158
|
+
exports.updatePromptResponseFormatPromptsJSONObjectToJSON = updatePromptResponseFormatPromptsJSONObjectToJSON;
|
|
159
|
+
exports.updatePromptResponseFormatPromptsJSONObjectFromJSON = updatePromptResponseFormatPromptsJSONObjectFromJSON;
|
|
160
|
+
exports.updatePromptResponseFormatPromptsTextToJSON = updatePromptResponseFormatPromptsTextToJSON;
|
|
161
|
+
exports.updatePromptResponseFormatPromptsTextFromJSON = updatePromptResponseFormatPromptsTextFromJSON;
|
|
162
|
+
exports.updatePromptPromptsResponseFormatToJSON = updatePromptPromptsResponseFormatToJSON;
|
|
163
|
+
exports.updatePromptPromptsResponseFormatFromJSON = updatePromptPromptsResponseFormatFromJSON;
|
|
164
|
+
exports.updatePromptPromptsStopToJSON = updatePromptPromptsStopToJSON;
|
|
165
|
+
exports.updatePromptPromptsStopFromJSON = updatePromptPromptsStopFromJSON;
|
|
166
|
+
exports.updatePromptPromptsStreamOptionsToJSON = updatePromptPromptsStreamOptionsToJSON;
|
|
167
|
+
exports.updatePromptPromptsStreamOptionsFromJSON = updatePromptPromptsStreamOptionsFromJSON;
|
|
168
|
+
exports.updatePromptPromptsThinkingToJSON = updatePromptPromptsThinkingToJSON;
|
|
169
|
+
exports.updatePromptPromptsThinkingFromJSON = updatePromptPromptsThinkingFromJSON;
|
|
170
|
+
exports.updatePromptToolChoicePromptsFunctionToJSON = updatePromptToolChoicePromptsFunctionToJSON;
|
|
171
|
+
exports.updatePromptToolChoicePromptsFunctionFromJSON = updatePromptToolChoicePromptsFunctionFromJSON;
|
|
172
|
+
exports.updatePromptToolChoicePrompts2ToJSON = updatePromptToolChoicePrompts2ToJSON;
|
|
173
|
+
exports.updatePromptToolChoicePrompts2FromJSON = updatePromptToolChoicePrompts2FromJSON;
|
|
174
|
+
exports.updatePromptPromptsToolChoiceToJSON = updatePromptPromptsToolChoiceToJSON;
|
|
175
|
+
exports.updatePromptPromptsToolChoiceFromJSON = updatePromptPromptsToolChoiceFromJSON;
|
|
176
|
+
exports.updatePromptPromptsIdToJSON = updatePromptPromptsIdToJSON;
|
|
177
|
+
exports.updatePromptPromptsIdFromJSON = updatePromptPromptsIdFromJSON;
|
|
178
|
+
exports.updatePromptPromptsGuardrailsToJSON = updatePromptPromptsGuardrailsToJSON;
|
|
179
|
+
exports.updatePromptPromptsGuardrailsFromJSON = updatePromptPromptsGuardrailsFromJSON;
|
|
180
|
+
exports.updatePromptContentPromptsResponse200ApplicationJSONResponseBody2ToJSON = updatePromptContentPromptsResponse200ApplicationJSONResponseBody2ToJSON;
|
|
181
|
+
exports.updatePromptContentPromptsResponse200ApplicationJSONResponseBody2FromJSON = updatePromptContentPromptsResponse200ApplicationJSONResponseBody2FromJSON;
|
|
182
|
+
exports.updatePromptMessagesPromptsResponse200ApplicationJSONResponseBodyContentToJSON = updatePromptMessagesPromptsResponse200ApplicationJSONResponseBodyContentToJSON;
|
|
183
|
+
exports.updatePromptMessagesPromptsResponse200ApplicationJSONResponseBodyContentFromJSON = updatePromptMessagesPromptsResponse200ApplicationJSONResponseBodyContentFromJSON;
|
|
184
|
+
exports.updatePromptMessagesPromptsCacheControlToJSON = updatePromptMessagesPromptsCacheControlToJSON;
|
|
185
|
+
exports.updatePromptMessagesPromptsCacheControlFromJSON = updatePromptMessagesPromptsCacheControlFromJSON;
|
|
186
|
+
exports.updatePromptMessagesPromptsToolMessageToJSON = updatePromptMessagesPromptsToolMessageToJSON;
|
|
187
|
+
exports.updatePromptMessagesPromptsToolMessageFromJSON = updatePromptMessagesPromptsToolMessageFromJSON;
|
|
188
|
+
exports.updatePromptContentPromptsResponse200ApplicationJSON2ToJSON = updatePromptContentPromptsResponse200ApplicationJSON2ToJSON;
|
|
189
|
+
exports.updatePromptContentPromptsResponse200ApplicationJSON2FromJSON = updatePromptContentPromptsResponse200ApplicationJSON2FromJSON;
|
|
190
|
+
exports.updatePromptMessagesPromptsResponse200ApplicationJSONContentToJSON = updatePromptMessagesPromptsResponse200ApplicationJSONContentToJSON;
|
|
191
|
+
exports.updatePromptMessagesPromptsResponse200ApplicationJSONContentFromJSON = updatePromptMessagesPromptsResponse200ApplicationJSONContentFromJSON;
|
|
192
|
+
exports.updatePromptMessagesPromptsAudioToJSON = updatePromptMessagesPromptsAudioToJSON;
|
|
193
|
+
exports.updatePromptMessagesPromptsAudioFromJSON = updatePromptMessagesPromptsAudioFromJSON;
|
|
194
|
+
exports.updatePromptMessagesPromptsFunctionToJSON = updatePromptMessagesPromptsFunctionToJSON;
|
|
195
|
+
exports.updatePromptMessagesPromptsFunctionFromJSON = updatePromptMessagesPromptsFunctionFromJSON;
|
|
196
|
+
exports.updatePromptMessagesPromptsToolCallsToJSON = updatePromptMessagesPromptsToolCallsToJSON;
|
|
197
|
+
exports.updatePromptMessagesPromptsToolCallsFromJSON = updatePromptMessagesPromptsToolCallsFromJSON;
|
|
198
|
+
exports.updatePromptMessagesPromptsAssistantMessageToJSON = updatePromptMessagesPromptsAssistantMessageToJSON;
|
|
199
|
+
exports.updatePromptMessagesPromptsAssistantMessageFromJSON = updatePromptMessagesPromptsAssistantMessageFromJSON;
|
|
200
|
+
exports.updatePrompt2PromptsCacheControlToJSON = updatePrompt2PromptsCacheControlToJSON;
|
|
201
|
+
exports.updatePrompt2PromptsCacheControlFromJSON = updatePrompt2PromptsCacheControlFromJSON;
|
|
202
|
+
exports.updatePrompt2Prompts4ToJSON = updatePrompt2Prompts4ToJSON;
|
|
203
|
+
exports.updatePrompt2Prompts4FromJSON = updatePrompt2Prompts4FromJSON;
|
|
204
|
+
exports.updatePromptContentPromptsResponse2002ToJSON = updatePromptContentPromptsResponse2002ToJSON;
|
|
205
|
+
exports.updatePromptContentPromptsResponse2002FromJSON = updatePromptContentPromptsResponse2002FromJSON;
|
|
206
|
+
exports.updatePromptMessagesPromptsResponse200ContentToJSON = updatePromptMessagesPromptsResponse200ContentToJSON;
|
|
207
|
+
exports.updatePromptMessagesPromptsResponse200ContentFromJSON = updatePromptMessagesPromptsResponse200ContentFromJSON;
|
|
208
|
+
exports.updatePromptMessagesPromptsUserMessageToJSON = updatePromptMessagesPromptsUserMessageToJSON;
|
|
209
|
+
exports.updatePromptMessagesPromptsUserMessageFromJSON = updatePromptMessagesPromptsUserMessageFromJSON;
|
|
210
|
+
exports.updatePromptMessagesPromptsResponseContentToJSON = updatePromptMessagesPromptsResponseContentToJSON;
|
|
211
|
+
exports.updatePromptMessagesPromptsResponseContentFromJSON = updatePromptMessagesPromptsResponseContentFromJSON;
|
|
212
|
+
exports.updatePromptMessagesPromptsSystemMessageToJSON = updatePromptMessagesPromptsSystemMessageToJSON;
|
|
213
|
+
exports.updatePromptMessagesPromptsSystemMessageFromJSON = updatePromptMessagesPromptsSystemMessageFromJSON;
|
|
214
|
+
exports.updatePromptPromptsResponseMessagesToJSON = updatePromptPromptsResponseMessagesToJSON;
|
|
215
|
+
exports.updatePromptPromptsResponseMessagesFromJSON = updatePromptPromptsResponseMessagesFromJSON;
|
|
216
|
+
exports.updatePromptPromptFieldToJSON = updatePromptPromptFieldToJSON;
|
|
217
|
+
exports.updatePromptPromptFieldFromJSON = updatePromptPromptFieldFromJSON;
|
|
167
218
|
exports.updatePromptPromptsMetadataToJSON = updatePromptPromptsMetadataToJSON;
|
|
168
219
|
exports.updatePromptPromptsMetadataFromJSON = updatePromptPromptsMetadataFromJSON;
|
|
169
220
|
exports.updatePromptPromptToJSON = updatePromptPromptToJSON;
|
|
@@ -173,22 +224,190 @@ const primitives_js_1 = require("../../lib/primitives.js");
|
|
|
173
224
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
174
225
|
const components = __importStar(require("../components/index.js"));
|
|
175
226
|
/**
|
|
176
|
-
*
|
|
227
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
228
|
+
*/
|
|
229
|
+
exports.UpdatePromptMessagesPromptsType = {
|
|
230
|
+
Ephemeral: "ephemeral",
|
|
231
|
+
};
|
|
232
|
+
/**
|
|
233
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
234
|
+
*
|
|
235
|
+
* @remarks
|
|
236
|
+
*
|
|
237
|
+
* - `5m`: 5 minutes
|
|
238
|
+
* - `1h`: 1 hour
|
|
239
|
+
*
|
|
240
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
241
|
+
*/
|
|
242
|
+
exports.UpdatePromptMessagesTtl = {
|
|
243
|
+
Fivem: "5m",
|
|
244
|
+
Oneh: "1h",
|
|
245
|
+
};
|
|
246
|
+
/**
|
|
247
|
+
* The type of the tool. Currently, only `function` is supported.
|
|
248
|
+
*/
|
|
249
|
+
exports.UpdatePromptMessagesType = {
|
|
250
|
+
Function: "function",
|
|
251
|
+
};
|
|
252
|
+
/**
|
|
253
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
254
|
+
*/
|
|
255
|
+
exports.UpdatePrompt2PromptsType = {
|
|
256
|
+
Ephemeral: "ephemeral",
|
|
257
|
+
};
|
|
258
|
+
/**
|
|
259
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
260
|
+
*
|
|
261
|
+
* @remarks
|
|
262
|
+
*
|
|
263
|
+
* - `5m`: 5 minutes
|
|
264
|
+
* - `1h`: 1 hour
|
|
265
|
+
*
|
|
266
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
267
|
+
*/
|
|
268
|
+
exports.UpdatePrompt2Ttl = {
|
|
269
|
+
Fivem: "5m",
|
|
270
|
+
Oneh: "1h",
|
|
271
|
+
};
|
|
272
|
+
/**
|
|
273
|
+
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
274
|
+
*/
|
|
275
|
+
exports.UpdatePromptVoice = {
|
|
276
|
+
Alloy: "alloy",
|
|
277
|
+
Echo: "echo",
|
|
278
|
+
Fable: "fable",
|
|
279
|
+
Onyx: "onyx",
|
|
280
|
+
Nova: "nova",
|
|
281
|
+
Shimmer: "shimmer",
|
|
282
|
+
};
|
|
283
|
+
/**
|
|
284
|
+
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
177
285
|
*/
|
|
178
286
|
exports.UpdatePromptFormat = {
|
|
287
|
+
Wav: "wav",
|
|
288
|
+
Mp3: "mp3",
|
|
289
|
+
Flac: "flac",
|
|
290
|
+
Opus: "opus",
|
|
291
|
+
Pcm16: "pcm16",
|
|
292
|
+
};
|
|
293
|
+
/**
|
|
294
|
+
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
295
|
+
*
|
|
296
|
+
* @remarks
|
|
297
|
+
*
|
|
298
|
+
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
|
|
299
|
+
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
|
|
300
|
+
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
301
|
+
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
302
|
+
*
|
|
303
|
+
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
304
|
+
*/
|
|
305
|
+
exports.UpdatePromptReasoningEffort = {
|
|
306
|
+
None: "none",
|
|
307
|
+
Minimal: "minimal",
|
|
308
|
+
Low: "low",
|
|
309
|
+
Medium: "medium",
|
|
310
|
+
High: "high",
|
|
311
|
+
Xhigh: "xhigh",
|
|
312
|
+
};
|
|
313
|
+
/**
|
|
314
|
+
* The type of the tool. Currently, only function is supported.
|
|
315
|
+
*/
|
|
316
|
+
exports.UpdatePromptToolChoiceType = {
|
|
317
|
+
Function: "function",
|
|
318
|
+
};
|
|
319
|
+
exports.UpdatePromptToolChoice1 = {
|
|
320
|
+
None: "none",
|
|
321
|
+
Auto: "auto",
|
|
322
|
+
Required: "required",
|
|
323
|
+
};
|
|
324
|
+
exports.UpdatePromptModalities = {
|
|
325
|
+
Text: "text",
|
|
326
|
+
Audio: "audio",
|
|
327
|
+
};
|
|
328
|
+
/**
|
|
329
|
+
* The key of the guardrail.
|
|
330
|
+
*/
|
|
331
|
+
exports.UpdatePromptId1 = {
|
|
332
|
+
OrqPiiDetection: "orq_pii_detection",
|
|
333
|
+
OrqSexualModeration: "orq_sexual_moderation",
|
|
334
|
+
OrqHarmfulModeration: "orq_harmful_moderation",
|
|
335
|
+
};
|
|
336
|
+
/**
|
|
337
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
338
|
+
*/
|
|
339
|
+
exports.UpdatePromptExecuteOn = {
|
|
340
|
+
Input: "input",
|
|
341
|
+
Output: "output",
|
|
342
|
+
};
|
|
343
|
+
exports.UpdatePromptUseCases = {
|
|
344
|
+
AgentsSimulations: "Agents simulations",
|
|
345
|
+
Agents: "Agents",
|
|
346
|
+
APIInteraction: "API interaction",
|
|
347
|
+
AutonomousAgents: "Autonomous Agents",
|
|
348
|
+
Chatbots: "Chatbots",
|
|
349
|
+
Classification: "Classification",
|
|
350
|
+
CodeUnderstanding: "Code understanding",
|
|
351
|
+
CodeWriting: "Code writing",
|
|
352
|
+
Conversation: "Conversation",
|
|
353
|
+
DocumentsQA: "Documents QA",
|
|
354
|
+
Evaluation: "Evaluation",
|
|
355
|
+
Extraction: "Extraction",
|
|
356
|
+
MultiModal: "Multi-modal",
|
|
357
|
+
SelfChecking: "Self-checking",
|
|
358
|
+
SentimentAnalysis: "Sentiment analysis",
|
|
359
|
+
Sql: "SQL",
|
|
360
|
+
Summarization: "Summarization",
|
|
361
|
+
Tagging: "Tagging",
|
|
362
|
+
TranslationDocument: "Translation (document)",
|
|
363
|
+
TranslationSentences: "Translation (sentences)",
|
|
364
|
+
};
|
|
365
|
+
/**
|
|
366
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
367
|
+
*/
|
|
368
|
+
exports.UpdatePromptLanguage = {
|
|
369
|
+
Chinese: "Chinese",
|
|
370
|
+
Dutch: "Dutch",
|
|
371
|
+
English: "English",
|
|
372
|
+
French: "French",
|
|
373
|
+
German: "German",
|
|
374
|
+
Russian: "Russian",
|
|
375
|
+
Spanish: "Spanish",
|
|
376
|
+
};
|
|
377
|
+
exports.UpdatePromptType = {
|
|
378
|
+
Prompt: "prompt",
|
|
379
|
+
};
|
|
380
|
+
/**
|
|
381
|
+
* The modality of the model
|
|
382
|
+
*/
|
|
383
|
+
exports.UpdatePromptModelType = {
|
|
384
|
+
Chat: "chat",
|
|
385
|
+
Completion: "completion",
|
|
386
|
+
Embedding: "embedding",
|
|
387
|
+
Image: "image",
|
|
388
|
+
Tts: "tts",
|
|
389
|
+
Stt: "stt",
|
|
390
|
+
Rerank: "rerank",
|
|
391
|
+
Moderation: "moderation",
|
|
392
|
+
Vision: "vision",
|
|
393
|
+
};
|
|
394
|
+
/**
|
|
395
|
+
* Only supported on `image` models.
|
|
396
|
+
*/
|
|
397
|
+
exports.UpdatePromptPromptsFormat = {
|
|
179
398
|
Url: "url",
|
|
180
399
|
B64Json: "b64_json",
|
|
181
400
|
Text: "text",
|
|
182
401
|
JsonObject: "json_object",
|
|
183
402
|
};
|
|
184
|
-
exports.
|
|
403
|
+
exports.UpdatePromptResponseFormat6 = {
|
|
185
404
|
Json: "json",
|
|
186
405
|
Text: "text",
|
|
187
406
|
Srt: "srt",
|
|
188
407
|
VerboseJson: "verbose_json",
|
|
189
408
|
Vtt: "vtt",
|
|
190
409
|
};
|
|
191
|
-
exports.
|
|
410
|
+
exports.UpdatePromptResponseFormat5 = {
|
|
192
411
|
Url: "url",
|
|
193
412
|
Base64Json: "base64_json",
|
|
194
413
|
};
|
|
@@ -200,13 +419,13 @@ exports.UpdatePromptResponseFormat4 = {
|
|
|
200
419
|
Wav: "wav",
|
|
201
420
|
Pcm: "pcm",
|
|
202
421
|
};
|
|
203
|
-
exports.
|
|
422
|
+
exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyPromptConfigModelParametersType = {
|
|
204
423
|
Text: "text",
|
|
205
424
|
};
|
|
206
|
-
exports.
|
|
425
|
+
exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyPromptConfigType = {
|
|
207
426
|
JsonObject: "json_object",
|
|
208
427
|
};
|
|
209
|
-
exports.
|
|
428
|
+
exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType = {
|
|
210
429
|
JsonSchema: "json_schema",
|
|
211
430
|
};
|
|
212
431
|
/**
|
|
@@ -226,7 +445,7 @@ exports.UpdatePromptEncodingFormat = {
|
|
|
226
445
|
/**
|
|
227
446
|
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
228
447
|
*/
|
|
229
|
-
exports.
|
|
448
|
+
exports.UpdatePromptPromptsResponseReasoningEffort = {
|
|
230
449
|
None: "none",
|
|
231
450
|
Disable: "disable",
|
|
232
451
|
Minimal: "minimal",
|
|
@@ -249,7 +468,7 @@ exports.UpdatePromptThinkingLevel = {
|
|
|
249
468
|
Low: "low",
|
|
250
469
|
High: "high",
|
|
251
470
|
};
|
|
252
|
-
exports.
|
|
471
|
+
exports.UpdatePromptProvider = {
|
|
253
472
|
Openai: "openai",
|
|
254
473
|
Groq: "groq",
|
|
255
474
|
Cohere: "cohere",
|
|
@@ -290,61 +509,84 @@ exports.UpdatePromptRole = {
|
|
|
290
509
|
Correction: "correction",
|
|
291
510
|
ExpectedOutput: "expected_output",
|
|
292
511
|
};
|
|
293
|
-
exports.
|
|
512
|
+
exports.UpdatePromptPromptsType = {
|
|
294
513
|
Function: "function",
|
|
295
514
|
};
|
|
296
515
|
/**
|
|
297
|
-
* The
|
|
516
|
+
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
298
517
|
*/
|
|
299
|
-
exports.
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
Rerank: "rerank",
|
|
307
|
-
Moderation: "moderation",
|
|
308
|
-
Vision: "vision",
|
|
518
|
+
exports.UpdatePromptPromptsVoice = {
|
|
519
|
+
Alloy: "alloy",
|
|
520
|
+
Echo: "echo",
|
|
521
|
+
Fable: "fable",
|
|
522
|
+
Onyx: "onyx",
|
|
523
|
+
Nova: "nova",
|
|
524
|
+
Shimmer: "shimmer",
|
|
309
525
|
};
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
Conversation: "Conversation",
|
|
320
|
-
DocumentsQA: "Documents QA",
|
|
321
|
-
Evaluation: "Evaluation",
|
|
322
|
-
Extraction: "Extraction",
|
|
323
|
-
MultiModal: "Multi-modal",
|
|
324
|
-
SelfChecking: "Self-checking",
|
|
325
|
-
SentimentAnalysis: "Sentiment analysis",
|
|
326
|
-
Sql: "SQL",
|
|
327
|
-
Summarization: "Summarization",
|
|
328
|
-
Tagging: "Tagging",
|
|
329
|
-
TranslationDocument: "Translation (document)",
|
|
330
|
-
TranslationSentences: "Translation (sentences)",
|
|
526
|
+
/**
|
|
527
|
+
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
528
|
+
*/
|
|
529
|
+
exports.UpdatePromptPromptsResponse200Format = {
|
|
530
|
+
Wav: "wav",
|
|
531
|
+
Mp3: "mp3",
|
|
532
|
+
Flac: "flac",
|
|
533
|
+
Opus: "opus",
|
|
534
|
+
Pcm16: "pcm16",
|
|
331
535
|
};
|
|
332
536
|
/**
|
|
333
|
-
*
|
|
537
|
+
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
538
|
+
*
|
|
539
|
+
* @remarks
|
|
540
|
+
*
|
|
541
|
+
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
|
|
542
|
+
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
|
|
543
|
+
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
544
|
+
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
545
|
+
*
|
|
546
|
+
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
334
547
|
*/
|
|
335
|
-
exports.
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
548
|
+
exports.UpdatePromptPromptsReasoningEffort = {
|
|
549
|
+
None: "none",
|
|
550
|
+
Minimal: "minimal",
|
|
551
|
+
Low: "low",
|
|
552
|
+
Medium: "medium",
|
|
553
|
+
High: "high",
|
|
554
|
+
Xhigh: "xhigh",
|
|
555
|
+
};
|
|
556
|
+
/**
|
|
557
|
+
* The type of the tool. Currently, only function is supported.
|
|
558
|
+
*/
|
|
559
|
+
exports.UpdatePromptToolChoicePromptsType = {
|
|
560
|
+
Function: "function",
|
|
561
|
+
};
|
|
562
|
+
exports.UpdatePromptToolChoicePrompts1 = {
|
|
563
|
+
None: "none",
|
|
564
|
+
Auto: "auto",
|
|
565
|
+
Required: "required",
|
|
566
|
+
};
|
|
567
|
+
exports.UpdatePromptPromptsModalities = {
|
|
568
|
+
Text: "text",
|
|
569
|
+
Audio: "audio",
|
|
570
|
+
};
|
|
571
|
+
/**
|
|
572
|
+
* The key of the guardrail.
|
|
573
|
+
*/
|
|
574
|
+
exports.UpdatePromptIdPrompts1 = {
|
|
575
|
+
OrqPiiDetection: "orq_pii_detection",
|
|
576
|
+
OrqSexualModeration: "orq_sexual_moderation",
|
|
577
|
+
OrqHarmfulModeration: "orq_harmful_moderation",
|
|
578
|
+
};
|
|
579
|
+
/**
|
|
580
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
581
|
+
*/
|
|
582
|
+
exports.UpdatePromptPromptsExecuteOn = {
|
|
583
|
+
Input: "input",
|
|
584
|
+
Output: "output",
|
|
343
585
|
};
|
|
344
586
|
/**
|
|
345
587
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
346
588
|
*/
|
|
347
|
-
exports.
|
|
589
|
+
exports.UpdatePromptMessagesPromptsResponse200Type = {
|
|
348
590
|
Ephemeral: "ephemeral",
|
|
349
591
|
};
|
|
350
592
|
/**
|
|
@@ -357,20 +599,20 @@ exports.UpdatePromptMessagesPromptsType = {
|
|
|
357
599
|
*
|
|
358
600
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
359
601
|
*/
|
|
360
|
-
exports.
|
|
602
|
+
exports.UpdatePromptMessagesPromptsTtl = {
|
|
361
603
|
Fivem: "5m",
|
|
362
604
|
Oneh: "1h",
|
|
363
605
|
};
|
|
364
606
|
/**
|
|
365
607
|
* The type of the tool. Currently, only `function` is supported.
|
|
366
608
|
*/
|
|
367
|
-
exports.
|
|
609
|
+
exports.UpdatePromptMessagesPromptsResponseType = {
|
|
368
610
|
Function: "function",
|
|
369
611
|
};
|
|
370
612
|
/**
|
|
371
613
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
372
614
|
*/
|
|
373
|
-
exports.
|
|
615
|
+
exports.UpdatePrompt2PromptsResponse200ApplicationJSONResponseBodyPromptType = {
|
|
374
616
|
Ephemeral: "ephemeral",
|
|
375
617
|
};
|
|
376
618
|
/**
|
|
@@ -383,148 +625,10 @@ exports.UpdatePrompt2PromptsRequestRequestBodyPromptType = {
|
|
|
383
625
|
*
|
|
384
626
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
385
627
|
*/
|
|
386
|
-
exports.
|
|
628
|
+
exports.UpdatePrompt2PromptsTtl = {
|
|
387
629
|
Fivem: "5m",
|
|
388
630
|
Oneh: "1h",
|
|
389
631
|
};
|
|
390
|
-
exports.UpdatePromptPromptsType = {
|
|
391
|
-
Prompt: "prompt",
|
|
392
|
-
};
|
|
393
|
-
/**
|
|
394
|
-
* The modality of the model
|
|
395
|
-
*/
|
|
396
|
-
exports.UpdatePromptModelType = {
|
|
397
|
-
Chat: "chat",
|
|
398
|
-
Completion: "completion",
|
|
399
|
-
Embedding: "embedding",
|
|
400
|
-
Image: "image",
|
|
401
|
-
Tts: "tts",
|
|
402
|
-
Stt: "stt",
|
|
403
|
-
Rerank: "rerank",
|
|
404
|
-
Moderation: "moderation",
|
|
405
|
-
Vision: "vision",
|
|
406
|
-
};
|
|
407
|
-
/**
|
|
408
|
-
* Only supported on `image` models.
|
|
409
|
-
*/
|
|
410
|
-
exports.UpdatePromptPromptsFormat = {
|
|
411
|
-
Url: "url",
|
|
412
|
-
B64Json: "b64_json",
|
|
413
|
-
Text: "text",
|
|
414
|
-
JsonObject: "json_object",
|
|
415
|
-
};
|
|
416
|
-
exports.UpdatePromptResponseFormat6 = {
|
|
417
|
-
Json: "json",
|
|
418
|
-
Text: "text",
|
|
419
|
-
Srt: "srt",
|
|
420
|
-
VerboseJson: "verbose_json",
|
|
421
|
-
Vtt: "vtt",
|
|
422
|
-
};
|
|
423
|
-
exports.UpdatePromptResponseFormat5 = {
|
|
424
|
-
Url: "url",
|
|
425
|
-
Base64Json: "base64_json",
|
|
426
|
-
};
|
|
427
|
-
exports.UpdatePromptResponseFormatPrompts4 = {
|
|
428
|
-
Mp3: "mp3",
|
|
429
|
-
Opus: "opus",
|
|
430
|
-
Aac: "aac",
|
|
431
|
-
Flac: "flac",
|
|
432
|
-
Wav: "wav",
|
|
433
|
-
Pcm: "pcm",
|
|
434
|
-
};
|
|
435
|
-
exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType = {
|
|
436
|
-
Text: "text",
|
|
437
|
-
};
|
|
438
|
-
exports.UpdatePromptResponseFormatPromptsResponse200Type = {
|
|
439
|
-
JsonObject: "json_object",
|
|
440
|
-
};
|
|
441
|
-
exports.UpdatePromptResponseFormatPromptsResponseType = {
|
|
442
|
-
JsonSchema: "json_schema",
|
|
443
|
-
};
|
|
444
|
-
/**
|
|
445
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
446
|
-
*/
|
|
447
|
-
exports.UpdatePromptPromptsPhotoRealVersion = {
|
|
448
|
-
V1: "v1",
|
|
449
|
-
V2: "v2",
|
|
450
|
-
};
|
|
451
|
-
/**
|
|
452
|
-
* The format to return the embeddings
|
|
453
|
-
*/
|
|
454
|
-
exports.UpdatePromptPromptsEncodingFormat = {
|
|
455
|
-
Float: "float",
|
|
456
|
-
Base64: "base64",
|
|
457
|
-
};
|
|
458
|
-
/**
|
|
459
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
460
|
-
*/
|
|
461
|
-
exports.UpdatePromptPromptsReasoningEffort = {
|
|
462
|
-
None: "none",
|
|
463
|
-
Disable: "disable",
|
|
464
|
-
Minimal: "minimal",
|
|
465
|
-
Low: "low",
|
|
466
|
-
Medium: "medium",
|
|
467
|
-
High: "high",
|
|
468
|
-
};
|
|
469
|
-
/**
|
|
470
|
-
* Controls the verbosity of the model output.
|
|
471
|
-
*/
|
|
472
|
-
exports.UpdatePromptPromptsVerbosity = {
|
|
473
|
-
Low: "low",
|
|
474
|
-
Medium: "medium",
|
|
475
|
-
High: "high",
|
|
476
|
-
};
|
|
477
|
-
/**
|
|
478
|
-
* The level of thinking to use for the model. Only supported by `Google AI`
|
|
479
|
-
*/
|
|
480
|
-
exports.UpdatePromptPromptsThinkingLevel = {
|
|
481
|
-
Low: "low",
|
|
482
|
-
High: "high",
|
|
483
|
-
};
|
|
484
|
-
exports.UpdatePromptProvider = {
|
|
485
|
-
Openai: "openai",
|
|
486
|
-
Groq: "groq",
|
|
487
|
-
Cohere: "cohere",
|
|
488
|
-
Azure: "azure",
|
|
489
|
-
Aws: "aws",
|
|
490
|
-
Google: "google",
|
|
491
|
-
GoogleAi: "google-ai",
|
|
492
|
-
Huggingface: "huggingface",
|
|
493
|
-
Togetherai: "togetherai",
|
|
494
|
-
Perplexity: "perplexity",
|
|
495
|
-
Anthropic: "anthropic",
|
|
496
|
-
Leonardoai: "leonardoai",
|
|
497
|
-
Fal: "fal",
|
|
498
|
-
Nvidia: "nvidia",
|
|
499
|
-
Jina: "jina",
|
|
500
|
-
Elevenlabs: "elevenlabs",
|
|
501
|
-
Litellm: "litellm",
|
|
502
|
-
Cerebras: "cerebras",
|
|
503
|
-
Openailike: "openailike",
|
|
504
|
-
Bytedance: "bytedance",
|
|
505
|
-
Mistral: "mistral",
|
|
506
|
-
Deepseek: "deepseek",
|
|
507
|
-
Contextualai: "contextualai",
|
|
508
|
-
Moonshotai: "moonshotai",
|
|
509
|
-
Zai: "zai",
|
|
510
|
-
Slack: "slack",
|
|
511
|
-
};
|
|
512
|
-
/**
|
|
513
|
-
* The role of the prompt message
|
|
514
|
-
*/
|
|
515
|
-
exports.UpdatePromptPromptsRole = {
|
|
516
|
-
System: "system",
|
|
517
|
-
Assistant: "assistant",
|
|
518
|
-
User: "user",
|
|
519
|
-
Exception: "exception",
|
|
520
|
-
Tool: "tool",
|
|
521
|
-
Prompt: "prompt",
|
|
522
|
-
Correction: "correction",
|
|
523
|
-
ExpectedOutput: "expected_output",
|
|
524
|
-
};
|
|
525
|
-
exports.UpdatePromptPromptsResponseType = {
|
|
526
|
-
Function: "function",
|
|
527
|
-
};
|
|
528
632
|
exports.UpdatePromptPromptsUseCases = {
|
|
529
633
|
AgentsSimulations: "Agents simulations",
|
|
530
634
|
Agents: "Agents",
|
|
@@ -560,1675 +664,2159 @@ exports.UpdatePromptPromptsLanguage = {
|
|
|
560
664
|
Spanish: "Spanish",
|
|
561
665
|
};
|
|
562
666
|
/** @internal */
|
|
563
|
-
exports.
|
|
564
|
-
/** @internal */
|
|
565
|
-
exports.UpdatePromptFormat$outboundSchema = exports.UpdatePromptFormat$inboundSchema;
|
|
566
|
-
/** @internal */
|
|
567
|
-
exports.ResponseFormat6$inboundSchema = z.nativeEnum(exports.ResponseFormat6);
|
|
667
|
+
exports.UpdatePromptContentPromptsRequest2$inboundSchema = components.TextContentPartSchema$inboundSchema;
|
|
568
668
|
/** @internal */
|
|
569
|
-
exports.
|
|
669
|
+
exports.UpdatePromptContentPromptsRequest2$outboundSchema = components.TextContentPartSchema$outboundSchema;
|
|
670
|
+
function updatePromptContentPromptsRequest2ToJSON(updatePromptContentPromptsRequest2) {
|
|
671
|
+
return JSON.stringify(exports.UpdatePromptContentPromptsRequest2$outboundSchema.parse(updatePromptContentPromptsRequest2));
|
|
672
|
+
}
|
|
673
|
+
function updatePromptContentPromptsRequest2FromJSON(jsonString) {
|
|
674
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptContentPromptsRequest2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptContentPromptsRequest2' from JSON`);
|
|
675
|
+
}
|
|
570
676
|
/** @internal */
|
|
571
|
-
exports.
|
|
677
|
+
exports.UpdatePromptMessagesPromptsRequestRequestBodyContent$inboundSchema = z.union([
|
|
678
|
+
z.string(),
|
|
679
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
680
|
+
]);
|
|
572
681
|
/** @internal */
|
|
573
|
-
exports.
|
|
682
|
+
exports.UpdatePromptMessagesPromptsRequestRequestBodyContent$outboundSchema = z.union([
|
|
683
|
+
z.string(),
|
|
684
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
685
|
+
]);
|
|
686
|
+
function updatePromptMessagesPromptsRequestRequestBodyContentToJSON(updatePromptMessagesPromptsRequestRequestBodyContent) {
|
|
687
|
+
return JSON.stringify(exports.UpdatePromptMessagesPromptsRequestRequestBodyContent$outboundSchema.parse(updatePromptMessagesPromptsRequestRequestBodyContent));
|
|
688
|
+
}
|
|
689
|
+
function updatePromptMessagesPromptsRequestRequestBodyContentFromJSON(jsonString) {
|
|
690
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptMessagesPromptsRequestRequestBodyContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptMessagesPromptsRequestRequestBodyContent' from JSON`);
|
|
691
|
+
}
|
|
574
692
|
/** @internal */
|
|
575
|
-
exports.
|
|
693
|
+
exports.UpdatePromptMessagesPromptsType$inboundSchema = z.nativeEnum(exports.UpdatePromptMessagesPromptsType);
|
|
576
694
|
/** @internal */
|
|
577
|
-
exports.
|
|
695
|
+
exports.UpdatePromptMessagesPromptsType$outboundSchema = exports.UpdatePromptMessagesPromptsType$inboundSchema;
|
|
578
696
|
/** @internal */
|
|
579
|
-
exports.
|
|
580
|
-
.nativeEnum(exports.UpdatePromptResponseFormatPromptsRequestType);
|
|
697
|
+
exports.UpdatePromptMessagesTtl$inboundSchema = z.nativeEnum(exports.UpdatePromptMessagesTtl);
|
|
581
698
|
/** @internal */
|
|
582
|
-
exports.
|
|
699
|
+
exports.UpdatePromptMessagesTtl$outboundSchema = exports.UpdatePromptMessagesTtl$inboundSchema;
|
|
583
700
|
/** @internal */
|
|
584
|
-
exports.
|
|
585
|
-
type: exports.
|
|
701
|
+
exports.UpdatePromptMessagesCacheControl$inboundSchema = z.object({
|
|
702
|
+
type: exports.UpdatePromptMessagesPromptsType$inboundSchema,
|
|
703
|
+
ttl: exports.UpdatePromptMessagesTtl$inboundSchema.default("5m"),
|
|
586
704
|
});
|
|
587
705
|
/** @internal */
|
|
588
|
-
exports.
|
|
589
|
-
type: exports.
|
|
706
|
+
exports.UpdatePromptMessagesCacheControl$outboundSchema = z.object({
|
|
707
|
+
type: exports.UpdatePromptMessagesPromptsType$outboundSchema,
|
|
708
|
+
ttl: exports.UpdatePromptMessagesTtl$outboundSchema.default("5m"),
|
|
590
709
|
});
|
|
591
|
-
function
|
|
592
|
-
return JSON.stringify(exports.
|
|
710
|
+
function updatePromptMessagesCacheControlToJSON(updatePromptMessagesCacheControl) {
|
|
711
|
+
return JSON.stringify(exports.UpdatePromptMessagesCacheControl$outboundSchema.parse(updatePromptMessagesCacheControl));
|
|
593
712
|
}
|
|
594
|
-
function
|
|
595
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
713
|
+
function updatePromptMessagesCacheControlFromJSON(jsonString) {
|
|
714
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptMessagesCacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptMessagesCacheControl' from JSON`);
|
|
596
715
|
}
|
|
597
716
|
/** @internal */
|
|
598
|
-
exports.
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
717
|
+
exports.UpdatePromptMessagesToolMessage$inboundSchema = z.object({
|
|
718
|
+
role: z.literal("tool"),
|
|
719
|
+
content: z.union([
|
|
720
|
+
z.string(),
|
|
721
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
722
|
+
]),
|
|
723
|
+
tool_call_id: z.nullable(z.string()),
|
|
724
|
+
cache_control: z.lazy(() => exports.UpdatePromptMessagesCacheControl$inboundSchema)
|
|
725
|
+
.optional(),
|
|
726
|
+
}).transform((v) => {
|
|
727
|
+
return (0, primitives_js_1.remap)(v, {
|
|
728
|
+
"tool_call_id": "toolCallId",
|
|
729
|
+
"cache_control": "cacheControl",
|
|
730
|
+
});
|
|
604
731
|
});
|
|
605
732
|
/** @internal */
|
|
606
|
-
exports.
|
|
607
|
-
|
|
733
|
+
exports.UpdatePromptMessagesToolMessage$outboundSchema = z.object({
|
|
734
|
+
role: z.literal("tool"),
|
|
735
|
+
content: z.union([
|
|
736
|
+
z.string(),
|
|
737
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
738
|
+
]),
|
|
739
|
+
toolCallId: z.nullable(z.string()),
|
|
740
|
+
cacheControl: z.lazy(() => exports.UpdatePromptMessagesCacheControl$outboundSchema)
|
|
741
|
+
.optional(),
|
|
742
|
+
}).transform((v) => {
|
|
743
|
+
return (0, primitives_js_1.remap)(v, {
|
|
744
|
+
toolCallId: "tool_call_id",
|
|
745
|
+
cacheControl: "cache_control",
|
|
746
|
+
});
|
|
608
747
|
});
|
|
609
|
-
function
|
|
610
|
-
return JSON.stringify(exports.
|
|
748
|
+
function updatePromptMessagesToolMessageToJSON(updatePromptMessagesToolMessage) {
|
|
749
|
+
return JSON.stringify(exports.UpdatePromptMessagesToolMessage$outboundSchema.parse(updatePromptMessagesToolMessage));
|
|
611
750
|
}
|
|
612
|
-
function
|
|
613
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
751
|
+
function updatePromptMessagesToolMessageFromJSON(jsonString) {
|
|
752
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptMessagesToolMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptMessagesToolMessage' from JSON`);
|
|
614
753
|
}
|
|
615
754
|
/** @internal */
|
|
616
|
-
exports.
|
|
755
|
+
exports.UpdatePromptContentPrompts2$inboundSchema = z.union([
|
|
756
|
+
components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
|
|
757
|
+
components.RefusalPartSchema$inboundSchema,
|
|
758
|
+
components.ReasoningPartSchema$inboundSchema,
|
|
759
|
+
components.RedactedReasoningPartSchema$inboundSchema,
|
|
760
|
+
]);
|
|
617
761
|
/** @internal */
|
|
618
|
-
exports.
|
|
762
|
+
exports.UpdatePromptContentPrompts2$outboundSchema = z.union([
|
|
763
|
+
components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
|
|
764
|
+
components.RefusalPartSchema$outboundSchema,
|
|
765
|
+
components.ReasoningPartSchema$outboundSchema,
|
|
766
|
+
components.RedactedReasoningPartSchema$outboundSchema,
|
|
767
|
+
]);
|
|
768
|
+
function updatePromptContentPrompts2ToJSON(updatePromptContentPrompts2) {
|
|
769
|
+
return JSON.stringify(exports.UpdatePromptContentPrompts2$outboundSchema.parse(updatePromptContentPrompts2));
|
|
770
|
+
}
|
|
771
|
+
function updatePromptContentPrompts2FromJSON(jsonString) {
|
|
772
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptContentPrompts2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptContentPrompts2' from JSON`);
|
|
773
|
+
}
|
|
619
774
|
/** @internal */
|
|
620
|
-
exports.
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
775
|
+
exports.UpdatePromptMessagesPromptsRequestContent$inboundSchema = z.union([
|
|
776
|
+
z.string(),
|
|
777
|
+
z.array(z.union([
|
|
778
|
+
components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
|
|
779
|
+
components.RefusalPartSchema$inboundSchema,
|
|
780
|
+
components.ReasoningPartSchema$inboundSchema,
|
|
781
|
+
components.RedactedReasoningPartSchema$inboundSchema,
|
|
782
|
+
])),
|
|
783
|
+
]);
|
|
784
|
+
/** @internal */
|
|
785
|
+
exports.UpdatePromptMessagesPromptsRequestContent$outboundSchema = z.union([
|
|
786
|
+
z.string(),
|
|
787
|
+
z.array(z.union([
|
|
788
|
+
components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
|
|
789
|
+
components.RefusalPartSchema$outboundSchema,
|
|
790
|
+
components.ReasoningPartSchema$outboundSchema,
|
|
791
|
+
components.RedactedReasoningPartSchema$outboundSchema,
|
|
792
|
+
])),
|
|
793
|
+
]);
|
|
794
|
+
function updatePromptMessagesPromptsRequestContentToJSON(updatePromptMessagesPromptsRequestContent) {
|
|
795
|
+
return JSON.stringify(exports.UpdatePromptMessagesPromptsRequestContent$outboundSchema.parse(updatePromptMessagesPromptsRequestContent));
|
|
796
|
+
}
|
|
797
|
+
function updatePromptMessagesPromptsRequestContentFromJSON(jsonString) {
|
|
798
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptMessagesPromptsRequestContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptMessagesPromptsRequestContent' from JSON`);
|
|
799
|
+
}
|
|
800
|
+
/** @internal */
|
|
801
|
+
exports.UpdatePromptMessagesAudio$inboundSchema = z.object({
|
|
802
|
+
id: z.string(),
|
|
625
803
|
});
|
|
626
804
|
/** @internal */
|
|
627
|
-
exports.
|
|
628
|
-
|
|
629
|
-
description: z.string().optional(),
|
|
630
|
-
strict: z.boolean().optional(),
|
|
631
|
-
schema: z.record(z.any()),
|
|
805
|
+
exports.UpdatePromptMessagesAudio$outboundSchema = z.object({
|
|
806
|
+
id: z.string(),
|
|
632
807
|
});
|
|
633
|
-
function
|
|
634
|
-
return JSON.stringify(exports.
|
|
808
|
+
function updatePromptMessagesAudioToJSON(updatePromptMessagesAudio) {
|
|
809
|
+
return JSON.stringify(exports.UpdatePromptMessagesAudio$outboundSchema.parse(updatePromptMessagesAudio));
|
|
635
810
|
}
|
|
636
|
-
function
|
|
637
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
811
|
+
function updatePromptMessagesAudioFromJSON(jsonString) {
|
|
812
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptMessagesAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptMessagesAudio' from JSON`);
|
|
638
813
|
}
|
|
639
814
|
/** @internal */
|
|
640
|
-
exports.
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
815
|
+
exports.UpdatePromptMessagesType$inboundSchema = z.nativeEnum(exports.UpdatePromptMessagesType);
|
|
816
|
+
/** @internal */
|
|
817
|
+
exports.UpdatePromptMessagesType$outboundSchema = exports.UpdatePromptMessagesType$inboundSchema;
|
|
818
|
+
/** @internal */
|
|
819
|
+
exports.UpdatePromptMessagesFunction$inboundSchema = z.object({
|
|
820
|
+
name: z.string().optional(),
|
|
821
|
+
arguments: z.string().optional(),
|
|
822
|
+
});
|
|
823
|
+
/** @internal */
|
|
824
|
+
exports.UpdatePromptMessagesFunction$outboundSchema = z.object({
|
|
825
|
+
name: z.string().optional(),
|
|
826
|
+
arguments: z.string().optional(),
|
|
827
|
+
});
|
|
828
|
+
function updatePromptMessagesFunctionToJSON(updatePromptMessagesFunction) {
|
|
829
|
+
return JSON.stringify(exports.UpdatePromptMessagesFunction$outboundSchema.parse(updatePromptMessagesFunction));
|
|
830
|
+
}
|
|
831
|
+
function updatePromptMessagesFunctionFromJSON(jsonString) {
|
|
832
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptMessagesFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptMessagesFunction' from JSON`);
|
|
833
|
+
}
|
|
834
|
+
/** @internal */
|
|
835
|
+
exports.UpdatePromptMessagesToolCalls$inboundSchema = z.object({
|
|
836
|
+
id: z.string(),
|
|
837
|
+
type: exports.UpdatePromptMessagesType$inboundSchema,
|
|
838
|
+
function: z.lazy(() => exports.UpdatePromptMessagesFunction$inboundSchema),
|
|
839
|
+
thought_signature: z.string().optional(),
|
|
644
840
|
}).transform((v) => {
|
|
645
841
|
return (0, primitives_js_1.remap)(v, {
|
|
646
|
-
"
|
|
647
|
-
"json_schema": "jsonSchema",
|
|
842
|
+
"thought_signature": "thoughtSignature",
|
|
648
843
|
});
|
|
649
844
|
});
|
|
650
845
|
/** @internal */
|
|
651
|
-
exports.
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
846
|
+
exports.UpdatePromptMessagesToolCalls$outboundSchema = z.object({
|
|
847
|
+
id: z.string(),
|
|
848
|
+
type: exports.UpdatePromptMessagesType$outboundSchema,
|
|
849
|
+
function: z.lazy(() => exports.UpdatePromptMessagesFunction$outboundSchema),
|
|
850
|
+
thoughtSignature: z.string().optional(),
|
|
655
851
|
}).transform((v) => {
|
|
656
852
|
return (0, primitives_js_1.remap)(v, {
|
|
657
|
-
|
|
658
|
-
jsonSchema: "json_schema",
|
|
853
|
+
thoughtSignature: "thought_signature",
|
|
659
854
|
});
|
|
660
855
|
});
|
|
661
|
-
function
|
|
662
|
-
return JSON.stringify(exports.
|
|
856
|
+
function updatePromptMessagesToolCallsToJSON(updatePromptMessagesToolCalls) {
|
|
857
|
+
return JSON.stringify(exports.UpdatePromptMessagesToolCalls$outboundSchema.parse(updatePromptMessagesToolCalls));
|
|
663
858
|
}
|
|
664
|
-
function
|
|
665
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
859
|
+
function updatePromptMessagesToolCallsFromJSON(jsonString) {
|
|
860
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptMessagesToolCalls$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptMessagesToolCalls' from JSON`);
|
|
666
861
|
}
|
|
667
862
|
/** @internal */
|
|
668
|
-
exports.
|
|
669
|
-
z.
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
863
|
+
exports.UpdatePromptMessagesAssistantMessage$inboundSchema = z.object({
|
|
864
|
+
content: z.nullable(z.union([
|
|
865
|
+
z.string(),
|
|
866
|
+
z.array(z.union([
|
|
867
|
+
components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
|
|
868
|
+
components.RefusalPartSchema$inboundSchema,
|
|
869
|
+
components.ReasoningPartSchema$inboundSchema,
|
|
870
|
+
components.RedactedReasoningPartSchema$inboundSchema,
|
|
871
|
+
])),
|
|
872
|
+
])).optional(),
|
|
873
|
+
refusal: z.nullable(z.string()).optional(),
|
|
874
|
+
role: z.literal("assistant"),
|
|
875
|
+
name: z.string().optional(),
|
|
876
|
+
audio: z.nullable(z.lazy(() => exports.UpdatePromptMessagesAudio$inboundSchema))
|
|
877
|
+
.optional(),
|
|
878
|
+
tool_calls: z.array(z.lazy(() => exports.UpdatePromptMessagesToolCalls$inboundSchema))
|
|
879
|
+
.optional(),
|
|
880
|
+
}).transform((v) => {
|
|
881
|
+
return (0, primitives_js_1.remap)(v, {
|
|
882
|
+
"tool_calls": "toolCalls",
|
|
883
|
+
});
|
|
884
|
+
});
|
|
885
|
+
/** @internal */
|
|
886
|
+
exports.UpdatePromptMessagesAssistantMessage$outboundSchema = z.object({
|
|
887
|
+
content: z.nullable(z.union([
|
|
888
|
+
z.string(),
|
|
889
|
+
z.array(z.union([
|
|
890
|
+
components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
|
|
891
|
+
components.RefusalPartSchema$outboundSchema,
|
|
892
|
+
components.ReasoningPartSchema$outboundSchema,
|
|
893
|
+
components.RedactedReasoningPartSchema$outboundSchema,
|
|
894
|
+
])),
|
|
895
|
+
])).optional(),
|
|
896
|
+
refusal: z.nullable(z.string()).optional(),
|
|
897
|
+
role: z.literal("assistant"),
|
|
898
|
+
name: z.string().optional(),
|
|
899
|
+
audio: z.nullable(z.lazy(() => exports.UpdatePromptMessagesAudio$outboundSchema))
|
|
900
|
+
.optional(),
|
|
901
|
+
toolCalls: z.array(z.lazy(() => exports.UpdatePromptMessagesToolCalls$outboundSchema))
|
|
902
|
+
.optional(),
|
|
903
|
+
}).transform((v) => {
|
|
904
|
+
return (0, primitives_js_1.remap)(v, {
|
|
905
|
+
toolCalls: "tool_calls",
|
|
906
|
+
});
|
|
907
|
+
});
|
|
908
|
+
function updatePromptMessagesAssistantMessageToJSON(updatePromptMessagesAssistantMessage) {
|
|
909
|
+
return JSON.stringify(exports.UpdatePromptMessagesAssistantMessage$outboundSchema.parse(updatePromptMessagesAssistantMessage));
|
|
910
|
+
}
|
|
911
|
+
function updatePromptMessagesAssistantMessageFromJSON(jsonString) {
|
|
912
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptMessagesAssistantMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptMessagesAssistantMessage' from JSON`);
|
|
913
|
+
}
|
|
914
|
+
/** @internal */
|
|
915
|
+
exports.UpdatePrompt2PromptsType$inboundSchema = z.nativeEnum(exports.UpdatePrompt2PromptsType);
|
|
916
|
+
/** @internal */
|
|
917
|
+
exports.UpdatePrompt2PromptsType$outboundSchema = exports.UpdatePrompt2PromptsType$inboundSchema;
|
|
918
|
+
/** @internal */
|
|
919
|
+
exports.UpdatePrompt2Ttl$inboundSchema = z.nativeEnum(exports.UpdatePrompt2Ttl);
|
|
920
|
+
/** @internal */
|
|
921
|
+
exports.UpdatePrompt2Ttl$outboundSchema = exports.UpdatePrompt2Ttl$inboundSchema;
|
|
922
|
+
/** @internal */
|
|
923
|
+
exports.UpdatePrompt2CacheControl$inboundSchema = z.object({
|
|
924
|
+
type: exports.UpdatePrompt2PromptsType$inboundSchema,
|
|
925
|
+
ttl: exports.UpdatePrompt2Ttl$inboundSchema.default("5m"),
|
|
926
|
+
});
|
|
927
|
+
/** @internal */
|
|
928
|
+
exports.UpdatePrompt2CacheControl$outboundSchema = z.object({
|
|
929
|
+
type: exports.UpdatePrompt2PromptsType$outboundSchema,
|
|
930
|
+
ttl: exports.UpdatePrompt2Ttl$outboundSchema.default("5m"),
|
|
931
|
+
});
|
|
932
|
+
function updatePrompt2CacheControlToJSON(updatePrompt2CacheControl) {
|
|
933
|
+
return JSON.stringify(exports.UpdatePrompt2CacheControl$outboundSchema.parse(updatePrompt2CacheControl));
|
|
934
|
+
}
|
|
935
|
+
function updatePrompt2CacheControlFromJSON(jsonString) {
|
|
936
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePrompt2CacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePrompt2CacheControl' from JSON`);
|
|
937
|
+
}
|
|
938
|
+
/** @internal */
|
|
939
|
+
exports.UpdatePrompt24$inboundSchema = z.object({
|
|
940
|
+
type: z.literal("file"),
|
|
941
|
+
cache_control: z.lazy(() => exports.UpdatePrompt2CacheControl$inboundSchema)
|
|
942
|
+
.optional(),
|
|
943
|
+
file: components.FileContentPartSchema$inboundSchema,
|
|
944
|
+
}).transform((v) => {
|
|
945
|
+
return (0, primitives_js_1.remap)(v, {
|
|
946
|
+
"cache_control": "cacheControl",
|
|
947
|
+
});
|
|
948
|
+
});
|
|
949
|
+
/** @internal */
|
|
950
|
+
exports.UpdatePrompt24$outboundSchema = z.object({
|
|
951
|
+
type: z.literal("file"),
|
|
952
|
+
cacheControl: z.lazy(() => exports.UpdatePrompt2CacheControl$outboundSchema)
|
|
953
|
+
.optional(),
|
|
954
|
+
file: components.FileContentPartSchema$outboundSchema,
|
|
955
|
+
}).transform((v) => {
|
|
956
|
+
return (0, primitives_js_1.remap)(v, {
|
|
957
|
+
cacheControl: "cache_control",
|
|
958
|
+
});
|
|
959
|
+
});
|
|
960
|
+
function updatePrompt24ToJSON(updatePrompt24) {
|
|
961
|
+
return JSON.stringify(exports.UpdatePrompt24$outboundSchema.parse(updatePrompt24));
|
|
962
|
+
}
|
|
963
|
+
function updatePrompt24FromJSON(jsonString) {
|
|
964
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePrompt24$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePrompt24' from JSON`);
|
|
965
|
+
}
|
|
966
|
+
/** @internal */
|
|
967
|
+
exports.UpdatePromptContent2$inboundSchema = z.union([
|
|
968
|
+
components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
|
|
969
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
970
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
971
|
+
z.lazy(() => exports.UpdatePrompt24$inboundSchema),
|
|
972
|
+
]);
|
|
973
|
+
/** @internal */
|
|
974
|
+
exports.UpdatePromptContent2$outboundSchema = z.union([
|
|
975
|
+
components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
|
|
976
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
977
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
978
|
+
z.lazy(() => exports.UpdatePrompt24$outboundSchema),
|
|
979
|
+
]);
|
|
980
|
+
function updatePromptContent2ToJSON(updatePromptContent2) {
|
|
981
|
+
return JSON.stringify(exports.UpdatePromptContent2$outboundSchema.parse(updatePromptContent2));
|
|
982
|
+
}
|
|
983
|
+
function updatePromptContent2FromJSON(jsonString) {
|
|
984
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptContent2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptContent2' from JSON`);
|
|
985
|
+
}
|
|
986
|
+
/** @internal */
|
|
987
|
+
exports.UpdatePromptMessagesPromptsContent$inboundSchema = z.union([
|
|
988
|
+
z.string(),
|
|
989
|
+
z.array(z.union([
|
|
990
|
+
components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
|
|
991
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
992
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
993
|
+
z.lazy(() => exports.UpdatePrompt24$inboundSchema),
|
|
994
|
+
])),
|
|
995
|
+
]);
|
|
996
|
+
/** @internal */
|
|
997
|
+
exports.UpdatePromptMessagesPromptsContent$outboundSchema = z.union([
|
|
998
|
+
z.string(),
|
|
999
|
+
z.array(z.union([
|
|
1000
|
+
components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1001
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
1002
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
1003
|
+
z.lazy(() => exports.UpdatePrompt24$outboundSchema),
|
|
1004
|
+
])),
|
|
1005
|
+
]);
|
|
1006
|
+
function updatePromptMessagesPromptsContentToJSON(updatePromptMessagesPromptsContent) {
|
|
1007
|
+
return JSON.stringify(exports.UpdatePromptMessagesPromptsContent$outboundSchema.parse(updatePromptMessagesPromptsContent));
|
|
1008
|
+
}
|
|
1009
|
+
function updatePromptMessagesPromptsContentFromJSON(jsonString) {
|
|
1010
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptMessagesPromptsContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptMessagesPromptsContent' from JSON`);
|
|
1011
|
+
}
|
|
1012
|
+
/** @internal */
|
|
1013
|
+
exports.UpdatePromptMessagesUserMessage$inboundSchema = z.object({
|
|
1014
|
+
role: z.literal("user"),
|
|
1015
|
+
name: z.string().optional(),
|
|
1016
|
+
content: z.union([
|
|
1017
|
+
z.string(),
|
|
1018
|
+
z.array(z.union([
|
|
1019
|
+
components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1020
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
1021
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
1022
|
+
z.lazy(() => exports.UpdatePrompt24$inboundSchema),
|
|
1023
|
+
])),
|
|
1024
|
+
]),
|
|
1025
|
+
});
|
|
1026
|
+
/** @internal */
|
|
1027
|
+
exports.UpdatePromptMessagesUserMessage$outboundSchema = z.object({
|
|
1028
|
+
role: z.literal("user"),
|
|
1029
|
+
name: z.string().optional(),
|
|
1030
|
+
content: z.union([
|
|
1031
|
+
z.string(),
|
|
1032
|
+
z.array(z.union([
|
|
1033
|
+
components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1034
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
1035
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
1036
|
+
z.lazy(() => exports.UpdatePrompt24$outboundSchema),
|
|
1037
|
+
])),
|
|
1038
|
+
]),
|
|
1039
|
+
});
|
|
1040
|
+
function updatePromptMessagesUserMessageToJSON(updatePromptMessagesUserMessage) {
|
|
1041
|
+
return JSON.stringify(exports.UpdatePromptMessagesUserMessage$outboundSchema.parse(updatePromptMessagesUserMessage));
|
|
1042
|
+
}
|
|
1043
|
+
function updatePromptMessagesUserMessageFromJSON(jsonString) {
|
|
1044
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptMessagesUserMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptMessagesUserMessage' from JSON`);
|
|
1045
|
+
}
|
|
1046
|
+
/** @internal */
|
|
1047
|
+
exports.UpdatePromptMessagesContent$inboundSchema = z.union([
|
|
1048
|
+
z.string(),
|
|
1049
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
1050
|
+
]);
|
|
1051
|
+
/** @internal */
|
|
1052
|
+
exports.UpdatePromptMessagesContent$outboundSchema = z.union([
|
|
1053
|
+
z.string(),
|
|
1054
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
1055
|
+
]);
|
|
1056
|
+
function updatePromptMessagesContentToJSON(updatePromptMessagesContent) {
|
|
1057
|
+
return JSON.stringify(exports.UpdatePromptMessagesContent$outboundSchema.parse(updatePromptMessagesContent));
|
|
1058
|
+
}
|
|
1059
|
+
function updatePromptMessagesContentFromJSON(jsonString) {
|
|
1060
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptMessagesContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptMessagesContent' from JSON`);
|
|
1061
|
+
}
|
|
1062
|
+
/** @internal */
|
|
1063
|
+
exports.UpdatePromptMessagesSystemMessage$inboundSchema = z.object({
|
|
1064
|
+
role: z.literal("system"),
|
|
1065
|
+
content: z.union([
|
|
1066
|
+
z.string(),
|
|
1067
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
1068
|
+
]),
|
|
1069
|
+
name: z.string().optional(),
|
|
1070
|
+
});
|
|
1071
|
+
/** @internal */
|
|
1072
|
+
exports.UpdatePromptMessagesSystemMessage$outboundSchema = z.object({
|
|
1073
|
+
role: z.literal("system"),
|
|
1074
|
+
content: z.union([
|
|
1075
|
+
z.string(),
|
|
1076
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
1077
|
+
]),
|
|
1078
|
+
name: z.string().optional(),
|
|
1079
|
+
});
|
|
1080
|
+
function updatePromptMessagesSystemMessageToJSON(updatePromptMessagesSystemMessage) {
|
|
1081
|
+
return JSON.stringify(exports.UpdatePromptMessagesSystemMessage$outboundSchema.parse(updatePromptMessagesSystemMessage));
|
|
1082
|
+
}
|
|
1083
|
+
function updatePromptMessagesSystemMessageFromJSON(jsonString) {
|
|
1084
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptMessagesSystemMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptMessagesSystemMessage' from JSON`);
|
|
1085
|
+
}
|
|
1086
|
+
/** @internal */
|
|
1087
|
+
exports.UpdatePromptMessages$inboundSchema = z.union([
|
|
1088
|
+
z.lazy(() => exports.UpdatePromptMessagesSystemMessage$inboundSchema),
|
|
1089
|
+
z.lazy(() => exports.UpdatePromptMessagesUserMessage$inboundSchema),
|
|
1090
|
+
z.lazy(() => exports.UpdatePromptMessagesAssistantMessage$inboundSchema),
|
|
1091
|
+
z.lazy(() => exports.UpdatePromptMessagesToolMessage$inboundSchema),
|
|
675
1092
|
]);
|
|
676
1093
|
/** @internal */
|
|
677
|
-
exports.
|
|
678
|
-
z.lazy(() => exports.
|
|
679
|
-
z.lazy(() => exports.
|
|
680
|
-
z.lazy(() => exports.
|
|
681
|
-
exports.
|
|
682
|
-
exports.ResponseFormat5$outboundSchema,
|
|
683
|
-
exports.ResponseFormat6$outboundSchema,
|
|
1094
|
+
exports.UpdatePromptMessages$outboundSchema = z.union([
|
|
1095
|
+
z.lazy(() => exports.UpdatePromptMessagesSystemMessage$outboundSchema),
|
|
1096
|
+
z.lazy(() => exports.UpdatePromptMessagesUserMessage$outboundSchema),
|
|
1097
|
+
z.lazy(() => exports.UpdatePromptMessagesAssistantMessage$outboundSchema),
|
|
1098
|
+
z.lazy(() => exports.UpdatePromptMessagesToolMessage$outboundSchema),
|
|
684
1099
|
]);
|
|
685
|
-
function
|
|
686
|
-
return JSON.stringify(exports.
|
|
1100
|
+
function updatePromptMessagesToJSON(updatePromptMessages) {
|
|
1101
|
+
return JSON.stringify(exports.UpdatePromptMessages$outboundSchema.parse(updatePromptMessages));
|
|
687
1102
|
}
|
|
688
|
-
function
|
|
689
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1103
|
+
function updatePromptMessagesFromJSON(jsonString) {
|
|
1104
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptMessages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptMessages' from JSON`);
|
|
690
1105
|
}
|
|
691
1106
|
/** @internal */
|
|
692
|
-
exports.
|
|
693
|
-
/** @internal */
|
|
694
|
-
exports.UpdatePromptPhotoRealVersion$outboundSchema = exports.UpdatePromptPhotoRealVersion$inboundSchema;
|
|
695
|
-
/** @internal */
|
|
696
|
-
exports.UpdatePromptEncodingFormat$inboundSchema = z.nativeEnum(exports.UpdatePromptEncodingFormat);
|
|
697
|
-
/** @internal */
|
|
698
|
-
exports.UpdatePromptEncodingFormat$outboundSchema = exports.UpdatePromptEncodingFormat$inboundSchema;
|
|
699
|
-
/** @internal */
|
|
700
|
-
exports.UpdatePromptReasoningEffort$inboundSchema = z.nativeEnum(exports.UpdatePromptReasoningEffort);
|
|
701
|
-
/** @internal */
|
|
702
|
-
exports.UpdatePromptReasoningEffort$outboundSchema = exports.UpdatePromptReasoningEffort$inboundSchema;
|
|
703
|
-
/** @internal */
|
|
704
|
-
exports.UpdatePromptVerbosity$inboundSchema = z.nativeEnum(exports.UpdatePromptVerbosity);
|
|
1107
|
+
exports.UpdatePromptVoice$inboundSchema = z.nativeEnum(exports.UpdatePromptVoice);
|
|
705
1108
|
/** @internal */
|
|
706
|
-
exports.
|
|
1109
|
+
exports.UpdatePromptVoice$outboundSchema = exports.UpdatePromptVoice$inboundSchema;
|
|
707
1110
|
/** @internal */
|
|
708
|
-
exports.
|
|
1111
|
+
exports.UpdatePromptFormat$inboundSchema = z.nativeEnum(exports.UpdatePromptFormat);
|
|
709
1112
|
/** @internal */
|
|
710
|
-
exports.
|
|
1113
|
+
exports.UpdatePromptFormat$outboundSchema = exports.UpdatePromptFormat$inboundSchema;
|
|
711
1114
|
/** @internal */
|
|
712
|
-
exports.
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
topK: z.number().optional(),
|
|
716
|
-
topP: z.number().optional(),
|
|
717
|
-
frequencyPenalty: z.number().optional(),
|
|
718
|
-
presencePenalty: z.number().optional(),
|
|
719
|
-
numImages: z.number().optional(),
|
|
720
|
-
seed: z.number().optional(),
|
|
721
|
-
format: exports.UpdatePromptFormat$inboundSchema.optional(),
|
|
722
|
-
dimensions: z.string().optional(),
|
|
723
|
-
quality: z.string().optional(),
|
|
724
|
-
style: z.string().optional(),
|
|
725
|
-
responseFormat: z.nullable(z.union([
|
|
726
|
-
z.lazy(() => exports.UpdatePromptResponseFormat1$inboundSchema),
|
|
727
|
-
z.lazy(() => exports.UpdatePromptResponseFormat2$inboundSchema),
|
|
728
|
-
z.lazy(() => exports.UpdatePromptResponseFormat3$inboundSchema),
|
|
729
|
-
exports.UpdatePromptResponseFormat4$inboundSchema,
|
|
730
|
-
exports.ResponseFormat5$inboundSchema,
|
|
731
|
-
exports.ResponseFormat6$inboundSchema,
|
|
732
|
-
])).optional(),
|
|
733
|
-
photoRealVersion: exports.UpdatePromptPhotoRealVersion$inboundSchema.optional(),
|
|
734
|
-
encoding_format: exports.UpdatePromptEncodingFormat$inboundSchema.optional(),
|
|
735
|
-
reasoningEffort: exports.UpdatePromptReasoningEffort$inboundSchema.optional(),
|
|
736
|
-
budgetTokens: z.number().optional(),
|
|
737
|
-
verbosity: exports.UpdatePromptVerbosity$inboundSchema.optional(),
|
|
738
|
-
thinkingLevel: exports.UpdatePromptThinkingLevel$inboundSchema.optional(),
|
|
739
|
-
}).transform((v) => {
|
|
740
|
-
return (0, primitives_js_1.remap)(v, {
|
|
741
|
-
"encoding_format": "encodingFormat",
|
|
742
|
-
});
|
|
1115
|
+
exports.UpdatePromptAudio$inboundSchema = z.object({
|
|
1116
|
+
voice: exports.UpdatePromptVoice$inboundSchema,
|
|
1117
|
+
format: exports.UpdatePromptFormat$inboundSchema,
|
|
743
1118
|
});
|
|
744
1119
|
/** @internal */
|
|
745
|
-
exports.
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
topK: z.number().optional(),
|
|
749
|
-
topP: z.number().optional(),
|
|
750
|
-
frequencyPenalty: z.number().optional(),
|
|
751
|
-
presencePenalty: z.number().optional(),
|
|
752
|
-
numImages: z.number().optional(),
|
|
753
|
-
seed: z.number().optional(),
|
|
754
|
-
format: exports.UpdatePromptFormat$outboundSchema.optional(),
|
|
755
|
-
dimensions: z.string().optional(),
|
|
756
|
-
quality: z.string().optional(),
|
|
757
|
-
style: z.string().optional(),
|
|
758
|
-
responseFormat: z.nullable(z.union([
|
|
759
|
-
z.lazy(() => exports.UpdatePromptResponseFormat1$outboundSchema),
|
|
760
|
-
z.lazy(() => exports.UpdatePromptResponseFormat2$outboundSchema),
|
|
761
|
-
z.lazy(() => exports.UpdatePromptResponseFormat3$outboundSchema),
|
|
762
|
-
exports.UpdatePromptResponseFormat4$outboundSchema,
|
|
763
|
-
exports.ResponseFormat5$outboundSchema,
|
|
764
|
-
exports.ResponseFormat6$outboundSchema,
|
|
765
|
-
])).optional(),
|
|
766
|
-
photoRealVersion: exports.UpdatePromptPhotoRealVersion$outboundSchema.optional(),
|
|
767
|
-
encodingFormat: exports.UpdatePromptEncodingFormat$outboundSchema.optional(),
|
|
768
|
-
reasoningEffort: exports.UpdatePromptReasoningEffort$outboundSchema.optional(),
|
|
769
|
-
budgetTokens: z.number().optional(),
|
|
770
|
-
verbosity: exports.UpdatePromptVerbosity$outboundSchema.optional(),
|
|
771
|
-
thinkingLevel: exports.UpdatePromptThinkingLevel$outboundSchema.optional(),
|
|
772
|
-
}).transform((v) => {
|
|
773
|
-
return (0, primitives_js_1.remap)(v, {
|
|
774
|
-
encodingFormat: "encoding_format",
|
|
775
|
-
});
|
|
1120
|
+
exports.UpdatePromptAudio$outboundSchema = z.object({
|
|
1121
|
+
voice: exports.UpdatePromptVoice$outboundSchema,
|
|
1122
|
+
format: exports.UpdatePromptFormat$outboundSchema,
|
|
776
1123
|
});
|
|
777
|
-
function
|
|
778
|
-
return JSON.stringify(exports.
|
|
1124
|
+
function updatePromptAudioToJSON(updatePromptAudio) {
|
|
1125
|
+
return JSON.stringify(exports.UpdatePromptAudio$outboundSchema.parse(updatePromptAudio));
|
|
779
1126
|
}
|
|
780
|
-
function
|
|
781
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1127
|
+
function updatePromptAudioFromJSON(jsonString) {
|
|
1128
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptAudio' from JSON`);
|
|
782
1129
|
}
|
|
783
1130
|
/** @internal */
|
|
784
|
-
exports.
|
|
785
|
-
.
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
1131
|
+
exports.UpdatePromptResponseFormatPromptsJsonSchema$inboundSchema = z.object({
|
|
1132
|
+
description: z.string().optional(),
|
|
1133
|
+
name: z.string(),
|
|
1134
|
+
schema: z.any().optional(),
|
|
1135
|
+
strict: z.boolean().default(false),
|
|
1136
|
+
});
|
|
790
1137
|
/** @internal */
|
|
791
|
-
exports.
|
|
1138
|
+
exports.UpdatePromptResponseFormatPromptsJsonSchema$outboundSchema = z.object({
|
|
1139
|
+
description: z.string().optional(),
|
|
1140
|
+
name: z.string(),
|
|
1141
|
+
schema: z.any().optional(),
|
|
1142
|
+
strict: z.boolean().default(false),
|
|
1143
|
+
});
|
|
1144
|
+
function updatePromptResponseFormatPromptsJsonSchemaToJSON(updatePromptResponseFormatPromptsJsonSchema) {
|
|
1145
|
+
return JSON.stringify(exports.UpdatePromptResponseFormatPromptsJsonSchema$outboundSchema.parse(updatePromptResponseFormatPromptsJsonSchema));
|
|
1146
|
+
}
|
|
1147
|
+
function updatePromptResponseFormatPromptsJsonSchemaFromJSON(jsonString) {
|
|
1148
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptResponseFormatPromptsJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptResponseFormatPromptsJsonSchema' from JSON`);
|
|
1149
|
+
}
|
|
792
1150
|
/** @internal */
|
|
793
|
-
exports.
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
mimeType: z.string().optional(),
|
|
797
|
-
filename: z.string().optional(),
|
|
1151
|
+
exports.UpdatePromptResponseFormatJSONSchema$inboundSchema = z.object({
|
|
1152
|
+
type: z.literal("json_schema"),
|
|
1153
|
+
json_schema: z.lazy(() => exports.UpdatePromptResponseFormatPromptsJsonSchema$inboundSchema),
|
|
798
1154
|
}).transform((v) => {
|
|
799
1155
|
return (0, primitives_js_1.remap)(v, {
|
|
800
|
-
"
|
|
1156
|
+
"json_schema": "jsonSchema",
|
|
801
1157
|
});
|
|
802
1158
|
});
|
|
803
1159
|
/** @internal */
|
|
804
|
-
exports.
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
mimeType: z.string().optional(),
|
|
808
|
-
filename: z.string().optional(),
|
|
1160
|
+
exports.UpdatePromptResponseFormatJSONSchema$outboundSchema = z.object({
|
|
1161
|
+
type: z.literal("json_schema"),
|
|
1162
|
+
jsonSchema: z.lazy(() => exports.UpdatePromptResponseFormatPromptsJsonSchema$outboundSchema),
|
|
809
1163
|
}).transform((v) => {
|
|
810
1164
|
return (0, primitives_js_1.remap)(v, {
|
|
811
|
-
|
|
1165
|
+
jsonSchema: "json_schema",
|
|
812
1166
|
});
|
|
813
1167
|
});
|
|
814
|
-
function
|
|
815
|
-
return JSON.stringify(exports.
|
|
1168
|
+
function updatePromptResponseFormatJSONSchemaToJSON(updatePromptResponseFormatJSONSchema) {
|
|
1169
|
+
return JSON.stringify(exports.UpdatePromptResponseFormatJSONSchema$outboundSchema.parse(updatePromptResponseFormatJSONSchema));
|
|
816
1170
|
}
|
|
817
|
-
function
|
|
818
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1171
|
+
function updatePromptResponseFormatJSONSchemaFromJSON(jsonString) {
|
|
1172
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptResponseFormatJSONSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptResponseFormatJSONSchema' from JSON`);
|
|
819
1173
|
}
|
|
820
1174
|
/** @internal */
|
|
821
|
-
exports.
|
|
822
|
-
type: z.literal("
|
|
823
|
-
file: z.lazy(() => exports.UpdatePrompt2File$inboundSchema),
|
|
1175
|
+
exports.UpdatePromptResponseFormatJSONObject$inboundSchema = z.object({
|
|
1176
|
+
type: z.literal("json_object"),
|
|
824
1177
|
});
|
|
825
1178
|
/** @internal */
|
|
826
|
-
exports.
|
|
827
|
-
type: z.literal("
|
|
828
|
-
file: z.lazy(() => exports.UpdatePrompt2File$outboundSchema),
|
|
1179
|
+
exports.UpdatePromptResponseFormatJSONObject$outboundSchema = z.object({
|
|
1180
|
+
type: z.literal("json_object"),
|
|
829
1181
|
});
|
|
830
|
-
function
|
|
831
|
-
return JSON.stringify(exports.
|
|
1182
|
+
function updatePromptResponseFormatJSONObjectToJSON(updatePromptResponseFormatJSONObject) {
|
|
1183
|
+
return JSON.stringify(exports.UpdatePromptResponseFormatJSONObject$outboundSchema.parse(updatePromptResponseFormatJSONObject));
|
|
832
1184
|
}
|
|
833
|
-
function
|
|
834
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1185
|
+
function updatePromptResponseFormatJSONObjectFromJSON(jsonString) {
|
|
1186
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptResponseFormatJSONObject$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptResponseFormatJSONObject' from JSON`);
|
|
835
1187
|
}
|
|
836
1188
|
/** @internal */
|
|
837
|
-
exports.
|
|
838
|
-
|
|
839
|
-
detail: z.string().optional(),
|
|
1189
|
+
exports.UpdatePromptResponseFormatText$inboundSchema = z.object({
|
|
1190
|
+
type: z.literal("text"),
|
|
840
1191
|
});
|
|
841
1192
|
/** @internal */
|
|
842
|
-
exports.
|
|
843
|
-
|
|
844
|
-
detail: z.string().optional(),
|
|
1193
|
+
exports.UpdatePromptResponseFormatText$outboundSchema = z.object({
|
|
1194
|
+
type: z.literal("text"),
|
|
845
1195
|
});
|
|
846
|
-
function
|
|
847
|
-
return JSON.stringify(exports.
|
|
1196
|
+
function updatePromptResponseFormatTextToJSON(updatePromptResponseFormatText) {
|
|
1197
|
+
return JSON.stringify(exports.UpdatePromptResponseFormatText$outboundSchema.parse(updatePromptResponseFormatText));
|
|
848
1198
|
}
|
|
849
|
-
function
|
|
850
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1199
|
+
function updatePromptResponseFormatTextFromJSON(jsonString) {
|
|
1200
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptResponseFormatText$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptResponseFormatText' from JSON`);
|
|
851
1201
|
}
|
|
852
1202
|
/** @internal */
|
|
853
|
-
exports.
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
"image_url": "imageUrl",
|
|
859
|
-
});
|
|
860
|
-
});
|
|
1203
|
+
exports.UpdatePromptResponseFormat$inboundSchema = z.union([
|
|
1204
|
+
z.lazy(() => exports.UpdatePromptResponseFormatText$inboundSchema),
|
|
1205
|
+
z.lazy(() => exports.UpdatePromptResponseFormatJSONObject$inboundSchema),
|
|
1206
|
+
z.lazy(() => exports.UpdatePromptResponseFormatJSONSchema$inboundSchema),
|
|
1207
|
+
]);
|
|
861
1208
|
/** @internal */
|
|
862
|
-
exports.
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
});
|
|
870
|
-
function updatePrompt22ToJSON(updatePrompt22) {
|
|
871
|
-
return JSON.stringify(exports.UpdatePrompt22$outboundSchema.parse(updatePrompt22));
|
|
1209
|
+
exports.UpdatePromptResponseFormat$outboundSchema = z.union([
|
|
1210
|
+
z.lazy(() => exports.UpdatePromptResponseFormatText$outboundSchema),
|
|
1211
|
+
z.lazy(() => exports.UpdatePromptResponseFormatJSONObject$outboundSchema),
|
|
1212
|
+
z.lazy(() => exports.UpdatePromptResponseFormatJSONSchema$outboundSchema),
|
|
1213
|
+
]);
|
|
1214
|
+
function updatePromptResponseFormatToJSON(updatePromptResponseFormat) {
|
|
1215
|
+
return JSON.stringify(exports.UpdatePromptResponseFormat$outboundSchema.parse(updatePromptResponseFormat));
|
|
872
1216
|
}
|
|
873
|
-
function
|
|
874
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1217
|
+
function updatePromptResponseFormatFromJSON(jsonString) {
|
|
1218
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptResponseFormat' from JSON`);
|
|
875
1219
|
}
|
|
876
1220
|
/** @internal */
|
|
877
|
-
exports.
|
|
878
|
-
type: z.literal("text"),
|
|
879
|
-
text: z.string(),
|
|
880
|
-
});
|
|
1221
|
+
exports.UpdatePromptReasoningEffort$inboundSchema = z.nativeEnum(exports.UpdatePromptReasoningEffort);
|
|
881
1222
|
/** @internal */
|
|
882
|
-
exports.
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
1223
|
+
exports.UpdatePromptReasoningEffort$outboundSchema = exports.UpdatePromptReasoningEffort$inboundSchema;
|
|
1224
|
+
/** @internal */
|
|
1225
|
+
exports.UpdatePromptStop$inboundSchema = z.union([z.string(), z.array(z.string())]);
|
|
1226
|
+
/** @internal */
|
|
1227
|
+
exports.UpdatePromptStop$outboundSchema = z.union([z.string(), z.array(z.string())]);
|
|
1228
|
+
function updatePromptStopToJSON(updatePromptStop) {
|
|
1229
|
+
return JSON.stringify(exports.UpdatePromptStop$outboundSchema.parse(updatePromptStop));
|
|
888
1230
|
}
|
|
889
|
-
function
|
|
890
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1231
|
+
function updatePromptStopFromJSON(jsonString) {
|
|
1232
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptStop$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptStop' from JSON`);
|
|
891
1233
|
}
|
|
892
1234
|
/** @internal */
|
|
893
|
-
exports.
|
|
894
|
-
z.
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
1235
|
+
exports.UpdatePromptStreamOptions$inboundSchema = z.object({
|
|
1236
|
+
include_usage: z.boolean().optional(),
|
|
1237
|
+
}).transform((v) => {
|
|
1238
|
+
return (0, primitives_js_1.remap)(v, {
|
|
1239
|
+
"include_usage": "includeUsage",
|
|
1240
|
+
});
|
|
1241
|
+
});
|
|
898
1242
|
/** @internal */
|
|
899
|
-
exports.
|
|
900
|
-
z.
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
1243
|
+
exports.UpdatePromptStreamOptions$outboundSchema = z.object({
|
|
1244
|
+
includeUsage: z.boolean().optional(),
|
|
1245
|
+
}).transform((v) => {
|
|
1246
|
+
return (0, primitives_js_1.remap)(v, {
|
|
1247
|
+
includeUsage: "include_usage",
|
|
1248
|
+
});
|
|
1249
|
+
});
|
|
1250
|
+
function updatePromptStreamOptionsToJSON(updatePromptStreamOptions) {
|
|
1251
|
+
return JSON.stringify(exports.UpdatePromptStreamOptions$outboundSchema.parse(updatePromptStreamOptions));
|
|
906
1252
|
}
|
|
907
|
-
function
|
|
908
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1253
|
+
function updatePromptStreamOptionsFromJSON(jsonString) {
|
|
1254
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptStreamOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptStreamOptions' from JSON`);
|
|
909
1255
|
}
|
|
910
1256
|
/** @internal */
|
|
911
|
-
exports.
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
z.lazy(() => exports.UpdatePrompt21$inboundSchema),
|
|
915
|
-
z.lazy(() => exports.UpdatePrompt22$inboundSchema),
|
|
916
|
-
z.lazy(() => exports.UpdatePrompt23$inboundSchema),
|
|
917
|
-
])),
|
|
1257
|
+
exports.UpdatePromptThinking$inboundSchema = z.union([
|
|
1258
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
1259
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
918
1260
|
]);
|
|
919
1261
|
/** @internal */
|
|
920
|
-
exports.
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
z.lazy(() => exports.UpdatePrompt21$outboundSchema),
|
|
924
|
-
z.lazy(() => exports.UpdatePrompt22$outboundSchema),
|
|
925
|
-
z.lazy(() => exports.UpdatePrompt23$outboundSchema),
|
|
926
|
-
])),
|
|
1262
|
+
exports.UpdatePromptThinking$outboundSchema = z.union([
|
|
1263
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
1264
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
927
1265
|
]);
|
|
928
|
-
function
|
|
929
|
-
return JSON.stringify(exports.
|
|
1266
|
+
function updatePromptThinkingToJSON(updatePromptThinking) {
|
|
1267
|
+
return JSON.stringify(exports.UpdatePromptThinking$outboundSchema.parse(updatePromptThinking));
|
|
930
1268
|
}
|
|
931
|
-
function
|
|
932
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1269
|
+
function updatePromptThinkingFromJSON(jsonString) {
|
|
1270
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptThinking$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptThinking' from JSON`);
|
|
933
1271
|
}
|
|
934
1272
|
/** @internal */
|
|
935
|
-
exports.
|
|
1273
|
+
exports.UpdatePromptToolChoiceType$inboundSchema = z.nativeEnum(exports.UpdatePromptToolChoiceType);
|
|
936
1274
|
/** @internal */
|
|
937
|
-
exports.
|
|
1275
|
+
exports.UpdatePromptToolChoiceType$outboundSchema = exports.UpdatePromptToolChoiceType$inboundSchema;
|
|
938
1276
|
/** @internal */
|
|
939
|
-
exports.
|
|
1277
|
+
exports.UpdatePromptToolChoiceFunction$inboundSchema = z.object({
|
|
940
1278
|
name: z.string(),
|
|
941
|
-
arguments: z.string(),
|
|
942
1279
|
});
|
|
943
1280
|
/** @internal */
|
|
944
|
-
exports.
|
|
1281
|
+
exports.UpdatePromptToolChoiceFunction$outboundSchema = z.object({
|
|
945
1282
|
name: z.string(),
|
|
946
|
-
arguments: z.string(),
|
|
947
1283
|
});
|
|
948
|
-
function
|
|
949
|
-
return JSON.stringify(exports.
|
|
1284
|
+
function updatePromptToolChoiceFunctionToJSON(updatePromptToolChoiceFunction) {
|
|
1285
|
+
return JSON.stringify(exports.UpdatePromptToolChoiceFunction$outboundSchema.parse(updatePromptToolChoiceFunction));
|
|
950
1286
|
}
|
|
951
|
-
function
|
|
952
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1287
|
+
function updatePromptToolChoiceFunctionFromJSON(jsonString) {
|
|
1288
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptToolChoiceFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptToolChoiceFunction' from JSON`);
|
|
953
1289
|
}
|
|
954
1290
|
/** @internal */
|
|
955
|
-
exports.
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
type: exports.UpdatePromptType$inboundSchema,
|
|
959
|
-
function: z.lazy(() => exports.UpdatePromptFunction$inboundSchema),
|
|
1291
|
+
exports.UpdatePromptToolChoice2$inboundSchema = z.object({
|
|
1292
|
+
type: exports.UpdatePromptToolChoiceType$inboundSchema.optional(),
|
|
1293
|
+
function: z.lazy(() => exports.UpdatePromptToolChoiceFunction$inboundSchema),
|
|
960
1294
|
});
|
|
961
1295
|
/** @internal */
|
|
962
|
-
exports.
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
type: exports.UpdatePromptType$outboundSchema,
|
|
966
|
-
function: z.lazy(() => exports.UpdatePromptFunction$outboundSchema),
|
|
1296
|
+
exports.UpdatePromptToolChoice2$outboundSchema = z.object({
|
|
1297
|
+
type: exports.UpdatePromptToolChoiceType$outboundSchema.optional(),
|
|
1298
|
+
function: z.lazy(() => exports.UpdatePromptToolChoiceFunction$outboundSchema),
|
|
967
1299
|
});
|
|
968
|
-
function
|
|
969
|
-
return JSON.stringify(exports.
|
|
1300
|
+
function updatePromptToolChoice2ToJSON(updatePromptToolChoice2) {
|
|
1301
|
+
return JSON.stringify(exports.UpdatePromptToolChoice2$outboundSchema.parse(updatePromptToolChoice2));
|
|
970
1302
|
}
|
|
971
|
-
function
|
|
972
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1303
|
+
function updatePromptToolChoice2FromJSON(jsonString) {
|
|
1304
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptToolChoice2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptToolChoice2' from JSON`);
|
|
973
1305
|
}
|
|
974
1306
|
/** @internal */
|
|
975
|
-
exports.
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
1307
|
+
exports.UpdatePromptToolChoice1$inboundSchema = z.nativeEnum(exports.UpdatePromptToolChoice1);
|
|
1308
|
+
/** @internal */
|
|
1309
|
+
exports.UpdatePromptToolChoice1$outboundSchema = exports.UpdatePromptToolChoice1$inboundSchema;
|
|
1310
|
+
/** @internal */
|
|
1311
|
+
exports.UpdatePromptToolChoice$inboundSchema = z.union([
|
|
1312
|
+
z.lazy(() => exports.UpdatePromptToolChoice2$inboundSchema),
|
|
1313
|
+
exports.UpdatePromptToolChoice1$inboundSchema,
|
|
1314
|
+
]);
|
|
1315
|
+
/** @internal */
|
|
1316
|
+
exports.UpdatePromptToolChoice$outboundSchema = z.union([
|
|
1317
|
+
z.lazy(() => exports.UpdatePromptToolChoice2$outboundSchema),
|
|
1318
|
+
exports.UpdatePromptToolChoice1$outboundSchema,
|
|
1319
|
+
]);
|
|
1320
|
+
function updatePromptToolChoiceToJSON(updatePromptToolChoice) {
|
|
1321
|
+
return JSON.stringify(exports.UpdatePromptToolChoice$outboundSchema.parse(updatePromptToolChoice));
|
|
1322
|
+
}
|
|
1323
|
+
function updatePromptToolChoiceFromJSON(jsonString) {
|
|
1324
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptToolChoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptToolChoice' from JSON`);
|
|
1325
|
+
}
|
|
1326
|
+
/** @internal */
|
|
1327
|
+
exports.UpdatePromptModalities$inboundSchema = z.nativeEnum(exports.UpdatePromptModalities);
|
|
1328
|
+
/** @internal */
|
|
1329
|
+
exports.UpdatePromptModalities$outboundSchema = exports.UpdatePromptModalities$inboundSchema;
|
|
1330
|
+
/** @internal */
|
|
1331
|
+
exports.UpdatePromptId1$inboundSchema = z.nativeEnum(exports.UpdatePromptId1);
|
|
1332
|
+
/** @internal */
|
|
1333
|
+
exports.UpdatePromptId1$outboundSchema = exports.UpdatePromptId1$inboundSchema;
|
|
1334
|
+
/** @internal */
|
|
1335
|
+
exports.UpdatePromptId$inboundSchema = z.union([exports.UpdatePromptId1$inboundSchema, z.string()]);
|
|
1336
|
+
/** @internal */
|
|
1337
|
+
exports.UpdatePromptId$outboundSchema = z.union([exports.UpdatePromptId1$outboundSchema, z.string()]);
|
|
1338
|
+
function updatePromptIdToJSON(updatePromptId) {
|
|
1339
|
+
return JSON.stringify(exports.UpdatePromptId$outboundSchema.parse(updatePromptId));
|
|
1340
|
+
}
|
|
1341
|
+
function updatePromptIdFromJSON(jsonString) {
|
|
1342
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptId' from JSON`);
|
|
1343
|
+
}
|
|
1344
|
+
/** @internal */
|
|
1345
|
+
exports.UpdatePromptExecuteOn$inboundSchema = z.nativeEnum(exports.UpdatePromptExecuteOn);
|
|
1346
|
+
/** @internal */
|
|
1347
|
+
exports.UpdatePromptExecuteOn$outboundSchema = exports.UpdatePromptExecuteOn$inboundSchema;
|
|
1348
|
+
/** @internal */
|
|
1349
|
+
exports.UpdatePromptGuardrails$inboundSchema = z.object({
|
|
1350
|
+
id: z.union([exports.UpdatePromptId1$inboundSchema, z.string()]),
|
|
1351
|
+
execute_on: exports.UpdatePromptExecuteOn$inboundSchema,
|
|
1352
|
+
}).transform((v) => {
|
|
1353
|
+
return (0, primitives_js_1.remap)(v, {
|
|
1354
|
+
"execute_on": "executeOn",
|
|
1355
|
+
});
|
|
1356
|
+
});
|
|
1357
|
+
/** @internal */
|
|
1358
|
+
exports.UpdatePromptGuardrails$outboundSchema = z.object({
|
|
1359
|
+
id: z.union([exports.UpdatePromptId1$outboundSchema, z.string()]),
|
|
1360
|
+
executeOn: exports.UpdatePromptExecuteOn$outboundSchema,
|
|
1361
|
+
}).transform((v) => {
|
|
1362
|
+
return (0, primitives_js_1.remap)(v, {
|
|
1363
|
+
executeOn: "execute_on",
|
|
1364
|
+
});
|
|
1365
|
+
});
|
|
1366
|
+
function updatePromptGuardrailsToJSON(updatePromptGuardrails) {
|
|
1367
|
+
return JSON.stringify(exports.UpdatePromptGuardrails$outboundSchema.parse(updatePromptGuardrails));
|
|
1368
|
+
}
|
|
1369
|
+
function updatePromptGuardrailsFromJSON(jsonString) {
|
|
1370
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptGuardrails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptGuardrails' from JSON`);
|
|
1371
|
+
}
|
|
1372
|
+
/** @internal */
|
|
1373
|
+
exports.UpdatePromptPromptInput$inboundSchema = z.object({
|
|
1374
|
+
messages: z.array(z.union([
|
|
1375
|
+
z.lazy(() => exports.UpdatePromptMessagesSystemMessage$inboundSchema),
|
|
1376
|
+
z.lazy(() => exports.UpdatePromptMessagesUserMessage$inboundSchema),
|
|
1377
|
+
z.lazy(() => exports.UpdatePromptMessagesAssistantMessage$inboundSchema),
|
|
1378
|
+
z.lazy(() => exports.UpdatePromptMessagesToolMessage$inboundSchema),
|
|
1379
|
+
])).optional(),
|
|
1380
|
+
model: z.nullable(z.string()).optional(),
|
|
1381
|
+
audio: z.nullable(z.lazy(() => exports.UpdatePromptAudio$inboundSchema)).optional(),
|
|
1382
|
+
frequency_penalty: z.nullable(z.number()).optional(),
|
|
1383
|
+
max_tokens: z.nullable(z.number().int()).optional(),
|
|
1384
|
+
max_completion_tokens: z.nullable(z.number().int()).optional(),
|
|
1385
|
+
logprobs: z.nullable(z.boolean()).optional(),
|
|
1386
|
+
top_logprobs: z.nullable(z.number().int()).optional(),
|
|
1387
|
+
n: z.nullable(z.number().int()).optional(),
|
|
1388
|
+
presence_penalty: z.nullable(z.number()).optional(),
|
|
1389
|
+
response_format: z.union([
|
|
1390
|
+
z.lazy(() => exports.UpdatePromptResponseFormatText$inboundSchema),
|
|
1391
|
+
z.lazy(() => exports.UpdatePromptResponseFormatJSONObject$inboundSchema),
|
|
1392
|
+
z.lazy(() => exports.UpdatePromptResponseFormatJSONSchema$inboundSchema),
|
|
1393
|
+
]).optional(),
|
|
1394
|
+
reasoning_effort: exports.UpdatePromptReasoningEffort$inboundSchema.optional(),
|
|
1395
|
+
verbosity: z.string().optional(),
|
|
1396
|
+
seed: z.nullable(z.number()).optional(),
|
|
1397
|
+
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
1398
|
+
stream_options: z.nullable(z.lazy(() => exports.UpdatePromptStreamOptions$inboundSchema)).optional(),
|
|
1399
|
+
thinking: z.union([
|
|
1400
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
1401
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
1402
|
+
]).optional(),
|
|
1403
|
+
temperature: z.nullable(z.number()).optional(),
|
|
1404
|
+
top_p: z.nullable(z.number()).optional(),
|
|
1405
|
+
top_k: z.nullable(z.number()).optional(),
|
|
1406
|
+
tool_choice: z.union([
|
|
1407
|
+
z.lazy(() => exports.UpdatePromptToolChoice2$inboundSchema),
|
|
1408
|
+
exports.UpdatePromptToolChoice1$inboundSchema,
|
|
1409
|
+
]).optional(),
|
|
1410
|
+
parallel_tool_calls: z.boolean().optional(),
|
|
1411
|
+
modalities: z.nullable(z.array(exports.UpdatePromptModalities$inboundSchema))
|
|
1412
|
+
.optional(),
|
|
1413
|
+
guardrails: z.array(z.lazy(() => exports.UpdatePromptGuardrails$inboundSchema))
|
|
986
1414
|
.optional(),
|
|
987
|
-
tool_call_id: z.nullable(z.string()).optional(),
|
|
988
1415
|
}).transform((v) => {
|
|
989
1416
|
return (0, primitives_js_1.remap)(v, {
|
|
990
|
-
"
|
|
991
|
-
"
|
|
1417
|
+
"frequency_penalty": "frequencyPenalty",
|
|
1418
|
+
"max_tokens": "maxTokens",
|
|
1419
|
+
"max_completion_tokens": "maxCompletionTokens",
|
|
1420
|
+
"top_logprobs": "topLogprobs",
|
|
1421
|
+
"presence_penalty": "presencePenalty",
|
|
1422
|
+
"response_format": "responseFormat",
|
|
1423
|
+
"reasoning_effort": "reasoningEffort",
|
|
1424
|
+
"stream_options": "streamOptions",
|
|
1425
|
+
"top_p": "topP",
|
|
1426
|
+
"top_k": "topK",
|
|
1427
|
+
"tool_choice": "toolChoice",
|
|
1428
|
+
"parallel_tool_calls": "parallelToolCalls",
|
|
992
1429
|
});
|
|
993
1430
|
});
|
|
994
1431
|
/** @internal */
|
|
995
|
-
exports.
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
z.
|
|
999
|
-
z.
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1432
|
+
exports.UpdatePromptPromptInput$outboundSchema = z.object({
|
|
1433
|
+
messages: z.array(z.union([
|
|
1434
|
+
z.lazy(() => exports.UpdatePromptMessagesSystemMessage$outboundSchema),
|
|
1435
|
+
z.lazy(() => exports.UpdatePromptMessagesUserMessage$outboundSchema),
|
|
1436
|
+
z.lazy(() => exports.UpdatePromptMessagesAssistantMessage$outboundSchema),
|
|
1437
|
+
z.lazy(() => exports.UpdatePromptMessagesToolMessage$outboundSchema),
|
|
1438
|
+
])).optional(),
|
|
1439
|
+
model: z.nullable(z.string()).optional(),
|
|
1440
|
+
audio: z.nullable(z.lazy(() => exports.UpdatePromptAudio$outboundSchema)).optional(),
|
|
1441
|
+
frequencyPenalty: z.nullable(z.number()).optional(),
|
|
1442
|
+
maxTokens: z.nullable(z.number().int()).optional(),
|
|
1443
|
+
maxCompletionTokens: z.nullable(z.number().int()).optional(),
|
|
1444
|
+
logprobs: z.nullable(z.boolean()).optional(),
|
|
1445
|
+
topLogprobs: z.nullable(z.number().int()).optional(),
|
|
1446
|
+
n: z.nullable(z.number().int()).optional(),
|
|
1447
|
+
presencePenalty: z.nullable(z.number()).optional(),
|
|
1448
|
+
responseFormat: z.union([
|
|
1449
|
+
z.lazy(() => exports.UpdatePromptResponseFormatText$outboundSchema),
|
|
1450
|
+
z.lazy(() => exports.UpdatePromptResponseFormatJSONObject$outboundSchema),
|
|
1451
|
+
z.lazy(() => exports.UpdatePromptResponseFormatJSONSchema$outboundSchema),
|
|
1452
|
+
]).optional(),
|
|
1453
|
+
reasoningEffort: exports.UpdatePromptReasoningEffort$outboundSchema.optional(),
|
|
1454
|
+
verbosity: z.string().optional(),
|
|
1455
|
+
seed: z.nullable(z.number()).optional(),
|
|
1456
|
+
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
1457
|
+
streamOptions: z.nullable(z.lazy(() => exports.UpdatePromptStreamOptions$outboundSchema)).optional(),
|
|
1458
|
+
thinking: z.union([
|
|
1459
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
1460
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
1461
|
+
]).optional(),
|
|
1462
|
+
temperature: z.nullable(z.number()).optional(),
|
|
1463
|
+
topP: z.nullable(z.number()).optional(),
|
|
1464
|
+
topK: z.nullable(z.number()).optional(),
|
|
1465
|
+
toolChoice: z.union([
|
|
1466
|
+
z.lazy(() => exports.UpdatePromptToolChoice2$outboundSchema),
|
|
1467
|
+
exports.UpdatePromptToolChoice1$outboundSchema,
|
|
1468
|
+
]).optional(),
|
|
1469
|
+
parallelToolCalls: z.boolean().optional(),
|
|
1470
|
+
modalities: z.nullable(z.array(exports.UpdatePromptModalities$outboundSchema))
|
|
1471
|
+
.optional(),
|
|
1472
|
+
guardrails: z.array(z.lazy(() => exports.UpdatePromptGuardrails$outboundSchema))
|
|
1006
1473
|
.optional(),
|
|
1007
|
-
toolCallId: z.nullable(z.string()).optional(),
|
|
1008
1474
|
}).transform((v) => {
|
|
1009
1475
|
return (0, primitives_js_1.remap)(v, {
|
|
1010
|
-
|
|
1011
|
-
|
|
1476
|
+
frequencyPenalty: "frequency_penalty",
|
|
1477
|
+
maxTokens: "max_tokens",
|
|
1478
|
+
maxCompletionTokens: "max_completion_tokens",
|
|
1479
|
+
topLogprobs: "top_logprobs",
|
|
1480
|
+
presencePenalty: "presence_penalty",
|
|
1481
|
+
responseFormat: "response_format",
|
|
1482
|
+
reasoningEffort: "reasoning_effort",
|
|
1483
|
+
streamOptions: "stream_options",
|
|
1484
|
+
topP: "top_p",
|
|
1485
|
+
topK: "top_k",
|
|
1486
|
+
toolChoice: "tool_choice",
|
|
1487
|
+
parallelToolCalls: "parallel_tool_calls",
|
|
1012
1488
|
});
|
|
1013
1489
|
});
|
|
1014
|
-
function
|
|
1015
|
-
return JSON.stringify(exports.
|
|
1490
|
+
function updatePromptPromptInputToJSON(updatePromptPromptInput) {
|
|
1491
|
+
return JSON.stringify(exports.UpdatePromptPromptInput$outboundSchema.parse(updatePromptPromptInput));
|
|
1016
1492
|
}
|
|
1017
|
-
function
|
|
1018
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1493
|
+
function updatePromptPromptInputFromJSON(jsonString) {
|
|
1494
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptPromptInput$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptPromptInput' from JSON`);
|
|
1495
|
+
}
|
|
1496
|
+
/** @internal */
|
|
1497
|
+
exports.UpdatePromptUseCases$inboundSchema = z.nativeEnum(exports.UpdatePromptUseCases);
|
|
1498
|
+
/** @internal */
|
|
1499
|
+
exports.UpdatePromptUseCases$outboundSchema = exports.UpdatePromptUseCases$inboundSchema;
|
|
1500
|
+
/** @internal */
|
|
1501
|
+
exports.UpdatePromptLanguage$inboundSchema = z.nativeEnum(exports.UpdatePromptLanguage);
|
|
1502
|
+
/** @internal */
|
|
1503
|
+
exports.UpdatePromptLanguage$outboundSchema = exports.UpdatePromptLanguage$inboundSchema;
|
|
1504
|
+
/** @internal */
|
|
1505
|
+
exports.UpdatePromptMetadata$inboundSchema = z.object({
|
|
1506
|
+
use_cases: z.array(exports.UpdatePromptUseCases$inboundSchema).optional(),
|
|
1507
|
+
language: z.nullable(exports.UpdatePromptLanguage$inboundSchema).optional(),
|
|
1508
|
+
}).transform((v) => {
|
|
1509
|
+
return (0, primitives_js_1.remap)(v, {
|
|
1510
|
+
"use_cases": "useCases",
|
|
1511
|
+
});
|
|
1512
|
+
});
|
|
1513
|
+
/** @internal */
|
|
1514
|
+
exports.UpdatePromptMetadata$outboundSchema = z.object({
|
|
1515
|
+
useCases: z.array(exports.UpdatePromptUseCases$outboundSchema).optional(),
|
|
1516
|
+
language: z.nullable(exports.UpdatePromptLanguage$outboundSchema).optional(),
|
|
1517
|
+
}).transform((v) => {
|
|
1518
|
+
return (0, primitives_js_1.remap)(v, {
|
|
1519
|
+
useCases: "use_cases",
|
|
1520
|
+
});
|
|
1521
|
+
});
|
|
1522
|
+
function updatePromptMetadataToJSON(updatePromptMetadata) {
|
|
1523
|
+
return JSON.stringify(exports.UpdatePromptMetadata$outboundSchema.parse(updatePromptMetadata));
|
|
1524
|
+
}
|
|
1525
|
+
function updatePromptMetadataFromJSON(jsonString) {
|
|
1526
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptMetadata' from JSON`);
|
|
1019
1527
|
}
|
|
1020
1528
|
/** @internal */
|
|
1021
|
-
exports.
|
|
1022
|
-
.
|
|
1529
|
+
exports.UpdatePromptRequestBody$inboundSchema = z.object({
|
|
1530
|
+
owner: z.string().optional(),
|
|
1531
|
+
domain_id: z.string().optional(),
|
|
1532
|
+
created: z.string().optional(),
|
|
1533
|
+
updated: z.string().optional(),
|
|
1534
|
+
created_by_id: z.nullable(z.string()).optional(),
|
|
1535
|
+
updated_by_id: z.nullable(z.string()).optional(),
|
|
1536
|
+
display_name: z.string().optional(),
|
|
1537
|
+
description: z.nullable(z.string()).optional(),
|
|
1538
|
+
prompt: z.lazy(() => exports.UpdatePromptPromptInput$inboundSchema).optional(),
|
|
1539
|
+
metadata: z.lazy(() => exports.UpdatePromptMetadata$inboundSchema).optional(),
|
|
1540
|
+
path: z.string().optional(),
|
|
1541
|
+
}).transform((v) => {
|
|
1542
|
+
return (0, primitives_js_1.remap)(v, {
|
|
1543
|
+
"domain_id": "domainId",
|
|
1544
|
+
"created_by_id": "createdById",
|
|
1545
|
+
"updated_by_id": "updatedById",
|
|
1546
|
+
"display_name": "displayName",
|
|
1547
|
+
});
|
|
1548
|
+
});
|
|
1023
1549
|
/** @internal */
|
|
1024
|
-
exports.
|
|
1550
|
+
exports.UpdatePromptRequestBody$outboundSchema = z.object({
|
|
1551
|
+
owner: z.string().optional(),
|
|
1552
|
+
domainId: z.string().optional(),
|
|
1553
|
+
created: z.string().optional(),
|
|
1554
|
+
updated: z.string().optional(),
|
|
1555
|
+
createdById: z.nullable(z.string()).optional(),
|
|
1556
|
+
updatedById: z.nullable(z.string()).optional(),
|
|
1557
|
+
displayName: z.string().optional(),
|
|
1558
|
+
description: z.nullable(z.string()).optional(),
|
|
1559
|
+
prompt: z.lazy(() => exports.UpdatePromptPromptInput$outboundSchema).optional(),
|
|
1560
|
+
metadata: z.lazy(() => exports.UpdatePromptMetadata$outboundSchema).optional(),
|
|
1561
|
+
path: z.string().optional(),
|
|
1562
|
+
}).transform((v) => {
|
|
1563
|
+
return (0, primitives_js_1.remap)(v, {
|
|
1564
|
+
domainId: "domain_id",
|
|
1565
|
+
createdById: "created_by_id",
|
|
1566
|
+
updatedById: "updated_by_id",
|
|
1567
|
+
displayName: "display_name",
|
|
1568
|
+
});
|
|
1569
|
+
});
|
|
1570
|
+
function updatePromptRequestBodyToJSON(updatePromptRequestBody) {
|
|
1571
|
+
return JSON.stringify(exports.UpdatePromptRequestBody$outboundSchema.parse(updatePromptRequestBody));
|
|
1572
|
+
}
|
|
1573
|
+
function updatePromptRequestBodyFromJSON(jsonString) {
|
|
1574
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptRequestBody' from JSON`);
|
|
1575
|
+
}
|
|
1025
1576
|
/** @internal */
|
|
1026
|
-
exports.
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
model_parameters: z.lazy(() => exports.UpdatePromptModelParameters$inboundSchema)
|
|
1030
|
-
.optional(),
|
|
1031
|
-
provider: exports.Provider$inboundSchema.optional(),
|
|
1032
|
-
integration_id: z.nullable(z.string()).optional(),
|
|
1033
|
-
version: z.string().optional(),
|
|
1034
|
-
messages: z.array(z.lazy(() => exports.UpdatePromptMessages$inboundSchema)),
|
|
1035
|
-
model_db_id: z.nullable(z.string()).optional(),
|
|
1036
|
-
model_type: z.nullable(exports.ModelType$inboundSchema).optional(),
|
|
1037
|
-
is_private: z.boolean().default(false),
|
|
1577
|
+
exports.UpdatePromptRequest$inboundSchema = z.object({
|
|
1578
|
+
id: z.string(),
|
|
1579
|
+
RequestBody: z.lazy(() => exports.UpdatePromptRequestBody$inboundSchema).optional(),
|
|
1038
1580
|
}).transform((v) => {
|
|
1039
1581
|
return (0, primitives_js_1.remap)(v, {
|
|
1040
|
-
"
|
|
1041
|
-
"integration_id": "integrationId",
|
|
1042
|
-
"model_db_id": "modelDbId",
|
|
1043
|
-
"model_type": "modelType",
|
|
1044
|
-
"is_private": "isPrivate",
|
|
1582
|
+
"RequestBody": "requestBody",
|
|
1045
1583
|
});
|
|
1046
1584
|
});
|
|
1047
1585
|
/** @internal */
|
|
1048
|
-
exports.
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
modelParameters: z.lazy(() => exports.UpdatePromptModelParameters$outboundSchema)
|
|
1052
|
-
.optional(),
|
|
1053
|
-
provider: exports.Provider$outboundSchema.optional(),
|
|
1054
|
-
integrationId: z.nullable(z.string()).optional(),
|
|
1055
|
-
version: z.string().optional(),
|
|
1056
|
-
messages: z.array(z.lazy(() => exports.UpdatePromptMessages$outboundSchema)),
|
|
1057
|
-
modelDbId: z.nullable(z.string()).optional(),
|
|
1058
|
-
modelType: z.nullable(exports.ModelType$outboundSchema).optional(),
|
|
1059
|
-
isPrivate: z.boolean().default(false),
|
|
1586
|
+
exports.UpdatePromptRequest$outboundSchema = z.object({
|
|
1587
|
+
id: z.string(),
|
|
1588
|
+
requestBody: z.lazy(() => exports.UpdatePromptRequestBody$outboundSchema).optional(),
|
|
1060
1589
|
}).transform((v) => {
|
|
1061
1590
|
return (0, primitives_js_1.remap)(v, {
|
|
1062
|
-
|
|
1063
|
-
integrationId: "integration_id",
|
|
1064
|
-
modelDbId: "model_db_id",
|
|
1065
|
-
modelType: "model_type",
|
|
1066
|
-
isPrivate: "is_private",
|
|
1591
|
+
requestBody: "RequestBody",
|
|
1067
1592
|
});
|
|
1068
1593
|
});
|
|
1069
|
-
function
|
|
1070
|
-
return JSON.stringify(exports.
|
|
1594
|
+
function updatePromptRequestToJSON(updatePromptRequest) {
|
|
1595
|
+
return JSON.stringify(exports.UpdatePromptRequest$outboundSchema.parse(updatePromptRequest));
|
|
1071
1596
|
}
|
|
1072
|
-
function
|
|
1073
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1597
|
+
function updatePromptRequestFromJSON(jsonString) {
|
|
1598
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptRequest' from JSON`);
|
|
1074
1599
|
}
|
|
1075
1600
|
/** @internal */
|
|
1076
|
-
exports.
|
|
1601
|
+
exports.UpdatePromptType$inboundSchema = z.nativeEnum(exports.UpdatePromptType);
|
|
1602
|
+
/** @internal */
|
|
1603
|
+
exports.UpdatePromptType$outboundSchema = exports.UpdatePromptType$inboundSchema;
|
|
1604
|
+
/** @internal */
|
|
1605
|
+
exports.UpdatePromptModelType$inboundSchema = z.nativeEnum(exports.UpdatePromptModelType);
|
|
1606
|
+
/** @internal */
|
|
1607
|
+
exports.UpdatePromptModelType$outboundSchema = exports.UpdatePromptModelType$inboundSchema;
|
|
1608
|
+
/** @internal */
|
|
1609
|
+
exports.UpdatePromptPromptsFormat$inboundSchema = z.nativeEnum(exports.UpdatePromptPromptsFormat);
|
|
1610
|
+
/** @internal */
|
|
1611
|
+
exports.UpdatePromptPromptsFormat$outboundSchema = exports.UpdatePromptPromptsFormat$inboundSchema;
|
|
1612
|
+
/** @internal */
|
|
1613
|
+
exports.UpdatePromptResponseFormat6$inboundSchema = z.nativeEnum(exports.UpdatePromptResponseFormat6);
|
|
1614
|
+
/** @internal */
|
|
1615
|
+
exports.UpdatePromptResponseFormat6$outboundSchema = exports.UpdatePromptResponseFormat6$inboundSchema;
|
|
1616
|
+
/** @internal */
|
|
1617
|
+
exports.UpdatePromptResponseFormat5$inboundSchema = z.nativeEnum(exports.UpdatePromptResponseFormat5);
|
|
1618
|
+
/** @internal */
|
|
1619
|
+
exports.UpdatePromptResponseFormat5$outboundSchema = exports.UpdatePromptResponseFormat5$inboundSchema;
|
|
1620
|
+
/** @internal */
|
|
1621
|
+
exports.UpdatePromptResponseFormat4$inboundSchema = z.nativeEnum(exports.UpdatePromptResponseFormat4);
|
|
1077
1622
|
/** @internal */
|
|
1078
|
-
exports.
|
|
1623
|
+
exports.UpdatePromptResponseFormat4$outboundSchema = exports.UpdatePromptResponseFormat4$inboundSchema;
|
|
1079
1624
|
/** @internal */
|
|
1080
|
-
exports.
|
|
1625
|
+
exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyPromptConfigModelParametersType$inboundSchema = z.nativeEnum(exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyPromptConfigModelParametersType);
|
|
1081
1626
|
/** @internal */
|
|
1082
|
-
exports.
|
|
1627
|
+
exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyPromptConfigModelParametersType$outboundSchema = exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyPromptConfigModelParametersType$inboundSchema;
|
|
1083
1628
|
/** @internal */
|
|
1084
|
-
exports.
|
|
1085
|
-
|
|
1086
|
-
language: z.nullable(exports.UpdatePromptLanguage$inboundSchema).optional(),
|
|
1087
|
-
}).transform((v) => {
|
|
1088
|
-
return (0, primitives_js_1.remap)(v, {
|
|
1089
|
-
"use_cases": "useCases",
|
|
1090
|
-
});
|
|
1629
|
+
exports.UpdatePromptResponseFormat3$inboundSchema = z.object({
|
|
1630
|
+
type: exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyPromptConfigModelParametersType$inboundSchema,
|
|
1091
1631
|
});
|
|
1092
1632
|
/** @internal */
|
|
1093
|
-
exports.
|
|
1094
|
-
|
|
1095
|
-
language: z.nullable(exports.UpdatePromptLanguage$outboundSchema).optional(),
|
|
1096
|
-
}).transform((v) => {
|
|
1097
|
-
return (0, primitives_js_1.remap)(v, {
|
|
1098
|
-
useCases: "use_cases",
|
|
1099
|
-
});
|
|
1633
|
+
exports.UpdatePromptResponseFormat3$outboundSchema = z.object({
|
|
1634
|
+
type: exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyPromptConfigModelParametersType$outboundSchema,
|
|
1100
1635
|
});
|
|
1101
|
-
function
|
|
1102
|
-
return JSON.stringify(exports.
|
|
1636
|
+
function updatePromptResponseFormat3ToJSON(updatePromptResponseFormat3) {
|
|
1637
|
+
return JSON.stringify(exports.UpdatePromptResponseFormat3$outboundSchema.parse(updatePromptResponseFormat3));
|
|
1103
1638
|
}
|
|
1104
|
-
function
|
|
1105
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1639
|
+
function updatePromptResponseFormat3FromJSON(jsonString) {
|
|
1640
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptResponseFormat3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptResponseFormat3' from JSON`);
|
|
1106
1641
|
}
|
|
1107
1642
|
/** @internal */
|
|
1108
|
-
exports.
|
|
1643
|
+
exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyPromptConfigType$inboundSchema = z.nativeEnum(exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyPromptConfigType);
|
|
1109
1644
|
/** @internal */
|
|
1110
|
-
exports.
|
|
1111
|
-
function updatePromptContentPromptsRequestRequestBody2ToJSON(updatePromptContentPromptsRequestRequestBody2) {
|
|
1112
|
-
return JSON.stringify(exports.UpdatePromptContentPromptsRequestRequestBody2$outboundSchema.parse(updatePromptContentPromptsRequestRequestBody2));
|
|
1113
|
-
}
|
|
1114
|
-
function updatePromptContentPromptsRequestRequestBody2FromJSON(jsonString) {
|
|
1115
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptContentPromptsRequestRequestBody2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptContentPromptsRequestRequestBody2' from JSON`);
|
|
1116
|
-
}
|
|
1645
|
+
exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyPromptConfigType$outboundSchema = exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyPromptConfigType$inboundSchema;
|
|
1117
1646
|
/** @internal */
|
|
1118
|
-
exports.
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
]);
|
|
1647
|
+
exports.UpdatePromptResponseFormat2$inboundSchema = z.object({
|
|
1648
|
+
type: exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyPromptConfigType$inboundSchema,
|
|
1649
|
+
});
|
|
1122
1650
|
/** @internal */
|
|
1123
|
-
exports.
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
return JSON.stringify(exports.UpdatePromptMessagesPromptsRequestRequestBodyContent$outboundSchema.parse(updatePromptMessagesPromptsRequestRequestBodyContent));
|
|
1651
|
+
exports.UpdatePromptResponseFormat2$outboundSchema = z.object({
|
|
1652
|
+
type: exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyPromptConfigType$outboundSchema,
|
|
1653
|
+
});
|
|
1654
|
+
function updatePromptResponseFormat2ToJSON(updatePromptResponseFormat2) {
|
|
1655
|
+
return JSON.stringify(exports.UpdatePromptResponseFormat2$outboundSchema.parse(updatePromptResponseFormat2));
|
|
1129
1656
|
}
|
|
1130
|
-
function
|
|
1131
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1657
|
+
function updatePromptResponseFormat2FromJSON(jsonString) {
|
|
1658
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptResponseFormat2' from JSON`);
|
|
1132
1659
|
}
|
|
1133
1660
|
/** @internal */
|
|
1134
|
-
exports.
|
|
1135
|
-
/** @internal */
|
|
1136
|
-
exports.UpdatePromptMessagesPromptsType$outboundSchema = exports.UpdatePromptMessagesPromptsType$inboundSchema;
|
|
1137
|
-
/** @internal */
|
|
1138
|
-
exports.UpdatePromptMessagesTtl$inboundSchema = z.nativeEnum(exports.UpdatePromptMessagesTtl);
|
|
1661
|
+
exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema = z.nativeEnum(exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType);
|
|
1139
1662
|
/** @internal */
|
|
1140
|
-
exports.
|
|
1663
|
+
exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$outboundSchema = exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema;
|
|
1141
1664
|
/** @internal */
|
|
1142
|
-
exports.
|
|
1143
|
-
|
|
1144
|
-
|
|
1665
|
+
exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONJSONSchema$inboundSchema = z.object({
|
|
1666
|
+
name: z.string(),
|
|
1667
|
+
description: z.string().optional(),
|
|
1668
|
+
strict: z.boolean().optional(),
|
|
1669
|
+
schema: z.record(z.any()),
|
|
1145
1670
|
});
|
|
1146
1671
|
/** @internal */
|
|
1147
|
-
exports.
|
|
1148
|
-
|
|
1149
|
-
|
|
1672
|
+
exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONJSONSchema$outboundSchema = z.object({
|
|
1673
|
+
name: z.string(),
|
|
1674
|
+
description: z.string().optional(),
|
|
1675
|
+
strict: z.boolean().optional(),
|
|
1676
|
+
schema: z.record(z.any()),
|
|
1150
1677
|
});
|
|
1151
|
-
function
|
|
1152
|
-
return JSON.stringify(exports.
|
|
1678
|
+
function updatePromptResponseFormatPromptsResponse200ApplicationJSONJSONSchemaToJSON(updatePromptResponseFormatPromptsResponse200ApplicationJSONJSONSchema) {
|
|
1679
|
+
return JSON.stringify(exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONJSONSchema$outboundSchema
|
|
1680
|
+
.parse(updatePromptResponseFormatPromptsResponse200ApplicationJSONJSONSchema));
|
|
1153
1681
|
}
|
|
1154
|
-
function
|
|
1155
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1682
|
+
function updatePromptResponseFormatPromptsResponse200ApplicationJSONJSONSchemaFromJSON(jsonString) {
|
|
1683
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONJSONSchema$inboundSchema
|
|
1684
|
+
.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptResponseFormatPromptsResponse200ApplicationJSONJSONSchema' from JSON`);
|
|
1156
1685
|
}
|
|
1157
1686
|
/** @internal */
|
|
1158
|
-
exports.
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
z.array(components.TextContentPartSchema$inboundSchema),
|
|
1163
|
-
]),
|
|
1164
|
-
tool_call_id: z.nullable(z.string()),
|
|
1165
|
-
cache_control: z.lazy(() => exports.UpdatePromptMessagesCacheControl$inboundSchema)
|
|
1166
|
-
.optional(),
|
|
1687
|
+
exports.UpdatePromptResponseFormat1$inboundSchema = z.object({
|
|
1688
|
+
type: exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema,
|
|
1689
|
+
display_name: z.string().optional(),
|
|
1690
|
+
json_schema: z.lazy(() => exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONJSONSchema$inboundSchema),
|
|
1167
1691
|
}).transform((v) => {
|
|
1168
1692
|
return (0, primitives_js_1.remap)(v, {
|
|
1169
|
-
"
|
|
1170
|
-
"
|
|
1693
|
+
"display_name": "displayName",
|
|
1694
|
+
"json_schema": "jsonSchema",
|
|
1171
1695
|
});
|
|
1172
1696
|
});
|
|
1173
1697
|
/** @internal */
|
|
1174
|
-
exports.
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
z.array(components.TextContentPartSchema$outboundSchema),
|
|
1179
|
-
]),
|
|
1180
|
-
toolCallId: z.nullable(z.string()),
|
|
1181
|
-
cacheControl: z.lazy(() => exports.UpdatePromptMessagesCacheControl$outboundSchema)
|
|
1182
|
-
.optional(),
|
|
1698
|
+
exports.UpdatePromptResponseFormat1$outboundSchema = z.object({
|
|
1699
|
+
type: exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$outboundSchema,
|
|
1700
|
+
displayName: z.string().optional(),
|
|
1701
|
+
jsonSchema: z.lazy(() => exports.UpdatePromptResponseFormatPromptsResponse200ApplicationJSONJSONSchema$outboundSchema),
|
|
1183
1702
|
}).transform((v) => {
|
|
1184
1703
|
return (0, primitives_js_1.remap)(v, {
|
|
1185
|
-
|
|
1186
|
-
|
|
1704
|
+
displayName: "display_name",
|
|
1705
|
+
jsonSchema: "json_schema",
|
|
1187
1706
|
});
|
|
1188
1707
|
});
|
|
1189
|
-
function
|
|
1190
|
-
return JSON.stringify(exports.
|
|
1708
|
+
function updatePromptResponseFormat1ToJSON(updatePromptResponseFormat1) {
|
|
1709
|
+
return JSON.stringify(exports.UpdatePromptResponseFormat1$outboundSchema.parse(updatePromptResponseFormat1));
|
|
1191
1710
|
}
|
|
1192
|
-
function
|
|
1193
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1711
|
+
function updatePromptResponseFormat1FromJSON(jsonString) {
|
|
1712
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptResponseFormat1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptResponseFormat1' from JSON`);
|
|
1194
1713
|
}
|
|
1195
1714
|
/** @internal */
|
|
1196
|
-
exports.
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1715
|
+
exports.UpdatePromptPromptsResponseResponseFormat$inboundSchema = z.union([
|
|
1716
|
+
z.lazy(() => exports.UpdatePromptResponseFormat1$inboundSchema),
|
|
1717
|
+
z.lazy(() => exports.UpdatePromptResponseFormat2$inboundSchema),
|
|
1718
|
+
z.lazy(() => exports.UpdatePromptResponseFormat3$inboundSchema),
|
|
1719
|
+
exports.UpdatePromptResponseFormat4$inboundSchema,
|
|
1720
|
+
exports.UpdatePromptResponseFormat5$inboundSchema,
|
|
1721
|
+
exports.UpdatePromptResponseFormat6$inboundSchema,
|
|
1201
1722
|
]);
|
|
1202
1723
|
/** @internal */
|
|
1203
|
-
exports.
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1724
|
+
exports.UpdatePromptPromptsResponseResponseFormat$outboundSchema = z.union([
|
|
1725
|
+
z.lazy(() => exports.UpdatePromptResponseFormat1$outboundSchema),
|
|
1726
|
+
z.lazy(() => exports.UpdatePromptResponseFormat2$outboundSchema),
|
|
1727
|
+
z.lazy(() => exports.UpdatePromptResponseFormat3$outboundSchema),
|
|
1728
|
+
exports.UpdatePromptResponseFormat4$outboundSchema,
|
|
1729
|
+
exports.UpdatePromptResponseFormat5$outboundSchema,
|
|
1730
|
+
exports.UpdatePromptResponseFormat6$outboundSchema,
|
|
1208
1731
|
]);
|
|
1209
|
-
function
|
|
1210
|
-
return JSON.stringify(exports.
|
|
1732
|
+
function updatePromptPromptsResponseResponseFormatToJSON(updatePromptPromptsResponseResponseFormat) {
|
|
1733
|
+
return JSON.stringify(exports.UpdatePromptPromptsResponseResponseFormat$outboundSchema.parse(updatePromptPromptsResponseResponseFormat));
|
|
1211
1734
|
}
|
|
1212
|
-
function
|
|
1213
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1735
|
+
function updatePromptPromptsResponseResponseFormatFromJSON(jsonString) {
|
|
1736
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptPromptsResponseResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptPromptsResponseResponseFormat' from JSON`);
|
|
1214
1737
|
}
|
|
1215
1738
|
/** @internal */
|
|
1216
|
-
exports.
|
|
1217
|
-
z.string(),
|
|
1218
|
-
z.array(z.union([
|
|
1219
|
-
components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1220
|
-
components.RefusalPartSchema$inboundSchema,
|
|
1221
|
-
components.ReasoningPartSchema$inboundSchema,
|
|
1222
|
-
components.RedactedReasoningPartSchema$inboundSchema,
|
|
1223
|
-
])),
|
|
1224
|
-
]);
|
|
1739
|
+
exports.UpdatePromptPhotoRealVersion$inboundSchema = z.nativeEnum(exports.UpdatePromptPhotoRealVersion);
|
|
1225
1740
|
/** @internal */
|
|
1226
|
-
exports.
|
|
1227
|
-
z.string(),
|
|
1228
|
-
z.array(z.union([
|
|
1229
|
-
components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1230
|
-
components.RefusalPartSchema$outboundSchema,
|
|
1231
|
-
components.ReasoningPartSchema$outboundSchema,
|
|
1232
|
-
components.RedactedReasoningPartSchema$outboundSchema,
|
|
1233
|
-
])),
|
|
1234
|
-
]);
|
|
1235
|
-
function updatePromptMessagesPromptsRequestContentToJSON(updatePromptMessagesPromptsRequestContent) {
|
|
1236
|
-
return JSON.stringify(exports.UpdatePromptMessagesPromptsRequestContent$outboundSchema.parse(updatePromptMessagesPromptsRequestContent));
|
|
1237
|
-
}
|
|
1238
|
-
function updatePromptMessagesPromptsRequestContentFromJSON(jsonString) {
|
|
1239
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptMessagesPromptsRequestContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptMessagesPromptsRequestContent' from JSON`);
|
|
1240
|
-
}
|
|
1741
|
+
exports.UpdatePromptPhotoRealVersion$outboundSchema = exports.UpdatePromptPhotoRealVersion$inboundSchema;
|
|
1241
1742
|
/** @internal */
|
|
1242
|
-
exports.
|
|
1243
|
-
id: z.string(),
|
|
1244
|
-
});
|
|
1743
|
+
exports.UpdatePromptEncodingFormat$inboundSchema = z.nativeEnum(exports.UpdatePromptEncodingFormat);
|
|
1245
1744
|
/** @internal */
|
|
1246
|
-
exports.
|
|
1247
|
-
id: z.string(),
|
|
1248
|
-
});
|
|
1249
|
-
function updatePromptMessagesAudioToJSON(updatePromptMessagesAudio) {
|
|
1250
|
-
return JSON.stringify(exports.UpdatePromptMessagesAudio$outboundSchema.parse(updatePromptMessagesAudio));
|
|
1251
|
-
}
|
|
1252
|
-
function updatePromptMessagesAudioFromJSON(jsonString) {
|
|
1253
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptMessagesAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptMessagesAudio' from JSON`);
|
|
1254
|
-
}
|
|
1745
|
+
exports.UpdatePromptEncodingFormat$outboundSchema = exports.UpdatePromptEncodingFormat$inboundSchema;
|
|
1255
1746
|
/** @internal */
|
|
1256
|
-
exports.
|
|
1747
|
+
exports.UpdatePromptPromptsResponseReasoningEffort$inboundSchema = z
|
|
1748
|
+
.nativeEnum(exports.UpdatePromptPromptsResponseReasoningEffort);
|
|
1257
1749
|
/** @internal */
|
|
1258
|
-
exports.
|
|
1750
|
+
exports.UpdatePromptPromptsResponseReasoningEffort$outboundSchema = exports.UpdatePromptPromptsResponseReasoningEffort$inboundSchema;
|
|
1259
1751
|
/** @internal */
|
|
1260
|
-
exports.
|
|
1261
|
-
name: z.string().optional(),
|
|
1262
|
-
arguments: z.string().optional(),
|
|
1263
|
-
});
|
|
1752
|
+
exports.UpdatePromptVerbosity$inboundSchema = z.nativeEnum(exports.UpdatePromptVerbosity);
|
|
1264
1753
|
/** @internal */
|
|
1265
|
-
exports.
|
|
1266
|
-
name: z.string().optional(),
|
|
1267
|
-
arguments: z.string().optional(),
|
|
1268
|
-
});
|
|
1269
|
-
function updatePromptMessagesFunctionToJSON(updatePromptMessagesFunction) {
|
|
1270
|
-
return JSON.stringify(exports.UpdatePromptMessagesFunction$outboundSchema.parse(updatePromptMessagesFunction));
|
|
1271
|
-
}
|
|
1272
|
-
function updatePromptMessagesFunctionFromJSON(jsonString) {
|
|
1273
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptMessagesFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptMessagesFunction' from JSON`);
|
|
1274
|
-
}
|
|
1754
|
+
exports.UpdatePromptVerbosity$outboundSchema = exports.UpdatePromptVerbosity$inboundSchema;
|
|
1275
1755
|
/** @internal */
|
|
1276
|
-
exports.
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1756
|
+
exports.UpdatePromptThinkingLevel$inboundSchema = z.nativeEnum(exports.UpdatePromptThinkingLevel);
|
|
1757
|
+
/** @internal */
|
|
1758
|
+
exports.UpdatePromptThinkingLevel$outboundSchema = exports.UpdatePromptThinkingLevel$inboundSchema;
|
|
1759
|
+
/** @internal */
|
|
1760
|
+
exports.UpdatePromptModelParameters$inboundSchema = z.object({
|
|
1761
|
+
temperature: z.number().optional(),
|
|
1762
|
+
maxTokens: z.number().optional(),
|
|
1763
|
+
topK: z.number().optional(),
|
|
1764
|
+
topP: z.number().optional(),
|
|
1765
|
+
frequencyPenalty: z.number().optional(),
|
|
1766
|
+
presencePenalty: z.number().optional(),
|
|
1767
|
+
numImages: z.number().optional(),
|
|
1768
|
+
seed: z.number().optional(),
|
|
1769
|
+
format: exports.UpdatePromptPromptsFormat$inboundSchema.optional(),
|
|
1770
|
+
dimensions: z.string().optional(),
|
|
1771
|
+
quality: z.string().optional(),
|
|
1772
|
+
style: z.string().optional(),
|
|
1773
|
+
responseFormat: z.nullable(z.union([
|
|
1774
|
+
z.lazy(() => exports.UpdatePromptResponseFormat1$inboundSchema),
|
|
1775
|
+
z.lazy(() => exports.UpdatePromptResponseFormat2$inboundSchema),
|
|
1776
|
+
z.lazy(() => exports.UpdatePromptResponseFormat3$inboundSchema),
|
|
1777
|
+
exports.UpdatePromptResponseFormat4$inboundSchema,
|
|
1778
|
+
exports.UpdatePromptResponseFormat5$inboundSchema,
|
|
1779
|
+
exports.UpdatePromptResponseFormat6$inboundSchema,
|
|
1780
|
+
])).optional(),
|
|
1781
|
+
photoRealVersion: exports.UpdatePromptPhotoRealVersion$inboundSchema.optional(),
|
|
1782
|
+
encoding_format: exports.UpdatePromptEncodingFormat$inboundSchema.optional(),
|
|
1783
|
+
reasoningEffort: exports.UpdatePromptPromptsResponseReasoningEffort$inboundSchema
|
|
1784
|
+
.optional(),
|
|
1785
|
+
budgetTokens: z.number().optional(),
|
|
1786
|
+
verbosity: exports.UpdatePromptVerbosity$inboundSchema.optional(),
|
|
1787
|
+
thinkingLevel: exports.UpdatePromptThinkingLevel$inboundSchema.optional(),
|
|
1281
1788
|
}).transform((v) => {
|
|
1282
1789
|
return (0, primitives_js_1.remap)(v, {
|
|
1283
|
-
"
|
|
1790
|
+
"encoding_format": "encodingFormat",
|
|
1284
1791
|
});
|
|
1285
1792
|
});
|
|
1286
1793
|
/** @internal */
|
|
1287
|
-
exports.
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1794
|
+
exports.UpdatePromptModelParameters$outboundSchema = z.object({
|
|
1795
|
+
temperature: z.number().optional(),
|
|
1796
|
+
maxTokens: z.number().optional(),
|
|
1797
|
+
topK: z.number().optional(),
|
|
1798
|
+
topP: z.number().optional(),
|
|
1799
|
+
frequencyPenalty: z.number().optional(),
|
|
1800
|
+
presencePenalty: z.number().optional(),
|
|
1801
|
+
numImages: z.number().optional(),
|
|
1802
|
+
seed: z.number().optional(),
|
|
1803
|
+
format: exports.UpdatePromptPromptsFormat$outboundSchema.optional(),
|
|
1804
|
+
dimensions: z.string().optional(),
|
|
1805
|
+
quality: z.string().optional(),
|
|
1806
|
+
style: z.string().optional(),
|
|
1807
|
+
responseFormat: z.nullable(z.union([
|
|
1808
|
+
z.lazy(() => exports.UpdatePromptResponseFormat1$outboundSchema),
|
|
1809
|
+
z.lazy(() => exports.UpdatePromptResponseFormat2$outboundSchema),
|
|
1810
|
+
z.lazy(() => exports.UpdatePromptResponseFormat3$outboundSchema),
|
|
1811
|
+
exports.UpdatePromptResponseFormat4$outboundSchema,
|
|
1812
|
+
exports.UpdatePromptResponseFormat5$outboundSchema,
|
|
1813
|
+
exports.UpdatePromptResponseFormat6$outboundSchema,
|
|
1814
|
+
])).optional(),
|
|
1815
|
+
photoRealVersion: exports.UpdatePromptPhotoRealVersion$outboundSchema.optional(),
|
|
1816
|
+
encodingFormat: exports.UpdatePromptEncodingFormat$outboundSchema.optional(),
|
|
1817
|
+
reasoningEffort: exports.UpdatePromptPromptsResponseReasoningEffort$outboundSchema
|
|
1818
|
+
.optional(),
|
|
1819
|
+
budgetTokens: z.number().optional(),
|
|
1820
|
+
verbosity: exports.UpdatePromptVerbosity$outboundSchema.optional(),
|
|
1821
|
+
thinkingLevel: exports.UpdatePromptThinkingLevel$outboundSchema.optional(),
|
|
1292
1822
|
}).transform((v) => {
|
|
1293
1823
|
return (0, primitives_js_1.remap)(v, {
|
|
1294
|
-
|
|
1824
|
+
encodingFormat: "encoding_format",
|
|
1295
1825
|
});
|
|
1296
1826
|
});
|
|
1297
|
-
function
|
|
1298
|
-
return JSON.stringify(exports.
|
|
1827
|
+
function updatePromptModelParametersToJSON(updatePromptModelParameters) {
|
|
1828
|
+
return JSON.stringify(exports.UpdatePromptModelParameters$outboundSchema.parse(updatePromptModelParameters));
|
|
1299
1829
|
}
|
|
1300
|
-
function
|
|
1301
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1830
|
+
function updatePromptModelParametersFromJSON(jsonString) {
|
|
1831
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptModelParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptModelParameters' from JSON`);
|
|
1302
1832
|
}
|
|
1303
1833
|
/** @internal */
|
|
1304
|
-
exports.
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
audio: z.nullable(z.lazy(() => exports.UpdatePromptMessagesAudio$inboundSchema))
|
|
1318
|
-
.optional(),
|
|
1319
|
-
tool_calls: z.array(z.lazy(() => exports.UpdatePromptMessagesToolCalls$inboundSchema))
|
|
1320
|
-
.optional(),
|
|
1834
|
+
exports.UpdatePromptProvider$inboundSchema = z.nativeEnum(exports.UpdatePromptProvider);
|
|
1835
|
+
/** @internal */
|
|
1836
|
+
exports.UpdatePromptProvider$outboundSchema = exports.UpdatePromptProvider$inboundSchema;
|
|
1837
|
+
/** @internal */
|
|
1838
|
+
exports.UpdatePromptRole$inboundSchema = z.nativeEnum(exports.UpdatePromptRole);
|
|
1839
|
+
/** @internal */
|
|
1840
|
+
exports.UpdatePromptRole$outboundSchema = exports.UpdatePromptRole$inboundSchema;
|
|
1841
|
+
/** @internal */
|
|
1842
|
+
exports.UpdatePrompt2File$inboundSchema = z.object({
|
|
1843
|
+
file_data: z.string().optional(),
|
|
1844
|
+
uri: z.string().optional(),
|
|
1845
|
+
mimeType: z.string().optional(),
|
|
1846
|
+
filename: z.string().optional(),
|
|
1321
1847
|
}).transform((v) => {
|
|
1322
1848
|
return (0, primitives_js_1.remap)(v, {
|
|
1323
|
-
"
|
|
1849
|
+
"file_data": "fileData",
|
|
1324
1850
|
});
|
|
1325
1851
|
});
|
|
1326
1852
|
/** @internal */
|
|
1327
|
-
exports.
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
components.RefusalPartSchema$outboundSchema,
|
|
1333
|
-
components.ReasoningPartSchema$outboundSchema,
|
|
1334
|
-
components.RedactedReasoningPartSchema$outboundSchema,
|
|
1335
|
-
])),
|
|
1336
|
-
])).optional(),
|
|
1337
|
-
refusal: z.nullable(z.string()).optional(),
|
|
1338
|
-
role: z.literal("assistant"),
|
|
1339
|
-
name: z.string().optional(),
|
|
1340
|
-
audio: z.nullable(z.lazy(() => exports.UpdatePromptMessagesAudio$outboundSchema))
|
|
1341
|
-
.optional(),
|
|
1342
|
-
toolCalls: z.array(z.lazy(() => exports.UpdatePromptMessagesToolCalls$outboundSchema))
|
|
1343
|
-
.optional(),
|
|
1853
|
+
exports.UpdatePrompt2File$outboundSchema = z.object({
|
|
1854
|
+
fileData: z.string().optional(),
|
|
1855
|
+
uri: z.string().optional(),
|
|
1856
|
+
mimeType: z.string().optional(),
|
|
1857
|
+
filename: z.string().optional(),
|
|
1344
1858
|
}).transform((v) => {
|
|
1345
1859
|
return (0, primitives_js_1.remap)(v, {
|
|
1346
|
-
|
|
1860
|
+
fileData: "file_data",
|
|
1347
1861
|
});
|
|
1348
1862
|
});
|
|
1349
|
-
function
|
|
1350
|
-
return JSON.stringify(exports.
|
|
1863
|
+
function updatePrompt2FileToJSON(updatePrompt2File) {
|
|
1864
|
+
return JSON.stringify(exports.UpdatePrompt2File$outboundSchema.parse(updatePrompt2File));
|
|
1351
1865
|
}
|
|
1352
|
-
function
|
|
1353
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1866
|
+
function updatePrompt2FileFromJSON(jsonString) {
|
|
1867
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePrompt2File$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePrompt2File' from JSON`);
|
|
1354
1868
|
}
|
|
1355
1869
|
/** @internal */
|
|
1356
|
-
exports.
|
|
1357
|
-
.
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
/** @internal */
|
|
1361
|
-
exports.UpdatePrompt2Ttl$inboundSchema = z.nativeEnum(exports.UpdatePrompt2Ttl);
|
|
1870
|
+
exports.UpdatePrompt23$inboundSchema = z.object({
|
|
1871
|
+
type: z.literal("file"),
|
|
1872
|
+
file: z.lazy(() => exports.UpdatePrompt2File$inboundSchema),
|
|
1873
|
+
});
|
|
1362
1874
|
/** @internal */
|
|
1363
|
-
exports.
|
|
1875
|
+
exports.UpdatePrompt23$outboundSchema = z.object({
|
|
1876
|
+
type: z.literal("file"),
|
|
1877
|
+
file: z.lazy(() => exports.UpdatePrompt2File$outboundSchema),
|
|
1878
|
+
});
|
|
1879
|
+
function updatePrompt23ToJSON(updatePrompt23) {
|
|
1880
|
+
return JSON.stringify(exports.UpdatePrompt23$outboundSchema.parse(updatePrompt23));
|
|
1881
|
+
}
|
|
1882
|
+
function updatePrompt23FromJSON(jsonString) {
|
|
1883
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePrompt23$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePrompt23' from JSON`);
|
|
1884
|
+
}
|
|
1364
1885
|
/** @internal */
|
|
1365
|
-
exports.
|
|
1366
|
-
|
|
1367
|
-
|
|
1886
|
+
exports.UpdatePrompt2ImageUrl$inboundSchema = z.object({
|
|
1887
|
+
id: z.string().optional(),
|
|
1888
|
+
url: z.string(),
|
|
1889
|
+
detail: z.string().optional(),
|
|
1368
1890
|
});
|
|
1369
1891
|
/** @internal */
|
|
1370
|
-
exports.
|
|
1371
|
-
|
|
1372
|
-
|
|
1892
|
+
exports.UpdatePrompt2ImageUrl$outboundSchema = z.object({
|
|
1893
|
+
id: z.string().optional(),
|
|
1894
|
+
url: z.string(),
|
|
1895
|
+
detail: z.string().optional(),
|
|
1373
1896
|
});
|
|
1374
|
-
function
|
|
1375
|
-
return JSON.stringify(exports.
|
|
1897
|
+
function updatePrompt2ImageUrlToJSON(updatePrompt2ImageUrl) {
|
|
1898
|
+
return JSON.stringify(exports.UpdatePrompt2ImageUrl$outboundSchema.parse(updatePrompt2ImageUrl));
|
|
1376
1899
|
}
|
|
1377
|
-
function
|
|
1378
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1900
|
+
function updatePrompt2ImageUrlFromJSON(jsonString) {
|
|
1901
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePrompt2ImageUrl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePrompt2ImageUrl' from JSON`);
|
|
1379
1902
|
}
|
|
1380
1903
|
/** @internal */
|
|
1381
|
-
exports.
|
|
1382
|
-
type: z.literal("
|
|
1383
|
-
|
|
1384
|
-
.optional(),
|
|
1385
|
-
file: components.FileContentPartSchema$inboundSchema,
|
|
1904
|
+
exports.UpdatePrompt22$inboundSchema = z.object({
|
|
1905
|
+
type: z.literal("image_url"),
|
|
1906
|
+
image_url: z.lazy(() => exports.UpdatePrompt2ImageUrl$inboundSchema),
|
|
1386
1907
|
}).transform((v) => {
|
|
1387
1908
|
return (0, primitives_js_1.remap)(v, {
|
|
1388
|
-
"
|
|
1909
|
+
"image_url": "imageUrl",
|
|
1389
1910
|
});
|
|
1390
1911
|
});
|
|
1391
1912
|
/** @internal */
|
|
1392
|
-
exports.
|
|
1393
|
-
type: z.literal("
|
|
1394
|
-
|
|
1395
|
-
.optional(),
|
|
1396
|
-
file: components.FileContentPartSchema$outboundSchema,
|
|
1913
|
+
exports.UpdatePrompt22$outboundSchema = z.object({
|
|
1914
|
+
type: z.literal("image_url"),
|
|
1915
|
+
imageUrl: z.lazy(() => exports.UpdatePrompt2ImageUrl$outboundSchema),
|
|
1397
1916
|
}).transform((v) => {
|
|
1398
1917
|
return (0, primitives_js_1.remap)(v, {
|
|
1399
|
-
|
|
1918
|
+
imageUrl: "image_url",
|
|
1400
1919
|
});
|
|
1401
1920
|
});
|
|
1402
|
-
function
|
|
1403
|
-
return JSON.stringify(exports.
|
|
1921
|
+
function updatePrompt22ToJSON(updatePrompt22) {
|
|
1922
|
+
return JSON.stringify(exports.UpdatePrompt22$outboundSchema.parse(updatePrompt22));
|
|
1404
1923
|
}
|
|
1405
|
-
function
|
|
1406
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1924
|
+
function updatePrompt22FromJSON(jsonString) {
|
|
1925
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePrompt22$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePrompt22' from JSON`);
|
|
1407
1926
|
}
|
|
1408
1927
|
/** @internal */
|
|
1409
|
-
exports.
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
z.lazy(() => exports.UpdatePrompt24$inboundSchema),
|
|
1414
|
-
]);
|
|
1928
|
+
exports.UpdatePrompt21$inboundSchema = z.object({
|
|
1929
|
+
type: z.literal("text"),
|
|
1930
|
+
text: z.string(),
|
|
1931
|
+
});
|
|
1415
1932
|
/** @internal */
|
|
1416
|
-
exports.
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
function updatePromptContentPrompts2ToJSON(updatePromptContentPrompts2) {
|
|
1423
|
-
return JSON.stringify(exports.UpdatePromptContentPrompts2$outboundSchema.parse(updatePromptContentPrompts2));
|
|
1933
|
+
exports.UpdatePrompt21$outboundSchema = z.object({
|
|
1934
|
+
type: z.literal("text"),
|
|
1935
|
+
text: z.string(),
|
|
1936
|
+
});
|
|
1937
|
+
function updatePrompt21ToJSON(updatePrompt21) {
|
|
1938
|
+
return JSON.stringify(exports.UpdatePrompt21$outboundSchema.parse(updatePrompt21));
|
|
1424
1939
|
}
|
|
1425
|
-
function
|
|
1426
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1940
|
+
function updatePrompt21FromJSON(jsonString) {
|
|
1941
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePrompt21$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePrompt21' from JSON`);
|
|
1427
1942
|
}
|
|
1428
1943
|
/** @internal */
|
|
1429
|
-
exports.
|
|
1430
|
-
z.
|
|
1431
|
-
z.
|
|
1432
|
-
|
|
1433
|
-
components.ImageContentPartSchema$inboundSchema,
|
|
1434
|
-
components.AudioContentPartSchema$inboundSchema,
|
|
1435
|
-
z.lazy(() => exports.UpdatePrompt24$inboundSchema),
|
|
1436
|
-
])),
|
|
1944
|
+
exports.UpdatePromptContentPromptsResponse2$inboundSchema = z.union([
|
|
1945
|
+
z.lazy(() => exports.UpdatePrompt21$inboundSchema),
|
|
1946
|
+
z.lazy(() => exports.UpdatePrompt22$inboundSchema),
|
|
1947
|
+
z.lazy(() => exports.UpdatePrompt23$inboundSchema),
|
|
1437
1948
|
]);
|
|
1438
1949
|
/** @internal */
|
|
1439
|
-
exports.
|
|
1440
|
-
z.
|
|
1441
|
-
z.
|
|
1442
|
-
|
|
1443
|
-
components.ImageContentPartSchema$outboundSchema,
|
|
1444
|
-
components.AudioContentPartSchema$outboundSchema,
|
|
1445
|
-
z.lazy(() => exports.UpdatePrompt24$outboundSchema),
|
|
1446
|
-
])),
|
|
1950
|
+
exports.UpdatePromptContentPromptsResponse2$outboundSchema = z.union([
|
|
1951
|
+
z.lazy(() => exports.UpdatePrompt21$outboundSchema),
|
|
1952
|
+
z.lazy(() => exports.UpdatePrompt22$outboundSchema),
|
|
1953
|
+
z.lazy(() => exports.UpdatePrompt23$outboundSchema),
|
|
1447
1954
|
]);
|
|
1448
|
-
function
|
|
1449
|
-
return JSON.stringify(exports.
|
|
1450
|
-
}
|
|
1451
|
-
function updatePromptMessagesPromptsContentFromJSON(jsonString) {
|
|
1452
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptMessagesPromptsContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptMessagesPromptsContent' from JSON`);
|
|
1453
|
-
}
|
|
1454
|
-
/** @internal */
|
|
1455
|
-
exports.UpdatePromptMessagesUserMessage$inboundSchema = z.object({
|
|
1456
|
-
role: z.literal("user"),
|
|
1457
|
-
name: z.string().optional(),
|
|
1458
|
-
content: z.union([
|
|
1459
|
-
z.string(),
|
|
1460
|
-
z.array(z.union([
|
|
1461
|
-
components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1462
|
-
components.ImageContentPartSchema$inboundSchema,
|
|
1463
|
-
components.AudioContentPartSchema$inboundSchema,
|
|
1464
|
-
z.lazy(() => exports.UpdatePrompt24$inboundSchema),
|
|
1465
|
-
])),
|
|
1466
|
-
]),
|
|
1467
|
-
});
|
|
1468
|
-
/** @internal */
|
|
1469
|
-
exports.UpdatePromptMessagesUserMessage$outboundSchema = z.object({
|
|
1470
|
-
role: z.literal("user"),
|
|
1471
|
-
name: z.string().optional(),
|
|
1472
|
-
content: z.union([
|
|
1473
|
-
z.string(),
|
|
1474
|
-
z.array(z.union([
|
|
1475
|
-
components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1476
|
-
components.ImageContentPartSchema$outboundSchema,
|
|
1477
|
-
components.AudioContentPartSchema$outboundSchema,
|
|
1478
|
-
z.lazy(() => exports.UpdatePrompt24$outboundSchema),
|
|
1479
|
-
])),
|
|
1480
|
-
]),
|
|
1481
|
-
});
|
|
1482
|
-
function updatePromptMessagesUserMessageToJSON(updatePromptMessagesUserMessage) {
|
|
1483
|
-
return JSON.stringify(exports.UpdatePromptMessagesUserMessage$outboundSchema.parse(updatePromptMessagesUserMessage));
|
|
1955
|
+
function updatePromptContentPromptsResponse2ToJSON(updatePromptContentPromptsResponse2) {
|
|
1956
|
+
return JSON.stringify(exports.UpdatePromptContentPromptsResponse2$outboundSchema.parse(updatePromptContentPromptsResponse2));
|
|
1484
1957
|
}
|
|
1485
|
-
function
|
|
1486
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1958
|
+
function updatePromptContentPromptsResponse2FromJSON(jsonString) {
|
|
1959
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptContentPromptsResponse2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptContentPromptsResponse2' from JSON`);
|
|
1487
1960
|
}
|
|
1488
1961
|
/** @internal */
|
|
1489
|
-
exports.
|
|
1962
|
+
exports.UpdatePromptContent$inboundSchema = z.union([
|
|
1490
1963
|
z.string(),
|
|
1491
|
-
z.array(
|
|
1964
|
+
z.array(z.union([
|
|
1965
|
+
z.lazy(() => exports.UpdatePrompt21$inboundSchema),
|
|
1966
|
+
z.lazy(() => exports.UpdatePrompt22$inboundSchema),
|
|
1967
|
+
z.lazy(() => exports.UpdatePrompt23$inboundSchema),
|
|
1968
|
+
])),
|
|
1492
1969
|
]);
|
|
1493
1970
|
/** @internal */
|
|
1494
|
-
exports.
|
|
1971
|
+
exports.UpdatePromptContent$outboundSchema = z.union([
|
|
1495
1972
|
z.string(),
|
|
1496
|
-
z.array(
|
|
1973
|
+
z.array(z.union([
|
|
1974
|
+
z.lazy(() => exports.UpdatePrompt21$outboundSchema),
|
|
1975
|
+
z.lazy(() => exports.UpdatePrompt22$outboundSchema),
|
|
1976
|
+
z.lazy(() => exports.UpdatePrompt23$outboundSchema),
|
|
1977
|
+
])),
|
|
1497
1978
|
]);
|
|
1498
|
-
function
|
|
1499
|
-
return JSON.stringify(exports.
|
|
1979
|
+
function updatePromptContentToJSON(updatePromptContent) {
|
|
1980
|
+
return JSON.stringify(exports.UpdatePromptContent$outboundSchema.parse(updatePromptContent));
|
|
1500
1981
|
}
|
|
1501
|
-
function
|
|
1502
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1982
|
+
function updatePromptContentFromJSON(jsonString) {
|
|
1983
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptContent' from JSON`);
|
|
1503
1984
|
}
|
|
1504
1985
|
/** @internal */
|
|
1505
|
-
exports.
|
|
1506
|
-
role: z.literal("system"),
|
|
1507
|
-
content: z.union([
|
|
1508
|
-
z.string(),
|
|
1509
|
-
z.array(components.TextContentPartSchema$inboundSchema),
|
|
1510
|
-
]),
|
|
1511
|
-
name: z.string().optional(),
|
|
1512
|
-
});
|
|
1986
|
+
exports.UpdatePromptPromptsType$inboundSchema = z.nativeEnum(exports.UpdatePromptPromptsType);
|
|
1513
1987
|
/** @internal */
|
|
1514
|
-
exports.
|
|
1515
|
-
role: z.literal("system"),
|
|
1516
|
-
content: z.union([
|
|
1517
|
-
z.string(),
|
|
1518
|
-
z.array(components.TextContentPartSchema$outboundSchema),
|
|
1519
|
-
]),
|
|
1520
|
-
name: z.string().optional(),
|
|
1521
|
-
});
|
|
1522
|
-
function updatePromptMessagesSystemMessageToJSON(updatePromptMessagesSystemMessage) {
|
|
1523
|
-
return JSON.stringify(exports.UpdatePromptMessagesSystemMessage$outboundSchema.parse(updatePromptMessagesSystemMessage));
|
|
1524
|
-
}
|
|
1525
|
-
function updatePromptMessagesSystemMessageFromJSON(jsonString) {
|
|
1526
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptMessagesSystemMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptMessagesSystemMessage' from JSON`);
|
|
1527
|
-
}
|
|
1988
|
+
exports.UpdatePromptPromptsType$outboundSchema = exports.UpdatePromptPromptsType$inboundSchema;
|
|
1528
1989
|
/** @internal */
|
|
1529
|
-
exports.
|
|
1530
|
-
z.
|
|
1531
|
-
z.
|
|
1532
|
-
|
|
1533
|
-
z.lazy(() => exports.UpdatePromptMessagesToolMessage$inboundSchema),
|
|
1534
|
-
]);
|
|
1990
|
+
exports.UpdatePromptFunction$inboundSchema = z.object({
|
|
1991
|
+
name: z.string(),
|
|
1992
|
+
arguments: z.string(),
|
|
1993
|
+
});
|
|
1535
1994
|
/** @internal */
|
|
1536
|
-
exports.
|
|
1537
|
-
z.
|
|
1538
|
-
z.
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
function updatePromptPromptsMessagesToJSON(updatePromptPromptsMessages) {
|
|
1543
|
-
return JSON.stringify(exports.UpdatePromptPromptsMessages$outboundSchema.parse(updatePromptPromptsMessages));
|
|
1995
|
+
exports.UpdatePromptFunction$outboundSchema = z.object({
|
|
1996
|
+
name: z.string(),
|
|
1997
|
+
arguments: z.string(),
|
|
1998
|
+
});
|
|
1999
|
+
function updatePromptFunctionToJSON(updatePromptFunction) {
|
|
2000
|
+
return JSON.stringify(exports.UpdatePromptFunction$outboundSchema.parse(updatePromptFunction));
|
|
1544
2001
|
}
|
|
1545
|
-
function
|
|
1546
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
2002
|
+
function updatePromptFunctionFromJSON(jsonString) {
|
|
2003
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptFunction' from JSON`);
|
|
1547
2004
|
}
|
|
1548
2005
|
/** @internal */
|
|
1549
|
-
exports.
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
2006
|
+
exports.UpdatePromptToolCalls$inboundSchema = z.object({
|
|
2007
|
+
id: z.string().optional(),
|
|
2008
|
+
index: z.number().optional(),
|
|
2009
|
+
type: exports.UpdatePromptPromptsType$inboundSchema,
|
|
2010
|
+
function: z.lazy(() => exports.UpdatePromptFunction$inboundSchema),
|
|
1554
2011
|
});
|
|
1555
2012
|
/** @internal */
|
|
1556
|
-
exports.
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
2013
|
+
exports.UpdatePromptToolCalls$outboundSchema = z.object({
|
|
2014
|
+
id: z.string().optional(),
|
|
2015
|
+
index: z.number().optional(),
|
|
2016
|
+
type: exports.UpdatePromptPromptsType$outboundSchema,
|
|
2017
|
+
function: z.lazy(() => exports.UpdatePromptFunction$outboundSchema),
|
|
1561
2018
|
});
|
|
1562
|
-
function
|
|
1563
|
-
return JSON.stringify(exports.
|
|
2019
|
+
function updatePromptToolCallsToJSON(updatePromptToolCalls) {
|
|
2020
|
+
return JSON.stringify(exports.UpdatePromptToolCalls$outboundSchema.parse(updatePromptToolCalls));
|
|
1564
2021
|
}
|
|
1565
|
-
function
|
|
1566
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
2022
|
+
function updatePromptToolCallsFromJSON(jsonString) {
|
|
2023
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptToolCalls$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptToolCalls' from JSON`);
|
|
1567
2024
|
}
|
|
1568
2025
|
/** @internal */
|
|
1569
|
-
exports.
|
|
1570
|
-
|
|
1571
|
-
|
|
2026
|
+
exports.UpdatePromptPromptsMessages$inboundSchema = z.object({
|
|
2027
|
+
role: exports.UpdatePromptRole$inboundSchema,
|
|
2028
|
+
content: z.nullable(z.union([
|
|
2029
|
+
z.string(),
|
|
2030
|
+
z.array(z.union([
|
|
2031
|
+
z.lazy(() => exports.UpdatePrompt21$inboundSchema),
|
|
2032
|
+
z.lazy(() => exports.UpdatePrompt22$inboundSchema),
|
|
2033
|
+
z.lazy(() => exports.UpdatePrompt23$inboundSchema),
|
|
2034
|
+
])),
|
|
2035
|
+
])),
|
|
2036
|
+
tool_calls: z.array(z.lazy(() => exports.UpdatePromptToolCalls$inboundSchema))
|
|
2037
|
+
.optional(),
|
|
2038
|
+
tool_call_id: z.nullable(z.string()).optional(),
|
|
1572
2039
|
}).transform((v) => {
|
|
1573
2040
|
return (0, primitives_js_1.remap)(v, {
|
|
1574
|
-
"
|
|
2041
|
+
"tool_calls": "toolCalls",
|
|
2042
|
+
"tool_call_id": "toolCallId",
|
|
1575
2043
|
});
|
|
1576
2044
|
});
|
|
1577
2045
|
/** @internal */
|
|
1578
|
-
exports.
|
|
1579
|
-
|
|
1580
|
-
|
|
2046
|
+
exports.UpdatePromptPromptsMessages$outboundSchema = z.object({
|
|
2047
|
+
role: exports.UpdatePromptRole$outboundSchema,
|
|
2048
|
+
content: z.nullable(z.union([
|
|
2049
|
+
z.string(),
|
|
2050
|
+
z.array(z.union([
|
|
2051
|
+
z.lazy(() => exports.UpdatePrompt21$outboundSchema),
|
|
2052
|
+
z.lazy(() => exports.UpdatePrompt22$outboundSchema),
|
|
2053
|
+
z.lazy(() => exports.UpdatePrompt23$outboundSchema),
|
|
2054
|
+
])),
|
|
2055
|
+
])),
|
|
2056
|
+
toolCalls: z.array(z.lazy(() => exports.UpdatePromptToolCalls$outboundSchema))
|
|
2057
|
+
.optional(),
|
|
2058
|
+
toolCallId: z.nullable(z.string()).optional(),
|
|
1581
2059
|
}).transform((v) => {
|
|
1582
2060
|
return (0, primitives_js_1.remap)(v, {
|
|
1583
|
-
|
|
2061
|
+
toolCalls: "tool_calls",
|
|
2062
|
+
toolCallId: "tool_call_id",
|
|
1584
2063
|
});
|
|
1585
2064
|
});
|
|
1586
|
-
function
|
|
1587
|
-
return JSON.stringify(exports.
|
|
2065
|
+
function updatePromptPromptsMessagesToJSON(updatePromptPromptsMessages) {
|
|
2066
|
+
return JSON.stringify(exports.UpdatePromptPromptsMessages$outboundSchema.parse(updatePromptPromptsMessages));
|
|
1588
2067
|
}
|
|
1589
|
-
function
|
|
1590
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
2068
|
+
function updatePromptPromptsMessagesFromJSON(jsonString) {
|
|
2069
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptPromptsMessages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptPromptsMessages' from JSON`);
|
|
1591
2070
|
}
|
|
1592
2071
|
/** @internal */
|
|
1593
|
-
exports.
|
|
1594
|
-
|
|
2072
|
+
exports.UpdatePromptPromptConfig$inboundSchema = z.object({
|
|
2073
|
+
stream: z.boolean().optional(),
|
|
2074
|
+
model: z.nullable(z.string()).optional(),
|
|
2075
|
+
model_db_id: z.nullable(z.string()).optional(),
|
|
2076
|
+
model_type: z.nullable(exports.UpdatePromptModelType$inboundSchema).optional(),
|
|
2077
|
+
model_parameters: z.lazy(() => exports.UpdatePromptModelParameters$inboundSchema)
|
|
2078
|
+
.optional(),
|
|
2079
|
+
provider: z.nullable(exports.UpdatePromptProvider$inboundSchema).optional(),
|
|
2080
|
+
integration_id: z.nullable(z.string()).optional(),
|
|
2081
|
+
version: z.string().optional(),
|
|
2082
|
+
messages: z.array(z.lazy(() => exports.UpdatePromptPromptsMessages$inboundSchema)),
|
|
2083
|
+
}).transform((v) => {
|
|
2084
|
+
return (0, primitives_js_1.remap)(v, {
|
|
2085
|
+
"model_db_id": "modelDbId",
|
|
2086
|
+
"model_type": "modelType",
|
|
2087
|
+
"model_parameters": "modelParameters",
|
|
2088
|
+
"integration_id": "integrationId",
|
|
2089
|
+
});
|
|
1595
2090
|
});
|
|
1596
2091
|
/** @internal */
|
|
1597
|
-
exports.
|
|
1598
|
-
|
|
2092
|
+
exports.UpdatePromptPromptConfig$outboundSchema = z.object({
|
|
2093
|
+
stream: z.boolean().optional(),
|
|
2094
|
+
model: z.nullable(z.string()).optional(),
|
|
2095
|
+
modelDbId: z.nullable(z.string()).optional(),
|
|
2096
|
+
modelType: z.nullable(exports.UpdatePromptModelType$outboundSchema).optional(),
|
|
2097
|
+
modelParameters: z.lazy(() => exports.UpdatePromptModelParameters$outboundSchema)
|
|
2098
|
+
.optional(),
|
|
2099
|
+
provider: z.nullable(exports.UpdatePromptProvider$outboundSchema).optional(),
|
|
2100
|
+
integrationId: z.nullable(z.string()).optional(),
|
|
2101
|
+
version: z.string().optional(),
|
|
2102
|
+
messages: z.array(z.lazy(() => exports.UpdatePromptPromptsMessages$outboundSchema)),
|
|
2103
|
+
}).transform((v) => {
|
|
2104
|
+
return (0, primitives_js_1.remap)(v, {
|
|
2105
|
+
modelDbId: "model_db_id",
|
|
2106
|
+
modelType: "model_type",
|
|
2107
|
+
modelParameters: "model_parameters",
|
|
2108
|
+
integrationId: "integration_id",
|
|
2109
|
+
});
|
|
1599
2110
|
});
|
|
1600
|
-
function
|
|
1601
|
-
return JSON.stringify(exports.
|
|
2111
|
+
function updatePromptPromptConfigToJSON(updatePromptPromptConfig) {
|
|
2112
|
+
return JSON.stringify(exports.UpdatePromptPromptConfig$outboundSchema.parse(updatePromptPromptConfig));
|
|
1602
2113
|
}
|
|
1603
|
-
function
|
|
1604
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
2114
|
+
function updatePromptPromptConfigFromJSON(jsonString) {
|
|
2115
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptPromptConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptPromptConfig' from JSON`);
|
|
1605
2116
|
}
|
|
1606
2117
|
/** @internal */
|
|
1607
|
-
exports.
|
|
1608
|
-
type: z.literal("text"),
|
|
1609
|
-
});
|
|
2118
|
+
exports.UpdatePromptPromptsVoice$inboundSchema = z.nativeEnum(exports.UpdatePromptPromptsVoice);
|
|
1610
2119
|
/** @internal */
|
|
1611
|
-
exports.
|
|
1612
|
-
type: z.literal("text"),
|
|
1613
|
-
});
|
|
1614
|
-
function updatePromptResponseFormatTextToJSON(updatePromptResponseFormatText) {
|
|
1615
|
-
return JSON.stringify(exports.UpdatePromptResponseFormatText$outboundSchema.parse(updatePromptResponseFormatText));
|
|
1616
|
-
}
|
|
1617
|
-
function updatePromptResponseFormatTextFromJSON(jsonString) {
|
|
1618
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptResponseFormatText$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptResponseFormatText' from JSON`);
|
|
1619
|
-
}
|
|
2120
|
+
exports.UpdatePromptPromptsVoice$outboundSchema = exports.UpdatePromptPromptsVoice$inboundSchema;
|
|
1620
2121
|
/** @internal */
|
|
1621
|
-
exports.
|
|
1622
|
-
z.lazy(() => exports.UpdatePromptResponseFormatText$inboundSchema),
|
|
1623
|
-
z.lazy(() => exports.UpdatePromptResponseFormatJSONObject$inboundSchema),
|
|
1624
|
-
z.lazy(() => exports.UpdatePromptResponseFormatPromptsJSONSchema$inboundSchema),
|
|
1625
|
-
]);
|
|
2122
|
+
exports.UpdatePromptPromptsResponse200Format$inboundSchema = z.nativeEnum(exports.UpdatePromptPromptsResponse200Format);
|
|
1626
2123
|
/** @internal */
|
|
1627
|
-
exports.
|
|
1628
|
-
z.lazy(() => exports.UpdatePromptResponseFormatText$outboundSchema),
|
|
1629
|
-
z.lazy(() => exports.UpdatePromptResponseFormatJSONObject$outboundSchema),
|
|
1630
|
-
z.lazy(() => exports.UpdatePromptResponseFormatPromptsJSONSchema$outboundSchema),
|
|
1631
|
-
]);
|
|
1632
|
-
function updatePromptPromptsResponseFormatToJSON(updatePromptPromptsResponseFormat) {
|
|
1633
|
-
return JSON.stringify(exports.UpdatePromptPromptsResponseFormat$outboundSchema.parse(updatePromptPromptsResponseFormat));
|
|
1634
|
-
}
|
|
1635
|
-
function updatePromptPromptsResponseFormatFromJSON(jsonString) {
|
|
1636
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptPromptsResponseFormat' from JSON`);
|
|
1637
|
-
}
|
|
2124
|
+
exports.UpdatePromptPromptsResponse200Format$outboundSchema = exports.UpdatePromptPromptsResponse200Format$inboundSchema;
|
|
1638
2125
|
/** @internal */
|
|
1639
|
-
exports.
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
z.lazy(() => exports.UpdatePromptMessagesUserMessage$inboundSchema),
|
|
1643
|
-
z.lazy(() => exports.UpdatePromptMessagesAssistantMessage$inboundSchema),
|
|
1644
|
-
z.lazy(() => exports.UpdatePromptMessagesToolMessage$inboundSchema),
|
|
1645
|
-
])).optional(),
|
|
1646
|
-
model: z.string().optional(),
|
|
1647
|
-
is_private: z.boolean().default(false),
|
|
1648
|
-
temperature: z.nullable(z.number()).optional(),
|
|
1649
|
-
max_tokens: z.nullable(z.number().int()).optional(),
|
|
1650
|
-
response_format: z.union([
|
|
1651
|
-
z.lazy(() => exports.UpdatePromptResponseFormatText$inboundSchema),
|
|
1652
|
-
z.lazy(() => exports.UpdatePromptResponseFormatJSONObject$inboundSchema),
|
|
1653
|
-
z.lazy(() => exports.UpdatePromptResponseFormatPromptsJSONSchema$inboundSchema),
|
|
1654
|
-
]).optional(),
|
|
1655
|
-
}).transform((v) => {
|
|
1656
|
-
return (0, primitives_js_1.remap)(v, {
|
|
1657
|
-
"is_private": "isPrivate",
|
|
1658
|
-
"max_tokens": "maxTokens",
|
|
1659
|
-
"response_format": "responseFormat",
|
|
1660
|
-
});
|
|
2126
|
+
exports.UpdatePromptPromptsAudio$inboundSchema = z.object({
|
|
2127
|
+
voice: exports.UpdatePromptPromptsVoice$inboundSchema,
|
|
2128
|
+
format: exports.UpdatePromptPromptsResponse200Format$inboundSchema,
|
|
1661
2129
|
});
|
|
1662
2130
|
/** @internal */
|
|
1663
|
-
exports.
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
z.lazy(() => exports.UpdatePromptMessagesUserMessage$outboundSchema),
|
|
1667
|
-
z.lazy(() => exports.UpdatePromptMessagesAssistantMessage$outboundSchema),
|
|
1668
|
-
z.lazy(() => exports.UpdatePromptMessagesToolMessage$outboundSchema),
|
|
1669
|
-
])).optional(),
|
|
1670
|
-
model: z.string().optional(),
|
|
1671
|
-
isPrivate: z.boolean().default(false),
|
|
1672
|
-
temperature: z.nullable(z.number()).optional(),
|
|
1673
|
-
maxTokens: z.nullable(z.number().int()).optional(),
|
|
1674
|
-
responseFormat: z.union([
|
|
1675
|
-
z.lazy(() => exports.UpdatePromptResponseFormatText$outboundSchema),
|
|
1676
|
-
z.lazy(() => exports.UpdatePromptResponseFormatJSONObject$outboundSchema),
|
|
1677
|
-
z.lazy(() => exports.UpdatePromptResponseFormatPromptsJSONSchema$outboundSchema),
|
|
1678
|
-
]).optional(),
|
|
1679
|
-
}).transform((v) => {
|
|
1680
|
-
return (0, primitives_js_1.remap)(v, {
|
|
1681
|
-
isPrivate: "is_private",
|
|
1682
|
-
maxTokens: "max_tokens",
|
|
1683
|
-
responseFormat: "response_format",
|
|
1684
|
-
});
|
|
2131
|
+
exports.UpdatePromptPromptsAudio$outboundSchema = z.object({
|
|
2132
|
+
voice: exports.UpdatePromptPromptsVoice$outboundSchema,
|
|
2133
|
+
format: exports.UpdatePromptPromptsResponse200Format$outboundSchema,
|
|
1685
2134
|
});
|
|
1686
|
-
function
|
|
1687
|
-
return JSON.stringify(exports.
|
|
2135
|
+
function updatePromptPromptsAudioToJSON(updatePromptPromptsAudio) {
|
|
2136
|
+
return JSON.stringify(exports.UpdatePromptPromptsAudio$outboundSchema.parse(updatePromptPromptsAudio));
|
|
1688
2137
|
}
|
|
1689
|
-
function
|
|
1690
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
2138
|
+
function updatePromptPromptsAudioFromJSON(jsonString) {
|
|
2139
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptPromptsAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptPromptsAudio' from JSON`);
|
|
1691
2140
|
}
|
|
1692
2141
|
/** @internal */
|
|
1693
|
-
exports.
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
created_by_id: z.nullable(z.string()).optional(),
|
|
1699
|
-
updated_by_id: z.nullable(z.string()).optional(),
|
|
1700
|
-
display_name: z.string().optional(),
|
|
1701
|
-
description: z.nullable(z.string()).optional(),
|
|
1702
|
-
prompt_config: z.lazy(() => exports.PromptConfig$inboundSchema).optional(),
|
|
1703
|
-
metadata: z.lazy(() => exports.UpdatePromptMetadata$inboundSchema).optional(),
|
|
1704
|
-
path: z.string().optional(),
|
|
1705
|
-
prompt: z.lazy(() => exports.UpdatePromptPromptInput$inboundSchema).optional(),
|
|
1706
|
-
}).transform((v) => {
|
|
1707
|
-
return (0, primitives_js_1.remap)(v, {
|
|
1708
|
-
"domain_id": "domainId",
|
|
1709
|
-
"created_by_id": "createdById",
|
|
1710
|
-
"updated_by_id": "updatedById",
|
|
1711
|
-
"display_name": "displayName",
|
|
1712
|
-
"prompt_config": "promptConfig",
|
|
1713
|
-
});
|
|
2142
|
+
exports.UpdatePromptResponseFormatPromptsResponseJsonSchema$inboundSchema = z.object({
|
|
2143
|
+
description: z.string().optional(),
|
|
2144
|
+
name: z.string(),
|
|
2145
|
+
schema: z.any().optional(),
|
|
2146
|
+
strict: z.boolean().default(false),
|
|
1714
2147
|
});
|
|
1715
2148
|
/** @internal */
|
|
1716
|
-
exports.
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
createdById: z.nullable(z.string()).optional(),
|
|
1722
|
-
updatedById: z.nullable(z.string()).optional(),
|
|
1723
|
-
displayName: z.string().optional(),
|
|
1724
|
-
description: z.nullable(z.string()).optional(),
|
|
1725
|
-
promptConfig: z.lazy(() => exports.PromptConfig$outboundSchema).optional(),
|
|
1726
|
-
metadata: z.lazy(() => exports.UpdatePromptMetadata$outboundSchema).optional(),
|
|
1727
|
-
path: z.string().optional(),
|
|
1728
|
-
prompt: z.lazy(() => exports.UpdatePromptPromptInput$outboundSchema).optional(),
|
|
1729
|
-
}).transform((v) => {
|
|
1730
|
-
return (0, primitives_js_1.remap)(v, {
|
|
1731
|
-
domainId: "domain_id",
|
|
1732
|
-
createdById: "created_by_id",
|
|
1733
|
-
updatedById: "updated_by_id",
|
|
1734
|
-
displayName: "display_name",
|
|
1735
|
-
promptConfig: "prompt_config",
|
|
1736
|
-
});
|
|
2149
|
+
exports.UpdatePromptResponseFormatPromptsResponseJsonSchema$outboundSchema = z.object({
|
|
2150
|
+
description: z.string().optional(),
|
|
2151
|
+
name: z.string(),
|
|
2152
|
+
schema: z.any().optional(),
|
|
2153
|
+
strict: z.boolean().default(false),
|
|
1737
2154
|
});
|
|
1738
|
-
function
|
|
1739
|
-
return JSON.stringify(exports.
|
|
2155
|
+
function updatePromptResponseFormatPromptsResponseJsonSchemaToJSON(updatePromptResponseFormatPromptsResponseJsonSchema) {
|
|
2156
|
+
return JSON.stringify(exports.UpdatePromptResponseFormatPromptsResponseJsonSchema$outboundSchema.parse(updatePromptResponseFormatPromptsResponseJsonSchema));
|
|
1740
2157
|
}
|
|
1741
|
-
function
|
|
1742
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
2158
|
+
function updatePromptResponseFormatPromptsResponseJsonSchemaFromJSON(jsonString) {
|
|
2159
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptResponseFormatPromptsResponseJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptResponseFormatPromptsResponseJsonSchema' from JSON`);
|
|
1743
2160
|
}
|
|
1744
2161
|
/** @internal */
|
|
1745
|
-
exports.
|
|
1746
|
-
|
|
1747
|
-
|
|
2162
|
+
exports.UpdatePromptResponseFormatPromptsResponse200JSONSchema$inboundSchema = z.object({
|
|
2163
|
+
type: z.literal("json_schema"),
|
|
2164
|
+
json_schema: z.lazy(() => exports.UpdatePromptResponseFormatPromptsResponseJsonSchema$inboundSchema),
|
|
1748
2165
|
}).transform((v) => {
|
|
1749
2166
|
return (0, primitives_js_1.remap)(v, {
|
|
1750
|
-
"
|
|
2167
|
+
"json_schema": "jsonSchema",
|
|
1751
2168
|
});
|
|
1752
2169
|
});
|
|
1753
2170
|
/** @internal */
|
|
1754
|
-
exports.
|
|
1755
|
-
|
|
1756
|
-
|
|
2171
|
+
exports.UpdatePromptResponseFormatPromptsResponse200JSONSchema$outboundSchema = z.object({
|
|
2172
|
+
type: z.literal("json_schema"),
|
|
2173
|
+
jsonSchema: z.lazy(() => exports.UpdatePromptResponseFormatPromptsResponseJsonSchema$outboundSchema),
|
|
1757
2174
|
}).transform((v) => {
|
|
1758
2175
|
return (0, primitives_js_1.remap)(v, {
|
|
1759
|
-
|
|
2176
|
+
jsonSchema: "json_schema",
|
|
1760
2177
|
});
|
|
1761
2178
|
});
|
|
1762
|
-
function
|
|
1763
|
-
return JSON.stringify(exports.
|
|
2179
|
+
function updatePromptResponseFormatPromptsResponse200JSONSchemaToJSON(updatePromptResponseFormatPromptsResponse200JSONSchema) {
|
|
2180
|
+
return JSON.stringify(exports.UpdatePromptResponseFormatPromptsResponse200JSONSchema$outboundSchema.parse(updatePromptResponseFormatPromptsResponse200JSONSchema));
|
|
1764
2181
|
}
|
|
1765
|
-
function
|
|
1766
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
2182
|
+
function updatePromptResponseFormatPromptsResponse200JSONSchemaFromJSON(jsonString) {
|
|
2183
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptResponseFormatPromptsResponse200JSONSchema$inboundSchema
|
|
2184
|
+
.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptResponseFormatPromptsResponse200JSONSchema' from JSON`);
|
|
1767
2185
|
}
|
|
1768
2186
|
/** @internal */
|
|
1769
|
-
exports.
|
|
2187
|
+
exports.UpdatePromptResponseFormatPromptsJSONObject$inboundSchema = z.object({
|
|
2188
|
+
type: z.literal("json_object"),
|
|
2189
|
+
});
|
|
1770
2190
|
/** @internal */
|
|
1771
|
-
exports.
|
|
2191
|
+
exports.UpdatePromptResponseFormatPromptsJSONObject$outboundSchema = z.object({
|
|
2192
|
+
type: z.literal("json_object"),
|
|
2193
|
+
});
|
|
2194
|
+
function updatePromptResponseFormatPromptsJSONObjectToJSON(updatePromptResponseFormatPromptsJSONObject) {
|
|
2195
|
+
return JSON.stringify(exports.UpdatePromptResponseFormatPromptsJSONObject$outboundSchema.parse(updatePromptResponseFormatPromptsJSONObject));
|
|
2196
|
+
}
|
|
2197
|
+
function updatePromptResponseFormatPromptsJSONObjectFromJSON(jsonString) {
|
|
2198
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptResponseFormatPromptsJSONObject$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptResponseFormatPromptsJSONObject' from JSON`);
|
|
2199
|
+
}
|
|
1772
2200
|
/** @internal */
|
|
1773
|
-
exports.
|
|
2201
|
+
exports.UpdatePromptResponseFormatPromptsText$inboundSchema = z.object({
|
|
2202
|
+
type: z.literal("text"),
|
|
2203
|
+
});
|
|
1774
2204
|
/** @internal */
|
|
1775
|
-
exports.
|
|
2205
|
+
exports.UpdatePromptResponseFormatPromptsText$outboundSchema = z.object({
|
|
2206
|
+
type: z.literal("text"),
|
|
2207
|
+
});
|
|
2208
|
+
function updatePromptResponseFormatPromptsTextToJSON(updatePromptResponseFormatPromptsText) {
|
|
2209
|
+
return JSON.stringify(exports.UpdatePromptResponseFormatPromptsText$outboundSchema.parse(updatePromptResponseFormatPromptsText));
|
|
2210
|
+
}
|
|
2211
|
+
function updatePromptResponseFormatPromptsTextFromJSON(jsonString) {
|
|
2212
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptResponseFormatPromptsText$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptResponseFormatPromptsText' from JSON`);
|
|
2213
|
+
}
|
|
1776
2214
|
/** @internal */
|
|
1777
|
-
exports.
|
|
2215
|
+
exports.UpdatePromptPromptsResponseFormat$inboundSchema = z.union([
|
|
2216
|
+
z.lazy(() => exports.UpdatePromptResponseFormatPromptsText$inboundSchema),
|
|
2217
|
+
z.lazy(() => exports.UpdatePromptResponseFormatPromptsJSONObject$inboundSchema),
|
|
2218
|
+
z.lazy(() => exports.UpdatePromptResponseFormatPromptsResponse200JSONSchema$inboundSchema),
|
|
2219
|
+
]);
|
|
1778
2220
|
/** @internal */
|
|
1779
|
-
exports.
|
|
2221
|
+
exports.UpdatePromptPromptsResponseFormat$outboundSchema = z.union([
|
|
2222
|
+
z.lazy(() => exports.UpdatePromptResponseFormatPromptsText$outboundSchema),
|
|
2223
|
+
z.lazy(() => exports.UpdatePromptResponseFormatPromptsJSONObject$outboundSchema),
|
|
2224
|
+
z.lazy(() => exports.UpdatePromptResponseFormatPromptsResponse200JSONSchema$outboundSchema),
|
|
2225
|
+
]);
|
|
2226
|
+
function updatePromptPromptsResponseFormatToJSON(updatePromptPromptsResponseFormat) {
|
|
2227
|
+
return JSON.stringify(exports.UpdatePromptPromptsResponseFormat$outboundSchema.parse(updatePromptPromptsResponseFormat));
|
|
2228
|
+
}
|
|
2229
|
+
function updatePromptPromptsResponseFormatFromJSON(jsonString) {
|
|
2230
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptPromptsResponseFormat' from JSON`);
|
|
2231
|
+
}
|
|
1780
2232
|
/** @internal */
|
|
1781
|
-
exports.
|
|
2233
|
+
exports.UpdatePromptPromptsReasoningEffort$inboundSchema = z.nativeEnum(exports.UpdatePromptPromptsReasoningEffort);
|
|
1782
2234
|
/** @internal */
|
|
1783
|
-
exports.
|
|
2235
|
+
exports.UpdatePromptPromptsReasoningEffort$outboundSchema = exports.UpdatePromptPromptsReasoningEffort$inboundSchema;
|
|
1784
2236
|
/** @internal */
|
|
1785
|
-
exports.
|
|
2237
|
+
exports.UpdatePromptPromptsStop$inboundSchema = z.union([z.string(), z.array(z.string())]);
|
|
1786
2238
|
/** @internal */
|
|
1787
|
-
exports.
|
|
2239
|
+
exports.UpdatePromptPromptsStop$outboundSchema = z.union([z.string(), z.array(z.string())]);
|
|
2240
|
+
function updatePromptPromptsStopToJSON(updatePromptPromptsStop) {
|
|
2241
|
+
return JSON.stringify(exports.UpdatePromptPromptsStop$outboundSchema.parse(updatePromptPromptsStop));
|
|
2242
|
+
}
|
|
2243
|
+
function updatePromptPromptsStopFromJSON(jsonString) {
|
|
2244
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptPromptsStop$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptPromptsStop' from JSON`);
|
|
2245
|
+
}
|
|
2246
|
+
/** @internal */
|
|
2247
|
+
exports.UpdatePromptPromptsStreamOptions$inboundSchema = z.object({
|
|
2248
|
+
include_usage: z.boolean().optional(),
|
|
2249
|
+
}).transform((v) => {
|
|
2250
|
+
return (0, primitives_js_1.remap)(v, {
|
|
2251
|
+
"include_usage": "includeUsage",
|
|
2252
|
+
});
|
|
2253
|
+
});
|
|
1788
2254
|
/** @internal */
|
|
1789
|
-
exports.
|
|
2255
|
+
exports.UpdatePromptPromptsStreamOptions$outboundSchema = z.object({
|
|
2256
|
+
includeUsage: z.boolean().optional(),
|
|
2257
|
+
}).transform((v) => {
|
|
2258
|
+
return (0, primitives_js_1.remap)(v, {
|
|
2259
|
+
includeUsage: "include_usage",
|
|
2260
|
+
});
|
|
2261
|
+
});
|
|
2262
|
+
function updatePromptPromptsStreamOptionsToJSON(updatePromptPromptsStreamOptions) {
|
|
2263
|
+
return JSON.stringify(exports.UpdatePromptPromptsStreamOptions$outboundSchema.parse(updatePromptPromptsStreamOptions));
|
|
2264
|
+
}
|
|
2265
|
+
function updatePromptPromptsStreamOptionsFromJSON(jsonString) {
|
|
2266
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptPromptsStreamOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptPromptsStreamOptions' from JSON`);
|
|
2267
|
+
}
|
|
2268
|
+
/** @internal */
|
|
2269
|
+
exports.UpdatePromptPromptsThinking$inboundSchema = z.union([
|
|
2270
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
2271
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
2272
|
+
]);
|
|
1790
2273
|
/** @internal */
|
|
1791
|
-
exports.
|
|
2274
|
+
exports.UpdatePromptPromptsThinking$outboundSchema = z.union([
|
|
2275
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
2276
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
2277
|
+
]);
|
|
2278
|
+
function updatePromptPromptsThinkingToJSON(updatePromptPromptsThinking) {
|
|
2279
|
+
return JSON.stringify(exports.UpdatePromptPromptsThinking$outboundSchema.parse(updatePromptPromptsThinking));
|
|
2280
|
+
}
|
|
2281
|
+
function updatePromptPromptsThinkingFromJSON(jsonString) {
|
|
2282
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptPromptsThinking$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptPromptsThinking' from JSON`);
|
|
2283
|
+
}
|
|
1792
2284
|
/** @internal */
|
|
1793
|
-
exports.
|
|
2285
|
+
exports.UpdatePromptToolChoicePromptsType$inboundSchema = z.nativeEnum(exports.UpdatePromptToolChoicePromptsType);
|
|
1794
2286
|
/** @internal */
|
|
1795
|
-
exports.
|
|
2287
|
+
exports.UpdatePromptToolChoicePromptsType$outboundSchema = exports.UpdatePromptToolChoicePromptsType$inboundSchema;
|
|
1796
2288
|
/** @internal */
|
|
1797
|
-
exports.
|
|
1798
|
-
|
|
2289
|
+
exports.UpdatePromptToolChoicePromptsFunction$inboundSchema = z.object({
|
|
2290
|
+
name: z.string(),
|
|
1799
2291
|
});
|
|
1800
2292
|
/** @internal */
|
|
1801
|
-
exports.
|
|
1802
|
-
|
|
2293
|
+
exports.UpdatePromptToolChoicePromptsFunction$outboundSchema = z.object({
|
|
2294
|
+
name: z.string(),
|
|
1803
2295
|
});
|
|
1804
|
-
function
|
|
1805
|
-
return JSON.stringify(exports.
|
|
2296
|
+
function updatePromptToolChoicePromptsFunctionToJSON(updatePromptToolChoicePromptsFunction) {
|
|
2297
|
+
return JSON.stringify(exports.UpdatePromptToolChoicePromptsFunction$outboundSchema.parse(updatePromptToolChoicePromptsFunction));
|
|
1806
2298
|
}
|
|
1807
|
-
function
|
|
1808
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
2299
|
+
function updatePromptToolChoicePromptsFunctionFromJSON(jsonString) {
|
|
2300
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptToolChoicePromptsFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptToolChoicePromptsFunction' from JSON`);
|
|
1809
2301
|
}
|
|
1810
2302
|
/** @internal */
|
|
1811
|
-
exports.
|
|
1812
|
-
.
|
|
1813
|
-
|
|
1814
|
-
exports.UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema = exports.UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema;
|
|
1815
|
-
/** @internal */
|
|
1816
|
-
exports.UpdatePromptResponseFormatPrompts2$inboundSchema = z.object({
|
|
1817
|
-
type: exports.UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema,
|
|
2303
|
+
exports.UpdatePromptToolChoicePrompts2$inboundSchema = z.object({
|
|
2304
|
+
type: exports.UpdatePromptToolChoicePromptsType$inboundSchema.optional(),
|
|
2305
|
+
function: z.lazy(() => exports.UpdatePromptToolChoicePromptsFunction$inboundSchema),
|
|
1818
2306
|
});
|
|
1819
2307
|
/** @internal */
|
|
1820
|
-
exports.
|
|
1821
|
-
type: exports.
|
|
2308
|
+
exports.UpdatePromptToolChoicePrompts2$outboundSchema = z.object({
|
|
2309
|
+
type: exports.UpdatePromptToolChoicePromptsType$outboundSchema.optional(),
|
|
2310
|
+
function: z.lazy(() => exports.UpdatePromptToolChoicePromptsFunction$outboundSchema),
|
|
1822
2311
|
});
|
|
1823
|
-
function
|
|
1824
|
-
return JSON.stringify(exports.
|
|
2312
|
+
function updatePromptToolChoicePrompts2ToJSON(updatePromptToolChoicePrompts2) {
|
|
2313
|
+
return JSON.stringify(exports.UpdatePromptToolChoicePrompts2$outboundSchema.parse(updatePromptToolChoicePrompts2));
|
|
1825
2314
|
}
|
|
1826
|
-
function
|
|
1827
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
2315
|
+
function updatePromptToolChoicePrompts2FromJSON(jsonString) {
|
|
2316
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptToolChoicePrompts2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptToolChoicePrompts2' from JSON`);
|
|
1828
2317
|
}
|
|
1829
2318
|
/** @internal */
|
|
1830
|
-
exports.
|
|
1831
|
-
.nativeEnum(exports.UpdatePromptResponseFormatPromptsResponseType);
|
|
2319
|
+
exports.UpdatePromptToolChoicePrompts1$inboundSchema = z.nativeEnum(exports.UpdatePromptToolChoicePrompts1);
|
|
1832
2320
|
/** @internal */
|
|
1833
|
-
exports.
|
|
2321
|
+
exports.UpdatePromptToolChoicePrompts1$outboundSchema = exports.UpdatePromptToolChoicePrompts1$inboundSchema;
|
|
1834
2322
|
/** @internal */
|
|
1835
|
-
exports.
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
schema: z.record(z.any()),
|
|
1840
|
-
});
|
|
2323
|
+
exports.UpdatePromptPromptsToolChoice$inboundSchema = z.union([
|
|
2324
|
+
z.lazy(() => exports.UpdatePromptToolChoicePrompts2$inboundSchema),
|
|
2325
|
+
exports.UpdatePromptToolChoicePrompts1$inboundSchema,
|
|
2326
|
+
]);
|
|
1841
2327
|
/** @internal */
|
|
1842
|
-
exports.
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
function updatePromptResponseFormatPromptsResponseJsonSchemaToJSON(updatePromptResponseFormatPromptsResponseJsonSchema) {
|
|
1849
|
-
return JSON.stringify(exports.UpdatePromptResponseFormatPromptsResponseJsonSchema$outboundSchema.parse(updatePromptResponseFormatPromptsResponseJsonSchema));
|
|
2328
|
+
exports.UpdatePromptPromptsToolChoice$outboundSchema = z.union([
|
|
2329
|
+
z.lazy(() => exports.UpdatePromptToolChoicePrompts2$outboundSchema),
|
|
2330
|
+
exports.UpdatePromptToolChoicePrompts1$outboundSchema,
|
|
2331
|
+
]);
|
|
2332
|
+
function updatePromptPromptsToolChoiceToJSON(updatePromptPromptsToolChoice) {
|
|
2333
|
+
return JSON.stringify(exports.UpdatePromptPromptsToolChoice$outboundSchema.parse(updatePromptPromptsToolChoice));
|
|
1850
2334
|
}
|
|
1851
|
-
function
|
|
1852
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
2335
|
+
function updatePromptPromptsToolChoiceFromJSON(jsonString) {
|
|
2336
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptPromptsToolChoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptPromptsToolChoice' from JSON`);
|
|
1853
2337
|
}
|
|
1854
2338
|
/** @internal */
|
|
1855
|
-
exports.
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
2339
|
+
exports.UpdatePromptPromptsModalities$inboundSchema = z.nativeEnum(exports.UpdatePromptPromptsModalities);
|
|
2340
|
+
/** @internal */
|
|
2341
|
+
exports.UpdatePromptPromptsModalities$outboundSchema = exports.UpdatePromptPromptsModalities$inboundSchema;
|
|
2342
|
+
/** @internal */
|
|
2343
|
+
exports.UpdatePromptIdPrompts1$inboundSchema = z.nativeEnum(exports.UpdatePromptIdPrompts1);
|
|
2344
|
+
/** @internal */
|
|
2345
|
+
exports.UpdatePromptIdPrompts1$outboundSchema = exports.UpdatePromptIdPrompts1$inboundSchema;
|
|
2346
|
+
/** @internal */
|
|
2347
|
+
exports.UpdatePromptPromptsId$inboundSchema = z.union([exports.UpdatePromptIdPrompts1$inboundSchema, z.string()]);
|
|
2348
|
+
/** @internal */
|
|
2349
|
+
exports.UpdatePromptPromptsId$outboundSchema = z.union([exports.UpdatePromptIdPrompts1$outboundSchema, z.string()]);
|
|
2350
|
+
function updatePromptPromptsIdToJSON(updatePromptPromptsId) {
|
|
2351
|
+
return JSON.stringify(exports.UpdatePromptPromptsId$outboundSchema.parse(updatePromptPromptsId));
|
|
2352
|
+
}
|
|
2353
|
+
function updatePromptPromptsIdFromJSON(jsonString) {
|
|
2354
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptPromptsId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptPromptsId' from JSON`);
|
|
2355
|
+
}
|
|
2356
|
+
/** @internal */
|
|
2357
|
+
exports.UpdatePromptPromptsExecuteOn$inboundSchema = z.nativeEnum(exports.UpdatePromptPromptsExecuteOn);
|
|
2358
|
+
/** @internal */
|
|
2359
|
+
exports.UpdatePromptPromptsExecuteOn$outboundSchema = exports.UpdatePromptPromptsExecuteOn$inboundSchema;
|
|
2360
|
+
/** @internal */
|
|
2361
|
+
exports.UpdatePromptPromptsGuardrails$inboundSchema = z.object({
|
|
2362
|
+
id: z.union([exports.UpdatePromptIdPrompts1$inboundSchema, z.string()]),
|
|
2363
|
+
execute_on: exports.UpdatePromptPromptsExecuteOn$inboundSchema,
|
|
1859
2364
|
}).transform((v) => {
|
|
1860
2365
|
return (0, primitives_js_1.remap)(v, {
|
|
1861
|
-
"
|
|
1862
|
-
"json_schema": "jsonSchema",
|
|
2366
|
+
"execute_on": "executeOn",
|
|
1863
2367
|
});
|
|
1864
2368
|
});
|
|
1865
2369
|
/** @internal */
|
|
1866
|
-
exports.
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
jsonSchema: z.lazy(() => exports.UpdatePromptResponseFormatPromptsResponseJsonSchema$outboundSchema),
|
|
2370
|
+
exports.UpdatePromptPromptsGuardrails$outboundSchema = z.object({
|
|
2371
|
+
id: z.union([exports.UpdatePromptIdPrompts1$outboundSchema, z.string()]),
|
|
2372
|
+
executeOn: exports.UpdatePromptPromptsExecuteOn$outboundSchema,
|
|
1870
2373
|
}).transform((v) => {
|
|
1871
2374
|
return (0, primitives_js_1.remap)(v, {
|
|
1872
|
-
|
|
1873
|
-
jsonSchema: "json_schema",
|
|
2375
|
+
executeOn: "execute_on",
|
|
1874
2376
|
});
|
|
1875
2377
|
});
|
|
1876
|
-
function
|
|
1877
|
-
return JSON.stringify(exports.
|
|
2378
|
+
function updatePromptPromptsGuardrailsToJSON(updatePromptPromptsGuardrails) {
|
|
2379
|
+
return JSON.stringify(exports.UpdatePromptPromptsGuardrails$outboundSchema.parse(updatePromptPromptsGuardrails));
|
|
1878
2380
|
}
|
|
1879
|
-
function
|
|
1880
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
2381
|
+
function updatePromptPromptsGuardrailsFromJSON(jsonString) {
|
|
2382
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptPromptsGuardrails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptPromptsGuardrails' from JSON`);
|
|
1881
2383
|
}
|
|
1882
2384
|
/** @internal */
|
|
1883
|
-
exports.
|
|
1884
|
-
z.lazy(() => exports.UpdatePromptResponseFormatPrompts1$inboundSchema),
|
|
1885
|
-
z.lazy(() => exports.UpdatePromptResponseFormatPrompts2$inboundSchema),
|
|
1886
|
-
z.lazy(() => exports.UpdatePromptResponseFormatPrompts3$inboundSchema),
|
|
1887
|
-
exports.UpdatePromptResponseFormatPrompts4$inboundSchema,
|
|
1888
|
-
exports.UpdatePromptResponseFormat5$inboundSchema,
|
|
1889
|
-
exports.UpdatePromptResponseFormat6$inboundSchema,
|
|
1890
|
-
]);
|
|
2385
|
+
exports.UpdatePromptContentPromptsResponse200ApplicationJSONResponseBody2$inboundSchema = components.TextContentPartSchema$inboundSchema;
|
|
1891
2386
|
/** @internal */
|
|
1892
|
-
exports.
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
exports.UpdatePromptResponseFormatPrompts4$outboundSchema,
|
|
1897
|
-
exports.UpdatePromptResponseFormat5$outboundSchema,
|
|
1898
|
-
exports.UpdatePromptResponseFormat6$outboundSchema,
|
|
1899
|
-
]);
|
|
1900
|
-
function updatePromptPromptsResponseResponseFormatToJSON(updatePromptPromptsResponseResponseFormat) {
|
|
1901
|
-
return JSON.stringify(exports.UpdatePromptPromptsResponseResponseFormat$outboundSchema.parse(updatePromptPromptsResponseResponseFormat));
|
|
2387
|
+
exports.UpdatePromptContentPromptsResponse200ApplicationJSONResponseBody2$outboundSchema = components.TextContentPartSchema$outboundSchema;
|
|
2388
|
+
function updatePromptContentPromptsResponse200ApplicationJSONResponseBody2ToJSON(updatePromptContentPromptsResponse200ApplicationJSONResponseBody2) {
|
|
2389
|
+
return JSON.stringify(exports.UpdatePromptContentPromptsResponse200ApplicationJSONResponseBody2$outboundSchema
|
|
2390
|
+
.parse(updatePromptContentPromptsResponse200ApplicationJSONResponseBody2));
|
|
1902
2391
|
}
|
|
1903
|
-
function
|
|
1904
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
2392
|
+
function updatePromptContentPromptsResponse200ApplicationJSONResponseBody2FromJSON(jsonString) {
|
|
2393
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptContentPromptsResponse200ApplicationJSONResponseBody2$inboundSchema
|
|
2394
|
+
.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptContentPromptsResponse200ApplicationJSONResponseBody2' from JSON`);
|
|
1905
2395
|
}
|
|
1906
2396
|
/** @internal */
|
|
1907
|
-
exports.
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
exports.UpdatePromptPromptsEncodingFormat$inboundSchema = z.nativeEnum(exports.UpdatePromptPromptsEncodingFormat);
|
|
2397
|
+
exports.UpdatePromptMessagesPromptsResponse200ApplicationJSONResponseBodyContent$inboundSchema = z.union([
|
|
2398
|
+
z.string(),
|
|
2399
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
2400
|
+
]);
|
|
1912
2401
|
/** @internal */
|
|
1913
|
-
exports.
|
|
2402
|
+
exports.UpdatePromptMessagesPromptsResponse200ApplicationJSONResponseBodyContent$outboundSchema = z.union([
|
|
2403
|
+
z.string(),
|
|
2404
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
2405
|
+
]);
|
|
2406
|
+
function updatePromptMessagesPromptsResponse200ApplicationJSONResponseBodyContentToJSON(updatePromptMessagesPromptsResponse200ApplicationJSONResponseBodyContent) {
|
|
2407
|
+
return JSON.stringify(exports.UpdatePromptMessagesPromptsResponse200ApplicationJSONResponseBodyContent$outboundSchema
|
|
2408
|
+
.parse(updatePromptMessagesPromptsResponse200ApplicationJSONResponseBodyContent));
|
|
2409
|
+
}
|
|
2410
|
+
function updatePromptMessagesPromptsResponse200ApplicationJSONResponseBodyContentFromJSON(jsonString) {
|
|
2411
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptMessagesPromptsResponse200ApplicationJSONResponseBodyContent$inboundSchema
|
|
2412
|
+
.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptMessagesPromptsResponse200ApplicationJSONResponseBodyContent' from JSON`);
|
|
2413
|
+
}
|
|
1914
2414
|
/** @internal */
|
|
1915
|
-
exports.
|
|
2415
|
+
exports.UpdatePromptMessagesPromptsResponse200Type$inboundSchema = z
|
|
2416
|
+
.nativeEnum(exports.UpdatePromptMessagesPromptsResponse200Type);
|
|
1916
2417
|
/** @internal */
|
|
1917
|
-
exports.
|
|
2418
|
+
exports.UpdatePromptMessagesPromptsResponse200Type$outboundSchema = exports.UpdatePromptMessagesPromptsResponse200Type$inboundSchema;
|
|
1918
2419
|
/** @internal */
|
|
1919
|
-
exports.
|
|
2420
|
+
exports.UpdatePromptMessagesPromptsTtl$inboundSchema = z.nativeEnum(exports.UpdatePromptMessagesPromptsTtl);
|
|
1920
2421
|
/** @internal */
|
|
1921
|
-
exports.
|
|
2422
|
+
exports.UpdatePromptMessagesPromptsTtl$outboundSchema = exports.UpdatePromptMessagesPromptsTtl$inboundSchema;
|
|
1922
2423
|
/** @internal */
|
|
1923
|
-
exports.
|
|
2424
|
+
exports.UpdatePromptMessagesPromptsCacheControl$inboundSchema = z.object({
|
|
2425
|
+
type: exports.UpdatePromptMessagesPromptsResponse200Type$inboundSchema,
|
|
2426
|
+
ttl: exports.UpdatePromptMessagesPromptsTtl$inboundSchema.default("5m"),
|
|
2427
|
+
});
|
|
1924
2428
|
/** @internal */
|
|
1925
|
-
exports.
|
|
2429
|
+
exports.UpdatePromptMessagesPromptsCacheControl$outboundSchema = z.object({
|
|
2430
|
+
type: exports.UpdatePromptMessagesPromptsResponse200Type$outboundSchema,
|
|
2431
|
+
ttl: exports.UpdatePromptMessagesPromptsTtl$outboundSchema.default("5m"),
|
|
2432
|
+
});
|
|
2433
|
+
function updatePromptMessagesPromptsCacheControlToJSON(updatePromptMessagesPromptsCacheControl) {
|
|
2434
|
+
return JSON.stringify(exports.UpdatePromptMessagesPromptsCacheControl$outboundSchema.parse(updatePromptMessagesPromptsCacheControl));
|
|
2435
|
+
}
|
|
2436
|
+
function updatePromptMessagesPromptsCacheControlFromJSON(jsonString) {
|
|
2437
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptMessagesPromptsCacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptMessagesPromptsCacheControl' from JSON`);
|
|
2438
|
+
}
|
|
1926
2439
|
/** @internal */
|
|
1927
|
-
exports.
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
seed: z.number().optional(),
|
|
1936
|
-
format: exports.UpdatePromptPromptsFormat$inboundSchema.optional(),
|
|
1937
|
-
dimensions: z.string().optional(),
|
|
1938
|
-
quality: z.string().optional(),
|
|
1939
|
-
style: z.string().optional(),
|
|
1940
|
-
responseFormat: z.nullable(z.union([
|
|
1941
|
-
z.lazy(() => exports.UpdatePromptResponseFormatPrompts1$inboundSchema),
|
|
1942
|
-
z.lazy(() => exports.UpdatePromptResponseFormatPrompts2$inboundSchema),
|
|
1943
|
-
z.lazy(() => exports.UpdatePromptResponseFormatPrompts3$inboundSchema),
|
|
1944
|
-
exports.UpdatePromptResponseFormatPrompts4$inboundSchema,
|
|
1945
|
-
exports.UpdatePromptResponseFormat5$inboundSchema,
|
|
1946
|
-
exports.UpdatePromptResponseFormat6$inboundSchema,
|
|
1947
|
-
])).optional(),
|
|
1948
|
-
photoRealVersion: exports.UpdatePromptPromptsPhotoRealVersion$inboundSchema
|
|
1949
|
-
.optional(),
|
|
1950
|
-
encoding_format: exports.UpdatePromptPromptsEncodingFormat$inboundSchema.optional(),
|
|
1951
|
-
reasoningEffort: exports.UpdatePromptPromptsReasoningEffort$inboundSchema.optional(),
|
|
1952
|
-
budgetTokens: z.number().optional(),
|
|
1953
|
-
verbosity: exports.UpdatePromptPromptsVerbosity$inboundSchema.optional(),
|
|
1954
|
-
thinkingLevel: exports.UpdatePromptPromptsThinkingLevel$inboundSchema.optional(),
|
|
2440
|
+
exports.UpdatePromptMessagesPromptsToolMessage$inboundSchema = z.object({
|
|
2441
|
+
role: z.literal("tool"),
|
|
2442
|
+
content: z.union([
|
|
2443
|
+
z.string(),
|
|
2444
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
2445
|
+
]),
|
|
2446
|
+
tool_call_id: z.nullable(z.string()),
|
|
2447
|
+
cache_control: z.lazy(() => exports.UpdatePromptMessagesPromptsCacheControl$inboundSchema).optional(),
|
|
1955
2448
|
}).transform((v) => {
|
|
1956
2449
|
return (0, primitives_js_1.remap)(v, {
|
|
1957
|
-
"
|
|
2450
|
+
"tool_call_id": "toolCallId",
|
|
2451
|
+
"cache_control": "cacheControl",
|
|
1958
2452
|
});
|
|
1959
2453
|
});
|
|
1960
2454
|
/** @internal */
|
|
1961
|
-
exports.
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
seed: z.number().optional(),
|
|
1970
|
-
format: exports.UpdatePromptPromptsFormat$outboundSchema.optional(),
|
|
1971
|
-
dimensions: z.string().optional(),
|
|
1972
|
-
quality: z.string().optional(),
|
|
1973
|
-
style: z.string().optional(),
|
|
1974
|
-
responseFormat: z.nullable(z.union([
|
|
1975
|
-
z.lazy(() => exports.UpdatePromptResponseFormatPrompts1$outboundSchema),
|
|
1976
|
-
z.lazy(() => exports.UpdatePromptResponseFormatPrompts2$outboundSchema),
|
|
1977
|
-
z.lazy(() => exports.UpdatePromptResponseFormatPrompts3$outboundSchema),
|
|
1978
|
-
exports.UpdatePromptResponseFormatPrompts4$outboundSchema,
|
|
1979
|
-
exports.UpdatePromptResponseFormat5$outboundSchema,
|
|
1980
|
-
exports.UpdatePromptResponseFormat6$outboundSchema,
|
|
1981
|
-
])).optional(),
|
|
1982
|
-
photoRealVersion: exports.UpdatePromptPromptsPhotoRealVersion$outboundSchema
|
|
1983
|
-
.optional(),
|
|
1984
|
-
encodingFormat: exports.UpdatePromptPromptsEncodingFormat$outboundSchema.optional(),
|
|
1985
|
-
reasoningEffort: exports.UpdatePromptPromptsReasoningEffort$outboundSchema.optional(),
|
|
1986
|
-
budgetTokens: z.number().optional(),
|
|
1987
|
-
verbosity: exports.UpdatePromptPromptsVerbosity$outboundSchema.optional(),
|
|
1988
|
-
thinkingLevel: exports.UpdatePromptPromptsThinkingLevel$outboundSchema.optional(),
|
|
2455
|
+
exports.UpdatePromptMessagesPromptsToolMessage$outboundSchema = z.object({
|
|
2456
|
+
role: z.literal("tool"),
|
|
2457
|
+
content: z.union([
|
|
2458
|
+
z.string(),
|
|
2459
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
2460
|
+
]),
|
|
2461
|
+
toolCallId: z.nullable(z.string()),
|
|
2462
|
+
cacheControl: z.lazy(() => exports.UpdatePromptMessagesPromptsCacheControl$outboundSchema).optional(),
|
|
1989
2463
|
}).transform((v) => {
|
|
1990
2464
|
return (0, primitives_js_1.remap)(v, {
|
|
1991
|
-
|
|
2465
|
+
toolCallId: "tool_call_id",
|
|
2466
|
+
cacheControl: "cache_control",
|
|
1992
2467
|
});
|
|
1993
2468
|
});
|
|
1994
|
-
function
|
|
1995
|
-
return JSON.stringify(exports.
|
|
2469
|
+
function updatePromptMessagesPromptsToolMessageToJSON(updatePromptMessagesPromptsToolMessage) {
|
|
2470
|
+
return JSON.stringify(exports.UpdatePromptMessagesPromptsToolMessage$outboundSchema.parse(updatePromptMessagesPromptsToolMessage));
|
|
2471
|
+
}
|
|
2472
|
+
function updatePromptMessagesPromptsToolMessageFromJSON(jsonString) {
|
|
2473
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptMessagesPromptsToolMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptMessagesPromptsToolMessage' from JSON`);
|
|
2474
|
+
}
|
|
2475
|
+
/** @internal */
|
|
2476
|
+
exports.UpdatePromptContentPromptsResponse200ApplicationJson2$inboundSchema = z.union([
|
|
2477
|
+
components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
|
|
2478
|
+
components.RefusalPartSchema$inboundSchema,
|
|
2479
|
+
components.ReasoningPartSchema$inboundSchema,
|
|
2480
|
+
components.RedactedReasoningPartSchema$inboundSchema,
|
|
2481
|
+
]);
|
|
2482
|
+
/** @internal */
|
|
2483
|
+
exports.UpdatePromptContentPromptsResponse200ApplicationJson2$outboundSchema = z.union([
|
|
2484
|
+
components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
|
|
2485
|
+
components.RefusalPartSchema$outboundSchema,
|
|
2486
|
+
components.ReasoningPartSchema$outboundSchema,
|
|
2487
|
+
components.RedactedReasoningPartSchema$outboundSchema,
|
|
2488
|
+
]);
|
|
2489
|
+
function updatePromptContentPromptsResponse200ApplicationJSON2ToJSON(updatePromptContentPromptsResponse200ApplicationJson2) {
|
|
2490
|
+
return JSON.stringify(exports.UpdatePromptContentPromptsResponse200ApplicationJson2$outboundSchema.parse(updatePromptContentPromptsResponse200ApplicationJson2));
|
|
2491
|
+
}
|
|
2492
|
+
function updatePromptContentPromptsResponse200ApplicationJSON2FromJSON(jsonString) {
|
|
2493
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptContentPromptsResponse200ApplicationJson2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptContentPromptsResponse200ApplicationJson2' from JSON`);
|
|
2494
|
+
}
|
|
2495
|
+
/** @internal */
|
|
2496
|
+
exports.UpdatePromptMessagesPromptsResponse200ApplicationJSONContent$inboundSchema = z.union([
|
|
2497
|
+
z.string(),
|
|
2498
|
+
z.array(z.union([
|
|
2499
|
+
components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
|
|
2500
|
+
components.RefusalPartSchema$inboundSchema,
|
|
2501
|
+
components.ReasoningPartSchema$inboundSchema,
|
|
2502
|
+
components.RedactedReasoningPartSchema$inboundSchema,
|
|
2503
|
+
])),
|
|
2504
|
+
]);
|
|
2505
|
+
/** @internal */
|
|
2506
|
+
exports.UpdatePromptMessagesPromptsResponse200ApplicationJSONContent$outboundSchema = z.union([
|
|
2507
|
+
z.string(),
|
|
2508
|
+
z.array(z.union([
|
|
2509
|
+
components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
|
|
2510
|
+
components.RefusalPartSchema$outboundSchema,
|
|
2511
|
+
components.ReasoningPartSchema$outboundSchema,
|
|
2512
|
+
components.RedactedReasoningPartSchema$outboundSchema,
|
|
2513
|
+
])),
|
|
2514
|
+
]);
|
|
2515
|
+
function updatePromptMessagesPromptsResponse200ApplicationJSONContentToJSON(updatePromptMessagesPromptsResponse200ApplicationJSONContent) {
|
|
2516
|
+
return JSON.stringify(exports.UpdatePromptMessagesPromptsResponse200ApplicationJSONContent$outboundSchema
|
|
2517
|
+
.parse(updatePromptMessagesPromptsResponse200ApplicationJSONContent));
|
|
2518
|
+
}
|
|
2519
|
+
function updatePromptMessagesPromptsResponse200ApplicationJSONContentFromJSON(jsonString) {
|
|
2520
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptMessagesPromptsResponse200ApplicationJSONContent$inboundSchema
|
|
2521
|
+
.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptMessagesPromptsResponse200ApplicationJSONContent' from JSON`);
|
|
2522
|
+
}
|
|
2523
|
+
/** @internal */
|
|
2524
|
+
exports.UpdatePromptMessagesPromptsAudio$inboundSchema = z.object({
|
|
2525
|
+
id: z.string(),
|
|
2526
|
+
});
|
|
2527
|
+
/** @internal */
|
|
2528
|
+
exports.UpdatePromptMessagesPromptsAudio$outboundSchema = z.object({
|
|
2529
|
+
id: z.string(),
|
|
2530
|
+
});
|
|
2531
|
+
function updatePromptMessagesPromptsAudioToJSON(updatePromptMessagesPromptsAudio) {
|
|
2532
|
+
return JSON.stringify(exports.UpdatePromptMessagesPromptsAudio$outboundSchema.parse(updatePromptMessagesPromptsAudio));
|
|
1996
2533
|
}
|
|
1997
|
-
function
|
|
1998
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
2534
|
+
function updatePromptMessagesPromptsAudioFromJSON(jsonString) {
|
|
2535
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptMessagesPromptsAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptMessagesPromptsAudio' from JSON`);
|
|
1999
2536
|
}
|
|
2000
2537
|
/** @internal */
|
|
2001
|
-
exports.
|
|
2538
|
+
exports.UpdatePromptMessagesPromptsResponseType$inboundSchema = z
|
|
2539
|
+
.nativeEnum(exports.UpdatePromptMessagesPromptsResponseType);
|
|
2002
2540
|
/** @internal */
|
|
2003
|
-
exports.
|
|
2541
|
+
exports.UpdatePromptMessagesPromptsResponseType$outboundSchema = exports.UpdatePromptMessagesPromptsResponseType$inboundSchema;
|
|
2004
2542
|
/** @internal */
|
|
2005
|
-
exports.
|
|
2543
|
+
exports.UpdatePromptMessagesPromptsFunction$inboundSchema = z.object({
|
|
2544
|
+
name: z.string().optional(),
|
|
2545
|
+
arguments: z.string().optional(),
|
|
2546
|
+
});
|
|
2006
2547
|
/** @internal */
|
|
2007
|
-
exports.
|
|
2548
|
+
exports.UpdatePromptMessagesPromptsFunction$outboundSchema = z.object({
|
|
2549
|
+
name: z.string().optional(),
|
|
2550
|
+
arguments: z.string().optional(),
|
|
2551
|
+
});
|
|
2552
|
+
function updatePromptMessagesPromptsFunctionToJSON(updatePromptMessagesPromptsFunction) {
|
|
2553
|
+
return JSON.stringify(exports.UpdatePromptMessagesPromptsFunction$outboundSchema.parse(updatePromptMessagesPromptsFunction));
|
|
2554
|
+
}
|
|
2555
|
+
function updatePromptMessagesPromptsFunctionFromJSON(jsonString) {
|
|
2556
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptMessagesPromptsFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptMessagesPromptsFunction' from JSON`);
|
|
2557
|
+
}
|
|
2008
2558
|
/** @internal */
|
|
2009
|
-
exports.
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2559
|
+
exports.UpdatePromptMessagesPromptsToolCalls$inboundSchema = z.object({
|
|
2560
|
+
id: z.string(),
|
|
2561
|
+
type: exports.UpdatePromptMessagesPromptsResponseType$inboundSchema,
|
|
2562
|
+
function: z.lazy(() => exports.UpdatePromptMessagesPromptsFunction$inboundSchema),
|
|
2563
|
+
thought_signature: z.string().optional(),
|
|
2014
2564
|
}).transform((v) => {
|
|
2015
2565
|
return (0, primitives_js_1.remap)(v, {
|
|
2016
|
-
"
|
|
2566
|
+
"thought_signature": "thoughtSignature",
|
|
2017
2567
|
});
|
|
2018
2568
|
});
|
|
2019
2569
|
/** @internal */
|
|
2020
|
-
exports.
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2570
|
+
exports.UpdatePromptMessagesPromptsToolCalls$outboundSchema = z.object({
|
|
2571
|
+
id: z.string(),
|
|
2572
|
+
type: exports.UpdatePromptMessagesPromptsResponseType$outboundSchema,
|
|
2573
|
+
function: z.lazy(() => exports.UpdatePromptMessagesPromptsFunction$outboundSchema),
|
|
2574
|
+
thoughtSignature: z.string().optional(),
|
|
2025
2575
|
}).transform((v) => {
|
|
2026
2576
|
return (0, primitives_js_1.remap)(v, {
|
|
2027
|
-
|
|
2577
|
+
thoughtSignature: "thought_signature",
|
|
2028
2578
|
});
|
|
2029
2579
|
});
|
|
2030
|
-
function
|
|
2031
|
-
return JSON.stringify(exports.
|
|
2580
|
+
function updatePromptMessagesPromptsToolCallsToJSON(updatePromptMessagesPromptsToolCalls) {
|
|
2581
|
+
return JSON.stringify(exports.UpdatePromptMessagesPromptsToolCalls$outboundSchema.parse(updatePromptMessagesPromptsToolCalls));
|
|
2032
2582
|
}
|
|
2033
|
-
function
|
|
2034
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
2583
|
+
function updatePromptMessagesPromptsToolCallsFromJSON(jsonString) {
|
|
2584
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptMessagesPromptsToolCalls$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptMessagesPromptsToolCalls' from JSON`);
|
|
2035
2585
|
}
|
|
2036
2586
|
/** @internal */
|
|
2037
|
-
exports.
|
|
2038
|
-
|
|
2039
|
-
|
|
2587
|
+
exports.UpdatePromptMessagesPromptsAssistantMessage$inboundSchema = z.object({
|
|
2588
|
+
content: z.nullable(z.union([
|
|
2589
|
+
z.string(),
|
|
2590
|
+
z.array(z.union([
|
|
2591
|
+
components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
|
|
2592
|
+
components.RefusalPartSchema$inboundSchema,
|
|
2593
|
+
components.ReasoningPartSchema$inboundSchema,
|
|
2594
|
+
components.RedactedReasoningPartSchema$inboundSchema,
|
|
2595
|
+
])),
|
|
2596
|
+
])).optional(),
|
|
2597
|
+
refusal: z.nullable(z.string()).optional(),
|
|
2598
|
+
role: z.literal("assistant"),
|
|
2599
|
+
name: z.string().optional(),
|
|
2600
|
+
audio: z.nullable(z.lazy(() => exports.UpdatePromptMessagesPromptsAudio$inboundSchema)).optional(),
|
|
2601
|
+
tool_calls: z.array(z.lazy(() => exports.UpdatePromptMessagesPromptsToolCalls$inboundSchema)).optional(),
|
|
2602
|
+
}).transform((v) => {
|
|
2603
|
+
return (0, primitives_js_1.remap)(v, {
|
|
2604
|
+
"tool_calls": "toolCalls",
|
|
2605
|
+
});
|
|
2040
2606
|
});
|
|
2041
2607
|
/** @internal */
|
|
2042
|
-
exports.
|
|
2043
|
-
|
|
2044
|
-
|
|
2608
|
+
exports.UpdatePromptMessagesPromptsAssistantMessage$outboundSchema = z.object({
|
|
2609
|
+
content: z.nullable(z.union([
|
|
2610
|
+
z.string(),
|
|
2611
|
+
z.array(z.union([
|
|
2612
|
+
components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
|
|
2613
|
+
components.RefusalPartSchema$outboundSchema,
|
|
2614
|
+
components.ReasoningPartSchema$outboundSchema,
|
|
2615
|
+
components.RedactedReasoningPartSchema$outboundSchema,
|
|
2616
|
+
])),
|
|
2617
|
+
])).optional(),
|
|
2618
|
+
refusal: z.nullable(z.string()).optional(),
|
|
2619
|
+
role: z.literal("assistant"),
|
|
2620
|
+
name: z.string().optional(),
|
|
2621
|
+
audio: z.nullable(z.lazy(() => exports.UpdatePromptMessagesPromptsAudio$outboundSchema)).optional(),
|
|
2622
|
+
toolCalls: z.array(z.lazy(() => exports.UpdatePromptMessagesPromptsToolCalls$outboundSchema)).optional(),
|
|
2623
|
+
}).transform((v) => {
|
|
2624
|
+
return (0, primitives_js_1.remap)(v, {
|
|
2625
|
+
toolCalls: "tool_calls",
|
|
2626
|
+
});
|
|
2045
2627
|
});
|
|
2046
|
-
function
|
|
2047
|
-
return JSON.stringify(exports.
|
|
2628
|
+
function updatePromptMessagesPromptsAssistantMessageToJSON(updatePromptMessagesPromptsAssistantMessage) {
|
|
2629
|
+
return JSON.stringify(exports.UpdatePromptMessagesPromptsAssistantMessage$outboundSchema.parse(updatePromptMessagesPromptsAssistantMessage));
|
|
2048
2630
|
}
|
|
2049
|
-
function
|
|
2050
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
2631
|
+
function updatePromptMessagesPromptsAssistantMessageFromJSON(jsonString) {
|
|
2632
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptMessagesPromptsAssistantMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptMessagesPromptsAssistantMessage' from JSON`);
|
|
2051
2633
|
}
|
|
2052
2634
|
/** @internal */
|
|
2053
|
-
exports.
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2635
|
+
exports.UpdatePrompt2PromptsResponse200ApplicationJSONResponseBodyPromptType$inboundSchema = z.nativeEnum(exports.UpdatePrompt2PromptsResponse200ApplicationJSONResponseBodyPromptType);
|
|
2636
|
+
/** @internal */
|
|
2637
|
+
exports.UpdatePrompt2PromptsResponse200ApplicationJSONResponseBodyPromptType$outboundSchema = exports.UpdatePrompt2PromptsResponse200ApplicationJSONResponseBodyPromptType$inboundSchema;
|
|
2638
|
+
/** @internal */
|
|
2639
|
+
exports.UpdatePrompt2PromptsTtl$inboundSchema = z.nativeEnum(exports.UpdatePrompt2PromptsTtl);
|
|
2640
|
+
/** @internal */
|
|
2641
|
+
exports.UpdatePrompt2PromptsTtl$outboundSchema = exports.UpdatePrompt2PromptsTtl$inboundSchema;
|
|
2642
|
+
/** @internal */
|
|
2643
|
+
exports.UpdatePrompt2PromptsCacheControl$inboundSchema = z.object({
|
|
2644
|
+
type: exports.UpdatePrompt2PromptsResponse200ApplicationJSONResponseBodyPromptType$inboundSchema,
|
|
2645
|
+
ttl: exports.UpdatePrompt2PromptsTtl$inboundSchema.default("5m"),
|
|
2057
2646
|
});
|
|
2058
2647
|
/** @internal */
|
|
2059
|
-
exports.
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
detail: z.string().optional(),
|
|
2648
|
+
exports.UpdatePrompt2PromptsCacheControl$outboundSchema = z.object({
|
|
2649
|
+
type: exports.UpdatePrompt2PromptsResponse200ApplicationJSONResponseBodyPromptType$outboundSchema,
|
|
2650
|
+
ttl: exports.UpdatePrompt2PromptsTtl$outboundSchema.default("5m"),
|
|
2063
2651
|
});
|
|
2064
|
-
function
|
|
2065
|
-
return JSON.stringify(exports.
|
|
2652
|
+
function updatePrompt2PromptsCacheControlToJSON(updatePrompt2PromptsCacheControl) {
|
|
2653
|
+
return JSON.stringify(exports.UpdatePrompt2PromptsCacheControl$outboundSchema.parse(updatePrompt2PromptsCacheControl));
|
|
2066
2654
|
}
|
|
2067
|
-
function
|
|
2068
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
2655
|
+
function updatePrompt2PromptsCacheControlFromJSON(jsonString) {
|
|
2656
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePrompt2PromptsCacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePrompt2PromptsCacheControl' from JSON`);
|
|
2069
2657
|
}
|
|
2070
2658
|
/** @internal */
|
|
2071
|
-
exports.
|
|
2072
|
-
type: z.literal("
|
|
2073
|
-
|
|
2659
|
+
exports.UpdatePrompt2Prompts4$inboundSchema = z.object({
|
|
2660
|
+
type: z.literal("file"),
|
|
2661
|
+
cache_control: z.lazy(() => exports.UpdatePrompt2PromptsCacheControl$inboundSchema)
|
|
2662
|
+
.optional(),
|
|
2663
|
+
file: components.FileContentPartSchema$inboundSchema,
|
|
2074
2664
|
}).transform((v) => {
|
|
2075
2665
|
return (0, primitives_js_1.remap)(v, {
|
|
2076
|
-
"
|
|
2666
|
+
"cache_control": "cacheControl",
|
|
2077
2667
|
});
|
|
2078
2668
|
});
|
|
2079
2669
|
/** @internal */
|
|
2080
|
-
exports.
|
|
2081
|
-
type: z.literal("
|
|
2082
|
-
|
|
2670
|
+
exports.UpdatePrompt2Prompts4$outboundSchema = z.object({
|
|
2671
|
+
type: z.literal("file"),
|
|
2672
|
+
cacheControl: z.lazy(() => exports.UpdatePrompt2PromptsCacheControl$outboundSchema)
|
|
2673
|
+
.optional(),
|
|
2674
|
+
file: components.FileContentPartSchema$outboundSchema,
|
|
2083
2675
|
}).transform((v) => {
|
|
2084
2676
|
return (0, primitives_js_1.remap)(v, {
|
|
2085
|
-
|
|
2677
|
+
cacheControl: "cache_control",
|
|
2086
2678
|
});
|
|
2087
2679
|
});
|
|
2088
|
-
function
|
|
2089
|
-
return JSON.stringify(exports.
|
|
2090
|
-
}
|
|
2091
|
-
function updatePrompt2Prompts2FromJSON(jsonString) {
|
|
2092
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePrompt2Prompts2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePrompt2Prompts2' from JSON`);
|
|
2093
|
-
}
|
|
2094
|
-
/** @internal */
|
|
2095
|
-
exports.UpdatePrompt2Prompts1$inboundSchema = z.object({
|
|
2096
|
-
type: z.literal("text"),
|
|
2097
|
-
text: z.string(),
|
|
2098
|
-
});
|
|
2099
|
-
/** @internal */
|
|
2100
|
-
exports.UpdatePrompt2Prompts1$outboundSchema = z.object({
|
|
2101
|
-
type: z.literal("text"),
|
|
2102
|
-
text: z.string(),
|
|
2103
|
-
});
|
|
2104
|
-
function updatePrompt2Prompts1ToJSON(updatePrompt2Prompts1) {
|
|
2105
|
-
return JSON.stringify(exports.UpdatePrompt2Prompts1$outboundSchema.parse(updatePrompt2Prompts1));
|
|
2680
|
+
function updatePrompt2Prompts4ToJSON(updatePrompt2Prompts4) {
|
|
2681
|
+
return JSON.stringify(exports.UpdatePrompt2Prompts4$outboundSchema.parse(updatePrompt2Prompts4));
|
|
2106
2682
|
}
|
|
2107
|
-
function
|
|
2108
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
2683
|
+
function updatePrompt2Prompts4FromJSON(jsonString) {
|
|
2684
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePrompt2Prompts4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePrompt2Prompts4' from JSON`);
|
|
2109
2685
|
}
|
|
2110
2686
|
/** @internal */
|
|
2111
|
-
exports.
|
|
2112
|
-
z.
|
|
2113
|
-
|
|
2114
|
-
|
|
2687
|
+
exports.UpdatePromptContentPromptsResponse2002$inboundSchema = z.union([
|
|
2688
|
+
components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
|
|
2689
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
2690
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
2691
|
+
z.lazy(() => exports.UpdatePrompt2Prompts4$inboundSchema),
|
|
2115
2692
|
]);
|
|
2116
2693
|
/** @internal */
|
|
2117
|
-
exports.
|
|
2118
|
-
z.
|
|
2119
|
-
|
|
2120
|
-
|
|
2694
|
+
exports.UpdatePromptContentPromptsResponse2002$outboundSchema = z.union([
|
|
2695
|
+
components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
|
|
2696
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
2697
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
2698
|
+
z.lazy(() => exports.UpdatePrompt2Prompts4$outboundSchema),
|
|
2121
2699
|
]);
|
|
2122
|
-
function
|
|
2123
|
-
return JSON.stringify(exports.
|
|
2700
|
+
function updatePromptContentPromptsResponse2002ToJSON(updatePromptContentPromptsResponse2002) {
|
|
2701
|
+
return JSON.stringify(exports.UpdatePromptContentPromptsResponse2002$outboundSchema.parse(updatePromptContentPromptsResponse2002));
|
|
2124
2702
|
}
|
|
2125
|
-
function
|
|
2126
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
2703
|
+
function updatePromptContentPromptsResponse2002FromJSON(jsonString) {
|
|
2704
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptContentPromptsResponse2002$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptContentPromptsResponse2002' from JSON`);
|
|
2127
2705
|
}
|
|
2128
2706
|
/** @internal */
|
|
2129
|
-
exports.
|
|
2707
|
+
exports.UpdatePromptMessagesPromptsResponse200Content$inboundSchema = z.union([
|
|
2130
2708
|
z.string(),
|
|
2131
2709
|
z.array(z.union([
|
|
2132
|
-
z.
|
|
2133
|
-
|
|
2134
|
-
|
|
2710
|
+
components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
|
|
2711
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
2712
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
2713
|
+
z.lazy(() => exports.UpdatePrompt2Prompts4$inboundSchema),
|
|
2135
2714
|
])),
|
|
2136
2715
|
]);
|
|
2137
2716
|
/** @internal */
|
|
2138
|
-
exports.
|
|
2717
|
+
exports.UpdatePromptMessagesPromptsResponse200Content$outboundSchema = z.union([
|
|
2139
2718
|
z.string(),
|
|
2140
2719
|
z.array(z.union([
|
|
2141
|
-
z.
|
|
2142
|
-
|
|
2143
|
-
|
|
2720
|
+
components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
|
|
2721
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
2722
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
2723
|
+
z.lazy(() => exports.UpdatePrompt2Prompts4$outboundSchema),
|
|
2144
2724
|
])),
|
|
2145
2725
|
]);
|
|
2146
|
-
function
|
|
2147
|
-
return JSON.stringify(exports.
|
|
2726
|
+
function updatePromptMessagesPromptsResponse200ContentToJSON(updatePromptMessagesPromptsResponse200Content) {
|
|
2727
|
+
return JSON.stringify(exports.UpdatePromptMessagesPromptsResponse200Content$outboundSchema.parse(updatePromptMessagesPromptsResponse200Content));
|
|
2148
2728
|
}
|
|
2149
|
-
function
|
|
2150
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
2729
|
+
function updatePromptMessagesPromptsResponse200ContentFromJSON(jsonString) {
|
|
2730
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptMessagesPromptsResponse200Content$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptMessagesPromptsResponse200Content' from JSON`);
|
|
2151
2731
|
}
|
|
2152
2732
|
/** @internal */
|
|
2153
|
-
exports.
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2733
|
+
exports.UpdatePromptMessagesPromptsUserMessage$inboundSchema = z.object({
|
|
2734
|
+
role: z.literal("user"),
|
|
2735
|
+
name: z.string().optional(),
|
|
2736
|
+
content: z.union([
|
|
2737
|
+
z.string(),
|
|
2738
|
+
z.array(z.union([
|
|
2739
|
+
components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
|
|
2740
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
2741
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
2742
|
+
z.lazy(() => exports.UpdatePrompt2Prompts4$inboundSchema),
|
|
2743
|
+
])),
|
|
2744
|
+
]),
|
|
2160
2745
|
});
|
|
2161
2746
|
/** @internal */
|
|
2162
|
-
exports.
|
|
2163
|
-
|
|
2164
|
-
|
|
2747
|
+
exports.UpdatePromptMessagesPromptsUserMessage$outboundSchema = z.object({
|
|
2748
|
+
role: z.literal("user"),
|
|
2749
|
+
name: z.string().optional(),
|
|
2750
|
+
content: z.union([
|
|
2751
|
+
z.string(),
|
|
2752
|
+
z.array(z.union([
|
|
2753
|
+
components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
|
|
2754
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
2755
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
2756
|
+
z.lazy(() => exports.UpdatePrompt2Prompts4$outboundSchema),
|
|
2757
|
+
])),
|
|
2758
|
+
]),
|
|
2165
2759
|
});
|
|
2166
|
-
function
|
|
2167
|
-
return JSON.stringify(exports.
|
|
2760
|
+
function updatePromptMessagesPromptsUserMessageToJSON(updatePromptMessagesPromptsUserMessage) {
|
|
2761
|
+
return JSON.stringify(exports.UpdatePromptMessagesPromptsUserMessage$outboundSchema.parse(updatePromptMessagesPromptsUserMessage));
|
|
2168
2762
|
}
|
|
2169
|
-
function
|
|
2170
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
2763
|
+
function updatePromptMessagesPromptsUserMessageFromJSON(jsonString) {
|
|
2764
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptMessagesPromptsUserMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptMessagesPromptsUserMessage' from JSON`);
|
|
2171
2765
|
}
|
|
2172
2766
|
/** @internal */
|
|
2173
|
-
exports.
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
function: z.lazy(() => exports.UpdatePromptPromptsFunction$inboundSchema),
|
|
2178
|
-
});
|
|
2767
|
+
exports.UpdatePromptMessagesPromptsResponseContent$inboundSchema = z.union([
|
|
2768
|
+
z.string(),
|
|
2769
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
2770
|
+
]);
|
|
2179
2771
|
/** @internal */
|
|
2180
|
-
exports.
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
function updatePromptPromptsToolCallsToJSON(updatePromptPromptsToolCalls) {
|
|
2187
|
-
return JSON.stringify(exports.UpdatePromptPromptsToolCalls$outboundSchema.parse(updatePromptPromptsToolCalls));
|
|
2772
|
+
exports.UpdatePromptMessagesPromptsResponseContent$outboundSchema = z.union([
|
|
2773
|
+
z.string(),
|
|
2774
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
2775
|
+
]);
|
|
2776
|
+
function updatePromptMessagesPromptsResponseContentToJSON(updatePromptMessagesPromptsResponseContent) {
|
|
2777
|
+
return JSON.stringify(exports.UpdatePromptMessagesPromptsResponseContent$outboundSchema.parse(updatePromptMessagesPromptsResponseContent));
|
|
2188
2778
|
}
|
|
2189
|
-
function
|
|
2190
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
2779
|
+
function updatePromptMessagesPromptsResponseContentFromJSON(jsonString) {
|
|
2780
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptMessagesPromptsResponseContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptMessagesPromptsResponseContent' from JSON`);
|
|
2191
2781
|
}
|
|
2192
2782
|
/** @internal */
|
|
2193
|
-
exports.
|
|
2194
|
-
role:
|
|
2195
|
-
content: z.
|
|
2783
|
+
exports.UpdatePromptMessagesPromptsSystemMessage$inboundSchema = z.object({
|
|
2784
|
+
role: z.literal("system"),
|
|
2785
|
+
content: z.union([
|
|
2196
2786
|
z.string(),
|
|
2197
|
-
z.array(
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
z.lazy(() => exports.UpdatePrompt2Prompts3$inboundSchema),
|
|
2201
|
-
])),
|
|
2202
|
-
])),
|
|
2203
|
-
tool_calls: z.array(z.lazy(() => exports.UpdatePromptPromptsToolCalls$inboundSchema))
|
|
2204
|
-
.optional(),
|
|
2205
|
-
tool_call_id: z.nullable(z.string()).optional(),
|
|
2206
|
-
}).transform((v) => {
|
|
2207
|
-
return (0, primitives_js_1.remap)(v, {
|
|
2208
|
-
"tool_calls": "toolCalls",
|
|
2209
|
-
"tool_call_id": "toolCallId",
|
|
2210
|
-
});
|
|
2787
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
2788
|
+
]),
|
|
2789
|
+
name: z.string().optional(),
|
|
2211
2790
|
});
|
|
2212
2791
|
/** @internal */
|
|
2213
|
-
exports.
|
|
2214
|
-
role:
|
|
2215
|
-
content: z.
|
|
2792
|
+
exports.UpdatePromptMessagesPromptsSystemMessage$outboundSchema = z.object({
|
|
2793
|
+
role: z.literal("system"),
|
|
2794
|
+
content: z.union([
|
|
2216
2795
|
z.string(),
|
|
2217
|
-
z.array(
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
z.lazy(() => exports.UpdatePrompt2Prompts3$outboundSchema),
|
|
2221
|
-
])),
|
|
2222
|
-
])),
|
|
2223
|
-
toolCalls: z.array(z.lazy(() => exports.UpdatePromptPromptsToolCalls$outboundSchema))
|
|
2224
|
-
.optional(),
|
|
2225
|
-
toolCallId: z.nullable(z.string()).optional(),
|
|
2226
|
-
}).transform((v) => {
|
|
2227
|
-
return (0, primitives_js_1.remap)(v, {
|
|
2228
|
-
toolCalls: "tool_calls",
|
|
2229
|
-
toolCallId: "tool_call_id",
|
|
2230
|
-
});
|
|
2796
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
2797
|
+
]),
|
|
2798
|
+
name: z.string().optional(),
|
|
2231
2799
|
});
|
|
2800
|
+
function updatePromptMessagesPromptsSystemMessageToJSON(updatePromptMessagesPromptsSystemMessage) {
|
|
2801
|
+
return JSON.stringify(exports.UpdatePromptMessagesPromptsSystemMessage$outboundSchema.parse(updatePromptMessagesPromptsSystemMessage));
|
|
2802
|
+
}
|
|
2803
|
+
function updatePromptMessagesPromptsSystemMessageFromJSON(jsonString) {
|
|
2804
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptMessagesPromptsSystemMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptMessagesPromptsSystemMessage' from JSON`);
|
|
2805
|
+
}
|
|
2806
|
+
/** @internal */
|
|
2807
|
+
exports.UpdatePromptPromptsResponseMessages$inboundSchema = z.union([
|
|
2808
|
+
z.lazy(() => exports.UpdatePromptMessagesPromptsSystemMessage$inboundSchema),
|
|
2809
|
+
z.lazy(() => exports.UpdatePromptMessagesPromptsUserMessage$inboundSchema),
|
|
2810
|
+
z.lazy(() => exports.UpdatePromptMessagesPromptsAssistantMessage$inboundSchema),
|
|
2811
|
+
z.lazy(() => exports.UpdatePromptMessagesPromptsToolMessage$inboundSchema),
|
|
2812
|
+
]);
|
|
2813
|
+
/** @internal */
|
|
2814
|
+
exports.UpdatePromptPromptsResponseMessages$outboundSchema = z.union([
|
|
2815
|
+
z.lazy(() => exports.UpdatePromptMessagesPromptsSystemMessage$outboundSchema),
|
|
2816
|
+
z.lazy(() => exports.UpdatePromptMessagesPromptsUserMessage$outboundSchema),
|
|
2817
|
+
z.lazy(() => exports.UpdatePromptMessagesPromptsAssistantMessage$outboundSchema),
|
|
2818
|
+
z.lazy(() => exports.UpdatePromptMessagesPromptsToolMessage$outboundSchema),
|
|
2819
|
+
]);
|
|
2232
2820
|
function updatePromptPromptsResponseMessagesToJSON(updatePromptPromptsResponseMessages) {
|
|
2233
2821
|
return JSON.stringify(exports.UpdatePromptPromptsResponseMessages$outboundSchema.parse(updatePromptPromptsResponseMessages));
|
|
2234
2822
|
}
|
|
@@ -2236,48 +2824,131 @@ function updatePromptPromptsResponseMessagesFromJSON(jsonString) {
|
|
|
2236
2824
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptPromptsResponseMessages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptPromptsResponseMessages' from JSON`);
|
|
2237
2825
|
}
|
|
2238
2826
|
/** @internal */
|
|
2239
|
-
exports.
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2827
|
+
exports.UpdatePromptPromptField$inboundSchema = z.object({
|
|
2828
|
+
audio: z.nullable(z.lazy(() => exports.UpdatePromptPromptsAudio$inboundSchema))
|
|
2829
|
+
.optional(),
|
|
2830
|
+
frequency_penalty: z.nullable(z.number()).optional(),
|
|
2831
|
+
max_tokens: z.nullable(z.number().int()).optional(),
|
|
2832
|
+
max_completion_tokens: z.nullable(z.number().int()).optional(),
|
|
2833
|
+
logprobs: z.nullable(z.boolean()).optional(),
|
|
2834
|
+
top_logprobs: z.nullable(z.number().int()).optional(),
|
|
2835
|
+
n: z.nullable(z.number().int()).optional(),
|
|
2836
|
+
presence_penalty: z.nullable(z.number()).optional(),
|
|
2837
|
+
response_format: z.union([
|
|
2838
|
+
z.lazy(() => exports.UpdatePromptResponseFormatPromptsText$inboundSchema),
|
|
2839
|
+
z.lazy(() => exports.UpdatePromptResponseFormatPromptsJSONObject$inboundSchema),
|
|
2840
|
+
z.lazy(() => exports.UpdatePromptResponseFormatPromptsResponse200JSONSchema$inboundSchema),
|
|
2841
|
+
]).optional(),
|
|
2842
|
+
reasoning_effort: exports.UpdatePromptPromptsReasoningEffort$inboundSchema.optional(),
|
|
2843
|
+
verbosity: z.string().optional(),
|
|
2844
|
+
seed: z.nullable(z.number()).optional(),
|
|
2845
|
+
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
2846
|
+
stream_options: z.nullable(z.lazy(() => exports.UpdatePromptPromptsStreamOptions$inboundSchema)).optional(),
|
|
2847
|
+
thinking: z.union([
|
|
2848
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
2849
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
2850
|
+
]).optional(),
|
|
2851
|
+
temperature: z.nullable(z.number()).optional(),
|
|
2852
|
+
top_p: z.nullable(z.number()).optional(),
|
|
2853
|
+
top_k: z.nullable(z.number()).optional(),
|
|
2854
|
+
tool_choice: z.union([
|
|
2855
|
+
z.lazy(() => exports.UpdatePromptToolChoicePrompts2$inboundSchema),
|
|
2856
|
+
exports.UpdatePromptToolChoicePrompts1$inboundSchema,
|
|
2857
|
+
]).optional(),
|
|
2858
|
+
parallel_tool_calls: z.boolean().optional(),
|
|
2859
|
+
modalities: z.nullable(z.array(exports.UpdatePromptPromptsModalities$inboundSchema))
|
|
2860
|
+
.optional(),
|
|
2861
|
+
guardrails: z.array(z.lazy(() => exports.UpdatePromptPromptsGuardrails$inboundSchema))
|
|
2862
|
+
.optional(),
|
|
2863
|
+
messages: z.array(z.union([
|
|
2864
|
+
z.lazy(() => exports.UpdatePromptMessagesPromptsSystemMessage$inboundSchema),
|
|
2865
|
+
z.lazy(() => exports.UpdatePromptMessagesPromptsUserMessage$inboundSchema),
|
|
2866
|
+
z.lazy(() => exports.UpdatePromptMessagesPromptsAssistantMessage$inboundSchema),
|
|
2867
|
+
z.lazy(() => exports.UpdatePromptMessagesPromptsToolMessage$inboundSchema),
|
|
2868
|
+
])).optional(),
|
|
2869
|
+
model: z.nullable(z.string()).optional(),
|
|
2247
2870
|
version: z.string().optional(),
|
|
2248
|
-
messages: z.array(z.lazy(() => exports.UpdatePromptPromptsResponseMessages$inboundSchema)),
|
|
2249
2871
|
}).transform((v) => {
|
|
2250
2872
|
return (0, primitives_js_1.remap)(v, {
|
|
2251
|
-
"
|
|
2252
|
-
"
|
|
2253
|
-
"
|
|
2254
|
-
"
|
|
2873
|
+
"frequency_penalty": "frequencyPenalty",
|
|
2874
|
+
"max_tokens": "maxTokens",
|
|
2875
|
+
"max_completion_tokens": "maxCompletionTokens",
|
|
2876
|
+
"top_logprobs": "topLogprobs",
|
|
2877
|
+
"presence_penalty": "presencePenalty",
|
|
2878
|
+
"response_format": "responseFormat",
|
|
2879
|
+
"reasoning_effort": "reasoningEffort",
|
|
2880
|
+
"stream_options": "streamOptions",
|
|
2881
|
+
"top_p": "topP",
|
|
2882
|
+
"top_k": "topK",
|
|
2883
|
+
"tool_choice": "toolChoice",
|
|
2884
|
+
"parallel_tool_calls": "parallelToolCalls",
|
|
2255
2885
|
});
|
|
2256
2886
|
});
|
|
2257
2887
|
/** @internal */
|
|
2258
|
-
exports.
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2888
|
+
exports.UpdatePromptPromptField$outboundSchema = z.object({
|
|
2889
|
+
audio: z.nullable(z.lazy(() => exports.UpdatePromptPromptsAudio$outboundSchema))
|
|
2890
|
+
.optional(),
|
|
2891
|
+
frequencyPenalty: z.nullable(z.number()).optional(),
|
|
2892
|
+
maxTokens: z.nullable(z.number().int()).optional(),
|
|
2893
|
+
maxCompletionTokens: z.nullable(z.number().int()).optional(),
|
|
2894
|
+
logprobs: z.nullable(z.boolean()).optional(),
|
|
2895
|
+
topLogprobs: z.nullable(z.number().int()).optional(),
|
|
2896
|
+
n: z.nullable(z.number().int()).optional(),
|
|
2897
|
+
presencePenalty: z.nullable(z.number()).optional(),
|
|
2898
|
+
responseFormat: z.union([
|
|
2899
|
+
z.lazy(() => exports.UpdatePromptResponseFormatPromptsText$outboundSchema),
|
|
2900
|
+
z.lazy(() => exports.UpdatePromptResponseFormatPromptsJSONObject$outboundSchema),
|
|
2901
|
+
z.lazy(() => exports.UpdatePromptResponseFormatPromptsResponse200JSONSchema$outboundSchema),
|
|
2902
|
+
]).optional(),
|
|
2903
|
+
reasoningEffort: exports.UpdatePromptPromptsReasoningEffort$outboundSchema.optional(),
|
|
2904
|
+
verbosity: z.string().optional(),
|
|
2905
|
+
seed: z.nullable(z.number()).optional(),
|
|
2906
|
+
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
2907
|
+
streamOptions: z.nullable(z.lazy(() => exports.UpdatePromptPromptsStreamOptions$outboundSchema)).optional(),
|
|
2908
|
+
thinking: z.union([
|
|
2909
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
2910
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
2911
|
+
]).optional(),
|
|
2912
|
+
temperature: z.nullable(z.number()).optional(),
|
|
2913
|
+
topP: z.nullable(z.number()).optional(),
|
|
2914
|
+
topK: z.nullable(z.number()).optional(),
|
|
2915
|
+
toolChoice: z.union([
|
|
2916
|
+
z.lazy(() => exports.UpdatePromptToolChoicePrompts2$outboundSchema),
|
|
2917
|
+
exports.UpdatePromptToolChoicePrompts1$outboundSchema,
|
|
2918
|
+
]).optional(),
|
|
2919
|
+
parallelToolCalls: z.boolean().optional(),
|
|
2920
|
+
modalities: z.nullable(z.array(exports.UpdatePromptPromptsModalities$outboundSchema))
|
|
2921
|
+
.optional(),
|
|
2922
|
+
guardrails: z.array(z.lazy(() => exports.UpdatePromptPromptsGuardrails$outboundSchema)).optional(),
|
|
2923
|
+
messages: z.array(z.union([
|
|
2924
|
+
z.lazy(() => exports.UpdatePromptMessagesPromptsSystemMessage$outboundSchema),
|
|
2925
|
+
z.lazy(() => exports.UpdatePromptMessagesPromptsUserMessage$outboundSchema),
|
|
2926
|
+
z.lazy(() => exports.UpdatePromptMessagesPromptsAssistantMessage$outboundSchema),
|
|
2927
|
+
z.lazy(() => exports.UpdatePromptMessagesPromptsToolMessage$outboundSchema),
|
|
2928
|
+
])).optional(),
|
|
2929
|
+
model: z.nullable(z.string()).optional(),
|
|
2266
2930
|
version: z.string().optional(),
|
|
2267
|
-
messages: z.array(z.lazy(() => exports.UpdatePromptPromptsResponseMessages$outboundSchema)),
|
|
2268
2931
|
}).transform((v) => {
|
|
2269
2932
|
return (0, primitives_js_1.remap)(v, {
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2933
|
+
frequencyPenalty: "frequency_penalty",
|
|
2934
|
+
maxTokens: "max_tokens",
|
|
2935
|
+
maxCompletionTokens: "max_completion_tokens",
|
|
2936
|
+
topLogprobs: "top_logprobs",
|
|
2937
|
+
presencePenalty: "presence_penalty",
|
|
2938
|
+
responseFormat: "response_format",
|
|
2939
|
+
reasoningEffort: "reasoning_effort",
|
|
2940
|
+
streamOptions: "stream_options",
|
|
2941
|
+
topP: "top_p",
|
|
2942
|
+
topK: "top_k",
|
|
2943
|
+
toolChoice: "tool_choice",
|
|
2944
|
+
parallelToolCalls: "parallel_tool_calls",
|
|
2274
2945
|
});
|
|
2275
2946
|
});
|
|
2276
|
-
function
|
|
2277
|
-
return JSON.stringify(exports.
|
|
2947
|
+
function updatePromptPromptFieldToJSON(updatePromptPromptField) {
|
|
2948
|
+
return JSON.stringify(exports.UpdatePromptPromptField$outboundSchema.parse(updatePromptPromptField));
|
|
2278
2949
|
}
|
|
2279
|
-
function
|
|
2280
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
2950
|
+
function updatePromptPromptFieldFromJSON(jsonString) {
|
|
2951
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePromptPromptField$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePromptPromptField' from JSON`);
|
|
2281
2952
|
}
|
|
2282
2953
|
/** @internal */
|
|
2283
2954
|
exports.UpdatePromptPromptsUseCases$inboundSchema = z.nativeEnum(exports.UpdatePromptPromptsUseCases);
|
|
@@ -2314,7 +2985,7 @@ function updatePromptPromptsMetadataFromJSON(jsonString) {
|
|
|
2314
2985
|
/** @internal */
|
|
2315
2986
|
exports.UpdatePromptPrompt$inboundSchema = z.object({
|
|
2316
2987
|
_id: z.string(),
|
|
2317
|
-
type: exports.
|
|
2988
|
+
type: exports.UpdatePromptType$inboundSchema,
|
|
2318
2989
|
owner: z.string(),
|
|
2319
2990
|
domain_id: z.string(),
|
|
2320
2991
|
created: z.string(),
|
|
@@ -2323,7 +2994,9 @@ exports.UpdatePromptPrompt$inboundSchema = z.object({
|
|
|
2323
2994
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
2324
2995
|
display_name: z.string(),
|
|
2325
2996
|
description: z.nullable(z.string()).optional(),
|
|
2326
|
-
prompt_config: z.lazy(() => exports.UpdatePromptPromptConfig$inboundSchema)
|
|
2997
|
+
prompt_config: z.lazy(() => exports.UpdatePromptPromptConfig$inboundSchema)
|
|
2998
|
+
.optional(),
|
|
2999
|
+
prompt: z.lazy(() => exports.UpdatePromptPromptField$inboundSchema),
|
|
2327
3000
|
metadata: z.lazy(() => exports.UpdatePromptPromptsMetadata$inboundSchema).optional(),
|
|
2328
3001
|
}).transform((v) => {
|
|
2329
3002
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -2338,7 +3011,7 @@ exports.UpdatePromptPrompt$inboundSchema = z.object({
|
|
|
2338
3011
|
/** @internal */
|
|
2339
3012
|
exports.UpdatePromptPrompt$outboundSchema = z.object({
|
|
2340
3013
|
id: z.string(),
|
|
2341
|
-
type: exports.
|
|
3014
|
+
type: exports.UpdatePromptType$outboundSchema,
|
|
2342
3015
|
owner: z.string(),
|
|
2343
3016
|
domainId: z.string(),
|
|
2344
3017
|
created: z.string(),
|
|
@@ -2347,7 +3020,9 @@ exports.UpdatePromptPrompt$outboundSchema = z.object({
|
|
|
2347
3020
|
updatedById: z.nullable(z.string()).optional(),
|
|
2348
3021
|
displayName: z.string(),
|
|
2349
3022
|
description: z.nullable(z.string()).optional(),
|
|
2350
|
-
promptConfig: z.lazy(() => exports.UpdatePromptPromptConfig$outboundSchema)
|
|
3023
|
+
promptConfig: z.lazy(() => exports.UpdatePromptPromptConfig$outboundSchema)
|
|
3024
|
+
.optional(),
|
|
3025
|
+
prompt: z.lazy(() => exports.UpdatePromptPromptField$outboundSchema),
|
|
2351
3026
|
metadata: z.lazy(() => exports.UpdatePromptPromptsMetadata$outboundSchema).optional(),
|
|
2352
3027
|
}).transform((v) => {
|
|
2353
3028
|
return (0, primitives_js_1.remap)(v, {
|