@orq-ai/node 3.2.0-rc.34 → 3.2.0-rc.36
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/bin/mcp-server.js +631 -299
- package/bin/mcp-server.js.map +20 -20
- 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/operations/bulkcreatedatapoints.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/deploymentcreatemetric.d.ts +850 -215
- package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
- package/models/operations/deploymentcreatemetric.js +867 -214
- package/models/operations/deploymentcreatemetric.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +262 -190
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +280 -218
- 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/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/package.json +1 -1
- 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/operations/bulkcreatedatapoints.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/deploymentcreatemetric.ts +2944 -1326
- package/src/models/operations/deploymentinvoke.ts +458 -407
- 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/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
|
@@ -36,10 +36,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.
|
|
39
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$ = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$inboundSchema = exports.DeploymentCreateMetric2RefusalContentPart$ = exports.DeploymentCreateMetric2RefusalContentPart$outboundSchema = exports.DeploymentCreateMetric2RefusalContentPart$inboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessagesType$ = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessagesType$outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessagesType$inboundSchema = exports.DeploymentCreateMetricMessagesToolMessage$ = exports.DeploymentCreateMetricMessagesToolMessage$outboundSchema = exports.DeploymentCreateMetricMessagesToolMessage$inboundSchema = exports.DeploymentCreateMetricMessagesDeploymentsMetricsRequestContent$ = exports.DeploymentCreateMetricMessagesDeploymentsMetricsRequestContent$outboundSchema = exports.DeploymentCreateMetricMessagesDeploymentsMetricsRequestContent$inboundSchema = exports.DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBody5Role$ = exports.DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBody5Role$outboundSchema = exports.DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBody5Role$inboundSchema = exports.Performance$ = exports.Performance$outboundSchema = exports.Performance$inboundSchema = exports.Usage$ = exports.Usage$outboundSchema = exports.Usage$inboundSchema = exports.ChoicesRole = exports.DeploymentCreateMetricChoicesRole = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType = exports.DeploymentCreateMetric2DeploymentsMetricsDetail = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type = exports.DeploymentCreateMetric2DeploymentsMetricsFormat = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType = exports.DeploymentCreateMetricChoicesDeploymentsMetricsRole = exports.ChoicesType = exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType = exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole = exports.DeploymentCreateMetricMessagesRole = exports.DeploymentCreateMetricMessagesDeploymentsMetricsRole = exports.DeploymentCreateMetric2Type = exports.DeploymentCreateMetric2Detail = exports.DeploymentCreateMetric2DeploymentsMetricsType = exports.DeploymentCreateMetric2Format = exports.DeploymentCreateMetric2DeploymentsMetricsRequestType = exports.DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole = exports.DeploymentCreateMetricMessagesType = exports.DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessagesType = exports.DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBody5Role = void 0;
|
|
40
|
+
exports.DeploymentCreateMetric2ImageUrl$outboundSchema = exports.DeploymentCreateMetric2ImageUrl$inboundSchema = exports.DeploymentCreateMetric2Detail$ = exports.DeploymentCreateMetric2Detail$outboundSchema = exports.DeploymentCreateMetric2Detail$inboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsType$ = exports.DeploymentCreateMetric2DeploymentsMetricsType$outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsType$inboundSchema = exports.DeploymentCreateMetric23$ = exports.DeploymentCreateMetric23$outboundSchema = exports.DeploymentCreateMetric23$inboundSchema = exports.DeploymentCreateMetric2InputAudio$ = exports.DeploymentCreateMetric2InputAudio$outboundSchema = exports.DeploymentCreateMetric2InputAudio$inboundSchema = exports.DeploymentCreateMetric2Format$ = exports.DeploymentCreateMetric2Format$outboundSchema = exports.DeploymentCreateMetric2Format$inboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRequestType$ = exports.DeploymentCreateMetric2DeploymentsMetricsRequestType$outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRequestType$inboundSchema = exports.DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$ = exports.DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$outboundSchema = exports.DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$inboundSchema = exports.DeploymentCreateMetricMessagesAssistantMessage$ = exports.DeploymentCreateMetricMessagesAssistantMessage$outboundSchema = exports.DeploymentCreateMetricMessagesAssistantMessage$inboundSchema = exports.DeploymentCreateMetricMessagesToolCalls$ = exports.DeploymentCreateMetricMessagesToolCalls$outboundSchema = exports.DeploymentCreateMetricMessagesToolCalls$inboundSchema = exports.DeploymentCreateMetricMessagesFunction$ = exports.DeploymentCreateMetricMessagesFunction$outboundSchema = exports.DeploymentCreateMetricMessagesFunction$inboundSchema = exports.DeploymentCreateMetricMessagesType$ = exports.DeploymentCreateMetricMessagesType$outboundSchema = exports.DeploymentCreateMetricMessagesType$inboundSchema = exports.DeploymentCreateMetricMessagesAudio$ = exports.DeploymentCreateMetricMessagesAudio$outboundSchema = exports.DeploymentCreateMetricMessagesAudio$inboundSchema = exports.DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$ = exports.DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$outboundSchema = exports.DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$inboundSchema = exports.DeploymentCreateMetricMessagesDeploymentsMetricsContent$ = exports.DeploymentCreateMetricMessagesDeploymentsMetricsContent$outboundSchema = exports.DeploymentCreateMetricMessagesDeploymentsMetricsContent$inboundSchema = exports.DeploymentCreateMetricContentDeploymentsMetrics2$ = exports.DeploymentCreateMetricContentDeploymentsMetrics2$outboundSchema = exports.DeploymentCreateMetricContentDeploymentsMetrics2$inboundSchema = exports.DeploymentCreateMetric2TextContentPart$ = exports.DeploymentCreateMetric2TextContentPart$outboundSchema = exports.DeploymentCreateMetric2TextContentPart$inboundSchema = void 0;
|
|
41
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$inboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$ = exports.DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$ = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema = exports.ChoicesToolMessage$ = exports.ChoicesToolMessage$outboundSchema = exports.ChoicesToolMessage$inboundSchema = exports.DeploymentCreateMetricChoicesDeploymentsMetricsContent$ = exports.DeploymentCreateMetricChoicesDeploymentsMetricsContent$outboundSchema = exports.DeploymentCreateMetricChoicesDeploymentsMetricsContent$inboundSchema = exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$ = exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$outboundSchema = exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$inboundSchema = exports.DeploymentCreateMetricMessages$ = exports.DeploymentCreateMetricMessages$outboundSchema = exports.DeploymentCreateMetricMessages$inboundSchema = exports.DeploymentCreateMetricMessagesDeveloperMessage$ = exports.DeploymentCreateMetricMessagesDeveloperMessage$outboundSchema = exports.DeploymentCreateMetricMessagesDeveloperMessage$inboundSchema = exports.DeploymentCreateMetricMessagesRole$ = exports.DeploymentCreateMetricMessagesRole$outboundSchema = exports.DeploymentCreateMetricMessagesRole$inboundSchema = exports.DeploymentCreateMetricMessagesSystemMessage$ = exports.DeploymentCreateMetricMessagesSystemMessage$outboundSchema = exports.DeploymentCreateMetricMessagesSystemMessage$inboundSchema = exports.DeploymentCreateMetricMessagesDeploymentsMetricsRole$ = exports.DeploymentCreateMetricMessagesDeploymentsMetricsRole$outboundSchema = exports.DeploymentCreateMetricMessagesDeploymentsMetricsRole$inboundSchema = exports.DeploymentCreateMetricMessagesUserMessage$ = exports.DeploymentCreateMetricMessagesUserMessage$outboundSchema = exports.DeploymentCreateMetricMessagesUserMessage$inboundSchema = exports.DeploymentCreateMetricMessagesContent$ = exports.DeploymentCreateMetricMessagesContent$outboundSchema = exports.DeploymentCreateMetricMessagesContent$inboundSchema = exports.DeploymentCreateMetricContent2$ = exports.DeploymentCreateMetricContent2$outboundSchema = exports.DeploymentCreateMetricContent2$inboundSchema = exports.DeploymentCreateMetric21$ = exports.DeploymentCreateMetric21$outboundSchema = exports.DeploymentCreateMetric21$inboundSchema = exports.DeploymentCreateMetric2Type$ = exports.DeploymentCreateMetric2Type$outboundSchema = exports.DeploymentCreateMetric2Type$inboundSchema = exports.DeploymentCreateMetric22$ = exports.DeploymentCreateMetric22$outboundSchema = exports.DeploymentCreateMetric22$inboundSchema = exports.DeploymentCreateMetric2ImageUrl$ = void 0;
|
|
42
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsDetail$ = exports.DeploymentCreateMetric2DeploymentsMetricsDetail$outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsDetail$inboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$ = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$inboundSchema = exports.DeploymentCreateMetric2DeploymentsMetrics3$ = exports.DeploymentCreateMetric2DeploymentsMetrics3$outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetrics3$inboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsInputAudio$ = exports.DeploymentCreateMetric2DeploymentsMetricsInputAudio$outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsInputAudio$inboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsFormat$ = exports.DeploymentCreateMetric2DeploymentsMetricsFormat$outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsFormat$inboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$ = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$inboundSchema = exports.DeploymentCreateMetricChoicesDeploymentsMetricsRole$ = exports.DeploymentCreateMetricChoicesDeploymentsMetricsRole$outboundSchema = exports.DeploymentCreateMetricChoicesDeploymentsMetricsRole$inboundSchema = exports.ChoicesAssistantMessage$ = exports.ChoicesAssistantMessage$outboundSchema = exports.ChoicesAssistantMessage$inboundSchema = exports.ChoicesToolCalls$ = exports.ChoicesToolCalls$outboundSchema = exports.ChoicesToolCalls$inboundSchema = exports.ChoicesFunction$ = exports.ChoicesFunction$outboundSchema = exports.ChoicesFunction$inboundSchema = exports.ChoicesType$ = exports.ChoicesType$outboundSchema = exports.ChoicesType$inboundSchema = exports.ChoicesAudio$ = exports.ChoicesAudio$outboundSchema = exports.ChoicesAudio$inboundSchema = exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$ = exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$outboundSchema = exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$inboundSchema = exports.DeploymentCreateMetricChoicesContent$ = exports.DeploymentCreateMetricChoicesContent$outboundSchema = exports.DeploymentCreateMetricChoicesContent$inboundSchema = exports.DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$ = exports.DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$outboundSchema = exports.DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$inboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsTextContentPart$ = exports.DeploymentCreateMetric2DeploymentsMetricsTextContentPart$outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsTextContentPart$inboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$ = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$outboundSchema = void 0;
|
|
43
|
+
exports.DeploymentCreateMetricResponseBody$ = exports.DeploymentCreateMetricResponseBody$outboundSchema = exports.DeploymentCreateMetricResponseBody$inboundSchema = exports.DeploymentCreateMetricRequest$ = exports.DeploymentCreateMetricRequest$outboundSchema = exports.DeploymentCreateMetricRequest$inboundSchema = exports.DeploymentCreateMetricRequestBody$ = exports.DeploymentCreateMetricRequestBody$outboundSchema = exports.DeploymentCreateMetricRequestBody$inboundSchema = exports.Feedback$ = exports.Feedback$outboundSchema = exports.Feedback$inboundSchema = exports.Choices$ = exports.Choices$outboundSchema = exports.Choices$inboundSchema = exports.ChoicesDeveloperMessage$ = exports.ChoicesDeveloperMessage$outboundSchema = exports.ChoicesDeveloperMessage$inboundSchema = exports.ChoicesRole$ = exports.ChoicesRole$outboundSchema = exports.ChoicesRole$inboundSchema = exports.ChoicesSystemMessage$ = exports.ChoicesSystemMessage$outboundSchema = exports.ChoicesSystemMessage$inboundSchema = exports.DeploymentCreateMetricChoicesRole$ = exports.DeploymentCreateMetricChoicesRole$outboundSchema = exports.DeploymentCreateMetricChoicesRole$inboundSchema = exports.ChoicesUserMessage$ = exports.ChoicesUserMessage$outboundSchema = exports.ChoicesUserMessage$inboundSchema = exports.ChoicesContent$ = exports.ChoicesContent$outboundSchema = exports.ChoicesContent$inboundSchema = exports.DeploymentCreateMetricContentDeploymentsMetricsRequest2$ = exports.DeploymentCreateMetricContentDeploymentsMetricsRequest2$outboundSchema = exports.DeploymentCreateMetricContentDeploymentsMetricsRequest2$inboundSchema = exports.DeploymentCreateMetric2DeploymentsMetrics1$ = exports.DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$ = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$inboundSchema = exports.DeploymentCreateMetric2DeploymentsMetrics2$ = exports.DeploymentCreateMetric2DeploymentsMetrics2$outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetrics2$inboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsImageUrl$ = exports.DeploymentCreateMetric2DeploymentsMetricsImageUrl$outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsImageUrl$inboundSchema = void 0;
|
|
43
44
|
exports.usageToJSON = usageToJSON;
|
|
44
45
|
exports.usageFromJSON = usageFromJSON;
|
|
45
46
|
exports.performanceToJSON = performanceToJSON;
|
|
@@ -86,18 +87,46 @@ exports.deploymentCreateMetricMessagesDeveloperMessageToJSON = deploymentCreateM
|
|
|
86
87
|
exports.deploymentCreateMetricMessagesDeveloperMessageFromJSON = deploymentCreateMetricMessagesDeveloperMessageFromJSON;
|
|
87
88
|
exports.deploymentCreateMetricMessagesToJSON = deploymentCreateMetricMessagesToJSON;
|
|
88
89
|
exports.deploymentCreateMetricMessagesFromJSON = deploymentCreateMetricMessagesFromJSON;
|
|
89
|
-
exports.
|
|
90
|
-
exports.
|
|
91
|
-
exports.
|
|
92
|
-
exports.
|
|
93
|
-
exports.
|
|
94
|
-
exports.
|
|
95
|
-
exports.
|
|
96
|
-
exports.
|
|
97
|
-
exports.
|
|
98
|
-
exports.
|
|
99
|
-
exports.
|
|
100
|
-
exports.
|
|
90
|
+
exports.deploymentCreateMetricChoicesDeploymentsMetricsContentToJSON = deploymentCreateMetricChoicesDeploymentsMetricsContentToJSON;
|
|
91
|
+
exports.deploymentCreateMetricChoicesDeploymentsMetricsContentFromJSON = deploymentCreateMetricChoicesDeploymentsMetricsContentFromJSON;
|
|
92
|
+
exports.choicesToolMessageToJSON = choicesToolMessageToJSON;
|
|
93
|
+
exports.choicesToolMessageFromJSON = choicesToolMessageFromJSON;
|
|
94
|
+
exports.deploymentCreateMetric2DeploymentsMetricsRefusalContentPartToJSON = deploymentCreateMetric2DeploymentsMetricsRefusalContentPartToJSON;
|
|
95
|
+
exports.deploymentCreateMetric2DeploymentsMetricsRefusalContentPartFromJSON = deploymentCreateMetric2DeploymentsMetricsRefusalContentPartFromJSON;
|
|
96
|
+
exports.deploymentCreateMetric2DeploymentsMetricsTextContentPartToJSON = deploymentCreateMetric2DeploymentsMetricsTextContentPartToJSON;
|
|
97
|
+
exports.deploymentCreateMetric2DeploymentsMetricsTextContentPartFromJSON = deploymentCreateMetric2DeploymentsMetricsTextContentPartFromJSON;
|
|
98
|
+
exports.deploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2ToJSON = deploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2ToJSON;
|
|
99
|
+
exports.deploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2FromJSON = deploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2FromJSON;
|
|
100
|
+
exports.deploymentCreateMetricChoicesContentToJSON = deploymentCreateMetricChoicesContentToJSON;
|
|
101
|
+
exports.deploymentCreateMetricChoicesContentFromJSON = deploymentCreateMetricChoicesContentFromJSON;
|
|
102
|
+
exports.choicesAudioToJSON = choicesAudioToJSON;
|
|
103
|
+
exports.choicesAudioFromJSON = choicesAudioFromJSON;
|
|
104
|
+
exports.choicesFunctionToJSON = choicesFunctionToJSON;
|
|
105
|
+
exports.choicesFunctionFromJSON = choicesFunctionFromJSON;
|
|
106
|
+
exports.choicesToolCallsToJSON = choicesToolCallsToJSON;
|
|
107
|
+
exports.choicesToolCallsFromJSON = choicesToolCallsFromJSON;
|
|
108
|
+
exports.choicesAssistantMessageToJSON = choicesAssistantMessageToJSON;
|
|
109
|
+
exports.choicesAssistantMessageFromJSON = choicesAssistantMessageFromJSON;
|
|
110
|
+
exports.deploymentCreateMetric2DeploymentsMetricsInputAudioToJSON = deploymentCreateMetric2DeploymentsMetricsInputAudioToJSON;
|
|
111
|
+
exports.deploymentCreateMetric2DeploymentsMetricsInputAudioFromJSON = deploymentCreateMetric2DeploymentsMetricsInputAudioFromJSON;
|
|
112
|
+
exports.deploymentCreateMetric2DeploymentsMetrics3ToJSON = deploymentCreateMetric2DeploymentsMetrics3ToJSON;
|
|
113
|
+
exports.deploymentCreateMetric2DeploymentsMetrics3FromJSON = deploymentCreateMetric2DeploymentsMetrics3FromJSON;
|
|
114
|
+
exports.deploymentCreateMetric2DeploymentsMetricsImageUrlToJSON = deploymentCreateMetric2DeploymentsMetricsImageUrlToJSON;
|
|
115
|
+
exports.deploymentCreateMetric2DeploymentsMetricsImageUrlFromJSON = deploymentCreateMetric2DeploymentsMetricsImageUrlFromJSON;
|
|
116
|
+
exports.deploymentCreateMetric2DeploymentsMetrics2ToJSON = deploymentCreateMetric2DeploymentsMetrics2ToJSON;
|
|
117
|
+
exports.deploymentCreateMetric2DeploymentsMetrics2FromJSON = deploymentCreateMetric2DeploymentsMetrics2FromJSON;
|
|
118
|
+
exports.deploymentCreateMetric2DeploymentsMetrics1ToJSON = deploymentCreateMetric2DeploymentsMetrics1ToJSON;
|
|
119
|
+
exports.deploymentCreateMetric2DeploymentsMetrics1FromJSON = deploymentCreateMetric2DeploymentsMetrics1FromJSON;
|
|
120
|
+
exports.deploymentCreateMetricContentDeploymentsMetricsRequest2ToJSON = deploymentCreateMetricContentDeploymentsMetricsRequest2ToJSON;
|
|
121
|
+
exports.deploymentCreateMetricContentDeploymentsMetricsRequest2FromJSON = deploymentCreateMetricContentDeploymentsMetricsRequest2FromJSON;
|
|
122
|
+
exports.choicesContentToJSON = choicesContentToJSON;
|
|
123
|
+
exports.choicesContentFromJSON = choicesContentFromJSON;
|
|
124
|
+
exports.choicesUserMessageToJSON = choicesUserMessageToJSON;
|
|
125
|
+
exports.choicesUserMessageFromJSON = choicesUserMessageFromJSON;
|
|
126
|
+
exports.choicesSystemMessageToJSON = choicesSystemMessageToJSON;
|
|
127
|
+
exports.choicesSystemMessageFromJSON = choicesSystemMessageFromJSON;
|
|
128
|
+
exports.choicesDeveloperMessageToJSON = choicesDeveloperMessageToJSON;
|
|
129
|
+
exports.choicesDeveloperMessageFromJSON = choicesDeveloperMessageFromJSON;
|
|
101
130
|
exports.choicesToJSON = choicesToJSON;
|
|
102
131
|
exports.choicesFromJSON = choicesFromJSON;
|
|
103
132
|
exports.feedbackToJSON = feedbackToJSON;
|
|
@@ -184,46 +213,76 @@ exports.DeploymentCreateMetricMessagesRole = {
|
|
|
184
213
|
Developer: "developer",
|
|
185
214
|
};
|
|
186
215
|
/**
|
|
187
|
-
* The role of the
|
|
216
|
+
* The role of the messages author, in this case tool.
|
|
188
217
|
*/
|
|
189
|
-
exports.
|
|
190
|
-
System: "system",
|
|
191
|
-
Assistant: "assistant",
|
|
192
|
-
User: "user",
|
|
193
|
-
Exception: "exception",
|
|
218
|
+
exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole = {
|
|
194
219
|
Tool: "tool",
|
|
195
|
-
Prompt: "prompt",
|
|
196
|
-
Correction: "correction",
|
|
197
|
-
ExpectedOutput: "expected_output",
|
|
198
220
|
};
|
|
199
221
|
/**
|
|
200
|
-
* The
|
|
222
|
+
* The type of the content part.
|
|
201
223
|
*/
|
|
202
|
-
exports.
|
|
203
|
-
|
|
224
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType = {
|
|
225
|
+
Refusal: "refusal",
|
|
226
|
+
};
|
|
227
|
+
/**
|
|
228
|
+
* The type of the content part.
|
|
229
|
+
*/
|
|
230
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type = {
|
|
231
|
+
Text: "text",
|
|
232
|
+
};
|
|
233
|
+
/**
|
|
234
|
+
* The role of the messages author, in this case `assistant`.
|
|
235
|
+
*/
|
|
236
|
+
exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole = {
|
|
204
237
|
Assistant: "assistant",
|
|
238
|
+
};
|
|
239
|
+
/**
|
|
240
|
+
* The type of the tool. Currently, only `function` is supported.
|
|
241
|
+
*/
|
|
242
|
+
exports.ChoicesType = {
|
|
243
|
+
Function: "function",
|
|
244
|
+
};
|
|
245
|
+
/**
|
|
246
|
+
* The role of the messages author, in this case `user`.
|
|
247
|
+
*/
|
|
248
|
+
exports.DeploymentCreateMetricChoicesDeploymentsMetricsRole = {
|
|
205
249
|
User: "user",
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
250
|
+
};
|
|
251
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType = {
|
|
252
|
+
InputAudio: "input_audio",
|
|
253
|
+
};
|
|
254
|
+
/**
|
|
255
|
+
* The format of the encoded audio data. Currently supports `wav` and `mp3`.
|
|
256
|
+
*/
|
|
257
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsFormat = {
|
|
258
|
+
Mp3: "mp3",
|
|
259
|
+
Wav: "wav",
|
|
260
|
+
};
|
|
261
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type = {
|
|
262
|
+
ImageUrl: "image_url",
|
|
263
|
+
};
|
|
264
|
+
/**
|
|
265
|
+
* Specifies the detail level of the image.
|
|
266
|
+
*/
|
|
267
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsDetail = {
|
|
268
|
+
Low: "low",
|
|
269
|
+
High: "high",
|
|
270
|
+
Auto: "auto",
|
|
271
|
+
};
|
|
272
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType = {
|
|
273
|
+
Text: "text",
|
|
211
274
|
};
|
|
212
275
|
/**
|
|
213
|
-
* The role of the
|
|
276
|
+
* The role of the messages author, in this case `system`.
|
|
214
277
|
*/
|
|
215
|
-
exports.
|
|
278
|
+
exports.DeploymentCreateMetricChoicesRole = {
|
|
216
279
|
System: "system",
|
|
217
|
-
Assistant: "assistant",
|
|
218
|
-
User: "user",
|
|
219
|
-
Exception: "exception",
|
|
220
|
-
Tool: "tool",
|
|
221
|
-
Prompt: "prompt",
|
|
222
|
-
Correction: "correction",
|
|
223
|
-
ExpectedOutput: "expected_output",
|
|
224
280
|
};
|
|
225
|
-
|
|
226
|
-
|
|
281
|
+
/**
|
|
282
|
+
* The role of the messages author, in this case `developer`.
|
|
283
|
+
*/
|
|
284
|
+
exports.ChoicesRole = {
|
|
285
|
+
Developer: "developer",
|
|
227
286
|
};
|
|
228
287
|
/** @internal */
|
|
229
288
|
exports.Usage$inboundSchema = z
|
|
@@ -1160,194 +1219,374 @@ function deploymentCreateMetricMessagesFromJSON(jsonString) {
|
|
|
1160
1219
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentCreateMetricMessages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentCreateMetricMessages' from JSON`);
|
|
1161
1220
|
}
|
|
1162
1221
|
/** @internal */
|
|
1163
|
-
exports.
|
|
1222
|
+
exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$inboundSchema = z.nativeEnum(exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole);
|
|
1164
1223
|
/** @internal */
|
|
1165
|
-
exports.
|
|
1224
|
+
exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$outboundSchema = exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$inboundSchema;
|
|
1166
1225
|
/**
|
|
1167
1226
|
* @internal
|
|
1168
1227
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1169
1228
|
*/
|
|
1170
|
-
var
|
|
1171
|
-
(function (
|
|
1172
|
-
/** @deprecated use `
|
|
1173
|
-
|
|
1174
|
-
/** @deprecated use `
|
|
1175
|
-
|
|
1176
|
-
})(
|
|
1229
|
+
var DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$;
|
|
1230
|
+
(function (DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$) {
|
|
1231
|
+
/** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$inboundSchema` instead. */
|
|
1232
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$.inboundSchema = exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$inboundSchema;
|
|
1233
|
+
/** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$outboundSchema` instead. */
|
|
1234
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$.outboundSchema = exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$outboundSchema;
|
|
1235
|
+
})(DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$ || (exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$ = DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$ = {}));
|
|
1177
1236
|
/** @internal */
|
|
1178
|
-
exports.
|
|
1179
|
-
|
|
1180
|
-
|
|
1237
|
+
exports.DeploymentCreateMetricChoicesDeploymentsMetricsContent$inboundSchema = z.union([z.string(), z.array(z.string())]);
|
|
1238
|
+
/** @internal */
|
|
1239
|
+
exports.DeploymentCreateMetricChoicesDeploymentsMetricsContent$outboundSchema = z.union([z.string(), z.array(z.string())]);
|
|
1240
|
+
/**
|
|
1241
|
+
* @internal
|
|
1242
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1243
|
+
*/
|
|
1244
|
+
var DeploymentCreateMetricChoicesDeploymentsMetricsContent$;
|
|
1245
|
+
(function (DeploymentCreateMetricChoicesDeploymentsMetricsContent$) {
|
|
1246
|
+
/** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsContent$inboundSchema` instead. */
|
|
1247
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsContent$.inboundSchema = exports.DeploymentCreateMetricChoicesDeploymentsMetricsContent$inboundSchema;
|
|
1248
|
+
/** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsContent$outboundSchema` instead. */
|
|
1249
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsContent$.outboundSchema = exports.DeploymentCreateMetricChoicesDeploymentsMetricsContent$outboundSchema;
|
|
1250
|
+
})(DeploymentCreateMetricChoicesDeploymentsMetricsContent$ || (exports.DeploymentCreateMetricChoicesDeploymentsMetricsContent$ = DeploymentCreateMetricChoicesDeploymentsMetricsContent$ = {}));
|
|
1251
|
+
function deploymentCreateMetricChoicesDeploymentsMetricsContentToJSON(deploymentCreateMetricChoicesDeploymentsMetricsContent) {
|
|
1252
|
+
return JSON.stringify(exports.DeploymentCreateMetricChoicesDeploymentsMetricsContent$outboundSchema.parse(deploymentCreateMetricChoicesDeploymentsMetricsContent));
|
|
1253
|
+
}
|
|
1254
|
+
function deploymentCreateMetricChoicesDeploymentsMetricsContentFromJSON(jsonString) {
|
|
1255
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentCreateMetricChoicesDeploymentsMetricsContent$inboundSchema
|
|
1256
|
+
.parse(JSON.parse(x)), `Failed to parse 'DeploymentCreateMetricChoicesDeploymentsMetricsContent' from JSON`);
|
|
1257
|
+
}
|
|
1258
|
+
/** @internal */
|
|
1259
|
+
exports.ChoicesToolMessage$inboundSchema = z.object({
|
|
1260
|
+
role: exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$inboundSchema,
|
|
1261
|
+
content: z.union([z.string(), z.array(z.string())]),
|
|
1262
|
+
tool_call_id: z.string(),
|
|
1263
|
+
}).transform((v) => {
|
|
1264
|
+
return (0, primitives_js_1.remap)(v, {
|
|
1265
|
+
"tool_call_id": "toolCallId",
|
|
1266
|
+
});
|
|
1181
1267
|
});
|
|
1182
1268
|
/** @internal */
|
|
1183
|
-
exports.
|
|
1184
|
-
role: exports.
|
|
1185
|
-
|
|
1269
|
+
exports.ChoicesToolMessage$outboundSchema = z.object({
|
|
1270
|
+
role: exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$outboundSchema,
|
|
1271
|
+
content: z.union([z.string(), z.array(z.string())]),
|
|
1272
|
+
toolCallId: z.string(),
|
|
1273
|
+
}).transform((v) => {
|
|
1274
|
+
return (0, primitives_js_1.remap)(v, {
|
|
1275
|
+
toolCallId: "tool_call_id",
|
|
1276
|
+
});
|
|
1277
|
+
});
|
|
1278
|
+
/**
|
|
1279
|
+
* @internal
|
|
1280
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1281
|
+
*/
|
|
1282
|
+
var ChoicesToolMessage$;
|
|
1283
|
+
(function (ChoicesToolMessage$) {
|
|
1284
|
+
/** @deprecated use `ChoicesToolMessage$inboundSchema` instead. */
|
|
1285
|
+
ChoicesToolMessage$.inboundSchema = exports.ChoicesToolMessage$inboundSchema;
|
|
1286
|
+
/** @deprecated use `ChoicesToolMessage$outboundSchema` instead. */
|
|
1287
|
+
ChoicesToolMessage$.outboundSchema = exports.ChoicesToolMessage$outboundSchema;
|
|
1288
|
+
})(ChoicesToolMessage$ || (exports.ChoicesToolMessage$ = ChoicesToolMessage$ = {}));
|
|
1289
|
+
function choicesToolMessageToJSON(choicesToolMessage) {
|
|
1290
|
+
return JSON.stringify(exports.ChoicesToolMessage$outboundSchema.parse(choicesToolMessage));
|
|
1291
|
+
}
|
|
1292
|
+
function choicesToolMessageFromJSON(jsonString) {
|
|
1293
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ChoicesToolMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChoicesToolMessage' from JSON`);
|
|
1294
|
+
}
|
|
1295
|
+
/** @internal */
|
|
1296
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema = z.nativeEnum(exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType);
|
|
1297
|
+
/** @internal */
|
|
1298
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema;
|
|
1299
|
+
/**
|
|
1300
|
+
* @internal
|
|
1301
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1302
|
+
*/
|
|
1303
|
+
var DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$;
|
|
1304
|
+
(function (DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$) {
|
|
1305
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema` instead. */
|
|
1306
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$.inboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema;
|
|
1307
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$outboundSchema` instead. */
|
|
1308
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$.outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$outboundSchema;
|
|
1309
|
+
})(DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$ || (exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$ = DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$ = {}));
|
|
1310
|
+
/** @internal */
|
|
1311
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema = z.object({
|
|
1312
|
+
type: exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema,
|
|
1313
|
+
refusal: z.string(),
|
|
1314
|
+
});
|
|
1315
|
+
/** @internal */
|
|
1316
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema = z.object({
|
|
1317
|
+
type: exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$outboundSchema,
|
|
1318
|
+
refusal: z.string(),
|
|
1186
1319
|
});
|
|
1187
1320
|
/**
|
|
1188
1321
|
* @internal
|
|
1189
1322
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1190
1323
|
*/
|
|
1191
|
-
var
|
|
1192
|
-
(function (
|
|
1193
|
-
/** @deprecated use `
|
|
1194
|
-
|
|
1195
|
-
/** @deprecated use `
|
|
1196
|
-
|
|
1197
|
-
})(
|
|
1198
|
-
function
|
|
1199
|
-
return JSON.stringify(exports.
|
|
1324
|
+
var DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$;
|
|
1325
|
+
(function (DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$) {
|
|
1326
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema` instead. */
|
|
1327
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$.inboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema;
|
|
1328
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema` instead. */
|
|
1329
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$.outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema;
|
|
1330
|
+
})(DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$ || (exports.DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$ = DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$ = {}));
|
|
1331
|
+
function deploymentCreateMetric2DeploymentsMetricsRefusalContentPartToJSON(deploymentCreateMetric2DeploymentsMetricsRefusalContentPart) {
|
|
1332
|
+
return JSON.stringify(exports.DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema
|
|
1333
|
+
.parse(deploymentCreateMetric2DeploymentsMetricsRefusalContentPart));
|
|
1200
1334
|
}
|
|
1201
|
-
function
|
|
1202
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1335
|
+
function deploymentCreateMetric2DeploymentsMetricsRefusalContentPartFromJSON(jsonString) {
|
|
1336
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema
|
|
1337
|
+
.parse(JSON.parse(x)), `Failed to parse 'DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart' from JSON`);
|
|
1203
1338
|
}
|
|
1204
1339
|
/** @internal */
|
|
1205
|
-
exports.
|
|
1340
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$inboundSchema = z.nativeEnum(exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type);
|
|
1206
1341
|
/** @internal */
|
|
1207
|
-
exports.
|
|
1342
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$inboundSchema;
|
|
1208
1343
|
/**
|
|
1209
1344
|
* @internal
|
|
1210
1345
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1211
1346
|
*/
|
|
1212
|
-
var
|
|
1213
|
-
(function (
|
|
1214
|
-
/** @deprecated use `
|
|
1215
|
-
|
|
1216
|
-
/** @deprecated use `
|
|
1217
|
-
|
|
1218
|
-
})(
|
|
1347
|
+
var DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$;
|
|
1348
|
+
(function (DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$) {
|
|
1349
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$inboundSchema` instead. */
|
|
1350
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$.inboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$inboundSchema;
|
|
1351
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$outboundSchema` instead. */
|
|
1352
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$.outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$outboundSchema;
|
|
1353
|
+
})(DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$ || (exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$ = DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$ = {}));
|
|
1219
1354
|
/** @internal */
|
|
1220
|
-
exports.
|
|
1221
|
-
|
|
1222
|
-
|
|
1355
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsTextContentPart$inboundSchema = z.object({
|
|
1356
|
+
type: exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$inboundSchema,
|
|
1357
|
+
text: z.string(),
|
|
1223
1358
|
});
|
|
1224
1359
|
/** @internal */
|
|
1225
|
-
exports.
|
|
1226
|
-
|
|
1227
|
-
|
|
1360
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsTextContentPart$outboundSchema = z.object({
|
|
1361
|
+
type: exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$outboundSchema,
|
|
1362
|
+
text: z.string(),
|
|
1228
1363
|
});
|
|
1229
1364
|
/**
|
|
1230
1365
|
* @internal
|
|
1231
1366
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1232
1367
|
*/
|
|
1233
|
-
var
|
|
1234
|
-
(function (
|
|
1235
|
-
/** @deprecated use `
|
|
1236
|
-
|
|
1237
|
-
/** @deprecated use `
|
|
1238
|
-
|
|
1239
|
-
})(
|
|
1240
|
-
function
|
|
1241
|
-
return JSON.stringify(exports.
|
|
1368
|
+
var DeploymentCreateMetric2DeploymentsMetricsTextContentPart$;
|
|
1369
|
+
(function (DeploymentCreateMetric2DeploymentsMetricsTextContentPart$) {
|
|
1370
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsTextContentPart$inboundSchema` instead. */
|
|
1371
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart$.inboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsTextContentPart$inboundSchema;
|
|
1372
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsTextContentPart$outboundSchema` instead. */
|
|
1373
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart$.outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsTextContentPart$outboundSchema;
|
|
1374
|
+
})(DeploymentCreateMetric2DeploymentsMetricsTextContentPart$ || (exports.DeploymentCreateMetric2DeploymentsMetricsTextContentPart$ = DeploymentCreateMetric2DeploymentsMetricsTextContentPart$ = {}));
|
|
1375
|
+
function deploymentCreateMetric2DeploymentsMetricsTextContentPartToJSON(deploymentCreateMetric2DeploymentsMetricsTextContentPart) {
|
|
1376
|
+
return JSON.stringify(exports.DeploymentCreateMetric2DeploymentsMetricsTextContentPart$outboundSchema
|
|
1377
|
+
.parse(deploymentCreateMetric2DeploymentsMetricsTextContentPart));
|
|
1378
|
+
}
|
|
1379
|
+
function deploymentCreateMetric2DeploymentsMetricsTextContentPartFromJSON(jsonString) {
|
|
1380
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentCreateMetric2DeploymentsMetricsTextContentPart$inboundSchema
|
|
1381
|
+
.parse(JSON.parse(x)), `Failed to parse 'DeploymentCreateMetric2DeploymentsMetricsTextContentPart' from JSON`);
|
|
1382
|
+
}
|
|
1383
|
+
/** @internal */
|
|
1384
|
+
exports.DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$inboundSchema = z.union([
|
|
1385
|
+
z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetricsTextContentPart$inboundSchema),
|
|
1386
|
+
z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema),
|
|
1387
|
+
]);
|
|
1388
|
+
/** @internal */
|
|
1389
|
+
exports.DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$outboundSchema = z.union([
|
|
1390
|
+
z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetricsTextContentPart$outboundSchema),
|
|
1391
|
+
z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema),
|
|
1392
|
+
]);
|
|
1393
|
+
/**
|
|
1394
|
+
* @internal
|
|
1395
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1396
|
+
*/
|
|
1397
|
+
var DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$;
|
|
1398
|
+
(function (DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$) {
|
|
1399
|
+
/** @deprecated use `DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$inboundSchema` instead. */
|
|
1400
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$.inboundSchema = exports.DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$inboundSchema;
|
|
1401
|
+
/** @deprecated use `DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$outboundSchema` instead. */
|
|
1402
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$.outboundSchema = exports.DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$outboundSchema;
|
|
1403
|
+
})(DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$ || (exports.DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$ = DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$ = {}));
|
|
1404
|
+
function deploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2ToJSON(deploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2) {
|
|
1405
|
+
return JSON.stringify(exports.DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$outboundSchema
|
|
1406
|
+
.parse(deploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2));
|
|
1407
|
+
}
|
|
1408
|
+
function deploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2FromJSON(jsonString) {
|
|
1409
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$inboundSchema
|
|
1410
|
+
.parse(JSON.parse(x)), `Failed to parse 'DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2' from JSON`);
|
|
1411
|
+
}
|
|
1412
|
+
/** @internal */
|
|
1413
|
+
exports.DeploymentCreateMetricChoicesContent$inboundSchema = z.union([
|
|
1414
|
+
z.string(),
|
|
1415
|
+
z.array(z.union([
|
|
1416
|
+
z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetricsTextContentPart$inboundSchema),
|
|
1417
|
+
z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema),
|
|
1418
|
+
])),
|
|
1419
|
+
]);
|
|
1420
|
+
/** @internal */
|
|
1421
|
+
exports.DeploymentCreateMetricChoicesContent$outboundSchema = z.union([
|
|
1422
|
+
z.string(),
|
|
1423
|
+
z.array(z.union([
|
|
1424
|
+
z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetricsTextContentPart$outboundSchema),
|
|
1425
|
+
z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema),
|
|
1426
|
+
])),
|
|
1427
|
+
]);
|
|
1428
|
+
/**
|
|
1429
|
+
* @internal
|
|
1430
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1431
|
+
*/
|
|
1432
|
+
var DeploymentCreateMetricChoicesContent$;
|
|
1433
|
+
(function (DeploymentCreateMetricChoicesContent$) {
|
|
1434
|
+
/** @deprecated use `DeploymentCreateMetricChoicesContent$inboundSchema` instead. */
|
|
1435
|
+
DeploymentCreateMetricChoicesContent$.inboundSchema = exports.DeploymentCreateMetricChoicesContent$inboundSchema;
|
|
1436
|
+
/** @deprecated use `DeploymentCreateMetricChoicesContent$outboundSchema` instead. */
|
|
1437
|
+
DeploymentCreateMetricChoicesContent$.outboundSchema = exports.DeploymentCreateMetricChoicesContent$outboundSchema;
|
|
1438
|
+
})(DeploymentCreateMetricChoicesContent$ || (exports.DeploymentCreateMetricChoicesContent$ = DeploymentCreateMetricChoicesContent$ = {}));
|
|
1439
|
+
function deploymentCreateMetricChoicesContentToJSON(deploymentCreateMetricChoicesContent) {
|
|
1440
|
+
return JSON.stringify(exports.DeploymentCreateMetricChoicesContent$outboundSchema.parse(deploymentCreateMetricChoicesContent));
|
|
1242
1441
|
}
|
|
1243
|
-
function
|
|
1244
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1442
|
+
function deploymentCreateMetricChoicesContentFromJSON(jsonString) {
|
|
1443
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentCreateMetricChoicesContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentCreateMetricChoicesContent' from JSON`);
|
|
1245
1444
|
}
|
|
1246
1445
|
/** @internal */
|
|
1247
|
-
exports.
|
|
1248
|
-
|
|
1446
|
+
exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$inboundSchema = z.nativeEnum(exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole);
|
|
1447
|
+
/** @internal */
|
|
1448
|
+
exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$outboundSchema = exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$inboundSchema;
|
|
1449
|
+
/**
|
|
1450
|
+
* @internal
|
|
1451
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1452
|
+
*/
|
|
1453
|
+
var DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$;
|
|
1454
|
+
(function (DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$) {
|
|
1455
|
+
/** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$inboundSchema` instead. */
|
|
1456
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$.inboundSchema = exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$inboundSchema;
|
|
1457
|
+
/** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$outboundSchema` instead. */
|
|
1458
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$.outboundSchema = exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$outboundSchema;
|
|
1459
|
+
})(DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$ || (exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$ = DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$ = {}));
|
|
1460
|
+
/** @internal */
|
|
1461
|
+
exports.ChoicesAudio$inboundSchema = z.object({
|
|
1462
|
+
id: z.string(),
|
|
1463
|
+
});
|
|
1249
1464
|
/** @internal */
|
|
1250
|
-
exports.
|
|
1465
|
+
exports.ChoicesAudio$outboundSchema = z.object({
|
|
1466
|
+
id: z.string(),
|
|
1467
|
+
});
|
|
1251
1468
|
/**
|
|
1252
1469
|
* @internal
|
|
1253
1470
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1254
1471
|
*/
|
|
1255
|
-
var
|
|
1256
|
-
(function (
|
|
1257
|
-
/** @deprecated use `
|
|
1258
|
-
|
|
1259
|
-
/** @deprecated use `
|
|
1260
|
-
|
|
1261
|
-
})(
|
|
1472
|
+
var ChoicesAudio$;
|
|
1473
|
+
(function (ChoicesAudio$) {
|
|
1474
|
+
/** @deprecated use `ChoicesAudio$inboundSchema` instead. */
|
|
1475
|
+
ChoicesAudio$.inboundSchema = exports.ChoicesAudio$inboundSchema;
|
|
1476
|
+
/** @deprecated use `ChoicesAudio$outboundSchema` instead. */
|
|
1477
|
+
ChoicesAudio$.outboundSchema = exports.ChoicesAudio$outboundSchema;
|
|
1478
|
+
})(ChoicesAudio$ || (exports.ChoicesAudio$ = ChoicesAudio$ = {}));
|
|
1479
|
+
function choicesAudioToJSON(choicesAudio) {
|
|
1480
|
+
return JSON.stringify(exports.ChoicesAudio$outboundSchema.parse(choicesAudio));
|
|
1481
|
+
}
|
|
1482
|
+
function choicesAudioFromJSON(jsonString) {
|
|
1483
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ChoicesAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChoicesAudio' from JSON`);
|
|
1484
|
+
}
|
|
1262
1485
|
/** @internal */
|
|
1263
|
-
exports.
|
|
1264
|
-
.nativeEnum(exports.
|
|
1486
|
+
exports.ChoicesType$inboundSchema = z
|
|
1487
|
+
.nativeEnum(exports.ChoicesType);
|
|
1265
1488
|
/** @internal */
|
|
1266
|
-
exports.
|
|
1489
|
+
exports.ChoicesType$outboundSchema = exports.ChoicesType$inboundSchema;
|
|
1267
1490
|
/**
|
|
1268
1491
|
* @internal
|
|
1269
1492
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1270
1493
|
*/
|
|
1271
|
-
var
|
|
1272
|
-
(function (
|
|
1273
|
-
/** @deprecated use `
|
|
1274
|
-
|
|
1275
|
-
/** @deprecated use `
|
|
1276
|
-
|
|
1277
|
-
})(
|
|
1494
|
+
var ChoicesType$;
|
|
1495
|
+
(function (ChoicesType$) {
|
|
1496
|
+
/** @deprecated use `ChoicesType$inboundSchema` instead. */
|
|
1497
|
+
ChoicesType$.inboundSchema = exports.ChoicesType$inboundSchema;
|
|
1498
|
+
/** @deprecated use `ChoicesType$outboundSchema` instead. */
|
|
1499
|
+
ChoicesType$.outboundSchema = exports.ChoicesType$outboundSchema;
|
|
1500
|
+
})(ChoicesType$ || (exports.ChoicesType$ = ChoicesType$ = {}));
|
|
1278
1501
|
/** @internal */
|
|
1279
|
-
exports.
|
|
1280
|
-
name: z.string(),
|
|
1281
|
-
arguments: z.string(),
|
|
1502
|
+
exports.ChoicesFunction$inboundSchema = z.object({
|
|
1503
|
+
name: z.string().optional(),
|
|
1504
|
+
arguments: z.string().optional(),
|
|
1282
1505
|
});
|
|
1283
1506
|
/** @internal */
|
|
1284
|
-
exports.
|
|
1285
|
-
name: z.string(),
|
|
1286
|
-
arguments: z.string(),
|
|
1507
|
+
exports.ChoicesFunction$outboundSchema = z.object({
|
|
1508
|
+
name: z.string().optional(),
|
|
1509
|
+
arguments: z.string().optional(),
|
|
1287
1510
|
});
|
|
1288
1511
|
/**
|
|
1289
1512
|
* @internal
|
|
1290
1513
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1291
1514
|
*/
|
|
1292
|
-
var
|
|
1293
|
-
(function (
|
|
1294
|
-
/** @deprecated use `
|
|
1295
|
-
|
|
1296
|
-
/** @deprecated use `
|
|
1297
|
-
|
|
1298
|
-
})(
|
|
1299
|
-
function
|
|
1300
|
-
return JSON.stringify(exports.
|
|
1515
|
+
var ChoicesFunction$;
|
|
1516
|
+
(function (ChoicesFunction$) {
|
|
1517
|
+
/** @deprecated use `ChoicesFunction$inboundSchema` instead. */
|
|
1518
|
+
ChoicesFunction$.inboundSchema = exports.ChoicesFunction$inboundSchema;
|
|
1519
|
+
/** @deprecated use `ChoicesFunction$outboundSchema` instead. */
|
|
1520
|
+
ChoicesFunction$.outboundSchema = exports.ChoicesFunction$outboundSchema;
|
|
1521
|
+
})(ChoicesFunction$ || (exports.ChoicesFunction$ = ChoicesFunction$ = {}));
|
|
1522
|
+
function choicesFunctionToJSON(choicesFunction) {
|
|
1523
|
+
return JSON.stringify(exports.ChoicesFunction$outboundSchema.parse(choicesFunction));
|
|
1301
1524
|
}
|
|
1302
|
-
function
|
|
1303
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1525
|
+
function choicesFunctionFromJSON(jsonString) {
|
|
1526
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ChoicesFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChoicesFunction' from JSON`);
|
|
1304
1527
|
}
|
|
1305
1528
|
/** @internal */
|
|
1306
|
-
exports.
|
|
1307
|
-
id: z.string()
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
function: z.lazy(() => exports.MessageFunction$inboundSchema),
|
|
1529
|
+
exports.ChoicesToolCalls$inboundSchema = z.object({
|
|
1530
|
+
id: z.string(),
|
|
1531
|
+
type: exports.ChoicesType$inboundSchema,
|
|
1532
|
+
function: z.lazy(() => exports.ChoicesFunction$inboundSchema),
|
|
1311
1533
|
});
|
|
1312
1534
|
/** @internal */
|
|
1313
|
-
exports.
|
|
1314
|
-
id: z.string()
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
function: z.lazy(() => exports.MessageFunction$outboundSchema),
|
|
1535
|
+
exports.ChoicesToolCalls$outboundSchema = z.object({
|
|
1536
|
+
id: z.string(),
|
|
1537
|
+
type: exports.ChoicesType$outboundSchema,
|
|
1538
|
+
function: z.lazy(() => exports.ChoicesFunction$outboundSchema),
|
|
1318
1539
|
});
|
|
1319
1540
|
/**
|
|
1320
1541
|
* @internal
|
|
1321
1542
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1322
1543
|
*/
|
|
1323
|
-
var
|
|
1324
|
-
(function (
|
|
1325
|
-
/** @deprecated use `
|
|
1326
|
-
|
|
1327
|
-
/** @deprecated use `
|
|
1328
|
-
|
|
1329
|
-
})(
|
|
1330
|
-
function
|
|
1331
|
-
return JSON.stringify(exports.
|
|
1544
|
+
var ChoicesToolCalls$;
|
|
1545
|
+
(function (ChoicesToolCalls$) {
|
|
1546
|
+
/** @deprecated use `ChoicesToolCalls$inboundSchema` instead. */
|
|
1547
|
+
ChoicesToolCalls$.inboundSchema = exports.ChoicesToolCalls$inboundSchema;
|
|
1548
|
+
/** @deprecated use `ChoicesToolCalls$outboundSchema` instead. */
|
|
1549
|
+
ChoicesToolCalls$.outboundSchema = exports.ChoicesToolCalls$outboundSchema;
|
|
1550
|
+
})(ChoicesToolCalls$ || (exports.ChoicesToolCalls$ = ChoicesToolCalls$ = {}));
|
|
1551
|
+
function choicesToolCallsToJSON(choicesToolCalls) {
|
|
1552
|
+
return JSON.stringify(exports.ChoicesToolCalls$outboundSchema.parse(choicesToolCalls));
|
|
1332
1553
|
}
|
|
1333
|
-
function
|
|
1334
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1554
|
+
function choicesToolCallsFromJSON(jsonString) {
|
|
1555
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ChoicesToolCalls$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChoicesToolCalls' from JSON`);
|
|
1335
1556
|
}
|
|
1336
1557
|
/** @internal */
|
|
1337
|
-
exports.
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1558
|
+
exports.ChoicesAssistantMessage$inboundSchema = z.object({
|
|
1559
|
+
content: z.union([
|
|
1560
|
+
z.string(),
|
|
1561
|
+
z.array(z.union([
|
|
1562
|
+
z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetricsTextContentPart$inboundSchema),
|
|
1563
|
+
z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema),
|
|
1564
|
+
])),
|
|
1565
|
+
]).optional(),
|
|
1566
|
+
refusal: z.nullable(z.string()).optional(),
|
|
1567
|
+
role: exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$inboundSchema,
|
|
1568
|
+
name: z.string().optional(),
|
|
1569
|
+
audio: z.nullable(z.lazy(() => exports.ChoicesAudio$inboundSchema)).optional(),
|
|
1570
|
+
tool_calls: z.array(z.lazy(() => exports.ChoicesToolCalls$inboundSchema)).optional(),
|
|
1341
1571
|
}).transform((v) => {
|
|
1342
1572
|
return (0, primitives_js_1.remap)(v, {
|
|
1343
1573
|
"tool_calls": "toolCalls",
|
|
1344
1574
|
});
|
|
1345
1575
|
});
|
|
1346
1576
|
/** @internal */
|
|
1347
|
-
exports.
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1577
|
+
exports.ChoicesAssistantMessage$outboundSchema = z.object({
|
|
1578
|
+
content: z.union([
|
|
1579
|
+
z.string(),
|
|
1580
|
+
z.array(z.union([
|
|
1581
|
+
z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetricsTextContentPart$outboundSchema),
|
|
1582
|
+
z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema),
|
|
1583
|
+
])),
|
|
1584
|
+
]).optional(),
|
|
1585
|
+
refusal: z.nullable(z.string()).optional(),
|
|
1586
|
+
role: exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$outboundSchema,
|
|
1587
|
+
name: z.string().optional(),
|
|
1588
|
+
audio: z.nullable(z.lazy(() => exports.ChoicesAudio$outboundSchema)).optional(),
|
|
1589
|
+
toolCalls: z.array(z.lazy(() => exports.ChoicesToolCalls$outboundSchema)).optional(),
|
|
1351
1590
|
}).transform((v) => {
|
|
1352
1591
|
return (0, primitives_js_1.remap)(v, {
|
|
1353
1592
|
toolCalls: "tool_calls",
|
|
@@ -1357,76 +1596,478 @@ exports.Message1$outboundSchema = z.object({
|
|
|
1357
1596
|
* @internal
|
|
1358
1597
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1359
1598
|
*/
|
|
1360
|
-
var
|
|
1361
|
-
(function (
|
|
1362
|
-
/** @deprecated use `
|
|
1363
|
-
|
|
1364
|
-
/** @deprecated use `
|
|
1365
|
-
|
|
1366
|
-
})(
|
|
1367
|
-
function
|
|
1368
|
-
return JSON.stringify(exports.
|
|
1599
|
+
var ChoicesAssistantMessage$;
|
|
1600
|
+
(function (ChoicesAssistantMessage$) {
|
|
1601
|
+
/** @deprecated use `ChoicesAssistantMessage$inboundSchema` instead. */
|
|
1602
|
+
ChoicesAssistantMessage$.inboundSchema = exports.ChoicesAssistantMessage$inboundSchema;
|
|
1603
|
+
/** @deprecated use `ChoicesAssistantMessage$outboundSchema` instead. */
|
|
1604
|
+
ChoicesAssistantMessage$.outboundSchema = exports.ChoicesAssistantMessage$outboundSchema;
|
|
1605
|
+
})(ChoicesAssistantMessage$ || (exports.ChoicesAssistantMessage$ = ChoicesAssistantMessage$ = {}));
|
|
1606
|
+
function choicesAssistantMessageToJSON(choicesAssistantMessage) {
|
|
1607
|
+
return JSON.stringify(exports.ChoicesAssistantMessage$outboundSchema.parse(choicesAssistantMessage));
|
|
1369
1608
|
}
|
|
1370
|
-
function
|
|
1371
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1609
|
+
function choicesAssistantMessageFromJSON(jsonString) {
|
|
1610
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ChoicesAssistantMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChoicesAssistantMessage' from JSON`);
|
|
1372
1611
|
}
|
|
1373
1612
|
/** @internal */
|
|
1374
|
-
exports.
|
|
1375
|
-
z.lazy(() => exports.Message2$inboundSchema),
|
|
1376
|
-
z.lazy(() => exports.Message3$inboundSchema),
|
|
1377
|
-
z.lazy(() => exports.Message1$inboundSchema),
|
|
1378
|
-
]);
|
|
1613
|
+
exports.DeploymentCreateMetricChoicesDeploymentsMetricsRole$inboundSchema = z.nativeEnum(exports.DeploymentCreateMetricChoicesDeploymentsMetricsRole);
|
|
1379
1614
|
/** @internal */
|
|
1380
|
-
exports.
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1615
|
+
exports.DeploymentCreateMetricChoicesDeploymentsMetricsRole$outboundSchema = exports.DeploymentCreateMetricChoicesDeploymentsMetricsRole$inboundSchema;
|
|
1616
|
+
/**
|
|
1617
|
+
* @internal
|
|
1618
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1619
|
+
*/
|
|
1620
|
+
var DeploymentCreateMetricChoicesDeploymentsMetricsRole$;
|
|
1621
|
+
(function (DeploymentCreateMetricChoicesDeploymentsMetricsRole$) {
|
|
1622
|
+
/** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsRole$inboundSchema` instead. */
|
|
1623
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsRole$.inboundSchema = exports.DeploymentCreateMetricChoicesDeploymentsMetricsRole$inboundSchema;
|
|
1624
|
+
/** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsRole$outboundSchema` instead. */
|
|
1625
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsRole$.outboundSchema = exports.DeploymentCreateMetricChoicesDeploymentsMetricsRole$outboundSchema;
|
|
1626
|
+
})(DeploymentCreateMetricChoicesDeploymentsMetricsRole$ || (exports.DeploymentCreateMetricChoicesDeploymentsMetricsRole$ = DeploymentCreateMetricChoicesDeploymentsMetricsRole$ = {}));
|
|
1627
|
+
/** @internal */
|
|
1628
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$inboundSchema = z.nativeEnum(exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType);
|
|
1629
|
+
/** @internal */
|
|
1630
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$inboundSchema;
|
|
1631
|
+
/**
|
|
1632
|
+
* @internal
|
|
1633
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1634
|
+
*/
|
|
1635
|
+
var DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$;
|
|
1636
|
+
(function (DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$) {
|
|
1637
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$inboundSchema` instead. */
|
|
1638
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$.inboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$inboundSchema;
|
|
1639
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$outboundSchema` instead. */
|
|
1640
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$.outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$outboundSchema;
|
|
1641
|
+
})(DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$ || (exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$ = DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$ = {}));
|
|
1642
|
+
/** @internal */
|
|
1643
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsFormat$inboundSchema = z
|
|
1644
|
+
.nativeEnum(exports.DeploymentCreateMetric2DeploymentsMetricsFormat);
|
|
1645
|
+
/** @internal */
|
|
1646
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsFormat$outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsFormat$inboundSchema;
|
|
1647
|
+
/**
|
|
1648
|
+
* @internal
|
|
1649
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1650
|
+
*/
|
|
1651
|
+
var DeploymentCreateMetric2DeploymentsMetricsFormat$;
|
|
1652
|
+
(function (DeploymentCreateMetric2DeploymentsMetricsFormat$) {
|
|
1653
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsFormat$inboundSchema` instead. */
|
|
1654
|
+
DeploymentCreateMetric2DeploymentsMetricsFormat$.inboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsFormat$inboundSchema;
|
|
1655
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsFormat$outboundSchema` instead. */
|
|
1656
|
+
DeploymentCreateMetric2DeploymentsMetricsFormat$.outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsFormat$outboundSchema;
|
|
1657
|
+
})(DeploymentCreateMetric2DeploymentsMetricsFormat$ || (exports.DeploymentCreateMetric2DeploymentsMetricsFormat$ = DeploymentCreateMetric2DeploymentsMetricsFormat$ = {}));
|
|
1658
|
+
/** @internal */
|
|
1659
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsInputAudio$inboundSchema = z.object({
|
|
1660
|
+
data: z.string(),
|
|
1661
|
+
format: exports.DeploymentCreateMetric2DeploymentsMetricsFormat$inboundSchema,
|
|
1662
|
+
});
|
|
1663
|
+
/** @internal */
|
|
1664
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsInputAudio$outboundSchema = z.object({
|
|
1665
|
+
data: z.string(),
|
|
1666
|
+
format: exports.DeploymentCreateMetric2DeploymentsMetricsFormat$outboundSchema,
|
|
1667
|
+
});
|
|
1385
1668
|
/**
|
|
1386
1669
|
* @internal
|
|
1387
1670
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1388
1671
|
*/
|
|
1389
|
-
var
|
|
1390
|
-
(function (
|
|
1391
|
-
/** @deprecated use `
|
|
1392
|
-
|
|
1393
|
-
/** @deprecated use `
|
|
1394
|
-
|
|
1395
|
-
})(
|
|
1396
|
-
function
|
|
1397
|
-
return JSON.stringify(exports.
|
|
1672
|
+
var DeploymentCreateMetric2DeploymentsMetricsInputAudio$;
|
|
1673
|
+
(function (DeploymentCreateMetric2DeploymentsMetricsInputAudio$) {
|
|
1674
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsInputAudio$inboundSchema` instead. */
|
|
1675
|
+
DeploymentCreateMetric2DeploymentsMetricsInputAudio$.inboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsInputAudio$inboundSchema;
|
|
1676
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsInputAudio$outboundSchema` instead. */
|
|
1677
|
+
DeploymentCreateMetric2DeploymentsMetricsInputAudio$.outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsInputAudio$outboundSchema;
|
|
1678
|
+
})(DeploymentCreateMetric2DeploymentsMetricsInputAudio$ || (exports.DeploymentCreateMetric2DeploymentsMetricsInputAudio$ = DeploymentCreateMetric2DeploymentsMetricsInputAudio$ = {}));
|
|
1679
|
+
function deploymentCreateMetric2DeploymentsMetricsInputAudioToJSON(deploymentCreateMetric2DeploymentsMetricsInputAudio) {
|
|
1680
|
+
return JSON.stringify(exports.DeploymentCreateMetric2DeploymentsMetricsInputAudio$outboundSchema.parse(deploymentCreateMetric2DeploymentsMetricsInputAudio));
|
|
1398
1681
|
}
|
|
1399
|
-
function
|
|
1400
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1682
|
+
function deploymentCreateMetric2DeploymentsMetricsInputAudioFromJSON(jsonString) {
|
|
1683
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentCreateMetric2DeploymentsMetricsInputAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentCreateMetric2DeploymentsMetricsInputAudio' from JSON`);
|
|
1401
1684
|
}
|
|
1402
1685
|
/** @internal */
|
|
1403
|
-
exports.
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
z.lazy(() => exports.Message2$inboundSchema),
|
|
1407
|
-
z.lazy(() => exports.Message3$inboundSchema),
|
|
1408
|
-
z.lazy(() => exports.Message1$inboundSchema),
|
|
1409
|
-
]).optional(),
|
|
1410
|
-
finish_reason: z.nullable(z.string()).optional(),
|
|
1686
|
+
exports.DeploymentCreateMetric2DeploymentsMetrics3$inboundSchema = z.object({
|
|
1687
|
+
type: exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$inboundSchema,
|
|
1688
|
+
input_audio: z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetricsInputAudio$inboundSchema),
|
|
1411
1689
|
}).transform((v) => {
|
|
1412
1690
|
return (0, primitives_js_1.remap)(v, {
|
|
1413
|
-
"
|
|
1691
|
+
"input_audio": "inputAudio",
|
|
1414
1692
|
});
|
|
1415
1693
|
});
|
|
1416
1694
|
/** @internal */
|
|
1417
|
-
exports.
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1695
|
+
exports.DeploymentCreateMetric2DeploymentsMetrics3$outboundSchema = z.object({
|
|
1696
|
+
type: exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$outboundSchema,
|
|
1697
|
+
inputAudio: z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetricsInputAudio$outboundSchema),
|
|
1698
|
+
}).transform((v) => {
|
|
1699
|
+
return (0, primitives_js_1.remap)(v, {
|
|
1700
|
+
inputAudio: "input_audio",
|
|
1701
|
+
});
|
|
1702
|
+
});
|
|
1703
|
+
/**
|
|
1704
|
+
* @internal
|
|
1705
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1706
|
+
*/
|
|
1707
|
+
var DeploymentCreateMetric2DeploymentsMetrics3$;
|
|
1708
|
+
(function (DeploymentCreateMetric2DeploymentsMetrics3$) {
|
|
1709
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetrics3$inboundSchema` instead. */
|
|
1710
|
+
DeploymentCreateMetric2DeploymentsMetrics3$.inboundSchema = exports.DeploymentCreateMetric2DeploymentsMetrics3$inboundSchema;
|
|
1711
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetrics3$outboundSchema` instead. */
|
|
1712
|
+
DeploymentCreateMetric2DeploymentsMetrics3$.outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetrics3$outboundSchema;
|
|
1713
|
+
})(DeploymentCreateMetric2DeploymentsMetrics3$ || (exports.DeploymentCreateMetric2DeploymentsMetrics3$ = DeploymentCreateMetric2DeploymentsMetrics3$ = {}));
|
|
1714
|
+
function deploymentCreateMetric2DeploymentsMetrics3ToJSON(deploymentCreateMetric2DeploymentsMetrics3) {
|
|
1715
|
+
return JSON.stringify(exports.DeploymentCreateMetric2DeploymentsMetrics3$outboundSchema.parse(deploymentCreateMetric2DeploymentsMetrics3));
|
|
1716
|
+
}
|
|
1717
|
+
function deploymentCreateMetric2DeploymentsMetrics3FromJSON(jsonString) {
|
|
1718
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentCreateMetric2DeploymentsMetrics3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentCreateMetric2DeploymentsMetrics3' from JSON`);
|
|
1719
|
+
}
|
|
1720
|
+
/** @internal */
|
|
1721
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$inboundSchema = z.nativeEnum(exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type);
|
|
1722
|
+
/** @internal */
|
|
1723
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$inboundSchema;
|
|
1724
|
+
/**
|
|
1725
|
+
* @internal
|
|
1726
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1727
|
+
*/
|
|
1728
|
+
var DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$;
|
|
1729
|
+
(function (DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$) {
|
|
1730
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$inboundSchema` instead. */
|
|
1731
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$.inboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$inboundSchema;
|
|
1732
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$outboundSchema` instead. */
|
|
1733
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$.outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$outboundSchema;
|
|
1734
|
+
})(DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$ || (exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$ = DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$ = {}));
|
|
1735
|
+
/** @internal */
|
|
1736
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsDetail$inboundSchema = z
|
|
1737
|
+
.nativeEnum(exports.DeploymentCreateMetric2DeploymentsMetricsDetail);
|
|
1738
|
+
/** @internal */
|
|
1739
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsDetail$outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsDetail$inboundSchema;
|
|
1740
|
+
/**
|
|
1741
|
+
* @internal
|
|
1742
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1743
|
+
*/
|
|
1744
|
+
var DeploymentCreateMetric2DeploymentsMetricsDetail$;
|
|
1745
|
+
(function (DeploymentCreateMetric2DeploymentsMetricsDetail$) {
|
|
1746
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsDetail$inboundSchema` instead. */
|
|
1747
|
+
DeploymentCreateMetric2DeploymentsMetricsDetail$.inboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsDetail$inboundSchema;
|
|
1748
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsDetail$outboundSchema` instead. */
|
|
1749
|
+
DeploymentCreateMetric2DeploymentsMetricsDetail$.outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsDetail$outboundSchema;
|
|
1750
|
+
})(DeploymentCreateMetric2DeploymentsMetricsDetail$ || (exports.DeploymentCreateMetric2DeploymentsMetricsDetail$ = DeploymentCreateMetric2DeploymentsMetricsDetail$ = {}));
|
|
1751
|
+
/** @internal */
|
|
1752
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsImageUrl$inboundSchema = z.object({
|
|
1753
|
+
url: z.string(),
|
|
1754
|
+
detail: exports.DeploymentCreateMetric2DeploymentsMetricsDetail$inboundSchema
|
|
1755
|
+
.optional(),
|
|
1756
|
+
});
|
|
1757
|
+
/** @internal */
|
|
1758
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsImageUrl$outboundSchema = z.object({
|
|
1759
|
+
url: z.string(),
|
|
1760
|
+
detail: exports.DeploymentCreateMetric2DeploymentsMetricsDetail$outboundSchema
|
|
1761
|
+
.optional(),
|
|
1762
|
+
});
|
|
1763
|
+
/**
|
|
1764
|
+
* @internal
|
|
1765
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1766
|
+
*/
|
|
1767
|
+
var DeploymentCreateMetric2DeploymentsMetricsImageUrl$;
|
|
1768
|
+
(function (DeploymentCreateMetric2DeploymentsMetricsImageUrl$) {
|
|
1769
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsImageUrl$inboundSchema` instead. */
|
|
1770
|
+
DeploymentCreateMetric2DeploymentsMetricsImageUrl$.inboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsImageUrl$inboundSchema;
|
|
1771
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsImageUrl$outboundSchema` instead. */
|
|
1772
|
+
DeploymentCreateMetric2DeploymentsMetricsImageUrl$.outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsImageUrl$outboundSchema;
|
|
1773
|
+
})(DeploymentCreateMetric2DeploymentsMetricsImageUrl$ || (exports.DeploymentCreateMetric2DeploymentsMetricsImageUrl$ = DeploymentCreateMetric2DeploymentsMetricsImageUrl$ = {}));
|
|
1774
|
+
function deploymentCreateMetric2DeploymentsMetricsImageUrlToJSON(deploymentCreateMetric2DeploymentsMetricsImageUrl) {
|
|
1775
|
+
return JSON.stringify(exports.DeploymentCreateMetric2DeploymentsMetricsImageUrl$outboundSchema.parse(deploymentCreateMetric2DeploymentsMetricsImageUrl));
|
|
1776
|
+
}
|
|
1777
|
+
function deploymentCreateMetric2DeploymentsMetricsImageUrlFromJSON(jsonString) {
|
|
1778
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentCreateMetric2DeploymentsMetricsImageUrl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentCreateMetric2DeploymentsMetricsImageUrl' from JSON`);
|
|
1779
|
+
}
|
|
1780
|
+
/** @internal */
|
|
1781
|
+
exports.DeploymentCreateMetric2DeploymentsMetrics2$inboundSchema = z.object({
|
|
1782
|
+
type: exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$inboundSchema,
|
|
1783
|
+
image_url: z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetricsImageUrl$inboundSchema),
|
|
1425
1784
|
}).transform((v) => {
|
|
1426
1785
|
return (0, primitives_js_1.remap)(v, {
|
|
1427
|
-
|
|
1786
|
+
"image_url": "imageUrl",
|
|
1787
|
+
});
|
|
1788
|
+
});
|
|
1789
|
+
/** @internal */
|
|
1790
|
+
exports.DeploymentCreateMetric2DeploymentsMetrics2$outboundSchema = z.object({
|
|
1791
|
+
type: exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$outboundSchema,
|
|
1792
|
+
imageUrl: z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetricsImageUrl$outboundSchema),
|
|
1793
|
+
}).transform((v) => {
|
|
1794
|
+
return (0, primitives_js_1.remap)(v, {
|
|
1795
|
+
imageUrl: "image_url",
|
|
1428
1796
|
});
|
|
1429
1797
|
});
|
|
1798
|
+
/**
|
|
1799
|
+
* @internal
|
|
1800
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1801
|
+
*/
|
|
1802
|
+
var DeploymentCreateMetric2DeploymentsMetrics2$;
|
|
1803
|
+
(function (DeploymentCreateMetric2DeploymentsMetrics2$) {
|
|
1804
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetrics2$inboundSchema` instead. */
|
|
1805
|
+
DeploymentCreateMetric2DeploymentsMetrics2$.inboundSchema = exports.DeploymentCreateMetric2DeploymentsMetrics2$inboundSchema;
|
|
1806
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetrics2$outboundSchema` instead. */
|
|
1807
|
+
DeploymentCreateMetric2DeploymentsMetrics2$.outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetrics2$outboundSchema;
|
|
1808
|
+
})(DeploymentCreateMetric2DeploymentsMetrics2$ || (exports.DeploymentCreateMetric2DeploymentsMetrics2$ = DeploymentCreateMetric2DeploymentsMetrics2$ = {}));
|
|
1809
|
+
function deploymentCreateMetric2DeploymentsMetrics2ToJSON(deploymentCreateMetric2DeploymentsMetrics2) {
|
|
1810
|
+
return JSON.stringify(exports.DeploymentCreateMetric2DeploymentsMetrics2$outboundSchema.parse(deploymentCreateMetric2DeploymentsMetrics2));
|
|
1811
|
+
}
|
|
1812
|
+
function deploymentCreateMetric2DeploymentsMetrics2FromJSON(jsonString) {
|
|
1813
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentCreateMetric2DeploymentsMetrics2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentCreateMetric2DeploymentsMetrics2' from JSON`);
|
|
1814
|
+
}
|
|
1815
|
+
/** @internal */
|
|
1816
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$inboundSchema = z.nativeEnum(exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType);
|
|
1817
|
+
/** @internal */
|
|
1818
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$inboundSchema;
|
|
1819
|
+
/**
|
|
1820
|
+
* @internal
|
|
1821
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1822
|
+
*/
|
|
1823
|
+
var DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$;
|
|
1824
|
+
(function (DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$) {
|
|
1825
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$inboundSchema` instead. */
|
|
1826
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$.inboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$inboundSchema;
|
|
1827
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$outboundSchema` instead. */
|
|
1828
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$.outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$outboundSchema;
|
|
1829
|
+
})(DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$ || (exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$ = DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$ = {}));
|
|
1830
|
+
/** @internal */
|
|
1831
|
+
exports.DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema = z.object({
|
|
1832
|
+
type: exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$inboundSchema,
|
|
1833
|
+
text: z.string(),
|
|
1834
|
+
});
|
|
1835
|
+
/** @internal */
|
|
1836
|
+
exports.DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema = z.object({
|
|
1837
|
+
type: exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$outboundSchema,
|
|
1838
|
+
text: z.string(),
|
|
1839
|
+
});
|
|
1840
|
+
/**
|
|
1841
|
+
* @internal
|
|
1842
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1843
|
+
*/
|
|
1844
|
+
var DeploymentCreateMetric2DeploymentsMetrics1$;
|
|
1845
|
+
(function (DeploymentCreateMetric2DeploymentsMetrics1$) {
|
|
1846
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema` instead. */
|
|
1847
|
+
DeploymentCreateMetric2DeploymentsMetrics1$.inboundSchema = exports.DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema;
|
|
1848
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema` instead. */
|
|
1849
|
+
DeploymentCreateMetric2DeploymentsMetrics1$.outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema;
|
|
1850
|
+
})(DeploymentCreateMetric2DeploymentsMetrics1$ || (exports.DeploymentCreateMetric2DeploymentsMetrics1$ = DeploymentCreateMetric2DeploymentsMetrics1$ = {}));
|
|
1851
|
+
function deploymentCreateMetric2DeploymentsMetrics1ToJSON(deploymentCreateMetric2DeploymentsMetrics1) {
|
|
1852
|
+
return JSON.stringify(exports.DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema.parse(deploymentCreateMetric2DeploymentsMetrics1));
|
|
1853
|
+
}
|
|
1854
|
+
function deploymentCreateMetric2DeploymentsMetrics1FromJSON(jsonString) {
|
|
1855
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentCreateMetric2DeploymentsMetrics1' from JSON`);
|
|
1856
|
+
}
|
|
1857
|
+
/** @internal */
|
|
1858
|
+
exports.DeploymentCreateMetricContentDeploymentsMetricsRequest2$inboundSchema = z.union([
|
|
1859
|
+
z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema),
|
|
1860
|
+
z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetrics2$inboundSchema),
|
|
1861
|
+
z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetrics3$inboundSchema),
|
|
1862
|
+
]);
|
|
1863
|
+
/** @internal */
|
|
1864
|
+
exports.DeploymentCreateMetricContentDeploymentsMetricsRequest2$outboundSchema = z.union([
|
|
1865
|
+
z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema),
|
|
1866
|
+
z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetrics2$outboundSchema),
|
|
1867
|
+
z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetrics3$outboundSchema),
|
|
1868
|
+
]);
|
|
1869
|
+
/**
|
|
1870
|
+
* @internal
|
|
1871
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1872
|
+
*/
|
|
1873
|
+
var DeploymentCreateMetricContentDeploymentsMetricsRequest2$;
|
|
1874
|
+
(function (DeploymentCreateMetricContentDeploymentsMetricsRequest2$) {
|
|
1875
|
+
/** @deprecated use `DeploymentCreateMetricContentDeploymentsMetricsRequest2$inboundSchema` instead. */
|
|
1876
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequest2$.inboundSchema = exports.DeploymentCreateMetricContentDeploymentsMetricsRequest2$inboundSchema;
|
|
1877
|
+
/** @deprecated use `DeploymentCreateMetricContentDeploymentsMetricsRequest2$outboundSchema` instead. */
|
|
1878
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequest2$.outboundSchema = exports.DeploymentCreateMetricContentDeploymentsMetricsRequest2$outboundSchema;
|
|
1879
|
+
})(DeploymentCreateMetricContentDeploymentsMetricsRequest2$ || (exports.DeploymentCreateMetricContentDeploymentsMetricsRequest2$ = DeploymentCreateMetricContentDeploymentsMetricsRequest2$ = {}));
|
|
1880
|
+
function deploymentCreateMetricContentDeploymentsMetricsRequest2ToJSON(deploymentCreateMetricContentDeploymentsMetricsRequest2) {
|
|
1881
|
+
return JSON.stringify(exports.DeploymentCreateMetricContentDeploymentsMetricsRequest2$outboundSchema
|
|
1882
|
+
.parse(deploymentCreateMetricContentDeploymentsMetricsRequest2));
|
|
1883
|
+
}
|
|
1884
|
+
function deploymentCreateMetricContentDeploymentsMetricsRequest2FromJSON(jsonString) {
|
|
1885
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentCreateMetricContentDeploymentsMetricsRequest2$inboundSchema
|
|
1886
|
+
.parse(JSON.parse(x)), `Failed to parse 'DeploymentCreateMetricContentDeploymentsMetricsRequest2' from JSON`);
|
|
1887
|
+
}
|
|
1888
|
+
/** @internal */
|
|
1889
|
+
exports.ChoicesContent$inboundSchema = z.union([
|
|
1890
|
+
z.string(),
|
|
1891
|
+
z.array(z.union([
|
|
1892
|
+
z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema),
|
|
1893
|
+
z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetrics2$inboundSchema),
|
|
1894
|
+
z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetrics3$inboundSchema),
|
|
1895
|
+
])),
|
|
1896
|
+
]);
|
|
1897
|
+
/** @internal */
|
|
1898
|
+
exports.ChoicesContent$outboundSchema = z.union([
|
|
1899
|
+
z.string(),
|
|
1900
|
+
z.array(z.union([
|
|
1901
|
+
z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema),
|
|
1902
|
+
z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetrics2$outboundSchema),
|
|
1903
|
+
z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetrics3$outboundSchema),
|
|
1904
|
+
])),
|
|
1905
|
+
]);
|
|
1906
|
+
/**
|
|
1907
|
+
* @internal
|
|
1908
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1909
|
+
*/
|
|
1910
|
+
var ChoicesContent$;
|
|
1911
|
+
(function (ChoicesContent$) {
|
|
1912
|
+
/** @deprecated use `ChoicesContent$inboundSchema` instead. */
|
|
1913
|
+
ChoicesContent$.inboundSchema = exports.ChoicesContent$inboundSchema;
|
|
1914
|
+
/** @deprecated use `ChoicesContent$outboundSchema` instead. */
|
|
1915
|
+
ChoicesContent$.outboundSchema = exports.ChoicesContent$outboundSchema;
|
|
1916
|
+
})(ChoicesContent$ || (exports.ChoicesContent$ = ChoicesContent$ = {}));
|
|
1917
|
+
function choicesContentToJSON(choicesContent) {
|
|
1918
|
+
return JSON.stringify(exports.ChoicesContent$outboundSchema.parse(choicesContent));
|
|
1919
|
+
}
|
|
1920
|
+
function choicesContentFromJSON(jsonString) {
|
|
1921
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ChoicesContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChoicesContent' from JSON`);
|
|
1922
|
+
}
|
|
1923
|
+
/** @internal */
|
|
1924
|
+
exports.ChoicesUserMessage$inboundSchema = z.object({
|
|
1925
|
+
role: exports.DeploymentCreateMetricChoicesDeploymentsMetricsRole$inboundSchema,
|
|
1926
|
+
name: z.string().optional(),
|
|
1927
|
+
content: z.union([
|
|
1928
|
+
z.string(),
|
|
1929
|
+
z.array(z.union([
|
|
1930
|
+
z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema),
|
|
1931
|
+
z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetrics2$inboundSchema),
|
|
1932
|
+
z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetrics3$inboundSchema),
|
|
1933
|
+
])),
|
|
1934
|
+
]),
|
|
1935
|
+
});
|
|
1936
|
+
/** @internal */
|
|
1937
|
+
exports.ChoicesUserMessage$outboundSchema = z.object({
|
|
1938
|
+
role: exports.DeploymentCreateMetricChoicesDeploymentsMetricsRole$outboundSchema,
|
|
1939
|
+
name: z.string().optional(),
|
|
1940
|
+
content: z.union([
|
|
1941
|
+
z.string(),
|
|
1942
|
+
z.array(z.union([
|
|
1943
|
+
z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema),
|
|
1944
|
+
z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetrics2$outboundSchema),
|
|
1945
|
+
z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetrics3$outboundSchema),
|
|
1946
|
+
])),
|
|
1947
|
+
]),
|
|
1948
|
+
});
|
|
1949
|
+
/**
|
|
1950
|
+
* @internal
|
|
1951
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1952
|
+
*/
|
|
1953
|
+
var ChoicesUserMessage$;
|
|
1954
|
+
(function (ChoicesUserMessage$) {
|
|
1955
|
+
/** @deprecated use `ChoicesUserMessage$inboundSchema` instead. */
|
|
1956
|
+
ChoicesUserMessage$.inboundSchema = exports.ChoicesUserMessage$inboundSchema;
|
|
1957
|
+
/** @deprecated use `ChoicesUserMessage$outboundSchema` instead. */
|
|
1958
|
+
ChoicesUserMessage$.outboundSchema = exports.ChoicesUserMessage$outboundSchema;
|
|
1959
|
+
})(ChoicesUserMessage$ || (exports.ChoicesUserMessage$ = ChoicesUserMessage$ = {}));
|
|
1960
|
+
function choicesUserMessageToJSON(choicesUserMessage) {
|
|
1961
|
+
return JSON.stringify(exports.ChoicesUserMessage$outboundSchema.parse(choicesUserMessage));
|
|
1962
|
+
}
|
|
1963
|
+
function choicesUserMessageFromJSON(jsonString) {
|
|
1964
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ChoicesUserMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChoicesUserMessage' from JSON`);
|
|
1965
|
+
}
|
|
1966
|
+
/** @internal */
|
|
1967
|
+
exports.DeploymentCreateMetricChoicesRole$inboundSchema = z.nativeEnum(exports.DeploymentCreateMetricChoicesRole);
|
|
1968
|
+
/** @internal */
|
|
1969
|
+
exports.DeploymentCreateMetricChoicesRole$outboundSchema = exports.DeploymentCreateMetricChoicesRole$inboundSchema;
|
|
1970
|
+
/**
|
|
1971
|
+
* @internal
|
|
1972
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1973
|
+
*/
|
|
1974
|
+
var DeploymentCreateMetricChoicesRole$;
|
|
1975
|
+
(function (DeploymentCreateMetricChoicesRole$) {
|
|
1976
|
+
/** @deprecated use `DeploymentCreateMetricChoicesRole$inboundSchema` instead. */
|
|
1977
|
+
DeploymentCreateMetricChoicesRole$.inboundSchema = exports.DeploymentCreateMetricChoicesRole$inboundSchema;
|
|
1978
|
+
/** @deprecated use `DeploymentCreateMetricChoicesRole$outboundSchema` instead. */
|
|
1979
|
+
DeploymentCreateMetricChoicesRole$.outboundSchema = exports.DeploymentCreateMetricChoicesRole$outboundSchema;
|
|
1980
|
+
})(DeploymentCreateMetricChoicesRole$ || (exports.DeploymentCreateMetricChoicesRole$ = DeploymentCreateMetricChoicesRole$ = {}));
|
|
1981
|
+
/** @internal */
|
|
1982
|
+
exports.ChoicesSystemMessage$inboundSchema = z.object({
|
|
1983
|
+
role: exports.DeploymentCreateMetricChoicesRole$inboundSchema,
|
|
1984
|
+
content: z.string(),
|
|
1985
|
+
name: z.string().optional(),
|
|
1986
|
+
});
|
|
1987
|
+
/** @internal */
|
|
1988
|
+
exports.ChoicesSystemMessage$outboundSchema = z.object({
|
|
1989
|
+
role: exports.DeploymentCreateMetricChoicesRole$outboundSchema,
|
|
1990
|
+
content: z.string(),
|
|
1991
|
+
name: z.string().optional(),
|
|
1992
|
+
});
|
|
1993
|
+
/**
|
|
1994
|
+
* @internal
|
|
1995
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1996
|
+
*/
|
|
1997
|
+
var ChoicesSystemMessage$;
|
|
1998
|
+
(function (ChoicesSystemMessage$) {
|
|
1999
|
+
/** @deprecated use `ChoicesSystemMessage$inboundSchema` instead. */
|
|
2000
|
+
ChoicesSystemMessage$.inboundSchema = exports.ChoicesSystemMessage$inboundSchema;
|
|
2001
|
+
/** @deprecated use `ChoicesSystemMessage$outboundSchema` instead. */
|
|
2002
|
+
ChoicesSystemMessage$.outboundSchema = exports.ChoicesSystemMessage$outboundSchema;
|
|
2003
|
+
})(ChoicesSystemMessage$ || (exports.ChoicesSystemMessage$ = ChoicesSystemMessage$ = {}));
|
|
2004
|
+
function choicesSystemMessageToJSON(choicesSystemMessage) {
|
|
2005
|
+
return JSON.stringify(exports.ChoicesSystemMessage$outboundSchema.parse(choicesSystemMessage));
|
|
2006
|
+
}
|
|
2007
|
+
function choicesSystemMessageFromJSON(jsonString) {
|
|
2008
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ChoicesSystemMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChoicesSystemMessage' from JSON`);
|
|
2009
|
+
}
|
|
2010
|
+
/** @internal */
|
|
2011
|
+
exports.ChoicesRole$inboundSchema = z
|
|
2012
|
+
.nativeEnum(exports.ChoicesRole);
|
|
2013
|
+
/** @internal */
|
|
2014
|
+
exports.ChoicesRole$outboundSchema = exports.ChoicesRole$inboundSchema;
|
|
2015
|
+
/**
|
|
2016
|
+
* @internal
|
|
2017
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2018
|
+
*/
|
|
2019
|
+
var ChoicesRole$;
|
|
2020
|
+
(function (ChoicesRole$) {
|
|
2021
|
+
/** @deprecated use `ChoicesRole$inboundSchema` instead. */
|
|
2022
|
+
ChoicesRole$.inboundSchema = exports.ChoicesRole$inboundSchema;
|
|
2023
|
+
/** @deprecated use `ChoicesRole$outboundSchema` instead. */
|
|
2024
|
+
ChoicesRole$.outboundSchema = exports.ChoicesRole$outboundSchema;
|
|
2025
|
+
})(ChoicesRole$ || (exports.ChoicesRole$ = ChoicesRole$ = {}));
|
|
2026
|
+
/** @internal */
|
|
2027
|
+
exports.ChoicesDeveloperMessage$inboundSchema = z.object({
|
|
2028
|
+
role: exports.ChoicesRole$inboundSchema,
|
|
2029
|
+
content: z.string(),
|
|
2030
|
+
name: z.string().optional(),
|
|
2031
|
+
});
|
|
2032
|
+
/** @internal */
|
|
2033
|
+
exports.ChoicesDeveloperMessage$outboundSchema = z.object({
|
|
2034
|
+
role: exports.ChoicesRole$outboundSchema,
|
|
2035
|
+
content: z.string(),
|
|
2036
|
+
name: z.string().optional(),
|
|
2037
|
+
});
|
|
2038
|
+
/**
|
|
2039
|
+
* @internal
|
|
2040
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2041
|
+
*/
|
|
2042
|
+
var ChoicesDeveloperMessage$;
|
|
2043
|
+
(function (ChoicesDeveloperMessage$) {
|
|
2044
|
+
/** @deprecated use `ChoicesDeveloperMessage$inboundSchema` instead. */
|
|
2045
|
+
ChoicesDeveloperMessage$.inboundSchema = exports.ChoicesDeveloperMessage$inboundSchema;
|
|
2046
|
+
/** @deprecated use `ChoicesDeveloperMessage$outboundSchema` instead. */
|
|
2047
|
+
ChoicesDeveloperMessage$.outboundSchema = exports.ChoicesDeveloperMessage$outboundSchema;
|
|
2048
|
+
})(ChoicesDeveloperMessage$ || (exports.ChoicesDeveloperMessage$ = ChoicesDeveloperMessage$ = {}));
|
|
2049
|
+
function choicesDeveloperMessageToJSON(choicesDeveloperMessage) {
|
|
2050
|
+
return JSON.stringify(exports.ChoicesDeveloperMessage$outboundSchema.parse(choicesDeveloperMessage));
|
|
2051
|
+
}
|
|
2052
|
+
function choicesDeveloperMessageFromJSON(jsonString) {
|
|
2053
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ChoicesDeveloperMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChoicesDeveloperMessage' from JSON`);
|
|
2054
|
+
}
|
|
2055
|
+
/** @internal */
|
|
2056
|
+
exports.Choices$inboundSchema = z.union([
|
|
2057
|
+
z.lazy(() => exports.ChoicesDeveloperMessage$inboundSchema),
|
|
2058
|
+
z.lazy(() => exports.ChoicesSystemMessage$inboundSchema),
|
|
2059
|
+
z.lazy(() => exports.ChoicesUserMessage$inboundSchema),
|
|
2060
|
+
z.lazy(() => exports.ChoicesToolMessage$inboundSchema),
|
|
2061
|
+
z.lazy(() => exports.ChoicesAssistantMessage$inboundSchema),
|
|
2062
|
+
]);
|
|
2063
|
+
/** @internal */
|
|
2064
|
+
exports.Choices$outboundSchema = z.union([
|
|
2065
|
+
z.lazy(() => exports.ChoicesDeveloperMessage$outboundSchema),
|
|
2066
|
+
z.lazy(() => exports.ChoicesSystemMessage$outboundSchema),
|
|
2067
|
+
z.lazy(() => exports.ChoicesUserMessage$outboundSchema),
|
|
2068
|
+
z.lazy(() => exports.ChoicesToolMessage$outboundSchema),
|
|
2069
|
+
z.lazy(() => exports.ChoicesAssistantMessage$outboundSchema),
|
|
2070
|
+
]);
|
|
1430
2071
|
/**
|
|
1431
2072
|
* @internal
|
|
1432
2073
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
@@ -1481,7 +2122,13 @@ exports.DeploymentCreateMetricRequestBody$inboundSchema = z.object({
|
|
|
1481
2122
|
z.lazy(() => exports.DeploymentCreateMetricMessagesToolMessage$inboundSchema),
|
|
1482
2123
|
z.lazy(() => exports.DeploymentCreateMetricMessagesAssistantMessage$inboundSchema),
|
|
1483
2124
|
])).optional(),
|
|
1484
|
-
choices: z.array(z.
|
|
2125
|
+
choices: z.array(z.union([
|
|
2126
|
+
z.lazy(() => exports.ChoicesDeveloperMessage$inboundSchema),
|
|
2127
|
+
z.lazy(() => exports.ChoicesSystemMessage$inboundSchema),
|
|
2128
|
+
z.lazy(() => exports.ChoicesUserMessage$inboundSchema),
|
|
2129
|
+
z.lazy(() => exports.ChoicesToolMessage$inboundSchema),
|
|
2130
|
+
z.lazy(() => exports.ChoicesAssistantMessage$inboundSchema),
|
|
2131
|
+
])).optional(),
|
|
1485
2132
|
feedback: z.lazy(() => exports.Feedback$inboundSchema).optional(),
|
|
1486
2133
|
});
|
|
1487
2134
|
/** @internal */
|
|
@@ -1496,7 +2143,13 @@ exports.DeploymentCreateMetricRequestBody$outboundSchema = z.object({
|
|
|
1496
2143
|
z.lazy(() => exports.DeploymentCreateMetricMessagesToolMessage$outboundSchema),
|
|
1497
2144
|
z.lazy(() => exports.DeploymentCreateMetricMessagesAssistantMessage$outboundSchema),
|
|
1498
2145
|
])).optional(),
|
|
1499
|
-
choices: z.array(z.
|
|
2146
|
+
choices: z.array(z.union([
|
|
2147
|
+
z.lazy(() => exports.ChoicesDeveloperMessage$outboundSchema),
|
|
2148
|
+
z.lazy(() => exports.ChoicesSystemMessage$outboundSchema),
|
|
2149
|
+
z.lazy(() => exports.ChoicesUserMessage$outboundSchema),
|
|
2150
|
+
z.lazy(() => exports.ChoicesToolMessage$outboundSchema),
|
|
2151
|
+
z.lazy(() => exports.ChoicesAssistantMessage$outboundSchema),
|
|
2152
|
+
])).optional(),
|
|
1500
2153
|
feedback: z.lazy(() => exports.Feedback$outboundSchema).optional(),
|
|
1501
2154
|
});
|
|
1502
2155
|
/**
|