@orq-ai/node 4.2.0-rc.44 → 4.2.0-rc.46
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 +4770 -1625
- 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 +3 -3
- package/lib/config.js +3 -3
- 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 +3 -3
- 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,20 +36,23 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
39
|
+
exports.ListPromptVersionsResponseFormat3$outboundSchema = exports.ListPromptVersionsResponseFormat3$inboundSchema = exports.ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$outboundSchema = exports.ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema = exports.ListPromptVersionsResponseFormat4$outboundSchema = exports.ListPromptVersionsResponseFormat4$inboundSchema = exports.ListPromptVersionsResponseFormat5$outboundSchema = exports.ListPromptVersionsResponseFormat5$inboundSchema = exports.ListPromptVersionsResponseFormat6$outboundSchema = exports.ListPromptVersionsResponseFormat6$inboundSchema = exports.ListPromptVersionsFormat$outboundSchema = exports.ListPromptVersionsFormat$inboundSchema = exports.ListPromptVersionsModelType$outboundSchema = exports.ListPromptVersionsModelType$inboundSchema = exports.ListPromptVersionsObject$outboundSchema = exports.ListPromptVersionsObject$inboundSchema = exports.ListPromptVersionsRequest$outboundSchema = exports.ListPromptVersionsRequest$inboundSchema = exports.ListPromptVersionsLanguage = exports.ListPromptVersionsUseCases = exports.ListPromptVersions2Ttl = exports.ListPromptVersions2PromptsResponse200ApplicationJSONType = exports.ListPromptVersionsMessagesType = exports.ListPromptVersionsMessagesTtl = exports.ListPromptVersionsMessagesPromptsType = exports.ListPromptVersionsExecuteOn = exports.ListPromptVersionsId1 = exports.ListPromptVersionsModalities = exports.ListPromptVersionsToolChoice1 = exports.ListPromptVersionsToolChoiceType = exports.ListPromptVersionsReasoningEffort = exports.ListPromptVersionsPromptsFormat = exports.ListPromptVersionsVoice = exports.ListPromptVersionsType = exports.ListPromptVersionsRole = exports.ListPromptVersionsProvider = exports.ListPromptVersionsThinkingLevel = exports.ListPromptVersionsVerbosity = exports.ListPromptVersionsPromptsReasoningEffort = exports.ListPromptVersionsEncodingFormat = exports.ListPromptVersionsPhotoRealVersion = exports.ListPromptVersionsResponseFormatPromptsResponse200Type = exports.ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType = exports.ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType = exports.ListPromptVersionsResponseFormat4 = exports.ListPromptVersionsResponseFormat5 = exports.ListPromptVersionsResponseFormat6 = exports.ListPromptVersionsFormat = exports.ListPromptVersionsModelType = exports.ListPromptVersionsObject = void 0;
|
|
40
|
+
exports.ListPromptVersionsMessages$outboundSchema = exports.ListPromptVersionsMessages$inboundSchema = exports.ListPromptVersionsToolCalls$outboundSchema = exports.ListPromptVersionsToolCalls$inboundSchema = exports.ListPromptVersionsFunction$outboundSchema = exports.ListPromptVersionsFunction$inboundSchema = exports.ListPromptVersionsType$outboundSchema = exports.ListPromptVersionsType$inboundSchema = exports.ListPromptVersionsContent$outboundSchema = exports.ListPromptVersionsContent$inboundSchema = exports.ListPromptVersionsContent2$outboundSchema = exports.ListPromptVersionsContent2$inboundSchema = exports.ListPromptVersions21$outboundSchema = exports.ListPromptVersions21$inboundSchema = exports.ListPromptVersions22$outboundSchema = exports.ListPromptVersions22$inboundSchema = exports.ListPromptVersions2ImageUrl$outboundSchema = exports.ListPromptVersions2ImageUrl$inboundSchema = exports.ListPromptVersions23$outboundSchema = exports.ListPromptVersions23$inboundSchema = exports.ListPromptVersions2File$outboundSchema = exports.ListPromptVersions2File$inboundSchema = exports.ListPromptVersionsRole$outboundSchema = exports.ListPromptVersionsRole$inboundSchema = exports.ListPromptVersionsProvider$outboundSchema = exports.ListPromptVersionsProvider$inboundSchema = exports.ListPromptVersionsModelParameters$outboundSchema = exports.ListPromptVersionsModelParameters$inboundSchema = exports.ListPromptVersionsThinkingLevel$outboundSchema = exports.ListPromptVersionsThinkingLevel$inboundSchema = exports.ListPromptVersionsVerbosity$outboundSchema = exports.ListPromptVersionsVerbosity$inboundSchema = exports.ListPromptVersionsPromptsReasoningEffort$outboundSchema = exports.ListPromptVersionsPromptsReasoningEffort$inboundSchema = exports.ListPromptVersionsEncodingFormat$outboundSchema = exports.ListPromptVersionsEncodingFormat$inboundSchema = exports.ListPromptVersionsPhotoRealVersion$outboundSchema = exports.ListPromptVersionsPhotoRealVersion$inboundSchema = exports.ListPromptVersionsPromptsResponseFormat$outboundSchema = exports.ListPromptVersionsPromptsResponseFormat$inboundSchema = exports.ListPromptVersionsResponseFormat1$outboundSchema = exports.ListPromptVersionsResponseFormat1$inboundSchema = exports.ListPromptVersionsResponseFormatPromptsResponseJsonSchema$outboundSchema = exports.ListPromptVersionsResponseFormatPromptsResponseJsonSchema$inboundSchema = exports.ListPromptVersionsResponseFormatPromptsResponse200Type$outboundSchema = exports.ListPromptVersionsResponseFormatPromptsResponse200Type$inboundSchema = exports.ListPromptVersionsResponseFormat2$outboundSchema = exports.ListPromptVersionsResponseFormat2$inboundSchema = exports.ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema = exports.ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema = void 0;
|
|
41
|
+
exports.ListPromptVersionsMessagesPromptsResponse200Content$outboundSchema = exports.ListPromptVersionsMessagesPromptsResponse200Content$inboundSchema = exports.ListPromptVersionsContentPromptsResponse2002$outboundSchema = exports.ListPromptVersionsContentPromptsResponse2002$inboundSchema = exports.ListPromptVersionsGuardrails$outboundSchema = exports.ListPromptVersionsGuardrails$inboundSchema = exports.ListPromptVersionsExecuteOn$outboundSchema = exports.ListPromptVersionsExecuteOn$inboundSchema = exports.ListPromptVersionsId$outboundSchema = exports.ListPromptVersionsId$inboundSchema = exports.ListPromptVersionsId1$outboundSchema = exports.ListPromptVersionsId1$inboundSchema = exports.ListPromptVersionsModalities$outboundSchema = exports.ListPromptVersionsModalities$inboundSchema = exports.ListPromptVersionsToolChoice$outboundSchema = exports.ListPromptVersionsToolChoice$inboundSchema = exports.ListPromptVersionsToolChoice1$outboundSchema = exports.ListPromptVersionsToolChoice1$inboundSchema = exports.ListPromptVersionsToolChoice2$outboundSchema = exports.ListPromptVersionsToolChoice2$inboundSchema = exports.ListPromptVersionsToolChoiceFunction$outboundSchema = exports.ListPromptVersionsToolChoiceFunction$inboundSchema = exports.ListPromptVersionsToolChoiceType$outboundSchema = exports.ListPromptVersionsToolChoiceType$inboundSchema = exports.ListPromptVersionsThinking$outboundSchema = exports.ListPromptVersionsThinking$inboundSchema = exports.ListPromptVersionsStreamOptions$outboundSchema = exports.ListPromptVersionsStreamOptions$inboundSchema = exports.ListPromptVersionsStop$outboundSchema = exports.ListPromptVersionsStop$inboundSchema = exports.ListPromptVersionsReasoningEffort$outboundSchema = exports.ListPromptVersionsReasoningEffort$inboundSchema = exports.ListPromptVersionsResponseFormat$outboundSchema = exports.ListPromptVersionsResponseFormat$inboundSchema = exports.ListPromptVersionsResponseFormatText$outboundSchema = exports.ListPromptVersionsResponseFormatText$inboundSchema = exports.ListPromptVersionsResponseFormatJSONObject$outboundSchema = exports.ListPromptVersionsResponseFormatJSONObject$inboundSchema = exports.ListPromptVersionsResponseFormatPromptsJSONSchema$outboundSchema = exports.ListPromptVersionsResponseFormatPromptsJSONSchema$inboundSchema = exports.ListPromptVersionsResponseFormatJsonSchema$outboundSchema = exports.ListPromptVersionsResponseFormatJsonSchema$inboundSchema = exports.ListPromptVersionsAudio$outboundSchema = exports.ListPromptVersionsAudio$inboundSchema = exports.ListPromptVersionsPromptsFormat$outboundSchema = exports.ListPromptVersionsPromptsFormat$inboundSchema = exports.ListPromptVersionsVoice$outboundSchema = exports.ListPromptVersionsVoice$inboundSchema = exports.ListPromptVersionsPromptConfig$outboundSchema = exports.ListPromptVersionsPromptConfig$inboundSchema = void 0;
|
|
42
|
+
exports.ListPromptVersionsMetadata$outboundSchema = exports.ListPromptVersionsMetadata$inboundSchema = exports.ListPromptVersionsLanguage$outboundSchema = exports.ListPromptVersionsLanguage$inboundSchema = exports.ListPromptVersionsUseCases$outboundSchema = exports.ListPromptVersionsUseCases$inboundSchema = exports.ListPromptVersionsPromptField$outboundSchema = exports.ListPromptVersionsPromptField$inboundSchema = exports.ListPromptVersionsPromptsMessages$outboundSchema = exports.ListPromptVersionsPromptsMessages$inboundSchema = exports.ListPromptVersionsMessagesSystemMessage$outboundSchema = exports.ListPromptVersionsMessagesSystemMessage$inboundSchema = exports.ListPromptVersionsMessagesContent$outboundSchema = exports.ListPromptVersionsMessagesContent$inboundSchema = exports.ListPromptVersionsMessagesUserMessage$outboundSchema = exports.ListPromptVersionsMessagesUserMessage$inboundSchema = exports.ListPromptVersionsMessagesPromptsContent$outboundSchema = exports.ListPromptVersionsMessagesPromptsContent$inboundSchema = exports.ListPromptVersionsContentPrompts2$outboundSchema = exports.ListPromptVersionsContentPrompts2$inboundSchema = exports.ListPromptVersions24$outboundSchema = exports.ListPromptVersions24$inboundSchema = exports.ListPromptVersions2CacheControl$outboundSchema = exports.ListPromptVersions2CacheControl$inboundSchema = exports.ListPromptVersions2Ttl$outboundSchema = exports.ListPromptVersions2Ttl$inboundSchema = exports.ListPromptVersions2PromptsResponse200ApplicationJSONType$outboundSchema = exports.ListPromptVersions2PromptsResponse200ApplicationJSONType$inboundSchema = exports.ListPromptVersionsMessagesAssistantMessage$outboundSchema = exports.ListPromptVersionsMessagesAssistantMessage$inboundSchema = exports.ListPromptVersionsMessagesToolCalls$outboundSchema = exports.ListPromptVersionsMessagesToolCalls$inboundSchema = exports.ListPromptVersionsMessagesFunction$outboundSchema = exports.ListPromptVersionsMessagesFunction$inboundSchema = exports.ListPromptVersionsMessagesType$outboundSchema = exports.ListPromptVersionsMessagesType$inboundSchema = exports.ListPromptVersionsMessagesAudio$outboundSchema = exports.ListPromptVersionsMessagesAudio$inboundSchema = exports.ListPromptVersionsMessagesPromptsResponseContent$outboundSchema = exports.ListPromptVersionsMessagesPromptsResponseContent$inboundSchema = exports.ListPromptVersionsContentPromptsResponse2$outboundSchema = exports.ListPromptVersionsContentPromptsResponse2$inboundSchema = exports.ListPromptVersionsMessagesToolMessage$outboundSchema = exports.ListPromptVersionsMessagesToolMessage$inboundSchema = exports.ListPromptVersionsMessagesCacheControl$outboundSchema = exports.ListPromptVersionsMessagesCacheControl$inboundSchema = exports.ListPromptVersionsMessagesTtl$outboundSchema = exports.ListPromptVersionsMessagesTtl$inboundSchema = exports.ListPromptVersionsMessagesPromptsType$outboundSchema = exports.ListPromptVersionsMessagesPromptsType$inboundSchema = void 0;
|
|
43
|
+
exports.ListPromptVersionsResponseBody$outboundSchema = exports.ListPromptVersionsResponseBody$inboundSchema = exports.ListPromptVersionsData$outboundSchema = exports.ListPromptVersionsData$inboundSchema = void 0;
|
|
41
44
|
exports.listPromptVersionsRequestToJSON = listPromptVersionsRequestToJSON;
|
|
42
45
|
exports.listPromptVersionsRequestFromJSON = listPromptVersionsRequestFromJSON;
|
|
43
46
|
exports.listPromptVersionsResponseFormat3ToJSON = listPromptVersionsResponseFormat3ToJSON;
|
|
44
47
|
exports.listPromptVersionsResponseFormat3FromJSON = listPromptVersionsResponseFormat3FromJSON;
|
|
45
48
|
exports.listPromptVersionsResponseFormat2ToJSON = listPromptVersionsResponseFormat2ToJSON;
|
|
46
49
|
exports.listPromptVersionsResponseFormat2FromJSON = listPromptVersionsResponseFormat2FromJSON;
|
|
47
|
-
exports.
|
|
48
|
-
exports.
|
|
50
|
+
exports.listPromptVersionsResponseFormatPromptsResponseJsonSchemaToJSON = listPromptVersionsResponseFormatPromptsResponseJsonSchemaToJSON;
|
|
51
|
+
exports.listPromptVersionsResponseFormatPromptsResponseJsonSchemaFromJSON = listPromptVersionsResponseFormatPromptsResponseJsonSchemaFromJSON;
|
|
49
52
|
exports.listPromptVersionsResponseFormat1ToJSON = listPromptVersionsResponseFormat1ToJSON;
|
|
50
53
|
exports.listPromptVersionsResponseFormat1FromJSON = listPromptVersionsResponseFormat1FromJSON;
|
|
51
|
-
exports.
|
|
52
|
-
exports.
|
|
54
|
+
exports.listPromptVersionsPromptsResponseFormatToJSON = listPromptVersionsPromptsResponseFormatToJSON;
|
|
55
|
+
exports.listPromptVersionsPromptsResponseFormatFromJSON = listPromptVersionsPromptsResponseFormatFromJSON;
|
|
53
56
|
exports.listPromptVersionsModelParametersToJSON = listPromptVersionsModelParametersToJSON;
|
|
54
57
|
exports.listPromptVersionsModelParametersFromJSON = listPromptVersionsModelParametersFromJSON;
|
|
55
58
|
exports.listPromptVersions2FileToJSON = listPromptVersions2FileToJSON;
|
|
@@ -74,6 +77,72 @@ exports.listPromptVersionsMessagesToJSON = listPromptVersionsMessagesToJSON;
|
|
|
74
77
|
exports.listPromptVersionsMessagesFromJSON = listPromptVersionsMessagesFromJSON;
|
|
75
78
|
exports.listPromptVersionsPromptConfigToJSON = listPromptVersionsPromptConfigToJSON;
|
|
76
79
|
exports.listPromptVersionsPromptConfigFromJSON = listPromptVersionsPromptConfigFromJSON;
|
|
80
|
+
exports.listPromptVersionsAudioToJSON = listPromptVersionsAudioToJSON;
|
|
81
|
+
exports.listPromptVersionsAudioFromJSON = listPromptVersionsAudioFromJSON;
|
|
82
|
+
exports.listPromptVersionsResponseFormatJsonSchemaToJSON = listPromptVersionsResponseFormatJsonSchemaToJSON;
|
|
83
|
+
exports.listPromptVersionsResponseFormatJsonSchemaFromJSON = listPromptVersionsResponseFormatJsonSchemaFromJSON;
|
|
84
|
+
exports.listPromptVersionsResponseFormatPromptsJSONSchemaToJSON = listPromptVersionsResponseFormatPromptsJSONSchemaToJSON;
|
|
85
|
+
exports.listPromptVersionsResponseFormatPromptsJSONSchemaFromJSON = listPromptVersionsResponseFormatPromptsJSONSchemaFromJSON;
|
|
86
|
+
exports.listPromptVersionsResponseFormatJSONObjectToJSON = listPromptVersionsResponseFormatJSONObjectToJSON;
|
|
87
|
+
exports.listPromptVersionsResponseFormatJSONObjectFromJSON = listPromptVersionsResponseFormatJSONObjectFromJSON;
|
|
88
|
+
exports.listPromptVersionsResponseFormatTextToJSON = listPromptVersionsResponseFormatTextToJSON;
|
|
89
|
+
exports.listPromptVersionsResponseFormatTextFromJSON = listPromptVersionsResponseFormatTextFromJSON;
|
|
90
|
+
exports.listPromptVersionsResponseFormatToJSON = listPromptVersionsResponseFormatToJSON;
|
|
91
|
+
exports.listPromptVersionsResponseFormatFromJSON = listPromptVersionsResponseFormatFromJSON;
|
|
92
|
+
exports.listPromptVersionsStopToJSON = listPromptVersionsStopToJSON;
|
|
93
|
+
exports.listPromptVersionsStopFromJSON = listPromptVersionsStopFromJSON;
|
|
94
|
+
exports.listPromptVersionsStreamOptionsToJSON = listPromptVersionsStreamOptionsToJSON;
|
|
95
|
+
exports.listPromptVersionsStreamOptionsFromJSON = listPromptVersionsStreamOptionsFromJSON;
|
|
96
|
+
exports.listPromptVersionsThinkingToJSON = listPromptVersionsThinkingToJSON;
|
|
97
|
+
exports.listPromptVersionsThinkingFromJSON = listPromptVersionsThinkingFromJSON;
|
|
98
|
+
exports.listPromptVersionsToolChoiceFunctionToJSON = listPromptVersionsToolChoiceFunctionToJSON;
|
|
99
|
+
exports.listPromptVersionsToolChoiceFunctionFromJSON = listPromptVersionsToolChoiceFunctionFromJSON;
|
|
100
|
+
exports.listPromptVersionsToolChoice2ToJSON = listPromptVersionsToolChoice2ToJSON;
|
|
101
|
+
exports.listPromptVersionsToolChoice2FromJSON = listPromptVersionsToolChoice2FromJSON;
|
|
102
|
+
exports.listPromptVersionsToolChoiceToJSON = listPromptVersionsToolChoiceToJSON;
|
|
103
|
+
exports.listPromptVersionsToolChoiceFromJSON = listPromptVersionsToolChoiceFromJSON;
|
|
104
|
+
exports.listPromptVersionsIdToJSON = listPromptVersionsIdToJSON;
|
|
105
|
+
exports.listPromptVersionsIdFromJSON = listPromptVersionsIdFromJSON;
|
|
106
|
+
exports.listPromptVersionsGuardrailsToJSON = listPromptVersionsGuardrailsToJSON;
|
|
107
|
+
exports.listPromptVersionsGuardrailsFromJSON = listPromptVersionsGuardrailsFromJSON;
|
|
108
|
+
exports.listPromptVersionsContentPromptsResponse2002ToJSON = listPromptVersionsContentPromptsResponse2002ToJSON;
|
|
109
|
+
exports.listPromptVersionsContentPromptsResponse2002FromJSON = listPromptVersionsContentPromptsResponse2002FromJSON;
|
|
110
|
+
exports.listPromptVersionsMessagesPromptsResponse200ContentToJSON = listPromptVersionsMessagesPromptsResponse200ContentToJSON;
|
|
111
|
+
exports.listPromptVersionsMessagesPromptsResponse200ContentFromJSON = listPromptVersionsMessagesPromptsResponse200ContentFromJSON;
|
|
112
|
+
exports.listPromptVersionsMessagesCacheControlToJSON = listPromptVersionsMessagesCacheControlToJSON;
|
|
113
|
+
exports.listPromptVersionsMessagesCacheControlFromJSON = listPromptVersionsMessagesCacheControlFromJSON;
|
|
114
|
+
exports.listPromptVersionsMessagesToolMessageToJSON = listPromptVersionsMessagesToolMessageToJSON;
|
|
115
|
+
exports.listPromptVersionsMessagesToolMessageFromJSON = listPromptVersionsMessagesToolMessageFromJSON;
|
|
116
|
+
exports.listPromptVersionsContentPromptsResponse2ToJSON = listPromptVersionsContentPromptsResponse2ToJSON;
|
|
117
|
+
exports.listPromptVersionsContentPromptsResponse2FromJSON = listPromptVersionsContentPromptsResponse2FromJSON;
|
|
118
|
+
exports.listPromptVersionsMessagesPromptsResponseContentToJSON = listPromptVersionsMessagesPromptsResponseContentToJSON;
|
|
119
|
+
exports.listPromptVersionsMessagesPromptsResponseContentFromJSON = listPromptVersionsMessagesPromptsResponseContentFromJSON;
|
|
120
|
+
exports.listPromptVersionsMessagesAudioToJSON = listPromptVersionsMessagesAudioToJSON;
|
|
121
|
+
exports.listPromptVersionsMessagesAudioFromJSON = listPromptVersionsMessagesAudioFromJSON;
|
|
122
|
+
exports.listPromptVersionsMessagesFunctionToJSON = listPromptVersionsMessagesFunctionToJSON;
|
|
123
|
+
exports.listPromptVersionsMessagesFunctionFromJSON = listPromptVersionsMessagesFunctionFromJSON;
|
|
124
|
+
exports.listPromptVersionsMessagesToolCallsToJSON = listPromptVersionsMessagesToolCallsToJSON;
|
|
125
|
+
exports.listPromptVersionsMessagesToolCallsFromJSON = listPromptVersionsMessagesToolCallsFromJSON;
|
|
126
|
+
exports.listPromptVersionsMessagesAssistantMessageToJSON = listPromptVersionsMessagesAssistantMessageToJSON;
|
|
127
|
+
exports.listPromptVersionsMessagesAssistantMessageFromJSON = listPromptVersionsMessagesAssistantMessageFromJSON;
|
|
128
|
+
exports.listPromptVersions2CacheControlToJSON = listPromptVersions2CacheControlToJSON;
|
|
129
|
+
exports.listPromptVersions2CacheControlFromJSON = listPromptVersions2CacheControlFromJSON;
|
|
130
|
+
exports.listPromptVersions24ToJSON = listPromptVersions24ToJSON;
|
|
131
|
+
exports.listPromptVersions24FromJSON = listPromptVersions24FromJSON;
|
|
132
|
+
exports.listPromptVersionsContentPrompts2ToJSON = listPromptVersionsContentPrompts2ToJSON;
|
|
133
|
+
exports.listPromptVersionsContentPrompts2FromJSON = listPromptVersionsContentPrompts2FromJSON;
|
|
134
|
+
exports.listPromptVersionsMessagesPromptsContentToJSON = listPromptVersionsMessagesPromptsContentToJSON;
|
|
135
|
+
exports.listPromptVersionsMessagesPromptsContentFromJSON = listPromptVersionsMessagesPromptsContentFromJSON;
|
|
136
|
+
exports.listPromptVersionsMessagesUserMessageToJSON = listPromptVersionsMessagesUserMessageToJSON;
|
|
137
|
+
exports.listPromptVersionsMessagesUserMessageFromJSON = listPromptVersionsMessagesUserMessageFromJSON;
|
|
138
|
+
exports.listPromptVersionsMessagesContentToJSON = listPromptVersionsMessagesContentToJSON;
|
|
139
|
+
exports.listPromptVersionsMessagesContentFromJSON = listPromptVersionsMessagesContentFromJSON;
|
|
140
|
+
exports.listPromptVersionsMessagesSystemMessageToJSON = listPromptVersionsMessagesSystemMessageToJSON;
|
|
141
|
+
exports.listPromptVersionsMessagesSystemMessageFromJSON = listPromptVersionsMessagesSystemMessageFromJSON;
|
|
142
|
+
exports.listPromptVersionsPromptsMessagesToJSON = listPromptVersionsPromptsMessagesToJSON;
|
|
143
|
+
exports.listPromptVersionsPromptsMessagesFromJSON = listPromptVersionsPromptsMessagesFromJSON;
|
|
144
|
+
exports.listPromptVersionsPromptFieldToJSON = listPromptVersionsPromptFieldToJSON;
|
|
145
|
+
exports.listPromptVersionsPromptFieldFromJSON = listPromptVersionsPromptFieldFromJSON;
|
|
77
146
|
exports.listPromptVersionsMetadataToJSON = listPromptVersionsMetadataToJSON;
|
|
78
147
|
exports.listPromptVersionsMetadataFromJSON = listPromptVersionsMetadataFromJSON;
|
|
79
148
|
exports.listPromptVersionsDataToJSON = listPromptVersionsDataToJSON;
|
|
@@ -83,6 +152,7 @@ exports.listPromptVersionsResponseBodyFromJSON = listPromptVersionsResponseBodyF
|
|
|
83
152
|
const z = __importStar(require("zod/v3"));
|
|
84
153
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
85
154
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
155
|
+
const components = __importStar(require("../components/index.js"));
|
|
86
156
|
exports.ListPromptVersionsObject = {
|
|
87
157
|
List: "list",
|
|
88
158
|
};
|
|
@@ -128,13 +198,13 @@ exports.ListPromptVersionsResponseFormat4 = {
|
|
|
128
198
|
Wav: "wav",
|
|
129
199
|
Pcm: "pcm",
|
|
130
200
|
};
|
|
131
|
-
exports.
|
|
201
|
+
exports.ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType = {
|
|
132
202
|
Text: "text",
|
|
133
203
|
};
|
|
134
|
-
exports.
|
|
204
|
+
exports.ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType = {
|
|
135
205
|
JsonObject: "json_object",
|
|
136
206
|
};
|
|
137
|
-
exports.
|
|
207
|
+
exports.ListPromptVersionsResponseFormatPromptsResponse200Type = {
|
|
138
208
|
JsonSchema: "json_schema",
|
|
139
209
|
};
|
|
140
210
|
/**
|
|
@@ -154,7 +224,7 @@ exports.ListPromptVersionsEncodingFormat = {
|
|
|
154
224
|
/**
|
|
155
225
|
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
156
226
|
*/
|
|
157
|
-
exports.
|
|
227
|
+
exports.ListPromptVersionsPromptsReasoningEffort = {
|
|
158
228
|
None: "none",
|
|
159
229
|
Disable: "disable",
|
|
160
230
|
Minimal: "minimal",
|
|
@@ -221,6 +291,123 @@ exports.ListPromptVersionsRole = {
|
|
|
221
291
|
exports.ListPromptVersionsType = {
|
|
222
292
|
Function: "function",
|
|
223
293
|
};
|
|
294
|
+
/**
|
|
295
|
+
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
296
|
+
*/
|
|
297
|
+
exports.ListPromptVersionsVoice = {
|
|
298
|
+
Alloy: "alloy",
|
|
299
|
+
Echo: "echo",
|
|
300
|
+
Fable: "fable",
|
|
301
|
+
Onyx: "onyx",
|
|
302
|
+
Nova: "nova",
|
|
303
|
+
Shimmer: "shimmer",
|
|
304
|
+
};
|
|
305
|
+
/**
|
|
306
|
+
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
307
|
+
*/
|
|
308
|
+
exports.ListPromptVersionsPromptsFormat = {
|
|
309
|
+
Wav: "wav",
|
|
310
|
+
Mp3: "mp3",
|
|
311
|
+
Flac: "flac",
|
|
312
|
+
Opus: "opus",
|
|
313
|
+
Pcm16: "pcm16",
|
|
314
|
+
};
|
|
315
|
+
/**
|
|
316
|
+
* 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.
|
|
317
|
+
*
|
|
318
|
+
* @remarks
|
|
319
|
+
*
|
|
320
|
+
* - `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.
|
|
321
|
+
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
|
|
322
|
+
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
323
|
+
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
324
|
+
*
|
|
325
|
+
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
326
|
+
*/
|
|
327
|
+
exports.ListPromptVersionsReasoningEffort = {
|
|
328
|
+
None: "none",
|
|
329
|
+
Minimal: "minimal",
|
|
330
|
+
Low: "low",
|
|
331
|
+
Medium: "medium",
|
|
332
|
+
High: "high",
|
|
333
|
+
Xhigh: "xhigh",
|
|
334
|
+
};
|
|
335
|
+
/**
|
|
336
|
+
* The type of the tool. Currently, only function is supported.
|
|
337
|
+
*/
|
|
338
|
+
exports.ListPromptVersionsToolChoiceType = {
|
|
339
|
+
Function: "function",
|
|
340
|
+
};
|
|
341
|
+
exports.ListPromptVersionsToolChoice1 = {
|
|
342
|
+
None: "none",
|
|
343
|
+
Auto: "auto",
|
|
344
|
+
Required: "required",
|
|
345
|
+
};
|
|
346
|
+
exports.ListPromptVersionsModalities = {
|
|
347
|
+
Text: "text",
|
|
348
|
+
Audio: "audio",
|
|
349
|
+
};
|
|
350
|
+
/**
|
|
351
|
+
* The key of the guardrail.
|
|
352
|
+
*/
|
|
353
|
+
exports.ListPromptVersionsId1 = {
|
|
354
|
+
OrqPiiDetection: "orq_pii_detection",
|
|
355
|
+
OrqSexualModeration: "orq_sexual_moderation",
|
|
356
|
+
OrqHarmfulModeration: "orq_harmful_moderation",
|
|
357
|
+
};
|
|
358
|
+
/**
|
|
359
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
360
|
+
*/
|
|
361
|
+
exports.ListPromptVersionsExecuteOn = {
|
|
362
|
+
Input: "input",
|
|
363
|
+
Output: "output",
|
|
364
|
+
};
|
|
365
|
+
/**
|
|
366
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
367
|
+
*/
|
|
368
|
+
exports.ListPromptVersionsMessagesPromptsType = {
|
|
369
|
+
Ephemeral: "ephemeral",
|
|
370
|
+
};
|
|
371
|
+
/**
|
|
372
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
373
|
+
*
|
|
374
|
+
* @remarks
|
|
375
|
+
*
|
|
376
|
+
* - `5m`: 5 minutes
|
|
377
|
+
* - `1h`: 1 hour
|
|
378
|
+
*
|
|
379
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
380
|
+
*/
|
|
381
|
+
exports.ListPromptVersionsMessagesTtl = {
|
|
382
|
+
Fivem: "5m",
|
|
383
|
+
Oneh: "1h",
|
|
384
|
+
};
|
|
385
|
+
/**
|
|
386
|
+
* The type of the tool. Currently, only `function` is supported.
|
|
387
|
+
*/
|
|
388
|
+
exports.ListPromptVersionsMessagesType = {
|
|
389
|
+
Function: "function",
|
|
390
|
+
};
|
|
391
|
+
/**
|
|
392
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
393
|
+
*/
|
|
394
|
+
exports.ListPromptVersions2PromptsResponse200ApplicationJSONType = {
|
|
395
|
+
Ephemeral: "ephemeral",
|
|
396
|
+
};
|
|
397
|
+
/**
|
|
398
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
399
|
+
*
|
|
400
|
+
* @remarks
|
|
401
|
+
*
|
|
402
|
+
* - `5m`: 5 minutes
|
|
403
|
+
* - `1h`: 1 hour
|
|
404
|
+
*
|
|
405
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
406
|
+
*/
|
|
407
|
+
exports.ListPromptVersions2Ttl = {
|
|
408
|
+
Fivem: "5m",
|
|
409
|
+
Oneh: "1h",
|
|
410
|
+
};
|
|
224
411
|
exports.ListPromptVersionsUseCases = {
|
|
225
412
|
AgentsSimulations: "Agents simulations",
|
|
226
413
|
Agents: "Agents",
|
|
@@ -312,16 +499,16 @@ exports.ListPromptVersionsResponseFormat4$inboundSchema = z.nativeEnum(exports.L
|
|
|
312
499
|
/** @internal */
|
|
313
500
|
exports.ListPromptVersionsResponseFormat4$outboundSchema = exports.ListPromptVersionsResponseFormat4$inboundSchema;
|
|
314
501
|
/** @internal */
|
|
315
|
-
exports.
|
|
502
|
+
exports.ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema = z.nativeEnum(exports.ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType);
|
|
316
503
|
/** @internal */
|
|
317
|
-
exports.
|
|
504
|
+
exports.ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$outboundSchema = exports.ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema;
|
|
318
505
|
/** @internal */
|
|
319
506
|
exports.ListPromptVersionsResponseFormat3$inboundSchema = z.object({
|
|
320
|
-
type: exports.
|
|
507
|
+
type: exports.ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema,
|
|
321
508
|
});
|
|
322
509
|
/** @internal */
|
|
323
510
|
exports.ListPromptVersionsResponseFormat3$outboundSchema = z.object({
|
|
324
|
-
type: exports.
|
|
511
|
+
type: exports.ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$outboundSchema,
|
|
325
512
|
});
|
|
326
513
|
function listPromptVersionsResponseFormat3ToJSON(listPromptVersionsResponseFormat3) {
|
|
327
514
|
return JSON.stringify(exports.ListPromptVersionsResponseFormat3$outboundSchema.parse(listPromptVersionsResponseFormat3));
|
|
@@ -330,17 +517,16 @@ function listPromptVersionsResponseFormat3FromJSON(jsonString) {
|
|
|
330
517
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsResponseFormat3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsResponseFormat3' from JSON`);
|
|
331
518
|
}
|
|
332
519
|
/** @internal */
|
|
333
|
-
exports.
|
|
334
|
-
.nativeEnum(exports.ListPromptVersionsResponseFormatPromptsType);
|
|
520
|
+
exports.ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema = z.nativeEnum(exports.ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType);
|
|
335
521
|
/** @internal */
|
|
336
|
-
exports.
|
|
522
|
+
exports.ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema = exports.ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema;
|
|
337
523
|
/** @internal */
|
|
338
524
|
exports.ListPromptVersionsResponseFormat2$inboundSchema = z.object({
|
|
339
|
-
type: exports.
|
|
525
|
+
type: exports.ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema,
|
|
340
526
|
});
|
|
341
527
|
/** @internal */
|
|
342
528
|
exports.ListPromptVersionsResponseFormat2$outboundSchema = z.object({
|
|
343
|
-
type: exports.
|
|
529
|
+
type: exports.ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema,
|
|
344
530
|
});
|
|
345
531
|
function listPromptVersionsResponseFormat2ToJSON(listPromptVersionsResponseFormat2) {
|
|
346
532
|
return JSON.stringify(exports.ListPromptVersionsResponseFormat2$outboundSchema.parse(listPromptVersionsResponseFormat2));
|
|
@@ -349,34 +535,36 @@ function listPromptVersionsResponseFormat2FromJSON(jsonString) {
|
|
|
349
535
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsResponseFormat2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsResponseFormat2' from JSON`);
|
|
350
536
|
}
|
|
351
537
|
/** @internal */
|
|
352
|
-
exports.
|
|
538
|
+
exports.ListPromptVersionsResponseFormatPromptsResponse200Type$inboundSchema = z.nativeEnum(exports.ListPromptVersionsResponseFormatPromptsResponse200Type);
|
|
353
539
|
/** @internal */
|
|
354
|
-
exports.
|
|
540
|
+
exports.ListPromptVersionsResponseFormatPromptsResponse200Type$outboundSchema = exports.ListPromptVersionsResponseFormatPromptsResponse200Type$inboundSchema;
|
|
355
541
|
/** @internal */
|
|
356
|
-
exports.
|
|
542
|
+
exports.ListPromptVersionsResponseFormatPromptsResponseJsonSchema$inboundSchema = z.object({
|
|
357
543
|
name: z.string(),
|
|
358
544
|
description: z.string().optional(),
|
|
359
545
|
strict: z.boolean().optional(),
|
|
360
546
|
schema: z.record(z.any()),
|
|
361
547
|
});
|
|
362
548
|
/** @internal */
|
|
363
|
-
exports.
|
|
549
|
+
exports.ListPromptVersionsResponseFormatPromptsResponseJsonSchema$outboundSchema = z.object({
|
|
364
550
|
name: z.string(),
|
|
365
551
|
description: z.string().optional(),
|
|
366
552
|
strict: z.boolean().optional(),
|
|
367
553
|
schema: z.record(z.any()),
|
|
368
554
|
});
|
|
369
|
-
function
|
|
370
|
-
return JSON.stringify(exports.
|
|
555
|
+
function listPromptVersionsResponseFormatPromptsResponseJsonSchemaToJSON(listPromptVersionsResponseFormatPromptsResponseJsonSchema) {
|
|
556
|
+
return JSON.stringify(exports.ListPromptVersionsResponseFormatPromptsResponseJsonSchema$outboundSchema
|
|
557
|
+
.parse(listPromptVersionsResponseFormatPromptsResponseJsonSchema));
|
|
371
558
|
}
|
|
372
|
-
function
|
|
373
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
559
|
+
function listPromptVersionsResponseFormatPromptsResponseJsonSchemaFromJSON(jsonString) {
|
|
560
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsResponseFormatPromptsResponseJsonSchema$inboundSchema
|
|
561
|
+
.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsResponseFormatPromptsResponseJsonSchema' from JSON`);
|
|
374
562
|
}
|
|
375
563
|
/** @internal */
|
|
376
564
|
exports.ListPromptVersionsResponseFormat1$inboundSchema = z.object({
|
|
377
|
-
type: exports.
|
|
565
|
+
type: exports.ListPromptVersionsResponseFormatPromptsResponse200Type$inboundSchema,
|
|
378
566
|
display_name: z.string().optional(),
|
|
379
|
-
json_schema: z.lazy(() => exports.
|
|
567
|
+
json_schema: z.lazy(() => exports.ListPromptVersionsResponseFormatPromptsResponseJsonSchema$inboundSchema),
|
|
380
568
|
}).transform((v) => {
|
|
381
569
|
return (0, primitives_js_1.remap)(v, {
|
|
382
570
|
"display_name": "displayName",
|
|
@@ -385,9 +573,9 @@ exports.ListPromptVersionsResponseFormat1$inboundSchema = z.object({
|
|
|
385
573
|
});
|
|
386
574
|
/** @internal */
|
|
387
575
|
exports.ListPromptVersionsResponseFormat1$outboundSchema = z.object({
|
|
388
|
-
type: exports.
|
|
576
|
+
type: exports.ListPromptVersionsResponseFormatPromptsResponse200Type$outboundSchema,
|
|
389
577
|
displayName: z.string().optional(),
|
|
390
|
-
jsonSchema: z.lazy(() => exports.
|
|
578
|
+
jsonSchema: z.lazy(() => exports.ListPromptVersionsResponseFormatPromptsResponseJsonSchema$outboundSchema),
|
|
391
579
|
}).transform((v) => {
|
|
392
580
|
return (0, primitives_js_1.remap)(v, {
|
|
393
581
|
displayName: "display_name",
|
|
@@ -401,7 +589,7 @@ function listPromptVersionsResponseFormat1FromJSON(jsonString) {
|
|
|
401
589
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsResponseFormat1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsResponseFormat1' from JSON`);
|
|
402
590
|
}
|
|
403
591
|
/** @internal */
|
|
404
|
-
exports.
|
|
592
|
+
exports.ListPromptVersionsPromptsResponseFormat$inboundSchema = z.union([
|
|
405
593
|
z.lazy(() => exports.ListPromptVersionsResponseFormat1$inboundSchema),
|
|
406
594
|
z.lazy(() => exports.ListPromptVersionsResponseFormat2$inboundSchema),
|
|
407
595
|
z.lazy(() => exports.ListPromptVersionsResponseFormat3$inboundSchema),
|
|
@@ -410,7 +598,7 @@ exports.ListPromptVersionsResponseFormat$inboundSchema = z.union([
|
|
|
410
598
|
exports.ListPromptVersionsResponseFormat6$inboundSchema,
|
|
411
599
|
]);
|
|
412
600
|
/** @internal */
|
|
413
|
-
exports.
|
|
601
|
+
exports.ListPromptVersionsPromptsResponseFormat$outboundSchema = z.union([
|
|
414
602
|
z.lazy(() => exports.ListPromptVersionsResponseFormat1$outboundSchema),
|
|
415
603
|
z.lazy(() => exports.ListPromptVersionsResponseFormat2$outboundSchema),
|
|
416
604
|
z.lazy(() => exports.ListPromptVersionsResponseFormat3$outboundSchema),
|
|
@@ -418,11 +606,11 @@ exports.ListPromptVersionsResponseFormat$outboundSchema = z.union([
|
|
|
418
606
|
exports.ListPromptVersionsResponseFormat5$outboundSchema,
|
|
419
607
|
exports.ListPromptVersionsResponseFormat6$outboundSchema,
|
|
420
608
|
]);
|
|
421
|
-
function
|
|
422
|
-
return JSON.stringify(exports.
|
|
609
|
+
function listPromptVersionsPromptsResponseFormatToJSON(listPromptVersionsPromptsResponseFormat) {
|
|
610
|
+
return JSON.stringify(exports.ListPromptVersionsPromptsResponseFormat$outboundSchema.parse(listPromptVersionsPromptsResponseFormat));
|
|
423
611
|
}
|
|
424
|
-
function
|
|
425
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
612
|
+
function listPromptVersionsPromptsResponseFormatFromJSON(jsonString) {
|
|
613
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsPromptsResponseFormat' from JSON`);
|
|
426
614
|
}
|
|
427
615
|
/** @internal */
|
|
428
616
|
exports.ListPromptVersionsPhotoRealVersion$inboundSchema = z.nativeEnum(exports.ListPromptVersionsPhotoRealVersion);
|
|
@@ -433,9 +621,10 @@ exports.ListPromptVersionsEncodingFormat$inboundSchema = z.nativeEnum(exports.Li
|
|
|
433
621
|
/** @internal */
|
|
434
622
|
exports.ListPromptVersionsEncodingFormat$outboundSchema = exports.ListPromptVersionsEncodingFormat$inboundSchema;
|
|
435
623
|
/** @internal */
|
|
436
|
-
exports.
|
|
624
|
+
exports.ListPromptVersionsPromptsReasoningEffort$inboundSchema = z
|
|
625
|
+
.nativeEnum(exports.ListPromptVersionsPromptsReasoningEffort);
|
|
437
626
|
/** @internal */
|
|
438
|
-
exports.
|
|
627
|
+
exports.ListPromptVersionsPromptsReasoningEffort$outboundSchema = exports.ListPromptVersionsPromptsReasoningEffort$inboundSchema;
|
|
439
628
|
/** @internal */
|
|
440
629
|
exports.ListPromptVersionsVerbosity$inboundSchema = z.nativeEnum(exports.ListPromptVersionsVerbosity);
|
|
441
630
|
/** @internal */
|
|
@@ -468,7 +657,8 @@ exports.ListPromptVersionsModelParameters$inboundSchema = z.object({
|
|
|
468
657
|
])).optional(),
|
|
469
658
|
photoRealVersion: exports.ListPromptVersionsPhotoRealVersion$inboundSchema.optional(),
|
|
470
659
|
encoding_format: exports.ListPromptVersionsEncodingFormat$inboundSchema.optional(),
|
|
471
|
-
reasoningEffort: exports.
|
|
660
|
+
reasoningEffort: exports.ListPromptVersionsPromptsReasoningEffort$inboundSchema
|
|
661
|
+
.optional(),
|
|
472
662
|
budgetTokens: z.number().optional(),
|
|
473
663
|
verbosity: exports.ListPromptVersionsVerbosity$inboundSchema.optional(),
|
|
474
664
|
thinkingLevel: exports.ListPromptVersionsThinkingLevel$inboundSchema.optional(),
|
|
@@ -502,7 +692,8 @@ exports.ListPromptVersionsModelParameters$outboundSchema = z.object({
|
|
|
502
692
|
photoRealVersion: exports.ListPromptVersionsPhotoRealVersion$outboundSchema
|
|
503
693
|
.optional(),
|
|
504
694
|
encodingFormat: exports.ListPromptVersionsEncodingFormat$outboundSchema.optional(),
|
|
505
|
-
reasoningEffort: exports.
|
|
695
|
+
reasoningEffort: exports.ListPromptVersionsPromptsReasoningEffort$outboundSchema
|
|
696
|
+
.optional(),
|
|
506
697
|
budgetTokens: z.number().optional(),
|
|
507
698
|
verbosity: exports.ListPromptVersionsVerbosity$outboundSchema.optional(),
|
|
508
699
|
thinkingLevel: exports.ListPromptVersionsThinkingLevel$outboundSchema.optional(),
|
|
@@ -758,11 +949,11 @@ function listPromptVersionsMessagesFromJSON(jsonString) {
|
|
|
758
949
|
/** @internal */
|
|
759
950
|
exports.ListPromptVersionsPromptConfig$inboundSchema = z.object({
|
|
760
951
|
stream: z.boolean().optional(),
|
|
761
|
-
model: z.string().optional(),
|
|
952
|
+
model: z.nullable(z.string()).optional(),
|
|
762
953
|
model_db_id: z.nullable(z.string()).optional(),
|
|
763
954
|
model_type: z.nullable(exports.ListPromptVersionsModelType$inboundSchema).optional(),
|
|
764
955
|
model_parameters: z.lazy(() => exports.ListPromptVersionsModelParameters$inboundSchema).optional(),
|
|
765
|
-
provider: exports.ListPromptVersionsProvider$inboundSchema.optional(),
|
|
956
|
+
provider: z.nullable(exports.ListPromptVersionsProvider$inboundSchema).optional(),
|
|
766
957
|
integration_id: z.nullable(z.string()).optional(),
|
|
767
958
|
version: z.string().optional(),
|
|
768
959
|
messages: z.array(z.lazy(() => exports.ListPromptVersionsMessages$inboundSchema)),
|
|
@@ -777,11 +968,11 @@ exports.ListPromptVersionsPromptConfig$inboundSchema = z.object({
|
|
|
777
968
|
/** @internal */
|
|
778
969
|
exports.ListPromptVersionsPromptConfig$outboundSchema = z.object({
|
|
779
970
|
stream: z.boolean().optional(),
|
|
780
|
-
model: z.string().optional(),
|
|
971
|
+
model: z.nullable(z.string()).optional(),
|
|
781
972
|
modelDbId: z.nullable(z.string()).optional(),
|
|
782
973
|
modelType: z.nullable(exports.ListPromptVersionsModelType$outboundSchema).optional(),
|
|
783
974
|
modelParameters: z.lazy(() => exports.ListPromptVersionsModelParameters$outboundSchema).optional(),
|
|
784
|
-
provider: exports.ListPromptVersionsProvider$outboundSchema.optional(),
|
|
975
|
+
provider: z.nullable(exports.ListPromptVersionsProvider$outboundSchema).optional(),
|
|
785
976
|
integrationId: z.nullable(z.string()).optional(),
|
|
786
977
|
version: z.string().optional(),
|
|
787
978
|
messages: z.array(z.lazy(() => exports.ListPromptVersionsMessages$outboundSchema)),
|
|
@@ -800,6 +991,834 @@ function listPromptVersionsPromptConfigFromJSON(jsonString) {
|
|
|
800
991
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsPromptConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsPromptConfig' from JSON`);
|
|
801
992
|
}
|
|
802
993
|
/** @internal */
|
|
994
|
+
exports.ListPromptVersionsVoice$inboundSchema = z.nativeEnum(exports.ListPromptVersionsVoice);
|
|
995
|
+
/** @internal */
|
|
996
|
+
exports.ListPromptVersionsVoice$outboundSchema = exports.ListPromptVersionsVoice$inboundSchema;
|
|
997
|
+
/** @internal */
|
|
998
|
+
exports.ListPromptVersionsPromptsFormat$inboundSchema = z.nativeEnum(exports.ListPromptVersionsPromptsFormat);
|
|
999
|
+
/** @internal */
|
|
1000
|
+
exports.ListPromptVersionsPromptsFormat$outboundSchema = exports.ListPromptVersionsPromptsFormat$inboundSchema;
|
|
1001
|
+
/** @internal */
|
|
1002
|
+
exports.ListPromptVersionsAudio$inboundSchema = z.object({
|
|
1003
|
+
voice: exports.ListPromptVersionsVoice$inboundSchema,
|
|
1004
|
+
format: exports.ListPromptVersionsPromptsFormat$inboundSchema,
|
|
1005
|
+
});
|
|
1006
|
+
/** @internal */
|
|
1007
|
+
exports.ListPromptVersionsAudio$outboundSchema = z.object({
|
|
1008
|
+
voice: exports.ListPromptVersionsVoice$outboundSchema,
|
|
1009
|
+
format: exports.ListPromptVersionsPromptsFormat$outboundSchema,
|
|
1010
|
+
});
|
|
1011
|
+
function listPromptVersionsAudioToJSON(listPromptVersionsAudio) {
|
|
1012
|
+
return JSON.stringify(exports.ListPromptVersionsAudio$outboundSchema.parse(listPromptVersionsAudio));
|
|
1013
|
+
}
|
|
1014
|
+
function listPromptVersionsAudioFromJSON(jsonString) {
|
|
1015
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsAudio' from JSON`);
|
|
1016
|
+
}
|
|
1017
|
+
/** @internal */
|
|
1018
|
+
exports.ListPromptVersionsResponseFormatJsonSchema$inboundSchema = z.object({
|
|
1019
|
+
description: z.string().optional(),
|
|
1020
|
+
name: z.string(),
|
|
1021
|
+
schema: z.any().optional(),
|
|
1022
|
+
strict: z.boolean().default(false),
|
|
1023
|
+
});
|
|
1024
|
+
/** @internal */
|
|
1025
|
+
exports.ListPromptVersionsResponseFormatJsonSchema$outboundSchema = z.object({
|
|
1026
|
+
description: z.string().optional(),
|
|
1027
|
+
name: z.string(),
|
|
1028
|
+
schema: z.any().optional(),
|
|
1029
|
+
strict: z.boolean().default(false),
|
|
1030
|
+
});
|
|
1031
|
+
function listPromptVersionsResponseFormatJsonSchemaToJSON(listPromptVersionsResponseFormatJsonSchema) {
|
|
1032
|
+
return JSON.stringify(exports.ListPromptVersionsResponseFormatJsonSchema$outboundSchema.parse(listPromptVersionsResponseFormatJsonSchema));
|
|
1033
|
+
}
|
|
1034
|
+
function listPromptVersionsResponseFormatJsonSchemaFromJSON(jsonString) {
|
|
1035
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsResponseFormatJsonSchema' from JSON`);
|
|
1036
|
+
}
|
|
1037
|
+
/** @internal */
|
|
1038
|
+
exports.ListPromptVersionsResponseFormatPromptsJSONSchema$inboundSchema = z.object({
|
|
1039
|
+
type: z.literal("json_schema"),
|
|
1040
|
+
json_schema: z.lazy(() => exports.ListPromptVersionsResponseFormatJsonSchema$inboundSchema),
|
|
1041
|
+
}).transform((v) => {
|
|
1042
|
+
return (0, primitives_js_1.remap)(v, {
|
|
1043
|
+
"json_schema": "jsonSchema",
|
|
1044
|
+
});
|
|
1045
|
+
});
|
|
1046
|
+
/** @internal */
|
|
1047
|
+
exports.ListPromptVersionsResponseFormatPromptsJSONSchema$outboundSchema = z.object({
|
|
1048
|
+
type: z.literal("json_schema"),
|
|
1049
|
+
jsonSchema: z.lazy(() => exports.ListPromptVersionsResponseFormatJsonSchema$outboundSchema),
|
|
1050
|
+
}).transform((v) => {
|
|
1051
|
+
return (0, primitives_js_1.remap)(v, {
|
|
1052
|
+
jsonSchema: "json_schema",
|
|
1053
|
+
});
|
|
1054
|
+
});
|
|
1055
|
+
function listPromptVersionsResponseFormatPromptsJSONSchemaToJSON(listPromptVersionsResponseFormatPromptsJSONSchema) {
|
|
1056
|
+
return JSON.stringify(exports.ListPromptVersionsResponseFormatPromptsJSONSchema$outboundSchema.parse(listPromptVersionsResponseFormatPromptsJSONSchema));
|
|
1057
|
+
}
|
|
1058
|
+
function listPromptVersionsResponseFormatPromptsJSONSchemaFromJSON(jsonString) {
|
|
1059
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsResponseFormatPromptsJSONSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsResponseFormatPromptsJSONSchema' from JSON`);
|
|
1060
|
+
}
|
|
1061
|
+
/** @internal */
|
|
1062
|
+
exports.ListPromptVersionsResponseFormatJSONObject$inboundSchema = z.object({
|
|
1063
|
+
type: z.literal("json_object"),
|
|
1064
|
+
});
|
|
1065
|
+
/** @internal */
|
|
1066
|
+
exports.ListPromptVersionsResponseFormatJSONObject$outboundSchema = z.object({
|
|
1067
|
+
type: z.literal("json_object"),
|
|
1068
|
+
});
|
|
1069
|
+
function listPromptVersionsResponseFormatJSONObjectToJSON(listPromptVersionsResponseFormatJSONObject) {
|
|
1070
|
+
return JSON.stringify(exports.ListPromptVersionsResponseFormatJSONObject$outboundSchema.parse(listPromptVersionsResponseFormatJSONObject));
|
|
1071
|
+
}
|
|
1072
|
+
function listPromptVersionsResponseFormatJSONObjectFromJSON(jsonString) {
|
|
1073
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsResponseFormatJSONObject$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsResponseFormatJSONObject' from JSON`);
|
|
1074
|
+
}
|
|
1075
|
+
/** @internal */
|
|
1076
|
+
exports.ListPromptVersionsResponseFormatText$inboundSchema = z.object({
|
|
1077
|
+
type: z.literal("text"),
|
|
1078
|
+
});
|
|
1079
|
+
/** @internal */
|
|
1080
|
+
exports.ListPromptVersionsResponseFormatText$outboundSchema = z.object({
|
|
1081
|
+
type: z.literal("text"),
|
|
1082
|
+
});
|
|
1083
|
+
function listPromptVersionsResponseFormatTextToJSON(listPromptVersionsResponseFormatText) {
|
|
1084
|
+
return JSON.stringify(exports.ListPromptVersionsResponseFormatText$outboundSchema.parse(listPromptVersionsResponseFormatText));
|
|
1085
|
+
}
|
|
1086
|
+
function listPromptVersionsResponseFormatTextFromJSON(jsonString) {
|
|
1087
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsResponseFormatText$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsResponseFormatText' from JSON`);
|
|
1088
|
+
}
|
|
1089
|
+
/** @internal */
|
|
1090
|
+
exports.ListPromptVersionsResponseFormat$inboundSchema = z.union([
|
|
1091
|
+
z.lazy(() => exports.ListPromptVersionsResponseFormatText$inboundSchema),
|
|
1092
|
+
z.lazy(() => exports.ListPromptVersionsResponseFormatJSONObject$inboundSchema),
|
|
1093
|
+
z.lazy(() => exports.ListPromptVersionsResponseFormatPromptsJSONSchema$inboundSchema),
|
|
1094
|
+
]);
|
|
1095
|
+
/** @internal */
|
|
1096
|
+
exports.ListPromptVersionsResponseFormat$outboundSchema = z.union([
|
|
1097
|
+
z.lazy(() => exports.ListPromptVersionsResponseFormatText$outboundSchema),
|
|
1098
|
+
z.lazy(() => exports.ListPromptVersionsResponseFormatJSONObject$outboundSchema),
|
|
1099
|
+
z.lazy(() => exports.ListPromptVersionsResponseFormatPromptsJSONSchema$outboundSchema),
|
|
1100
|
+
]);
|
|
1101
|
+
function listPromptVersionsResponseFormatToJSON(listPromptVersionsResponseFormat) {
|
|
1102
|
+
return JSON.stringify(exports.ListPromptVersionsResponseFormat$outboundSchema.parse(listPromptVersionsResponseFormat));
|
|
1103
|
+
}
|
|
1104
|
+
function listPromptVersionsResponseFormatFromJSON(jsonString) {
|
|
1105
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsResponseFormat' from JSON`);
|
|
1106
|
+
}
|
|
1107
|
+
/** @internal */
|
|
1108
|
+
exports.ListPromptVersionsReasoningEffort$inboundSchema = z.nativeEnum(exports.ListPromptVersionsReasoningEffort);
|
|
1109
|
+
/** @internal */
|
|
1110
|
+
exports.ListPromptVersionsReasoningEffort$outboundSchema = exports.ListPromptVersionsReasoningEffort$inboundSchema;
|
|
1111
|
+
/** @internal */
|
|
1112
|
+
exports.ListPromptVersionsStop$inboundSchema = z.union([z.string(), z.array(z.string())]);
|
|
1113
|
+
/** @internal */
|
|
1114
|
+
exports.ListPromptVersionsStop$outboundSchema = z.union([z.string(), z.array(z.string())]);
|
|
1115
|
+
function listPromptVersionsStopToJSON(listPromptVersionsStop) {
|
|
1116
|
+
return JSON.stringify(exports.ListPromptVersionsStop$outboundSchema.parse(listPromptVersionsStop));
|
|
1117
|
+
}
|
|
1118
|
+
function listPromptVersionsStopFromJSON(jsonString) {
|
|
1119
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsStop$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsStop' from JSON`);
|
|
1120
|
+
}
|
|
1121
|
+
/** @internal */
|
|
1122
|
+
exports.ListPromptVersionsStreamOptions$inboundSchema = z.object({
|
|
1123
|
+
include_usage: z.boolean().optional(),
|
|
1124
|
+
}).transform((v) => {
|
|
1125
|
+
return (0, primitives_js_1.remap)(v, {
|
|
1126
|
+
"include_usage": "includeUsage",
|
|
1127
|
+
});
|
|
1128
|
+
});
|
|
1129
|
+
/** @internal */
|
|
1130
|
+
exports.ListPromptVersionsStreamOptions$outboundSchema = z.object({
|
|
1131
|
+
includeUsage: z.boolean().optional(),
|
|
1132
|
+
}).transform((v) => {
|
|
1133
|
+
return (0, primitives_js_1.remap)(v, {
|
|
1134
|
+
includeUsage: "include_usage",
|
|
1135
|
+
});
|
|
1136
|
+
});
|
|
1137
|
+
function listPromptVersionsStreamOptionsToJSON(listPromptVersionsStreamOptions) {
|
|
1138
|
+
return JSON.stringify(exports.ListPromptVersionsStreamOptions$outboundSchema.parse(listPromptVersionsStreamOptions));
|
|
1139
|
+
}
|
|
1140
|
+
function listPromptVersionsStreamOptionsFromJSON(jsonString) {
|
|
1141
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsStreamOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsStreamOptions' from JSON`);
|
|
1142
|
+
}
|
|
1143
|
+
/** @internal */
|
|
1144
|
+
exports.ListPromptVersionsThinking$inboundSchema = z.union([
|
|
1145
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
1146
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
1147
|
+
]);
|
|
1148
|
+
/** @internal */
|
|
1149
|
+
exports.ListPromptVersionsThinking$outboundSchema = z.union([
|
|
1150
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
1151
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
1152
|
+
]);
|
|
1153
|
+
function listPromptVersionsThinkingToJSON(listPromptVersionsThinking) {
|
|
1154
|
+
return JSON.stringify(exports.ListPromptVersionsThinking$outboundSchema.parse(listPromptVersionsThinking));
|
|
1155
|
+
}
|
|
1156
|
+
function listPromptVersionsThinkingFromJSON(jsonString) {
|
|
1157
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsThinking$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsThinking' from JSON`);
|
|
1158
|
+
}
|
|
1159
|
+
/** @internal */
|
|
1160
|
+
exports.ListPromptVersionsToolChoiceType$inboundSchema = z.nativeEnum(exports.ListPromptVersionsToolChoiceType);
|
|
1161
|
+
/** @internal */
|
|
1162
|
+
exports.ListPromptVersionsToolChoiceType$outboundSchema = exports.ListPromptVersionsToolChoiceType$inboundSchema;
|
|
1163
|
+
/** @internal */
|
|
1164
|
+
exports.ListPromptVersionsToolChoiceFunction$inboundSchema = z.object({
|
|
1165
|
+
name: z.string(),
|
|
1166
|
+
});
|
|
1167
|
+
/** @internal */
|
|
1168
|
+
exports.ListPromptVersionsToolChoiceFunction$outboundSchema = z.object({
|
|
1169
|
+
name: z.string(),
|
|
1170
|
+
});
|
|
1171
|
+
function listPromptVersionsToolChoiceFunctionToJSON(listPromptVersionsToolChoiceFunction) {
|
|
1172
|
+
return JSON.stringify(exports.ListPromptVersionsToolChoiceFunction$outboundSchema.parse(listPromptVersionsToolChoiceFunction));
|
|
1173
|
+
}
|
|
1174
|
+
function listPromptVersionsToolChoiceFunctionFromJSON(jsonString) {
|
|
1175
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsToolChoiceFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsToolChoiceFunction' from JSON`);
|
|
1176
|
+
}
|
|
1177
|
+
/** @internal */
|
|
1178
|
+
exports.ListPromptVersionsToolChoice2$inboundSchema = z.object({
|
|
1179
|
+
type: exports.ListPromptVersionsToolChoiceType$inboundSchema.optional(),
|
|
1180
|
+
function: z.lazy(() => exports.ListPromptVersionsToolChoiceFunction$inboundSchema),
|
|
1181
|
+
});
|
|
1182
|
+
/** @internal */
|
|
1183
|
+
exports.ListPromptVersionsToolChoice2$outboundSchema = z.object({
|
|
1184
|
+
type: exports.ListPromptVersionsToolChoiceType$outboundSchema.optional(),
|
|
1185
|
+
function: z.lazy(() => exports.ListPromptVersionsToolChoiceFunction$outboundSchema),
|
|
1186
|
+
});
|
|
1187
|
+
function listPromptVersionsToolChoice2ToJSON(listPromptVersionsToolChoice2) {
|
|
1188
|
+
return JSON.stringify(exports.ListPromptVersionsToolChoice2$outboundSchema.parse(listPromptVersionsToolChoice2));
|
|
1189
|
+
}
|
|
1190
|
+
function listPromptVersionsToolChoice2FromJSON(jsonString) {
|
|
1191
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsToolChoice2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsToolChoice2' from JSON`);
|
|
1192
|
+
}
|
|
1193
|
+
/** @internal */
|
|
1194
|
+
exports.ListPromptVersionsToolChoice1$inboundSchema = z.nativeEnum(exports.ListPromptVersionsToolChoice1);
|
|
1195
|
+
/** @internal */
|
|
1196
|
+
exports.ListPromptVersionsToolChoice1$outboundSchema = exports.ListPromptVersionsToolChoice1$inboundSchema;
|
|
1197
|
+
/** @internal */
|
|
1198
|
+
exports.ListPromptVersionsToolChoice$inboundSchema = z.union([
|
|
1199
|
+
z.lazy(() => exports.ListPromptVersionsToolChoice2$inboundSchema),
|
|
1200
|
+
exports.ListPromptVersionsToolChoice1$inboundSchema,
|
|
1201
|
+
]);
|
|
1202
|
+
/** @internal */
|
|
1203
|
+
exports.ListPromptVersionsToolChoice$outboundSchema = z.union([
|
|
1204
|
+
z.lazy(() => exports.ListPromptVersionsToolChoice2$outboundSchema),
|
|
1205
|
+
exports.ListPromptVersionsToolChoice1$outboundSchema,
|
|
1206
|
+
]);
|
|
1207
|
+
function listPromptVersionsToolChoiceToJSON(listPromptVersionsToolChoice) {
|
|
1208
|
+
return JSON.stringify(exports.ListPromptVersionsToolChoice$outboundSchema.parse(listPromptVersionsToolChoice));
|
|
1209
|
+
}
|
|
1210
|
+
function listPromptVersionsToolChoiceFromJSON(jsonString) {
|
|
1211
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsToolChoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsToolChoice' from JSON`);
|
|
1212
|
+
}
|
|
1213
|
+
/** @internal */
|
|
1214
|
+
exports.ListPromptVersionsModalities$inboundSchema = z.nativeEnum(exports.ListPromptVersionsModalities);
|
|
1215
|
+
/** @internal */
|
|
1216
|
+
exports.ListPromptVersionsModalities$outboundSchema = exports.ListPromptVersionsModalities$inboundSchema;
|
|
1217
|
+
/** @internal */
|
|
1218
|
+
exports.ListPromptVersionsId1$inboundSchema = z.nativeEnum(exports.ListPromptVersionsId1);
|
|
1219
|
+
/** @internal */
|
|
1220
|
+
exports.ListPromptVersionsId1$outboundSchema = exports.ListPromptVersionsId1$inboundSchema;
|
|
1221
|
+
/** @internal */
|
|
1222
|
+
exports.ListPromptVersionsId$inboundSchema = z.union([exports.ListPromptVersionsId1$inboundSchema, z.string()]);
|
|
1223
|
+
/** @internal */
|
|
1224
|
+
exports.ListPromptVersionsId$outboundSchema = z.union([exports.ListPromptVersionsId1$outboundSchema, z.string()]);
|
|
1225
|
+
function listPromptVersionsIdToJSON(listPromptVersionsId) {
|
|
1226
|
+
return JSON.stringify(exports.ListPromptVersionsId$outboundSchema.parse(listPromptVersionsId));
|
|
1227
|
+
}
|
|
1228
|
+
function listPromptVersionsIdFromJSON(jsonString) {
|
|
1229
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsId' from JSON`);
|
|
1230
|
+
}
|
|
1231
|
+
/** @internal */
|
|
1232
|
+
exports.ListPromptVersionsExecuteOn$inboundSchema = z.nativeEnum(exports.ListPromptVersionsExecuteOn);
|
|
1233
|
+
/** @internal */
|
|
1234
|
+
exports.ListPromptVersionsExecuteOn$outboundSchema = exports.ListPromptVersionsExecuteOn$inboundSchema;
|
|
1235
|
+
/** @internal */
|
|
1236
|
+
exports.ListPromptVersionsGuardrails$inboundSchema = z.object({
|
|
1237
|
+
id: z.union([exports.ListPromptVersionsId1$inboundSchema, z.string()]),
|
|
1238
|
+
execute_on: exports.ListPromptVersionsExecuteOn$inboundSchema,
|
|
1239
|
+
}).transform((v) => {
|
|
1240
|
+
return (0, primitives_js_1.remap)(v, {
|
|
1241
|
+
"execute_on": "executeOn",
|
|
1242
|
+
});
|
|
1243
|
+
});
|
|
1244
|
+
/** @internal */
|
|
1245
|
+
exports.ListPromptVersionsGuardrails$outboundSchema = z.object({
|
|
1246
|
+
id: z.union([exports.ListPromptVersionsId1$outboundSchema, z.string()]),
|
|
1247
|
+
executeOn: exports.ListPromptVersionsExecuteOn$outboundSchema,
|
|
1248
|
+
}).transform((v) => {
|
|
1249
|
+
return (0, primitives_js_1.remap)(v, {
|
|
1250
|
+
executeOn: "execute_on",
|
|
1251
|
+
});
|
|
1252
|
+
});
|
|
1253
|
+
function listPromptVersionsGuardrailsToJSON(listPromptVersionsGuardrails) {
|
|
1254
|
+
return JSON.stringify(exports.ListPromptVersionsGuardrails$outboundSchema.parse(listPromptVersionsGuardrails));
|
|
1255
|
+
}
|
|
1256
|
+
function listPromptVersionsGuardrailsFromJSON(jsonString) {
|
|
1257
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsGuardrails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsGuardrails' from JSON`);
|
|
1258
|
+
}
|
|
1259
|
+
/** @internal */
|
|
1260
|
+
exports.ListPromptVersionsContentPromptsResponse2002$inboundSchema = components.TextContentPartSchema$inboundSchema;
|
|
1261
|
+
/** @internal */
|
|
1262
|
+
exports.ListPromptVersionsContentPromptsResponse2002$outboundSchema = components.TextContentPartSchema$outboundSchema;
|
|
1263
|
+
function listPromptVersionsContentPromptsResponse2002ToJSON(listPromptVersionsContentPromptsResponse2002) {
|
|
1264
|
+
return JSON.stringify(exports.ListPromptVersionsContentPromptsResponse2002$outboundSchema.parse(listPromptVersionsContentPromptsResponse2002));
|
|
1265
|
+
}
|
|
1266
|
+
function listPromptVersionsContentPromptsResponse2002FromJSON(jsonString) {
|
|
1267
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsContentPromptsResponse2002$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsContentPromptsResponse2002' from JSON`);
|
|
1268
|
+
}
|
|
1269
|
+
/** @internal */
|
|
1270
|
+
exports.ListPromptVersionsMessagesPromptsResponse200Content$inboundSchema = z.union([
|
|
1271
|
+
z.string(),
|
|
1272
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
1273
|
+
]);
|
|
1274
|
+
/** @internal */
|
|
1275
|
+
exports.ListPromptVersionsMessagesPromptsResponse200Content$outboundSchema = z.union([
|
|
1276
|
+
z.string(),
|
|
1277
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
1278
|
+
]);
|
|
1279
|
+
function listPromptVersionsMessagesPromptsResponse200ContentToJSON(listPromptVersionsMessagesPromptsResponse200Content) {
|
|
1280
|
+
return JSON.stringify(exports.ListPromptVersionsMessagesPromptsResponse200Content$outboundSchema.parse(listPromptVersionsMessagesPromptsResponse200Content));
|
|
1281
|
+
}
|
|
1282
|
+
function listPromptVersionsMessagesPromptsResponse200ContentFromJSON(jsonString) {
|
|
1283
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsMessagesPromptsResponse200Content$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsMessagesPromptsResponse200Content' from JSON`);
|
|
1284
|
+
}
|
|
1285
|
+
/** @internal */
|
|
1286
|
+
exports.ListPromptVersionsMessagesPromptsType$inboundSchema = z.nativeEnum(exports.ListPromptVersionsMessagesPromptsType);
|
|
1287
|
+
/** @internal */
|
|
1288
|
+
exports.ListPromptVersionsMessagesPromptsType$outboundSchema = exports.ListPromptVersionsMessagesPromptsType$inboundSchema;
|
|
1289
|
+
/** @internal */
|
|
1290
|
+
exports.ListPromptVersionsMessagesTtl$inboundSchema = z.nativeEnum(exports.ListPromptVersionsMessagesTtl);
|
|
1291
|
+
/** @internal */
|
|
1292
|
+
exports.ListPromptVersionsMessagesTtl$outboundSchema = exports.ListPromptVersionsMessagesTtl$inboundSchema;
|
|
1293
|
+
/** @internal */
|
|
1294
|
+
exports.ListPromptVersionsMessagesCacheControl$inboundSchema = z.object({
|
|
1295
|
+
type: exports.ListPromptVersionsMessagesPromptsType$inboundSchema,
|
|
1296
|
+
ttl: exports.ListPromptVersionsMessagesTtl$inboundSchema.default("5m"),
|
|
1297
|
+
});
|
|
1298
|
+
/** @internal */
|
|
1299
|
+
exports.ListPromptVersionsMessagesCacheControl$outboundSchema = z.object({
|
|
1300
|
+
type: exports.ListPromptVersionsMessagesPromptsType$outboundSchema,
|
|
1301
|
+
ttl: exports.ListPromptVersionsMessagesTtl$outboundSchema.default("5m"),
|
|
1302
|
+
});
|
|
1303
|
+
function listPromptVersionsMessagesCacheControlToJSON(listPromptVersionsMessagesCacheControl) {
|
|
1304
|
+
return JSON.stringify(exports.ListPromptVersionsMessagesCacheControl$outboundSchema.parse(listPromptVersionsMessagesCacheControl));
|
|
1305
|
+
}
|
|
1306
|
+
function listPromptVersionsMessagesCacheControlFromJSON(jsonString) {
|
|
1307
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsMessagesCacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsMessagesCacheControl' from JSON`);
|
|
1308
|
+
}
|
|
1309
|
+
/** @internal */
|
|
1310
|
+
exports.ListPromptVersionsMessagesToolMessage$inboundSchema = z.object({
|
|
1311
|
+
role: z.literal("tool"),
|
|
1312
|
+
content: z.union([
|
|
1313
|
+
z.string(),
|
|
1314
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
1315
|
+
]),
|
|
1316
|
+
tool_call_id: z.nullable(z.string()),
|
|
1317
|
+
cache_control: z.lazy(() => exports.ListPromptVersionsMessagesCacheControl$inboundSchema).optional(),
|
|
1318
|
+
}).transform((v) => {
|
|
1319
|
+
return (0, primitives_js_1.remap)(v, {
|
|
1320
|
+
"tool_call_id": "toolCallId",
|
|
1321
|
+
"cache_control": "cacheControl",
|
|
1322
|
+
});
|
|
1323
|
+
});
|
|
1324
|
+
/** @internal */
|
|
1325
|
+
exports.ListPromptVersionsMessagesToolMessage$outboundSchema = z.object({
|
|
1326
|
+
role: z.literal("tool"),
|
|
1327
|
+
content: z.union([
|
|
1328
|
+
z.string(),
|
|
1329
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
1330
|
+
]),
|
|
1331
|
+
toolCallId: z.nullable(z.string()),
|
|
1332
|
+
cacheControl: z.lazy(() => exports.ListPromptVersionsMessagesCacheControl$outboundSchema).optional(),
|
|
1333
|
+
}).transform((v) => {
|
|
1334
|
+
return (0, primitives_js_1.remap)(v, {
|
|
1335
|
+
toolCallId: "tool_call_id",
|
|
1336
|
+
cacheControl: "cache_control",
|
|
1337
|
+
});
|
|
1338
|
+
});
|
|
1339
|
+
function listPromptVersionsMessagesToolMessageToJSON(listPromptVersionsMessagesToolMessage) {
|
|
1340
|
+
return JSON.stringify(exports.ListPromptVersionsMessagesToolMessage$outboundSchema.parse(listPromptVersionsMessagesToolMessage));
|
|
1341
|
+
}
|
|
1342
|
+
function listPromptVersionsMessagesToolMessageFromJSON(jsonString) {
|
|
1343
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsMessagesToolMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsMessagesToolMessage' from JSON`);
|
|
1344
|
+
}
|
|
1345
|
+
/** @internal */
|
|
1346
|
+
exports.ListPromptVersionsContentPromptsResponse2$inboundSchema = z.union([
|
|
1347
|
+
components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1348
|
+
components.RefusalPartSchema$inboundSchema,
|
|
1349
|
+
components.ReasoningPartSchema$inboundSchema,
|
|
1350
|
+
components.RedactedReasoningPartSchema$inboundSchema,
|
|
1351
|
+
]);
|
|
1352
|
+
/** @internal */
|
|
1353
|
+
exports.ListPromptVersionsContentPromptsResponse2$outboundSchema = z.union([
|
|
1354
|
+
components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1355
|
+
components.RefusalPartSchema$outboundSchema,
|
|
1356
|
+
components.ReasoningPartSchema$outboundSchema,
|
|
1357
|
+
components.RedactedReasoningPartSchema$outboundSchema,
|
|
1358
|
+
]);
|
|
1359
|
+
function listPromptVersionsContentPromptsResponse2ToJSON(listPromptVersionsContentPromptsResponse2) {
|
|
1360
|
+
return JSON.stringify(exports.ListPromptVersionsContentPromptsResponse2$outboundSchema.parse(listPromptVersionsContentPromptsResponse2));
|
|
1361
|
+
}
|
|
1362
|
+
function listPromptVersionsContentPromptsResponse2FromJSON(jsonString) {
|
|
1363
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsContentPromptsResponse2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsContentPromptsResponse2' from JSON`);
|
|
1364
|
+
}
|
|
1365
|
+
/** @internal */
|
|
1366
|
+
exports.ListPromptVersionsMessagesPromptsResponseContent$inboundSchema = z.union([
|
|
1367
|
+
z.string(),
|
|
1368
|
+
z.array(z.union([
|
|
1369
|
+
components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1370
|
+
components.RefusalPartSchema$inboundSchema,
|
|
1371
|
+
components.ReasoningPartSchema$inboundSchema,
|
|
1372
|
+
components.RedactedReasoningPartSchema$inboundSchema,
|
|
1373
|
+
])),
|
|
1374
|
+
]);
|
|
1375
|
+
/** @internal */
|
|
1376
|
+
exports.ListPromptVersionsMessagesPromptsResponseContent$outboundSchema = z.union([
|
|
1377
|
+
z.string(),
|
|
1378
|
+
z.array(z.union([
|
|
1379
|
+
components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1380
|
+
components.RefusalPartSchema$outboundSchema,
|
|
1381
|
+
components.ReasoningPartSchema$outboundSchema,
|
|
1382
|
+
components.RedactedReasoningPartSchema$outboundSchema,
|
|
1383
|
+
])),
|
|
1384
|
+
]);
|
|
1385
|
+
function listPromptVersionsMessagesPromptsResponseContentToJSON(listPromptVersionsMessagesPromptsResponseContent) {
|
|
1386
|
+
return JSON.stringify(exports.ListPromptVersionsMessagesPromptsResponseContent$outboundSchema.parse(listPromptVersionsMessagesPromptsResponseContent));
|
|
1387
|
+
}
|
|
1388
|
+
function listPromptVersionsMessagesPromptsResponseContentFromJSON(jsonString) {
|
|
1389
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsMessagesPromptsResponseContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsMessagesPromptsResponseContent' from JSON`);
|
|
1390
|
+
}
|
|
1391
|
+
/** @internal */
|
|
1392
|
+
exports.ListPromptVersionsMessagesAudio$inboundSchema = z.object({
|
|
1393
|
+
id: z.string(),
|
|
1394
|
+
});
|
|
1395
|
+
/** @internal */
|
|
1396
|
+
exports.ListPromptVersionsMessagesAudio$outboundSchema = z.object({
|
|
1397
|
+
id: z.string(),
|
|
1398
|
+
});
|
|
1399
|
+
function listPromptVersionsMessagesAudioToJSON(listPromptVersionsMessagesAudio) {
|
|
1400
|
+
return JSON.stringify(exports.ListPromptVersionsMessagesAudio$outboundSchema.parse(listPromptVersionsMessagesAudio));
|
|
1401
|
+
}
|
|
1402
|
+
function listPromptVersionsMessagesAudioFromJSON(jsonString) {
|
|
1403
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsMessagesAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsMessagesAudio' from JSON`);
|
|
1404
|
+
}
|
|
1405
|
+
/** @internal */
|
|
1406
|
+
exports.ListPromptVersionsMessagesType$inboundSchema = z.nativeEnum(exports.ListPromptVersionsMessagesType);
|
|
1407
|
+
/** @internal */
|
|
1408
|
+
exports.ListPromptVersionsMessagesType$outboundSchema = exports.ListPromptVersionsMessagesType$inboundSchema;
|
|
1409
|
+
/** @internal */
|
|
1410
|
+
exports.ListPromptVersionsMessagesFunction$inboundSchema = z.object({
|
|
1411
|
+
name: z.string().optional(),
|
|
1412
|
+
arguments: z.string().optional(),
|
|
1413
|
+
});
|
|
1414
|
+
/** @internal */
|
|
1415
|
+
exports.ListPromptVersionsMessagesFunction$outboundSchema = z.object({
|
|
1416
|
+
name: z.string().optional(),
|
|
1417
|
+
arguments: z.string().optional(),
|
|
1418
|
+
});
|
|
1419
|
+
function listPromptVersionsMessagesFunctionToJSON(listPromptVersionsMessagesFunction) {
|
|
1420
|
+
return JSON.stringify(exports.ListPromptVersionsMessagesFunction$outboundSchema.parse(listPromptVersionsMessagesFunction));
|
|
1421
|
+
}
|
|
1422
|
+
function listPromptVersionsMessagesFunctionFromJSON(jsonString) {
|
|
1423
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsMessagesFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsMessagesFunction' from JSON`);
|
|
1424
|
+
}
|
|
1425
|
+
/** @internal */
|
|
1426
|
+
exports.ListPromptVersionsMessagesToolCalls$inboundSchema = z.object({
|
|
1427
|
+
id: z.string(),
|
|
1428
|
+
type: exports.ListPromptVersionsMessagesType$inboundSchema,
|
|
1429
|
+
function: z.lazy(() => exports.ListPromptVersionsMessagesFunction$inboundSchema),
|
|
1430
|
+
thought_signature: z.string().optional(),
|
|
1431
|
+
}).transform((v) => {
|
|
1432
|
+
return (0, primitives_js_1.remap)(v, {
|
|
1433
|
+
"thought_signature": "thoughtSignature",
|
|
1434
|
+
});
|
|
1435
|
+
});
|
|
1436
|
+
/** @internal */
|
|
1437
|
+
exports.ListPromptVersionsMessagesToolCalls$outboundSchema = z.object({
|
|
1438
|
+
id: z.string(),
|
|
1439
|
+
type: exports.ListPromptVersionsMessagesType$outboundSchema,
|
|
1440
|
+
function: z.lazy(() => exports.ListPromptVersionsMessagesFunction$outboundSchema),
|
|
1441
|
+
thoughtSignature: z.string().optional(),
|
|
1442
|
+
}).transform((v) => {
|
|
1443
|
+
return (0, primitives_js_1.remap)(v, {
|
|
1444
|
+
thoughtSignature: "thought_signature",
|
|
1445
|
+
});
|
|
1446
|
+
});
|
|
1447
|
+
function listPromptVersionsMessagesToolCallsToJSON(listPromptVersionsMessagesToolCalls) {
|
|
1448
|
+
return JSON.stringify(exports.ListPromptVersionsMessagesToolCalls$outboundSchema.parse(listPromptVersionsMessagesToolCalls));
|
|
1449
|
+
}
|
|
1450
|
+
function listPromptVersionsMessagesToolCallsFromJSON(jsonString) {
|
|
1451
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsMessagesToolCalls$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsMessagesToolCalls' from JSON`);
|
|
1452
|
+
}
|
|
1453
|
+
/** @internal */
|
|
1454
|
+
exports.ListPromptVersionsMessagesAssistantMessage$inboundSchema = z.object({
|
|
1455
|
+
content: z.nullable(z.union([
|
|
1456
|
+
z.string(),
|
|
1457
|
+
z.array(z.union([
|
|
1458
|
+
components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1459
|
+
components.RefusalPartSchema$inboundSchema,
|
|
1460
|
+
components.ReasoningPartSchema$inboundSchema,
|
|
1461
|
+
components.RedactedReasoningPartSchema$inboundSchema,
|
|
1462
|
+
])),
|
|
1463
|
+
])).optional(),
|
|
1464
|
+
refusal: z.nullable(z.string()).optional(),
|
|
1465
|
+
role: z.literal("assistant"),
|
|
1466
|
+
name: z.string().optional(),
|
|
1467
|
+
audio: z.nullable(z.lazy(() => exports.ListPromptVersionsMessagesAudio$inboundSchema)).optional(),
|
|
1468
|
+
tool_calls: z.array(z.lazy(() => exports.ListPromptVersionsMessagesToolCalls$inboundSchema)).optional(),
|
|
1469
|
+
}).transform((v) => {
|
|
1470
|
+
return (0, primitives_js_1.remap)(v, {
|
|
1471
|
+
"tool_calls": "toolCalls",
|
|
1472
|
+
});
|
|
1473
|
+
});
|
|
1474
|
+
/** @internal */
|
|
1475
|
+
exports.ListPromptVersionsMessagesAssistantMessage$outboundSchema = z.object({
|
|
1476
|
+
content: z.nullable(z.union([
|
|
1477
|
+
z.string(),
|
|
1478
|
+
z.array(z.union([
|
|
1479
|
+
components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1480
|
+
components.RefusalPartSchema$outboundSchema,
|
|
1481
|
+
components.ReasoningPartSchema$outboundSchema,
|
|
1482
|
+
components.RedactedReasoningPartSchema$outboundSchema,
|
|
1483
|
+
])),
|
|
1484
|
+
])).optional(),
|
|
1485
|
+
refusal: z.nullable(z.string()).optional(),
|
|
1486
|
+
role: z.literal("assistant"),
|
|
1487
|
+
name: z.string().optional(),
|
|
1488
|
+
audio: z.nullable(z.lazy(() => exports.ListPromptVersionsMessagesAudio$outboundSchema)).optional(),
|
|
1489
|
+
toolCalls: z.array(z.lazy(() => exports.ListPromptVersionsMessagesToolCalls$outboundSchema)).optional(),
|
|
1490
|
+
}).transform((v) => {
|
|
1491
|
+
return (0, primitives_js_1.remap)(v, {
|
|
1492
|
+
toolCalls: "tool_calls",
|
|
1493
|
+
});
|
|
1494
|
+
});
|
|
1495
|
+
function listPromptVersionsMessagesAssistantMessageToJSON(listPromptVersionsMessagesAssistantMessage) {
|
|
1496
|
+
return JSON.stringify(exports.ListPromptVersionsMessagesAssistantMessage$outboundSchema.parse(listPromptVersionsMessagesAssistantMessage));
|
|
1497
|
+
}
|
|
1498
|
+
function listPromptVersionsMessagesAssistantMessageFromJSON(jsonString) {
|
|
1499
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsMessagesAssistantMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsMessagesAssistantMessage' from JSON`);
|
|
1500
|
+
}
|
|
1501
|
+
/** @internal */
|
|
1502
|
+
exports.ListPromptVersions2PromptsResponse200ApplicationJSONType$inboundSchema = z.nativeEnum(exports.ListPromptVersions2PromptsResponse200ApplicationJSONType);
|
|
1503
|
+
/** @internal */
|
|
1504
|
+
exports.ListPromptVersions2PromptsResponse200ApplicationJSONType$outboundSchema = exports.ListPromptVersions2PromptsResponse200ApplicationJSONType$inboundSchema;
|
|
1505
|
+
/** @internal */
|
|
1506
|
+
exports.ListPromptVersions2Ttl$inboundSchema = z.nativeEnum(exports.ListPromptVersions2Ttl);
|
|
1507
|
+
/** @internal */
|
|
1508
|
+
exports.ListPromptVersions2Ttl$outboundSchema = exports.ListPromptVersions2Ttl$inboundSchema;
|
|
1509
|
+
/** @internal */
|
|
1510
|
+
exports.ListPromptVersions2CacheControl$inboundSchema = z.object({
|
|
1511
|
+
type: exports.ListPromptVersions2PromptsResponse200ApplicationJSONType$inboundSchema,
|
|
1512
|
+
ttl: exports.ListPromptVersions2Ttl$inboundSchema.default("5m"),
|
|
1513
|
+
});
|
|
1514
|
+
/** @internal */
|
|
1515
|
+
exports.ListPromptVersions2CacheControl$outboundSchema = z.object({
|
|
1516
|
+
type: exports.ListPromptVersions2PromptsResponse200ApplicationJSONType$outboundSchema,
|
|
1517
|
+
ttl: exports.ListPromptVersions2Ttl$outboundSchema.default("5m"),
|
|
1518
|
+
});
|
|
1519
|
+
function listPromptVersions2CacheControlToJSON(listPromptVersions2CacheControl) {
|
|
1520
|
+
return JSON.stringify(exports.ListPromptVersions2CacheControl$outboundSchema.parse(listPromptVersions2CacheControl));
|
|
1521
|
+
}
|
|
1522
|
+
function listPromptVersions2CacheControlFromJSON(jsonString) {
|
|
1523
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersions2CacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersions2CacheControl' from JSON`);
|
|
1524
|
+
}
|
|
1525
|
+
/** @internal */
|
|
1526
|
+
exports.ListPromptVersions24$inboundSchema = z.object({
|
|
1527
|
+
type: z.literal("file"),
|
|
1528
|
+
cache_control: z.lazy(() => exports.ListPromptVersions2CacheControl$inboundSchema)
|
|
1529
|
+
.optional(),
|
|
1530
|
+
file: components.FileContentPartSchema$inboundSchema,
|
|
1531
|
+
}).transform((v) => {
|
|
1532
|
+
return (0, primitives_js_1.remap)(v, {
|
|
1533
|
+
"cache_control": "cacheControl",
|
|
1534
|
+
});
|
|
1535
|
+
});
|
|
1536
|
+
/** @internal */
|
|
1537
|
+
exports.ListPromptVersions24$outboundSchema = z.object({
|
|
1538
|
+
type: z.literal("file"),
|
|
1539
|
+
cacheControl: z.lazy(() => exports.ListPromptVersions2CacheControl$outboundSchema)
|
|
1540
|
+
.optional(),
|
|
1541
|
+
file: components.FileContentPartSchema$outboundSchema,
|
|
1542
|
+
}).transform((v) => {
|
|
1543
|
+
return (0, primitives_js_1.remap)(v, {
|
|
1544
|
+
cacheControl: "cache_control",
|
|
1545
|
+
});
|
|
1546
|
+
});
|
|
1547
|
+
function listPromptVersions24ToJSON(listPromptVersions24) {
|
|
1548
|
+
return JSON.stringify(exports.ListPromptVersions24$outboundSchema.parse(listPromptVersions24));
|
|
1549
|
+
}
|
|
1550
|
+
function listPromptVersions24FromJSON(jsonString) {
|
|
1551
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersions24$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersions24' from JSON`);
|
|
1552
|
+
}
|
|
1553
|
+
/** @internal */
|
|
1554
|
+
exports.ListPromptVersionsContentPrompts2$inboundSchema = z.union([
|
|
1555
|
+
components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1556
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
1557
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
1558
|
+
z.lazy(() => exports.ListPromptVersions24$inboundSchema),
|
|
1559
|
+
]);
|
|
1560
|
+
/** @internal */
|
|
1561
|
+
exports.ListPromptVersionsContentPrompts2$outboundSchema = z.union([
|
|
1562
|
+
components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1563
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
1564
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
1565
|
+
z.lazy(() => exports.ListPromptVersions24$outboundSchema),
|
|
1566
|
+
]);
|
|
1567
|
+
function listPromptVersionsContentPrompts2ToJSON(listPromptVersionsContentPrompts2) {
|
|
1568
|
+
return JSON.stringify(exports.ListPromptVersionsContentPrompts2$outboundSchema.parse(listPromptVersionsContentPrompts2));
|
|
1569
|
+
}
|
|
1570
|
+
function listPromptVersionsContentPrompts2FromJSON(jsonString) {
|
|
1571
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsContentPrompts2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsContentPrompts2' from JSON`);
|
|
1572
|
+
}
|
|
1573
|
+
/** @internal */
|
|
1574
|
+
exports.ListPromptVersionsMessagesPromptsContent$inboundSchema = z.union([
|
|
1575
|
+
z.string(),
|
|
1576
|
+
z.array(z.union([
|
|
1577
|
+
components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1578
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
1579
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
1580
|
+
z.lazy(() => exports.ListPromptVersions24$inboundSchema),
|
|
1581
|
+
])),
|
|
1582
|
+
]);
|
|
1583
|
+
/** @internal */
|
|
1584
|
+
exports.ListPromptVersionsMessagesPromptsContent$outboundSchema = z.union([
|
|
1585
|
+
z.string(),
|
|
1586
|
+
z.array(z.union([
|
|
1587
|
+
components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1588
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
1589
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
1590
|
+
z.lazy(() => exports.ListPromptVersions24$outboundSchema),
|
|
1591
|
+
])),
|
|
1592
|
+
]);
|
|
1593
|
+
function listPromptVersionsMessagesPromptsContentToJSON(listPromptVersionsMessagesPromptsContent) {
|
|
1594
|
+
return JSON.stringify(exports.ListPromptVersionsMessagesPromptsContent$outboundSchema.parse(listPromptVersionsMessagesPromptsContent));
|
|
1595
|
+
}
|
|
1596
|
+
function listPromptVersionsMessagesPromptsContentFromJSON(jsonString) {
|
|
1597
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsMessagesPromptsContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsMessagesPromptsContent' from JSON`);
|
|
1598
|
+
}
|
|
1599
|
+
/** @internal */
|
|
1600
|
+
exports.ListPromptVersionsMessagesUserMessage$inboundSchema = z.object({
|
|
1601
|
+
role: z.literal("user"),
|
|
1602
|
+
name: z.string().optional(),
|
|
1603
|
+
content: z.union([
|
|
1604
|
+
z.string(),
|
|
1605
|
+
z.array(z.union([
|
|
1606
|
+
components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1607
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
1608
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
1609
|
+
z.lazy(() => exports.ListPromptVersions24$inboundSchema),
|
|
1610
|
+
])),
|
|
1611
|
+
]),
|
|
1612
|
+
});
|
|
1613
|
+
/** @internal */
|
|
1614
|
+
exports.ListPromptVersionsMessagesUserMessage$outboundSchema = z.object({
|
|
1615
|
+
role: z.literal("user"),
|
|
1616
|
+
name: z.string().optional(),
|
|
1617
|
+
content: z.union([
|
|
1618
|
+
z.string(),
|
|
1619
|
+
z.array(z.union([
|
|
1620
|
+
components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1621
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
1622
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
1623
|
+
z.lazy(() => exports.ListPromptVersions24$outboundSchema),
|
|
1624
|
+
])),
|
|
1625
|
+
]),
|
|
1626
|
+
});
|
|
1627
|
+
function listPromptVersionsMessagesUserMessageToJSON(listPromptVersionsMessagesUserMessage) {
|
|
1628
|
+
return JSON.stringify(exports.ListPromptVersionsMessagesUserMessage$outboundSchema.parse(listPromptVersionsMessagesUserMessage));
|
|
1629
|
+
}
|
|
1630
|
+
function listPromptVersionsMessagesUserMessageFromJSON(jsonString) {
|
|
1631
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsMessagesUserMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsMessagesUserMessage' from JSON`);
|
|
1632
|
+
}
|
|
1633
|
+
/** @internal */
|
|
1634
|
+
exports.ListPromptVersionsMessagesContent$inboundSchema = z.union([
|
|
1635
|
+
z.string(),
|
|
1636
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
1637
|
+
]);
|
|
1638
|
+
/** @internal */
|
|
1639
|
+
exports.ListPromptVersionsMessagesContent$outboundSchema = z.union([
|
|
1640
|
+
z.string(),
|
|
1641
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
1642
|
+
]);
|
|
1643
|
+
function listPromptVersionsMessagesContentToJSON(listPromptVersionsMessagesContent) {
|
|
1644
|
+
return JSON.stringify(exports.ListPromptVersionsMessagesContent$outboundSchema.parse(listPromptVersionsMessagesContent));
|
|
1645
|
+
}
|
|
1646
|
+
function listPromptVersionsMessagesContentFromJSON(jsonString) {
|
|
1647
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsMessagesContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsMessagesContent' from JSON`);
|
|
1648
|
+
}
|
|
1649
|
+
/** @internal */
|
|
1650
|
+
exports.ListPromptVersionsMessagesSystemMessage$inboundSchema = z.object({
|
|
1651
|
+
role: z.literal("system"),
|
|
1652
|
+
content: z.union([
|
|
1653
|
+
z.string(),
|
|
1654
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
1655
|
+
]),
|
|
1656
|
+
name: z.string().optional(),
|
|
1657
|
+
});
|
|
1658
|
+
/** @internal */
|
|
1659
|
+
exports.ListPromptVersionsMessagesSystemMessage$outboundSchema = z.object({
|
|
1660
|
+
role: z.literal("system"),
|
|
1661
|
+
content: z.union([
|
|
1662
|
+
z.string(),
|
|
1663
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
1664
|
+
]),
|
|
1665
|
+
name: z.string().optional(),
|
|
1666
|
+
});
|
|
1667
|
+
function listPromptVersionsMessagesSystemMessageToJSON(listPromptVersionsMessagesSystemMessage) {
|
|
1668
|
+
return JSON.stringify(exports.ListPromptVersionsMessagesSystemMessage$outboundSchema.parse(listPromptVersionsMessagesSystemMessage));
|
|
1669
|
+
}
|
|
1670
|
+
function listPromptVersionsMessagesSystemMessageFromJSON(jsonString) {
|
|
1671
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsMessagesSystemMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsMessagesSystemMessage' from JSON`);
|
|
1672
|
+
}
|
|
1673
|
+
/** @internal */
|
|
1674
|
+
exports.ListPromptVersionsPromptsMessages$inboundSchema = z.union([
|
|
1675
|
+
z.lazy(() => exports.ListPromptVersionsMessagesSystemMessage$inboundSchema),
|
|
1676
|
+
z.lazy(() => exports.ListPromptVersionsMessagesUserMessage$inboundSchema),
|
|
1677
|
+
z.lazy(() => exports.ListPromptVersionsMessagesAssistantMessage$inboundSchema),
|
|
1678
|
+
z.lazy(() => exports.ListPromptVersionsMessagesToolMessage$inboundSchema),
|
|
1679
|
+
]);
|
|
1680
|
+
/** @internal */
|
|
1681
|
+
exports.ListPromptVersionsPromptsMessages$outboundSchema = z.union([
|
|
1682
|
+
z.lazy(() => exports.ListPromptVersionsMessagesSystemMessage$outboundSchema),
|
|
1683
|
+
z.lazy(() => exports.ListPromptVersionsMessagesUserMessage$outboundSchema),
|
|
1684
|
+
z.lazy(() => exports.ListPromptVersionsMessagesAssistantMessage$outboundSchema),
|
|
1685
|
+
z.lazy(() => exports.ListPromptVersionsMessagesToolMessage$outboundSchema),
|
|
1686
|
+
]);
|
|
1687
|
+
function listPromptVersionsPromptsMessagesToJSON(listPromptVersionsPromptsMessages) {
|
|
1688
|
+
return JSON.stringify(exports.ListPromptVersionsPromptsMessages$outboundSchema.parse(listPromptVersionsPromptsMessages));
|
|
1689
|
+
}
|
|
1690
|
+
function listPromptVersionsPromptsMessagesFromJSON(jsonString) {
|
|
1691
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsPromptsMessages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsPromptsMessages' from JSON`);
|
|
1692
|
+
}
|
|
1693
|
+
/** @internal */
|
|
1694
|
+
exports.ListPromptVersionsPromptField$inboundSchema = z.object({
|
|
1695
|
+
audio: z.nullable(z.lazy(() => exports.ListPromptVersionsAudio$inboundSchema))
|
|
1696
|
+
.optional(),
|
|
1697
|
+
frequency_penalty: z.nullable(z.number()).optional(),
|
|
1698
|
+
max_tokens: z.nullable(z.number().int()).optional(),
|
|
1699
|
+
max_completion_tokens: z.nullable(z.number().int()).optional(),
|
|
1700
|
+
logprobs: z.nullable(z.boolean()).optional(),
|
|
1701
|
+
top_logprobs: z.nullable(z.number().int()).optional(),
|
|
1702
|
+
n: z.nullable(z.number().int()).optional(),
|
|
1703
|
+
presence_penalty: z.nullable(z.number()).optional(),
|
|
1704
|
+
response_format: z.union([
|
|
1705
|
+
z.lazy(() => exports.ListPromptVersionsResponseFormatText$inboundSchema),
|
|
1706
|
+
z.lazy(() => exports.ListPromptVersionsResponseFormatJSONObject$inboundSchema),
|
|
1707
|
+
z.lazy(() => exports.ListPromptVersionsResponseFormatPromptsJSONSchema$inboundSchema),
|
|
1708
|
+
]).optional(),
|
|
1709
|
+
reasoning_effort: exports.ListPromptVersionsReasoningEffort$inboundSchema.optional(),
|
|
1710
|
+
verbosity: z.string().optional(),
|
|
1711
|
+
seed: z.nullable(z.number()).optional(),
|
|
1712
|
+
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
1713
|
+
stream_options: z.nullable(z.lazy(() => exports.ListPromptVersionsStreamOptions$inboundSchema)).optional(),
|
|
1714
|
+
thinking: z.union([
|
|
1715
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
1716
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
1717
|
+
]).optional(),
|
|
1718
|
+
temperature: z.nullable(z.number()).optional(),
|
|
1719
|
+
top_p: z.nullable(z.number()).optional(),
|
|
1720
|
+
top_k: z.nullable(z.number()).optional(),
|
|
1721
|
+
tool_choice: z.union([
|
|
1722
|
+
z.lazy(() => exports.ListPromptVersionsToolChoice2$inboundSchema),
|
|
1723
|
+
exports.ListPromptVersionsToolChoice1$inboundSchema,
|
|
1724
|
+
]).optional(),
|
|
1725
|
+
parallel_tool_calls: z.boolean().optional(),
|
|
1726
|
+
modalities: z.nullable(z.array(exports.ListPromptVersionsModalities$inboundSchema))
|
|
1727
|
+
.optional(),
|
|
1728
|
+
guardrails: z.array(z.lazy(() => exports.ListPromptVersionsGuardrails$inboundSchema))
|
|
1729
|
+
.optional(),
|
|
1730
|
+
messages: z.array(z.union([
|
|
1731
|
+
z.lazy(() => exports.ListPromptVersionsMessagesSystemMessage$inboundSchema),
|
|
1732
|
+
z.lazy(() => exports.ListPromptVersionsMessagesUserMessage$inboundSchema),
|
|
1733
|
+
z.lazy(() => exports.ListPromptVersionsMessagesAssistantMessage$inboundSchema),
|
|
1734
|
+
z.lazy(() => exports.ListPromptVersionsMessagesToolMessage$inboundSchema),
|
|
1735
|
+
])).optional(),
|
|
1736
|
+
model: z.nullable(z.string()).optional(),
|
|
1737
|
+
version: z.string().optional(),
|
|
1738
|
+
}).transform((v) => {
|
|
1739
|
+
return (0, primitives_js_1.remap)(v, {
|
|
1740
|
+
"frequency_penalty": "frequencyPenalty",
|
|
1741
|
+
"max_tokens": "maxTokens",
|
|
1742
|
+
"max_completion_tokens": "maxCompletionTokens",
|
|
1743
|
+
"top_logprobs": "topLogprobs",
|
|
1744
|
+
"presence_penalty": "presencePenalty",
|
|
1745
|
+
"response_format": "responseFormat",
|
|
1746
|
+
"reasoning_effort": "reasoningEffort",
|
|
1747
|
+
"stream_options": "streamOptions",
|
|
1748
|
+
"top_p": "topP",
|
|
1749
|
+
"top_k": "topK",
|
|
1750
|
+
"tool_choice": "toolChoice",
|
|
1751
|
+
"parallel_tool_calls": "parallelToolCalls",
|
|
1752
|
+
});
|
|
1753
|
+
});
|
|
1754
|
+
/** @internal */
|
|
1755
|
+
exports.ListPromptVersionsPromptField$outboundSchema = z.object({
|
|
1756
|
+
audio: z.nullable(z.lazy(() => exports.ListPromptVersionsAudio$outboundSchema))
|
|
1757
|
+
.optional(),
|
|
1758
|
+
frequencyPenalty: z.nullable(z.number()).optional(),
|
|
1759
|
+
maxTokens: z.nullable(z.number().int()).optional(),
|
|
1760
|
+
maxCompletionTokens: z.nullable(z.number().int()).optional(),
|
|
1761
|
+
logprobs: z.nullable(z.boolean()).optional(),
|
|
1762
|
+
topLogprobs: z.nullable(z.number().int()).optional(),
|
|
1763
|
+
n: z.nullable(z.number().int()).optional(),
|
|
1764
|
+
presencePenalty: z.nullable(z.number()).optional(),
|
|
1765
|
+
responseFormat: z.union([
|
|
1766
|
+
z.lazy(() => exports.ListPromptVersionsResponseFormatText$outboundSchema),
|
|
1767
|
+
z.lazy(() => exports.ListPromptVersionsResponseFormatJSONObject$outboundSchema),
|
|
1768
|
+
z.lazy(() => exports.ListPromptVersionsResponseFormatPromptsJSONSchema$outboundSchema),
|
|
1769
|
+
]).optional(),
|
|
1770
|
+
reasoningEffort: exports.ListPromptVersionsReasoningEffort$outboundSchema.optional(),
|
|
1771
|
+
verbosity: z.string().optional(),
|
|
1772
|
+
seed: z.nullable(z.number()).optional(),
|
|
1773
|
+
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
1774
|
+
streamOptions: z.nullable(z.lazy(() => exports.ListPromptVersionsStreamOptions$outboundSchema)).optional(),
|
|
1775
|
+
thinking: z.union([
|
|
1776
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
1777
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
1778
|
+
]).optional(),
|
|
1779
|
+
temperature: z.nullable(z.number()).optional(),
|
|
1780
|
+
topP: z.nullable(z.number()).optional(),
|
|
1781
|
+
topK: z.nullable(z.number()).optional(),
|
|
1782
|
+
toolChoice: z.union([
|
|
1783
|
+
z.lazy(() => exports.ListPromptVersionsToolChoice2$outboundSchema),
|
|
1784
|
+
exports.ListPromptVersionsToolChoice1$outboundSchema,
|
|
1785
|
+
]).optional(),
|
|
1786
|
+
parallelToolCalls: z.boolean().optional(),
|
|
1787
|
+
modalities: z.nullable(z.array(exports.ListPromptVersionsModalities$outboundSchema))
|
|
1788
|
+
.optional(),
|
|
1789
|
+
guardrails: z.array(z.lazy(() => exports.ListPromptVersionsGuardrails$outboundSchema))
|
|
1790
|
+
.optional(),
|
|
1791
|
+
messages: z.array(z.union([
|
|
1792
|
+
z.lazy(() => exports.ListPromptVersionsMessagesSystemMessage$outboundSchema),
|
|
1793
|
+
z.lazy(() => exports.ListPromptVersionsMessagesUserMessage$outboundSchema),
|
|
1794
|
+
z.lazy(() => exports.ListPromptVersionsMessagesAssistantMessage$outboundSchema),
|
|
1795
|
+
z.lazy(() => exports.ListPromptVersionsMessagesToolMessage$outboundSchema),
|
|
1796
|
+
])).optional(),
|
|
1797
|
+
model: z.nullable(z.string()).optional(),
|
|
1798
|
+
version: z.string().optional(),
|
|
1799
|
+
}).transform((v) => {
|
|
1800
|
+
return (0, primitives_js_1.remap)(v, {
|
|
1801
|
+
frequencyPenalty: "frequency_penalty",
|
|
1802
|
+
maxTokens: "max_tokens",
|
|
1803
|
+
maxCompletionTokens: "max_completion_tokens",
|
|
1804
|
+
topLogprobs: "top_logprobs",
|
|
1805
|
+
presencePenalty: "presence_penalty",
|
|
1806
|
+
responseFormat: "response_format",
|
|
1807
|
+
reasoningEffort: "reasoning_effort",
|
|
1808
|
+
streamOptions: "stream_options",
|
|
1809
|
+
topP: "top_p",
|
|
1810
|
+
topK: "top_k",
|
|
1811
|
+
toolChoice: "tool_choice",
|
|
1812
|
+
parallelToolCalls: "parallel_tool_calls",
|
|
1813
|
+
});
|
|
1814
|
+
});
|
|
1815
|
+
function listPromptVersionsPromptFieldToJSON(listPromptVersionsPromptField) {
|
|
1816
|
+
return JSON.stringify(exports.ListPromptVersionsPromptField$outboundSchema.parse(listPromptVersionsPromptField));
|
|
1817
|
+
}
|
|
1818
|
+
function listPromptVersionsPromptFieldFromJSON(jsonString) {
|
|
1819
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsPromptField$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsPromptField' from JSON`);
|
|
1820
|
+
}
|
|
1821
|
+
/** @internal */
|
|
803
1822
|
exports.ListPromptVersionsUseCases$inboundSchema = z.nativeEnum(exports.ListPromptVersionsUseCases);
|
|
804
1823
|
/** @internal */
|
|
805
1824
|
exports.ListPromptVersionsUseCases$outboundSchema = exports.ListPromptVersionsUseCases$inboundSchema;
|
|
@@ -837,7 +1856,9 @@ exports.ListPromptVersionsData$inboundSchema = z.object({
|
|
|
837
1856
|
created_by_id: z.nullable(z.string()).optional(),
|
|
838
1857
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
839
1858
|
description: z.nullable(z.string()).optional(),
|
|
840
|
-
prompt_config: z.lazy(() => exports.ListPromptVersionsPromptConfig$inboundSchema)
|
|
1859
|
+
prompt_config: z.lazy(() => exports.ListPromptVersionsPromptConfig$inboundSchema)
|
|
1860
|
+
.optional(),
|
|
1861
|
+
prompt: z.lazy(() => exports.ListPromptVersionsPromptField$inboundSchema),
|
|
841
1862
|
metadata: z.lazy(() => exports.ListPromptVersionsMetadata$inboundSchema).optional(),
|
|
842
1863
|
timestamp: z.string(),
|
|
843
1864
|
}).transform((v) => {
|
|
@@ -854,7 +1875,9 @@ exports.ListPromptVersionsData$outboundSchema = z.object({
|
|
|
854
1875
|
createdById: z.nullable(z.string()).optional(),
|
|
855
1876
|
updatedById: z.nullable(z.string()).optional(),
|
|
856
1877
|
description: z.nullable(z.string()).optional(),
|
|
857
|
-
promptConfig: z.lazy(() => exports.ListPromptVersionsPromptConfig$outboundSchema)
|
|
1878
|
+
promptConfig: z.lazy(() => exports.ListPromptVersionsPromptConfig$outboundSchema)
|
|
1879
|
+
.optional(),
|
|
1880
|
+
prompt: z.lazy(() => exports.ListPromptVersionsPromptField$outboundSchema),
|
|
858
1881
|
metadata: z.lazy(() => exports.ListPromptVersionsMetadata$outboundSchema).optional(),
|
|
859
1882
|
timestamp: z.string(),
|
|
860
1883
|
}).transform((v) => {
|