@orq-ai/node 3.2.0-rc.35 → 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 +629 -330
- 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 +817 -254
- package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
- package/models/operations/deploymentcreatemetric.js +847 -254
- 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 +2749 -1231
- 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;
|
|
@@ -183,56 +212,77 @@ exports.DeploymentCreateMetricMessagesDeploymentsMetricsRole = {
|
|
|
183
212
|
exports.DeploymentCreateMetricMessagesRole = {
|
|
184
213
|
Developer: "developer",
|
|
185
214
|
};
|
|
186
|
-
exports.DeploymentCreateMetricMessageDeploymentsMetricsRequestType = {
|
|
187
|
-
Image: "image",
|
|
188
|
-
};
|
|
189
215
|
/**
|
|
190
|
-
* The role of the
|
|
216
|
+
* The role of the messages author, in this case tool.
|
|
191
217
|
*/
|
|
192
|
-
exports.
|
|
193
|
-
System: "system",
|
|
194
|
-
Assistant: "assistant",
|
|
195
|
-
User: "user",
|
|
196
|
-
Exception: "exception",
|
|
218
|
+
exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole = {
|
|
197
219
|
Tool: "tool",
|
|
198
|
-
Prompt: "prompt",
|
|
199
|
-
Correction: "correction",
|
|
200
|
-
ExpectedOutput: "expected_output",
|
|
201
220
|
};
|
|
202
|
-
|
|
203
|
-
|
|
221
|
+
/**
|
|
222
|
+
* The type of the content part.
|
|
223
|
+
*/
|
|
224
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType = {
|
|
225
|
+
Refusal: "refusal",
|
|
226
|
+
};
|
|
227
|
+
/**
|
|
228
|
+
* The type of the content part.
|
|
229
|
+
*/
|
|
230
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type = {
|
|
231
|
+
Text: "text",
|
|
204
232
|
};
|
|
205
233
|
/**
|
|
206
|
-
* The role of the
|
|
234
|
+
* The role of the messages author, in this case `assistant`.
|
|
207
235
|
*/
|
|
208
|
-
exports.
|
|
209
|
-
System: "system",
|
|
236
|
+
exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole = {
|
|
210
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 = {
|
|
211
249
|
User: "user",
|
|
212
|
-
Exception: "exception",
|
|
213
|
-
Tool: "tool",
|
|
214
|
-
Prompt: "prompt",
|
|
215
|
-
Correction: "correction",
|
|
216
|
-
ExpectedOutput: "expected_output",
|
|
217
250
|
};
|
|
218
|
-
exports.
|
|
219
|
-
|
|
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",
|
|
220
274
|
};
|
|
221
275
|
/**
|
|
222
|
-
* The role of the
|
|
276
|
+
* The role of the messages author, in this case `system`.
|
|
223
277
|
*/
|
|
224
|
-
exports.
|
|
278
|
+
exports.DeploymentCreateMetricChoicesRole = {
|
|
225
279
|
System: "system",
|
|
226
|
-
Assistant: "assistant",
|
|
227
|
-
User: "user",
|
|
228
|
-
Exception: "exception",
|
|
229
|
-
Tool: "tool",
|
|
230
|
-
Prompt: "prompt",
|
|
231
|
-
Correction: "correction",
|
|
232
|
-
ExpectedOutput: "expected_output",
|
|
233
280
|
};
|
|
234
|
-
|
|
235
|
-
|
|
281
|
+
/**
|
|
282
|
+
* The role of the messages author, in this case `developer`.
|
|
283
|
+
*/
|
|
284
|
+
exports.ChoicesRole = {
|
|
285
|
+
Developer: "developer",
|
|
236
286
|
};
|
|
237
287
|
/** @internal */
|
|
238
288
|
exports.Usage$inboundSchema = z
|
|
@@ -1169,245 +1219,374 @@ function deploymentCreateMetricMessagesFromJSON(jsonString) {
|
|
|
1169
1219
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentCreateMetricMessages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentCreateMetricMessages' from JSON`);
|
|
1170
1220
|
}
|
|
1171
1221
|
/** @internal */
|
|
1172
|
-
exports.
|
|
1222
|
+
exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$inboundSchema = z.nativeEnum(exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole);
|
|
1173
1223
|
/** @internal */
|
|
1174
|
-
exports.
|
|
1224
|
+
exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$outboundSchema = exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$inboundSchema;
|
|
1175
1225
|
/**
|
|
1176
1226
|
* @internal
|
|
1177
1227
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1178
1228
|
*/
|
|
1179
|
-
var
|
|
1180
|
-
(function (
|
|
1181
|
-
/** @deprecated use `
|
|
1182
|
-
|
|
1183
|
-
/** @deprecated use `
|
|
1184
|
-
|
|
1185
|
-
})(
|
|
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$ = {}));
|
|
1186
1236
|
/** @internal */
|
|
1187
|
-
exports.
|
|
1237
|
+
exports.DeploymentCreateMetricChoicesDeploymentsMetricsContent$inboundSchema = z.union([z.string(), z.array(z.string())]);
|
|
1188
1238
|
/** @internal */
|
|
1189
|
-
exports.
|
|
1239
|
+
exports.DeploymentCreateMetricChoicesDeploymentsMetricsContent$outboundSchema = z.union([z.string(), z.array(z.string())]);
|
|
1190
1240
|
/**
|
|
1191
1241
|
* @internal
|
|
1192
1242
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1193
1243
|
*/
|
|
1194
|
-
var
|
|
1195
|
-
(function (
|
|
1196
|
-
/** @deprecated use `
|
|
1197
|
-
|
|
1198
|
-
/** @deprecated use `
|
|
1199
|
-
|
|
1200
|
-
})(
|
|
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
|
+
}
|
|
1201
1258
|
/** @internal */
|
|
1202
|
-
exports.
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
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
|
+
});
|
|
1206
1267
|
});
|
|
1207
1268
|
/** @internal */
|
|
1208
|
-
exports.
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
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
|
+
});
|
|
1212
1277
|
});
|
|
1213
1278
|
/**
|
|
1214
1279
|
* @internal
|
|
1215
1280
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1216
1281
|
*/
|
|
1217
|
-
var
|
|
1218
|
-
(function (
|
|
1219
|
-
/** @deprecated use `
|
|
1220
|
-
|
|
1221
|
-
/** @deprecated use `
|
|
1222
|
-
|
|
1223
|
-
})(
|
|
1224
|
-
function
|
|
1225
|
-
return JSON.stringify(exports.
|
|
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));
|
|
1226
1291
|
}
|
|
1227
|
-
function
|
|
1228
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
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`);
|
|
1229
1294
|
}
|
|
1230
1295
|
/** @internal */
|
|
1231
|
-
exports.
|
|
1296
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema = z.nativeEnum(exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType);
|
|
1232
1297
|
/** @internal */
|
|
1233
|
-
exports.
|
|
1298
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema;
|
|
1234
1299
|
/**
|
|
1235
1300
|
* @internal
|
|
1236
1301
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1237
1302
|
*/
|
|
1238
|
-
var
|
|
1239
|
-
(function (
|
|
1240
|
-
/** @deprecated use `
|
|
1241
|
-
|
|
1242
|
-
/** @deprecated use `
|
|
1243
|
-
|
|
1244
|
-
})(
|
|
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$ = {}));
|
|
1245
1310
|
/** @internal */
|
|
1246
|
-
exports.
|
|
1311
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema = z.object({
|
|
1312
|
+
type: exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema,
|
|
1313
|
+
refusal: z.string(),
|
|
1314
|
+
});
|
|
1247
1315
|
/** @internal */
|
|
1248
|
-
exports.
|
|
1316
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema = z.object({
|
|
1317
|
+
type: exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$outboundSchema,
|
|
1318
|
+
refusal: z.string(),
|
|
1319
|
+
});
|
|
1249
1320
|
/**
|
|
1250
1321
|
* @internal
|
|
1251
1322
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1252
1323
|
*/
|
|
1253
|
-
var
|
|
1254
|
-
(function (
|
|
1255
|
-
/** @deprecated use `
|
|
1256
|
-
|
|
1257
|
-
/** @deprecated use `
|
|
1258
|
-
|
|
1259
|
-
})(
|
|
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));
|
|
1334
|
+
}
|
|
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`);
|
|
1338
|
+
}
|
|
1260
1339
|
/** @internal */
|
|
1261
|
-
exports.
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1340
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$inboundSchema = z.nativeEnum(exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type);
|
|
1341
|
+
/** @internal */
|
|
1342
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$outboundSchema = exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$inboundSchema;
|
|
1343
|
+
/**
|
|
1344
|
+
* @internal
|
|
1345
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1346
|
+
*/
|
|
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$ = {}));
|
|
1354
|
+
/** @internal */
|
|
1355
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsTextContentPart$inboundSchema = z.object({
|
|
1356
|
+
type: exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$inboundSchema,
|
|
1357
|
+
text: z.string(),
|
|
1265
1358
|
});
|
|
1266
1359
|
/** @internal */
|
|
1267
|
-
exports.
|
|
1268
|
-
type: exports.
|
|
1269
|
-
|
|
1270
|
-
content: z.nullable(z.string()),
|
|
1360
|
+
exports.DeploymentCreateMetric2DeploymentsMetricsTextContentPart$outboundSchema = z.object({
|
|
1361
|
+
type: exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$outboundSchema,
|
|
1362
|
+
text: z.string(),
|
|
1271
1363
|
});
|
|
1272
1364
|
/**
|
|
1273
1365
|
* @internal
|
|
1274
1366
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1275
1367
|
*/
|
|
1276
|
-
var
|
|
1277
|
-
(function (
|
|
1278
|
-
/** @deprecated use `
|
|
1279
|
-
|
|
1280
|
-
/** @deprecated use `
|
|
1281
|
-
|
|
1282
|
-
})(
|
|
1283
|
-
function
|
|
1284
|
-
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));
|
|
1285
1441
|
}
|
|
1286
|
-
function
|
|
1287
|
-
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`);
|
|
1288
1444
|
}
|
|
1289
1445
|
/** @internal */
|
|
1290
|
-
exports.
|
|
1291
|
-
.nativeEnum(exports.MessageType);
|
|
1446
|
+
exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$inboundSchema = z.nativeEnum(exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole);
|
|
1292
1447
|
/** @internal */
|
|
1293
|
-
exports.
|
|
1448
|
+
exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$outboundSchema = exports.DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$inboundSchema;
|
|
1294
1449
|
/**
|
|
1295
1450
|
* @internal
|
|
1296
1451
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1297
1452
|
*/
|
|
1298
|
-
var
|
|
1299
|
-
(function (
|
|
1300
|
-
/** @deprecated use `
|
|
1301
|
-
|
|
1302
|
-
/** @deprecated use `
|
|
1303
|
-
|
|
1304
|
-
})(
|
|
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$ = {}));
|
|
1305
1460
|
/** @internal */
|
|
1306
|
-
exports.
|
|
1307
|
-
.
|
|
1461
|
+
exports.ChoicesAudio$inboundSchema = z.object({
|
|
1462
|
+
id: z.string(),
|
|
1463
|
+
});
|
|
1308
1464
|
/** @internal */
|
|
1309
|
-
exports.
|
|
1465
|
+
exports.ChoicesAudio$outboundSchema = z.object({
|
|
1466
|
+
id: z.string(),
|
|
1467
|
+
});
|
|
1310
1468
|
/**
|
|
1311
1469
|
* @internal
|
|
1312
1470
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1313
1471
|
*/
|
|
1314
|
-
var
|
|
1315
|
-
(function (
|
|
1316
|
-
/** @deprecated use `
|
|
1317
|
-
|
|
1318
|
-
/** @deprecated use `
|
|
1319
|
-
|
|
1320
|
-
})(
|
|
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
|
+
}
|
|
1321
1485
|
/** @internal */
|
|
1322
|
-
exports.
|
|
1486
|
+
exports.ChoicesType$inboundSchema = z
|
|
1487
|
+
.nativeEnum(exports.ChoicesType);
|
|
1323
1488
|
/** @internal */
|
|
1324
|
-
exports.
|
|
1489
|
+
exports.ChoicesType$outboundSchema = exports.ChoicesType$inboundSchema;
|
|
1325
1490
|
/**
|
|
1326
1491
|
* @internal
|
|
1327
1492
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1328
1493
|
*/
|
|
1329
|
-
var
|
|
1330
|
-
(function (
|
|
1331
|
-
/** @deprecated use `
|
|
1332
|
-
|
|
1333
|
-
/** @deprecated use `
|
|
1334
|
-
|
|
1335
|
-
})(
|
|
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$ = {}));
|
|
1336
1501
|
/** @internal */
|
|
1337
|
-
exports.
|
|
1338
|
-
name: z.string(),
|
|
1339
|
-
arguments: z.string(),
|
|
1502
|
+
exports.ChoicesFunction$inboundSchema = z.object({
|
|
1503
|
+
name: z.string().optional(),
|
|
1504
|
+
arguments: z.string().optional(),
|
|
1340
1505
|
});
|
|
1341
1506
|
/** @internal */
|
|
1342
|
-
exports.
|
|
1343
|
-
name: z.string(),
|
|
1344
|
-
arguments: z.string(),
|
|
1507
|
+
exports.ChoicesFunction$outboundSchema = z.object({
|
|
1508
|
+
name: z.string().optional(),
|
|
1509
|
+
arguments: z.string().optional(),
|
|
1345
1510
|
});
|
|
1346
1511
|
/**
|
|
1347
1512
|
* @internal
|
|
1348
1513
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1349
1514
|
*/
|
|
1350
|
-
var
|
|
1351
|
-
(function (
|
|
1352
|
-
/** @deprecated use `
|
|
1353
|
-
|
|
1354
|
-
/** @deprecated use `
|
|
1355
|
-
|
|
1356
|
-
})(
|
|
1357
|
-
function
|
|
1358
|
-
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));
|
|
1359
1524
|
}
|
|
1360
|
-
function
|
|
1361
|
-
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`);
|
|
1362
1527
|
}
|
|
1363
1528
|
/** @internal */
|
|
1364
|
-
exports.
|
|
1365
|
-
id: z.string()
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
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),
|
|
1369
1533
|
});
|
|
1370
1534
|
/** @internal */
|
|
1371
|
-
exports.
|
|
1372
|
-
id: z.string()
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
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),
|
|
1376
1539
|
});
|
|
1377
1540
|
/**
|
|
1378
1541
|
* @internal
|
|
1379
1542
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1380
1543
|
*/
|
|
1381
|
-
var
|
|
1382
|
-
(function (
|
|
1383
|
-
/** @deprecated use `
|
|
1384
|
-
|
|
1385
|
-
/** @deprecated use `
|
|
1386
|
-
|
|
1387
|
-
})(
|
|
1388
|
-
function
|
|
1389
|
-
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));
|
|
1390
1553
|
}
|
|
1391
|
-
function
|
|
1392
|
-
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`);
|
|
1393
1556
|
}
|
|
1394
1557
|
/** @internal */
|
|
1395
|
-
exports.
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
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(),
|
|
1400
1571
|
}).transform((v) => {
|
|
1401
1572
|
return (0, primitives_js_1.remap)(v, {
|
|
1402
1573
|
"tool_calls": "toolCalls",
|
|
1403
1574
|
});
|
|
1404
1575
|
});
|
|
1405
1576
|
/** @internal */
|
|
1406
|
-
exports.
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
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(),
|
|
1411
1590
|
}).transform((v) => {
|
|
1412
1591
|
return (0, primitives_js_1.remap)(v, {
|
|
1413
1592
|
toolCalls: "tool_calls",
|
|
@@ -1417,76 +1596,478 @@ exports.Message1$outboundSchema = z.object({
|
|
|
1417
1596
|
* @internal
|
|
1418
1597
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1419
1598
|
*/
|
|
1420
|
-
var
|
|
1421
|
-
(function (
|
|
1422
|
-
/** @deprecated use `
|
|
1423
|
-
|
|
1424
|
-
/** @deprecated use `
|
|
1425
|
-
|
|
1426
|
-
})(
|
|
1427
|
-
function
|
|
1428
|
-
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));
|
|
1429
1608
|
}
|
|
1430
|
-
function
|
|
1431
|
-
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`);
|
|
1432
1611
|
}
|
|
1433
1612
|
/** @internal */
|
|
1434
|
-
exports.
|
|
1435
|
-
z.lazy(() => exports.Message2$inboundSchema),
|
|
1436
|
-
z.lazy(() => exports.Message3$inboundSchema),
|
|
1437
|
-
z.lazy(() => exports.Message1$inboundSchema),
|
|
1438
|
-
]);
|
|
1613
|
+
exports.DeploymentCreateMetricChoicesDeploymentsMetricsRole$inboundSchema = z.nativeEnum(exports.DeploymentCreateMetricChoicesDeploymentsMetricsRole);
|
|
1439
1614
|
/** @internal */
|
|
1440
|
-
exports.
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
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;
|
|
1445
1631
|
/**
|
|
1446
1632
|
* @internal
|
|
1447
1633
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1448
1634
|
*/
|
|
1449
|
-
var
|
|
1450
|
-
(function (
|
|
1451
|
-
/** @deprecated use `
|
|
1452
|
-
|
|
1453
|
-
/** @deprecated use `
|
|
1454
|
-
|
|
1455
|
-
})(
|
|
1456
|
-
|
|
1457
|
-
|
|
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
|
+
});
|
|
1668
|
+
/**
|
|
1669
|
+
* @internal
|
|
1670
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1671
|
+
*/
|
|
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));
|
|
1458
1681
|
}
|
|
1459
|
-
function
|
|
1460
|
-
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`);
|
|
1461
1684
|
}
|
|
1462
1685
|
/** @internal */
|
|
1463
|
-
exports.
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
z.lazy(() => exports.Message2$inboundSchema),
|
|
1467
|
-
z.lazy(() => exports.Message3$inboundSchema),
|
|
1468
|
-
z.lazy(() => exports.Message1$inboundSchema),
|
|
1469
|
-
]),
|
|
1470
|
-
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),
|
|
1471
1689
|
}).transform((v) => {
|
|
1472
1690
|
return (0, primitives_js_1.remap)(v, {
|
|
1473
|
-
"
|
|
1691
|
+
"input_audio": "inputAudio",
|
|
1474
1692
|
});
|
|
1475
1693
|
});
|
|
1476
1694
|
/** @internal */
|
|
1477
|
-
exports.
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
z.lazy(() => exports.Message2$outboundSchema),
|
|
1481
|
-
z.lazy(() => exports.Message3$outboundSchema),
|
|
1482
|
-
z.lazy(() => exports.Message1$outboundSchema),
|
|
1483
|
-
]),
|
|
1484
|
-
finishReason: z.nullable(z.string()).optional(),
|
|
1695
|
+
exports.DeploymentCreateMetric2DeploymentsMetrics3$outboundSchema = z.object({
|
|
1696
|
+
type: exports.DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$outboundSchema,
|
|
1697
|
+
inputAudio: z.lazy(() => exports.DeploymentCreateMetric2DeploymentsMetricsInputAudio$outboundSchema),
|
|
1485
1698
|
}).transform((v) => {
|
|
1486
1699
|
return (0, primitives_js_1.remap)(v, {
|
|
1487
|
-
|
|
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),
|
|
1784
|
+
}).transform((v) => {
|
|
1785
|
+
return (0, primitives_js_1.remap)(v, {
|
|
1786
|
+
"image_url": "imageUrl",
|
|
1488
1787
|
});
|
|
1489
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",
|
|
1796
|
+
});
|
|
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
|
+
]);
|
|
1490
2071
|
/**
|
|
1491
2072
|
* @internal
|
|
1492
2073
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
@@ -1541,7 +2122,13 @@ exports.DeploymentCreateMetricRequestBody$inboundSchema = z.object({
|
|
|
1541
2122
|
z.lazy(() => exports.DeploymentCreateMetricMessagesToolMessage$inboundSchema),
|
|
1542
2123
|
z.lazy(() => exports.DeploymentCreateMetricMessagesAssistantMessage$inboundSchema),
|
|
1543
2124
|
])).optional(),
|
|
1544
|
-
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(),
|
|
1545
2132
|
feedback: z.lazy(() => exports.Feedback$inboundSchema).optional(),
|
|
1546
2133
|
});
|
|
1547
2134
|
/** @internal */
|
|
@@ -1556,7 +2143,13 @@ exports.DeploymentCreateMetricRequestBody$outboundSchema = z.object({
|
|
|
1556
2143
|
z.lazy(() => exports.DeploymentCreateMetricMessagesToolMessage$outboundSchema),
|
|
1557
2144
|
z.lazy(() => exports.DeploymentCreateMetricMessagesAssistantMessage$outboundSchema),
|
|
1558
2145
|
])).optional(),
|
|
1559
|
-
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(),
|
|
1560
2153
|
feedback: z.lazy(() => exports.Feedback$outboundSchema).optional(),
|
|
1561
2154
|
});
|
|
1562
2155
|
/**
|