@orq-ai/node 4.11.0-rc.27 → 4.11.0-rc.29
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/funcs/agentsInvoke.d.ts +1 -1
- package/funcs/agentsInvoke.d.ts.map +1 -1
- package/funcs/agentsInvoke.js.map +1 -1
- package/funcs/agentsResponsesCreate.d.ts +2 -1
- package/funcs/agentsResponsesCreate.d.ts.map +1 -1
- package/funcs/agentsResponsesCreate.js +7 -5
- package/funcs/agentsResponsesCreate.js.map +1 -1
- package/funcs/agentsStream.d.ts +1 -1
- package/funcs/agentsStream.d.ts.map +1 -1
- package/funcs/agentsStream.js.map +1 -1
- package/funcs/annotationsCreate.d.ts +1 -1
- package/funcs/annotationsCreate.js +1 -1
- package/funcs/annotationsDelete.d.ts +1 -1
- package/funcs/annotationsDelete.js +1 -1
- package/funcs/budgetsList.js +1 -0
- package/funcs/budgetsList.js.map +1 -1
- package/funcs/deploymentsInvoke.d.ts +2 -1
- package/funcs/deploymentsInvoke.d.ts.map +1 -1
- package/funcs/deploymentsInvoke.js +2 -1
- package/funcs/deploymentsInvoke.js.map +1 -1
- package/funcs/promptsCreate.d.ts +1 -1
- package/funcs/promptsCreate.d.ts.map +1 -1
- package/funcs/promptsCreate.js +2 -1
- package/funcs/promptsCreate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/agentresponserequest.d.ts +336 -0
- package/models/components/agentresponserequest.d.ts.map +1 -0
- package/models/components/agentresponserequest.js +210 -0
- package/models/components/agentresponserequest.js.map +1 -0
- package/models/components/agentthoughtstreamingevent.d.ts +12 -12
- package/models/components/agentthoughtstreamingevent.d.ts.map +1 -1
- package/models/components/agentthoughtstreamingevent.js +17 -17
- package/models/components/agentthoughtstreamingevent.js.map +1 -1
- package/models/components/azurefoundrydeployment.d.ts +3 -0
- package/models/components/azurefoundrydeployment.d.ts.map +1 -1
- package/models/components/azurefoundrydeployment.js +4 -0
- package/models/components/azurefoundrydeployment.js.map +1 -1
- package/models/components/budgetsortfield.d.ts +12 -0
- package/models/components/budgetsortfield.d.ts.map +1 -0
- package/models/components/budgetsortfield.js +49 -0
- package/models/components/budgetsortfield.js.map +1 -0
- package/models/components/index.d.ts +3 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +3 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invokedeploymentrequest.d.ts +1573 -0
- package/models/components/invokedeploymentrequest.d.ts.map +1 -0
- package/models/components/invokedeploymentrequest.js +1137 -0
- package/models/components/invokedeploymentrequest.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/components/toolexecutionstartedstreamingevent.d.ts +4 -4
- package/models/components/toolexecutionstartedstreamingevent.d.ts.map +1 -1
- package/models/components/toolexecutionstartedstreamingevent.js +7 -7
- package/models/components/toolexecutionstartedstreamingevent.js.map +1 -1
- package/models/operations/budgetlist.d.ts +5 -0
- package/models/operations/budgetlist.d.ts.map +1 -1
- package/models/operations/budgetlist.js +2 -0
- package/models/operations/budgetlist.js.map +1 -1
- package/models/operations/createagentresponserequest.d.ts +2 -329
- package/models/operations/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +3 -166
- package/models/operations/createagentresponserequest.js.map +1 -1
- package/models/operations/createannotation.d.ts +48 -10
- package/models/operations/createannotation.d.ts.map +1 -1
- package/models/operations/createannotation.js +37 -5
- package/models/operations/createannotation.js.map +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.d.ts +210 -12
- package/models/operations/createdatasetitem.d.ts.map +1 -1
- package/models/operations/createdatasetitem.js +136 -9
- package/models/operations/createdatasetitem.js.map +1 -1
- package/models/operations/createdatasource.d.ts +3 -0
- package/models/operations/createdatasource.d.ts.map +1 -1
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createdatasource.js.map +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createprompt.d.ts +7 -4
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +5 -5
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/deleteannotation.d.ts +19 -2
- package/models/operations/deleteannotation.d.ts.map +1 -1
- package/models/operations/deleteannotation.js +20 -2
- package/models/operations/deleteannotation.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +440 -440
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +484 -479
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +0 -1560
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +1 -1126
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +56 -56
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +73 -72
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/invokeagent.d.ts +51 -48
- package/models/operations/invokeagent.d.ts.map +1 -1
- package/models/operations/invokeagent.js +43 -46
- package/models/operations/invokeagent.js.map +1 -1
- package/models/operations/listdatasetdatapoints.d.ts +210 -12
- package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
- package/models/operations/listdatasetdatapoints.js +138 -9
- package/models/operations/listdatasetdatapoints.js.map +1 -1
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.d.ts +33 -12
- package/models/operations/postv2feedbackevaluation.d.ts.map +1 -1
- package/models/operations/postv2feedbackevaluation.js +9 -6
- package/models/operations/postv2feedbackevaluation.js.map +1 -1
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievedatapoint.d.ts +210 -12
- package/models/operations/retrievedatapoint.d.ts.map +1 -1
- package/models/operations/retrievedatapoint.js +140 -8
- package/models/operations/retrievedatapoint.js.map +1 -1
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamagent.d.ts +9 -6
- package/models/operations/streamagent.d.ts.map +1 -1
- package/models/operations/streamagent.js +6 -6
- package/models/operations/streamagent.js.map +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.d.ts +210 -12
- package/models/operations/updatedatapoint.d.ts.map +1 -1
- package/models/operations/updatedatapoint.js +138 -9
- package/models/operations/updatedatapoint.js.map +1 -1
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateprompt.d.ts +9 -6
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +7 -6
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +1 -1
- package/sdk/agents.d.ts +2 -2
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js.map +1 -1
- package/sdk/annotations.d.ts +2 -2
- package/sdk/annotations.js +2 -2
- package/sdk/deployments.d.ts +2 -1
- package/sdk/deployments.d.ts.map +1 -1
- package/sdk/deployments.js.map +1 -1
- package/sdk/feedback.d.ts +1 -4
- package/sdk/feedback.d.ts.map +1 -1
- package/sdk/feedback.js +1 -4
- package/sdk/feedback.js.map +1 -1
- package/sdk/orqresponses.d.ts +1 -1
- package/sdk/orqresponses.d.ts.map +1 -1
- package/sdk/orqresponses.js +2 -2
- package/sdk/orqresponses.js.map +1 -1
- package/sdk/prompts.d.ts +1 -1
- package/sdk/prompts.d.ts.map +1 -1
- package/sdk/prompts.js.map +1 -1
- package/src/funcs/agentsInvoke.ts +2 -2
- package/src/funcs/agentsResponsesCreate.ts +8 -5
- package/src/funcs/agentsStream.ts +2 -2
- package/src/funcs/annotationsCreate.ts +1 -1
- package/src/funcs/annotationsDelete.ts +1 -1
- package/src/funcs/budgetsList.ts +1 -0
- package/src/funcs/deploymentsInvoke.ts +4 -4
- package/src/funcs/promptsCreate.ts +4 -3
- package/src/lib/config.ts +2 -2
- package/src/models/components/agentresponserequest.ts +565 -0
- package/src/models/components/agentthoughtstreamingevent.ts +55 -43
- package/src/models/components/azurefoundrydeployment.ts +7 -0
- package/src/models/components/budgetsortfield.ts +19 -0
- package/src/models/components/index.ts +3 -0
- package/src/models/components/invokedeploymentrequest.ts +3457 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/toolexecutionstartedstreamingevent.ts +24 -14
- package/src/models/operations/budgetlist.ts +7 -0
- package/src/models/operations/createagentresponserequest.ts +4 -550
- package/src/models/operations/createannotation.ts +110 -16
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +335 -19
- package/src/models/operations/createdatasource.ts +4 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createprompt.ts +13 -8
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/deleteannotation.ts +46 -3
- package/src/models/operations/deploymentgetconfig.ts +1156 -1606
- package/src/models/operations/deploymentinvoke.ts +222 -3675
- package/src/models/operations/deploymentstream.ts +244 -285
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/invokeagent.ts +90 -116
- package/src/models/operations/listdatasetdatapoints.ts +378 -19
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +42 -18
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +363 -19
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamagent.ts +16 -11
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +366 -19
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateprompt.ts +17 -11
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/agents.ts +2 -2
- package/src/sdk/annotations.ts +2 -2
- package/src/sdk/deployments.ts +2 -1
- package/src/sdk/feedback.ts +1 -4
- package/src/sdk/orqresponses.ts +2 -2
- package/src/sdk/prompts.ts +1 -1
|
@@ -10,27 +10,27 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
10
10
|
import * as components from "../components/index.js";
|
|
11
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
12
|
|
|
13
|
-
export type
|
|
13
|
+
export type DeploymentGetConfigContentDeployments2 =
|
|
14
14
|
components.TextContentPartSchema;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* The contents of the tool message.
|
|
18
18
|
*/
|
|
19
|
-
export type
|
|
19
|
+
export type DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent =
|
|
20
20
|
| string
|
|
21
21
|
| Array<components.TextContentPartSchema>;
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
25
25
|
*/
|
|
26
|
-
export const
|
|
26
|
+
export const DeploymentGetConfigPrefixMessagesType = {
|
|
27
27
|
Ephemeral: "ephemeral",
|
|
28
28
|
} as const;
|
|
29
29
|
/**
|
|
30
30
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
31
31
|
*/
|
|
32
|
-
export type
|
|
33
|
-
typeof
|
|
32
|
+
export type DeploymentGetConfigPrefixMessagesType = ClosedEnum<
|
|
33
|
+
typeof DeploymentGetConfigPrefixMessagesType
|
|
34
34
|
>;
|
|
35
35
|
|
|
36
36
|
/**
|
|
@@ -43,7 +43,7 @@ export type DeploymentGetConfigPrefixMessagesDeploymentsType = ClosedEnum<
|
|
|
43
43
|
*
|
|
44
44
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
45
45
|
*/
|
|
46
|
-
export const
|
|
46
|
+
export const PrefixMessagesTtl = {
|
|
47
47
|
Fivem: "5m",
|
|
48
48
|
Oneh: "1h",
|
|
49
49
|
} as const;
|
|
@@ -57,15 +57,13 @@ export const DeploymentGetConfigPrefixMessagesTtl = {
|
|
|
57
57
|
*
|
|
58
58
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
59
59
|
*/
|
|
60
|
-
export type
|
|
61
|
-
typeof DeploymentGetConfigPrefixMessagesTtl
|
|
62
|
-
>;
|
|
60
|
+
export type PrefixMessagesTtl = ClosedEnum<typeof PrefixMessagesTtl>;
|
|
63
61
|
|
|
64
|
-
export type
|
|
62
|
+
export type PrefixMessagesCacheControl = {
|
|
65
63
|
/**
|
|
66
64
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
67
65
|
*/
|
|
68
|
-
type:
|
|
66
|
+
type: DeploymentGetConfigPrefixMessagesType;
|
|
69
67
|
/**
|
|
70
68
|
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
71
69
|
*
|
|
@@ -76,10 +74,10 @@ export type DeploymentGetConfigPrefixMessagesCacheControl = {
|
|
|
76
74
|
*
|
|
77
75
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
78
76
|
*/
|
|
79
|
-
ttl?:
|
|
77
|
+
ttl?: PrefixMessagesTtl | undefined;
|
|
80
78
|
};
|
|
81
79
|
|
|
82
|
-
export type
|
|
80
|
+
export type ToolMessage = {
|
|
83
81
|
/**
|
|
84
82
|
* The role of the messages author, in this case tool.
|
|
85
83
|
*/
|
|
@@ -92,10 +90,10 @@ export type PrefixMessagesToolMessage = {
|
|
|
92
90
|
* Tool call that this message is responding to.
|
|
93
91
|
*/
|
|
94
92
|
toolCallId: string | null;
|
|
95
|
-
cacheControl?:
|
|
93
|
+
cacheControl?: PrefixMessagesCacheControl | undefined;
|
|
96
94
|
};
|
|
97
95
|
|
|
98
|
-
export type
|
|
96
|
+
export type DeploymentGetConfigContent2 =
|
|
99
97
|
| (components.TextContentPartSchema & { type: "text" })
|
|
100
98
|
| components.RefusalPartSchema
|
|
101
99
|
| components.ReasoningPartSchema
|
|
@@ -104,7 +102,7 @@ export type DeploymentGetConfigContentDeployments2 =
|
|
|
104
102
|
/**
|
|
105
103
|
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
106
104
|
*/
|
|
107
|
-
export type
|
|
105
|
+
export type DeploymentGetConfigPrefixMessagesDeploymentsRequestContent =
|
|
108
106
|
| string
|
|
109
107
|
| Array<
|
|
110
108
|
| (components.TextContentPartSchema & { type: "text" })
|
|
@@ -116,7 +114,7 @@ export type DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyConten
|
|
|
116
114
|
/**
|
|
117
115
|
* Data about a previous audio response from the model.
|
|
118
116
|
*/
|
|
119
|
-
export type
|
|
117
|
+
export type Audio = {
|
|
120
118
|
/**
|
|
121
119
|
* Unique identifier for a previous audio response from the model.
|
|
122
120
|
*/
|
|
@@ -126,17 +124,15 @@ export type PrefixMessagesAudio = {
|
|
|
126
124
|
/**
|
|
127
125
|
* The type of the tool. Currently, only `function` is supported.
|
|
128
126
|
*/
|
|
129
|
-
export const
|
|
127
|
+
export const PrefixMessagesType = {
|
|
130
128
|
Function: "function",
|
|
131
129
|
} as const;
|
|
132
130
|
/**
|
|
133
131
|
* The type of the tool. Currently, only `function` is supported.
|
|
134
132
|
*/
|
|
135
|
-
export type
|
|
136
|
-
typeof DeploymentGetConfigPrefixMessagesType
|
|
137
|
-
>;
|
|
133
|
+
export type PrefixMessagesType = ClosedEnum<typeof PrefixMessagesType>;
|
|
138
134
|
|
|
139
|
-
export type
|
|
135
|
+
export type PrefixMessagesFunction = {
|
|
140
136
|
/**
|
|
141
137
|
* The name of the function to call.
|
|
142
138
|
*/
|
|
@@ -147,7 +143,7 @@ export type DeploymentGetConfigPrefixMessagesFunction = {
|
|
|
147
143
|
arguments?: string | undefined;
|
|
148
144
|
};
|
|
149
145
|
|
|
150
|
-
export type
|
|
146
|
+
export type PrefixMessagesToolCalls = {
|
|
151
147
|
/**
|
|
152
148
|
* The ID of the tool call.
|
|
153
149
|
*/
|
|
@@ -155,15 +151,15 @@ export type DeploymentGetConfigPrefixMessagesToolCalls = {
|
|
|
155
151
|
/**
|
|
156
152
|
* The type of the tool. Currently, only `function` is supported.
|
|
157
153
|
*/
|
|
158
|
-
type:
|
|
159
|
-
function:
|
|
154
|
+
type: PrefixMessagesType;
|
|
155
|
+
function: PrefixMessagesFunction;
|
|
160
156
|
/**
|
|
161
157
|
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
|
|
162
158
|
*/
|
|
163
159
|
thoughtSignature?: string | undefined;
|
|
164
160
|
};
|
|
165
161
|
|
|
166
|
-
export type
|
|
162
|
+
export type AssistantMessage = {
|
|
167
163
|
/**
|
|
168
164
|
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
169
165
|
*/
|
|
@@ -192,11 +188,11 @@ export type PrefixMessagesAssistantMessage = {
|
|
|
192
188
|
/**
|
|
193
189
|
* Data about a previous audio response from the model.
|
|
194
190
|
*/
|
|
195
|
-
audio?:
|
|
191
|
+
audio?: Audio | null | undefined;
|
|
196
192
|
/**
|
|
197
193
|
* The tool calls generated by the model, such as function calls.
|
|
198
194
|
*/
|
|
199
|
-
toolCalls?: Array<
|
|
195
|
+
toolCalls?: Array<PrefixMessagesToolCalls> | undefined;
|
|
200
196
|
};
|
|
201
197
|
|
|
202
198
|
/**
|
|
@@ -222,7 +218,7 @@ export type DeploymentGetConfig2DeploymentsType = ClosedEnum<
|
|
|
222
218
|
*
|
|
223
219
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
224
220
|
*/
|
|
225
|
-
export const
|
|
221
|
+
export const Ttl = {
|
|
226
222
|
Fivem: "5m",
|
|
227
223
|
Oneh: "1h",
|
|
228
224
|
} as const;
|
|
@@ -236,11 +232,9 @@ export const DeploymentGetConfig2Ttl = {
|
|
|
236
232
|
*
|
|
237
233
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
238
234
|
*/
|
|
239
|
-
export type
|
|
240
|
-
typeof DeploymentGetConfig2Ttl
|
|
241
|
-
>;
|
|
235
|
+
export type Ttl = ClosedEnum<typeof Ttl>;
|
|
242
236
|
|
|
243
|
-
export type
|
|
237
|
+
export type CacheControl = {
|
|
244
238
|
/**
|
|
245
239
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
246
240
|
*/
|
|
@@ -255,40 +249,40 @@ export type DeploymentGetConfig2CacheControl = {
|
|
|
255
249
|
*
|
|
256
250
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
257
251
|
*/
|
|
258
|
-
ttl?:
|
|
252
|
+
ttl?: Ttl | undefined;
|
|
259
253
|
};
|
|
260
254
|
|
|
261
|
-
export type
|
|
255
|
+
export type Four = {
|
|
262
256
|
/**
|
|
263
257
|
* The type of the content part. Always `file`.
|
|
264
258
|
*/
|
|
265
259
|
type: "file";
|
|
266
|
-
cacheControl?:
|
|
260
|
+
cacheControl?: CacheControl | undefined;
|
|
267
261
|
/**
|
|
268
262
|
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
269
263
|
*/
|
|
270
264
|
file: components.FileContentPartSchema;
|
|
271
265
|
};
|
|
272
266
|
|
|
273
|
-
export type
|
|
267
|
+
export type Content2 =
|
|
274
268
|
| (components.TextContentPartSchema & { type: "text" })
|
|
275
269
|
| components.ImageContentPartSchema
|
|
276
270
|
| components.AudioContentPartSchema
|
|
277
|
-
|
|
|
271
|
+
| Four;
|
|
278
272
|
|
|
279
273
|
/**
|
|
280
274
|
* The contents of the user message.
|
|
281
275
|
*/
|
|
282
|
-
export type
|
|
276
|
+
export type DeploymentGetConfigPrefixMessagesDeploymentsContent =
|
|
283
277
|
| string
|
|
284
278
|
| Array<
|
|
285
279
|
| (components.TextContentPartSchema & { type: "text" })
|
|
286
280
|
| components.ImageContentPartSchema
|
|
287
281
|
| components.AudioContentPartSchema
|
|
288
|
-
|
|
|
282
|
+
| Four
|
|
289
283
|
>;
|
|
290
284
|
|
|
291
|
-
export type
|
|
285
|
+
export type UserMessage = {
|
|
292
286
|
/**
|
|
293
287
|
* The role of the messages author, in this case `user`.
|
|
294
288
|
*/
|
|
@@ -306,18 +300,18 @@ export type PrefixMessagesUserMessage = {
|
|
|
306
300
|
| (components.TextContentPartSchema & { type: "text" })
|
|
307
301
|
| components.ImageContentPartSchema
|
|
308
302
|
| components.AudioContentPartSchema
|
|
309
|
-
|
|
|
303
|
+
| Four
|
|
310
304
|
>;
|
|
311
305
|
};
|
|
312
306
|
|
|
313
307
|
/**
|
|
314
308
|
* The contents of the developer message.
|
|
315
309
|
*/
|
|
316
|
-
export type
|
|
310
|
+
export type DeploymentGetConfigPrefixMessagesContent =
|
|
317
311
|
| string
|
|
318
312
|
| Array<components.TextContentPartSchema>;
|
|
319
313
|
|
|
320
|
-
export type
|
|
314
|
+
export type DeveloperMessage = {
|
|
321
315
|
/**
|
|
322
316
|
* The role of the messages author, in this case `developer`.
|
|
323
317
|
*/
|
|
@@ -335,14 +329,14 @@ export type PrefixMessagesDeveloperMessage = {
|
|
|
335
329
|
/**
|
|
336
330
|
* The contents of the system message.
|
|
337
331
|
*/
|
|
338
|
-
export type
|
|
332
|
+
export type PrefixMessagesContent =
|
|
339
333
|
| string
|
|
340
334
|
| Array<components.TextContentPartSchema>;
|
|
341
335
|
|
|
342
336
|
/**
|
|
343
337
|
* Developer-provided instructions that the model should follow, regardless of messages sent by the user.
|
|
344
338
|
*/
|
|
345
|
-
export type
|
|
339
|
+
export type SystemMessage = {
|
|
346
340
|
/**
|
|
347
341
|
* The role of the messages author, in this case `system`.
|
|
348
342
|
*/
|
|
@@ -357,34 +351,34 @@ export type PrefixMessagesSystemMessage = {
|
|
|
357
351
|
name?: string | undefined;
|
|
358
352
|
};
|
|
359
353
|
|
|
360
|
-
export type
|
|
361
|
-
|
|
|
362
|
-
|
|
|
363
|
-
|
|
|
364
|
-
|
|
|
365
|
-
|
|
|
354
|
+
export type PrefixMessages =
|
|
355
|
+
| SystemMessage
|
|
356
|
+
| DeveloperMessage
|
|
357
|
+
| UserMessage
|
|
358
|
+
| AssistantMessage
|
|
359
|
+
| ToolMessage;
|
|
366
360
|
|
|
367
|
-
export type
|
|
361
|
+
export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2 =
|
|
368
362
|
components.TextContentPartSchema;
|
|
369
363
|
|
|
370
364
|
/**
|
|
371
365
|
* The contents of the tool message.
|
|
372
366
|
*/
|
|
373
|
-
export type
|
|
367
|
+
export type DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent =
|
|
374
368
|
| string
|
|
375
369
|
| Array<components.TextContentPartSchema>;
|
|
376
370
|
|
|
377
371
|
/**
|
|
378
372
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
379
373
|
*/
|
|
380
|
-
export const
|
|
374
|
+
export const DeploymentGetConfigMessagesType = {
|
|
381
375
|
Ephemeral: "ephemeral",
|
|
382
376
|
} as const;
|
|
383
377
|
/**
|
|
384
378
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
385
379
|
*/
|
|
386
|
-
export type
|
|
387
|
-
typeof
|
|
380
|
+
export type DeploymentGetConfigMessagesType = ClosedEnum<
|
|
381
|
+
typeof DeploymentGetConfigMessagesType
|
|
388
382
|
>;
|
|
389
383
|
|
|
390
384
|
/**
|
|
@@ -397,7 +391,7 @@ export type DeploymentGetConfigMessagesDeploymentsType = ClosedEnum<
|
|
|
397
391
|
*
|
|
398
392
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
399
393
|
*/
|
|
400
|
-
export const
|
|
394
|
+
export const MessagesTtl = {
|
|
401
395
|
Fivem: "5m",
|
|
402
396
|
Oneh: "1h",
|
|
403
397
|
} as const;
|
|
@@ -411,15 +405,13 @@ export const DeploymentGetConfigMessagesTtl = {
|
|
|
411
405
|
*
|
|
412
406
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
413
407
|
*/
|
|
414
|
-
export type
|
|
415
|
-
typeof DeploymentGetConfigMessagesTtl
|
|
416
|
-
>;
|
|
408
|
+
export type MessagesTtl = ClosedEnum<typeof MessagesTtl>;
|
|
417
409
|
|
|
418
|
-
export type
|
|
410
|
+
export type MessagesCacheControl = {
|
|
419
411
|
/**
|
|
420
412
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
421
413
|
*/
|
|
422
|
-
type:
|
|
414
|
+
type: DeploymentGetConfigMessagesType;
|
|
423
415
|
/**
|
|
424
416
|
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
425
417
|
*
|
|
@@ -430,10 +422,10 @@ export type DeploymentGetConfigMessagesCacheControl = {
|
|
|
430
422
|
*
|
|
431
423
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
432
424
|
*/
|
|
433
|
-
ttl?:
|
|
425
|
+
ttl?: MessagesTtl | undefined;
|
|
434
426
|
};
|
|
435
427
|
|
|
436
|
-
export type
|
|
428
|
+
export type MessagesToolMessage = {
|
|
437
429
|
/**
|
|
438
430
|
* The role of the messages author, in this case tool.
|
|
439
431
|
*/
|
|
@@ -446,10 +438,10 @@ export type DeploymentGetConfigMessagesToolMessage = {
|
|
|
446
438
|
* Tool call that this message is responding to.
|
|
447
439
|
*/
|
|
448
440
|
toolCallId: string | null;
|
|
449
|
-
cacheControl?:
|
|
441
|
+
cacheControl?: MessagesCacheControl | undefined;
|
|
450
442
|
};
|
|
451
443
|
|
|
452
|
-
export type
|
|
444
|
+
export type DeploymentGetConfigContentDeploymentsRequestRequestBody2 =
|
|
453
445
|
| (components.TextContentPartSchema & { type: "text" })
|
|
454
446
|
| components.RefusalPartSchema
|
|
455
447
|
| components.ReasoningPartSchema
|
|
@@ -458,7 +450,7 @@ export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2 =
|
|
|
458
450
|
/**
|
|
459
451
|
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
460
452
|
*/
|
|
461
|
-
export type
|
|
453
|
+
export type DeploymentGetConfigMessagesDeploymentsRequestContent =
|
|
462
454
|
| string
|
|
463
455
|
| Array<
|
|
464
456
|
| (components.TextContentPartSchema & { type: "text" })
|
|
@@ -470,7 +462,7 @@ export type DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent =
|
|
|
470
462
|
/**
|
|
471
463
|
* Data about a previous audio response from the model.
|
|
472
464
|
*/
|
|
473
|
-
export type
|
|
465
|
+
export type MessagesAudio = {
|
|
474
466
|
/**
|
|
475
467
|
* Unique identifier for a previous audio response from the model.
|
|
476
468
|
*/
|
|
@@ -480,17 +472,15 @@ export type DeploymentGetConfigMessagesAudio = {
|
|
|
480
472
|
/**
|
|
481
473
|
* The type of the tool. Currently, only `function` is supported.
|
|
482
474
|
*/
|
|
483
|
-
export const
|
|
475
|
+
export const MessagesType = {
|
|
484
476
|
Function: "function",
|
|
485
477
|
} as const;
|
|
486
478
|
/**
|
|
487
479
|
* The type of the tool. Currently, only `function` is supported.
|
|
488
480
|
*/
|
|
489
|
-
export type
|
|
490
|
-
typeof DeploymentGetConfigMessagesType
|
|
491
|
-
>;
|
|
481
|
+
export type MessagesType = ClosedEnum<typeof MessagesType>;
|
|
492
482
|
|
|
493
|
-
export type
|
|
483
|
+
export type MessagesFunction = {
|
|
494
484
|
/**
|
|
495
485
|
* The name of the function to call.
|
|
496
486
|
*/
|
|
@@ -501,7 +491,7 @@ export type DeploymentGetConfigMessagesFunction = {
|
|
|
501
491
|
arguments?: string | undefined;
|
|
502
492
|
};
|
|
503
493
|
|
|
504
|
-
export type
|
|
494
|
+
export type MessagesToolCalls = {
|
|
505
495
|
/**
|
|
506
496
|
* The ID of the tool call.
|
|
507
497
|
*/
|
|
@@ -509,15 +499,15 @@ export type DeploymentGetConfigMessagesToolCalls = {
|
|
|
509
499
|
/**
|
|
510
500
|
* The type of the tool. Currently, only `function` is supported.
|
|
511
501
|
*/
|
|
512
|
-
type:
|
|
513
|
-
function:
|
|
502
|
+
type: MessagesType;
|
|
503
|
+
function: MessagesFunction;
|
|
514
504
|
/**
|
|
515
505
|
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
|
|
516
506
|
*/
|
|
517
507
|
thoughtSignature?: string | undefined;
|
|
518
508
|
};
|
|
519
509
|
|
|
520
|
-
export type
|
|
510
|
+
export type MessagesAssistantMessage = {
|
|
521
511
|
/**
|
|
522
512
|
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
523
513
|
*/
|
|
@@ -546,11 +536,11 @@ export type DeploymentGetConfigMessagesAssistantMessage = {
|
|
|
546
536
|
/**
|
|
547
537
|
* Data about a previous audio response from the model.
|
|
548
538
|
*/
|
|
549
|
-
audio?:
|
|
539
|
+
audio?: MessagesAudio | null | undefined;
|
|
550
540
|
/**
|
|
551
541
|
* The tool calls generated by the model, such as function calls.
|
|
552
542
|
*/
|
|
553
|
-
toolCalls?: Array<
|
|
543
|
+
toolCalls?: Array<MessagesToolCalls> | undefined;
|
|
554
544
|
};
|
|
555
545
|
|
|
556
546
|
/**
|
|
@@ -576,7 +566,7 @@ export type DeploymentGetConfig2DeploymentsRequestRequestBodyType = ClosedEnum<
|
|
|
576
566
|
*
|
|
577
567
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
578
568
|
*/
|
|
579
|
-
export const
|
|
569
|
+
export const TwoTtl = {
|
|
580
570
|
Fivem: "5m",
|
|
581
571
|
Oneh: "1h",
|
|
582
572
|
} as const;
|
|
@@ -590,11 +580,9 @@ export const DeploymentGetConfig2DeploymentsTtl = {
|
|
|
590
580
|
*
|
|
591
581
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
592
582
|
*/
|
|
593
|
-
export type
|
|
594
|
-
typeof DeploymentGetConfig2DeploymentsTtl
|
|
595
|
-
>;
|
|
583
|
+
export type TwoTtl = ClosedEnum<typeof TwoTtl>;
|
|
596
584
|
|
|
597
|
-
export type
|
|
585
|
+
export type TwoCacheControl = {
|
|
598
586
|
/**
|
|
599
587
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
600
588
|
*/
|
|
@@ -609,40 +597,40 @@ export type DeploymentGetConfig2DeploymentsCacheControl = {
|
|
|
609
597
|
*
|
|
610
598
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
611
599
|
*/
|
|
612
|
-
ttl?:
|
|
600
|
+
ttl?: TwoTtl | undefined;
|
|
613
601
|
};
|
|
614
602
|
|
|
615
|
-
export type
|
|
603
|
+
export type Two4 = {
|
|
616
604
|
/**
|
|
617
605
|
* The type of the content part. Always `file`.
|
|
618
606
|
*/
|
|
619
607
|
type: "file";
|
|
620
|
-
cacheControl?:
|
|
608
|
+
cacheControl?: TwoCacheControl | undefined;
|
|
621
609
|
/**
|
|
622
610
|
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
623
611
|
*/
|
|
624
612
|
file: components.FileContentPartSchema;
|
|
625
613
|
};
|
|
626
614
|
|
|
627
|
-
export type
|
|
615
|
+
export type DeploymentGetConfigContentDeploymentsRequest2 =
|
|
628
616
|
| (components.TextContentPartSchema & { type: "text" })
|
|
629
617
|
| components.ImageContentPartSchema
|
|
630
618
|
| components.AudioContentPartSchema
|
|
631
|
-
|
|
|
619
|
+
| Two4;
|
|
632
620
|
|
|
633
621
|
/**
|
|
634
622
|
* The contents of the user message.
|
|
635
623
|
*/
|
|
636
|
-
export type
|
|
624
|
+
export type DeploymentGetConfigMessagesDeploymentsContent =
|
|
637
625
|
| string
|
|
638
626
|
| Array<
|
|
639
627
|
| (components.TextContentPartSchema & { type: "text" })
|
|
640
628
|
| components.ImageContentPartSchema
|
|
641
629
|
| components.AudioContentPartSchema
|
|
642
|
-
|
|
|
630
|
+
| Two4
|
|
643
631
|
>;
|
|
644
632
|
|
|
645
|
-
export type
|
|
633
|
+
export type MessagesUserMessage = {
|
|
646
634
|
/**
|
|
647
635
|
* The role of the messages author, in this case `user`.
|
|
648
636
|
*/
|
|
@@ -660,18 +648,18 @@ export type DeploymentGetConfigMessagesUserMessage = {
|
|
|
660
648
|
| (components.TextContentPartSchema & { type: "text" })
|
|
661
649
|
| components.ImageContentPartSchema
|
|
662
650
|
| components.AudioContentPartSchema
|
|
663
|
-
|
|
|
651
|
+
| Two4
|
|
664
652
|
>;
|
|
665
653
|
};
|
|
666
654
|
|
|
667
655
|
/**
|
|
668
656
|
* The contents of the developer message.
|
|
669
657
|
*/
|
|
670
|
-
export type
|
|
658
|
+
export type DeploymentGetConfigMessagesContent =
|
|
671
659
|
| string
|
|
672
660
|
| Array<components.TextContentPartSchema>;
|
|
673
661
|
|
|
674
|
-
export type
|
|
662
|
+
export type MessagesDeveloperMessage = {
|
|
675
663
|
/**
|
|
676
664
|
* The role of the messages author, in this case `developer`.
|
|
677
665
|
*/
|
|
@@ -689,14 +677,12 @@ export type DeploymentGetConfigMessagesDeveloperMessage = {
|
|
|
689
677
|
/**
|
|
690
678
|
* The contents of the system message.
|
|
691
679
|
*/
|
|
692
|
-
export type
|
|
693
|
-
| string
|
|
694
|
-
| Array<components.TextContentPartSchema>;
|
|
680
|
+
export type MessagesContent = string | Array<components.TextContentPartSchema>;
|
|
695
681
|
|
|
696
682
|
/**
|
|
697
683
|
* Developer-provided instructions that the model should follow, regardless of messages sent by the user.
|
|
698
684
|
*/
|
|
699
|
-
export type
|
|
685
|
+
export type MessagesSystemMessage = {
|
|
700
686
|
/**
|
|
701
687
|
* The role of the messages author, in this case `system`.
|
|
702
688
|
*/
|
|
@@ -712,16 +698,16 @@ export type DeploymentGetConfigMessagesSystemMessage = {
|
|
|
712
698
|
};
|
|
713
699
|
|
|
714
700
|
export type DeploymentGetConfigMessages =
|
|
715
|
-
|
|
|
716
|
-
|
|
|
717
|
-
|
|
|
718
|
-
|
|
|
719
|
-
|
|
|
701
|
+
| MessagesSystemMessage
|
|
702
|
+
| MessagesDeveloperMessage
|
|
703
|
+
| MessagesUserMessage
|
|
704
|
+
| MessagesAssistantMessage
|
|
705
|
+
| MessagesToolMessage;
|
|
720
706
|
|
|
721
707
|
/**
|
|
722
708
|
* Metadata about the document
|
|
723
709
|
*/
|
|
724
|
-
export type
|
|
710
|
+
export type Metadata = {
|
|
725
711
|
/**
|
|
726
712
|
* Name of the file the text is from.
|
|
727
713
|
*/
|
|
@@ -736,7 +722,7 @@ export type DeploymentGetConfigMetadata = {
|
|
|
736
722
|
pageNumber?: number | undefined;
|
|
737
723
|
};
|
|
738
724
|
|
|
739
|
-
export type
|
|
725
|
+
export type Documents = {
|
|
740
726
|
/**
|
|
741
727
|
* The text content of the document
|
|
742
728
|
*/
|
|
@@ -744,10 +730,10 @@ export type DeploymentGetConfigDocuments = {
|
|
|
744
730
|
/**
|
|
745
731
|
* Metadata about the document
|
|
746
732
|
*/
|
|
747
|
-
metadata?:
|
|
733
|
+
metadata?: Metadata | undefined;
|
|
748
734
|
};
|
|
749
735
|
|
|
750
|
-
export type
|
|
736
|
+
export type InvokeOptions = {
|
|
751
737
|
/**
|
|
752
738
|
* Whether to include the retrieved knowledge chunks in the response.
|
|
753
739
|
*/
|
|
@@ -762,7 +748,7 @@ export type DeploymentGetConfigInvokeOptions = {
|
|
|
762
748
|
mockResponse?: string | undefined;
|
|
763
749
|
};
|
|
764
750
|
|
|
765
|
-
export type
|
|
751
|
+
export type Thread = {
|
|
766
752
|
/**
|
|
767
753
|
* Unique thread identifier to group related invocations.
|
|
768
754
|
*/
|
|
@@ -776,101 +762,101 @@ export type DeploymentGetConfigThread = {
|
|
|
776
762
|
/**
|
|
777
763
|
* Exists
|
|
778
764
|
*/
|
|
779
|
-
export type
|
|
765
|
+
export type OrExists = {
|
|
780
766
|
exists: boolean;
|
|
781
767
|
};
|
|
782
768
|
|
|
783
|
-
export type
|
|
769
|
+
export type DeploymentGetConfigOrNin = string | number | boolean;
|
|
784
770
|
|
|
785
771
|
/**
|
|
786
772
|
* Not in
|
|
787
773
|
*/
|
|
788
|
-
export type
|
|
774
|
+
export type OrNin = {
|
|
789
775
|
nin: Array<string | number | boolean>;
|
|
790
776
|
};
|
|
791
777
|
|
|
792
|
-
export type
|
|
778
|
+
export type DeploymentGetConfigOrIn = string | number | boolean;
|
|
793
779
|
|
|
794
780
|
/**
|
|
795
781
|
* In
|
|
796
782
|
*/
|
|
797
|
-
export type
|
|
783
|
+
export type OrIn = {
|
|
798
784
|
in: Array<string | number | boolean>;
|
|
799
785
|
};
|
|
800
786
|
|
|
801
787
|
/**
|
|
802
788
|
* Less than or equal to
|
|
803
789
|
*/
|
|
804
|
-
export type
|
|
790
|
+
export type OrLte = {
|
|
805
791
|
lte: number;
|
|
806
792
|
};
|
|
807
793
|
|
|
808
794
|
/**
|
|
809
795
|
* Less than
|
|
810
796
|
*/
|
|
811
|
-
export type
|
|
797
|
+
export type OrLt = {
|
|
812
798
|
lt: number;
|
|
813
799
|
};
|
|
814
800
|
|
|
815
801
|
/**
|
|
816
802
|
* Greater than or equal to
|
|
817
803
|
*/
|
|
818
|
-
export type
|
|
804
|
+
export type OrGte = {
|
|
819
805
|
gte: number;
|
|
820
806
|
};
|
|
821
807
|
|
|
822
808
|
/**
|
|
823
809
|
* Greater than
|
|
824
810
|
*/
|
|
825
|
-
export type
|
|
811
|
+
export type OrGt = {
|
|
826
812
|
gt: number;
|
|
827
813
|
};
|
|
828
814
|
|
|
829
|
-
export type
|
|
815
|
+
export type DeploymentGetConfigOrNe = string | number | boolean;
|
|
830
816
|
|
|
831
817
|
/**
|
|
832
818
|
* Not equal to
|
|
833
819
|
*/
|
|
834
|
-
export type
|
|
820
|
+
export type OrNe = {
|
|
835
821
|
ne: string | number | boolean;
|
|
836
822
|
};
|
|
837
823
|
|
|
838
|
-
export type
|
|
824
|
+
export type DeploymentGetConfigOrEq = string | number | boolean;
|
|
839
825
|
|
|
840
826
|
/**
|
|
841
827
|
* Equal to
|
|
842
828
|
*/
|
|
843
|
-
export type
|
|
829
|
+
export type OrEq = {
|
|
844
830
|
eq: string | number | boolean;
|
|
845
831
|
};
|
|
846
832
|
|
|
847
|
-
export type
|
|
848
|
-
|
|
|
849
|
-
|
|
|
850
|
-
|
|
|
851
|
-
|
|
|
852
|
-
|
|
|
853
|
-
|
|
|
854
|
-
|
|
|
855
|
-
|
|
|
856
|
-
|
|
|
833
|
+
export type KnowledgeFilterOr =
|
|
834
|
+
| OrEq
|
|
835
|
+
| OrNe
|
|
836
|
+
| OrGt
|
|
837
|
+
| OrGte
|
|
838
|
+
| OrLt
|
|
839
|
+
| OrLte
|
|
840
|
+
| OrIn
|
|
841
|
+
| OrNin
|
|
842
|
+
| OrExists;
|
|
857
843
|
|
|
858
844
|
/**
|
|
859
845
|
* Or
|
|
860
846
|
*/
|
|
861
|
-
export type
|
|
847
|
+
export type Or = {
|
|
862
848
|
or: Array<
|
|
863
849
|
{
|
|
864
850
|
[k: string]:
|
|
865
|
-
|
|
|
866
|
-
|
|
|
867
|
-
|
|
|
868
|
-
|
|
|
869
|
-
|
|
|
870
|
-
|
|
|
871
|
-
|
|
|
872
|
-
|
|
|
873
|
-
|
|
|
851
|
+
| OrEq
|
|
852
|
+
| OrNe
|
|
853
|
+
| OrGt
|
|
854
|
+
| OrGte
|
|
855
|
+
| OrLt
|
|
856
|
+
| OrLte
|
|
857
|
+
| OrIn
|
|
858
|
+
| OrNin
|
|
859
|
+
| OrExists;
|
|
874
860
|
}
|
|
875
861
|
>;
|
|
876
862
|
};
|
|
@@ -878,101 +864,101 @@ export type DeploymentGetConfigKnowledgeFilterOr = {
|
|
|
878
864
|
/**
|
|
879
865
|
* Exists
|
|
880
866
|
*/
|
|
881
|
-
export type
|
|
867
|
+
export type AndExists = {
|
|
882
868
|
exists: boolean;
|
|
883
869
|
};
|
|
884
870
|
|
|
885
|
-
export type
|
|
871
|
+
export type DeploymentGetConfigAndNin = string | number | boolean;
|
|
886
872
|
|
|
887
873
|
/**
|
|
888
874
|
* Not in
|
|
889
875
|
*/
|
|
890
|
-
export type
|
|
876
|
+
export type AndNin = {
|
|
891
877
|
nin: Array<string | number | boolean>;
|
|
892
878
|
};
|
|
893
879
|
|
|
894
|
-
export type
|
|
880
|
+
export type DeploymentGetConfigAndIn = string | number | boolean;
|
|
895
881
|
|
|
896
882
|
/**
|
|
897
883
|
* In
|
|
898
884
|
*/
|
|
899
|
-
export type
|
|
885
|
+
export type AndIn = {
|
|
900
886
|
in: Array<string | number | boolean>;
|
|
901
887
|
};
|
|
902
888
|
|
|
903
889
|
/**
|
|
904
890
|
* Less than or equal to
|
|
905
891
|
*/
|
|
906
|
-
export type
|
|
892
|
+
export type AndLte = {
|
|
907
893
|
lte: number;
|
|
908
894
|
};
|
|
909
895
|
|
|
910
896
|
/**
|
|
911
897
|
* Less than
|
|
912
898
|
*/
|
|
913
|
-
export type
|
|
899
|
+
export type AndLt = {
|
|
914
900
|
lt: number;
|
|
915
901
|
};
|
|
916
902
|
|
|
917
903
|
/**
|
|
918
904
|
* Greater than or equal to
|
|
919
905
|
*/
|
|
920
|
-
export type
|
|
906
|
+
export type AndGte = {
|
|
921
907
|
gte: number;
|
|
922
908
|
};
|
|
923
909
|
|
|
924
910
|
/**
|
|
925
911
|
* Greater than
|
|
926
912
|
*/
|
|
927
|
-
export type
|
|
913
|
+
export type AndGt = {
|
|
928
914
|
gt: number;
|
|
929
915
|
};
|
|
930
916
|
|
|
931
|
-
export type
|
|
917
|
+
export type DeploymentGetConfigAndNe = string | number | boolean;
|
|
932
918
|
|
|
933
919
|
/**
|
|
934
920
|
* Not equal to
|
|
935
921
|
*/
|
|
936
|
-
export type
|
|
922
|
+
export type AndNe = {
|
|
937
923
|
ne: string | number | boolean;
|
|
938
924
|
};
|
|
939
925
|
|
|
940
|
-
export type
|
|
926
|
+
export type DeploymentGetConfigAndEq = string | number | boolean;
|
|
941
927
|
|
|
942
928
|
/**
|
|
943
929
|
* Equal to
|
|
944
930
|
*/
|
|
945
|
-
export type
|
|
931
|
+
export type AndEq = {
|
|
946
932
|
eq: string | number | boolean;
|
|
947
933
|
};
|
|
948
934
|
|
|
949
|
-
export type
|
|
950
|
-
|
|
|
951
|
-
|
|
|
952
|
-
|
|
|
953
|
-
|
|
|
954
|
-
|
|
|
955
|
-
|
|
|
956
|
-
|
|
|
957
|
-
|
|
|
958
|
-
|
|
|
935
|
+
export type KnowledgeFilterAnd =
|
|
936
|
+
| AndEq
|
|
937
|
+
| AndNe
|
|
938
|
+
| AndGt
|
|
939
|
+
| AndGte
|
|
940
|
+
| AndLt
|
|
941
|
+
| AndLte
|
|
942
|
+
| AndIn
|
|
943
|
+
| AndNin
|
|
944
|
+
| AndExists;
|
|
959
945
|
|
|
960
946
|
/**
|
|
961
947
|
* And
|
|
962
948
|
*/
|
|
963
|
-
export type
|
|
949
|
+
export type And = {
|
|
964
950
|
and: Array<
|
|
965
951
|
{
|
|
966
952
|
[k: string]:
|
|
967
|
-
|
|
|
968
|
-
|
|
|
969
|
-
|
|
|
970
|
-
|
|
|
971
|
-
|
|
|
972
|
-
|
|
|
973
|
-
|
|
|
974
|
-
|
|
|
975
|
-
|
|
|
953
|
+
| AndEq
|
|
954
|
+
| AndNe
|
|
955
|
+
| AndGt
|
|
956
|
+
| AndGte
|
|
957
|
+
| AndLt
|
|
958
|
+
| AndLte
|
|
959
|
+
| AndIn
|
|
960
|
+
| AndNin
|
|
961
|
+
| AndExists;
|
|
976
962
|
}
|
|
977
963
|
>;
|
|
978
964
|
};
|
|
@@ -980,103 +966,91 @@ export type DeploymentGetConfigKnowledgeFilterAnd = {
|
|
|
980
966
|
/**
|
|
981
967
|
* Exists
|
|
982
968
|
*/
|
|
983
|
-
export type
|
|
969
|
+
export type Exists = {
|
|
984
970
|
exists: boolean;
|
|
985
971
|
};
|
|
986
972
|
|
|
987
|
-
export type
|
|
973
|
+
export type OneNin = string | number | boolean;
|
|
988
974
|
|
|
989
975
|
/**
|
|
990
976
|
* Not in
|
|
991
977
|
*/
|
|
992
|
-
export type
|
|
978
|
+
export type Nin = {
|
|
993
979
|
nin: Array<string | number | boolean>;
|
|
994
980
|
};
|
|
995
981
|
|
|
996
|
-
export type
|
|
982
|
+
export type OneIn = string | number | boolean;
|
|
997
983
|
|
|
998
984
|
/**
|
|
999
985
|
* In
|
|
1000
986
|
*/
|
|
1001
|
-
export type
|
|
987
|
+
export type In = {
|
|
1002
988
|
in: Array<string | number | boolean>;
|
|
1003
989
|
};
|
|
1004
990
|
|
|
1005
991
|
/**
|
|
1006
992
|
* Less than or equal to
|
|
1007
993
|
*/
|
|
1008
|
-
export type
|
|
994
|
+
export type Lte = {
|
|
1009
995
|
lte: number;
|
|
1010
996
|
};
|
|
1011
997
|
|
|
1012
998
|
/**
|
|
1013
999
|
* Less than
|
|
1014
1000
|
*/
|
|
1015
|
-
export type
|
|
1001
|
+
export type Lt = {
|
|
1016
1002
|
lt: number;
|
|
1017
1003
|
};
|
|
1018
1004
|
|
|
1019
1005
|
/**
|
|
1020
1006
|
* Greater than or equal to
|
|
1021
1007
|
*/
|
|
1022
|
-
export type
|
|
1008
|
+
export type Gte = {
|
|
1023
1009
|
gte: number;
|
|
1024
1010
|
};
|
|
1025
1011
|
|
|
1026
1012
|
/**
|
|
1027
1013
|
* Greater than
|
|
1028
1014
|
*/
|
|
1029
|
-
export type
|
|
1015
|
+
export type Gt = {
|
|
1030
1016
|
gt: number;
|
|
1031
1017
|
};
|
|
1032
1018
|
|
|
1033
|
-
export type
|
|
1019
|
+
export type OneNe = string | number | boolean;
|
|
1034
1020
|
|
|
1035
1021
|
/**
|
|
1036
1022
|
* Not equal to
|
|
1037
1023
|
*/
|
|
1038
|
-
export type
|
|
1024
|
+
export type Ne = {
|
|
1039
1025
|
ne: string | number | boolean;
|
|
1040
1026
|
};
|
|
1041
1027
|
|
|
1042
|
-
export type
|
|
1028
|
+
export type OneEq = string | number | boolean;
|
|
1043
1029
|
|
|
1044
1030
|
/**
|
|
1045
1031
|
* Equal to
|
|
1046
1032
|
*/
|
|
1047
|
-
export type
|
|
1033
|
+
export type Eq = {
|
|
1048
1034
|
eq: string | number | boolean;
|
|
1049
1035
|
};
|
|
1050
1036
|
|
|
1051
|
-
export type
|
|
1052
|
-
|
|
|
1053
|
-
|
|
|
1054
|
-
|
|
|
1055
|
-
|
|
|
1056
|
-
|
|
|
1057
|
-
|
|
|
1058
|
-
|
|
|
1059
|
-
|
|
|
1060
|
-
|
|
|
1037
|
+
export type KnowledgeFilter1 =
|
|
1038
|
+
| Eq
|
|
1039
|
+
| Ne
|
|
1040
|
+
| Gt
|
|
1041
|
+
| Gte
|
|
1042
|
+
| Lt
|
|
1043
|
+
| Lte
|
|
1044
|
+
| In
|
|
1045
|
+
| Nin
|
|
1046
|
+
| Exists;
|
|
1061
1047
|
|
|
1062
1048
|
/**
|
|
1063
1049
|
* A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
|
|
1064
1050
|
*/
|
|
1065
|
-
export type
|
|
1066
|
-
|
|
|
1067
|
-
|
|
1068
|
-
| {
|
|
1069
|
-
[k: string]:
|
|
1070
|
-
| DeploymentGetConfig1Eq
|
|
1071
|
-
| DeploymentGetConfig1Ne
|
|
1072
|
-
| OneGt
|
|
1073
|
-
| OneGte
|
|
1074
|
-
| OneLt
|
|
1075
|
-
| OneLte
|
|
1076
|
-
| DeploymentGetConfig1In
|
|
1077
|
-
| DeploymentGetConfig1Nin
|
|
1078
|
-
| OneExists;
|
|
1079
|
-
};
|
|
1051
|
+
export type KnowledgeFilter = And | Or | {
|
|
1052
|
+
[k: string]: Eq | Ne | Gt | Gte | Lt | Lte | In | Nin | Exists;
|
|
1053
|
+
};
|
|
1080
1054
|
|
|
1081
1055
|
export type DeploymentGetConfigRequestBody = {
|
|
1082
1056
|
/**
|
|
@@ -1096,11 +1070,11 @@ export type DeploymentGetConfigRequestBody = {
|
|
|
1096
1070
|
*/
|
|
1097
1071
|
prefixMessages?:
|
|
1098
1072
|
| Array<
|
|
1099
|
-
|
|
|
1100
|
-
|
|
|
1101
|
-
|
|
|
1102
|
-
|
|
|
1103
|
-
|
|
|
1073
|
+
| SystemMessage
|
|
1074
|
+
| DeveloperMessage
|
|
1075
|
+
| UserMessage
|
|
1076
|
+
| AssistantMessage
|
|
1077
|
+
| ToolMessage
|
|
1104
1078
|
>
|
|
1105
1079
|
| undefined;
|
|
1106
1080
|
/**
|
|
@@ -1108,11 +1082,11 @@ export type DeploymentGetConfigRequestBody = {
|
|
|
1108
1082
|
*/
|
|
1109
1083
|
messages?:
|
|
1110
1084
|
| Array<
|
|
1111
|
-
|
|
|
1112
|
-
|
|
|
1113
|
-
|
|
|
1114
|
-
|
|
|
1115
|
-
|
|
|
1085
|
+
| MessagesSystemMessage
|
|
1086
|
+
| MessagesDeveloperMessage
|
|
1087
|
+
| MessagesUserMessage
|
|
1088
|
+
| MessagesAssistantMessage
|
|
1089
|
+
| MessagesToolMessage
|
|
1116
1090
|
>
|
|
1117
1091
|
| undefined;
|
|
1118
1092
|
/**
|
|
@@ -1134,28 +1108,15 @@ export type DeploymentGetConfigRequestBody = {
|
|
|
1134
1108
|
/**
|
|
1135
1109
|
* A list of documents from your external knowledge base (e.g., chunks retrieved from your own vector database or RAG pipeline) that provide context for the model response. These documents can be used by evaluators and guardrails to assess the relevance and accuracy of the model output against the provided context.
|
|
1136
1110
|
*/
|
|
1137
|
-
documents?: Array<
|
|
1138
|
-
invokeOptions?:
|
|
1139
|
-
thread?:
|
|
1111
|
+
documents?: Array<Documents> | undefined;
|
|
1112
|
+
invokeOptions?: InvokeOptions | undefined;
|
|
1113
|
+
thread?: Thread | undefined;
|
|
1140
1114
|
/**
|
|
1141
1115
|
* A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
|
|
1142
1116
|
*/
|
|
1143
|
-
knowledgeFilter?:
|
|
1144
|
-
|
|
|
1145
|
-
|
|
1146
|
-
| {
|
|
1147
|
-
[k: string]:
|
|
1148
|
-
| DeploymentGetConfig1Eq
|
|
1149
|
-
| DeploymentGetConfig1Ne
|
|
1150
|
-
| OneGt
|
|
1151
|
-
| OneGte
|
|
1152
|
-
| OneLt
|
|
1153
|
-
| OneLte
|
|
1154
|
-
| DeploymentGetConfig1In
|
|
1155
|
-
| DeploymentGetConfig1Nin
|
|
1156
|
-
| OneExists;
|
|
1157
|
-
}
|
|
1158
|
-
| undefined;
|
|
1117
|
+
knowledgeFilter?: And | Or | {
|
|
1118
|
+
[k: string]: Eq | Ne | Gt | Gte | Lt | Lte | In | Nin | Exists;
|
|
1119
|
+
} | undefined;
|
|
1159
1120
|
};
|
|
1160
1121
|
|
|
1161
1122
|
/**
|
|
@@ -1717,110 +1678,103 @@ export type DeploymentGetConfigResponseBody = {
|
|
|
1717
1678
|
};
|
|
1718
1679
|
|
|
1719
1680
|
/** @internal */
|
|
1720
|
-
export type
|
|
1681
|
+
export type DeploymentGetConfigContentDeployments2$Outbound =
|
|
1721
1682
|
components.TextContentPartSchema$Outbound;
|
|
1722
1683
|
|
|
1723
1684
|
/** @internal */
|
|
1724
|
-
export const
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
> = components.TextContentPartSchema$outboundSchema;
|
|
1685
|
+
export const DeploymentGetConfigContentDeployments2$outboundSchema: z.ZodType<
|
|
1686
|
+
DeploymentGetConfigContentDeployments2$Outbound,
|
|
1687
|
+
z.ZodTypeDef,
|
|
1688
|
+
DeploymentGetConfigContentDeployments2
|
|
1689
|
+
> = components.TextContentPartSchema$outboundSchema;
|
|
1730
1690
|
|
|
1731
|
-
export function
|
|
1732
|
-
|
|
1733
|
-
|
|
1691
|
+
export function deploymentGetConfigContentDeployments2ToJSON(
|
|
1692
|
+
deploymentGetConfigContentDeployments2:
|
|
1693
|
+
DeploymentGetConfigContentDeployments2,
|
|
1734
1694
|
): string {
|
|
1735
1695
|
return JSON.stringify(
|
|
1736
|
-
|
|
1737
|
-
|
|
1696
|
+
DeploymentGetConfigContentDeployments2$outboundSchema.parse(
|
|
1697
|
+
deploymentGetConfigContentDeployments2,
|
|
1738
1698
|
),
|
|
1739
1699
|
);
|
|
1740
1700
|
}
|
|
1741
1701
|
|
|
1742
1702
|
/** @internal */
|
|
1743
|
-
export type
|
|
1703
|
+
export type DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$Outbound =
|
|
1744
1704
|
| string
|
|
1745
1705
|
| Array<components.TextContentPartSchema$Outbound>;
|
|
1746
1706
|
|
|
1747
1707
|
/** @internal */
|
|
1748
|
-
export const
|
|
1708
|
+
export const DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$outboundSchema:
|
|
1749
1709
|
z.ZodType<
|
|
1750
|
-
|
|
1710
|
+
DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$Outbound,
|
|
1751
1711
|
z.ZodTypeDef,
|
|
1752
|
-
|
|
1712
|
+
DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent
|
|
1753
1713
|
> = z.union([
|
|
1754
1714
|
z.string(),
|
|
1755
1715
|
z.array(components.TextContentPartSchema$outboundSchema),
|
|
1756
1716
|
]);
|
|
1757
1717
|
|
|
1758
|
-
export function
|
|
1759
|
-
|
|
1760
|
-
|
|
1718
|
+
export function deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContentToJSON(
|
|
1719
|
+
deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent:
|
|
1720
|
+
DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent,
|
|
1761
1721
|
): string {
|
|
1762
1722
|
return JSON.stringify(
|
|
1763
|
-
|
|
1723
|
+
DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$outboundSchema
|
|
1764
1724
|
.parse(
|
|
1765
|
-
|
|
1725
|
+
deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent,
|
|
1766
1726
|
),
|
|
1767
1727
|
);
|
|
1768
1728
|
}
|
|
1769
1729
|
|
|
1770
1730
|
/** @internal */
|
|
1771
|
-
export const
|
|
1772
|
-
z.ZodNativeEnum<typeof
|
|
1773
|
-
|
|
1731
|
+
export const DeploymentGetConfigPrefixMessagesType$outboundSchema:
|
|
1732
|
+
z.ZodNativeEnum<typeof DeploymentGetConfigPrefixMessagesType> = z.nativeEnum(
|
|
1733
|
+
DeploymentGetConfigPrefixMessagesType,
|
|
1734
|
+
);
|
|
1774
1735
|
|
|
1775
1736
|
/** @internal */
|
|
1776
|
-
export const
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
);
|
|
1737
|
+
export const PrefixMessagesTtl$outboundSchema: z.ZodNativeEnum<
|
|
1738
|
+
typeof PrefixMessagesTtl
|
|
1739
|
+
> = z.nativeEnum(PrefixMessagesTtl);
|
|
1780
1740
|
|
|
1781
1741
|
/** @internal */
|
|
1782
|
-
export type
|
|
1742
|
+
export type PrefixMessagesCacheControl$Outbound = {
|
|
1783
1743
|
type: string;
|
|
1784
1744
|
ttl: string;
|
|
1785
1745
|
};
|
|
1786
1746
|
|
|
1787
1747
|
/** @internal */
|
|
1788
|
-
export const
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
});
|
|
1748
|
+
export const PrefixMessagesCacheControl$outboundSchema: z.ZodType<
|
|
1749
|
+
PrefixMessagesCacheControl$Outbound,
|
|
1750
|
+
z.ZodTypeDef,
|
|
1751
|
+
PrefixMessagesCacheControl
|
|
1752
|
+
> = z.object({
|
|
1753
|
+
type: DeploymentGetConfigPrefixMessagesType$outboundSchema,
|
|
1754
|
+
ttl: PrefixMessagesTtl$outboundSchema.default("5m"),
|
|
1755
|
+
});
|
|
1797
1756
|
|
|
1798
|
-
export function
|
|
1799
|
-
|
|
1800
|
-
DeploymentGetConfigPrefixMessagesCacheControl,
|
|
1757
|
+
export function prefixMessagesCacheControlToJSON(
|
|
1758
|
+
prefixMessagesCacheControl: PrefixMessagesCacheControl,
|
|
1801
1759
|
): string {
|
|
1802
1760
|
return JSON.stringify(
|
|
1803
|
-
|
|
1804
|
-
deploymentGetConfigPrefixMessagesCacheControl,
|
|
1805
|
-
),
|
|
1761
|
+
PrefixMessagesCacheControl$outboundSchema.parse(prefixMessagesCacheControl),
|
|
1806
1762
|
);
|
|
1807
1763
|
}
|
|
1808
1764
|
|
|
1809
1765
|
/** @internal */
|
|
1810
|
-
export type
|
|
1766
|
+
export type ToolMessage$Outbound = {
|
|
1811
1767
|
role: "tool";
|
|
1812
1768
|
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
1813
1769
|
tool_call_id: string | null;
|
|
1814
|
-
cache_control?:
|
|
1815
|
-
| DeploymentGetConfigPrefixMessagesCacheControl$Outbound
|
|
1816
|
-
| undefined;
|
|
1770
|
+
cache_control?: PrefixMessagesCacheControl$Outbound | undefined;
|
|
1817
1771
|
};
|
|
1818
1772
|
|
|
1819
1773
|
/** @internal */
|
|
1820
|
-
export const
|
|
1821
|
-
|
|
1774
|
+
export const ToolMessage$outboundSchema: z.ZodType<
|
|
1775
|
+
ToolMessage$Outbound,
|
|
1822
1776
|
z.ZodTypeDef,
|
|
1823
|
-
|
|
1777
|
+
ToolMessage
|
|
1824
1778
|
> = z.object({
|
|
1825
1779
|
role: z.literal("tool"),
|
|
1826
1780
|
content: z.union([
|
|
@@ -1828,9 +1782,8 @@ export const PrefixMessagesToolMessage$outboundSchema: z.ZodType<
|
|
|
1828
1782
|
z.array(components.TextContentPartSchema$outboundSchema),
|
|
1829
1783
|
]),
|
|
1830
1784
|
toolCallId: z.nullable(z.string()),
|
|
1831
|
-
cacheControl: z.lazy(() =>
|
|
1832
|
-
|
|
1833
|
-
).optional(),
|
|
1785
|
+
cacheControl: z.lazy(() => PrefixMessagesCacheControl$outboundSchema)
|
|
1786
|
+
.optional(),
|
|
1834
1787
|
}).transform((v) => {
|
|
1835
1788
|
return remap$(v, {
|
|
1836
1789
|
toolCallId: "tool_call_id",
|
|
@@ -1838,26 +1791,22 @@ export const PrefixMessagesToolMessage$outboundSchema: z.ZodType<
|
|
|
1838
1791
|
});
|
|
1839
1792
|
});
|
|
1840
1793
|
|
|
1841
|
-
export function
|
|
1842
|
-
|
|
1843
|
-
): string {
|
|
1844
|
-
return JSON.stringify(
|
|
1845
|
-
PrefixMessagesToolMessage$outboundSchema.parse(prefixMessagesToolMessage),
|
|
1846
|
-
);
|
|
1794
|
+
export function toolMessageToJSON(toolMessage: ToolMessage): string {
|
|
1795
|
+
return JSON.stringify(ToolMessage$outboundSchema.parse(toolMessage));
|
|
1847
1796
|
}
|
|
1848
1797
|
|
|
1849
1798
|
/** @internal */
|
|
1850
|
-
export type
|
|
1799
|
+
export type DeploymentGetConfigContent2$Outbound =
|
|
1851
1800
|
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
1852
1801
|
| components.RefusalPartSchema$Outbound
|
|
1853
1802
|
| components.ReasoningPartSchema$Outbound
|
|
1854
1803
|
| components.RedactedReasoningPartSchema$Outbound;
|
|
1855
1804
|
|
|
1856
1805
|
/** @internal */
|
|
1857
|
-
export const
|
|
1858
|
-
|
|
1806
|
+
export const DeploymentGetConfigContent2$outboundSchema: z.ZodType<
|
|
1807
|
+
DeploymentGetConfigContent2$Outbound,
|
|
1859
1808
|
z.ZodTypeDef,
|
|
1860
|
-
|
|
1809
|
+
DeploymentGetConfigContent2
|
|
1861
1810
|
> = z.union([
|
|
1862
1811
|
components.TextContentPartSchema$outboundSchema.and(
|
|
1863
1812
|
z.object({ type: z.literal("text") }),
|
|
@@ -1867,19 +1816,18 @@ export const DeploymentGetConfigContentDeployments2$outboundSchema: z.ZodType<
|
|
|
1867
1816
|
components.RedactedReasoningPartSchema$outboundSchema,
|
|
1868
1817
|
]);
|
|
1869
1818
|
|
|
1870
|
-
export function
|
|
1871
|
-
|
|
1872
|
-
DeploymentGetConfigContentDeployments2,
|
|
1819
|
+
export function deploymentGetConfigContent2ToJSON(
|
|
1820
|
+
deploymentGetConfigContent2: DeploymentGetConfigContent2,
|
|
1873
1821
|
): string {
|
|
1874
1822
|
return JSON.stringify(
|
|
1875
|
-
|
|
1876
|
-
|
|
1823
|
+
DeploymentGetConfigContent2$outboundSchema.parse(
|
|
1824
|
+
deploymentGetConfigContent2,
|
|
1877
1825
|
),
|
|
1878
1826
|
);
|
|
1879
1827
|
}
|
|
1880
1828
|
|
|
1881
1829
|
/** @internal */
|
|
1882
|
-
export type
|
|
1830
|
+
export type DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$Outbound =
|
|
1883
1831
|
| string
|
|
1884
1832
|
| Array<
|
|
1885
1833
|
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
@@ -1889,11 +1837,11 @@ export type DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyConten
|
|
|
1889
1837
|
>;
|
|
1890
1838
|
|
|
1891
1839
|
/** @internal */
|
|
1892
|
-
export const
|
|
1840
|
+
export const DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$outboundSchema:
|
|
1893
1841
|
z.ZodType<
|
|
1894
|
-
|
|
1842
|
+
DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$Outbound,
|
|
1895
1843
|
z.ZodTypeDef,
|
|
1896
|
-
|
|
1844
|
+
DeploymentGetConfigPrefixMessagesDeploymentsRequestContent
|
|
1897
1845
|
> = z.union([
|
|
1898
1846
|
z.string(),
|
|
1899
1847
|
z.array(
|
|
@@ -1908,114 +1856,97 @@ export const DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyConte
|
|
|
1908
1856
|
),
|
|
1909
1857
|
]);
|
|
1910
1858
|
|
|
1911
|
-
export function
|
|
1912
|
-
|
|
1913
|
-
|
|
1859
|
+
export function deploymentGetConfigPrefixMessagesDeploymentsRequestContentToJSON(
|
|
1860
|
+
deploymentGetConfigPrefixMessagesDeploymentsRequestContent:
|
|
1861
|
+
DeploymentGetConfigPrefixMessagesDeploymentsRequestContent,
|
|
1914
1862
|
): string {
|
|
1915
1863
|
return JSON.stringify(
|
|
1916
|
-
|
|
1917
|
-
.parse(
|
|
1918
|
-
deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent,
|
|
1919
|
-
),
|
|
1864
|
+
DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$outboundSchema
|
|
1865
|
+
.parse(deploymentGetConfigPrefixMessagesDeploymentsRequestContent),
|
|
1920
1866
|
);
|
|
1921
1867
|
}
|
|
1922
1868
|
|
|
1923
1869
|
/** @internal */
|
|
1924
|
-
export type
|
|
1870
|
+
export type Audio$Outbound = {
|
|
1925
1871
|
id: string;
|
|
1926
1872
|
};
|
|
1927
1873
|
|
|
1928
1874
|
/** @internal */
|
|
1929
|
-
export const
|
|
1930
|
-
|
|
1875
|
+
export const Audio$outboundSchema: z.ZodType<
|
|
1876
|
+
Audio$Outbound,
|
|
1931
1877
|
z.ZodTypeDef,
|
|
1932
|
-
|
|
1878
|
+
Audio
|
|
1933
1879
|
> = z.object({
|
|
1934
1880
|
id: z.string(),
|
|
1935
1881
|
});
|
|
1936
1882
|
|
|
1937
|
-
export function
|
|
1938
|
-
|
|
1939
|
-
): string {
|
|
1940
|
-
return JSON.stringify(
|
|
1941
|
-
PrefixMessagesAudio$outboundSchema.parse(prefixMessagesAudio),
|
|
1942
|
-
);
|
|
1883
|
+
export function audioToJSON(audio: Audio): string {
|
|
1884
|
+
return JSON.stringify(Audio$outboundSchema.parse(audio));
|
|
1943
1885
|
}
|
|
1944
1886
|
|
|
1945
1887
|
/** @internal */
|
|
1946
|
-
export const
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
);
|
|
1888
|
+
export const PrefixMessagesType$outboundSchema: z.ZodNativeEnum<
|
|
1889
|
+
typeof PrefixMessagesType
|
|
1890
|
+
> = z.nativeEnum(PrefixMessagesType);
|
|
1950
1891
|
|
|
1951
1892
|
/** @internal */
|
|
1952
|
-
export type
|
|
1893
|
+
export type PrefixMessagesFunction$Outbound = {
|
|
1953
1894
|
name?: string | undefined;
|
|
1954
1895
|
arguments?: string | undefined;
|
|
1955
1896
|
};
|
|
1956
1897
|
|
|
1957
1898
|
/** @internal */
|
|
1958
|
-
export const
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
});
|
|
1899
|
+
export const PrefixMessagesFunction$outboundSchema: z.ZodType<
|
|
1900
|
+
PrefixMessagesFunction$Outbound,
|
|
1901
|
+
z.ZodTypeDef,
|
|
1902
|
+
PrefixMessagesFunction
|
|
1903
|
+
> = z.object({
|
|
1904
|
+
name: z.string().optional(),
|
|
1905
|
+
arguments: z.string().optional(),
|
|
1906
|
+
});
|
|
1967
1907
|
|
|
1968
|
-
export function
|
|
1969
|
-
|
|
1970
|
-
DeploymentGetConfigPrefixMessagesFunction,
|
|
1908
|
+
export function prefixMessagesFunctionToJSON(
|
|
1909
|
+
prefixMessagesFunction: PrefixMessagesFunction,
|
|
1971
1910
|
): string {
|
|
1972
1911
|
return JSON.stringify(
|
|
1973
|
-
|
|
1974
|
-
deploymentGetConfigPrefixMessagesFunction,
|
|
1975
|
-
),
|
|
1912
|
+
PrefixMessagesFunction$outboundSchema.parse(prefixMessagesFunction),
|
|
1976
1913
|
);
|
|
1977
1914
|
}
|
|
1978
1915
|
|
|
1979
1916
|
/** @internal */
|
|
1980
|
-
export type
|
|
1917
|
+
export type PrefixMessagesToolCalls$Outbound = {
|
|
1981
1918
|
id: string;
|
|
1982
1919
|
type: string;
|
|
1983
|
-
function:
|
|
1920
|
+
function: PrefixMessagesFunction$Outbound;
|
|
1984
1921
|
thought_signature?: string | undefined;
|
|
1985
1922
|
};
|
|
1986
1923
|
|
|
1987
1924
|
/** @internal */
|
|
1988
|
-
export const
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
thoughtSignature:
|
|
2000
|
-
}).transform((v) => {
|
|
2001
|
-
return remap$(v, {
|
|
2002
|
-
thoughtSignature: "thought_signature",
|
|
2003
|
-
});
|
|
1925
|
+
export const PrefixMessagesToolCalls$outboundSchema: z.ZodType<
|
|
1926
|
+
PrefixMessagesToolCalls$Outbound,
|
|
1927
|
+
z.ZodTypeDef,
|
|
1928
|
+
PrefixMessagesToolCalls
|
|
1929
|
+
> = z.object({
|
|
1930
|
+
id: z.string(),
|
|
1931
|
+
type: PrefixMessagesType$outboundSchema,
|
|
1932
|
+
function: z.lazy(() => PrefixMessagesFunction$outboundSchema),
|
|
1933
|
+
thoughtSignature: z.string().optional(),
|
|
1934
|
+
}).transform((v) => {
|
|
1935
|
+
return remap$(v, {
|
|
1936
|
+
thoughtSignature: "thought_signature",
|
|
2004
1937
|
});
|
|
1938
|
+
});
|
|
2005
1939
|
|
|
2006
|
-
export function
|
|
2007
|
-
|
|
2008
|
-
DeploymentGetConfigPrefixMessagesToolCalls,
|
|
1940
|
+
export function prefixMessagesToolCallsToJSON(
|
|
1941
|
+
prefixMessagesToolCalls: PrefixMessagesToolCalls,
|
|
2009
1942
|
): string {
|
|
2010
1943
|
return JSON.stringify(
|
|
2011
|
-
|
|
2012
|
-
deploymentGetConfigPrefixMessagesToolCalls,
|
|
2013
|
-
),
|
|
1944
|
+
PrefixMessagesToolCalls$outboundSchema.parse(prefixMessagesToolCalls),
|
|
2014
1945
|
);
|
|
2015
1946
|
}
|
|
2016
1947
|
|
|
2017
1948
|
/** @internal */
|
|
2018
|
-
export type
|
|
1949
|
+
export type AssistantMessage$Outbound = {
|
|
2019
1950
|
content?:
|
|
2020
1951
|
| string
|
|
2021
1952
|
| Array<
|
|
@@ -2029,17 +1960,15 @@ export type PrefixMessagesAssistantMessage$Outbound = {
|
|
|
2029
1960
|
refusal?: string | null | undefined;
|
|
2030
1961
|
role: "assistant";
|
|
2031
1962
|
name?: string | undefined;
|
|
2032
|
-
audio?:
|
|
2033
|
-
tool_calls?:
|
|
2034
|
-
| Array<DeploymentGetConfigPrefixMessagesToolCalls$Outbound>
|
|
2035
|
-
| undefined;
|
|
1963
|
+
audio?: Audio$Outbound | null | undefined;
|
|
1964
|
+
tool_calls?: Array<PrefixMessagesToolCalls$Outbound> | undefined;
|
|
2036
1965
|
};
|
|
2037
1966
|
|
|
2038
1967
|
/** @internal */
|
|
2039
|
-
export const
|
|
2040
|
-
|
|
1968
|
+
export const AssistantMessage$outboundSchema: z.ZodType<
|
|
1969
|
+
AssistantMessage$Outbound,
|
|
2041
1970
|
z.ZodTypeDef,
|
|
2042
|
-
|
|
1971
|
+
AssistantMessage
|
|
2043
1972
|
> = z.object({
|
|
2044
1973
|
content: z.nullable(
|
|
2045
1974
|
z.union([
|
|
@@ -2059,24 +1988,20 @@ export const PrefixMessagesAssistantMessage$outboundSchema: z.ZodType<
|
|
|
2059
1988
|
refusal: z.nullable(z.string()).optional(),
|
|
2060
1989
|
role: z.literal("assistant"),
|
|
2061
1990
|
name: z.string().optional(),
|
|
2062
|
-
audio: z.nullable(z.lazy(() =>
|
|
1991
|
+
audio: z.nullable(z.lazy(() => Audio$outboundSchema)).optional(),
|
|
1992
|
+
toolCalls: z.array(z.lazy(() => PrefixMessagesToolCalls$outboundSchema))
|
|
2063
1993
|
.optional(),
|
|
2064
|
-
toolCalls: z.array(
|
|
2065
|
-
z.lazy(() => DeploymentGetConfigPrefixMessagesToolCalls$outboundSchema),
|
|
2066
|
-
).optional(),
|
|
2067
1994
|
}).transform((v) => {
|
|
2068
1995
|
return remap$(v, {
|
|
2069
1996
|
toolCalls: "tool_calls",
|
|
2070
1997
|
});
|
|
2071
1998
|
});
|
|
2072
1999
|
|
|
2073
|
-
export function
|
|
2074
|
-
|
|
2000
|
+
export function assistantMessageToJSON(
|
|
2001
|
+
assistantMessage: AssistantMessage,
|
|
2075
2002
|
): string {
|
|
2076
2003
|
return JSON.stringify(
|
|
2077
|
-
|
|
2078
|
-
prefixMessagesAssistantMessage,
|
|
2079
|
-
),
|
|
2004
|
+
AssistantMessage$outboundSchema.parse(assistantMessage),
|
|
2080
2005
|
);
|
|
2081
2006
|
}
|
|
2082
2007
|
|
|
@@ -2087,114 +2012,94 @@ export const DeploymentGetConfig2DeploymentsType$outboundSchema:
|
|
|
2087
2012
|
);
|
|
2088
2013
|
|
|
2089
2014
|
/** @internal */
|
|
2090
|
-
export const
|
|
2091
|
-
|
|
2092
|
-
|
|
2015
|
+
export const Ttl$outboundSchema: z.ZodNativeEnum<typeof Ttl> = z.nativeEnum(
|
|
2016
|
+
Ttl,
|
|
2017
|
+
);
|
|
2093
2018
|
|
|
2094
2019
|
/** @internal */
|
|
2095
|
-
export type
|
|
2020
|
+
export type CacheControl$Outbound = {
|
|
2096
2021
|
type: string;
|
|
2097
2022
|
ttl: string;
|
|
2098
2023
|
};
|
|
2099
2024
|
|
|
2100
2025
|
/** @internal */
|
|
2101
|
-
export const
|
|
2102
|
-
|
|
2026
|
+
export const CacheControl$outboundSchema: z.ZodType<
|
|
2027
|
+
CacheControl$Outbound,
|
|
2103
2028
|
z.ZodTypeDef,
|
|
2104
|
-
|
|
2029
|
+
CacheControl
|
|
2105
2030
|
> = z.object({
|
|
2106
2031
|
type: DeploymentGetConfig2DeploymentsType$outboundSchema,
|
|
2107
|
-
ttl:
|
|
2032
|
+
ttl: Ttl$outboundSchema.default("5m"),
|
|
2108
2033
|
});
|
|
2109
2034
|
|
|
2110
|
-
export function
|
|
2111
|
-
|
|
2112
|
-
): string {
|
|
2113
|
-
return JSON.stringify(
|
|
2114
|
-
DeploymentGetConfig2CacheControl$outboundSchema.parse(
|
|
2115
|
-
deploymentGetConfig2CacheControl,
|
|
2116
|
-
),
|
|
2117
|
-
);
|
|
2035
|
+
export function cacheControlToJSON(cacheControl: CacheControl): string {
|
|
2036
|
+
return JSON.stringify(CacheControl$outboundSchema.parse(cacheControl));
|
|
2118
2037
|
}
|
|
2119
2038
|
|
|
2120
2039
|
/** @internal */
|
|
2121
|
-
export type
|
|
2040
|
+
export type Four$Outbound = {
|
|
2122
2041
|
type: "file";
|
|
2123
|
-
cache_control?:
|
|
2042
|
+
cache_control?: CacheControl$Outbound | undefined;
|
|
2124
2043
|
file: components.FileContentPartSchema$Outbound;
|
|
2125
2044
|
};
|
|
2126
2045
|
|
|
2127
2046
|
/** @internal */
|
|
2128
|
-
export const
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
}).transform((v) => {
|
|
2138
|
-
return remap$(v, {
|
|
2139
|
-
cacheControl: "cache_control",
|
|
2047
|
+
export const Four$outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four> =
|
|
2048
|
+
z.object({
|
|
2049
|
+
type: z.literal("file"),
|
|
2050
|
+
cacheControl: z.lazy(() => CacheControl$outboundSchema).optional(),
|
|
2051
|
+
file: components.FileContentPartSchema$outboundSchema,
|
|
2052
|
+
}).transform((v) => {
|
|
2053
|
+
return remap$(v, {
|
|
2054
|
+
cacheControl: "cache_control",
|
|
2055
|
+
});
|
|
2140
2056
|
});
|
|
2141
|
-
});
|
|
2142
2057
|
|
|
2143
|
-
export function
|
|
2144
|
-
|
|
2145
|
-
): string {
|
|
2146
|
-
return JSON.stringify(
|
|
2147
|
-
DeploymentGetConfig24$outboundSchema.parse(deploymentGetConfig24),
|
|
2148
|
-
);
|
|
2058
|
+
export function fourToJSON(four: Four): string {
|
|
2059
|
+
return JSON.stringify(Four$outboundSchema.parse(four));
|
|
2149
2060
|
}
|
|
2150
2061
|
|
|
2151
2062
|
/** @internal */
|
|
2152
|
-
export type
|
|
2063
|
+
export type Content2$Outbound =
|
|
2153
2064
|
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
2154
2065
|
| components.ImageContentPartSchema$Outbound
|
|
2155
2066
|
| components.AudioContentPartSchema$Outbound
|
|
2156
|
-
|
|
|
2067
|
+
| Four$Outbound;
|
|
2157
2068
|
|
|
2158
2069
|
/** @internal */
|
|
2159
|
-
export const
|
|
2160
|
-
|
|
2070
|
+
export const Content2$outboundSchema: z.ZodType<
|
|
2071
|
+
Content2$Outbound,
|
|
2161
2072
|
z.ZodTypeDef,
|
|
2162
|
-
|
|
2073
|
+
Content2
|
|
2163
2074
|
> = z.union([
|
|
2164
2075
|
components.TextContentPartSchema$outboundSchema.and(
|
|
2165
2076
|
z.object({ type: z.literal("text") }),
|
|
2166
2077
|
),
|
|
2167
2078
|
components.ImageContentPartSchema$outboundSchema,
|
|
2168
2079
|
components.AudioContentPartSchema$outboundSchema,
|
|
2169
|
-
z.lazy(() =>
|
|
2080
|
+
z.lazy(() => Four$outboundSchema),
|
|
2170
2081
|
]);
|
|
2171
2082
|
|
|
2172
|
-
export function
|
|
2173
|
-
|
|
2174
|
-
): string {
|
|
2175
|
-
return JSON.stringify(
|
|
2176
|
-
DeploymentGetConfigContent2$outboundSchema.parse(
|
|
2177
|
-
deploymentGetConfigContent2,
|
|
2178
|
-
),
|
|
2179
|
-
);
|
|
2083
|
+
export function content2ToJSON(content2: Content2): string {
|
|
2084
|
+
return JSON.stringify(Content2$outboundSchema.parse(content2));
|
|
2180
2085
|
}
|
|
2181
2086
|
|
|
2182
2087
|
/** @internal */
|
|
2183
|
-
export type
|
|
2088
|
+
export type DeploymentGetConfigPrefixMessagesDeploymentsContent$Outbound =
|
|
2184
2089
|
| string
|
|
2185
2090
|
| Array<
|
|
2186
2091
|
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
2187
2092
|
| components.ImageContentPartSchema$Outbound
|
|
2188
2093
|
| components.AudioContentPartSchema$Outbound
|
|
2189
|
-
|
|
|
2094
|
+
| Four$Outbound
|
|
2190
2095
|
>;
|
|
2191
2096
|
|
|
2192
2097
|
/** @internal */
|
|
2193
|
-
export const
|
|
2098
|
+
export const DeploymentGetConfigPrefixMessagesDeploymentsContent$outboundSchema:
|
|
2194
2099
|
z.ZodType<
|
|
2195
|
-
|
|
2100
|
+
DeploymentGetConfigPrefixMessagesDeploymentsContent$Outbound,
|
|
2196
2101
|
z.ZodTypeDef,
|
|
2197
|
-
|
|
2102
|
+
DeploymentGetConfigPrefixMessagesDeploymentsContent
|
|
2198
2103
|
> = z.union([
|
|
2199
2104
|
z.string(),
|
|
2200
2105
|
z.array(
|
|
@@ -2204,23 +2109,24 @@ export const DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$outbound
|
|
|
2204
2109
|
),
|
|
2205
2110
|
components.ImageContentPartSchema$outboundSchema,
|
|
2206
2111
|
components.AudioContentPartSchema$outboundSchema,
|
|
2207
|
-
z.lazy(() =>
|
|
2112
|
+
z.lazy(() => Four$outboundSchema),
|
|
2208
2113
|
]),
|
|
2209
2114
|
),
|
|
2210
2115
|
]);
|
|
2211
2116
|
|
|
2212
|
-
export function
|
|
2213
|
-
|
|
2214
|
-
|
|
2117
|
+
export function deploymentGetConfigPrefixMessagesDeploymentsContentToJSON(
|
|
2118
|
+
deploymentGetConfigPrefixMessagesDeploymentsContent:
|
|
2119
|
+
DeploymentGetConfigPrefixMessagesDeploymentsContent,
|
|
2215
2120
|
): string {
|
|
2216
2121
|
return JSON.stringify(
|
|
2217
|
-
|
|
2218
|
-
|
|
2122
|
+
DeploymentGetConfigPrefixMessagesDeploymentsContent$outboundSchema.parse(
|
|
2123
|
+
deploymentGetConfigPrefixMessagesDeploymentsContent,
|
|
2124
|
+
),
|
|
2219
2125
|
);
|
|
2220
2126
|
}
|
|
2221
2127
|
|
|
2222
2128
|
/** @internal */
|
|
2223
|
-
export type
|
|
2129
|
+
export type UserMessage$Outbound = {
|
|
2224
2130
|
role: "user";
|
|
2225
2131
|
name?: string | undefined;
|
|
2226
2132
|
content:
|
|
@@ -2229,15 +2135,15 @@ export type PrefixMessagesUserMessage$Outbound = {
|
|
|
2229
2135
|
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
2230
2136
|
| components.ImageContentPartSchema$Outbound
|
|
2231
2137
|
| components.AudioContentPartSchema$Outbound
|
|
2232
|
-
|
|
|
2138
|
+
| Four$Outbound
|
|
2233
2139
|
>;
|
|
2234
2140
|
};
|
|
2235
2141
|
|
|
2236
2142
|
/** @internal */
|
|
2237
|
-
export const
|
|
2238
|
-
|
|
2143
|
+
export const UserMessage$outboundSchema: z.ZodType<
|
|
2144
|
+
UserMessage$Outbound,
|
|
2239
2145
|
z.ZodTypeDef,
|
|
2240
|
-
|
|
2146
|
+
UserMessage
|
|
2241
2147
|
> = z.object({
|
|
2242
2148
|
role: z.literal("user"),
|
|
2243
2149
|
name: z.string().optional(),
|
|
@@ -2250,59 +2156,54 @@ export const PrefixMessagesUserMessage$outboundSchema: z.ZodType<
|
|
|
2250
2156
|
),
|
|
2251
2157
|
components.ImageContentPartSchema$outboundSchema,
|
|
2252
2158
|
components.AudioContentPartSchema$outboundSchema,
|
|
2253
|
-
z.lazy(() =>
|
|
2159
|
+
z.lazy(() => Four$outboundSchema),
|
|
2254
2160
|
]),
|
|
2255
2161
|
),
|
|
2256
2162
|
]),
|
|
2257
2163
|
});
|
|
2258
2164
|
|
|
2259
|
-
export function
|
|
2260
|
-
|
|
2261
|
-
): string {
|
|
2262
|
-
return JSON.stringify(
|
|
2263
|
-
PrefixMessagesUserMessage$outboundSchema.parse(prefixMessagesUserMessage),
|
|
2264
|
-
);
|
|
2165
|
+
export function userMessageToJSON(userMessage: UserMessage): string {
|
|
2166
|
+
return JSON.stringify(UserMessage$outboundSchema.parse(userMessage));
|
|
2265
2167
|
}
|
|
2266
2168
|
|
|
2267
2169
|
/** @internal */
|
|
2268
|
-
export type
|
|
2170
|
+
export type DeploymentGetConfigPrefixMessagesContent$Outbound =
|
|
2269
2171
|
| string
|
|
2270
2172
|
| Array<components.TextContentPartSchema$Outbound>;
|
|
2271
2173
|
|
|
2272
2174
|
/** @internal */
|
|
2273
|
-
export const
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
]);
|
|
2175
|
+
export const DeploymentGetConfigPrefixMessagesContent$outboundSchema: z.ZodType<
|
|
2176
|
+
DeploymentGetConfigPrefixMessagesContent$Outbound,
|
|
2177
|
+
z.ZodTypeDef,
|
|
2178
|
+
DeploymentGetConfigPrefixMessagesContent
|
|
2179
|
+
> = z.union([
|
|
2180
|
+
z.string(),
|
|
2181
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
2182
|
+
]);
|
|
2282
2183
|
|
|
2283
|
-
export function
|
|
2284
|
-
|
|
2285
|
-
|
|
2184
|
+
export function deploymentGetConfigPrefixMessagesContentToJSON(
|
|
2185
|
+
deploymentGetConfigPrefixMessagesContent:
|
|
2186
|
+
DeploymentGetConfigPrefixMessagesContent,
|
|
2286
2187
|
): string {
|
|
2287
2188
|
return JSON.stringify(
|
|
2288
|
-
|
|
2289
|
-
|
|
2189
|
+
DeploymentGetConfigPrefixMessagesContent$outboundSchema.parse(
|
|
2190
|
+
deploymentGetConfigPrefixMessagesContent,
|
|
2290
2191
|
),
|
|
2291
2192
|
);
|
|
2292
2193
|
}
|
|
2293
2194
|
|
|
2294
2195
|
/** @internal */
|
|
2295
|
-
export type
|
|
2196
|
+
export type DeveloperMessage$Outbound = {
|
|
2296
2197
|
role: "developer";
|
|
2297
2198
|
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
2298
2199
|
name?: string | undefined;
|
|
2299
2200
|
};
|
|
2300
2201
|
|
|
2301
2202
|
/** @internal */
|
|
2302
|
-
export const
|
|
2303
|
-
|
|
2203
|
+
export const DeveloperMessage$outboundSchema: z.ZodType<
|
|
2204
|
+
DeveloperMessage$Outbound,
|
|
2304
2205
|
z.ZodTypeDef,
|
|
2305
|
-
|
|
2206
|
+
DeveloperMessage
|
|
2306
2207
|
> = z.object({
|
|
2307
2208
|
role: z.literal("developer"),
|
|
2308
2209
|
content: z.union([
|
|
@@ -2312,54 +2213,49 @@ export const PrefixMessagesDeveloperMessage$outboundSchema: z.ZodType<
|
|
|
2312
2213
|
name: z.string().optional(),
|
|
2313
2214
|
});
|
|
2314
2215
|
|
|
2315
|
-
export function
|
|
2316
|
-
|
|
2216
|
+
export function developerMessageToJSON(
|
|
2217
|
+
developerMessage: DeveloperMessage,
|
|
2317
2218
|
): string {
|
|
2318
2219
|
return JSON.stringify(
|
|
2319
|
-
|
|
2320
|
-
prefixMessagesDeveloperMessage,
|
|
2321
|
-
),
|
|
2220
|
+
DeveloperMessage$outboundSchema.parse(developerMessage),
|
|
2322
2221
|
);
|
|
2323
2222
|
}
|
|
2324
2223
|
|
|
2325
2224
|
/** @internal */
|
|
2326
|
-
export type
|
|
2225
|
+
export type PrefixMessagesContent$Outbound =
|
|
2327
2226
|
| string
|
|
2328
2227
|
| Array<components.TextContentPartSchema$Outbound>;
|
|
2329
2228
|
|
|
2330
2229
|
/** @internal */
|
|
2331
|
-
export const
|
|
2332
|
-
|
|
2230
|
+
export const PrefixMessagesContent$outboundSchema: z.ZodType<
|
|
2231
|
+
PrefixMessagesContent$Outbound,
|
|
2333
2232
|
z.ZodTypeDef,
|
|
2334
|
-
|
|
2233
|
+
PrefixMessagesContent
|
|
2335
2234
|
> = z.union([
|
|
2336
2235
|
z.string(),
|
|
2337
2236
|
z.array(components.TextContentPartSchema$outboundSchema),
|
|
2338
2237
|
]);
|
|
2339
2238
|
|
|
2340
|
-
export function
|
|
2341
|
-
|
|
2342
|
-
DeploymentGetConfigPrefixMessagesContent,
|
|
2239
|
+
export function prefixMessagesContentToJSON(
|
|
2240
|
+
prefixMessagesContent: PrefixMessagesContent,
|
|
2343
2241
|
): string {
|
|
2344
2242
|
return JSON.stringify(
|
|
2345
|
-
|
|
2346
|
-
deploymentGetConfigPrefixMessagesContent,
|
|
2347
|
-
),
|
|
2243
|
+
PrefixMessagesContent$outboundSchema.parse(prefixMessagesContent),
|
|
2348
2244
|
);
|
|
2349
2245
|
}
|
|
2350
2246
|
|
|
2351
2247
|
/** @internal */
|
|
2352
|
-
export type
|
|
2248
|
+
export type SystemMessage$Outbound = {
|
|
2353
2249
|
role: "system";
|
|
2354
2250
|
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
2355
2251
|
name?: string | undefined;
|
|
2356
2252
|
};
|
|
2357
2253
|
|
|
2358
2254
|
/** @internal */
|
|
2359
|
-
export const
|
|
2360
|
-
|
|
2255
|
+
export const SystemMessage$outboundSchema: z.ZodType<
|
|
2256
|
+
SystemMessage$Outbound,
|
|
2361
2257
|
z.ZodTypeDef,
|
|
2362
|
-
|
|
2258
|
+
SystemMessage
|
|
2363
2259
|
> = z.object({
|
|
2364
2260
|
role: z.literal("system"),
|
|
2365
2261
|
content: z.union([
|
|
@@ -2369,145 +2265,129 @@ export const PrefixMessagesSystemMessage$outboundSchema: z.ZodType<
|
|
|
2369
2265
|
name: z.string().optional(),
|
|
2370
2266
|
});
|
|
2371
2267
|
|
|
2372
|
-
export function
|
|
2373
|
-
|
|
2374
|
-
): string {
|
|
2375
|
-
return JSON.stringify(
|
|
2376
|
-
PrefixMessagesSystemMessage$outboundSchema.parse(
|
|
2377
|
-
prefixMessagesSystemMessage,
|
|
2378
|
-
),
|
|
2379
|
-
);
|
|
2268
|
+
export function systemMessageToJSON(systemMessage: SystemMessage): string {
|
|
2269
|
+
return JSON.stringify(SystemMessage$outboundSchema.parse(systemMessage));
|
|
2380
2270
|
}
|
|
2381
2271
|
|
|
2382
2272
|
/** @internal */
|
|
2383
|
-
export type
|
|
2384
|
-
|
|
|
2385
|
-
|
|
|
2386
|
-
|
|
|
2387
|
-
|
|
|
2388
|
-
|
|
|
2273
|
+
export type PrefixMessages$Outbound =
|
|
2274
|
+
| SystemMessage$Outbound
|
|
2275
|
+
| DeveloperMessage$Outbound
|
|
2276
|
+
| UserMessage$Outbound
|
|
2277
|
+
| AssistantMessage$Outbound
|
|
2278
|
+
| ToolMessage$Outbound;
|
|
2389
2279
|
|
|
2390
2280
|
/** @internal */
|
|
2391
|
-
export const
|
|
2392
|
-
|
|
2281
|
+
export const PrefixMessages$outboundSchema: z.ZodType<
|
|
2282
|
+
PrefixMessages$Outbound,
|
|
2393
2283
|
z.ZodTypeDef,
|
|
2394
|
-
|
|
2284
|
+
PrefixMessages
|
|
2395
2285
|
> = z.union([
|
|
2396
|
-
z.lazy(() =>
|
|
2397
|
-
z.lazy(() =>
|
|
2398
|
-
z.lazy(() =>
|
|
2399
|
-
z.lazy(() =>
|
|
2400
|
-
z.lazy(() =>
|
|
2286
|
+
z.lazy(() => SystemMessage$outboundSchema),
|
|
2287
|
+
z.lazy(() => DeveloperMessage$outboundSchema),
|
|
2288
|
+
z.lazy(() => UserMessage$outboundSchema),
|
|
2289
|
+
z.lazy(() => AssistantMessage$outboundSchema),
|
|
2290
|
+
z.lazy(() => ToolMessage$outboundSchema),
|
|
2401
2291
|
]);
|
|
2402
2292
|
|
|
2403
|
-
export function
|
|
2404
|
-
|
|
2405
|
-
): string {
|
|
2406
|
-
return JSON.stringify(
|
|
2407
|
-
DeploymentGetConfigPrefixMessages$outboundSchema.parse(
|
|
2408
|
-
deploymentGetConfigPrefixMessages,
|
|
2409
|
-
),
|
|
2410
|
-
);
|
|
2293
|
+
export function prefixMessagesToJSON(prefixMessages: PrefixMessages): string {
|
|
2294
|
+
return JSON.stringify(PrefixMessages$outboundSchema.parse(prefixMessages));
|
|
2411
2295
|
}
|
|
2412
2296
|
|
|
2413
2297
|
/** @internal */
|
|
2414
|
-
export type
|
|
2298
|
+
export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$Outbound =
|
|
2415
2299
|
components.TextContentPartSchema$Outbound;
|
|
2416
2300
|
|
|
2417
2301
|
/** @internal */
|
|
2418
|
-
export const
|
|
2302
|
+
export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$outboundSchema:
|
|
2419
2303
|
z.ZodType<
|
|
2420
|
-
|
|
2304
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$Outbound,
|
|
2421
2305
|
z.ZodTypeDef,
|
|
2422
|
-
|
|
2306
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2
|
|
2423
2307
|
> = components.TextContentPartSchema$outboundSchema;
|
|
2424
2308
|
|
|
2425
|
-
export function
|
|
2426
|
-
|
|
2427
|
-
|
|
2309
|
+
export function deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2ToJSON(
|
|
2310
|
+
deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2:
|
|
2311
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2,
|
|
2428
2312
|
): string {
|
|
2429
2313
|
return JSON.stringify(
|
|
2430
|
-
|
|
2431
|
-
.parse(
|
|
2314
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$outboundSchema
|
|
2315
|
+
.parse(deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2),
|
|
2432
2316
|
);
|
|
2433
2317
|
}
|
|
2434
2318
|
|
|
2435
2319
|
/** @internal */
|
|
2436
|
-
export type
|
|
2320
|
+
export type DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$Outbound =
|
|
2437
2321
|
| string
|
|
2438
2322
|
| Array<components.TextContentPartSchema$Outbound>;
|
|
2439
2323
|
|
|
2440
2324
|
/** @internal */
|
|
2441
|
-
export const
|
|
2325
|
+
export const DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$outboundSchema:
|
|
2442
2326
|
z.ZodType<
|
|
2443
|
-
|
|
2327
|
+
DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$Outbound,
|
|
2444
2328
|
z.ZodTypeDef,
|
|
2445
|
-
|
|
2329
|
+
DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent
|
|
2446
2330
|
> = z.union([
|
|
2447
2331
|
z.string(),
|
|
2448
2332
|
z.array(components.TextContentPartSchema$outboundSchema),
|
|
2449
2333
|
]);
|
|
2450
2334
|
|
|
2451
|
-
export function
|
|
2452
|
-
|
|
2453
|
-
|
|
2335
|
+
export function deploymentGetConfigMessagesDeploymentsRequestRequestBodyContentToJSON(
|
|
2336
|
+
deploymentGetConfigMessagesDeploymentsRequestRequestBodyContent:
|
|
2337
|
+
DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent,
|
|
2454
2338
|
): string {
|
|
2455
2339
|
return JSON.stringify(
|
|
2456
|
-
|
|
2457
|
-
.parse(
|
|
2340
|
+
DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$outboundSchema
|
|
2341
|
+
.parse(deploymentGetConfigMessagesDeploymentsRequestRequestBodyContent),
|
|
2458
2342
|
);
|
|
2459
2343
|
}
|
|
2460
2344
|
|
|
2461
2345
|
/** @internal */
|
|
2462
|
-
export const
|
|
2463
|
-
|
|
2464
|
-
|
|
2346
|
+
export const DeploymentGetConfigMessagesType$outboundSchema: z.ZodNativeEnum<
|
|
2347
|
+
typeof DeploymentGetConfigMessagesType
|
|
2348
|
+
> = z.nativeEnum(DeploymentGetConfigMessagesType);
|
|
2465
2349
|
|
|
2466
2350
|
/** @internal */
|
|
2467
|
-
export const
|
|
2468
|
-
|
|
2469
|
-
> = z.nativeEnum(DeploymentGetConfigMessagesTtl);
|
|
2351
|
+
export const MessagesTtl$outboundSchema: z.ZodNativeEnum<typeof MessagesTtl> = z
|
|
2352
|
+
.nativeEnum(MessagesTtl);
|
|
2470
2353
|
|
|
2471
2354
|
/** @internal */
|
|
2472
|
-
export type
|
|
2355
|
+
export type MessagesCacheControl$Outbound = {
|
|
2473
2356
|
type: string;
|
|
2474
2357
|
ttl: string;
|
|
2475
2358
|
};
|
|
2476
2359
|
|
|
2477
2360
|
/** @internal */
|
|
2478
|
-
export const
|
|
2479
|
-
|
|
2361
|
+
export const MessagesCacheControl$outboundSchema: z.ZodType<
|
|
2362
|
+
MessagesCacheControl$Outbound,
|
|
2480
2363
|
z.ZodTypeDef,
|
|
2481
|
-
|
|
2364
|
+
MessagesCacheControl
|
|
2482
2365
|
> = z.object({
|
|
2483
|
-
type:
|
|
2484
|
-
ttl:
|
|
2366
|
+
type: DeploymentGetConfigMessagesType$outboundSchema,
|
|
2367
|
+
ttl: MessagesTtl$outboundSchema.default("5m"),
|
|
2485
2368
|
});
|
|
2486
2369
|
|
|
2487
|
-
export function
|
|
2488
|
-
|
|
2489
|
-
DeploymentGetConfigMessagesCacheControl,
|
|
2370
|
+
export function messagesCacheControlToJSON(
|
|
2371
|
+
messagesCacheControl: MessagesCacheControl,
|
|
2490
2372
|
): string {
|
|
2491
2373
|
return JSON.stringify(
|
|
2492
|
-
|
|
2493
|
-
deploymentGetConfigMessagesCacheControl,
|
|
2494
|
-
),
|
|
2374
|
+
MessagesCacheControl$outboundSchema.parse(messagesCacheControl),
|
|
2495
2375
|
);
|
|
2496
2376
|
}
|
|
2497
2377
|
|
|
2498
2378
|
/** @internal */
|
|
2499
|
-
export type
|
|
2379
|
+
export type MessagesToolMessage$Outbound = {
|
|
2500
2380
|
role: "tool";
|
|
2501
2381
|
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
2502
2382
|
tool_call_id: string | null;
|
|
2503
|
-
cache_control?:
|
|
2383
|
+
cache_control?: MessagesCacheControl$Outbound | undefined;
|
|
2504
2384
|
};
|
|
2505
2385
|
|
|
2506
2386
|
/** @internal */
|
|
2507
|
-
export const
|
|
2508
|
-
|
|
2387
|
+
export const MessagesToolMessage$outboundSchema: z.ZodType<
|
|
2388
|
+
MessagesToolMessage$Outbound,
|
|
2509
2389
|
z.ZodTypeDef,
|
|
2510
|
-
|
|
2390
|
+
MessagesToolMessage
|
|
2511
2391
|
> = z.object({
|
|
2512
2392
|
role: z.literal("tool"),
|
|
2513
2393
|
content: z.union([
|
|
@@ -2515,9 +2395,7 @@ export const DeploymentGetConfigMessagesToolMessage$outboundSchema: z.ZodType<
|
|
|
2515
2395
|
z.array(components.TextContentPartSchema$outboundSchema),
|
|
2516
2396
|
]),
|
|
2517
2397
|
toolCallId: z.nullable(z.string()),
|
|
2518
|
-
cacheControl: z.lazy(() =>
|
|
2519
|
-
DeploymentGetConfigMessagesCacheControl$outboundSchema
|
|
2520
|
-
).optional(),
|
|
2398
|
+
cacheControl: z.lazy(() => MessagesCacheControl$outboundSchema).optional(),
|
|
2521
2399
|
}).transform((v) => {
|
|
2522
2400
|
return remap$(v, {
|
|
2523
2401
|
toolCallId: "tool_call_id",
|
|
@@ -2525,30 +2403,27 @@ export const DeploymentGetConfigMessagesToolMessage$outboundSchema: z.ZodType<
|
|
|
2525
2403
|
});
|
|
2526
2404
|
});
|
|
2527
2405
|
|
|
2528
|
-
export function
|
|
2529
|
-
|
|
2530
|
-
DeploymentGetConfigMessagesToolMessage,
|
|
2406
|
+
export function messagesToolMessageToJSON(
|
|
2407
|
+
messagesToolMessage: MessagesToolMessage,
|
|
2531
2408
|
): string {
|
|
2532
2409
|
return JSON.stringify(
|
|
2533
|
-
|
|
2534
|
-
deploymentGetConfigMessagesToolMessage,
|
|
2535
|
-
),
|
|
2410
|
+
MessagesToolMessage$outboundSchema.parse(messagesToolMessage),
|
|
2536
2411
|
);
|
|
2537
2412
|
}
|
|
2538
2413
|
|
|
2539
2414
|
/** @internal */
|
|
2540
|
-
export type
|
|
2415
|
+
export type DeploymentGetConfigContentDeploymentsRequestRequestBody2$Outbound =
|
|
2541
2416
|
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
2542
2417
|
| components.RefusalPartSchema$Outbound
|
|
2543
2418
|
| components.ReasoningPartSchema$Outbound
|
|
2544
2419
|
| components.RedactedReasoningPartSchema$Outbound;
|
|
2545
2420
|
|
|
2546
2421
|
/** @internal */
|
|
2547
|
-
export const
|
|
2422
|
+
export const DeploymentGetConfigContentDeploymentsRequestRequestBody2$outboundSchema:
|
|
2548
2423
|
z.ZodType<
|
|
2549
|
-
|
|
2424
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBody2$Outbound,
|
|
2550
2425
|
z.ZodTypeDef,
|
|
2551
|
-
|
|
2426
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBody2
|
|
2552
2427
|
> = z.union([
|
|
2553
2428
|
components.TextContentPartSchema$outboundSchema.and(
|
|
2554
2429
|
z.object({ type: z.literal("text") }),
|
|
@@ -2558,18 +2433,18 @@ export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$ou
|
|
|
2558
2433
|
components.RedactedReasoningPartSchema$outboundSchema,
|
|
2559
2434
|
]);
|
|
2560
2435
|
|
|
2561
|
-
export function
|
|
2562
|
-
|
|
2563
|
-
|
|
2436
|
+
export function deploymentGetConfigContentDeploymentsRequestRequestBody2ToJSON(
|
|
2437
|
+
deploymentGetConfigContentDeploymentsRequestRequestBody2:
|
|
2438
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBody2,
|
|
2564
2439
|
): string {
|
|
2565
2440
|
return JSON.stringify(
|
|
2566
|
-
|
|
2567
|
-
.parse(
|
|
2441
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBody2$outboundSchema
|
|
2442
|
+
.parse(deploymentGetConfigContentDeploymentsRequestRequestBody2),
|
|
2568
2443
|
);
|
|
2569
2444
|
}
|
|
2570
2445
|
|
|
2571
2446
|
/** @internal */
|
|
2572
|
-
export type
|
|
2447
|
+
export type DeploymentGetConfigMessagesDeploymentsRequestContent$Outbound =
|
|
2573
2448
|
| string
|
|
2574
2449
|
| Array<
|
|
2575
2450
|
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
@@ -2579,11 +2454,11 @@ export type DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$Outb
|
|
|
2579
2454
|
>;
|
|
2580
2455
|
|
|
2581
2456
|
/** @internal */
|
|
2582
|
-
export const
|
|
2457
|
+
export const DeploymentGetConfigMessagesDeploymentsRequestContent$outboundSchema:
|
|
2583
2458
|
z.ZodType<
|
|
2584
|
-
|
|
2459
|
+
DeploymentGetConfigMessagesDeploymentsRequestContent$Outbound,
|
|
2585
2460
|
z.ZodTypeDef,
|
|
2586
|
-
|
|
2461
|
+
DeploymentGetConfigMessagesDeploymentsRequestContent
|
|
2587
2462
|
> = z.union([
|
|
2588
2463
|
z.string(),
|
|
2589
2464
|
z.array(
|
|
@@ -2598,88 +2473,80 @@ export const DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$out
|
|
|
2598
2473
|
),
|
|
2599
2474
|
]);
|
|
2600
2475
|
|
|
2601
|
-
export function
|
|
2602
|
-
|
|
2603
|
-
|
|
2476
|
+
export function deploymentGetConfigMessagesDeploymentsRequestContentToJSON(
|
|
2477
|
+
deploymentGetConfigMessagesDeploymentsRequestContent:
|
|
2478
|
+
DeploymentGetConfigMessagesDeploymentsRequestContent,
|
|
2604
2479
|
): string {
|
|
2605
2480
|
return JSON.stringify(
|
|
2606
|
-
|
|
2607
|
-
|
|
2481
|
+
DeploymentGetConfigMessagesDeploymentsRequestContent$outboundSchema.parse(
|
|
2482
|
+
deploymentGetConfigMessagesDeploymentsRequestContent,
|
|
2483
|
+
),
|
|
2608
2484
|
);
|
|
2609
2485
|
}
|
|
2610
2486
|
|
|
2611
2487
|
/** @internal */
|
|
2612
|
-
export type
|
|
2488
|
+
export type MessagesAudio$Outbound = {
|
|
2613
2489
|
id: string;
|
|
2614
2490
|
};
|
|
2615
2491
|
|
|
2616
2492
|
/** @internal */
|
|
2617
|
-
export const
|
|
2618
|
-
|
|
2493
|
+
export const MessagesAudio$outboundSchema: z.ZodType<
|
|
2494
|
+
MessagesAudio$Outbound,
|
|
2619
2495
|
z.ZodTypeDef,
|
|
2620
|
-
|
|
2496
|
+
MessagesAudio
|
|
2621
2497
|
> = z.object({
|
|
2622
2498
|
id: z.string(),
|
|
2623
2499
|
});
|
|
2624
2500
|
|
|
2625
|
-
export function
|
|
2626
|
-
|
|
2627
|
-
): string {
|
|
2628
|
-
return JSON.stringify(
|
|
2629
|
-
DeploymentGetConfigMessagesAudio$outboundSchema.parse(
|
|
2630
|
-
deploymentGetConfigMessagesAudio,
|
|
2631
|
-
),
|
|
2632
|
-
);
|
|
2501
|
+
export function messagesAudioToJSON(messagesAudio: MessagesAudio): string {
|
|
2502
|
+
return JSON.stringify(MessagesAudio$outboundSchema.parse(messagesAudio));
|
|
2633
2503
|
}
|
|
2634
2504
|
|
|
2635
2505
|
/** @internal */
|
|
2636
|
-
export const
|
|
2637
|
-
|
|
2638
|
-
> = z.nativeEnum(DeploymentGetConfigMessagesType);
|
|
2506
|
+
export const MessagesType$outboundSchema: z.ZodNativeEnum<typeof MessagesType> =
|
|
2507
|
+
z.nativeEnum(MessagesType);
|
|
2639
2508
|
|
|
2640
2509
|
/** @internal */
|
|
2641
|
-
export type
|
|
2510
|
+
export type MessagesFunction$Outbound = {
|
|
2642
2511
|
name?: string | undefined;
|
|
2643
2512
|
arguments?: string | undefined;
|
|
2644
2513
|
};
|
|
2645
2514
|
|
|
2646
2515
|
/** @internal */
|
|
2647
|
-
export const
|
|
2648
|
-
|
|
2516
|
+
export const MessagesFunction$outboundSchema: z.ZodType<
|
|
2517
|
+
MessagesFunction$Outbound,
|
|
2649
2518
|
z.ZodTypeDef,
|
|
2650
|
-
|
|
2519
|
+
MessagesFunction
|
|
2651
2520
|
> = z.object({
|
|
2652
2521
|
name: z.string().optional(),
|
|
2653
2522
|
arguments: z.string().optional(),
|
|
2654
2523
|
});
|
|
2655
2524
|
|
|
2656
|
-
export function
|
|
2657
|
-
|
|
2525
|
+
export function messagesFunctionToJSON(
|
|
2526
|
+
messagesFunction: MessagesFunction,
|
|
2658
2527
|
): string {
|
|
2659
2528
|
return JSON.stringify(
|
|
2660
|
-
|
|
2661
|
-
deploymentGetConfigMessagesFunction,
|
|
2662
|
-
),
|
|
2529
|
+
MessagesFunction$outboundSchema.parse(messagesFunction),
|
|
2663
2530
|
);
|
|
2664
2531
|
}
|
|
2665
2532
|
|
|
2666
2533
|
/** @internal */
|
|
2667
|
-
export type
|
|
2534
|
+
export type MessagesToolCalls$Outbound = {
|
|
2668
2535
|
id: string;
|
|
2669
2536
|
type: string;
|
|
2670
|
-
function:
|
|
2537
|
+
function: MessagesFunction$Outbound;
|
|
2671
2538
|
thought_signature?: string | undefined;
|
|
2672
2539
|
};
|
|
2673
2540
|
|
|
2674
2541
|
/** @internal */
|
|
2675
|
-
export const
|
|
2676
|
-
|
|
2542
|
+
export const MessagesToolCalls$outboundSchema: z.ZodType<
|
|
2543
|
+
MessagesToolCalls$Outbound,
|
|
2677
2544
|
z.ZodTypeDef,
|
|
2678
|
-
|
|
2545
|
+
MessagesToolCalls
|
|
2679
2546
|
> = z.object({
|
|
2680
2547
|
id: z.string(),
|
|
2681
|
-
type:
|
|
2682
|
-
function: z.lazy(() =>
|
|
2548
|
+
type: MessagesType$outboundSchema,
|
|
2549
|
+
function: z.lazy(() => MessagesFunction$outboundSchema),
|
|
2683
2550
|
thoughtSignature: z.string().optional(),
|
|
2684
2551
|
}).transform((v) => {
|
|
2685
2552
|
return remap$(v, {
|
|
@@ -2687,18 +2554,16 @@ export const DeploymentGetConfigMessagesToolCalls$outboundSchema: z.ZodType<
|
|
|
2687
2554
|
});
|
|
2688
2555
|
});
|
|
2689
2556
|
|
|
2690
|
-
export function
|
|
2691
|
-
|
|
2557
|
+
export function messagesToolCallsToJSON(
|
|
2558
|
+
messagesToolCalls: MessagesToolCalls,
|
|
2692
2559
|
): string {
|
|
2693
2560
|
return JSON.stringify(
|
|
2694
|
-
|
|
2695
|
-
deploymentGetConfigMessagesToolCalls,
|
|
2696
|
-
),
|
|
2561
|
+
MessagesToolCalls$outboundSchema.parse(messagesToolCalls),
|
|
2697
2562
|
);
|
|
2698
2563
|
}
|
|
2699
2564
|
|
|
2700
2565
|
/** @internal */
|
|
2701
|
-
export type
|
|
2566
|
+
export type MessagesAssistantMessage$Outbound = {
|
|
2702
2567
|
content?:
|
|
2703
2568
|
| string
|
|
2704
2569
|
| Array<
|
|
@@ -2712,55 +2577,47 @@ export type DeploymentGetConfigMessagesAssistantMessage$Outbound = {
|
|
|
2712
2577
|
refusal?: string | null | undefined;
|
|
2713
2578
|
role: "assistant";
|
|
2714
2579
|
name?: string | undefined;
|
|
2715
|
-
audio?:
|
|
2716
|
-
tool_calls?: Array<
|
|
2580
|
+
audio?: MessagesAudio$Outbound | null | undefined;
|
|
2581
|
+
tool_calls?: Array<MessagesToolCalls$Outbound> | undefined;
|
|
2717
2582
|
};
|
|
2718
2583
|
|
|
2719
2584
|
/** @internal */
|
|
2720
|
-
export const
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
z.
|
|
2728
|
-
|
|
2729
|
-
z.
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
toolCalls:
|
|
2748
|
-
z.lazy(() => DeploymentGetConfigMessagesToolCalls$outboundSchema),
|
|
2749
|
-
).optional(),
|
|
2750
|
-
}).transform((v) => {
|
|
2751
|
-
return remap$(v, {
|
|
2752
|
-
toolCalls: "tool_calls",
|
|
2753
|
-
});
|
|
2585
|
+
export const MessagesAssistantMessage$outboundSchema: z.ZodType<
|
|
2586
|
+
MessagesAssistantMessage$Outbound,
|
|
2587
|
+
z.ZodTypeDef,
|
|
2588
|
+
MessagesAssistantMessage
|
|
2589
|
+
> = z.object({
|
|
2590
|
+
content: z.nullable(
|
|
2591
|
+
z.union([
|
|
2592
|
+
z.string(),
|
|
2593
|
+
z.array(
|
|
2594
|
+
z.union([
|
|
2595
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
2596
|
+
z.object({ type: z.literal("text") }),
|
|
2597
|
+
),
|
|
2598
|
+
components.RefusalPartSchema$outboundSchema,
|
|
2599
|
+
components.ReasoningPartSchema$outboundSchema,
|
|
2600
|
+
components.RedactedReasoningPartSchema$outboundSchema,
|
|
2601
|
+
]),
|
|
2602
|
+
),
|
|
2603
|
+
]),
|
|
2604
|
+
).optional(),
|
|
2605
|
+
refusal: z.nullable(z.string()).optional(),
|
|
2606
|
+
role: z.literal("assistant"),
|
|
2607
|
+
name: z.string().optional(),
|
|
2608
|
+
audio: z.nullable(z.lazy(() => MessagesAudio$outboundSchema)).optional(),
|
|
2609
|
+
toolCalls: z.array(z.lazy(() => MessagesToolCalls$outboundSchema)).optional(),
|
|
2610
|
+
}).transform((v) => {
|
|
2611
|
+
return remap$(v, {
|
|
2612
|
+
toolCalls: "tool_calls",
|
|
2754
2613
|
});
|
|
2614
|
+
});
|
|
2755
2615
|
|
|
2756
|
-
export function
|
|
2757
|
-
|
|
2758
|
-
DeploymentGetConfigMessagesAssistantMessage,
|
|
2616
|
+
export function messagesAssistantMessageToJSON(
|
|
2617
|
+
messagesAssistantMessage: MessagesAssistantMessage,
|
|
2759
2618
|
): string {
|
|
2760
2619
|
return JSON.stringify(
|
|
2761
|
-
|
|
2762
|
-
deploymentGetConfigMessagesAssistantMessage,
|
|
2763
|
-
),
|
|
2620
|
+
MessagesAssistantMessage$outboundSchema.parse(messagesAssistantMessage),
|
|
2764
2621
|
);
|
|
2765
2622
|
}
|
|
2766
2623
|
|
|
@@ -2771,122 +2628,103 @@ export const DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchem
|
|
|
2771
2628
|
> = z.nativeEnum(DeploymentGetConfig2DeploymentsRequestRequestBodyType);
|
|
2772
2629
|
|
|
2773
2630
|
/** @internal */
|
|
2774
|
-
export const
|
|
2775
|
-
|
|
2776
|
-
> = z.nativeEnum(DeploymentGetConfig2DeploymentsTtl);
|
|
2631
|
+
export const TwoTtl$outboundSchema: z.ZodNativeEnum<typeof TwoTtl> = z
|
|
2632
|
+
.nativeEnum(TwoTtl);
|
|
2777
2633
|
|
|
2778
2634
|
/** @internal */
|
|
2779
|
-
export type
|
|
2635
|
+
export type TwoCacheControl$Outbound = {
|
|
2780
2636
|
type: string;
|
|
2781
2637
|
ttl: string;
|
|
2782
2638
|
};
|
|
2783
2639
|
|
|
2784
2640
|
/** @internal */
|
|
2785
|
-
export const
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
});
|
|
2641
|
+
export const TwoCacheControl$outboundSchema: z.ZodType<
|
|
2642
|
+
TwoCacheControl$Outbound,
|
|
2643
|
+
z.ZodTypeDef,
|
|
2644
|
+
TwoCacheControl
|
|
2645
|
+
> = z.object({
|
|
2646
|
+
type: DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema,
|
|
2647
|
+
ttl: TwoTtl$outboundSchema.default("5m"),
|
|
2648
|
+
});
|
|
2794
2649
|
|
|
2795
|
-
export function
|
|
2796
|
-
|
|
2797
|
-
DeploymentGetConfig2DeploymentsCacheControl,
|
|
2650
|
+
export function twoCacheControlToJSON(
|
|
2651
|
+
twoCacheControl: TwoCacheControl,
|
|
2798
2652
|
): string {
|
|
2799
|
-
return JSON.stringify(
|
|
2800
|
-
DeploymentGetConfig2DeploymentsCacheControl$outboundSchema.parse(
|
|
2801
|
-
deploymentGetConfig2DeploymentsCacheControl,
|
|
2802
|
-
),
|
|
2803
|
-
);
|
|
2653
|
+
return JSON.stringify(TwoCacheControl$outboundSchema.parse(twoCacheControl));
|
|
2804
2654
|
}
|
|
2805
2655
|
|
|
2806
2656
|
/** @internal */
|
|
2807
|
-
export type
|
|
2657
|
+
export type Two4$Outbound = {
|
|
2808
2658
|
type: "file";
|
|
2809
|
-
cache_control?:
|
|
2810
|
-
| DeploymentGetConfig2DeploymentsCacheControl$Outbound
|
|
2811
|
-
| undefined;
|
|
2659
|
+
cache_control?: TwoCacheControl$Outbound | undefined;
|
|
2812
2660
|
file: components.FileContentPartSchema$Outbound;
|
|
2813
2661
|
};
|
|
2814
2662
|
|
|
2815
2663
|
/** @internal */
|
|
2816
|
-
export const
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
file: components.FileContentPartSchema$outboundSchema,
|
|
2826
|
-
}).transform((v) => {
|
|
2827
|
-
return remap$(v, {
|
|
2828
|
-
cacheControl: "cache_control",
|
|
2664
|
+
export const Two4$outboundSchema: z.ZodType<Two4$Outbound, z.ZodTypeDef, Two4> =
|
|
2665
|
+
z.object({
|
|
2666
|
+
type: z.literal("file"),
|
|
2667
|
+
cacheControl: z.lazy(() => TwoCacheControl$outboundSchema).optional(),
|
|
2668
|
+
file: components.FileContentPartSchema$outboundSchema,
|
|
2669
|
+
}).transform((v) => {
|
|
2670
|
+
return remap$(v, {
|
|
2671
|
+
cacheControl: "cache_control",
|
|
2672
|
+
});
|
|
2829
2673
|
});
|
|
2830
|
-
});
|
|
2831
2674
|
|
|
2832
|
-
export function
|
|
2833
|
-
|
|
2834
|
-
): string {
|
|
2835
|
-
return JSON.stringify(
|
|
2836
|
-
DeploymentGetConfig2Deployments4$outboundSchema.parse(
|
|
2837
|
-
deploymentGetConfig2Deployments4,
|
|
2838
|
-
),
|
|
2839
|
-
);
|
|
2675
|
+
export function two4ToJSON(two4: Two4): string {
|
|
2676
|
+
return JSON.stringify(Two4$outboundSchema.parse(two4));
|
|
2840
2677
|
}
|
|
2841
2678
|
|
|
2842
2679
|
/** @internal */
|
|
2843
|
-
export type
|
|
2680
|
+
export type DeploymentGetConfigContentDeploymentsRequest2$Outbound =
|
|
2844
2681
|
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
2845
2682
|
| components.ImageContentPartSchema$Outbound
|
|
2846
2683
|
| components.AudioContentPartSchema$Outbound
|
|
2847
|
-
|
|
|
2684
|
+
| Two4$Outbound;
|
|
2848
2685
|
|
|
2849
2686
|
/** @internal */
|
|
2850
|
-
export const
|
|
2687
|
+
export const DeploymentGetConfigContentDeploymentsRequest2$outboundSchema:
|
|
2851
2688
|
z.ZodType<
|
|
2852
|
-
|
|
2689
|
+
DeploymentGetConfigContentDeploymentsRequest2$Outbound,
|
|
2853
2690
|
z.ZodTypeDef,
|
|
2854
|
-
|
|
2691
|
+
DeploymentGetConfigContentDeploymentsRequest2
|
|
2855
2692
|
> = z.union([
|
|
2856
2693
|
components.TextContentPartSchema$outboundSchema.and(
|
|
2857
2694
|
z.object({ type: z.literal("text") }),
|
|
2858
2695
|
),
|
|
2859
2696
|
components.ImageContentPartSchema$outboundSchema,
|
|
2860
2697
|
components.AudioContentPartSchema$outboundSchema,
|
|
2861
|
-
z.lazy(() =>
|
|
2698
|
+
z.lazy(() => Two4$outboundSchema),
|
|
2862
2699
|
]);
|
|
2863
2700
|
|
|
2864
|
-
export function
|
|
2865
|
-
|
|
2866
|
-
|
|
2701
|
+
export function deploymentGetConfigContentDeploymentsRequest2ToJSON(
|
|
2702
|
+
deploymentGetConfigContentDeploymentsRequest2:
|
|
2703
|
+
DeploymentGetConfigContentDeploymentsRequest2,
|
|
2867
2704
|
): string {
|
|
2868
2705
|
return JSON.stringify(
|
|
2869
|
-
|
|
2870
|
-
|
|
2706
|
+
DeploymentGetConfigContentDeploymentsRequest2$outboundSchema.parse(
|
|
2707
|
+
deploymentGetConfigContentDeploymentsRequest2,
|
|
2708
|
+
),
|
|
2871
2709
|
);
|
|
2872
2710
|
}
|
|
2873
2711
|
|
|
2874
2712
|
/** @internal */
|
|
2875
|
-
export type
|
|
2713
|
+
export type DeploymentGetConfigMessagesDeploymentsContent$Outbound =
|
|
2876
2714
|
| string
|
|
2877
2715
|
| Array<
|
|
2878
2716
|
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
2879
2717
|
| components.ImageContentPartSchema$Outbound
|
|
2880
2718
|
| components.AudioContentPartSchema$Outbound
|
|
2881
|
-
|
|
|
2719
|
+
| Two4$Outbound
|
|
2882
2720
|
>;
|
|
2883
2721
|
|
|
2884
2722
|
/** @internal */
|
|
2885
|
-
export const
|
|
2723
|
+
export const DeploymentGetConfigMessagesDeploymentsContent$outboundSchema:
|
|
2886
2724
|
z.ZodType<
|
|
2887
|
-
|
|
2725
|
+
DeploymentGetConfigMessagesDeploymentsContent$Outbound,
|
|
2888
2726
|
z.ZodTypeDef,
|
|
2889
|
-
|
|
2727
|
+
DeploymentGetConfigMessagesDeploymentsContent
|
|
2890
2728
|
> = z.union([
|
|
2891
2729
|
z.string(),
|
|
2892
2730
|
z.array(
|
|
@@ -2896,24 +2734,24 @@ export const DeploymentGetConfigMessagesDeploymentsRequestContent$outboundSchema
|
|
|
2896
2734
|
),
|
|
2897
2735
|
components.ImageContentPartSchema$outboundSchema,
|
|
2898
2736
|
components.AudioContentPartSchema$outboundSchema,
|
|
2899
|
-
z.lazy(() =>
|
|
2737
|
+
z.lazy(() => Two4$outboundSchema),
|
|
2900
2738
|
]),
|
|
2901
2739
|
),
|
|
2902
2740
|
]);
|
|
2903
2741
|
|
|
2904
|
-
export function
|
|
2905
|
-
|
|
2906
|
-
|
|
2742
|
+
export function deploymentGetConfigMessagesDeploymentsContentToJSON(
|
|
2743
|
+
deploymentGetConfigMessagesDeploymentsContent:
|
|
2744
|
+
DeploymentGetConfigMessagesDeploymentsContent,
|
|
2907
2745
|
): string {
|
|
2908
2746
|
return JSON.stringify(
|
|
2909
|
-
|
|
2910
|
-
|
|
2747
|
+
DeploymentGetConfigMessagesDeploymentsContent$outboundSchema.parse(
|
|
2748
|
+
deploymentGetConfigMessagesDeploymentsContent,
|
|
2911
2749
|
),
|
|
2912
2750
|
);
|
|
2913
2751
|
}
|
|
2914
2752
|
|
|
2915
2753
|
/** @internal */
|
|
2916
|
-
export type
|
|
2754
|
+
export type MessagesUserMessage$Outbound = {
|
|
2917
2755
|
role: "user";
|
|
2918
2756
|
name?: string | undefined;
|
|
2919
2757
|
content:
|
|
@@ -2922,15 +2760,15 @@ export type DeploymentGetConfigMessagesUserMessage$Outbound = {
|
|
|
2922
2760
|
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
2923
2761
|
| components.ImageContentPartSchema$Outbound
|
|
2924
2762
|
| components.AudioContentPartSchema$Outbound
|
|
2925
|
-
|
|
|
2763
|
+
| Two4$Outbound
|
|
2926
2764
|
>;
|
|
2927
2765
|
};
|
|
2928
2766
|
|
|
2929
2767
|
/** @internal */
|
|
2930
|
-
export const
|
|
2931
|
-
|
|
2768
|
+
export const MessagesUserMessage$outboundSchema: z.ZodType<
|
|
2769
|
+
MessagesUserMessage$Outbound,
|
|
2932
2770
|
z.ZodTypeDef,
|
|
2933
|
-
|
|
2771
|
+
MessagesUserMessage
|
|
2934
2772
|
> = z.object({
|
|
2935
2773
|
role: z.literal("user"),
|
|
2936
2774
|
name: z.string().optional(),
|
|
@@ -2943,120 +2781,107 @@ export const DeploymentGetConfigMessagesUserMessage$outboundSchema: z.ZodType<
|
|
|
2943
2781
|
),
|
|
2944
2782
|
components.ImageContentPartSchema$outboundSchema,
|
|
2945
2783
|
components.AudioContentPartSchema$outboundSchema,
|
|
2946
|
-
z.lazy(() =>
|
|
2784
|
+
z.lazy(() => Two4$outboundSchema),
|
|
2947
2785
|
]),
|
|
2948
2786
|
),
|
|
2949
2787
|
]),
|
|
2950
2788
|
});
|
|
2951
2789
|
|
|
2952
|
-
export function
|
|
2953
|
-
|
|
2954
|
-
DeploymentGetConfigMessagesUserMessage,
|
|
2790
|
+
export function messagesUserMessageToJSON(
|
|
2791
|
+
messagesUserMessage: MessagesUserMessage,
|
|
2955
2792
|
): string {
|
|
2956
2793
|
return JSON.stringify(
|
|
2957
|
-
|
|
2958
|
-
deploymentGetConfigMessagesUserMessage,
|
|
2959
|
-
),
|
|
2794
|
+
MessagesUserMessage$outboundSchema.parse(messagesUserMessage),
|
|
2960
2795
|
);
|
|
2961
2796
|
}
|
|
2962
2797
|
|
|
2963
2798
|
/** @internal */
|
|
2964
|
-
export type
|
|
2799
|
+
export type DeploymentGetConfigMessagesContent$Outbound =
|
|
2965
2800
|
| string
|
|
2966
2801
|
| Array<components.TextContentPartSchema$Outbound>;
|
|
2967
2802
|
|
|
2968
2803
|
/** @internal */
|
|
2969
|
-
export const
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
]);
|
|
2804
|
+
export const DeploymentGetConfigMessagesContent$outboundSchema: z.ZodType<
|
|
2805
|
+
DeploymentGetConfigMessagesContent$Outbound,
|
|
2806
|
+
z.ZodTypeDef,
|
|
2807
|
+
DeploymentGetConfigMessagesContent
|
|
2808
|
+
> = z.union([
|
|
2809
|
+
z.string(),
|
|
2810
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
2811
|
+
]);
|
|
2978
2812
|
|
|
2979
|
-
export function
|
|
2980
|
-
|
|
2981
|
-
DeploymentGetConfigMessagesDeploymentsContent,
|
|
2813
|
+
export function deploymentGetConfigMessagesContentToJSON(
|
|
2814
|
+
deploymentGetConfigMessagesContent: DeploymentGetConfigMessagesContent,
|
|
2982
2815
|
): string {
|
|
2983
2816
|
return JSON.stringify(
|
|
2984
|
-
|
|
2985
|
-
|
|
2817
|
+
DeploymentGetConfigMessagesContent$outboundSchema.parse(
|
|
2818
|
+
deploymentGetConfigMessagesContent,
|
|
2986
2819
|
),
|
|
2987
2820
|
);
|
|
2988
2821
|
}
|
|
2989
2822
|
|
|
2990
2823
|
/** @internal */
|
|
2991
|
-
export type
|
|
2824
|
+
export type MessagesDeveloperMessage$Outbound = {
|
|
2992
2825
|
role: "developer";
|
|
2993
2826
|
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
2994
2827
|
name?: string | undefined;
|
|
2995
2828
|
};
|
|
2996
2829
|
|
|
2997
2830
|
/** @internal */
|
|
2998
|
-
export const
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
});
|
|
2831
|
+
export const MessagesDeveloperMessage$outboundSchema: z.ZodType<
|
|
2832
|
+
MessagesDeveloperMessage$Outbound,
|
|
2833
|
+
z.ZodTypeDef,
|
|
2834
|
+
MessagesDeveloperMessage
|
|
2835
|
+
> = z.object({
|
|
2836
|
+
role: z.literal("developer"),
|
|
2837
|
+
content: z.union([
|
|
2838
|
+
z.string(),
|
|
2839
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
2840
|
+
]),
|
|
2841
|
+
name: z.string().optional(),
|
|
2842
|
+
});
|
|
3011
2843
|
|
|
3012
|
-
export function
|
|
3013
|
-
|
|
3014
|
-
DeploymentGetConfigMessagesDeveloperMessage,
|
|
2844
|
+
export function messagesDeveloperMessageToJSON(
|
|
2845
|
+
messagesDeveloperMessage: MessagesDeveloperMessage,
|
|
3015
2846
|
): string {
|
|
3016
2847
|
return JSON.stringify(
|
|
3017
|
-
|
|
3018
|
-
deploymentGetConfigMessagesDeveloperMessage,
|
|
3019
|
-
),
|
|
2848
|
+
MessagesDeveloperMessage$outboundSchema.parse(messagesDeveloperMessage),
|
|
3020
2849
|
);
|
|
3021
2850
|
}
|
|
3022
2851
|
|
|
3023
2852
|
/** @internal */
|
|
3024
|
-
export type
|
|
2853
|
+
export type MessagesContent$Outbound =
|
|
3025
2854
|
| string
|
|
3026
2855
|
| Array<components.TextContentPartSchema$Outbound>;
|
|
3027
2856
|
|
|
3028
2857
|
/** @internal */
|
|
3029
|
-
export const
|
|
3030
|
-
|
|
2858
|
+
export const MessagesContent$outboundSchema: z.ZodType<
|
|
2859
|
+
MessagesContent$Outbound,
|
|
3031
2860
|
z.ZodTypeDef,
|
|
3032
|
-
|
|
2861
|
+
MessagesContent
|
|
3033
2862
|
> = z.union([
|
|
3034
2863
|
z.string(),
|
|
3035
2864
|
z.array(components.TextContentPartSchema$outboundSchema),
|
|
3036
2865
|
]);
|
|
3037
2866
|
|
|
3038
|
-
export function
|
|
3039
|
-
|
|
2867
|
+
export function messagesContentToJSON(
|
|
2868
|
+
messagesContent: MessagesContent,
|
|
3040
2869
|
): string {
|
|
3041
|
-
return JSON.stringify(
|
|
3042
|
-
DeploymentGetConfigMessagesContent$outboundSchema.parse(
|
|
3043
|
-
deploymentGetConfigMessagesContent,
|
|
3044
|
-
),
|
|
3045
|
-
);
|
|
2870
|
+
return JSON.stringify(MessagesContent$outboundSchema.parse(messagesContent));
|
|
3046
2871
|
}
|
|
3047
2872
|
|
|
3048
2873
|
/** @internal */
|
|
3049
|
-
export type
|
|
2874
|
+
export type MessagesSystemMessage$Outbound = {
|
|
3050
2875
|
role: "system";
|
|
3051
2876
|
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
3052
2877
|
name?: string | undefined;
|
|
3053
2878
|
};
|
|
3054
2879
|
|
|
3055
2880
|
/** @internal */
|
|
3056
|
-
export const
|
|
3057
|
-
|
|
2881
|
+
export const MessagesSystemMessage$outboundSchema: z.ZodType<
|
|
2882
|
+
MessagesSystemMessage$Outbound,
|
|
3058
2883
|
z.ZodTypeDef,
|
|
3059
|
-
|
|
2884
|
+
MessagesSystemMessage
|
|
3060
2885
|
> = z.object({
|
|
3061
2886
|
role: z.literal("system"),
|
|
3062
2887
|
content: z.union([
|
|
@@ -3066,24 +2891,21 @@ export const DeploymentGetConfigMessagesSystemMessage$outboundSchema: z.ZodType<
|
|
|
3066
2891
|
name: z.string().optional(),
|
|
3067
2892
|
});
|
|
3068
2893
|
|
|
3069
|
-
export function
|
|
3070
|
-
|
|
3071
|
-
DeploymentGetConfigMessagesSystemMessage,
|
|
2894
|
+
export function messagesSystemMessageToJSON(
|
|
2895
|
+
messagesSystemMessage: MessagesSystemMessage,
|
|
3072
2896
|
): string {
|
|
3073
2897
|
return JSON.stringify(
|
|
3074
|
-
|
|
3075
|
-
deploymentGetConfigMessagesSystemMessage,
|
|
3076
|
-
),
|
|
2898
|
+
MessagesSystemMessage$outboundSchema.parse(messagesSystemMessage),
|
|
3077
2899
|
);
|
|
3078
2900
|
}
|
|
3079
2901
|
|
|
3080
2902
|
/** @internal */
|
|
3081
2903
|
export type DeploymentGetConfigMessages$Outbound =
|
|
3082
|
-
|
|
|
3083
|
-
|
|
|
3084
|
-
|
|
|
3085
|
-
|
|
|
3086
|
-
|
|
|
2904
|
+
| MessagesSystemMessage$Outbound
|
|
2905
|
+
| MessagesDeveloperMessage$Outbound
|
|
2906
|
+
| MessagesUserMessage$Outbound
|
|
2907
|
+
| MessagesAssistantMessage$Outbound
|
|
2908
|
+
| MessagesToolMessage$Outbound;
|
|
3087
2909
|
|
|
3088
2910
|
/** @internal */
|
|
3089
2911
|
export const DeploymentGetConfigMessages$outboundSchema: z.ZodType<
|
|
@@ -3091,11 +2913,11 @@ export const DeploymentGetConfigMessages$outboundSchema: z.ZodType<
|
|
|
3091
2913
|
z.ZodTypeDef,
|
|
3092
2914
|
DeploymentGetConfigMessages
|
|
3093
2915
|
> = z.union([
|
|
3094
|
-
z.lazy(() =>
|
|
3095
|
-
z.lazy(() =>
|
|
3096
|
-
z.lazy(() =>
|
|
3097
|
-
z.lazy(() =>
|
|
3098
|
-
z.lazy(() =>
|
|
2916
|
+
z.lazy(() => MessagesSystemMessage$outboundSchema),
|
|
2917
|
+
z.lazy(() => MessagesDeveloperMessage$outboundSchema),
|
|
2918
|
+
z.lazy(() => MessagesUserMessage$outboundSchema),
|
|
2919
|
+
z.lazy(() => MessagesAssistantMessage$outboundSchema),
|
|
2920
|
+
z.lazy(() => MessagesToolMessage$outboundSchema),
|
|
3099
2921
|
]);
|
|
3100
2922
|
|
|
3101
2923
|
export function deploymentGetConfigMessagesToJSON(
|
|
@@ -3109,17 +2931,17 @@ export function deploymentGetConfigMessagesToJSON(
|
|
|
3109
2931
|
}
|
|
3110
2932
|
|
|
3111
2933
|
/** @internal */
|
|
3112
|
-
export type
|
|
2934
|
+
export type Metadata$Outbound = {
|
|
3113
2935
|
file_name?: string | undefined;
|
|
3114
2936
|
file_type?: string | undefined;
|
|
3115
2937
|
page_number?: number | undefined;
|
|
3116
2938
|
};
|
|
3117
2939
|
|
|
3118
2940
|
/** @internal */
|
|
3119
|
-
export const
|
|
3120
|
-
|
|
2941
|
+
export const Metadata$outboundSchema: z.ZodType<
|
|
2942
|
+
Metadata$Outbound,
|
|
3121
2943
|
z.ZodTypeDef,
|
|
3122
|
-
|
|
2944
|
+
Metadata
|
|
3123
2945
|
> = z.object({
|
|
3124
2946
|
fileName: z.string().optional(),
|
|
3125
2947
|
fileType: z.string().optional(),
|
|
@@ -3132,54 +2954,42 @@ export const DeploymentGetConfigMetadata$outboundSchema: z.ZodType<
|
|
|
3132
2954
|
});
|
|
3133
2955
|
});
|
|
3134
2956
|
|
|
3135
|
-
export function
|
|
3136
|
-
|
|
3137
|
-
): string {
|
|
3138
|
-
return JSON.stringify(
|
|
3139
|
-
DeploymentGetConfigMetadata$outboundSchema.parse(
|
|
3140
|
-
deploymentGetConfigMetadata,
|
|
3141
|
-
),
|
|
3142
|
-
);
|
|
2957
|
+
export function metadataToJSON(metadata: Metadata): string {
|
|
2958
|
+
return JSON.stringify(Metadata$outboundSchema.parse(metadata));
|
|
3143
2959
|
}
|
|
3144
2960
|
|
|
3145
2961
|
/** @internal */
|
|
3146
|
-
export type
|
|
2962
|
+
export type Documents$Outbound = {
|
|
3147
2963
|
text: string;
|
|
3148
|
-
metadata?:
|
|
2964
|
+
metadata?: Metadata$Outbound | undefined;
|
|
3149
2965
|
};
|
|
3150
2966
|
|
|
3151
2967
|
/** @internal */
|
|
3152
|
-
export const
|
|
3153
|
-
|
|
2968
|
+
export const Documents$outboundSchema: z.ZodType<
|
|
2969
|
+
Documents$Outbound,
|
|
3154
2970
|
z.ZodTypeDef,
|
|
3155
|
-
|
|
2971
|
+
Documents
|
|
3156
2972
|
> = z.object({
|
|
3157
2973
|
text: z.string(),
|
|
3158
|
-
metadata: z.lazy(() =>
|
|
2974
|
+
metadata: z.lazy(() => Metadata$outboundSchema).optional(),
|
|
3159
2975
|
});
|
|
3160
2976
|
|
|
3161
|
-
export function
|
|
3162
|
-
|
|
3163
|
-
): string {
|
|
3164
|
-
return JSON.stringify(
|
|
3165
|
-
DeploymentGetConfigDocuments$outboundSchema.parse(
|
|
3166
|
-
deploymentGetConfigDocuments,
|
|
3167
|
-
),
|
|
3168
|
-
);
|
|
2977
|
+
export function documentsToJSON(documents: Documents): string {
|
|
2978
|
+
return JSON.stringify(Documents$outboundSchema.parse(documents));
|
|
3169
2979
|
}
|
|
3170
2980
|
|
|
3171
2981
|
/** @internal */
|
|
3172
|
-
export type
|
|
2982
|
+
export type InvokeOptions$Outbound = {
|
|
3173
2983
|
include_retrievals: boolean;
|
|
3174
2984
|
include_usage: boolean;
|
|
3175
2985
|
mock_response?: string | undefined;
|
|
3176
2986
|
};
|
|
3177
2987
|
|
|
3178
2988
|
/** @internal */
|
|
3179
|
-
export const
|
|
3180
|
-
|
|
2989
|
+
export const InvokeOptions$outboundSchema: z.ZodType<
|
|
2990
|
+
InvokeOptions$Outbound,
|
|
3181
2991
|
z.ZodTypeDef,
|
|
3182
|
-
|
|
2992
|
+
InvokeOptions
|
|
3183
2993
|
> = z.object({
|
|
3184
2994
|
includeRetrievals: z.boolean().default(false),
|
|
3185
2995
|
includeUsage: z.boolean().default(false),
|
|
@@ -3192,278 +3002,192 @@ export const DeploymentGetConfigInvokeOptions$outboundSchema: z.ZodType<
|
|
|
3192
3002
|
});
|
|
3193
3003
|
});
|
|
3194
3004
|
|
|
3195
|
-
export function
|
|
3196
|
-
|
|
3197
|
-
): string {
|
|
3198
|
-
return JSON.stringify(
|
|
3199
|
-
DeploymentGetConfigInvokeOptions$outboundSchema.parse(
|
|
3200
|
-
deploymentGetConfigInvokeOptions,
|
|
3201
|
-
),
|
|
3202
|
-
);
|
|
3005
|
+
export function invokeOptionsToJSON(invokeOptions: InvokeOptions): string {
|
|
3006
|
+
return JSON.stringify(InvokeOptions$outboundSchema.parse(invokeOptions));
|
|
3203
3007
|
}
|
|
3204
3008
|
|
|
3205
3009
|
/** @internal */
|
|
3206
|
-
export type
|
|
3010
|
+
export type Thread$Outbound = {
|
|
3207
3011
|
id: string;
|
|
3208
3012
|
tags?: Array<string> | undefined;
|
|
3209
3013
|
};
|
|
3210
3014
|
|
|
3211
3015
|
/** @internal */
|
|
3212
|
-
export const
|
|
3213
|
-
|
|
3016
|
+
export const Thread$outboundSchema: z.ZodType<
|
|
3017
|
+
Thread$Outbound,
|
|
3214
3018
|
z.ZodTypeDef,
|
|
3215
|
-
|
|
3019
|
+
Thread
|
|
3216
3020
|
> = z.object({
|
|
3217
3021
|
id: z.string(),
|
|
3218
3022
|
tags: z.array(z.string()).optional(),
|
|
3219
3023
|
});
|
|
3220
3024
|
|
|
3221
|
-
export function
|
|
3222
|
-
|
|
3223
|
-
): string {
|
|
3224
|
-
return JSON.stringify(
|
|
3225
|
-
DeploymentGetConfigThread$outboundSchema.parse(deploymentGetConfigThread),
|
|
3226
|
-
);
|
|
3025
|
+
export function threadToJSON(thread: Thread): string {
|
|
3026
|
+
return JSON.stringify(Thread$outboundSchema.parse(thread));
|
|
3227
3027
|
}
|
|
3228
3028
|
|
|
3229
3029
|
/** @internal */
|
|
3230
|
-
export type
|
|
3030
|
+
export type OrExists$Outbound = {
|
|
3231
3031
|
exists: boolean;
|
|
3232
3032
|
};
|
|
3233
3033
|
|
|
3234
3034
|
/** @internal */
|
|
3235
|
-
export const
|
|
3236
|
-
|
|
3035
|
+
export const OrExists$outboundSchema: z.ZodType<
|
|
3036
|
+
OrExists$Outbound,
|
|
3237
3037
|
z.ZodTypeDef,
|
|
3238
|
-
|
|
3038
|
+
OrExists
|
|
3239
3039
|
> = z.object({
|
|
3240
3040
|
exists: z.boolean(),
|
|
3241
3041
|
});
|
|
3242
3042
|
|
|
3243
|
-
export function
|
|
3244
|
-
|
|
3245
|
-
): string {
|
|
3246
|
-
return JSON.stringify(
|
|
3247
|
-
DeploymentGetConfigOrExists$outboundSchema.parse(
|
|
3248
|
-
deploymentGetConfigOrExists,
|
|
3249
|
-
),
|
|
3250
|
-
);
|
|
3043
|
+
export function orExistsToJSON(orExists: OrExists): string {
|
|
3044
|
+
return JSON.stringify(OrExists$outboundSchema.parse(orExists));
|
|
3251
3045
|
}
|
|
3252
3046
|
|
|
3253
3047
|
/** @internal */
|
|
3254
|
-
export type
|
|
3255
|
-
| string
|
|
3256
|
-
| number
|
|
3257
|
-
| boolean;
|
|
3048
|
+
export type DeploymentGetConfigOrNin$Outbound = string | number | boolean;
|
|
3258
3049
|
|
|
3259
3050
|
/** @internal */
|
|
3260
|
-
export const
|
|
3261
|
-
|
|
3051
|
+
export const DeploymentGetConfigOrNin$outboundSchema: z.ZodType<
|
|
3052
|
+
DeploymentGetConfigOrNin$Outbound,
|
|
3262
3053
|
z.ZodTypeDef,
|
|
3263
|
-
|
|
3054
|
+
DeploymentGetConfigOrNin
|
|
3264
3055
|
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
3265
3056
|
|
|
3266
|
-
export function
|
|
3267
|
-
|
|
3057
|
+
export function deploymentGetConfigOrNinToJSON(
|
|
3058
|
+
deploymentGetConfigOrNin: DeploymentGetConfigOrNin,
|
|
3268
3059
|
): string {
|
|
3269
3060
|
return JSON.stringify(
|
|
3270
|
-
|
|
3271
|
-
deploymentGetConfigOrDeploymentsNin,
|
|
3272
|
-
),
|
|
3061
|
+
DeploymentGetConfigOrNin$outboundSchema.parse(deploymentGetConfigOrNin),
|
|
3273
3062
|
);
|
|
3274
3063
|
}
|
|
3275
3064
|
|
|
3276
3065
|
/** @internal */
|
|
3277
|
-
export type
|
|
3066
|
+
export type OrNin$Outbound = {
|
|
3278
3067
|
nin: Array<string | number | boolean>;
|
|
3279
3068
|
};
|
|
3280
3069
|
|
|
3281
3070
|
/** @internal */
|
|
3282
|
-
export const
|
|
3283
|
-
|
|
3071
|
+
export const OrNin$outboundSchema: z.ZodType<
|
|
3072
|
+
OrNin$Outbound,
|
|
3284
3073
|
z.ZodTypeDef,
|
|
3285
|
-
|
|
3074
|
+
OrNin
|
|
3286
3075
|
> = z.object({
|
|
3287
3076
|
nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
3288
3077
|
});
|
|
3289
3078
|
|
|
3290
|
-
export function
|
|
3291
|
-
|
|
3292
|
-
): string {
|
|
3293
|
-
return JSON.stringify(
|
|
3294
|
-
DeploymentGetConfigOrNin$outboundSchema.parse(deploymentGetConfigOrNin),
|
|
3295
|
-
);
|
|
3079
|
+
export function orNinToJSON(orNin: OrNin): string {
|
|
3080
|
+
return JSON.stringify(OrNin$outboundSchema.parse(orNin));
|
|
3296
3081
|
}
|
|
3297
3082
|
|
|
3298
3083
|
/** @internal */
|
|
3299
|
-
export type
|
|
3300
|
-
| string
|
|
3301
|
-
| number
|
|
3302
|
-
| boolean;
|
|
3084
|
+
export type DeploymentGetConfigOrIn$Outbound = string | number | boolean;
|
|
3303
3085
|
|
|
3304
3086
|
/** @internal */
|
|
3305
|
-
export const
|
|
3306
|
-
|
|
3087
|
+
export const DeploymentGetConfigOrIn$outboundSchema: z.ZodType<
|
|
3088
|
+
DeploymentGetConfigOrIn$Outbound,
|
|
3307
3089
|
z.ZodTypeDef,
|
|
3308
|
-
|
|
3090
|
+
DeploymentGetConfigOrIn
|
|
3309
3091
|
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
3310
3092
|
|
|
3311
|
-
export function
|
|
3312
|
-
|
|
3093
|
+
export function deploymentGetConfigOrInToJSON(
|
|
3094
|
+
deploymentGetConfigOrIn: DeploymentGetConfigOrIn,
|
|
3313
3095
|
): string {
|
|
3314
3096
|
return JSON.stringify(
|
|
3315
|
-
|
|
3316
|
-
deploymentGetConfigOrDeploymentsIn,
|
|
3317
|
-
),
|
|
3097
|
+
DeploymentGetConfigOrIn$outboundSchema.parse(deploymentGetConfigOrIn),
|
|
3318
3098
|
);
|
|
3319
3099
|
}
|
|
3320
3100
|
|
|
3321
3101
|
/** @internal */
|
|
3322
|
-
export type
|
|
3102
|
+
export type OrIn$Outbound = {
|
|
3323
3103
|
in: Array<string | number | boolean>;
|
|
3324
3104
|
};
|
|
3325
3105
|
|
|
3326
3106
|
/** @internal */
|
|
3327
|
-
export const
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
> = z.object({
|
|
3332
|
-
in: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
3333
|
-
});
|
|
3107
|
+
export const OrIn$outboundSchema: z.ZodType<OrIn$Outbound, z.ZodTypeDef, OrIn> =
|
|
3108
|
+
z.object({
|
|
3109
|
+
in: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
3110
|
+
});
|
|
3334
3111
|
|
|
3335
|
-
export function
|
|
3336
|
-
|
|
3337
|
-
): string {
|
|
3338
|
-
return JSON.stringify(
|
|
3339
|
-
DeploymentGetConfigOrIn$outboundSchema.parse(deploymentGetConfigOrIn),
|
|
3340
|
-
);
|
|
3112
|
+
export function orInToJSON(orIn: OrIn): string {
|
|
3113
|
+
return JSON.stringify(OrIn$outboundSchema.parse(orIn));
|
|
3341
3114
|
}
|
|
3342
3115
|
|
|
3343
3116
|
/** @internal */
|
|
3344
|
-
export type
|
|
3117
|
+
export type OrLte$Outbound = {
|
|
3345
3118
|
lte: number;
|
|
3346
3119
|
};
|
|
3347
3120
|
|
|
3348
3121
|
/** @internal */
|
|
3349
|
-
export const
|
|
3350
|
-
|
|
3122
|
+
export const OrLte$outboundSchema: z.ZodType<
|
|
3123
|
+
OrLte$Outbound,
|
|
3351
3124
|
z.ZodTypeDef,
|
|
3352
|
-
|
|
3125
|
+
OrLte
|
|
3353
3126
|
> = z.object({
|
|
3354
3127
|
lte: z.number(),
|
|
3355
3128
|
});
|
|
3356
3129
|
|
|
3357
|
-
export function
|
|
3358
|
-
|
|
3359
|
-
): string {
|
|
3360
|
-
return JSON.stringify(
|
|
3361
|
-
DeploymentGetConfigOrLte$outboundSchema.parse(deploymentGetConfigOrLte),
|
|
3362
|
-
);
|
|
3130
|
+
export function orLteToJSON(orLte: OrLte): string {
|
|
3131
|
+
return JSON.stringify(OrLte$outboundSchema.parse(orLte));
|
|
3363
3132
|
}
|
|
3364
3133
|
|
|
3365
3134
|
/** @internal */
|
|
3366
|
-
export type
|
|
3135
|
+
export type OrLt$Outbound = {
|
|
3367
3136
|
lt: number;
|
|
3368
3137
|
};
|
|
3369
3138
|
|
|
3370
3139
|
/** @internal */
|
|
3371
|
-
export const
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
> = z.object({
|
|
3376
|
-
lt: z.number(),
|
|
3377
|
-
});
|
|
3140
|
+
export const OrLt$outboundSchema: z.ZodType<OrLt$Outbound, z.ZodTypeDef, OrLt> =
|
|
3141
|
+
z.object({
|
|
3142
|
+
lt: z.number(),
|
|
3143
|
+
});
|
|
3378
3144
|
|
|
3379
|
-
export function
|
|
3380
|
-
|
|
3381
|
-
): string {
|
|
3382
|
-
return JSON.stringify(
|
|
3383
|
-
DeploymentGetConfigOrLt$outboundSchema.parse(deploymentGetConfigOrLt),
|
|
3384
|
-
);
|
|
3145
|
+
export function orLtToJSON(orLt: OrLt): string {
|
|
3146
|
+
return JSON.stringify(OrLt$outboundSchema.parse(orLt));
|
|
3385
3147
|
}
|
|
3386
3148
|
|
|
3387
3149
|
/** @internal */
|
|
3388
|
-
export type
|
|
3150
|
+
export type OrGte$Outbound = {
|
|
3389
3151
|
gte: number;
|
|
3390
3152
|
};
|
|
3391
3153
|
|
|
3392
3154
|
/** @internal */
|
|
3393
|
-
export const
|
|
3394
|
-
|
|
3155
|
+
export const OrGte$outboundSchema: z.ZodType<
|
|
3156
|
+
OrGte$Outbound,
|
|
3395
3157
|
z.ZodTypeDef,
|
|
3396
|
-
|
|
3158
|
+
OrGte
|
|
3397
3159
|
> = z.object({
|
|
3398
3160
|
gte: z.number(),
|
|
3399
3161
|
});
|
|
3400
3162
|
|
|
3401
|
-
export function
|
|
3402
|
-
|
|
3403
|
-
): string {
|
|
3404
|
-
return JSON.stringify(
|
|
3405
|
-
DeploymentGetConfigOrGte$outboundSchema.parse(deploymentGetConfigOrGte),
|
|
3406
|
-
);
|
|
3163
|
+
export function orGteToJSON(orGte: OrGte): string {
|
|
3164
|
+
return JSON.stringify(OrGte$outboundSchema.parse(orGte));
|
|
3407
3165
|
}
|
|
3408
3166
|
|
|
3409
3167
|
/** @internal */
|
|
3410
|
-
export type
|
|
3168
|
+
export type OrGt$Outbound = {
|
|
3411
3169
|
gt: number;
|
|
3412
3170
|
};
|
|
3413
3171
|
|
|
3414
3172
|
/** @internal */
|
|
3415
|
-
export const
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
> = z.object({
|
|
3420
|
-
gt: z.number(),
|
|
3421
|
-
});
|
|
3422
|
-
|
|
3423
|
-
export function deploymentGetConfigOrGtToJSON(
|
|
3424
|
-
deploymentGetConfigOrGt: DeploymentGetConfigOrGt,
|
|
3425
|
-
): string {
|
|
3426
|
-
return JSON.stringify(
|
|
3427
|
-
DeploymentGetConfigOrGt$outboundSchema.parse(deploymentGetConfigOrGt),
|
|
3428
|
-
);
|
|
3429
|
-
}
|
|
3430
|
-
|
|
3431
|
-
/** @internal */
|
|
3432
|
-
export type DeploymentGetConfigOrDeploymentsNe$Outbound =
|
|
3433
|
-
| string
|
|
3434
|
-
| number
|
|
3435
|
-
| boolean;
|
|
3436
|
-
|
|
3437
|
-
/** @internal */
|
|
3438
|
-
export const DeploymentGetConfigOrDeploymentsNe$outboundSchema: z.ZodType<
|
|
3439
|
-
DeploymentGetConfigOrDeploymentsNe$Outbound,
|
|
3440
|
-
z.ZodTypeDef,
|
|
3441
|
-
DeploymentGetConfigOrDeploymentsNe
|
|
3442
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
3173
|
+
export const OrGt$outboundSchema: z.ZodType<OrGt$Outbound, z.ZodTypeDef, OrGt> =
|
|
3174
|
+
z.object({
|
|
3175
|
+
gt: z.number(),
|
|
3176
|
+
});
|
|
3443
3177
|
|
|
3444
|
-
export function
|
|
3445
|
-
|
|
3446
|
-
): string {
|
|
3447
|
-
return JSON.stringify(
|
|
3448
|
-
DeploymentGetConfigOrDeploymentsNe$outboundSchema.parse(
|
|
3449
|
-
deploymentGetConfigOrDeploymentsNe,
|
|
3450
|
-
),
|
|
3451
|
-
);
|
|
3178
|
+
export function orGtToJSON(orGt: OrGt): string {
|
|
3179
|
+
return JSON.stringify(OrGt$outboundSchema.parse(orGt));
|
|
3452
3180
|
}
|
|
3453
3181
|
|
|
3454
3182
|
/** @internal */
|
|
3455
|
-
export type DeploymentGetConfigOrNe$Outbound =
|
|
3456
|
-
ne: string | number | boolean;
|
|
3457
|
-
};
|
|
3183
|
+
export type DeploymentGetConfigOrNe$Outbound = string | number | boolean;
|
|
3458
3184
|
|
|
3459
3185
|
/** @internal */
|
|
3460
3186
|
export const DeploymentGetConfigOrNe$outboundSchema: z.ZodType<
|
|
3461
3187
|
DeploymentGetConfigOrNe$Outbound,
|
|
3462
3188
|
z.ZodTypeDef,
|
|
3463
3189
|
DeploymentGetConfigOrNe
|
|
3464
|
-
> = z.
|
|
3465
|
-
ne: z.union([z.string(), z.number(), z.boolean()]),
|
|
3466
|
-
});
|
|
3190
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
3467
3191
|
|
|
3468
3192
|
export function deploymentGetConfigOrNeToJSON(
|
|
3469
3193
|
deploymentGetConfigOrNe: DeploymentGetConfigOrNe,
|
|
@@ -3474,41 +3198,29 @@ export function deploymentGetConfigOrNeToJSON(
|
|
|
3474
3198
|
}
|
|
3475
3199
|
|
|
3476
3200
|
/** @internal */
|
|
3477
|
-
export type
|
|
3478
|
-
|
|
|
3479
|
-
|
|
3480
|
-
| boolean;
|
|
3201
|
+
export type OrNe$Outbound = {
|
|
3202
|
+
ne: string | number | boolean;
|
|
3203
|
+
};
|
|
3481
3204
|
|
|
3482
3205
|
/** @internal */
|
|
3483
|
-
export const
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
3206
|
+
export const OrNe$outboundSchema: z.ZodType<OrNe$Outbound, z.ZodTypeDef, OrNe> =
|
|
3207
|
+
z.object({
|
|
3208
|
+
ne: z.union([z.string(), z.number(), z.boolean()]),
|
|
3209
|
+
});
|
|
3488
3210
|
|
|
3489
|
-
export function
|
|
3490
|
-
|
|
3491
|
-
): string {
|
|
3492
|
-
return JSON.stringify(
|
|
3493
|
-
DeploymentGetConfigOrDeploymentsEq$outboundSchema.parse(
|
|
3494
|
-
deploymentGetConfigOrDeploymentsEq,
|
|
3495
|
-
),
|
|
3496
|
-
);
|
|
3211
|
+
export function orNeToJSON(orNe: OrNe): string {
|
|
3212
|
+
return JSON.stringify(OrNe$outboundSchema.parse(orNe));
|
|
3497
3213
|
}
|
|
3498
3214
|
|
|
3499
3215
|
/** @internal */
|
|
3500
|
-
export type DeploymentGetConfigOrEq$Outbound =
|
|
3501
|
-
eq: string | number | boolean;
|
|
3502
|
-
};
|
|
3216
|
+
export type DeploymentGetConfigOrEq$Outbound = string | number | boolean;
|
|
3503
3217
|
|
|
3504
3218
|
/** @internal */
|
|
3505
3219
|
export const DeploymentGetConfigOrEq$outboundSchema: z.ZodType<
|
|
3506
3220
|
DeploymentGetConfigOrEq$Outbound,
|
|
3507
3221
|
z.ZodTypeDef,
|
|
3508
3222
|
DeploymentGetConfigOrEq
|
|
3509
|
-
> = z.
|
|
3510
|
-
eq: z.union([z.string(), z.number(), z.boolean()]),
|
|
3511
|
-
});
|
|
3223
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
3512
3224
|
|
|
3513
3225
|
export function deploymentGetConfigOrEqToJSON(
|
|
3514
3226
|
deploymentGetConfigOrEq: DeploymentGetConfigOrEq,
|
|
@@ -3519,836 +3231,682 @@ export function deploymentGetConfigOrEqToJSON(
|
|
|
3519
3231
|
}
|
|
3520
3232
|
|
|
3521
3233
|
/** @internal */
|
|
3522
|
-
export type
|
|
3523
|
-
|
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3234
|
+
export type OrEq$Outbound = {
|
|
3235
|
+
eq: string | number | boolean;
|
|
3236
|
+
};
|
|
3237
|
+
|
|
3238
|
+
/** @internal */
|
|
3239
|
+
export const OrEq$outboundSchema: z.ZodType<OrEq$Outbound, z.ZodTypeDef, OrEq> =
|
|
3240
|
+
z.object({
|
|
3241
|
+
eq: z.union([z.string(), z.number(), z.boolean()]),
|
|
3242
|
+
});
|
|
3243
|
+
|
|
3244
|
+
export function orEqToJSON(orEq: OrEq): string {
|
|
3245
|
+
return JSON.stringify(OrEq$outboundSchema.parse(orEq));
|
|
3246
|
+
}
|
|
3247
|
+
|
|
3248
|
+
/** @internal */
|
|
3249
|
+
export type KnowledgeFilterOr$Outbound =
|
|
3250
|
+
| OrEq$Outbound
|
|
3251
|
+
| OrNe$Outbound
|
|
3252
|
+
| OrGt$Outbound
|
|
3253
|
+
| OrGte$Outbound
|
|
3254
|
+
| OrLt$Outbound
|
|
3255
|
+
| OrLte$Outbound
|
|
3256
|
+
| OrIn$Outbound
|
|
3257
|
+
| OrNin$Outbound
|
|
3258
|
+
| OrExists$Outbound;
|
|
3532
3259
|
|
|
3533
3260
|
/** @internal */
|
|
3534
|
-
export const
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
]);
|
|
3261
|
+
export const KnowledgeFilterOr$outboundSchema: z.ZodType<
|
|
3262
|
+
KnowledgeFilterOr$Outbound,
|
|
3263
|
+
z.ZodTypeDef,
|
|
3264
|
+
KnowledgeFilterOr
|
|
3265
|
+
> = z.union([
|
|
3266
|
+
z.lazy(() => OrEq$outboundSchema),
|
|
3267
|
+
z.lazy(() => OrNe$outboundSchema),
|
|
3268
|
+
z.lazy(() => OrGt$outboundSchema),
|
|
3269
|
+
z.lazy(() => OrGte$outboundSchema),
|
|
3270
|
+
z.lazy(() => OrLt$outboundSchema),
|
|
3271
|
+
z.lazy(() => OrLte$outboundSchema),
|
|
3272
|
+
z.lazy(() => OrIn$outboundSchema),
|
|
3273
|
+
z.lazy(() => OrNin$outboundSchema),
|
|
3274
|
+
z.lazy(() => OrExists$outboundSchema),
|
|
3275
|
+
]);
|
|
3550
3276
|
|
|
3551
|
-
export function
|
|
3552
|
-
|
|
3553
|
-
DeploymentGetConfigKnowledgeFilterDeploymentsOr,
|
|
3277
|
+
export function knowledgeFilterOrToJSON(
|
|
3278
|
+
knowledgeFilterOr: KnowledgeFilterOr,
|
|
3554
3279
|
): string {
|
|
3555
3280
|
return JSON.stringify(
|
|
3556
|
-
|
|
3557
|
-
deploymentGetConfigKnowledgeFilterDeploymentsOr,
|
|
3558
|
-
),
|
|
3281
|
+
KnowledgeFilterOr$outboundSchema.parse(knowledgeFilterOr),
|
|
3559
3282
|
);
|
|
3560
3283
|
}
|
|
3561
3284
|
|
|
3562
3285
|
/** @internal */
|
|
3563
|
-
export type
|
|
3286
|
+
export type Or$Outbound = {
|
|
3564
3287
|
or: Array<
|
|
3565
3288
|
{
|
|
3566
3289
|
[k: string]:
|
|
3567
|
-
|
|
|
3568
|
-
|
|
|
3569
|
-
|
|
|
3570
|
-
|
|
|
3571
|
-
|
|
|
3572
|
-
|
|
|
3573
|
-
|
|
|
3574
|
-
|
|
|
3575
|
-
|
|
|
3290
|
+
| OrEq$Outbound
|
|
3291
|
+
| OrNe$Outbound
|
|
3292
|
+
| OrGt$Outbound
|
|
3293
|
+
| OrGte$Outbound
|
|
3294
|
+
| OrLt$Outbound
|
|
3295
|
+
| OrLte$Outbound
|
|
3296
|
+
| OrIn$Outbound
|
|
3297
|
+
| OrNin$Outbound
|
|
3298
|
+
| OrExists$Outbound;
|
|
3576
3299
|
}
|
|
3577
3300
|
>;
|
|
3578
3301
|
};
|
|
3579
3302
|
|
|
3580
3303
|
/** @internal */
|
|
3581
|
-
export const
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
z.lazy(() => DeploymentGetConfigOrNin$outboundSchema),
|
|
3598
|
-
z.lazy(() => DeploymentGetConfigOrExists$outboundSchema),
|
|
3599
|
-
])),
|
|
3600
|
-
),
|
|
3601
|
-
});
|
|
3602
|
-
|
|
3603
|
-
export function deploymentGetConfigKnowledgeFilterOrToJSON(
|
|
3604
|
-
deploymentGetConfigKnowledgeFilterOr: DeploymentGetConfigKnowledgeFilterOr,
|
|
3605
|
-
): string {
|
|
3606
|
-
return JSON.stringify(
|
|
3607
|
-
DeploymentGetConfigKnowledgeFilterOr$outboundSchema.parse(
|
|
3608
|
-
deploymentGetConfigKnowledgeFilterOr,
|
|
3304
|
+
export const Or$outboundSchema: z.ZodType<Or$Outbound, z.ZodTypeDef, Or> = z
|
|
3305
|
+
.object({
|
|
3306
|
+
or: z.array(
|
|
3307
|
+
z.record(z.union([
|
|
3308
|
+
z.lazy(() => OrEq$outboundSchema),
|
|
3309
|
+
z.lazy(() =>
|
|
3310
|
+
OrNe$outboundSchema
|
|
3311
|
+
),
|
|
3312
|
+
z.lazy(() => OrGt$outboundSchema),
|
|
3313
|
+
z.lazy(() => OrGte$outboundSchema),
|
|
3314
|
+
z.lazy(() => OrLt$outboundSchema),
|
|
3315
|
+
z.lazy(() => OrLte$outboundSchema),
|
|
3316
|
+
z.lazy(() => OrIn$outboundSchema),
|
|
3317
|
+
z.lazy(() => OrNin$outboundSchema),
|
|
3318
|
+
z.lazy(() => OrExists$outboundSchema),
|
|
3319
|
+
])),
|
|
3609
3320
|
),
|
|
3610
|
-
);
|
|
3321
|
+
});
|
|
3322
|
+
|
|
3323
|
+
export function orToJSON(or: Or): string {
|
|
3324
|
+
return JSON.stringify(Or$outboundSchema.parse(or));
|
|
3611
3325
|
}
|
|
3612
3326
|
|
|
3613
3327
|
/** @internal */
|
|
3614
|
-
export type
|
|
3328
|
+
export type AndExists$Outbound = {
|
|
3615
3329
|
exists: boolean;
|
|
3616
3330
|
};
|
|
3617
3331
|
|
|
3618
3332
|
/** @internal */
|
|
3619
|
-
export const
|
|
3620
|
-
|
|
3333
|
+
export const AndExists$outboundSchema: z.ZodType<
|
|
3334
|
+
AndExists$Outbound,
|
|
3621
3335
|
z.ZodTypeDef,
|
|
3622
|
-
|
|
3336
|
+
AndExists
|
|
3623
3337
|
> = z.object({
|
|
3624
3338
|
exists: z.boolean(),
|
|
3625
3339
|
});
|
|
3626
3340
|
|
|
3627
|
-
export function
|
|
3628
|
-
|
|
3629
|
-
): string {
|
|
3630
|
-
return JSON.stringify(
|
|
3631
|
-
DeploymentGetConfigAndExists$outboundSchema.parse(
|
|
3632
|
-
deploymentGetConfigAndExists,
|
|
3633
|
-
),
|
|
3634
|
-
);
|
|
3341
|
+
export function andExistsToJSON(andExists: AndExists): string {
|
|
3342
|
+
return JSON.stringify(AndExists$outboundSchema.parse(andExists));
|
|
3635
3343
|
}
|
|
3636
3344
|
|
|
3637
3345
|
/** @internal */
|
|
3638
|
-
export type
|
|
3639
|
-
| string
|
|
3640
|
-
| number
|
|
3641
|
-
| boolean;
|
|
3346
|
+
export type DeploymentGetConfigAndNin$Outbound = string | number | boolean;
|
|
3642
3347
|
|
|
3643
3348
|
/** @internal */
|
|
3644
|
-
export const
|
|
3645
|
-
|
|
3349
|
+
export const DeploymentGetConfigAndNin$outboundSchema: z.ZodType<
|
|
3350
|
+
DeploymentGetConfigAndNin$Outbound,
|
|
3646
3351
|
z.ZodTypeDef,
|
|
3647
|
-
|
|
3352
|
+
DeploymentGetConfigAndNin
|
|
3648
3353
|
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
3649
3354
|
|
|
3650
|
-
export function
|
|
3651
|
-
|
|
3355
|
+
export function deploymentGetConfigAndNinToJSON(
|
|
3356
|
+
deploymentGetConfigAndNin: DeploymentGetConfigAndNin,
|
|
3652
3357
|
): string {
|
|
3653
3358
|
return JSON.stringify(
|
|
3654
|
-
|
|
3655
|
-
deploymentGetConfigAndDeploymentsNin,
|
|
3656
|
-
),
|
|
3359
|
+
DeploymentGetConfigAndNin$outboundSchema.parse(deploymentGetConfigAndNin),
|
|
3657
3360
|
);
|
|
3658
3361
|
}
|
|
3659
3362
|
|
|
3660
3363
|
/** @internal */
|
|
3661
|
-
export type
|
|
3364
|
+
export type AndNin$Outbound = {
|
|
3662
3365
|
nin: Array<string | number | boolean>;
|
|
3663
3366
|
};
|
|
3664
3367
|
|
|
3665
3368
|
/** @internal */
|
|
3666
|
-
export const
|
|
3667
|
-
|
|
3369
|
+
export const AndNin$outboundSchema: z.ZodType<
|
|
3370
|
+
AndNin$Outbound,
|
|
3668
3371
|
z.ZodTypeDef,
|
|
3669
|
-
|
|
3372
|
+
AndNin
|
|
3670
3373
|
> = z.object({
|
|
3671
3374
|
nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
3672
3375
|
});
|
|
3673
3376
|
|
|
3674
|
-
export function
|
|
3675
|
-
|
|
3676
|
-
): string {
|
|
3677
|
-
return JSON.stringify(
|
|
3678
|
-
DeploymentGetConfigAndNin$outboundSchema.parse(deploymentGetConfigAndNin),
|
|
3679
|
-
);
|
|
3377
|
+
export function andNinToJSON(andNin: AndNin): string {
|
|
3378
|
+
return JSON.stringify(AndNin$outboundSchema.parse(andNin));
|
|
3680
3379
|
}
|
|
3681
3380
|
|
|
3682
3381
|
/** @internal */
|
|
3683
|
-
export type
|
|
3684
|
-
| string
|
|
3685
|
-
| number
|
|
3686
|
-
| boolean;
|
|
3382
|
+
export type DeploymentGetConfigAndIn$Outbound = string | number | boolean;
|
|
3687
3383
|
|
|
3688
3384
|
/** @internal */
|
|
3689
|
-
export const
|
|
3690
|
-
|
|
3385
|
+
export const DeploymentGetConfigAndIn$outboundSchema: z.ZodType<
|
|
3386
|
+
DeploymentGetConfigAndIn$Outbound,
|
|
3691
3387
|
z.ZodTypeDef,
|
|
3692
|
-
|
|
3388
|
+
DeploymentGetConfigAndIn
|
|
3693
3389
|
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
3694
3390
|
|
|
3695
|
-
export function
|
|
3696
|
-
|
|
3391
|
+
export function deploymentGetConfigAndInToJSON(
|
|
3392
|
+
deploymentGetConfigAndIn: DeploymentGetConfigAndIn,
|
|
3697
3393
|
): string {
|
|
3698
3394
|
return JSON.stringify(
|
|
3699
|
-
|
|
3700
|
-
deploymentGetConfigAndDeploymentsIn,
|
|
3701
|
-
),
|
|
3395
|
+
DeploymentGetConfigAndIn$outboundSchema.parse(deploymentGetConfigAndIn),
|
|
3702
3396
|
);
|
|
3703
3397
|
}
|
|
3704
3398
|
|
|
3705
3399
|
/** @internal */
|
|
3706
|
-
export type
|
|
3400
|
+
export type AndIn$Outbound = {
|
|
3707
3401
|
in: Array<string | number | boolean>;
|
|
3708
3402
|
};
|
|
3709
3403
|
|
|
3710
3404
|
/** @internal */
|
|
3711
|
-
export const
|
|
3712
|
-
|
|
3405
|
+
export const AndIn$outboundSchema: z.ZodType<
|
|
3406
|
+
AndIn$Outbound,
|
|
3713
3407
|
z.ZodTypeDef,
|
|
3714
|
-
|
|
3408
|
+
AndIn
|
|
3715
3409
|
> = z.object({
|
|
3716
3410
|
in: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
3717
3411
|
});
|
|
3718
3412
|
|
|
3719
|
-
export function
|
|
3720
|
-
|
|
3721
|
-
): string {
|
|
3722
|
-
return JSON.stringify(
|
|
3723
|
-
DeploymentGetConfigAndIn$outboundSchema.parse(deploymentGetConfigAndIn),
|
|
3724
|
-
);
|
|
3413
|
+
export function andInToJSON(andIn: AndIn): string {
|
|
3414
|
+
return JSON.stringify(AndIn$outboundSchema.parse(andIn));
|
|
3725
3415
|
}
|
|
3726
3416
|
|
|
3727
3417
|
/** @internal */
|
|
3728
|
-
export type
|
|
3418
|
+
export type AndLte$Outbound = {
|
|
3729
3419
|
lte: number;
|
|
3730
3420
|
};
|
|
3731
3421
|
|
|
3732
3422
|
/** @internal */
|
|
3733
|
-
export const
|
|
3734
|
-
|
|
3423
|
+
export const AndLte$outboundSchema: z.ZodType<
|
|
3424
|
+
AndLte$Outbound,
|
|
3735
3425
|
z.ZodTypeDef,
|
|
3736
|
-
|
|
3426
|
+
AndLte
|
|
3737
3427
|
> = z.object({
|
|
3738
3428
|
lte: z.number(),
|
|
3739
3429
|
});
|
|
3740
3430
|
|
|
3741
|
-
export function
|
|
3742
|
-
|
|
3743
|
-
): string {
|
|
3744
|
-
return JSON.stringify(
|
|
3745
|
-
DeploymentGetConfigAndLte$outboundSchema.parse(deploymentGetConfigAndLte),
|
|
3746
|
-
);
|
|
3431
|
+
export function andLteToJSON(andLte: AndLte): string {
|
|
3432
|
+
return JSON.stringify(AndLte$outboundSchema.parse(andLte));
|
|
3747
3433
|
}
|
|
3748
3434
|
|
|
3749
3435
|
/** @internal */
|
|
3750
|
-
export type
|
|
3436
|
+
export type AndLt$Outbound = {
|
|
3751
3437
|
lt: number;
|
|
3752
3438
|
};
|
|
3753
3439
|
|
|
3754
3440
|
/** @internal */
|
|
3755
|
-
export const
|
|
3756
|
-
|
|
3441
|
+
export const AndLt$outboundSchema: z.ZodType<
|
|
3442
|
+
AndLt$Outbound,
|
|
3757
3443
|
z.ZodTypeDef,
|
|
3758
|
-
|
|
3444
|
+
AndLt
|
|
3759
3445
|
> = z.object({
|
|
3760
3446
|
lt: z.number(),
|
|
3761
3447
|
});
|
|
3762
3448
|
|
|
3763
|
-
export function
|
|
3764
|
-
|
|
3765
|
-
): string {
|
|
3766
|
-
return JSON.stringify(
|
|
3767
|
-
DeploymentGetConfigAndLt$outboundSchema.parse(deploymentGetConfigAndLt),
|
|
3768
|
-
);
|
|
3449
|
+
export function andLtToJSON(andLt: AndLt): string {
|
|
3450
|
+
return JSON.stringify(AndLt$outboundSchema.parse(andLt));
|
|
3769
3451
|
}
|
|
3770
3452
|
|
|
3771
3453
|
/** @internal */
|
|
3772
|
-
export type
|
|
3454
|
+
export type AndGte$Outbound = {
|
|
3773
3455
|
gte: number;
|
|
3774
3456
|
};
|
|
3775
3457
|
|
|
3776
3458
|
/** @internal */
|
|
3777
|
-
export const
|
|
3778
|
-
|
|
3459
|
+
export const AndGte$outboundSchema: z.ZodType<
|
|
3460
|
+
AndGte$Outbound,
|
|
3779
3461
|
z.ZodTypeDef,
|
|
3780
|
-
|
|
3462
|
+
AndGte
|
|
3781
3463
|
> = z.object({
|
|
3782
3464
|
gte: z.number(),
|
|
3783
3465
|
});
|
|
3784
3466
|
|
|
3785
|
-
export function
|
|
3786
|
-
|
|
3787
|
-
): string {
|
|
3788
|
-
return JSON.stringify(
|
|
3789
|
-
DeploymentGetConfigAndGte$outboundSchema.parse(deploymentGetConfigAndGte),
|
|
3790
|
-
);
|
|
3467
|
+
export function andGteToJSON(andGte: AndGte): string {
|
|
3468
|
+
return JSON.stringify(AndGte$outboundSchema.parse(andGte));
|
|
3791
3469
|
}
|
|
3792
3470
|
|
|
3793
3471
|
/** @internal */
|
|
3794
|
-
export type
|
|
3472
|
+
export type AndGt$Outbound = {
|
|
3795
3473
|
gt: number;
|
|
3796
3474
|
};
|
|
3797
3475
|
|
|
3798
3476
|
/** @internal */
|
|
3799
|
-
export const
|
|
3800
|
-
|
|
3477
|
+
export const AndGt$outboundSchema: z.ZodType<
|
|
3478
|
+
AndGt$Outbound,
|
|
3801
3479
|
z.ZodTypeDef,
|
|
3802
|
-
|
|
3480
|
+
AndGt
|
|
3803
3481
|
> = z.object({
|
|
3804
3482
|
gt: z.number(),
|
|
3805
3483
|
});
|
|
3806
3484
|
|
|
3807
|
-
export function
|
|
3808
|
-
|
|
3809
|
-
): string {
|
|
3810
|
-
return JSON.stringify(
|
|
3811
|
-
DeploymentGetConfigAndGt$outboundSchema.parse(deploymentGetConfigAndGt),
|
|
3812
|
-
);
|
|
3485
|
+
export function andGtToJSON(andGt: AndGt): string {
|
|
3486
|
+
return JSON.stringify(AndGt$outboundSchema.parse(andGt));
|
|
3813
3487
|
}
|
|
3814
3488
|
|
|
3815
3489
|
/** @internal */
|
|
3816
|
-
export type
|
|
3817
|
-
| string
|
|
3818
|
-
| number
|
|
3819
|
-
| boolean;
|
|
3490
|
+
export type DeploymentGetConfigAndNe$Outbound = string | number | boolean;
|
|
3820
3491
|
|
|
3821
3492
|
/** @internal */
|
|
3822
|
-
export const
|
|
3823
|
-
|
|
3493
|
+
export const DeploymentGetConfigAndNe$outboundSchema: z.ZodType<
|
|
3494
|
+
DeploymentGetConfigAndNe$Outbound,
|
|
3824
3495
|
z.ZodTypeDef,
|
|
3825
|
-
|
|
3496
|
+
DeploymentGetConfigAndNe
|
|
3826
3497
|
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
3827
3498
|
|
|
3828
|
-
export function
|
|
3829
|
-
|
|
3499
|
+
export function deploymentGetConfigAndNeToJSON(
|
|
3500
|
+
deploymentGetConfigAndNe: DeploymentGetConfigAndNe,
|
|
3830
3501
|
): string {
|
|
3831
3502
|
return JSON.stringify(
|
|
3832
|
-
|
|
3833
|
-
deploymentGetConfigAndDeploymentsNe,
|
|
3834
|
-
),
|
|
3503
|
+
DeploymentGetConfigAndNe$outboundSchema.parse(deploymentGetConfigAndNe),
|
|
3835
3504
|
);
|
|
3836
3505
|
}
|
|
3837
3506
|
|
|
3838
3507
|
/** @internal */
|
|
3839
|
-
export type
|
|
3508
|
+
export type AndNe$Outbound = {
|
|
3840
3509
|
ne: string | number | boolean;
|
|
3841
3510
|
};
|
|
3842
3511
|
|
|
3843
3512
|
/** @internal */
|
|
3844
|
-
export const
|
|
3845
|
-
|
|
3513
|
+
export const AndNe$outboundSchema: z.ZodType<
|
|
3514
|
+
AndNe$Outbound,
|
|
3846
3515
|
z.ZodTypeDef,
|
|
3847
|
-
|
|
3516
|
+
AndNe
|
|
3848
3517
|
> = z.object({
|
|
3849
3518
|
ne: z.union([z.string(), z.number(), z.boolean()]),
|
|
3850
3519
|
});
|
|
3851
3520
|
|
|
3852
|
-
export function
|
|
3853
|
-
|
|
3854
|
-
): string {
|
|
3855
|
-
return JSON.stringify(
|
|
3856
|
-
DeploymentGetConfigAndNe$outboundSchema.parse(deploymentGetConfigAndNe),
|
|
3857
|
-
);
|
|
3521
|
+
export function andNeToJSON(andNe: AndNe): string {
|
|
3522
|
+
return JSON.stringify(AndNe$outboundSchema.parse(andNe));
|
|
3858
3523
|
}
|
|
3859
3524
|
|
|
3860
3525
|
/** @internal */
|
|
3861
|
-
export type
|
|
3862
|
-
| string
|
|
3863
|
-
| number
|
|
3864
|
-
| boolean;
|
|
3526
|
+
export type DeploymentGetConfigAndEq$Outbound = string | number | boolean;
|
|
3865
3527
|
|
|
3866
3528
|
/** @internal */
|
|
3867
|
-
export const
|
|
3868
|
-
|
|
3529
|
+
export const DeploymentGetConfigAndEq$outboundSchema: z.ZodType<
|
|
3530
|
+
DeploymentGetConfigAndEq$Outbound,
|
|
3869
3531
|
z.ZodTypeDef,
|
|
3870
|
-
|
|
3532
|
+
DeploymentGetConfigAndEq
|
|
3871
3533
|
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
3872
3534
|
|
|
3873
|
-
export function
|
|
3874
|
-
|
|
3535
|
+
export function deploymentGetConfigAndEqToJSON(
|
|
3536
|
+
deploymentGetConfigAndEq: DeploymentGetConfigAndEq,
|
|
3875
3537
|
): string {
|
|
3876
3538
|
return JSON.stringify(
|
|
3877
|
-
|
|
3878
|
-
deploymentGetConfigAndDeploymentsEq,
|
|
3879
|
-
),
|
|
3539
|
+
DeploymentGetConfigAndEq$outboundSchema.parse(deploymentGetConfigAndEq),
|
|
3880
3540
|
);
|
|
3881
3541
|
}
|
|
3882
3542
|
|
|
3883
3543
|
/** @internal */
|
|
3884
|
-
export type
|
|
3544
|
+
export type AndEq$Outbound = {
|
|
3885
3545
|
eq: string | number | boolean;
|
|
3886
3546
|
};
|
|
3887
3547
|
|
|
3888
3548
|
/** @internal */
|
|
3889
|
-
export const
|
|
3890
|
-
|
|
3549
|
+
export const AndEq$outboundSchema: z.ZodType<
|
|
3550
|
+
AndEq$Outbound,
|
|
3891
3551
|
z.ZodTypeDef,
|
|
3892
|
-
|
|
3552
|
+
AndEq
|
|
3893
3553
|
> = z.object({
|
|
3894
3554
|
eq: z.union([z.string(), z.number(), z.boolean()]),
|
|
3895
3555
|
});
|
|
3896
3556
|
|
|
3897
|
-
export function
|
|
3898
|
-
|
|
3899
|
-
): string {
|
|
3900
|
-
return JSON.stringify(
|
|
3901
|
-
DeploymentGetConfigAndEq$outboundSchema.parse(deploymentGetConfigAndEq),
|
|
3902
|
-
);
|
|
3557
|
+
export function andEqToJSON(andEq: AndEq): string {
|
|
3558
|
+
return JSON.stringify(AndEq$outboundSchema.parse(andEq));
|
|
3903
3559
|
}
|
|
3904
3560
|
|
|
3905
3561
|
/** @internal */
|
|
3906
|
-
export type
|
|
3907
|
-
|
|
|
3908
|
-
|
|
|
3909
|
-
|
|
|
3910
|
-
|
|
|
3911
|
-
|
|
|
3912
|
-
|
|
|
3913
|
-
|
|
|
3914
|
-
|
|
|
3915
|
-
|
|
|
3562
|
+
export type KnowledgeFilterAnd$Outbound =
|
|
3563
|
+
| AndEq$Outbound
|
|
3564
|
+
| AndNe$Outbound
|
|
3565
|
+
| AndGt$Outbound
|
|
3566
|
+
| AndGte$Outbound
|
|
3567
|
+
| AndLt$Outbound
|
|
3568
|
+
| AndLte$Outbound
|
|
3569
|
+
| AndIn$Outbound
|
|
3570
|
+
| AndNin$Outbound
|
|
3571
|
+
| AndExists$Outbound;
|
|
3916
3572
|
|
|
3917
3573
|
/** @internal */
|
|
3918
|
-
export const
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
]);
|
|
3574
|
+
export const KnowledgeFilterAnd$outboundSchema: z.ZodType<
|
|
3575
|
+
KnowledgeFilterAnd$Outbound,
|
|
3576
|
+
z.ZodTypeDef,
|
|
3577
|
+
KnowledgeFilterAnd
|
|
3578
|
+
> = z.union([
|
|
3579
|
+
z.lazy(() => AndEq$outboundSchema),
|
|
3580
|
+
z.lazy(() => AndNe$outboundSchema),
|
|
3581
|
+
z.lazy(() => AndGt$outboundSchema),
|
|
3582
|
+
z.lazy(() => AndGte$outboundSchema),
|
|
3583
|
+
z.lazy(() => AndLt$outboundSchema),
|
|
3584
|
+
z.lazy(() => AndLte$outboundSchema),
|
|
3585
|
+
z.lazy(() => AndIn$outboundSchema),
|
|
3586
|
+
z.lazy(() => AndNin$outboundSchema),
|
|
3587
|
+
z.lazy(() => AndExists$outboundSchema),
|
|
3588
|
+
]);
|
|
3934
3589
|
|
|
3935
|
-
export function
|
|
3936
|
-
|
|
3937
|
-
DeploymentGetConfigKnowledgeFilterDeploymentsAnd,
|
|
3590
|
+
export function knowledgeFilterAndToJSON(
|
|
3591
|
+
knowledgeFilterAnd: KnowledgeFilterAnd,
|
|
3938
3592
|
): string {
|
|
3939
3593
|
return JSON.stringify(
|
|
3940
|
-
|
|
3941
|
-
deploymentGetConfigKnowledgeFilterDeploymentsAnd,
|
|
3942
|
-
),
|
|
3594
|
+
KnowledgeFilterAnd$outboundSchema.parse(knowledgeFilterAnd),
|
|
3943
3595
|
);
|
|
3944
3596
|
}
|
|
3945
3597
|
|
|
3946
3598
|
/** @internal */
|
|
3947
|
-
export type
|
|
3599
|
+
export type And$Outbound = {
|
|
3948
3600
|
and: Array<
|
|
3949
3601
|
{
|
|
3950
3602
|
[k: string]:
|
|
3951
|
-
|
|
|
3952
|
-
|
|
|
3953
|
-
|
|
|
3954
|
-
|
|
|
3955
|
-
|
|
|
3956
|
-
|
|
|
3957
|
-
|
|
|
3958
|
-
|
|
|
3959
|
-
|
|
|
3603
|
+
| AndEq$Outbound
|
|
3604
|
+
| AndNe$Outbound
|
|
3605
|
+
| AndGt$Outbound
|
|
3606
|
+
| AndGte$Outbound
|
|
3607
|
+
| AndLt$Outbound
|
|
3608
|
+
| AndLte$Outbound
|
|
3609
|
+
| AndIn$Outbound
|
|
3610
|
+
| AndNin$Outbound
|
|
3611
|
+
| AndExists$Outbound;
|
|
3960
3612
|
}
|
|
3961
3613
|
>;
|
|
3962
3614
|
};
|
|
3963
3615
|
|
|
3964
3616
|
/** @internal */
|
|
3965
|
-
export const
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
z.lazy(() => DeploymentGetConfigAndNin$outboundSchema),
|
|
3982
|
-
z.lazy(() => DeploymentGetConfigAndExists$outboundSchema),
|
|
3983
|
-
])),
|
|
3984
|
-
),
|
|
3985
|
-
});
|
|
3986
|
-
|
|
3987
|
-
export function deploymentGetConfigKnowledgeFilterAndToJSON(
|
|
3988
|
-
deploymentGetConfigKnowledgeFilterAnd: DeploymentGetConfigKnowledgeFilterAnd,
|
|
3989
|
-
): string {
|
|
3990
|
-
return JSON.stringify(
|
|
3991
|
-
DeploymentGetConfigKnowledgeFilterAnd$outboundSchema.parse(
|
|
3992
|
-
deploymentGetConfigKnowledgeFilterAnd,
|
|
3617
|
+
export const And$outboundSchema: z.ZodType<And$Outbound, z.ZodTypeDef, And> = z
|
|
3618
|
+
.object({
|
|
3619
|
+
and: z.array(
|
|
3620
|
+
z.record(z.union([
|
|
3621
|
+
z.lazy(() => AndEq$outboundSchema),
|
|
3622
|
+
z.lazy(() =>
|
|
3623
|
+
AndNe$outboundSchema
|
|
3624
|
+
),
|
|
3625
|
+
z.lazy(() => AndGt$outboundSchema),
|
|
3626
|
+
z.lazy(() => AndGte$outboundSchema),
|
|
3627
|
+
z.lazy(() => AndLt$outboundSchema),
|
|
3628
|
+
z.lazy(() => AndLte$outboundSchema),
|
|
3629
|
+
z.lazy(() => AndIn$outboundSchema),
|
|
3630
|
+
z.lazy(() => AndNin$outboundSchema),
|
|
3631
|
+
z.lazy(() => AndExists$outboundSchema),
|
|
3632
|
+
])),
|
|
3993
3633
|
),
|
|
3994
|
-
);
|
|
3634
|
+
});
|
|
3635
|
+
|
|
3636
|
+
export function andToJSON(and: And): string {
|
|
3637
|
+
return JSON.stringify(And$outboundSchema.parse(and));
|
|
3995
3638
|
}
|
|
3996
3639
|
|
|
3997
3640
|
/** @internal */
|
|
3998
|
-
export type
|
|
3641
|
+
export type Exists$Outbound = {
|
|
3999
3642
|
exists: boolean;
|
|
4000
3643
|
};
|
|
4001
3644
|
|
|
4002
3645
|
/** @internal */
|
|
4003
|
-
export const
|
|
4004
|
-
|
|
3646
|
+
export const Exists$outboundSchema: z.ZodType<
|
|
3647
|
+
Exists$Outbound,
|
|
4005
3648
|
z.ZodTypeDef,
|
|
4006
|
-
|
|
3649
|
+
Exists
|
|
4007
3650
|
> = z.object({
|
|
4008
3651
|
exists: z.boolean(),
|
|
4009
3652
|
});
|
|
4010
3653
|
|
|
4011
|
-
export function
|
|
4012
|
-
return JSON.stringify(
|
|
3654
|
+
export function existsToJSON(exists: Exists): string {
|
|
3655
|
+
return JSON.stringify(Exists$outboundSchema.parse(exists));
|
|
4013
3656
|
}
|
|
4014
3657
|
|
|
4015
3658
|
/** @internal */
|
|
4016
|
-
export type
|
|
4017
|
-
| string
|
|
4018
|
-
| number
|
|
4019
|
-
| boolean;
|
|
3659
|
+
export type OneNin$Outbound = string | number | boolean;
|
|
4020
3660
|
|
|
4021
3661
|
/** @internal */
|
|
4022
|
-
export const
|
|
4023
|
-
|
|
3662
|
+
export const OneNin$outboundSchema: z.ZodType<
|
|
3663
|
+
OneNin$Outbound,
|
|
4024
3664
|
z.ZodTypeDef,
|
|
4025
|
-
|
|
3665
|
+
OneNin
|
|
4026
3666
|
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
4027
3667
|
|
|
4028
|
-
export function
|
|
4029
|
-
|
|
4030
|
-
): string {
|
|
4031
|
-
return JSON.stringify(
|
|
4032
|
-
DeploymentGetConfig1DeploymentsNin$outboundSchema.parse(
|
|
4033
|
-
deploymentGetConfig1DeploymentsNin,
|
|
4034
|
-
),
|
|
4035
|
-
);
|
|
3668
|
+
export function oneNinToJSON(oneNin: OneNin): string {
|
|
3669
|
+
return JSON.stringify(OneNin$outboundSchema.parse(oneNin));
|
|
4036
3670
|
}
|
|
4037
3671
|
|
|
4038
3672
|
/** @internal */
|
|
4039
|
-
export type
|
|
3673
|
+
export type Nin$Outbound = {
|
|
4040
3674
|
nin: Array<string | number | boolean>;
|
|
4041
3675
|
};
|
|
4042
3676
|
|
|
4043
3677
|
/** @internal */
|
|
4044
|
-
export const
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
> = z.object({
|
|
4049
|
-
nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
4050
|
-
});
|
|
3678
|
+
export const Nin$outboundSchema: z.ZodType<Nin$Outbound, z.ZodTypeDef, Nin> = z
|
|
3679
|
+
.object({
|
|
3680
|
+
nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
3681
|
+
});
|
|
4051
3682
|
|
|
4052
|
-
export function
|
|
4053
|
-
|
|
4054
|
-
): string {
|
|
4055
|
-
return JSON.stringify(
|
|
4056
|
-
DeploymentGetConfig1Nin$outboundSchema.parse(deploymentGetConfig1Nin),
|
|
4057
|
-
);
|
|
3683
|
+
export function ninToJSON(nin: Nin): string {
|
|
3684
|
+
return JSON.stringify(Nin$outboundSchema.parse(nin));
|
|
4058
3685
|
}
|
|
4059
3686
|
|
|
4060
3687
|
/** @internal */
|
|
4061
|
-
export type
|
|
4062
|
-
| string
|
|
4063
|
-
| number
|
|
4064
|
-
| boolean;
|
|
3688
|
+
export type OneIn$Outbound = string | number | boolean;
|
|
4065
3689
|
|
|
4066
3690
|
/** @internal */
|
|
4067
|
-
export const
|
|
4068
|
-
|
|
3691
|
+
export const OneIn$outboundSchema: z.ZodType<
|
|
3692
|
+
OneIn$Outbound,
|
|
4069
3693
|
z.ZodTypeDef,
|
|
4070
|
-
|
|
3694
|
+
OneIn
|
|
4071
3695
|
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
4072
3696
|
|
|
4073
|
-
export function
|
|
4074
|
-
|
|
4075
|
-
): string {
|
|
4076
|
-
return JSON.stringify(
|
|
4077
|
-
DeploymentGetConfig1DeploymentsIn$outboundSchema.parse(
|
|
4078
|
-
deploymentGetConfig1DeploymentsIn,
|
|
4079
|
-
),
|
|
4080
|
-
);
|
|
3697
|
+
export function oneInToJSON(oneIn: OneIn): string {
|
|
3698
|
+
return JSON.stringify(OneIn$outboundSchema.parse(oneIn));
|
|
4081
3699
|
}
|
|
4082
3700
|
|
|
4083
3701
|
/** @internal */
|
|
4084
|
-
export type
|
|
3702
|
+
export type In$Outbound = {
|
|
4085
3703
|
in: Array<string | number | boolean>;
|
|
4086
3704
|
};
|
|
4087
3705
|
|
|
4088
3706
|
/** @internal */
|
|
4089
|
-
export const
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
> = z.object({
|
|
4094
|
-
in: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
4095
|
-
});
|
|
3707
|
+
export const In$outboundSchema: z.ZodType<In$Outbound, z.ZodTypeDef, In> = z
|
|
3708
|
+
.object({
|
|
3709
|
+
in: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
3710
|
+
});
|
|
4096
3711
|
|
|
4097
|
-
export function
|
|
4098
|
-
|
|
4099
|
-
): string {
|
|
4100
|
-
return JSON.stringify(
|
|
4101
|
-
DeploymentGetConfig1In$outboundSchema.parse(deploymentGetConfig1In),
|
|
4102
|
-
);
|
|
3712
|
+
export function inToJSON(value: In): string {
|
|
3713
|
+
return JSON.stringify(In$outboundSchema.parse(value));
|
|
4103
3714
|
}
|
|
4104
3715
|
|
|
4105
3716
|
/** @internal */
|
|
4106
|
-
export type
|
|
3717
|
+
export type Lte$Outbound = {
|
|
4107
3718
|
lte: number;
|
|
4108
3719
|
};
|
|
4109
3720
|
|
|
4110
3721
|
/** @internal */
|
|
4111
|
-
export const
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
> = z.object({
|
|
4116
|
-
lte: z.number(),
|
|
4117
|
-
});
|
|
3722
|
+
export const Lte$outboundSchema: z.ZodType<Lte$Outbound, z.ZodTypeDef, Lte> = z
|
|
3723
|
+
.object({
|
|
3724
|
+
lte: z.number(),
|
|
3725
|
+
});
|
|
4118
3726
|
|
|
4119
|
-
export function
|
|
4120
|
-
return JSON.stringify(
|
|
3727
|
+
export function lteToJSON(lte: Lte): string {
|
|
3728
|
+
return JSON.stringify(Lte$outboundSchema.parse(lte));
|
|
4121
3729
|
}
|
|
4122
3730
|
|
|
4123
3731
|
/** @internal */
|
|
4124
|
-
export type
|
|
3732
|
+
export type Lt$Outbound = {
|
|
4125
3733
|
lt: number;
|
|
4126
3734
|
};
|
|
4127
3735
|
|
|
4128
3736
|
/** @internal */
|
|
4129
|
-
export const
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
> = z.object({
|
|
4134
|
-
lt: z.number(),
|
|
4135
|
-
});
|
|
3737
|
+
export const Lt$outboundSchema: z.ZodType<Lt$Outbound, z.ZodTypeDef, Lt> = z
|
|
3738
|
+
.object({
|
|
3739
|
+
lt: z.number(),
|
|
3740
|
+
});
|
|
4136
3741
|
|
|
4137
|
-
export function
|
|
4138
|
-
return JSON.stringify(
|
|
3742
|
+
export function ltToJSON(lt: Lt): string {
|
|
3743
|
+
return JSON.stringify(Lt$outboundSchema.parse(lt));
|
|
4139
3744
|
}
|
|
4140
3745
|
|
|
4141
3746
|
/** @internal */
|
|
4142
|
-
export type
|
|
3747
|
+
export type Gte$Outbound = {
|
|
4143
3748
|
gte: number;
|
|
4144
3749
|
};
|
|
4145
3750
|
|
|
4146
3751
|
/** @internal */
|
|
4147
|
-
export const
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
> = z.object({
|
|
4152
|
-
gte: z.number(),
|
|
4153
|
-
});
|
|
3752
|
+
export const Gte$outboundSchema: z.ZodType<Gte$Outbound, z.ZodTypeDef, Gte> = z
|
|
3753
|
+
.object({
|
|
3754
|
+
gte: z.number(),
|
|
3755
|
+
});
|
|
4154
3756
|
|
|
4155
|
-
export function
|
|
4156
|
-
return JSON.stringify(
|
|
3757
|
+
export function gteToJSON(gte: Gte): string {
|
|
3758
|
+
return JSON.stringify(Gte$outboundSchema.parse(gte));
|
|
4157
3759
|
}
|
|
4158
3760
|
|
|
4159
3761
|
/** @internal */
|
|
4160
|
-
export type
|
|
3762
|
+
export type Gt$Outbound = {
|
|
4161
3763
|
gt: number;
|
|
4162
3764
|
};
|
|
4163
3765
|
|
|
4164
3766
|
/** @internal */
|
|
4165
|
-
export const
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
> = z.object({
|
|
4170
|
-
gt: z.number(),
|
|
4171
|
-
});
|
|
3767
|
+
export const Gt$outboundSchema: z.ZodType<Gt$Outbound, z.ZodTypeDef, Gt> = z
|
|
3768
|
+
.object({
|
|
3769
|
+
gt: z.number(),
|
|
3770
|
+
});
|
|
4172
3771
|
|
|
4173
|
-
export function
|
|
4174
|
-
return JSON.stringify(
|
|
3772
|
+
export function gtToJSON(gt: Gt): string {
|
|
3773
|
+
return JSON.stringify(Gt$outboundSchema.parse(gt));
|
|
4175
3774
|
}
|
|
4176
3775
|
|
|
4177
3776
|
/** @internal */
|
|
4178
|
-
export type
|
|
4179
|
-
| string
|
|
4180
|
-
| number
|
|
4181
|
-
| boolean;
|
|
3777
|
+
export type OneNe$Outbound = string | number | boolean;
|
|
4182
3778
|
|
|
4183
3779
|
/** @internal */
|
|
4184
|
-
export const
|
|
4185
|
-
|
|
3780
|
+
export const OneNe$outboundSchema: z.ZodType<
|
|
3781
|
+
OneNe$Outbound,
|
|
4186
3782
|
z.ZodTypeDef,
|
|
4187
|
-
|
|
3783
|
+
OneNe
|
|
4188
3784
|
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
4189
3785
|
|
|
4190
|
-
export function
|
|
4191
|
-
|
|
4192
|
-
): string {
|
|
4193
|
-
return JSON.stringify(
|
|
4194
|
-
DeploymentGetConfig1DeploymentsNe$outboundSchema.parse(
|
|
4195
|
-
deploymentGetConfig1DeploymentsNe,
|
|
4196
|
-
),
|
|
4197
|
-
);
|
|
3786
|
+
export function oneNeToJSON(oneNe: OneNe): string {
|
|
3787
|
+
return JSON.stringify(OneNe$outboundSchema.parse(oneNe));
|
|
4198
3788
|
}
|
|
4199
3789
|
|
|
4200
3790
|
/** @internal */
|
|
4201
|
-
export type
|
|
3791
|
+
export type Ne$Outbound = {
|
|
4202
3792
|
ne: string | number | boolean;
|
|
4203
3793
|
};
|
|
4204
3794
|
|
|
4205
3795
|
/** @internal */
|
|
4206
|
-
export const
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
> = z.object({
|
|
4211
|
-
ne: z.union([z.string(), z.number(), z.boolean()]),
|
|
4212
|
-
});
|
|
3796
|
+
export const Ne$outboundSchema: z.ZodType<Ne$Outbound, z.ZodTypeDef, Ne> = z
|
|
3797
|
+
.object({
|
|
3798
|
+
ne: z.union([z.string(), z.number(), z.boolean()]),
|
|
3799
|
+
});
|
|
4213
3800
|
|
|
4214
|
-
export function
|
|
4215
|
-
|
|
4216
|
-
): string {
|
|
4217
|
-
return JSON.stringify(
|
|
4218
|
-
DeploymentGetConfig1Ne$outboundSchema.parse(deploymentGetConfig1Ne),
|
|
4219
|
-
);
|
|
3801
|
+
export function neToJSON(ne: Ne): string {
|
|
3802
|
+
return JSON.stringify(Ne$outboundSchema.parse(ne));
|
|
4220
3803
|
}
|
|
4221
3804
|
|
|
4222
3805
|
/** @internal */
|
|
4223
|
-
export type
|
|
4224
|
-
| string
|
|
4225
|
-
| number
|
|
4226
|
-
| boolean;
|
|
3806
|
+
export type OneEq$Outbound = string | number | boolean;
|
|
4227
3807
|
|
|
4228
3808
|
/** @internal */
|
|
4229
|
-
export const
|
|
4230
|
-
|
|
3809
|
+
export const OneEq$outboundSchema: z.ZodType<
|
|
3810
|
+
OneEq$Outbound,
|
|
4231
3811
|
z.ZodTypeDef,
|
|
4232
|
-
|
|
3812
|
+
OneEq
|
|
4233
3813
|
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
4234
3814
|
|
|
4235
|
-
export function
|
|
4236
|
-
|
|
4237
|
-
): string {
|
|
4238
|
-
return JSON.stringify(
|
|
4239
|
-
DeploymentGetConfig1DeploymentsEq$outboundSchema.parse(
|
|
4240
|
-
deploymentGetConfig1DeploymentsEq,
|
|
4241
|
-
),
|
|
4242
|
-
);
|
|
3815
|
+
export function oneEqToJSON(oneEq: OneEq): string {
|
|
3816
|
+
return JSON.stringify(OneEq$outboundSchema.parse(oneEq));
|
|
4243
3817
|
}
|
|
4244
3818
|
|
|
4245
3819
|
/** @internal */
|
|
4246
|
-
export type
|
|
3820
|
+
export type Eq$Outbound = {
|
|
4247
3821
|
eq: string | number | boolean;
|
|
4248
3822
|
};
|
|
4249
3823
|
|
|
4250
3824
|
/** @internal */
|
|
4251
|
-
export const
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
> = z.object({
|
|
4256
|
-
eq: z.union([z.string(), z.number(), z.boolean()]),
|
|
4257
|
-
});
|
|
3825
|
+
export const Eq$outboundSchema: z.ZodType<Eq$Outbound, z.ZodTypeDef, Eq> = z
|
|
3826
|
+
.object({
|
|
3827
|
+
eq: z.union([z.string(), z.number(), z.boolean()]),
|
|
3828
|
+
});
|
|
4258
3829
|
|
|
4259
|
-
export function
|
|
4260
|
-
|
|
4261
|
-
): string {
|
|
4262
|
-
return JSON.stringify(
|
|
4263
|
-
DeploymentGetConfig1Eq$outboundSchema.parse(deploymentGetConfig1Eq),
|
|
4264
|
-
);
|
|
3830
|
+
export function eqToJSON(eq: Eq): string {
|
|
3831
|
+
return JSON.stringify(Eq$outboundSchema.parse(eq));
|
|
4265
3832
|
}
|
|
4266
3833
|
|
|
4267
3834
|
/** @internal */
|
|
4268
|
-
export type
|
|
4269
|
-
|
|
|
4270
|
-
|
|
|
4271
|
-
|
|
|
4272
|
-
|
|
|
4273
|
-
|
|
|
4274
|
-
|
|
|
4275
|
-
|
|
|
4276
|
-
|
|
|
4277
|
-
|
|
|
3835
|
+
export type KnowledgeFilter1$Outbound =
|
|
3836
|
+
| Eq$Outbound
|
|
3837
|
+
| Ne$Outbound
|
|
3838
|
+
| Gt$Outbound
|
|
3839
|
+
| Gte$Outbound
|
|
3840
|
+
| Lt$Outbound
|
|
3841
|
+
| Lte$Outbound
|
|
3842
|
+
| In$Outbound
|
|
3843
|
+
| Nin$Outbound
|
|
3844
|
+
| Exists$Outbound;
|
|
4278
3845
|
|
|
4279
3846
|
/** @internal */
|
|
4280
|
-
export const
|
|
4281
|
-
|
|
3847
|
+
export const KnowledgeFilter1$outboundSchema: z.ZodType<
|
|
3848
|
+
KnowledgeFilter1$Outbound,
|
|
4282
3849
|
z.ZodTypeDef,
|
|
4283
|
-
|
|
3850
|
+
KnowledgeFilter1
|
|
4284
3851
|
> = z.union([
|
|
4285
|
-
z.lazy(() =>
|
|
4286
|
-
z.lazy(() =>
|
|
4287
|
-
z.lazy(() =>
|
|
4288
|
-
z.lazy(() =>
|
|
4289
|
-
z.lazy(() =>
|
|
4290
|
-
z.lazy(() =>
|
|
4291
|
-
z.lazy(() =>
|
|
4292
|
-
z.lazy(() =>
|
|
4293
|
-
z.lazy(() =>
|
|
3852
|
+
z.lazy(() => Eq$outboundSchema),
|
|
3853
|
+
z.lazy(() => Ne$outboundSchema),
|
|
3854
|
+
z.lazy(() => Gt$outboundSchema),
|
|
3855
|
+
z.lazy(() => Gte$outboundSchema),
|
|
3856
|
+
z.lazy(() => Lt$outboundSchema),
|
|
3857
|
+
z.lazy(() => Lte$outboundSchema),
|
|
3858
|
+
z.lazy(() => In$outboundSchema),
|
|
3859
|
+
z.lazy(() => Nin$outboundSchema),
|
|
3860
|
+
z.lazy(() => Exists$outboundSchema),
|
|
4294
3861
|
]);
|
|
4295
3862
|
|
|
4296
|
-
export function
|
|
4297
|
-
|
|
3863
|
+
export function knowledgeFilter1ToJSON(
|
|
3864
|
+
knowledgeFilter1: KnowledgeFilter1,
|
|
4298
3865
|
): string {
|
|
4299
3866
|
return JSON.stringify(
|
|
4300
|
-
|
|
4301
|
-
deploymentGetConfigKnowledgeFilter1,
|
|
4302
|
-
),
|
|
3867
|
+
KnowledgeFilter1$outboundSchema.parse(knowledgeFilter1),
|
|
4303
3868
|
);
|
|
4304
3869
|
}
|
|
4305
3870
|
|
|
4306
3871
|
/** @internal */
|
|
4307
|
-
export type
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
/** @internal */
|
|
4324
|
-
export const DeploymentGetConfigKnowledgeFilter$outboundSchema: z.ZodType<
|
|
4325
|
-
DeploymentGetConfigKnowledgeFilter$Outbound,
|
|
3872
|
+
export type KnowledgeFilter$Outbound = And$Outbound | Or$Outbound | {
|
|
3873
|
+
[k: string]:
|
|
3874
|
+
| Eq$Outbound
|
|
3875
|
+
| Ne$Outbound
|
|
3876
|
+
| Gt$Outbound
|
|
3877
|
+
| Gte$Outbound
|
|
3878
|
+
| Lt$Outbound
|
|
3879
|
+
| Lte$Outbound
|
|
3880
|
+
| In$Outbound
|
|
3881
|
+
| Nin$Outbound
|
|
3882
|
+
| Exists$Outbound;
|
|
3883
|
+
};
|
|
3884
|
+
|
|
3885
|
+
/** @internal */
|
|
3886
|
+
export const KnowledgeFilter$outboundSchema: z.ZodType<
|
|
3887
|
+
KnowledgeFilter$Outbound,
|
|
4326
3888
|
z.ZodTypeDef,
|
|
4327
|
-
|
|
3889
|
+
KnowledgeFilter
|
|
4328
3890
|
> = z.union([
|
|
4329
|
-
z.lazy(() =>
|
|
4330
|
-
z.lazy(() =>
|
|
3891
|
+
z.lazy(() => And$outboundSchema),
|
|
3892
|
+
z.lazy(() => Or$outboundSchema),
|
|
4331
3893
|
z.record(z.union([
|
|
4332
|
-
z.lazy(() =>
|
|
4333
|
-
z.lazy(() =>
|
|
4334
|
-
z.lazy(() =>
|
|
4335
|
-
z.lazy(() =>
|
|
4336
|
-
z.lazy(() =>
|
|
4337
|
-
z.lazy(() =>
|
|
4338
|
-
z.lazy(() =>
|
|
4339
|
-
z.lazy(() =>
|
|
4340
|
-
z.lazy(() =>
|
|
3894
|
+
z.lazy(() => Eq$outboundSchema),
|
|
3895
|
+
z.lazy(() => Ne$outboundSchema),
|
|
3896
|
+
z.lazy(() => Gt$outboundSchema),
|
|
3897
|
+
z.lazy(() => Gte$outboundSchema),
|
|
3898
|
+
z.lazy(() => Lt$outboundSchema),
|
|
3899
|
+
z.lazy(() => Lte$outboundSchema),
|
|
3900
|
+
z.lazy(() => In$outboundSchema),
|
|
3901
|
+
z.lazy(() => Nin$outboundSchema),
|
|
3902
|
+
z.lazy(() => Exists$outboundSchema),
|
|
4341
3903
|
])),
|
|
4342
3904
|
]);
|
|
4343
3905
|
|
|
4344
|
-
export function
|
|
4345
|
-
|
|
3906
|
+
export function knowledgeFilterToJSON(
|
|
3907
|
+
knowledgeFilter: KnowledgeFilter,
|
|
4346
3908
|
): string {
|
|
4347
|
-
return JSON.stringify(
|
|
4348
|
-
DeploymentGetConfigKnowledgeFilter$outboundSchema.parse(
|
|
4349
|
-
deploymentGetConfigKnowledgeFilter,
|
|
4350
|
-
),
|
|
4351
|
-
);
|
|
3909
|
+
return JSON.stringify(KnowledgeFilter$outboundSchema.parse(knowledgeFilter));
|
|
4352
3910
|
}
|
|
4353
3911
|
|
|
4354
3912
|
/** @internal */
|
|
@@ -4358,45 +3916,41 @@ export type DeploymentGetConfigRequestBody$Outbound = {
|
|
|
4358
3916
|
context?: { [k: string]: any } | undefined;
|
|
4359
3917
|
prefix_messages?:
|
|
4360
3918
|
| Array<
|
|
4361
|
-
|
|
|
4362
|
-
|
|
|
4363
|
-
|
|
|
4364
|
-
|
|
|
4365
|
-
|
|
|
3919
|
+
| SystemMessage$Outbound
|
|
3920
|
+
| DeveloperMessage$Outbound
|
|
3921
|
+
| UserMessage$Outbound
|
|
3922
|
+
| AssistantMessage$Outbound
|
|
3923
|
+
| ToolMessage$Outbound
|
|
4366
3924
|
>
|
|
4367
3925
|
| undefined;
|
|
4368
3926
|
messages?:
|
|
4369
3927
|
| Array<
|
|
4370
|
-
|
|
|
4371
|
-
|
|
|
4372
|
-
|
|
|
4373
|
-
|
|
|
4374
|
-
|
|
|
3928
|
+
| MessagesSystemMessage$Outbound
|
|
3929
|
+
| MessagesDeveloperMessage$Outbound
|
|
3930
|
+
| MessagesUserMessage$Outbound
|
|
3931
|
+
| MessagesAssistantMessage$Outbound
|
|
3932
|
+
| MessagesToolMessage$Outbound
|
|
4375
3933
|
>
|
|
4376
3934
|
| undefined;
|
|
4377
3935
|
identity?: components.PublicIdentity$Outbound | undefined;
|
|
4378
3936
|
file_ids?: Array<string> | undefined;
|
|
4379
3937
|
metadata?: { [k: string]: any } | undefined;
|
|
4380
3938
|
extra_params?: { [k: string]: any } | undefined;
|
|
4381
|
-
documents?: Array<
|
|
4382
|
-
invoke_options?:
|
|
4383
|
-
thread?:
|
|
4384
|
-
knowledge_filter?:
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
| DeploymentGetConfig1Nin$Outbound
|
|
4397
|
-
| OneExists$Outbound;
|
|
4398
|
-
}
|
|
4399
|
-
| undefined;
|
|
3939
|
+
documents?: Array<Documents$Outbound> | undefined;
|
|
3940
|
+
invoke_options?: InvokeOptions$Outbound | undefined;
|
|
3941
|
+
thread?: Thread$Outbound | undefined;
|
|
3942
|
+
knowledge_filter?: And$Outbound | Or$Outbound | {
|
|
3943
|
+
[k: string]:
|
|
3944
|
+
| Eq$Outbound
|
|
3945
|
+
| Ne$Outbound
|
|
3946
|
+
| Gt$Outbound
|
|
3947
|
+
| Gte$Outbound
|
|
3948
|
+
| Lt$Outbound
|
|
3949
|
+
| Lte$Outbound
|
|
3950
|
+
| In$Outbound
|
|
3951
|
+
| Nin$Outbound
|
|
3952
|
+
| Exists$Outbound;
|
|
3953
|
+
} | undefined;
|
|
4400
3954
|
};
|
|
4401
3955
|
|
|
4402
3956
|
/** @internal */
|
|
@@ -4410,47 +3964,43 @@ export const DeploymentGetConfigRequestBody$outboundSchema: z.ZodType<
|
|
|
4410
3964
|
context: z.record(z.any()).optional(),
|
|
4411
3965
|
prefixMessages: z.array(
|
|
4412
3966
|
z.union([
|
|
4413
|
-
z.lazy(() =>
|
|
4414
|
-
z.lazy(() =>
|
|
4415
|
-
z.lazy(() =>
|
|
4416
|
-
z.lazy(() =>
|
|
4417
|
-
z.lazy(() =>
|
|
3967
|
+
z.lazy(() => SystemMessage$outboundSchema),
|
|
3968
|
+
z.lazy(() => DeveloperMessage$outboundSchema),
|
|
3969
|
+
z.lazy(() => UserMessage$outboundSchema),
|
|
3970
|
+
z.lazy(() => AssistantMessage$outboundSchema),
|
|
3971
|
+
z.lazy(() => ToolMessage$outboundSchema),
|
|
4418
3972
|
]),
|
|
4419
3973
|
).optional(),
|
|
4420
3974
|
messages: z.array(
|
|
4421
3975
|
z.union([
|
|
4422
|
-
z.lazy(() =>
|
|
4423
|
-
z.lazy(() =>
|
|
4424
|
-
z.lazy(() =>
|
|
4425
|
-
z.lazy(() =>
|
|
4426
|
-
z.lazy(() =>
|
|
3976
|
+
z.lazy(() => MessagesSystemMessage$outboundSchema),
|
|
3977
|
+
z.lazy(() => MessagesDeveloperMessage$outboundSchema),
|
|
3978
|
+
z.lazy(() => MessagesUserMessage$outboundSchema),
|
|
3979
|
+
z.lazy(() => MessagesAssistantMessage$outboundSchema),
|
|
3980
|
+
z.lazy(() => MessagesToolMessage$outboundSchema),
|
|
4427
3981
|
]),
|
|
4428
3982
|
).optional(),
|
|
4429
3983
|
identity: components.PublicIdentity$outboundSchema.optional(),
|
|
4430
3984
|
fileIds: z.array(z.string()).optional(),
|
|
4431
3985
|
metadata: z.record(z.any()).optional(),
|
|
4432
3986
|
extraParams: z.record(z.any()).optional(),
|
|
4433
|
-
documents: z.array(z.lazy(() =>
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
.optional(),
|
|
4437
|
-
thread: z.lazy(() => DeploymentGetConfigThread$outboundSchema).optional(),
|
|
3987
|
+
documents: z.array(z.lazy(() => Documents$outboundSchema)).optional(),
|
|
3988
|
+
invokeOptions: z.lazy(() => InvokeOptions$outboundSchema).optional(),
|
|
3989
|
+
thread: z.lazy(() => Thread$outboundSchema).optional(),
|
|
4438
3990
|
knowledgeFilter: z.union([
|
|
4439
|
-
z.lazy(() =>
|
|
4440
|
-
z.lazy(() =>
|
|
4441
|
-
z.record(
|
|
4442
|
-
z.
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
]),
|
|
4453
|
-
),
|
|
3991
|
+
z.lazy(() => And$outboundSchema),
|
|
3992
|
+
z.lazy(() => Or$outboundSchema),
|
|
3993
|
+
z.record(z.union([
|
|
3994
|
+
z.lazy(() => Eq$outboundSchema),
|
|
3995
|
+
z.lazy(() => Ne$outboundSchema),
|
|
3996
|
+
z.lazy(() => Gt$outboundSchema),
|
|
3997
|
+
z.lazy(() => Gte$outboundSchema),
|
|
3998
|
+
z.lazy(() => Lt$outboundSchema),
|
|
3999
|
+
z.lazy(() => Lte$outboundSchema),
|
|
4000
|
+
z.lazy(() => In$outboundSchema),
|
|
4001
|
+
z.lazy(() => Nin$outboundSchema),
|
|
4002
|
+
z.lazy(() => Exists$outboundSchema),
|
|
4003
|
+
])),
|
|
4454
4004
|
]).optional(),
|
|
4455
4005
|
}).transform((v) => {
|
|
4456
4006
|
return remap$(v, {
|